Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
d0ac1c44 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
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. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
c6b750e1 DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 211 | do |
81ecdfbb RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
81ecdfbb RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 266 | else |
81ecdfbb RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 271 | fi |
81ecdfbb RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
c6b750e1 | 301 | |
81ecdfbb RW |
302 | # as_fn_exit STATUS |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
81ecdfbb RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
d0ac1c44 SM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
81ecdfbb RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 407 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
408 | as_fn_error () |
409 | { | |
d0ac1c44 SM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 414 | fi |
d0ac1c44 | 415 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
81ecdfbb | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
81ecdfbb RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
c6b750e1 | 437 | |
81ecdfbb | 438 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
c6b750e1 | 456 | |
c6b750e1 DJ |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
c6b750e1 | 464 | |
81ecdfbb RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
c6b750e1 | 474 | sed ' |
81ecdfbb RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
c6b750e1 | 479 | N |
81ecdfbb RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 482 | t loop |
81ecdfbb | 483 | s/-\n.*// |
c6b750e1 | 484 | ' >$as_me.lineno && |
81ecdfbb RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 | 487 | |
d0ac1c44 SM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
c6b750e1 DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
c6b750e1 DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
81ecdfbb RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
c6b750e1 DJ |
511 | esac |
512 | ||
81ecdfbb RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 516 | else |
81ecdfbb RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 519 | fi |
81ecdfbb RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 522 | as_ln_s='ln -s' |
81ecdfbb RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 526 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 528 | as_ln_s='cp -pR' |
81ecdfbb RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
c6b750e1 | 533 | fi |
c6b750e1 | 534 | else |
d0ac1c44 | 535 | as_ln_s='cp -pR' |
c6b750e1 | 536 | fi |
81ecdfbb RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
d0ac1c44 SM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
549 | |
550 | # Sed expression to map a string onto a valid CPP name. | |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
d0ac1c44 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
a0da8069 | 559 | |
c6b750e1 | 560 | # Name of the host. |
d0ac1c44 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
c6b750e1 DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
c6b750e1 DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
a0da8069 | 568 | ac_default_prefix=/usr/local |
81ecdfbb | 569 | ac_clean_files= |
c6b750e1 | 570 | ac_config_libobj_dir=. |
81ecdfbb | 571 | LIBOBJS= |
c6b750e1 DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
c6b750e1 DJ |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
81ecdfbb | 583 | PACKAGE_URL= |
c6b750e1 DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
590 | stage2_werror_flag | |
591 | stage1_checking | |
592 | stage1_cflags | |
593 | MAINT | |
594 | MAINTAINER_MODE_FALSE | |
595 | MAINTAINER_MODE_TRUE | |
596 | COMPILER_NM_FOR_TARGET | |
597 | COMPILER_LD_FOR_TARGET | |
598 | COMPILER_AS_FOR_TARGET | |
599 | FLAGS_FOR_TARGET | |
600 | RAW_CXX_FOR_TARGET | |
601 | WINDMC_FOR_TARGET | |
602 | WINDRES_FOR_TARGET | |
603 | STRIP_FOR_TARGET | |
b121d7d4 | 604 | READELF_FOR_TARGET |
81ecdfbb RW |
605 | RANLIB_FOR_TARGET |
606 | OBJDUMP_FOR_TARGET | |
6b91c541 | 607 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
608 | NM_FOR_TARGET |
609 | LIPO_FOR_TARGET | |
610 | LD_FOR_TARGET | |
611 | DLLTOOL_FOR_TARGET | |
612 | AS_FOR_TARGET | |
613 | AR_FOR_TARGET | |
e552509b | 614 | GOC_FOR_TARGET |
81ecdfbb | 615 | GFORTRAN_FOR_TARGET |
81ecdfbb RW |
616 | GCC_FOR_TARGET |
617 | CXX_FOR_TARGET | |
618 | CC_FOR_TARGET | |
b121d7d4 | 619 | READELF |
81ecdfbb RW |
620 | OBJDUMP |
621 | OBJCOPY | |
622 | WINDMC | |
623 | WINDRES | |
624 | STRIP | |
625 | RANLIB | |
626 | NM | |
627 | LIPO | |
628 | LD | |
629 | DLLTOOL | |
630 | AS | |
631 | AR | |
632 | RUNTEST | |
633 | EXPECT | |
634 | MAKEINFO | |
635 | FLEX | |
636 | LEX | |
637 | M4 | |
638 | BISON | |
639 | YACC | |
81ecdfbb RW |
640 | WINDRES_FOR_BUILD |
641 | WINDMC_FOR_BUILD | |
642 | RANLIB_FOR_BUILD | |
643 | NM_FOR_BUILD | |
644 | LD_FOR_BUILD | |
645 | LDFLAGS_FOR_BUILD | |
e552509b | 646 | GOC_FOR_BUILD |
81ecdfbb | 647 | GFORTRAN_FOR_BUILD |
81ecdfbb RW |
648 | DLLTOOL_FOR_BUILD |
649 | CXX_FOR_BUILD | |
650 | CXXFLAGS_FOR_BUILD | |
651 | CFLAGS_FOR_BUILD | |
652 | CC_FOR_BUILD | |
653 | AS_FOR_BUILD | |
654 | AR_FOR_BUILD | |
911e63d0 | 655 | target_configdirs |
81ecdfbb | 656 | configdirs |
81ecdfbb | 657 | build_configdirs |
81ecdfbb RW |
658 | INSTALL_GDB_TK |
659 | GDB_TK | |
660 | CONFIGURE_GDB_TK | |
661 | build_tooldir | |
662 | tooldir | |
663 | GCC_SHLIB_SUBDIR | |
664 | RPATH_ENVVAR | |
4074d5f2 RW |
665 | target_configargs |
666 | host_configargs | |
667 | build_configargs | |
96655cc4 | 668 | BUILD_CONFIG |
91c1f14c | 669 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
670 | CXXFLAGS_FOR_TARGET |
671 | CFLAGS_FOR_TARGET | |
672 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
673 | SYSROOT_CFLAGS_FOR_TARGET | |
bf41f30d | 674 | get_gcc_base_ver |
e81d5d05 | 675 | extra_host_zlib_configure_flags |
700d40ca | 676 | extra_host_libiberty_configure_flags |
1b6c0831 | 677 | stage1_languages |
bf41f30d | 678 | host_shared |
1b6c0831 L |
679 | extra_linker_plugin_flags |
680 | extra_linker_plugin_configure_flags | |
7ec59b9e | 681 | islinc |
1b6c0831 | 682 | isllibs |
81ecdfbb | 683 | poststage1_ldflags |
143754cd | 684 | poststage1_libs |
81ecdfbb | 685 | stage1_ldflags |
b3676d82 | 686 | stage1_libs |
7ec59b9e | 687 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
688 | extra_mpc_mpfr_configure_flags |
689 | extra_mpc_gmp_configure_flags | |
690 | extra_mpfr_configure_flags | |
691 | gmpinc | |
692 | gmplibs | |
693 | do_compare | |
694 | GNATMAKE | |
695 | GNATBIND | |
696 | ac_ct_CXX | |
697 | CXXFLAGS | |
698 | CXX | |
699 | OBJEXT | |
700 | EXEEXT | |
701 | ac_ct_CC | |
702 | CPPFLAGS | |
703 | LDFLAGS | |
704 | CFLAGS | |
705 | CC | |
1b6c0831 | 706 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
707 | target_subdir |
708 | host_subdir | |
709 | build_subdir | |
710 | build_libsubdir | |
8e957354 PB |
711 | AWK |
712 | SED | |
81ecdfbb RW |
713 | LN_S |
714 | LN | |
715 | INSTALL_DATA | |
716 | INSTALL_SCRIPT | |
717 | INSTALL_PROGRAM | |
718 | target_os | |
719 | target_vendor | |
720 | target_cpu | |
721 | target | |
722 | host_os | |
723 | host_vendor | |
724 | host_cpu | |
725 | host | |
726 | target_noncanonical | |
727 | host_noncanonical | |
728 | build_noncanonical | |
729 | build_os | |
730 | build_vendor | |
731 | build_cpu | |
732 | build | |
733 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
734 | target_alias | |
735 | host_alias | |
736 | build_alias | |
737 | LIBS | |
738 | ECHO_T | |
739 | ECHO_N | |
740 | ECHO_C | |
741 | DEFS | |
742 | mandir | |
743 | localedir | |
744 | libdir | |
745 | psdir | |
746 | pdfdir | |
747 | dvidir | |
748 | htmldir | |
749 | infodir | |
750 | docdir | |
751 | oldincludedir | |
752 | includedir | |
753 | localstatedir | |
754 | sharedstatedir | |
755 | sysconfdir | |
756 | datadir | |
757 | datarootdir | |
758 | libexecdir | |
759 | sbindir | |
760 | bindir | |
761 | program_transform_name | |
762 | prefix | |
763 | exec_prefix | |
764 | PACKAGE_URL | |
765 | PACKAGE_BUGREPORT | |
766 | PACKAGE_STRING | |
767 | PACKAGE_VERSION | |
768 | PACKAGE_TARNAME | |
769 | PACKAGE_NAME | |
770 | PATH_SEPARATOR | |
771 | SHELL' | |
772 | ac_subst_files='serialization_dependencies | |
773 | host_makefile_frag | |
774 | target_makefile_frag | |
775 | alphaieee_frag | |
776 | ospace_frag' | |
777 | ac_user_opts=' | |
778 | enable_option_checking | |
779 | with_build_libsubdir | |
cf39cfc5 | 780 | with_system_zlib |
1b6c0831 L |
781 | enable_as_accelerator_for |
782 | enable_offload_targets | |
81ecdfbb | 783 | enable_gold |
c7791212 | 784 | enable_ld |
edeefb67 | 785 | enable_compressed_debug_sections |
89a1e9c3 PB |
786 | enable_libquadmath |
787 | enable_libquadmath_support | |
81ecdfbb RW |
788 | enable_libada |
789 | enable_libssp | |
f66a9a70 | 790 | enable_libstdcxx |
1b6c0831 | 791 | enable_liboffloadmic |
ffdd6afc | 792 | enable_bootstrap |
81ecdfbb RW |
793 | with_mpc |
794 | with_mpc_include | |
795 | with_mpc_lib | |
796 | with_mpfr_dir | |
797 | with_mpfr | |
798 | with_mpfr_include | |
799 | with_mpfr_lib | |
800 | with_gmp_dir | |
801 | with_gmp | |
802 | with_gmp_include | |
803 | with_gmp_lib | |
81ecdfbb | 804 | with_stage1_libs |
b3676d82 | 805 | with_stage1_ldflags |
81ecdfbb | 806 | with_boot_libs |
143754cd | 807 | with_boot_ldflags |
7ec59b9e L |
808 | with_isl |
809 | with_isl_include | |
810 | with_isl_lib | |
811 | enable_isl_version_check | |
700d40ca | 812 | enable_lto |
1b6c0831 L |
813 | enable_linker_plugin_configure_flags |
814 | enable_linker_plugin_flags | |
bf41f30d | 815 | enable_host_shared |
81ecdfbb RW |
816 | enable_stage1_languages |
817 | enable_objc_gc | |
05a13254 NC |
818 | with_target_bdw_gc |
819 | with_target_bdw_gc_include | |
820 | with_target_bdw_gc_lib | |
bf41f30d | 821 | with_gcc_major_version_only |
81ecdfbb RW |
822 | with_build_sysroot |
823 | with_debug_prefix_map | |
96655cc4 | 824 | with_build_config |
730af8ee | 825 | enable_vtable_verify |
81ecdfbb RW |
826 | enable_serial_configure |
827 | with_build_time_tools | |
828 | enable_maintainer_mode | |
829 | enable_stage1_checking | |
830 | enable_werror | |
81ecdfbb RW |
831 | ' |
832 | ac_precious_vars='build_alias | |
833 | host_alias | |
834 | target_alias | |
835 | CC | |
836 | CFLAGS | |
837 | LDFLAGS | |
838 | LIBS | |
839 | CPPFLAGS | |
840 | CXX | |
841 | CXXFLAGS | |
842 | CCC | |
4074d5f2 RW |
843 | build_configargs |
844 | host_configargs | |
845 | target_configargs | |
81ecdfbb RW |
846 | AR |
847 | AS | |
848 | DLLTOOL | |
849 | LD | |
850 | LIPO | |
851 | NM | |
852 | RANLIB | |
853 | STRIP | |
854 | WINDRES | |
855 | WINDMC | |
856 | OBJCOPY | |
857 | OBJDUMP | |
b121d7d4 | 858 | READELF |
81ecdfbb RW |
859 | CC_FOR_TARGET |
860 | CXX_FOR_TARGET | |
861 | GCC_FOR_TARGET | |
81ecdfbb | 862 | GFORTRAN_FOR_TARGET |
e552509b | 863 | GOC_FOR_TARGET |
81ecdfbb RW |
864 | AR_FOR_TARGET |
865 | AS_FOR_TARGET | |
866 | DLLTOOL_FOR_TARGET | |
867 | LD_FOR_TARGET | |
868 | LIPO_FOR_TARGET | |
869 | NM_FOR_TARGET | |
6b91c541 | 870 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
871 | OBJDUMP_FOR_TARGET |
872 | RANLIB_FOR_TARGET | |
b121d7d4 | 873 | READELF_FOR_TARGET |
81ecdfbb RW |
874 | STRIP_FOR_TARGET |
875 | WINDRES_FOR_TARGET | |
876 | WINDMC_FOR_TARGET' | |
877 | ||
a0da8069 NN |
878 | |
879 | # Initialize some variables set by options. | |
c6b750e1 DJ |
880 | ac_init_help= |
881 | ac_init_version=false | |
81ecdfbb RW |
882 | ac_unrecognized_opts= |
883 | ac_unrecognized_sep= | |
a0da8069 NN |
884 | # The variables have the same names as the options, with |
885 | # dashes changed to underlines. | |
c6b750e1 | 886 | cache_file=/dev/null |
a0da8069 | 887 | exec_prefix=NONE |
a0da8069 | 888 | no_create= |
a0da8069 NN |
889 | no_recursion= |
890 | prefix=NONE | |
891 | program_prefix=NONE | |
892 | program_suffix=NONE | |
893 | program_transform_name=s,x,x, | |
894 | silent= | |
895 | site= | |
896 | srcdir= | |
a0da8069 NN |
897 | verbose= |
898 | x_includes=NONE | |
899 | x_libraries=NONE | |
c6b750e1 DJ |
900 | |
901 | # Installation directory options. | |
902 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
903 | # and all the variables that are supposed to be based on exec_prefix | |
904 | # by default will actually change. | |
905 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 906 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
907 | bindir='${exec_prefix}/bin' |
908 | sbindir='${exec_prefix}/sbin' | |
909 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
910 | datarootdir='${prefix}/share' |
911 | datadir='${datarootdir}' | |
a0da8069 NN |
912 | sysconfdir='${prefix}/etc' |
913 | sharedstatedir='${prefix}/com' | |
914 | localstatedir='${prefix}/var' | |
a0da8069 NN |
915 | includedir='${prefix}/include' |
916 | oldincludedir='/usr/include' | |
81ecdfbb RW |
917 | docdir='${datarootdir}/doc/${PACKAGE}' |
918 | infodir='${datarootdir}/info' | |
919 | htmldir='${docdir}' | |
920 | dvidir='${docdir}' | |
921 | pdfdir='${docdir}' | |
922 | psdir='${docdir}' | |
923 | libdir='${exec_prefix}/lib' | |
924 | localedir='${datarootdir}/locale' | |
925 | mandir='${datarootdir}/man' | |
252b5132 | 926 | |
a0da8069 | 927 | ac_prev= |
81ecdfbb | 928 | ac_dashdash= |
a0da8069 NN |
929 | for ac_option |
930 | do | |
a0da8069 NN |
931 | # If the previous option needs an argument, assign it. |
932 | if test -n "$ac_prev"; then | |
81ecdfbb | 933 | eval $ac_prev=\$ac_option |
a0da8069 NN |
934 | ac_prev= |
935 | continue | |
936 | fi | |
252b5132 | 937 | |
81ecdfbb | 938 | case $ac_option in |
d0ac1c44 SM |
939 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
940 | *=) ac_optarg= ;; | |
941 | *) ac_optarg=yes ;; | |
81ecdfbb | 942 | esac |
a0da8069 NN |
943 | |
944 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
945 | ||
81ecdfbb RW |
946 | case $ac_dashdash$ac_option in |
947 | --) | |
948 | ac_dashdash=yes ;; | |
a0da8069 NN |
949 | |
950 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
951 | ac_prev=bindir ;; | |
952 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 953 | bindir=$ac_optarg ;; |
a0da8069 NN |
954 | |
955 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 956 | ac_prev=build_alias ;; |
a0da8069 | 957 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 958 | build_alias=$ac_optarg ;; |
a0da8069 NN |
959 | |
960 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
961 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
962 | ac_prev=cache_file ;; | |
963 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
964 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
965 | cache_file=$ac_optarg ;; |
966 | ||
967 | --config-cache | -C) | |
968 | cache_file=config.cache ;; | |
a0da8069 | 969 | |
81ecdfbb | 970 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 971 | ac_prev=datadir ;; |
81ecdfbb | 972 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 973 | datadir=$ac_optarg ;; |
a0da8069 | 974 | |
81ecdfbb RW |
975 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
976 | | --dataroo | --dataro | --datar) | |
977 | ac_prev=datarootdir ;; | |
978 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
979 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
980 | datarootdir=$ac_optarg ;; | |
981 | ||
a0da8069 | 982 | -disable-* | --disable-*) |
81ecdfbb | 983 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 984 | # Reject names that are not valid shell variable names. |
81ecdfbb | 985 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 986 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
987 | ac_useropt_orig=$ac_useropt |
988 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
989 | case $ac_user_opts in | |
990 | *" | |
991 | "enable_$ac_useropt" | |
992 | "*) ;; | |
993 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
994 | ac_unrecognized_sep=', ';; | |
995 | esac | |
996 | eval enable_$ac_useropt=no ;; | |
997 | ||
998 | -docdir | --docdir | --docdi | --doc | --do) | |
999 | ac_prev=docdir ;; | |
1000 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1001 | docdir=$ac_optarg ;; | |
1002 | ||
1003 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1004 | ac_prev=dvidir ;; | |
1005 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1006 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
1007 | |
1008 | -enable-* | --enable-*) | |
81ecdfbb | 1009 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 1010 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1012 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1013 | ac_useropt_orig=$ac_useropt |
1014 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1015 | case $ac_user_opts in | |
1016 | *" | |
1017 | "enable_$ac_useropt" | |
1018 | "*) ;; | |
1019 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1020 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1021 | esac |
81ecdfbb | 1022 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1023 | |
1024 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1025 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1026 | | --exec | --exe | --ex) | |
1027 | ac_prev=exec_prefix ;; | |
1028 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1029 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1030 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1031 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1032 | |
1033 | -gas | --gas | --ga | --g) | |
1034 | # Obsolete; use --with-gas. | |
1035 | with_gas=yes ;; | |
1036 | ||
c6b750e1 DJ |
1037 | -help | --help | --hel | --he | -h) |
1038 | ac_init_help=long ;; | |
1039 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1040 | ac_init_help=recursive ;; | |
1041 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1042 | ac_init_help=short ;; | |
a0da8069 NN |
1043 | |
1044 | -host | --host | --hos | --ho) | |
c6b750e1 | 1045 | ac_prev=host_alias ;; |
a0da8069 | 1046 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1047 | host_alias=$ac_optarg ;; |
a0da8069 | 1048 | |
81ecdfbb RW |
1049 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1050 | ac_prev=htmldir ;; | |
1051 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1052 | | --ht=*) | |
1053 | htmldir=$ac_optarg ;; | |
1054 | ||
a0da8069 NN |
1055 | -includedir | --includedir | --includedi | --included | --include \ |
1056 | | --includ | --inclu | --incl | --inc) | |
1057 | ac_prev=includedir ;; | |
1058 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1059 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1060 | includedir=$ac_optarg ;; |
a0da8069 NN |
1061 | |
1062 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1063 | ac_prev=infodir ;; | |
1064 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1065 | infodir=$ac_optarg ;; |
a0da8069 NN |
1066 | |
1067 | -libdir | --libdir | --libdi | --libd) | |
1068 | ac_prev=libdir ;; | |
1069 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1070 | libdir=$ac_optarg ;; |
a0da8069 NN |
1071 | |
1072 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1073 | | --libexe | --libex | --libe) | |
1074 | ac_prev=libexecdir ;; | |
1075 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1076 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1077 | libexecdir=$ac_optarg ;; |
a0da8069 | 1078 | |
81ecdfbb RW |
1079 | -localedir | --localedir | --localedi | --localed | --locale) |
1080 | ac_prev=localedir ;; | |
1081 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1082 | localedir=$ac_optarg ;; | |
1083 | ||
a0da8069 | 1084 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1085 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1086 | ac_prev=localstatedir ;; |
1087 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1088 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1089 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1090 | |
1091 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1092 | ac_prev=mandir ;; | |
1093 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1094 | mandir=$ac_optarg ;; |
a0da8069 NN |
1095 | |
1096 | -nfp | --nfp | --nf) | |
1097 | # Obsolete; use --without-fp. | |
1098 | with_fp=no ;; | |
1099 | ||
1100 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1101 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1102 | no_create=yes ;; |
1103 | ||
1104 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1105 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1106 | no_recursion=yes ;; | |
1107 | ||
1108 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1109 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1110 | | --oldin | --oldi | --old | --ol | --o) | |
1111 | ac_prev=oldincludedir ;; | |
1112 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1113 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1114 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1115 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1116 | |
1117 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1118 | ac_prev=prefix ;; | |
1119 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1120 | prefix=$ac_optarg ;; |
a0da8069 NN |
1121 | |
1122 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1123 | | --program-pre | --program-pr | --program-p) | |
1124 | ac_prev=program_prefix ;; | |
1125 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1126 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1127 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1128 | |
1129 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1130 | | --program-suf | --program-su | --program-s) | |
1131 | ac_prev=program_suffix ;; | |
1132 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1133 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1134 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1135 | |
1136 | -program-transform-name | --program-transform-name \ | |
1137 | | --program-transform-nam | --program-transform-na \ | |
1138 | | --program-transform-n | --program-transform- \ | |
1139 | | --program-transform | --program-transfor \ | |
1140 | | --program-transfo | --program-transf \ | |
1141 | | --program-trans | --program-tran \ | |
1142 | | --progr-tra | --program-tr | --program-t) | |
1143 | ac_prev=program_transform_name ;; | |
1144 | -program-transform-name=* | --program-transform-name=* \ | |
1145 | | --program-transform-nam=* | --program-transform-na=* \ | |
1146 | | --program-transform-n=* | --program-transform-=* \ | |
1147 | | --program-transform=* | --program-transfor=* \ | |
1148 | | --program-transfo=* | --program-transf=* \ | |
1149 | | --program-trans=* | --program-tran=* \ | |
1150 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1151 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1152 | |
81ecdfbb RW |
1153 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1154 | ac_prev=pdfdir ;; | |
1155 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1156 | pdfdir=$ac_optarg ;; | |
1157 | ||
1158 | -psdir | --psdir | --psdi | --psd | --ps) | |
1159 | ac_prev=psdir ;; | |
1160 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1161 | psdir=$ac_optarg ;; | |
1162 | ||
a0da8069 NN |
1163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1164 | | -silent | --silent | --silen | --sile | --sil) | |
1165 | silent=yes ;; | |
1166 | ||
1167 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1168 | ac_prev=sbindir ;; | |
1169 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1170 | | --sbi=* | --sb=*) | |
c6b750e1 | 1171 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1172 | |
1173 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1174 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1175 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1176 | | --sha | --sh) | |
1177 | ac_prev=sharedstatedir ;; | |
1178 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1179 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1180 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1181 | | --sha=* | --sh=*) | |
c6b750e1 | 1182 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1183 | |
1184 | -site | --site | --sit) | |
1185 | ac_prev=site ;; | |
1186 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1187 | site=$ac_optarg ;; |
a0da8069 NN |
1188 | |
1189 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1190 | ac_prev=srcdir ;; | |
1191 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1192 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1193 | |
1194 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1195 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1196 | ac_prev=sysconfdir ;; | |
1197 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1198 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1199 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1200 | |
1201 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1202 | ac_prev=target_alias ;; |
a0da8069 | 1203 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1204 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1205 | |
1206 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1207 | verbose=yes ;; | |
1208 | ||
c6b750e1 DJ |
1209 | -version | --version | --versio | --versi | --vers | -V) |
1210 | ac_init_version=: ;; | |
a0da8069 NN |
1211 | |
1212 | -with-* | --with-*) | |
81ecdfbb | 1213 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1214 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1215 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1216 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1217 | ac_useropt_orig=$ac_useropt |
1218 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1219 | case $ac_user_opts in | |
1220 | *" | |
1221 | "with_$ac_useropt" | |
1222 | "*) ;; | |
1223 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1224 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1225 | esac |
81ecdfbb | 1226 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1227 | |
1228 | -without-* | --without-*) | |
81ecdfbb | 1229 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1230 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1231 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1232 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1233 | ac_useropt_orig=$ac_useropt |
1234 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1235 | case $ac_user_opts in | |
1236 | *" | |
1237 | "with_$ac_useropt" | |
1238 | "*) ;; | |
1239 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1240 | ac_unrecognized_sep=', ';; | |
1241 | esac | |
1242 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1243 | |
1244 | --x) | |
1245 | # Obsolete; use --with-x. | |
1246 | with_x=yes ;; | |
1247 | ||
1248 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1249 | | --x-incl | --x-inc | --x-in | --x-i) | |
1250 | ac_prev=x_includes ;; | |
1251 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1252 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1253 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1254 | |
1255 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1256 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1257 | ac_prev=x_libraries ;; | |
1258 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1259 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1260 | x_libraries=$ac_optarg ;; |
a0da8069 | 1261 | |
d0ac1c44 SM |
1262 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1263 | Try \`$0 --help' for more information" | |
a0da8069 NN |
1264 | ;; |
1265 | ||
c6b750e1 DJ |
1266 | *=*) |
1267 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1268 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1269 | case $ac_envvar in #( |
1270 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1271 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1272 | esac |
1273 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1274 | export $ac_envvar ;; |
1275 | ||
a0da8069 | 1276 | *) |
c6b750e1 | 1277 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1278 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1279 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1280 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1281 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
a0da8069 NN |
1282 | ;; |
1283 | ||
1284 | esac | |
1285 | done | |
1286 | ||
1287 | if test -n "$ac_prev"; then | |
c6b750e1 | 1288 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1289 | as_fn_error $? "missing argument to $ac_option" |
a0da8069 | 1290 | fi |
a0da8069 | 1291 | |
81ecdfbb RW |
1292 | if test -n "$ac_unrecognized_opts"; then |
1293 | case $enable_option_checking in | |
1294 | no) ;; | |
d0ac1c44 | 1295 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1296 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
c6b750e1 | 1297 | esac |
81ecdfbb | 1298 | fi |
a0da8069 | 1299 | |
81ecdfbb RW |
1300 | # Check all directory arguments for consistency. |
1301 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1302 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1303 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1304 | libdir localedir mandir | |
a0da8069 | 1305 | do |
81ecdfbb RW |
1306 | eval ac_val=\$$ac_var |
1307 | # Remove trailing slashes. | |
1308 | case $ac_val in | |
1309 | */ ) | |
1310 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1311 | eval $ac_var=\$ac_val;; | |
1312 | esac | |
1313 | # Be sure to have absolute directory names. | |
c6b750e1 | 1314 | case $ac_val in |
81ecdfbb RW |
1315 | [\\/$]* | ?:[\\/]* ) continue;; |
1316 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1317 | esac |
d0ac1c44 | 1318 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1319 | done |
1320 | ||
c6b750e1 DJ |
1321 | # There might be people who depend on the old broken behavior: `$host' |
1322 | # used to hold the argument of --host etc. | |
1323 | # FIXME: To remove some day. | |
1324 | build=$build_alias | |
1325 | host=$host_alias | |
1326 | target=$target_alias | |
376a0e54 | 1327 | |
c6b750e1 DJ |
1328 | # FIXME: To remove some day. |
1329 | if test "x$host_alias" != x; then | |
1330 | if test "x$build_alias" = x; then | |
1331 | cross_compiling=maybe | |
c6b750e1 DJ |
1332 | elif test "x$build_alias" != "x$host_alias"; then |
1333 | cross_compiling=yes | |
1334 | fi | |
1335 | fi | |
1336 | ||
1337 | ac_tool_prefix= | |
1338 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1339 | ||
1340 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1341 | |
a0da8069 | 1342 | |
81ecdfbb RW |
1343 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1344 | ac_ls_di=`ls -di .` && | |
1345 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1346 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1347 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1348 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1349 | |
1350 | ||
a0da8069 NN |
1351 | # Find the source files, if location was not specified. |
1352 | if test -z "$srcdir"; then | |
1353 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1354 | # Try the directory containing this script, then the parent directory. |
1355 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1356 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1357 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1358 | X"$as_myself" : 'X\(//\)$' \| \ | |
1359 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1360 | $as_echo X"$as_myself" | | |
1361 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1362 | s//\1/ | |
1363 | q | |
1364 | } | |
1365 | /^X\(\/\/\)[^/].*/{ | |
1366 | s//\1/ | |
1367 | q | |
1368 | } | |
1369 | /^X\(\/\/\)$/{ | |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | /^X\(\/\).*/{ | |
1374 | s//\1/ | |
1375 | q | |
1376 | } | |
1377 | s/.*/./; q'` | |
a0da8069 | 1378 | srcdir=$ac_confdir |
81ecdfbb | 1379 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1380 | srcdir=.. |
1381 | fi | |
1382 | else | |
1383 | ac_srcdir_defaulted=no | |
1384 | fi | |
81ecdfbb RW |
1385 | if test ! -r "$srcdir/$ac_unique_file"; then |
1386 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1387 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1388 | fi |
1389 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1390 | ac_abs_confdir=`( | |
d0ac1c44 | 1391 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1392 | pwd)` |
1393 | # When building in place, set srcdir=. | |
1394 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1395 | srcdir=. | |
1396 | fi | |
1397 | # Remove unnecessary trailing slashes from srcdir. | |
1398 | # Double slashes in file names in object file debugging info | |
1399 | # mess up M-x gdb in Emacs. | |
1400 | case $srcdir in | |
1401 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1402 | esac | |
6d0cd39e AM |
1403 | case $srcdir in |
1404 | *" "*) | |
d0ac1c44 | 1405 | as_fn_error $? "path to source, $srcdir, contains spaces" |
6d0cd39e AM |
1406 | ;; |
1407 | esac | |
9cc8ae67 PB |
1408 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1409 | ||
81ecdfbb RW |
1410 | for ac_var in $ac_precious_vars; do |
1411 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1412 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1413 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1414 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1415 | done | |
c6b750e1 DJ |
1416 | |
1417 | # | |
1418 | # Report the --help message. | |
1419 | # | |
1420 | if test "$ac_init_help" = "long"; then | |
1421 | # Omit some internal or obsolete options to make the list less imposing. | |
1422 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1423 | cat <<_ACEOF | |
1424 | \`configure' configures this package to adapt to many kinds of systems. | |
1425 | ||
1426 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1427 | ||
1428 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1429 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1430 | ||
1431 | Defaults for the options are specified in brackets. | |
1432 | ||
1433 | Configuration: | |
1434 | -h, --help display this help and exit | |
1435 | --help=short display options specific to this package | |
1436 | --help=recursive display the short help of all the included packages | |
1437 | -V, --version display version information and exit | |
d0ac1c44 | 1438 | -q, --quiet, --silent do not print \`checking ...' messages |
c6b750e1 DJ |
1439 | --cache-file=FILE cache test results in FILE [disabled] |
1440 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1441 | -n, --no-create do not create output files | |
1442 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1443 | ||
c6b750e1 DJ |
1444 | Installation directories: |
1445 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1446 | [$ac_default_prefix] |
c6b750e1 | 1447 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1448 | [PREFIX] |
c6b750e1 DJ |
1449 | |
1450 | By default, \`make install' will install all the files in | |
1451 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1452 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1453 | for instance \`--prefix=\$HOME'. | |
1454 | ||
1455 | For better control, use the options below. | |
1456 | ||
1457 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1458 | --bindir=DIR user executables [EPREFIX/bin] |
1459 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1460 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1461 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1462 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1463 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1464 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1465 | --includedir=DIR C header files [PREFIX/include] | |
1466 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1467 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1468 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1469 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1470 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1471 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1472 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1473 | --htmldir=DIR html documentation [DOCDIR] | |
1474 | --dvidir=DIR dvi documentation [DOCDIR] | |
1475 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1476 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1477 | _ACEOF |
1478 | ||
1479 | cat <<\_ACEOF | |
1480 | ||
1481 | Program names: | |
1482 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1483 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1484 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1485 | ||
1486 | System types: | |
1487 | --build=BUILD configure for building on BUILD [guessed] | |
1488 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1489 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1490 | _ACEOF | |
a0da8069 | 1491 | fi |
a0da8069 | 1492 | |
c6b750e1 DJ |
1493 | if test -n "$ac_init_help"; then |
1494 | ||
1495 | cat <<\_ACEOF | |
1496 | ||
1497 | Optional Features: | |
81ecdfbb | 1498 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1499 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1500 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1501 | --enable-as-accelerator-for=ARG |
1502 | build as offload target compiler. Specify offload | |
1503 | host triple by ARG | |
1504 | --enable-offload-targets=LIST | |
1505 | enable offloading to devices from comma-separated | |
1506 | LIST of TARGET[=DIR]. Use optional path to find | |
1507 | offload target compiler during the build | |
c7791212 | 1508 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1509 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
6c3bc0f8 | 1510 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1511 | Enable compressed debug sections for gas, gold or ld |
1512 | by default | |
89a1e9c3 PB |
1513 | --disable-libquadmath do not build libquadmath directory |
1514 | --disable-libquadmath-support | |
1515 | disable libquadmath support for Fortran | |
521ec477 DD |
1516 | --enable-libada build libada directory |
1517 | --enable-libssp build libssp directory | |
f66a9a70 | 1518 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1519 | --enable-liboffloadmic=ARG |
1520 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1521 | --enable-bootstrap enable bootstrapping [yes if native build] |
7ec59b9e | 1522 | --disable-isl-version-check |
4849dfd8 | 1523 | disable check for isl version |
700d40ca | 1524 | --enable-lto enable link time optimization support |
1b6c0831 L |
1525 | --enable-linker-plugin-configure-flags=FLAGS |
1526 | additional flags for configuring linker plugins | |
1527 | [none] | |
1528 | --enable-linker-plugin-flags=FLAGS | |
1529 | additional flags for configuring and building linker | |
1530 | plugins [none] | |
bf41f30d | 1531 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1532 | --enable-stage1-languages[=all] |
1533 | choose additional languages to build during stage1. | |
1534 | Mostly useful for compiler development | |
1535 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1536 | Objective-C runtime | |
ce6c656d | 1537 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1538 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1539 | force sequential configuration of sub-packages for |
1540 | the host, target or build machine, or all | |
1541 | sub-packages | |
1542 | --enable-maintainer-mode | |
1543 | enable make rules and dependencies not useful (and | |
1544 | sometimes confusing) to the casual installer | |
1545 | --enable-stage1-checking[=all] | |
1546 | choose additional checking for stage1 of the | |
1547 | compiler | |
c6b750e1 DJ |
1548 | --enable-werror enable -Werror in bootstrap stage2 and later |
1549 | ||
1550 | Optional Packages: | |
1551 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1552 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1553 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1554 | --with-system-zlib use installed libz |
7837304f AS |
1555 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1556 | Equivalent to --with-mpc-include=PATH/include plus | |
1557 | --with-mpc-lib=PATH/lib | |
1558 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1559 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1560 | --with-mpfr-dir=PATH this option has been REMOVED |
1561 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1562 | Equivalent to --with-mpfr-include=PATH/include plus |
1563 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1564 | --with-mpfr-include=PATH |
521ec477 DD |
1565 | specify directory for installed MPFR include files |
1566 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1567 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1568 | --with-gmp=PATH specify prefix directory for the installed GMP |
1569 | package. Equivalent to | |
1570 | --with-gmp-include=PATH/include plus | |
1571 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1572 | --with-gmp-include=PATH specify directory for installed GMP include files |
1573 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1574 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1575 | --with-stage1-ldflags=FLAGS |
1576 | linker flags for stage1 | |
7837304f AS |
1577 | --with-boot-libs=LIBS libraries for stage2 and later |
1578 | --with-boot-ldflags=FLAGS | |
1579 | linker flags for stage2 and later | |
4849dfd8 | 1580 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1581 | package. Equivalent to |
7ec59b9e L |
1582 | --with-isl-include=PATH/include plus |
1583 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1584 | --with-isl-include=PATH Specify directory for installed isl include files |
1585 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1586 | --with-target-bdw-gc=PATHLIST |
1587 | specify prefix directory for installed bdw-gc | |
1588 | package. Equivalent to | |
1589 | --with-target-bdw-gc-include=PATH/include plus | |
1590 | --with-target-bdw-gc-lib=PATH/lib | |
1591 | --with-target-bdw-gc-include=PATHLIST | |
1592 | specify directories for installed bdw-gc include | |
1593 | files | |
1594 | --with-target-bdw-gc-lib=PATHLIST | |
1595 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1596 | --with-gcc-major-version-only |
1597 | use only GCC major number in filesystem paths | |
521ec477 | 1598 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1599 | use sysroot as the system root during the build |
8a6ee3ab | 1600 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1601 | map A to B, C to D ... in debug information |
1602 | --with-build-config='NAME NAME2...' | |
1603 | use config/NAME.mk build configuration | |
521ec477 | 1604 | --with-build-time-tools=PATH |
c6b750e1 | 1605 | use given path to find target tools during the build |
c6b750e1 DJ |
1606 | |
1607 | Some influential environment variables: | |
1608 | CC C compiler command | |
1609 | CFLAGS C compiler flags | |
1610 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1611 | nonstandard directory <lib dir> | |
81ecdfbb | 1612 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1613 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1614 | you have headers in a nonstandard directory <include dir> |
18f6b6ee PB |
1615 | CXX C++ compiler command |
1616 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1617 | build_configargs |
1618 | additional configure arguments for build directories | |
1619 | host_configargs | |
1620 | additional configure arguments for host directories | |
1621 | target_configargs | |
1622 | additional configure arguments for target directories | |
9a819804 AO |
1623 | AR AR for the host |
1624 | AS AS for the host | |
1625 | DLLTOOL DLLTOOL for the host | |
1626 | LD LD for the host | |
1627 | LIPO LIPO for the host | |
1628 | NM NM for the host | |
1629 | RANLIB RANLIB for the host | |
1630 | STRIP STRIP for the host | |
1631 | WINDRES WINDRES for the host | |
0c24b341 | 1632 | WINDMC WINDMC for the host |
9a819804 AO |
1633 | OBJCOPY OBJCOPY for the host |
1634 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1635 | READELF READELF for the host |
9a819804 AO |
1636 | CC_FOR_TARGET |
1637 | CC for the target | |
1638 | CXX_FOR_TARGET | |
1639 | CXX for the target | |
1640 | GCC_FOR_TARGET | |
1641 | GCC for the target | |
9a819804 AO |
1642 | GFORTRAN_FOR_TARGET |
1643 | GFORTRAN for the target | |
e552509b ILT |
1644 | GOC_FOR_TARGET |
1645 | GOC for the target | |
9a819804 AO |
1646 | AR_FOR_TARGET |
1647 | AR for the target | |
1648 | AS_FOR_TARGET | |
1649 | AS for the target | |
1650 | DLLTOOL_FOR_TARGET | |
1651 | DLLTOOL for the target | |
1652 | LD_FOR_TARGET | |
1653 | LD for the target | |
1654 | LIPO_FOR_TARGET | |
1655 | LIPO for the target | |
1656 | NM_FOR_TARGET | |
1657 | NM for the target | |
6b91c541 AP |
1658 | OBJCOPY_FOR_TARGET |
1659 | OBJCOPY for the target | |
9a819804 AO |
1660 | OBJDUMP_FOR_TARGET |
1661 | OBJDUMP for the target | |
1662 | RANLIB_FOR_TARGET | |
1663 | RANLIB for the target | |
b121d7d4 DD |
1664 | READELF_FOR_TARGET |
1665 | READELF for the target | |
9a819804 AO |
1666 | STRIP_FOR_TARGET |
1667 | STRIP for the target | |
1668 | WINDRES_FOR_TARGET | |
1669 | WINDRES for the target | |
0c24b341 NC |
1670 | WINDMC_FOR_TARGET |
1671 | WINDMC for the target | |
c6b750e1 DJ |
1672 | |
1673 | Use these variables to override the choices made by `configure' or to help | |
1674 | it to find libraries and programs with nonstandard names/locations. | |
1675 | ||
81ecdfbb | 1676 | Report bugs to the package provider. |
c6b750e1 | 1677 | _ACEOF |
81ecdfbb | 1678 | ac_status=$? |
c6b750e1 DJ |
1679 | fi |
1680 | ||
1681 | if test "$ac_init_help" = "recursive"; then | |
1682 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1683 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1684 | test -d "$ac_dir" || |
1685 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1686 | continue | |
c6b750e1 DJ |
1687 | ac_builddir=. |
1688 | ||
81ecdfbb RW |
1689 | case "$ac_dir" in |
1690 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1691 | *) | |
1692 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1693 | # A ".." for each directory in $ac_dir_suffix. | |
1694 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1695 | case $ac_top_builddir_sub in | |
1696 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1697 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1698 | esac ;; | |
1699 | esac | |
1700 | ac_abs_top_builddir=$ac_pwd | |
1701 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1702 | # for backward compatibility: | |
1703 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1704 | |
1705 | case $srcdir in | |
81ecdfbb | 1706 | .) # We are building in place. |
c6b750e1 | 1707 | ac_srcdir=. |
81ecdfbb RW |
1708 | ac_top_srcdir=$ac_top_builddir_sub |
1709 | ac_abs_top_srcdir=$ac_pwd ;; | |
1710 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1711 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1712 | ac_top_srcdir=$srcdir |
1713 | ac_abs_top_srcdir=$srcdir ;; | |
1714 | *) # Relative name. | |
1715 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1716 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1717 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1718 | esac |
81ecdfbb RW |
1719 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1720 | ||
1721 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1722 | # Check for guested configure. | |
1723 | if test -f "$ac_srcdir/configure.gnu"; then | |
1724 | echo && | |
1725 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1726 | elif test -f "$ac_srcdir/configure"; then | |
1727 | echo && | |
1728 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1729 | else |
81ecdfbb RW |
1730 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1731 | fi || ac_status=$? | |
1732 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1733 | done |
1734 | fi | |
1735 | ||
81ecdfbb | 1736 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1737 | if $ac_init_version; then |
1738 | cat <<\_ACEOF | |
81ecdfbb | 1739 | configure |
d0ac1c44 | 1740 | generated by GNU Autoconf 2.69 |
c6b750e1 | 1741 | |
d0ac1c44 | 1742 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
1743 | This configure script is free software; the Free Software Foundation |
1744 | gives unlimited permission to copy, distribute and modify it. | |
1745 | _ACEOF | |
81ecdfbb | 1746 | exit |
c6b750e1 | 1747 | fi |
81ecdfbb RW |
1748 | |
1749 | ## ------------------------ ## | |
1750 | ## Autoconf initialization. ## | |
1751 | ## ------------------------ ## | |
1752 | ||
1753 | # ac_fn_c_try_compile LINENO | |
1754 | # -------------------------- | |
1755 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1756 | ac_fn_c_try_compile () | |
1757 | { | |
1758 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1759 | rm -f conftest.$ac_objext | |
1760 | if { { ac_try="$ac_compile" | |
1761 | case "(($ac_try" in | |
1762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1763 | *) ac_try_echo=$ac_try;; | |
1764 | esac | |
1765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1766 | $as_echo "$ac_try_echo"; } >&5 | |
1767 | (eval "$ac_compile") 2>conftest.err | |
1768 | ac_status=$? | |
1769 | if test -s conftest.err; then | |
1770 | grep -v '^ *+' conftest.err >conftest.er1 | |
1771 | cat conftest.er1 >&5 | |
1772 | mv -f conftest.er1 conftest.err | |
1773 | fi | |
1774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1775 | test $ac_status = 0; } && { | |
1776 | test -z "$ac_c_werror_flag" || | |
1777 | test ! -s conftest.err | |
1778 | } && test -s conftest.$ac_objext; then : | |
1779 | ac_retval=0 | |
1780 | else | |
1781 | $as_echo "$as_me: failed program was:" >&5 | |
1782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1783 | ||
1784 | ac_retval=1 | |
1785 | fi | |
d0ac1c44 SM |
1786 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1787 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1788 | |
1789 | } # ac_fn_c_try_compile | |
1790 | ||
1791 | # ac_fn_cxx_try_compile LINENO | |
1792 | # ---------------------------- | |
1793 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1794 | ac_fn_cxx_try_compile () | |
1795 | { | |
1796 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1797 | rm -f conftest.$ac_objext | |
1798 | if { { ac_try="$ac_compile" | |
1799 | case "(($ac_try" in | |
1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1801 | *) ac_try_echo=$ac_try;; | |
1802 | esac | |
1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1804 | $as_echo "$ac_try_echo"; } >&5 | |
1805 | (eval "$ac_compile") 2>conftest.err | |
1806 | ac_status=$? | |
1807 | if test -s conftest.err; then | |
1808 | grep -v '^ *+' conftest.err >conftest.er1 | |
1809 | cat conftest.er1 >&5 | |
1810 | mv -f conftest.er1 conftest.err | |
1811 | fi | |
1812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1813 | test $ac_status = 0; } && { | |
1814 | test -z "$ac_cxx_werror_flag" || | |
1815 | test ! -s conftest.err | |
1816 | } && test -s conftest.$ac_objext; then : | |
1817 | ac_retval=0 | |
1818 | else | |
1819 | $as_echo "$as_me: failed program was:" >&5 | |
1820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1821 | ||
1822 | ac_retval=1 | |
1823 | fi | |
d0ac1c44 SM |
1824 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1825 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1826 | |
1827 | } # ac_fn_cxx_try_compile | |
1828 | ||
b3676d82 EB |
1829 | # ac_fn_cxx_try_link LINENO |
1830 | # ------------------------- | |
1831 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1832 | ac_fn_cxx_try_link () | |
1833 | { | |
1834 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1836 | if { { ac_try="$ac_link" | |
1837 | case "(($ac_try" in | |
1838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1839 | *) ac_try_echo=$ac_try;; | |
1840 | esac | |
1841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1842 | $as_echo "$ac_try_echo"; } >&5 | |
1843 | (eval "$ac_link") 2>conftest.err | |
1844 | ac_status=$? | |
1845 | if test -s conftest.err; then | |
1846 | grep -v '^ *+' conftest.err >conftest.er1 | |
1847 | cat conftest.er1 >&5 | |
1848 | mv -f conftest.er1 conftest.err | |
1849 | fi | |
1850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1851 | test $ac_status = 0; } && { | |
1852 | test -z "$ac_cxx_werror_flag" || | |
1853 | test ! -s conftest.err | |
1854 | } && test -s conftest$ac_exeext && { | |
1855 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1856 | test -x conftest$ac_exeext |
b3676d82 EB |
1857 | }; then : |
1858 | ac_retval=0 | |
1859 | else | |
1860 | $as_echo "$as_me: failed program was:" >&5 | |
1861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1862 | ||
1863 | ac_retval=1 | |
1864 | fi | |
1865 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1866 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1867 | # interfere with the next link command; also delete a directory that is | |
1868 | # left behind by Apple's compiler. We do this before executing the actions. | |
1869 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1870 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1871 | as_fn_set_status $ac_retval | |
b3676d82 EB |
1872 | |
1873 | } # ac_fn_cxx_try_link | |
1874 | ||
81ecdfbb RW |
1875 | # ac_fn_c_try_link LINENO |
1876 | # ----------------------- | |
1877 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1878 | ac_fn_c_try_link () | |
1879 | { | |
1880 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1882 | if { { ac_try="$ac_link" | |
1883 | case "(($ac_try" in | |
1884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1885 | *) ac_try_echo=$ac_try;; | |
1886 | esac | |
1887 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1888 | $as_echo "$ac_try_echo"; } >&5 | |
1889 | (eval "$ac_link") 2>conftest.err | |
1890 | ac_status=$? | |
1891 | if test -s conftest.err; then | |
1892 | grep -v '^ *+' conftest.err >conftest.er1 | |
1893 | cat conftest.er1 >&5 | |
1894 | mv -f conftest.er1 conftest.err | |
1895 | fi | |
1896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1897 | test $ac_status = 0; } && { | |
1898 | test -z "$ac_c_werror_flag" || | |
1899 | test ! -s conftest.err | |
1900 | } && test -s conftest$ac_exeext && { | |
1901 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1902 | test -x conftest$ac_exeext |
81ecdfbb RW |
1903 | }; then : |
1904 | ac_retval=0 | |
1905 | else | |
1906 | $as_echo "$as_me: failed program was:" >&5 | |
1907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1908 | ||
1909 | ac_retval=1 | |
1910 | fi | |
1911 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1912 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1913 | # interfere with the next link command; also delete a directory that is | |
1914 | # left behind by Apple's compiler. We do this before executing the actions. | |
1915 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1916 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1917 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1918 | |
1919 | } # ac_fn_c_try_link | |
1920 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1921 | This file contains any messages produced by compilers while |
1922 | running configure, to aid debugging if configure makes a mistake. | |
1923 | ||
1924 | It was created by $as_me, which was | |
d0ac1c44 | 1925 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
1926 | |
1927 | $ $0 $@ | |
1928 | ||
1929 | _ACEOF | |
81ecdfbb | 1930 | exec 5>>config.log |
c6b750e1 DJ |
1931 | { |
1932 | cat <<_ASUNAME | |
1933 | ## --------- ## | |
1934 | ## Platform. ## | |
1935 | ## --------- ## | |
1936 | ||
1937 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1938 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1939 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1940 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1941 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1942 | ||
1943 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1944 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1945 | ||
1946 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1947 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1948 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1949 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1950 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1951 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1952 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1953 | ||
1954 | _ASUNAME | |
1955 | ||
1956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1957 | for as_dir in $PATH | |
1958 | do | |
1959 | IFS=$as_save_IFS | |
1960 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1961 | $as_echo "PATH: $as_dir" |
1962 | done | |
1963 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1964 | |
1965 | } >&5 | |
1966 | ||
1967 | cat >&5 <<_ACEOF | |
1968 | ||
1969 | ||
1970 | ## ----------- ## | |
1971 | ## Core tests. ## | |
1972 | ## ----------- ## | |
1973 | ||
1974 | _ACEOF | |
1975 | ||
1976 | ||
1977 | # Keep a trace of the command line. | |
1978 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1979 | # Strip out --silent because we don't want to record it for future runs. | |
1980 | # Also quote any args containing shell meta-characters. | |
1981 | # Make two passes to allow for proper duplicate-argument suppression. | |
1982 | ac_configure_args= | |
1983 | ac_configure_args0= | |
1984 | ac_configure_args1= | |
c6b750e1 DJ |
1985 | ac_must_keep_next=false |
1986 | for ac_pass in 1 2 | |
1987 | do | |
1988 | for ac_arg | |
1989 | do | |
1990 | case $ac_arg in | |
1991 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1992 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1993 | | -silent | --silent | --silen | --sile | --sil) | |
1994 | continue ;; | |
81ecdfbb RW |
1995 | *\'*) |
1996 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1997 | esac |
1998 | case $ac_pass in | |
81ecdfbb | 1999 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 2000 | 2) |
81ecdfbb | 2001 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
2002 | if test $ac_must_keep_next = true; then |
2003 | ac_must_keep_next=false # Got value, back to normal. | |
2004 | else | |
2005 | case $ac_arg in | |
2006 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2007 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2008 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2009 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2010 | case "$ac_configure_args0 " in | |
2011 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2012 | esac | |
2013 | ;; | |
2014 | -* ) ac_must_keep_next=true ;; | |
2015 | esac | |
2016 | fi | |
81ecdfbb | 2017 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2018 | ;; |
2019 | esac | |
2020 | done | |
2021 | done | |
81ecdfbb RW |
2022 | { ac_configure_args0=; unset ac_configure_args0;} |
2023 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2024 | |
2025 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2026 | # config.log. We remove comments because anyway the quotes in there | |
2027 | # would cause problems or look ugly. | |
81ecdfbb RW |
2028 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2029 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2030 | trap 'exit_status=$? |
2031 | # Save into config.log some information that might help in debugging. | |
2032 | { | |
2033 | echo | |
2034 | ||
d0ac1c44 | 2035 | $as_echo "## ---------------- ## |
c6b750e1 | 2036 | ## Cache variables. ## |
d0ac1c44 | 2037 | ## ---------------- ##" |
c6b750e1 DJ |
2038 | echo |
2039 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2040 | ( |
2041 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2042 | eval ac_val=\$$ac_var | |
2043 | case $ac_val in #( | |
2044 | *${as_nl}*) | |
2045 | case $ac_var in #( | |
2046 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2047 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2048 | esac | |
2049 | case $ac_var in #( | |
2050 | _ | IFS | as_nl) ;; #( | |
2051 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2052 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2053 | esac ;; | |
2054 | esac | |
2055 | done | |
c6b750e1 | 2056 | (set) 2>&1 | |
81ecdfbb RW |
2057 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2058 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2059 | sed -n \ |
81ecdfbb RW |
2060 | "s/'\''/'\''\\\\'\'''\''/g; |
2061 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2062 | ;; #( | |
c6b750e1 | 2063 | *) |
81ecdfbb | 2064 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2065 | ;; |
81ecdfbb RW |
2066 | esac | |
2067 | sort | |
2068 | ) | |
c6b750e1 DJ |
2069 | echo |
2070 | ||
d0ac1c44 | 2071 | $as_echo "## ----------------- ## |
c6b750e1 | 2072 | ## Output variables. ## |
d0ac1c44 | 2073 | ## ----------------- ##" |
c6b750e1 DJ |
2074 | echo |
2075 | for ac_var in $ac_subst_vars | |
2076 | do | |
81ecdfbb RW |
2077 | eval ac_val=\$$ac_var |
2078 | case $ac_val in | |
2079 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2080 | esac | |
2081 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2082 | done | sort |
2083 | echo | |
2084 | ||
2085 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2086 | $as_echo "## ------------------- ## |
81ecdfbb | 2087 | ## File substitutions. ## |
d0ac1c44 | 2088 | ## ------------------- ##" |
c6b750e1 DJ |
2089 | echo |
2090 | for ac_var in $ac_subst_files | |
2091 | do | |
81ecdfbb RW |
2092 | eval ac_val=\$$ac_var |
2093 | case $ac_val in | |
2094 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2095 | esac | |
2096 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2097 | done | sort |
2098 | echo | |
2099 | fi | |
2100 | ||
2101 | if test -s confdefs.h; then | |
d0ac1c44 | 2102 | $as_echo "## ----------- ## |
c6b750e1 | 2103 | ## confdefs.h. ## |
d0ac1c44 | 2104 | ## ----------- ##" |
c6b750e1 | 2105 | echo |
81ecdfbb | 2106 | cat confdefs.h |
c6b750e1 DJ |
2107 | echo |
2108 | fi | |
2109 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2110 | $as_echo "$as_me: caught signal $ac_signal" |
2111 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2112 | } >&5 |
81ecdfbb RW |
2113 | rm -f core *.core core.conftest.* && |
2114 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2115 | exit $exit_status |
81ecdfbb | 2116 | ' 0 |
c6b750e1 | 2117 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2118 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2119 | done |
2120 | ac_signal=0 | |
2121 | ||
2122 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2123 | rm -f -r conftest* confdefs.h |
2124 | ||
2125 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2126 | |
2127 | # Predefined preprocessor variables. | |
2128 | ||
2129 | cat >>confdefs.h <<_ACEOF | |
2130 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2131 | _ACEOF | |
2132 | ||
c6b750e1 DJ |
2133 | cat >>confdefs.h <<_ACEOF |
2134 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2135 | _ACEOF | |
2136 | ||
c6b750e1 DJ |
2137 | cat >>confdefs.h <<_ACEOF |
2138 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2139 | _ACEOF | |
2140 | ||
c6b750e1 DJ |
2141 | cat >>confdefs.h <<_ACEOF |
2142 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2143 | _ACEOF | |
2144 | ||
c6b750e1 DJ |
2145 | cat >>confdefs.h <<_ACEOF |
2146 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2147 | _ACEOF | |
2148 | ||
81ecdfbb RW |
2149 | cat >>confdefs.h <<_ACEOF |
2150 | #define PACKAGE_URL "$PACKAGE_URL" | |
2151 | _ACEOF | |
2152 | ||
c6b750e1 DJ |
2153 | |
2154 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2155 | # Prefer an explicitly selected file to automatically selected ones. |
2156 | ac_site_file1=NONE | |
2157 | ac_site_file2=NONE | |
2158 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2159 | # We do not want a PATH search for config.site. |
2160 | case $CONFIG_SITE in #(( | |
2161 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2162 | */*) ac_site_file1=$CONFIG_SITE;; | |
2163 | *) ac_site_file1=./$CONFIG_SITE;; | |
2164 | esac | |
81ecdfbb RW |
2165 | elif test "x$prefix" != xNONE; then |
2166 | ac_site_file1=$prefix/share/config.site | |
2167 | ac_site_file2=$prefix/etc/config.site | |
2168 | else | |
2169 | ac_site_file1=$ac_default_prefix/share/config.site | |
2170 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2171 | fi |
81ecdfbb RW |
2172 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2173 | do | |
2174 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2175 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2177 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2178 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2179 | . "$ac_site_file" \ |
2180 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2182 | as_fn_error $? "failed to load site script $ac_site_file | |
2183 | See \`config.log' for more details" "$LINENO" 5; } | |
a0da8069 NN |
2184 | fi |
2185 | done | |
2186 | ||
2187 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2188 | # Some versions of bash will fail to source /dev/null (special files |
2189 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2190 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2192 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2193 | case $cache_file in |
81ecdfbb RW |
2194 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2195 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2196 | esac |
2197 | fi | |
a0da8069 | 2198 | else |
81ecdfbb RW |
2199 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2200 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2201 | >$cache_file |
2202 | fi | |
2203 | ||
2204 | # Check that the precious variables saved in the cache have kept the same | |
2205 | # value. | |
2206 | ac_cache_corrupted=false | |
81ecdfbb | 2207 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2208 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2209 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2210 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2211 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2212 | case $ac_old_set,$ac_new_set in |
2213 | set,) | |
81ecdfbb RW |
2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2215 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2216 | ac_cache_corrupted=: ;; |
2217 | ,set) | |
81ecdfbb RW |
2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2219 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2220 | ac_cache_corrupted=: ;; |
2221 | ,);; | |
2222 | *) | |
2223 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2224 | # differences in whitespace do not lead to failure. |
2225 | ac_old_val_w=`echo x $ac_old_val` | |
2226 | ac_new_val_w=`echo x $ac_new_val` | |
2227 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2228 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2229 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2230 | ac_cache_corrupted=: | |
2231 | else | |
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2233 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2234 | eval $ac_var=\$ac_old_val | |
2235 | fi | |
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2237 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2239 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2240 | fi;; |
2241 | esac | |
2242 | # Pass precious variables to config.status. | |
2243 | if test "$ac_new_set" = set; then | |
2244 | case $ac_new_val in | |
81ecdfbb | 2245 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2246 | *) ac_arg=$ac_var=$ac_new_val ;; |
2247 | esac | |
2248 | case " $ac_configure_args " in | |
2249 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2250 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2251 | esac |
2252 | fi | |
2253 | done | |
2254 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2256 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2258 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2259 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
a0da8069 | 2260 | fi |
81ecdfbb RW |
2261 | ## -------------------- ## |
2262 | ## Main body of script. ## | |
2263 | ## -------------------- ## | |
a0da8069 NN |
2264 | |
2265 | ac_ext=c | |
a0da8069 | 2266 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2267 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2268 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2269 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2270 | ||
2271 | ||
2272 | ||
2273 | ||
c6b750e1 DJ |
2274 | |
2275 | ||
34a0f3cf | 2276 | |
c6b750e1 | 2277 | |
5b553f7e RW |
2278 | |
2279 | progname=$0 | |
2280 | # if PWD already has a value, it is probably wrong. | |
2281 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2282 | ||
2283 | # Export original configure arguments for use by sub-configures. | |
2284 | # Quote arguments with shell meta charatcers. | |
2285 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2286 | set -- "$progname" "$@" | |
2287 | for ac_arg | |
2288 | do | |
2289 | case "$ac_arg" in | |
2290 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2291 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2292 | # if the argument is of the form -foo=baz, quote the baz part only | |
2293 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2294 | *) ;; | |
2295 | esac | |
2296 | # Add the quoted argument to the list. | |
2297 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2298 | done | |
2299 | if test "$silent" = yes; then | |
2300 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2301 | fi | |
2302 | # Remove the initial space we just introduced and, as these will be | |
2303 | # expanded by make, quote '$'. | |
2304 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2305 | ||
c6b750e1 DJ |
2306 | |
2307 | # Find the build, host, and target systems. | |
a0da8069 | 2308 | ac_aux_dir= |
81ecdfbb | 2309 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2310 | if test -f "$ac_dir/install-sh"; then |
2311 | ac_aux_dir=$ac_dir | |
2312 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2313 | break | |
2314 | elif test -f "$ac_dir/install.sh"; then | |
2315 | ac_aux_dir=$ac_dir | |
2316 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2317 | break | |
2318 | elif test -f "$ac_dir/shtool"; then | |
2319 | ac_aux_dir=$ac_dir | |
2320 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2321 | break | |
2322 | fi | |
a0da8069 NN |
2323 | done |
2324 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2325 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2326 | fi |
81ecdfbb RW |
2327 | |
2328 | # These three variables are undocumented and unsupported, | |
2329 | # and are intended to be withdrawn in a future Autoconf release. | |
2330 | # They can cause serious problems if a builder's source tree is in a directory | |
2331 | # whose full name contains unusual characters. | |
2332 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2333 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2334 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2335 | ||
a0da8069 | 2336 | |
c6b750e1 | 2337 | # Make sure we can run config.sub. |
81ecdfbb | 2338 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2339 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2340 | |
2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2342 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2343 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2344 | $as_echo_n "(cached) " >&6 |
2345 | else | |
2346 | ac_build_alias=$build_alias | |
2347 | test "x$ac_build_alias" = x && | |
2348 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2349 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2350 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2351 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2352 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2353 | |
2354 | fi | |
2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2356 | $as_echo "$ac_cv_build" >&6; } | |
2357 | case $ac_cv_build in | |
2358 | *-*-*) ;; | |
d0ac1c44 | 2359 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2360 | esac |
c6b750e1 | 2361 | build=$ac_cv_build |
81ecdfbb RW |
2362 | ac_save_IFS=$IFS; IFS='-' |
2363 | set x $ac_cv_build | |
2364 | shift | |
2365 | build_cpu=$1 | |
2366 | build_vendor=$2 | |
2367 | shift; shift | |
2368 | # Remember, the first character of IFS is used to create $*, | |
2369 | # except with old shells: | |
2370 | build_os=$* | |
2371 | IFS=$ac_save_IFS | |
2372 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2373 | |
a0da8069 | 2374 | |
c6b750e1 DJ |
2375 | case ${build_alias} in |
2376 | "") build_noncanonical=${build} ;; | |
2377 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2378 | esac |
2379 | ||
2380 | ||
cac3d6c4 | 2381 | |
c6b750e1 DJ |
2382 | case ${host_alias} in |
2383 | "") host_noncanonical=${build_noncanonical} ;; | |
2384 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2385 | esac |
2386 | ||
cac3d6c4 | 2387 | |
c6b750e1 DJ |
2388 | |
2389 | case ${target_alias} in | |
2390 | "") target_noncanonical=${host_noncanonical} ;; | |
2391 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2392 | esac |
2393 | ||
cac3d6c4 | 2394 | |
c6b750e1 DJ |
2395 | |
2396 | ||
2397 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2398 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2399 | NONENONEs,x,x, && | |
c6b750e1 | 2400 | program_transform_name=s,y,y, |
cac3d6c4 | 2401 | |
81ecdfbb RW |
2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2403 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2404 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2405 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 2406 | else |
81ecdfbb RW |
2407 | if test "x$host_alias" = x; then |
2408 | ac_cv_host=$ac_cv_build | |
2409 | else | |
2410 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2411 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2412 | fi |
c6b750e1 DJ |
2413 | |
2414 | fi | |
81ecdfbb RW |
2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2416 | $as_echo "$ac_cv_host" >&6; } | |
2417 | case $ac_cv_host in | |
2418 | *-*-*) ;; | |
d0ac1c44 | 2419 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2420 | esac |
c6b750e1 | 2421 | host=$ac_cv_host |
81ecdfbb RW |
2422 | ac_save_IFS=$IFS; IFS='-' |
2423 | set x $ac_cv_host | |
2424 | shift | |
2425 | host_cpu=$1 | |
2426 | host_vendor=$2 | |
2427 | shift; shift | |
2428 | # Remember, the first character of IFS is used to create $*, | |
2429 | # except with old shells: | |
2430 | host_os=$* | |
2431 | IFS=$ac_save_IFS | |
2432 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2433 | |
2434 | ||
81ecdfbb RW |
2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2436 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2437 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2438 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 2439 | else |
81ecdfbb RW |
2440 | if test "x$target_alias" = x; then |
2441 | ac_cv_target=$ac_cv_host | |
2442 | else | |
2443 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2444 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2445 | fi |
c6b750e1 | 2446 | |
cac3d6c4 | 2447 | fi |
81ecdfbb RW |
2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2449 | $as_echo "$ac_cv_target" >&6; } | |
2450 | case $ac_cv_target in | |
2451 | *-*-*) ;; | |
d0ac1c44 | 2452 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2453 | esac |
c6b750e1 | 2454 | target=$ac_cv_target |
81ecdfbb RW |
2455 | ac_save_IFS=$IFS; IFS='-' |
2456 | set x $ac_cv_target | |
2457 | shift | |
2458 | target_cpu=$1 | |
2459 | target_vendor=$2 | |
2460 | shift; shift | |
2461 | # Remember, the first character of IFS is used to create $*, | |
2462 | # except with old shells: | |
2463 | target_os=$* | |
2464 | IFS=$ac_save_IFS | |
2465 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2466 | |
2467 | ||
2468 | # The aliases save the names the user supplied, while $host etc. | |
2469 | # will get canonicalized. | |
2470 | test -n "$target_alias" && | |
2471 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2472 | NONENONEs,x,x, && | |
2473 | program_prefix=${target_alias}- | |
81ecdfbb | 2474 | |
a0da8069 | 2475 | test "$program_prefix" != NONE && |
81ecdfbb | 2476 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2477 | # Use a double $ so make ignores it. |
2478 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2479 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2480 | # Double any \ or $. | |
c6b750e1 | 2481 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2482 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2483 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2484 | |
a0da8069 NN |
2485 | |
2486 | ||
e5c3f801 NN |
2487 | # Get 'install' or 'install-sh' and its variants. |
2488 | # Find a good install program. We prefer a C program (faster), | |
2489 | # so one script is as good as another. But avoid the broken or | |
2490 | # incompatible versions: | |
2491 | # SysV /etc/install, /usr/sbin/install | |
2492 | # SunOS /usr/etc/install | |
2493 | # IRIX /sbin/install | |
2494 | # AIX /bin/install | |
c6b750e1 | 2495 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2496 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2497 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2498 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2499 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2500 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2501 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2503 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2504 | if test -z "$INSTALL"; then |
d0ac1c44 | 2505 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2506 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
2507 | else |
2508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2509 | for as_dir in $PATH | |
2510 | do | |
2511 | IFS=$as_save_IFS | |
2512 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2513 | # Account for people who put trailing slashes in PATH elements. |
2514 | case $as_dir/ in #(( | |
2515 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2516 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2517 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2518 | /usr/ucb/* ) ;; |
2519 | *) | |
2520 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2521 | # Don't use installbsd from OSF since it installs stuff as root | |
2522 | # by default. | |
2523 | for ac_prog in ginstall scoinst install; do | |
2524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2525 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
e5c3f801 | 2526 | if test $ac_prog = install && |
c6b750e1 | 2527 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2528 | # AIX install. It has an incompatible calling convention. |
2529 | : | |
c6b750e1 DJ |
2530 | elif test $ac_prog = install && |
2531 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2532 | # program-specific install script used by HP pwplus--don't use. | |
2533 | : | |
e5c3f801 | 2534 | else |
58c85be7 RW |
2535 | rm -rf conftest.one conftest.two conftest.dir |
2536 | echo one > conftest.one | |
2537 | echo two > conftest.two | |
2538 | mkdir conftest.dir | |
2539 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2540 | test -s conftest.one && test -s conftest.two && | |
2541 | test -s conftest.dir/conftest.one && | |
2542 | test -s conftest.dir/conftest.two | |
2543 | then | |
2544 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2545 | break 3 | |
2546 | fi | |
e5c3f801 NN |
2547 | fi |
2548 | fi | |
2549 | done | |
c6b750e1 DJ |
2550 | done |
2551 | ;; | |
2552 | esac | |
81ecdfbb RW |
2553 | |
2554 | done | |
2555 | IFS=$as_save_IFS | |
c6b750e1 | 2556 | |
58c85be7 | 2557 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2558 | |
2559 | fi | |
2560 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2561 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2562 | else |
58c85be7 RW |
2563 | # As a last resort, use the slow shell script. Don't cache a |
2564 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2565 | # break other packages using the cache if that directory is |
58c85be7 | 2566 | # removed, or if the value is a relative name. |
c6b750e1 | 2567 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2568 | fi |
2569 | fi | |
81ecdfbb RW |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2571 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2572 | |
2573 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2574 | # It thinks the first close brace ends the variable substitution. | |
2575 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2576 | ||
c6b750e1 | 2577 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2578 | |
2579 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2580 | ||
81ecdfbb RW |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2582 | $as_echo_n "checking whether ln works... " >&6; } | |
d0ac1c44 | 2583 | if ${acx_cv_prog_LN+:} false; then : |
81ecdfbb | 2584 | $as_echo_n "(cached) " >&6 |
656fdd47 PB |
2585 | else |
2586 | rm -f conftestdata_t | |
2587 | echo >conftestdata_f | |
2588 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2589 | then | |
2590 | acx_cv_prog_LN=ln | |
2591 | else | |
2592 | acx_cv_prog_LN=no | |
2593 | fi | |
2594 | rm -f conftestdata_f conftestdata_t | |
2595 | ||
2596 | fi | |
2597 | if test $acx_cv_prog_LN = no; then | |
2598 | LN="cp" | |
81ecdfbb RW |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2600 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2601 | else |
2602 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2604 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2605 | fi |
2606 | ||
81ecdfbb RW |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2608 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2609 | LN_S=$as_ln_s |
2610 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2612 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2613 | else |
81ecdfbb RW |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2615 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2616 | fi |
2617 | ||
8e957354 PB |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2619 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 2620 | if ${ac_cv_path_SED+:} false; then : |
8e957354 PB |
2621 | $as_echo_n "(cached) " >&6 |
2622 | else | |
2623 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2624 | for ac_i in 1 2 3 4 5 6 7; do | |
2625 | ac_script="$ac_script$as_nl$ac_script" | |
2626 | done | |
2627 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2628 | { ac_script=; unset ac_script;} | |
2629 | if test -z "$SED"; then | |
2630 | ac_path_SED_found=false | |
2631 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2633 | for as_dir in $PATH | |
2634 | do | |
2635 | IFS=$as_save_IFS | |
2636 | test -z "$as_dir" && as_dir=. | |
2637 | for ac_prog in sed gsed; do | |
2638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2639 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 2640 | as_fn_executable_p "$ac_path_SED" || continue |
8e957354 PB |
2641 | # Check for GNU ac_path_SED and select it if it is found. |
2642 | # Check for GNU $ac_path_SED | |
2643 | case `"$ac_path_SED" --version 2>&1` in | |
2644 | *GNU*) | |
2645 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2646 | *) | |
2647 | ac_count=0 | |
2648 | $as_echo_n 0123456789 >"conftest.in" | |
2649 | while : | |
2650 | do | |
2651 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2652 | mv "conftest.tmp" "conftest.in" | |
2653 | cp "conftest.in" "conftest.nl" | |
2654 | $as_echo '' >> "conftest.nl" | |
2655 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2656 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2657 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2658 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2659 | # Best one so far, save it but keep looking for a better one | |
2660 | ac_cv_path_SED="$ac_path_SED" | |
2661 | ac_path_SED_max=$ac_count | |
2662 | fi | |
2663 | # 10*(2^10) chars as input seems more than enough | |
2664 | test $ac_count -gt 10 && break | |
2665 | done | |
2666 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2667 | esac | |
2668 | ||
2669 | $ac_path_SED_found && break 3 | |
2670 | done | |
2671 | done | |
2672 | done | |
2673 | IFS=$as_save_IFS | |
2674 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 2675 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8e957354 PB |
2676 | fi |
2677 | else | |
2678 | ac_cv_path_SED=$SED | |
2679 | fi | |
2680 | ||
2681 | fi | |
2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2683 | $as_echo "$ac_cv_path_SED" >&6; } | |
2684 | SED="$ac_cv_path_SED" | |
2685 | rm -f conftest.sed | |
2686 | ||
2687 | for ac_prog in gawk mawk nawk awk | |
2688 | do | |
2689 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2690 | set dummy $ac_prog; ac_word=$2 | |
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2692 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2693 | if ${ac_cv_prog_AWK+:} false; then : |
8e957354 PB |
2694 | $as_echo_n "(cached) " >&6 |
2695 | else | |
2696 | if test -n "$AWK"; then | |
2697 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2698 | else | |
2699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2700 | for as_dir in $PATH | |
2701 | do | |
2702 | IFS=$as_save_IFS | |
2703 | test -z "$as_dir" && as_dir=. | |
2704 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2705 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8e957354 PB |
2706 | ac_cv_prog_AWK="$ac_prog" |
2707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2708 | break 2 | |
2709 | fi | |
2710 | done | |
2711 | done | |
2712 | IFS=$as_save_IFS | |
2713 | ||
2714 | fi | |
2715 | fi | |
2716 | AWK=$ac_cv_prog_AWK | |
2717 | if test -n "$AWK"; then | |
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2719 | $as_echo "$AWK" >&6; } | |
2720 | else | |
2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2722 | $as_echo "no" >&6; } | |
2723 | fi | |
2724 | ||
2725 | ||
2726 | test -n "$AWK" && break | |
2727 | done | |
2728 | ||
e5c3f801 | 2729 | |
0fdbe983 DJ |
2730 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2731 | ||
2732 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2733 | # a relative path. | |
2734 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2735 | INSTALL="${srcpwd}/install-sh -c" | |
2736 | fi | |
2737 | ||
a0da8069 NN |
2738 | # Set srcdir to "." if that's what it is. |
2739 | # This is important for multilib support. | |
2740 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2741 | if test "${pwd}" = "${srcpwd}" ; then |
2742 | srcdir=. | |
252b5132 RH |
2743 | fi |
2744 | ||
a0da8069 | 2745 | topsrcdir=$srcpwd |
252b5132 | 2746 | |
a0da8069 | 2747 | extra_host_args= |
afefada0 | 2748 | |
a0da8069 NN |
2749 | ### To add a new directory to the tree, first choose whether it is a target |
2750 | ### or a host dependent tool. Then put it into the appropriate list | |
2751 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2752 | |
c6b750e1 | 2753 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2754 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2755 | |
c6b750e1 DJ |
2756 | # Dependency sorting is only needed when *configuration* must be done in |
2757 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2758 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2759 | |
a0da8069 NN |
2760 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2761 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2762 | |
6a9cf61e PB |
2763 | # these library is used by various programs built for the build |
2764 | # environment | |
2765 | # | |
1b6c0831 | 2766 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2767 | |
2768 | # these tools are built for the build environment | |
a90ef4bf | 2769 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2770 | |
a0da8069 | 2771 | # these libraries are used by various programs built for the host environment |
1b6c0831 L |
2772 | #f |
2773 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" | |
a0da8069 | 2774 | |
a0da8069 NN |
2775 | # these tools are built for the host environment |
2776 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2777 | # know that we are building the simulator. | |
2778 | # binutils, gas and ld appear in that order because it makes sense to run | |
2779 | # "make check" in that particular order. | |
e6de499b | 2780 | # If --enable-gold is used, "gold" may replace "ld". |
1b6c0831 | 2781 | 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 | 2782 | |
a0da8069 NN |
2783 | # these libraries are built for the target environment, and are built after |
2784 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2785 | # Note that libiberty is not a target library. |
b1299c4e | 2786 | target_libraries="target-libgcc \ |
2bf680c4 | 2787 | target-libbacktrace \ |
a0da8069 NN |
2788 | target-libgloss \ |
2789 | target-newlib \ | |
cff87f51 | 2790 | target-libgomp \ |
1b6c0831 | 2791 | target-liboffloadmic \ |
bf41f30d | 2792 | target-libhsail-rt \ |
7ec59b9e | 2793 | target-libatomic \ |
d32e2926 | 2794 | target-libitm \ |
b9459e83 | 2795 | target-libstdc++-v3 \ |
5286fdef | 2796 | target-libsanitizer \ |
95e43135 | 2797 | target-libvtv \ |
bb780410 | 2798 | target-libssp \ |
e552509b | 2799 | target-libquadmath \ |
4b1cb4fe | 2800 | target-libgfortran \ |
05a13254 | 2801 | target-libffi \ |
a2592b1b | 2802 | target-libobjc \ |
e552509b ILT |
2803 | target-libada \ |
2804 | target-libgo" | |
a0da8069 | 2805 | |
9c14acb8 NN |
2806 | # these tools are built using the target libraries, and are intended to |
2807 | # run only in the target environment | |
a0da8069 | 2808 | # |
9c14acb8 | 2809 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2810 | # list belongs in this list. |
a0da8069 | 2811 | # |
a90ef4bf | 2812 | target_tools="target-rda" |
252b5132 | 2813 | |
a0da8069 | 2814 | ################################################################################ |
252b5132 | 2815 | |
a0da8069 NN |
2816 | ## All tools belong in one of the four categories, and are assigned above |
2817 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2818 | ## is important because configure will choke if they ever get through. | |
2819 | ## ${configdirs} is directories we build using the host tools. | |
2820 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2821 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2822 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2823 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2824 | |
9cc8ae67 PB |
2825 | |
2826 | ||
a0da8069 | 2827 | ################################################################################ |
252b5132 | 2828 | |
a0da8069 | 2829 | srcname="gnu development package" |
252b5132 | 2830 | |
a0da8069 NN |
2831 | # This gets set non-empty for some net releases of packages. |
2832 | appdirs="" | |
252b5132 | 2833 | |
a0da8069 NN |
2834 | # Define is_cross_compiler to save on calls to 'test'. |
2835 | is_cross_compiler= | |
2836 | if test x"${host}" = x"${target}" ; then | |
2837 | is_cross_compiler=no | |
252b5132 | 2838 | else |
a0da8069 | 2839 | is_cross_compiler=yes |
c6b750e1 | 2840 | fi |
252b5132 | 2841 | |
9175bfc0 | 2842 | # Find the build and target subdir names. |
dd12c3a8 | 2843 | |
66a79c16 DJ |
2844 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2845 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2846 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2847 | # However, they still use the build modules, because the corresponding | |
2848 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2849 | # finishes. So: | |
2850 | # - build_subdir is where we find build modules, and never changes. | |
2851 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2852 | ||
2853 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2854 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2855 | |
81ecdfbb RW |
2856 | # Check whether --with-build-libsubdir was given. |
2857 | if test "${with_build_libsubdir+set}" = set; then : | |
2858 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2859 | else |
2860 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2861 | fi |
2862 | ||
b00612cc PB |
2863 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2864 | if ( test $srcdir = . && test -d gcc ) \ | |
2865 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2866 | host_subdir="host-${host_noncanonical}" | |
2867 | else | |
2868 | host_subdir=. | |
2869 | fi | |
dd12c3a8 NN |
2870 | # No prefix. |
2871 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2872 | |
2fd0b40b RW |
2873 | # Be sure to cover against remnants of an in-tree build. |
2874 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
d0ac1c44 | 2875 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
2fd0b40b RW |
2876 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2877 | fi | |
252b5132 | 2878 | |
a0da8069 NN |
2879 | # Skipdirs are removed silently. |
2880 | skipdirs= | |
2881 | # Noconfigdirs are removed loudly. | |
2882 | noconfigdirs="" | |
252b5132 | 2883 | |
a0da8069 NN |
2884 | use_gnu_ld= |
2885 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2886 | if test x$with_gnu_ld = xno ; then | |
2887 | use_gnu_ld=no | |
93f9b408 | 2888 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2889 | fi |
2890 | ||
a0da8069 NN |
2891 | use_gnu_as= |
2892 | # Make sure we don't let GNU as be added if we didn't want it. | |
2893 | if test x$with_gnu_as = xno ; then | |
2894 | use_gnu_as=no | |
2895 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2896 | fi |
2897 | ||
700d40ca | 2898 | use_included_zlib= |
cf39cfc5 L |
2899 | |
2900 | # Check whether --with-system-zlib was given. | |
2901 | if test "${with_system_zlib+set}" = set; then : | |
2902 | withval=$with_system_zlib; | |
2903 | fi | |
2904 | ||
700d40ca ILT |
2905 | # Make sure we don't let ZLIB be added if we didn't want it. |
2906 | if test x$with_system_zlib = xyes ; then | |
2907 | use_included_zlib=no | |
2908 | noconfigdirs="$noconfigdirs zlib" | |
2909 | fi | |
2910 | ||
c6b750e1 | 2911 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2912 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2913 | |
a0da8069 NN |
2914 | case ${with_x} in |
2915 | yes | "") ;; # the default value for this tree is that X11 is available | |
2916 | no) | |
675c6968 | 2917 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2918 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2919 | enable_gdbtk=no |
a0da8069 NN |
2920 | ;; |
2921 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2922 | esac | |
252b5132 | 2923 | |
0377a422 | 2924 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2925 | # Remove these if host=target. |
2926 | cross_only="target-libgloss target-newlib target-opcodes" | |
2927 | ||
2928 | case $is_cross_compiler in | |
2929 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2930 | esac |
252b5132 | 2931 | |
a0da8069 NN |
2932 | # If both --with-headers and --with-libs are specified, default to |
2933 | # --without-newlib. | |
32be62b5 RS |
2934 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2935 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2936 | if test x"${with_newlib}" = x ; then |
2937 | with_newlib=no | |
2938 | fi | |
252b5132 RH |
2939 | fi |
2940 | ||
a0da8069 NN |
2941 | # Recognize --with-newlib/--without-newlib. |
2942 | case ${with_newlib} in | |
2943 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2944 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2945 | esac | |
252b5132 | 2946 | |
1b6c0831 L |
2947 | # Check whether --enable-as-accelerator-for was given. |
2948 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2949 | enableval=$enable_as_accelerator_for; | |
2950 | fi | |
2951 | ||
2952 | ||
2953 | # Check whether --enable-offload-targets was given. | |
2954 | if test "${enable_offload_targets+set}" = set; then : | |
2955 | enableval=$enable_offload_targets; | |
2956 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 2957 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
2958 | fi |
2959 | ||
2960 | else | |
2961 | enable_offload_targets= | |
2962 | fi | |
2963 | ||
2964 | ||
c7791212 NC |
2965 | # Handle --enable-gold, --enable-ld. |
2966 | # --disable-gold [--enable-ld] | |
2967 | # Build only ld. Default option. | |
d3b50760 L |
2968 | # --enable-gold [--enable-ld] |
2969 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2970 | # as "ld.bfd" and "ld". | |
2971 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2972 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2973 | # install ld as "ld.bfd". | |
2974 | # --enable-gold[=default] --disable-ld | |
2975 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2976 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2977 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2978 | # and ld.bfd). | |
c7791212 NC |
2979 | # In other words, ld is default |
2980 | # --enable-gold=default --enable-ld=default | |
2981 | # Error. | |
2982 | ||
2983 | default_ld= | |
81ecdfbb RW |
2984 | # Check whether --enable-gold was given. |
2985 | if test "${enable_gold+set}" = set; then : | |
2986 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2987 | else |
2988 | ENABLE_GOLD=no | |
81ecdfbb RW |
2989 | fi |
2990 | ||
c7791212 NC |
2991 | case "${ENABLE_GOLD}" in |
2992 | yes|default) | |
e6de499b NC |
2993 | # Check for ELF target. |
2994 | is_elf=no | |
2995 | case "${target}" in | |
2996 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2997 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2998 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
bf41f30d | 2999 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
3000 | case "${target}" in |
3001 | *-*-linux*aout* | *-*-linux*oldld*) | |
3002 | ;; | |
3003 | *) | |
3004 | is_elf=yes | |
3005 | ;; | |
3006 | esac | |
3007 | esac | |
3008 | ||
3009 | if test "$is_elf" = "yes"; then | |
3010 | # Check for target supported by gold. | |
93f9b408 | 3011 | case "${target}" in |
6d26190c | 3012 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 3013 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
3014 | configdirs="$configdirs gold" |
3015 | if test x${ENABLE_GOLD} = xdefault; then | |
3016 | default_ld=gold | |
3017 | fi | |
e6de499b | 3018 | ENABLE_GOLD=yes |
93f9b408 ILT |
3019 | ;; |
3020 | esac | |
e6de499b NC |
3021 | fi |
3022 | ;; | |
3023 | no) | |
3024 | ;; | |
3025 | *) | |
d0ac1c44 | 3026 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3027 | ;; |
c7791212 NC |
3028 | esac |
3029 | ||
3030 | # Check whether --enable-ld was given. | |
3031 | if test "${enable_ld+set}" = set; then : | |
3032 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3033 | else | |
3034 | ENABLE_LD=yes | |
3035 | fi | |
3036 | ||
3037 | ||
3038 | case "${ENABLE_LD}" in | |
3039 | default) | |
d3b50760 | 3040 | if test x${default_ld} != x; then |
d0ac1c44 | 3041 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3042 | fi |
3043 | ;; | |
3044 | yes) | |
3045 | ;; | |
3046 | no) | |
3047 | if test x${ENABLE_GOLD} != xyes; then | |
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3049 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3050 | fi | |
3051 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3052 | ;; | |
3053 | *) | |
d0ac1c44 | 3054 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3055 | ;; |
3056 | esac | |
93f9b408 | 3057 | |
edeefb67 L |
3058 | # PR gas/19109 |
3059 | # Decide the default method for compressing debug sections. | |
3060 | # Provide a configure time option to override our default. | |
3061 | # Check whether --enable-compressed_debug_sections was given. | |
3062 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3063 | enableval=$enable_compressed_debug_sections; | |
3064 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3065 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3066 | fi |
3067 | ||
3068 | else | |
3069 | enable_compressed_debug_sections= | |
3070 | fi | |
3071 | ||
3072 | ||
a0da8069 | 3073 | # Configure extra directories which are host specific |
252b5132 | 3074 | |
a0da8069 NN |
3075 | case "${host}" in |
3076 | *-cygwin*) | |
3077 | configdirs="$configdirs libtermcap" ;; | |
3078 | esac | |
252b5132 | 3079 | |
59f7ec45 HPN |
3080 | # A target can indicate whether a language isn't supported for some reason. |
3081 | # Only spaces may be used in this macro; not newlines or tabs. | |
3082 | unsupported_languages= | |
3083 | ||
c6b750e1 | 3084 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3085 | # target this usually means that a port of the program doesn't |
3086 | # exist yet. | |
252b5132 | 3087 | |
a0da8069 | 3088 | case "${host}" in |
3516a403 | 3089 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3090 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3091 | ;; |
a0da8069 | 3092 | esac |
252b5132 | 3093 | |
4b1cb4fe | 3094 | |
89a1e9c3 PB |
3095 | # Check whether --enable-libquadmath was given. |
3096 | if test "${enable_libquadmath+set}" = set; then : | |
3097 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3098 | else | |
3099 | ENABLE_LIBQUADMATH=yes | |
3100 | fi | |
3101 | ||
3102 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3103 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3104 | fi | |
3105 | ||
3106 | ||
3107 | # Check whether --enable-libquadmath-support was given. | |
3108 | if test "${enable_libquadmath_support+set}" = set; then : | |
3109 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3110 | else | |
3111 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3112 | fi | |
3113 | ||
3114 | enable_libquadmath_support= | |
3115 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3116 | enable_libquadmath_support=no | |
3117 | fi | |
3118 | ||
3119 | ||
81ecdfbb RW |
3120 | # Check whether --enable-libada was given. |
3121 | if test "${enable_libada+set}" = set; then : | |
3122 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3123 | else |
3124 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3125 | fi |
3126 | ||
a2592b1b | 3127 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3128 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3129 | fi |
3130 | ||
81ecdfbb RW |
3131 | # Check whether --enable-libssp was given. |
3132 | if test "${enable_libssp+set}" = set; then : | |
3133 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3134 | else |
3135 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3136 | fi |
3137 | ||
5f128533 | 3138 | |
f66a9a70 L |
3139 | # Check whether --enable-libstdcxx was given. |
3140 | if test "${enable_libstdcxx+set}" = set; then : | |
3141 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3142 | else | |
3143 | ENABLE_LIBSTDCXX=default | |
3144 | fi | |
3145 | ||
3146 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3147 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3148 | fi | |
3149 | ||
3150 | # If this is accelerator compiler and its target is intelmic we enable | |
3151 | # target liboffloadmic by default. If this is compiler with offloading | |
3152 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3153 | # liboffloadmic is disabled by default. | |
3154 | # Check whether --enable-liboffloadmic was given. | |
3155 | if test "${enable_liboffloadmic+set}" = set; then : | |
3156 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3157 | no | host | target) | |
3158 | enable_liboffloadmic=$enableval ;; | |
3159 | *) | |
d0ac1c44 | 3160 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3161 | esac |
3162 | else | |
3163 | if test x"$enable_as_accelerator_for" != x; then | |
3164 | case "${target}" in | |
3165 | *-intelmic-* | *-intelmicemul-*) | |
3166 | enable_liboffloadmic=target | |
3167 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3168 | ;; | |
3169 | *) | |
3170 | enable_liboffloadmic=no | |
3171 | ;; | |
3172 | esac | |
3173 | else | |
3174 | case "${enable_offload_targets}" in | |
3175 | *-intelmic-* | *-intelmicemul-*) | |
3176 | enable_liboffloadmic=host | |
3177 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3178 | ;; | |
3179 | *) | |
3180 | enable_liboffloadmic=no | |
3181 | ;; | |
3182 | esac | |
3183 | fi | |
f66a9a70 L |
3184 | fi |
3185 | ||
1b6c0831 L |
3186 | |
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 | ||
1b6c0831 L |
3226 | # Disable liboffloadmic on unsupported systems. |
3227 | if test -d ${srcdir}/liboffloadmic; then | |
3228 | if test x$enable_liboffloadmic != xno; then | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3230 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3231 | if (srcdir=${srcdir}/liboffloadmic; \ | |
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-liboffloadmic" | |
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 | ||
d32e2926 RH |
3245 | # Disable libitm on unsupported systems. |
3246 | if test -d ${srcdir}/libitm; then | |
3247 | if test x$enable_libitm = x; then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3249 | $as_echo_n "checking for libitm support... " >&6; } | |
3250 | if (srcdir=${srcdir}/libitm; \ | |
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-libitm" | |
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 | ||
5286fdef L |
3264 | # Disable libsanitizer on unsupported systems. |
3265 | if test -d ${srcdir}/libsanitizer; then | |
3266 | if test x$enable_libsanitizer = x; then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3268 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3269 | if (srcdir=${srcdir}/libsanitizer; \ | |
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-libsanitizer" | |
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 | ||
95e43135 JBG |
3283 | # Disable libvtv on unsupported systems. |
3284 | if test -d ${srcdir}/libvtv; then | |
3285 | if test x$enable_libvtv = x; then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3287 | $as_echo_n "checking for libvtv support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libvtv; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test "$VTV_SUPPORTED" != "yes") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libvtv" | |
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 | ||
1b6c0831 | 3302 | |
bf41f30d NC |
3303 | # Disable libhsail-rt on unsupported systems. |
3304 | if test -d ${srcdir}/libhsail-rt; then | |
3305 | if test x$enable_libhsail_rt = x; then | |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3307 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3308 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3309 | . ${srcdir}/configure.tgt; \ | |
3310 | test -n "$UNSUPPORTED") | |
3311 | then | |
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3313 | $as_echo "no" >&6; } | |
3314 | unsupported_languages="$unsupported_languages brig" | |
3315 | # This implicitly disables also target-libhsail-rt as it won't | |
3316 | # get added to the build without BRIG FE. | |
3317 | else | |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3319 | $as_echo "yes" >&6; } | |
3320 | fi | |
3321 | fi | |
3322 | fi | |
1b6c0831 L |
3323 | |
3324 | ||
1488e230 DE |
3325 | # Disable libquadmath for some systems. |
3326 | case "${target}" in | |
5286fdef L |
3327 | avr-*-*) |
3328 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3329 | ;; | |
1488e230 DE |
3330 | # libquadmath is unused on AIX and libquadmath build process use of |
3331 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3332 | powerpc-*-aix* | rs6000-*-aix*) | |
3333 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3334 | ;; | |
3335 | esac | |
3336 | ||
065a5627 JM |
3337 | # Disable libssp for some systems. |
3338 | case "${target}" in | |
3339 | avr-*-*) | |
c5f5c3c2 | 3340 | # No hosted I/O support. |
065a5627 JM |
3341 | noconfigdirs="$noconfigdirs target-libssp" |
3342 | ;; | |
3343 | powerpc-*-aix* | rs6000-*-aix*) | |
3344 | noconfigdirs="$noconfigdirs target-libssp" | |
3345 | ;; | |
99c513f6 | 3346 | rl78-*-*) |
202e2356 NC |
3347 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3348 | # doesn't fault for those - instead, it gives a build-time error | |
3349 | # for explicit misaligned loads. | |
99c513f6 DD |
3350 | noconfigdirs="$noconfigdirs target-libssp" |
3351 | ;; | |
1b6c0831 L |
3352 | visium-*-*) |
3353 | # No hosted I/O support. | |
3354 | noconfigdirs="$noconfigdirs target-libssp" | |
3355 | ;; | |
065a5627 JM |
3356 | esac |
3357 | ||
065a5627 | 3358 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3359 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3360 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3361 | case "${target}" in | |
3362 | *-*-vxworks*) | |
3363 | # VxWorks uses the Dinkumware C++ library. | |
3364 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3365 | ;; | |
3366 | arm*-wince-pe*) | |
3367 | # the C++ libraries don't build on top of CE's C libraries | |
3368 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3369 | ;; | |
3370 | avr-*-*) | |
3371 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3372 | ;; | |
969b1713 L |
3373 | ft32-*-*) |
3374 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3375 | ;; | |
f66a9a70 L |
3376 | esac |
3377 | fi | |
065a5627 JM |
3378 | |
3379 | # Disable Fortran for some systems. | |
3380 | case "${target}" in | |
3381 | mmix-*-*) | |
3382 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3383 | unsupported_languages="$unsupported_languages fortran" | |
3384 | ;; | |
3385 | esac | |
3386 | ||
05a13254 | 3387 | # Disable libffi for some systems. |
0827f9a6 | 3388 | case "${target}" in |
9863d716 JM |
3389 | powerpc-*-darwin*) |
3390 | ;; | |
3391 | i[3456789]86-*-darwin*) | |
3392 | ;; | |
3393 | x86_64-*-darwin[912]*) | |
3394 | ;; | |
3395 | *-*-darwin*) | |
05a13254 | 3396 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3397 | ;; |
9863d716 | 3398 | *-*-netware*) |
05a13254 NC |
3399 | noconfigdirs="$noconfigdirs target-libffi" |
3400 | ;; | |
3401 | *-*-phoenix*) | |
3402 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3403 | ;; |
3404 | *-*-rtems*) | |
05a13254 | 3405 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3406 | ;; |
3407 | *-*-tpf*) | |
05a13254 | 3408 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3409 | ;; |
3410 | *-*-uclinux*) | |
05a13254 | 3411 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3412 | ;; |
3413 | *-*-vxworks*) | |
05a13254 NC |
3414 | noconfigdirs="$noconfigdirs target-libffi" |
3415 | ;; | |
3416 | aarch64*-*-freebsd*) | |
3417 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3418 | ;; |
9863d716 | 3419 | alpha*-*-*vms*) |
05a13254 | 3420 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3421 | ;; |
1b6c0831 | 3422 | arm*-*-freebsd*) |
05a13254 | 3423 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3424 | ;; |
0827f9a6 | 3425 | arm-wince-pe) |
05a13254 | 3426 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3427 | ;; |
9863d716 | 3428 | arm*-*-symbianelf*) |
05a13254 | 3429 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3430 | ;; |
9863d716 | 3431 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3432 | case "${target}" in |
3433 | *-*-linux*) | |
3434 | ;; | |
3435 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3436 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3437 | esac |
3438 | ;; | |
82ae827f | 3439 | hppa*64*-*-hpux*) |
05a13254 | 3440 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3441 | ;; |
3442 | hppa*-hp-hpux11*) | |
3443 | ;; | |
82ae827f | 3444 | hppa*-*-hpux*) |
05a13254 | 3445 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3446 | ;; |
9863d716 | 3447 | ia64*-*-*vms*) |
05a13254 | 3448 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3449 | ;; |
9863d716 | 3450 | i[3456789]86-w64-mingw*) |
05a13254 | 3451 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3452 | ;; |
3453 | i[3456789]86-*-mingw*) | |
05a13254 | 3454 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3455 | ;; |
3456 | x86_64-*-mingw*) | |
05a13254 | 3457 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3458 | ;; |
9863d716 | 3459 | mmix-*-*) |
05a13254 | 3460 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3461 | ;; |
3462 | powerpc-*-aix*) | |
9863d716 | 3463 | ;; |
9863d716 | 3464 | rs6000-*-aix*) |
9863d716 | 3465 | ;; |
3f8107ab | 3466 | ft32-*-*) |
05a13254 | 3467 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3468 | ;; |
9863d716 | 3469 | *-*-lynxos*) |
05a13254 | 3470 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3471 | ;; |
9863d716 JM |
3472 | esac |
3473 | ||
1b6c0831 L |
3474 | # Disable the go frontend on systems where it is known to not work. Please keep |
3475 | # this in sync with contrib/config-list.mk. | |
3476 | case "${target}" in | |
bf41f30d | 3477 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
1b6c0831 L |
3478 | unsupported_languages="$unsupported_languages go" |
3479 | ;; | |
3480 | esac | |
3481 | ||
a413f71a ILT |
3482 | # Disable libgo for some systems where it is known to not work. |
3483 | # For testing, you can easily override this with --enable-libgo. | |
3484 | if test x$enable_libgo = x; then | |
3485 | case "${target}" in | |
3486 | *-*-darwin*) | |
3487 | # PR 46986 | |
3488 | noconfigdirs="$noconfigdirs target-libgo" | |
3489 | ;; | |
3490 | *-*-cygwin* | *-*-mingw*) | |
3491 | noconfigdirs="$noconfigdirs target-libgo" | |
3492 | ;; | |
a413f71a ILT |
3493 | esac |
3494 | fi | |
3495 | ||
691bb5a1 DD |
3496 | # Default libgloss CPU subdirectory. |
3497 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3498 | |
ff46fb8f JM |
3499 | case "${target}" in |
3500 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3501 | libgloss_dir=wince | |
3502 | ;; | |
f1dd87fc YZ |
3503 | aarch64*-*-* ) |
3504 | libgloss_dir=aarch64 | |
3505 | ;; | |
ff46fb8f JM |
3506 | arm*-*-*) |
3507 | libgloss_dir=arm | |
3508 | ;; | |
3509 | cris-*-* | crisv32-*-*) | |
3510 | libgloss_dir=cris | |
3511 | ;; | |
3512 | hppa*-*-*) | |
3513 | libgloss_dir=pa | |
3514 | ;; | |
3515 | i[3456789]86-*-*) | |
3516 | libgloss_dir=i386 | |
3517 | ;; | |
3518 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3519 | libgloss_dir=m68hc11 | |
3520 | ;; | |
3521 | m68*-*-* | fido-*-*) | |
3522 | libgloss_dir=m68k | |
3523 | ;; | |
3524 | mips*-*-*) | |
3525 | libgloss_dir=mips | |
3526 | ;; | |
3527 | powerpc*-*-*) | |
3528 | libgloss_dir=rs6000 | |
3529 | ;; | |
3530 | sparc*-*-*) | |
3531 | libgloss_dir=sparc | |
3532 | ;; | |
3533 | esac | |
3534 | ||
c7e4b184 | 3535 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3536 | case "${target}" in |
c7e4b184 JM |
3537 | alpha*-dec-osf*) |
3538 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3539 | ;; | |
3540 | i[3456789]86-*-linux*) | |
3541 | # This section makes it possible to build newlib natively on linux. | |
3542 | # If we are using a cross compiler then don't configure newlib. | |
3543 | if test x${is_cross_compiler} != xno ; then | |
3544 | noconfigdirs="$noconfigdirs target-newlib" | |
3545 | fi | |
3546 | noconfigdirs="$noconfigdirs target-libgloss" | |
3547 | # If we are not using a cross compiler, do configure newlib. | |
3548 | # Note however, that newlib will only be configured in this situation | |
3549 | # if the --with-newlib option has been given, because otherwise | |
3550 | # 'target-newlib' will appear in skipdirs. | |
3551 | ;; | |
3552 | i[3456789]86-*-rdos*) | |
3553 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3554 | ;; | |
3555 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3556 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3557 | ;; | |
3558 | sparc-*-sunos4*) | |
3559 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3560 | ;; | |
3561 | *-*-aix*) | |
3562 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3563 | ;; | |
3564 | *-*-beos*) | |
3565 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3566 | ;; | |
a0da8069 | 3567 | *-*-chorusos) |
b2f14e4a | 3568 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3569 | ;; |
c7e4b184 JM |
3570 | *-*-dragonfly*) |
3571 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3572 | ;; | |
3573 | *-*-freebsd*) | |
3574 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3575 | ;; | |
3576 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3577 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3578 | ;; | |
3579 | *-*-lynxos*) | |
3580 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3581 | ;; | |
3582 | *-*-mingw*) | |
3583 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3584 | ;; | |
3585 | *-*-netbsd*) | |
3586 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3587 | ;; | |
3588 | *-*-netware*) | |
3589 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3590 | ;; | |
3591 | *-*-tpf*) | |
3592 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3593 | ;; | |
3594 | *-*-uclinux*) | |
3595 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3596 | ;; | |
3597 | *-*-vxworks*) | |
3598 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3599 | ;; | |
3600 | esac | |
3601 | ||
3602 | case "${target}" in | |
3603 | *-*-chorusos) | |
3604 | ;; | |
f075eb5e TG |
3605 | aarch64-*-darwin*) |
3606 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3607 | noconfigdirs="$noconfigdirs sim target-rda" | |
3608 | ;; | |
3609 | arm-*-darwin*) | |
3610 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3611 | noconfigdirs="$noconfigdirs sim target-rda" | |
3612 | ;; | |
24741ab2 | 3613 | powerpc-*-darwin*) |
9d39db92 | 3614 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3615 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3616 | ;; |
85bd1942 TG |
3617 | i[3456789]86-*-darwin*) |
3618 | noconfigdirs="$noconfigdirs ld gprof" | |
3619 | noconfigdirs="$noconfigdirs sim target-rda" | |
3620 | ;; | |
e8a5fa9c | 3621 | x86_64-*-darwin[912]*) |
652dec25 TG |
3622 | noconfigdirs="$noconfigdirs ld gas gprof" |
3623 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3624 | ;; |
04d1ab34 | 3625 | *-*-darwin*) |
d320aacb | 3626 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3627 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3628 | ;; |
5b806d27 | 3629 | *-*-dragonfly*) |
5b806d27 | 3630 | ;; |
de0b4a87 | 3631 | *-*-freebsd*) |
4b1cb4fe DD |
3632 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3633 | && test -f /usr/local/include/gmp.h; then | |
3634 | with_gmp=/usr/local | |
3635 | fi | |
4b1cb4fe | 3636 | ;; |
f8a495c8 NC |
3637 | *-*-kaos*) |
3638 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3639 | noconfigdirs="$noconfigdirs target-libgloss" |
3640 | ;; | |
a0da8069 | 3641 | *-*-netbsd*) |
a0da8069 | 3642 | ;; |
2a3124ca | 3643 | *-*-netware*) |
a0da8069 | 3644 | ;; |
05a13254 NC |
3645 | *-*-phoenix*) |
3646 | noconfigdirs="$noconfigdirs target-libgloss" | |
3647 | ;; | |
a0da8069 | 3648 | *-*-rtems*) |
9863d716 | 3649 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3650 | ;; |
1587117a EC |
3651 | # The tpf target doesn't support gdb yet. |
3652 | *-*-tpf*) | |
c7e4b184 | 3653 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3654 | ;; |
c1968181 | 3655 | *-*-uclinux*) |
c7e4b184 | 3656 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3657 | ;; |
a0da8069 | 3658 | *-*-vxworks*) |
a0da8069 NN |
3659 | ;; |
3660 | alpha*-dec-osf*) | |
3661 | # ld works, but does not support shared libraries. | |
a0da8069 | 3662 | # gas doesn't generate exception information. |
c7e4b184 | 3663 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3664 | ;; |
3665 | alpha*-*-*vms*) | |
9863d716 | 3666 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3667 | ;; |
a0da8069 NN |
3668 | alpha*-*-*) |
3669 | # newlib is not 64 bit ready | |
9863d716 | 3670 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3671 | ;; |
a0da8069 | 3672 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3673 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3674 | ;; |
05a13254 NC |
3675 | arc*-*-*) |
3676 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3677 | ;; |
a0da8069 | 3678 | arm-*-pe*) |
9863d716 | 3679 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3680 | ;; |
a0da8069 | 3681 | arm-*-riscix*) |
b2f14e4a | 3682 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3683 | ;; |
8e71395b L |
3684 | avr-*-*) |
3685 | if test x${with_avrlibc} != xno; then | |
3686 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3687 | fi | |
3688 | ;; | |
a0da8069 | 3689 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3690 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3691 | ;; |
b2f14e4a JM |
3692 | tic54x-*-*) |
3693 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3694 | ;; |
a0da8069 | 3695 | d10v-*-*) |
b2f14e4a | 3696 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3697 | ;; |
3698 | d30v-*-*) | |
b2f14e4a | 3699 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3700 | ;; |
3701 | fr30-*-elf*) | |
9863d716 | 3702 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3703 | ;; |
3f8107ab AM |
3704 | ft32-*-*) |
3705 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3706 | ;; | |
20135e4c | 3707 | moxie-*-*) |
10b8fe5e | 3708 | noconfigdirs="$noconfigdirs" |
20135e4c | 3709 | ;; |
a0da8069 | 3710 | h8300*-*-*) |
9863d716 | 3711 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3712 | ;; |
3713 | h8500-*-*) | |
b2f14e4a | 3714 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3715 | ;; |
caeba88f | 3716 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3717 | ;; |
5569a85f JDA |
3718 | hppa*64*-*-hpux*) |
3719 | noconfigdirs="$noconfigdirs gdb" | |
3720 | ;; | |
3721 | hppa*-*-hpux11*) | |
3722 | noconfigdirs="$noconfigdirs gdb ld" | |
3723 | ;; | |
93cc359e | 3724 | hppa*64*-*-linux*) |
a0da8069 | 3725 | ;; |
f0ff0f90 | 3726 | hppa*-*-linux*) |
5dcac624 | 3727 | ;; |
a0da8069 | 3728 | hppa*-*-*elf* | \ |
a0da8069 NN |
3729 | hppa*-*-lites* | \ |
3730 | hppa*-*-openbsd* | \ | |
3731 | hppa*64*-*-*) | |
4f0ef2d8 | 3732 | ;; |
691bb5a1 | 3733 | hppa*-*-pro*) |
691bb5a1 | 3734 | ;; |
a0da8069 | 3735 | hppa*-*-*) |
9863d716 | 3736 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3737 | ;; |
b07c2aad | 3738 | i960-*-*) |
b2f14e4a | 3739 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3740 | ;; |
a0da8069 NN |
3741 | ia64*-*-elf*) |
3742 | # No gdb support yet. | |
0377a422 | 3743 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3744 | ;; |
3745 | ia64*-**-hpux*) | |
92c9a463 | 3746 | # No ld support yet. |
5569a85f | 3747 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3748 | ;; |
19e99079 | 3749 | ia64*-*-*vms*) |
7ec59b9e L |
3750 | # No ld support yet. |
3751 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3752 | ;; |
1f53ca9a | 3753 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3754 | ;; |
3755 | i[3456789]86-*-mingw*) | |
45055374 | 3756 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3757 | ;; |
a0da8069 NN |
3758 | *-*-cygwin*) |
3759 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3760 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3761 | # always build newlib if winsup directory is present. |
45055374 | 3762 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3763 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3764 | elif test -d "$srcdir/newlib"; then |
45055374 | 3765 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3766 | fi |
c6b750e1 | 3767 | ;; |
ec11bdc6 | 3768 | i[3456789]86-*-pe) |
782cb41f | 3769 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3770 | ;; |
ec11bdc6 | 3771 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3772 | # The linker does not yet know about weak symbols in COFF, |
3773 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3774 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3775 | ;; |
ec11bdc6 | 3776 | i[3456789]86-*-sco*) |
b2f14e4a | 3777 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3778 | ;; |
cff32a7c | 3779 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3780 | noconfigdirs="$noconfigdirs target-libgloss" |
3781 | ;; | |
ec11bdc6 | 3782 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3783 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3784 | ;; |
ec11bdc6 | 3785 | i[3456789]86-*-beos*) |
c7e4b184 | 3786 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3787 | ;; |
b59bea8a | 3788 | i[3456789]86-*-rdos*) |
c7e4b184 | 3789 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3790 | ;; |
a0da8069 | 3791 | mmix-*-*) |
9863d716 | 3792 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3793 | ;; |
4970f871 | 3794 | mt-*-*) |
cdb9b172 AH |
3795 | noconfigdirs="$noconfigdirs sim" |
3796 | ;; | |
1063beb5 FT |
3797 | nfp-*-*) |
3798 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3799 | noconfigdirs="$noconfigdirs $target_libraries" | |
3800 | ;; | |
a0da8069 NN |
3801 | powerpc-*-aix*) |
3802 | # copied from rs6000-*-* entry | |
c7e4b184 | 3803 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3804 | ;; |
93cc359e | 3805 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3806 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3807 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3808 | # always build newlib. |
3809 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3810 | ;; | |
3811 | # This is temporary until we can link against shared libraries | |
3812 | powerpcle-*-solaris*) | |
b2f14e4a | 3813 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3814 | ;; |
3815 | powerpc-*-beos*) | |
c7e4b184 | 3816 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3817 | ;; |
a0da8069 | 3818 | rs6000-*-lynxos*) |
c7e4b184 | 3819 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3820 | ;; |
3821 | rs6000-*-aix*) | |
c7e4b184 | 3822 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3823 | ;; |
3824 | rs6000-*-*) | |
9863d716 | 3825 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3826 | ;; |
3827 | m68k-apollo-*) | |
b2f14e4a | 3828 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3829 | ;; |
25a07265 | 3830 | microblaze*) |
9863d716 | 3831 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3832 | ;; |
a9d58c06 | 3833 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3834 | if test x$with_newlib = xyes; then |
3835 | noconfigdirs="$noconfigdirs gprof" | |
3836 | fi | |
5bd8be13 | 3837 | ;; |
a0da8069 | 3838 | mips*-*-irix5*) |
b2f14e4a | 3839 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3840 | ;; |
3841 | mips*-*-irix6*) | |
9863d716 | 3842 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3843 | ;; |
a0da8069 | 3844 | mips*-*-bsd*) |
e8044f35 | 3845 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3846 | ;; |
a0da8069 | 3847 | mips*-*-linux*) |
a0da8069 | 3848 | ;; |
e8044f35 RS |
3849 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3850 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3851 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3852 | ;; | |
a0da8069 | 3853 | mips*-*-*) |
9863d716 | 3854 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3855 | ;; |
1b6c0831 | 3856 | nvptx*-*-*) |
1b6c0831 L |
3857 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3858 | ;; | |
05a13254 | 3859 | sh-*-*) |
e8a5fa9c RW |
3860 | case "${target}" in |
3861 | sh*-*-elf) | |
9863d716 | 3862 | ;; |
e8a5fa9c | 3863 | *) |
9863d716 | 3864 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3865 | esac |
a0da8069 | 3866 | ;; |
a0da8069 | 3867 | sparc-*-sunos4*) |
c7e4b184 | 3868 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3869 | use_gnu_ld=no |
3870 | fi | |
3871 | ;; | |
619a3713 | 3872 | tic6x-*-*) |
40ae9136 | 3873 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3874 | ;; |
05a13254 | 3875 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3876 | noconfigdirs="$noconfigdirs sim" |
3877 | ;; | |
a0da8069 | 3878 | v810-*-*) |
b2f14e4a | 3879 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3880 | ;; |
3881 | vax-*-*) | |
9863d716 | 3882 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3883 | ;; |
b29d2641 MR |
3884 | wasm32-*-*) |
3885 | noconfigdirs="$noconfigdirs ld" | |
3886 | ;; | |
a0da8069 | 3887 | esac |
252b5132 | 3888 | |
a0da8069 NN |
3889 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3890 | # depends upon some newlib header files. | |
3891 | case "${noconfigdirs}" in | |
3892 | *target-libgloss*) ;; | |
3893 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3894 | esac | |
3895 | ||
a0da8069 | 3896 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3897 | host_makefile_frag=/dev/null |
3898 | if test -d ${srcdir}/config ; then | |
3899 | case "${host}" in | |
ec11bdc6 | 3900 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3901 | host_makefile_frag="config/mh-djgpp" |
3902 | ;; | |
3903 | *-cygwin*) | |
e33b51a6 | 3904 | |
81ecdfbb RW |
3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3906 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3907 | echo a >cygwin-cat-check |
1f53ca9a | 3908 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3909 | rm cygwin-cat-check |
81ecdfbb RW |
3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3911 | $as_echo "yes" >&6; } | |
e33b51a6 | 3912 | else |
8ade07e9 | 3913 | rm cygwin-cat-check |
81ecdfbb RW |
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3915 | $as_echo "no" >&6; } | |
d0ac1c44 | 3916 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
3917 | Please either mount the build directory in binary mode or run the following |
3918 | commands before running any configure script: | |
3919 | set -o igncr | |
3920 | export SHELLOPTS | |
81ecdfbb | 3921 | " "$LINENO" 5 |
e33b51a6 | 3922 | fi |
e33b51a6 | 3923 | |
a0da8069 NN |
3924 | host_makefile_frag="config/mh-cygwin" |
3925 | ;; | |
8a1599ab | 3926 | *-mingw*) |
84e7906e | 3927 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3928 | ;; |
ce6c656d L |
3929 | alpha*-linux*) |
3930 | host_makefile_frag="config/mh-alpha-linux" | |
3931 | ;; | |
da888c87 | 3932 | hppa*-hp-hpux10*) |
da888c87 | 3933 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3934 | ;; |
3516a403 | 3935 | hppa*-hp-hpux*) |
da888c87 PB |
3936 | host_makefile_frag="config/mh-pa" |
3937 | ;; | |
3938 | hppa*-*) | |
3939 | host_makefile_frag="config/mh-pa" | |
3940 | ;; | |
e552509b ILT |
3941 | *-*-darwin*) |
3942 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3943 | ;; |
f6d183c0 PB |
3944 | powerpc-*-aix*) |
3945 | host_makefile_frag="config/mh-ppc-aix" | |
3946 | ;; | |
3947 | rs6000-*-aix*) | |
3948 | host_makefile_frag="config/mh-ppc-aix" | |
3949 | ;; | |
a0da8069 NN |
3950 | esac |
3951 | fi | |
3952 | ||
9e07f89d | 3953 | if test "${build}" != "${host}" ; then |
1576798e PB |
3954 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3955 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3956 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e | 3957 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
1576798e | 3958 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 3959 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3960 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3961 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3962 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3963 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3964 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3965 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3966 | else | |
3967 | AR_FOR_BUILD="\$(AR)" | |
3968 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3969 | CC_FOR_BUILD="\$(CC)" |
1576798e | 3970 | CXX_FOR_BUILD="\$(CXX)" |
1576798e | 3971 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 3972 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3973 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3974 | LD_FOR_BUILD="\$(LD)" | |
3975 | NM_FOR_BUILD="\$(NM)" | |
3976 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3977 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3978 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3979 | fi |
3980 | ||
3981 | ac_ext=c | |
c6b750e1 DJ |
3982 | ac_cpp='$CPP $CPPFLAGS' |
3983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3986 | if test -n "$ac_tool_prefix"; then | |
3987 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3988 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3990 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3991 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3992 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
3993 | else |
3994 | if test -n "$CC"; then | |
3995 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3996 | else | |
3997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3998 | for as_dir in $PATH | |
3999 | do | |
4000 | IFS=$as_save_IFS | |
4001 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4002 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4003 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4004 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4006 | break 2 |
4007 | fi | |
4008 | done | |
81ecdfbb RW |
4009 | done |
4010 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4011 | |
4012 | fi | |
4013 | fi | |
4014 | CC=$ac_cv_prog_CC | |
4015 | if test -n "$CC"; then | |
81ecdfbb RW |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4017 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4018 | else |
81ecdfbb RW |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4020 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4021 | fi |
4022 | ||
81ecdfbb | 4023 | |
c6b750e1 DJ |
4024 | fi |
4025 | if test -z "$ac_cv_prog_CC"; then | |
4026 | ac_ct_CC=$CC | |
6a9cf61e | 4027 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4028 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4030 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4031 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4032 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4033 | else |
4034 | if test -n "$ac_ct_CC"; then | |
4035 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4036 | else | |
4037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4038 | for as_dir in $PATH | |
4039 | do | |
4040 | IFS=$as_save_IFS | |
4041 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4042 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4043 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4044 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4046 | break 2 |
4047 | fi | |
4048 | done | |
81ecdfbb RW |
4049 | done |
4050 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4051 | |
4052 | fi | |
4053 | fi | |
4054 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4055 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4057 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4058 | else |
81ecdfbb RW |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4060 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4061 | fi |
4062 | ||
81ecdfbb RW |
4063 | if test "x$ac_ct_CC" = x; then |
4064 | CC="" | |
4065 | else | |
4066 | case $cross_compiling:$ac_tool_warned in | |
4067 | yes:) | |
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4069 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4070 | ac_tool_warned=yes ;; | |
4071 | esac | |
4072 | CC=$ac_ct_CC | |
4073 | fi | |
c6b750e1 DJ |
4074 | else |
4075 | CC="$ac_cv_prog_CC" | |
4076 | fi | |
4077 | ||
4078 | if test -z "$CC"; then | |
81ecdfbb RW |
4079 | if test -n "$ac_tool_prefix"; then |
4080 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4081 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4083 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4084 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4085 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4086 | else |
4087 | if test -n "$CC"; then | |
4088 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4089 | else | |
c6b750e1 DJ |
4090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4091 | for as_dir in $PATH | |
4092 | do | |
4093 | IFS=$as_save_IFS | |
4094 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4095 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4097 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4099 | break 2 |
4100 | fi | |
4101 | done | |
81ecdfbb RW |
4102 | done |
4103 | IFS=$as_save_IFS | |
c6b750e1 | 4104 | |
9e07f89d NN |
4105 | fi |
4106 | fi | |
c6b750e1 | 4107 | CC=$ac_cv_prog_CC |
9e07f89d | 4108 | if test -n "$CC"; then |
81ecdfbb RW |
4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4110 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4111 | else |
81ecdfbb RW |
4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4113 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4114 | fi |
4115 | ||
c6b750e1 | 4116 | |
81ecdfbb | 4117 | fi |
c6b750e1 | 4118 | fi |
9e07f89d NN |
4119 | if test -z "$CC"; then |
4120 | # Extract the first word of "cc", so it can be a program name with args. | |
4121 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4123 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4124 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4125 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4126 | else |
4127 | if test -n "$CC"; then | |
4128 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4129 | else | |
9e07f89d | 4130 | ac_prog_rejected=no |
c6b750e1 DJ |
4131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4132 | for as_dir in $PATH | |
4133 | do | |
4134 | IFS=$as_save_IFS | |
4135 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4136 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4138 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4139 | ac_prog_rejected=yes | |
4140 | continue | |
4141 | fi | |
4142 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4144 | break 2 |
4145 | fi | |
4146 | done | |
81ecdfbb RW |
4147 | done |
4148 | IFS=$as_save_IFS | |
c6b750e1 | 4149 | |
9e07f89d NN |
4150 | if test $ac_prog_rejected = yes; then |
4151 | # We found a bogon in the path, so make sure we never use it. | |
4152 | set dummy $ac_cv_prog_CC | |
4153 | shift | |
c6b750e1 | 4154 | if test $# != 0; then |
9e07f89d NN |
4155 | # We chose a different compiler from the bogus one. |
4156 | # However, it has the same basename, so the bogon will be chosen | |
4157 | # first if we set CC to just the basename; use the full file name. | |
4158 | shift | |
c6b750e1 | 4159 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4160 | fi |
4161 | fi | |
4162 | fi | |
4163 | fi | |
c6b750e1 | 4164 | CC=$ac_cv_prog_CC |
9e07f89d | 4165 | if test -n "$CC"; then |
81ecdfbb RW |
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4167 | $as_echo "$CC" >&6; } | |
9e07f89d | 4168 | else |
81ecdfbb RW |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4170 | $as_echo "no" >&6; } | |
9e07f89d NN |
4171 | fi |
4172 | ||
81ecdfbb | 4173 | |
c6b750e1 DJ |
4174 | fi |
4175 | if test -z "$CC"; then | |
4176 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4177 | for ac_prog in cl.exe |
c6b750e1 DJ |
4178 | do |
4179 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4180 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4182 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4183 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4184 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4185 | else |
4186 | if test -n "$CC"; then | |
4187 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4188 | else | |
c6b750e1 DJ |
4189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4190 | for as_dir in $PATH | |
4191 | do | |
4192 | IFS=$as_save_IFS | |
4193 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4194 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4196 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4198 | break 2 |
376a0e54 | 4199 | fi |
c6b750e1 | 4200 | done |
81ecdfbb RW |
4201 | done |
4202 | IFS=$as_save_IFS | |
cac3d6c4 | 4203 | |
c6b750e1 DJ |
4204 | fi |
4205 | fi | |
4206 | CC=$ac_cv_prog_CC | |
4207 | if test -n "$CC"; then | |
81ecdfbb RW |
4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4209 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4210 | else |
81ecdfbb RW |
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4212 | $as_echo "no" >&6; } | |
9e07f89d | 4213 | fi |
cac3d6c4 | 4214 | |
81ecdfbb | 4215 | |
c6b750e1 DJ |
4216 | test -n "$CC" && break |
4217 | done | |
cac3d6c4 | 4218 | fi |
c6b750e1 DJ |
4219 | if test -z "$CC"; then |
4220 | ac_ct_CC=$CC | |
81ecdfbb | 4221 | for ac_prog in cl.exe |
c6b750e1 DJ |
4222 | do |
4223 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4224 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4226 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4227 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4228 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4229 | else |
c6b750e1 DJ |
4230 | if test -n "$ac_ct_CC"; then |
4231 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4232 | else |
c6b750e1 DJ |
4233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4234 | for as_dir in $PATH | |
4235 | do | |
4236 | IFS=$as_save_IFS | |
4237 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4238 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4239 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4240 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4242 | break 2 |
4243 | fi | |
4244 | done | |
81ecdfbb RW |
4245 | done |
4246 | IFS=$as_save_IFS | |
c6b750e1 | 4247 | |
cac3d6c4 CM |
4248 | fi |
4249 | fi | |
c6b750e1 DJ |
4250 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4251 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4253 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4254 | else |
81ecdfbb RW |
4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4256 | $as_echo "no" >&6; } | |
cac3d6c4 | 4257 | fi |
376a0e54 | 4258 | |
81ecdfbb | 4259 | |
c6b750e1 DJ |
4260 | test -n "$ac_ct_CC" && break |
4261 | done | |
4262 | ||
81ecdfbb RW |
4263 | if test "x$ac_ct_CC" = x; then |
4264 | CC="" | |
4265 | else | |
4266 | case $cross_compiling:$ac_tool_warned in | |
4267 | yes:) | |
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4269 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4270 | ac_tool_warned=yes ;; | |
4271 | esac | |
4272 | CC=$ac_ct_CC | |
4273 | fi | |
c6b750e1 DJ |
4274 | fi |
4275 | ||
4276 | fi | |
4277 | ||
4278 | ||
81ecdfbb RW |
4279 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4281 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4282 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4283 | |
4284 | # Provide some information about the compiler. | |
81ecdfbb RW |
4285 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4286 | set X $ac_compile | |
4287 | ac_compiler=$2 | |
4288 | for ac_option in --version -v -V -qversion; do | |
4289 | { { ac_try="$ac_compiler $ac_option >&5" | |
4290 | case "(($ac_try" in | |
4291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4292 | *) ac_try_echo=$ac_try;; | |
4293 | esac | |
4294 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4295 | $as_echo "$ac_try_echo"; } >&5 | |
4296 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4297 | ac_status=$? |
81ecdfbb RW |
4298 | if test -s conftest.err; then |
4299 | sed '10a\ | |
4300 | ... rest of stderr output deleted ... | |
4301 | 10q' conftest.err >conftest.er1 | |
4302 | cat conftest.er1 >&5 | |
81ecdfbb | 4303 | fi |
d0ac1c44 | 4304 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4306 | test $ac_status = 0; } | |
4307 | done | |
c6b750e1 | 4308 | |
81ecdfbb | 4309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4310 | /* end confdefs.h. */ |
4311 | ||
4312 | int | |
4313 | main () | |
4314 | { | |
4315 | ||
4316 | ; | |
4317 | return 0; | |
4318 | } | |
4319 | _ACEOF | |
4320 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4321 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4322 | # Try to create an executable without -o first, disregard a.out. |
4323 | # It will help us diagnose broken compilers, and finding out an intuition | |
4324 | # of exeext. | |
d0ac1c44 SM |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4326 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4327 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4328 | ||
4329 | # The possible output files: | |
4330 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4331 | ||
4332 | ac_rmfiles= | |
4333 | for ac_file in $ac_files | |
4334 | do | |
4335 | case $ac_file in | |
4336 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4337 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4338 | esac | |
4339 | done | |
4340 | rm -f $ac_rmfiles | |
4341 | ||
4342 | if { { ac_try="$ac_link_default" | |
4343 | case "(($ac_try" in | |
4344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4345 | *) ac_try_echo=$ac_try;; | |
4346 | esac | |
4347 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4348 | $as_echo "$ac_try_echo"; } >&5 | |
4349 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4350 | ac_status=$? |
81ecdfbb RW |
4351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4352 | test $ac_status = 0; }; then : | |
4353 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4354 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4355 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4356 | # so that the user can short-circuit this test for compilers unknown to | |
4357 | # Autoconf. | |
4358 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4359 | do |
4360 | test -f "$ac_file" || continue | |
4361 | case $ac_file in | |
81ecdfbb | 4362 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4363 | ;; |
4364 | [ab].out ) | |
4365 | # We found the default executable, but exeext='' is most | |
4366 | # certainly right. | |
4367 | break;; | |
4368 | *.* ) | |
81ecdfbb RW |
4369 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4370 | then :; else | |
4371 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4372 | fi | |
4373 | # We set ac_cv_exeext here because the later test for it is not | |
4374 | # safe: cross compilers may not add the suffix if given an `-o' | |
4375 | # argument, so we may need to know it at that point already. | |
4376 | # Even if this section looks crufty: it has the advantage of | |
4377 | # actually working. | |
c6b750e1 DJ |
4378 | break;; |
4379 | * ) | |
4380 | break;; | |
4381 | esac | |
4382 | done | |
81ecdfbb RW |
4383 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4384 | ||
c6b750e1 | 4385 | else |
81ecdfbb RW |
4386 | ac_file='' |
4387 | fi | |
81ecdfbb | 4388 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4390 | $as_echo "no" >&6; } | |
4391 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4392 | sed 's/^/| /' conftest.$ac_ext >&5 |
4393 | ||
81ecdfbb RW |
4394 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4395 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4396 | as_fn_error 77 "C compiler cannot create executables |
4397 | See \`config.log' for more details" "$LINENO" 5; } | |
4398 | else | |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4400 | $as_echo "yes" >&6; } | |
c6b750e1 | 4401 | fi |
d0ac1c44 SM |
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4403 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4405 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4406 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4407 | |
d0ac1c44 | 4408 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4409 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4411 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4412 | if { { ac_try="$ac_link" | |
4413 | case "(($ac_try" in | |
4414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4415 | *) ac_try_echo=$ac_try;; | |
4416 | esac | |
4417 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4418 | $as_echo "$ac_try_echo"; } >&5 | |
4419 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4420 | ac_status=$? |
81ecdfbb RW |
4421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4422 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4423 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4424 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4425 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4426 | # `rm'. | |
4427 | for ac_file in conftest.exe conftest conftest.*; do | |
4428 | test -f "$ac_file" || continue | |
4429 | case $ac_file in | |
81ecdfbb | 4430 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4431 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4432 | break;; |
4433 | * ) break;; | |
4434 | esac | |
4435 | done | |
4436 | else | |
81ecdfbb RW |
4437 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4438 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4439 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4440 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4441 | fi |
d0ac1c44 | 4442 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4444 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4445 | |
4446 | rm -f conftest.$ac_ext | |
4447 | EXEEXT=$ac_cv_exeext | |
4448 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4450 | /* end confdefs.h. */ | |
4451 | #include <stdio.h> | |
4452 | int | |
4453 | main () | |
4454 | { | |
4455 | FILE *f = fopen ("conftest.out", "w"); | |
4456 | return ferror (f) || fclose (f) != 0; | |
4457 | ||
4458 | ; | |
4459 | return 0; | |
4460 | } | |
4461 | _ACEOF | |
4462 | ac_clean_files="$ac_clean_files conftest.out" | |
4463 | # Check that the compiler produces executables we can run. If not, either | |
4464 | # the compiler is broken, or we cross compile. | |
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4466 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4467 | if test "$cross_compiling" != yes; then | |
4468 | { { ac_try="$ac_link" | |
4469 | case "(($ac_try" in | |
4470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4471 | *) ac_try_echo=$ac_try;; | |
4472 | esac | |
4473 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4474 | $as_echo "$ac_try_echo"; } >&5 | |
4475 | (eval "$ac_link") 2>&5 | |
4476 | ac_status=$? | |
4477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4478 | test $ac_status = 0; } | |
4479 | if { ac_try='./conftest$ac_cv_exeext' | |
4480 | { { case "(($ac_try" in | |
4481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4482 | *) ac_try_echo=$ac_try;; | |
4483 | esac | |
4484 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4485 | $as_echo "$ac_try_echo"; } >&5 | |
4486 | (eval "$ac_try") 2>&5 | |
4487 | ac_status=$? | |
4488 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4489 | test $ac_status = 0; }; }; then | |
4490 | cross_compiling=no | |
4491 | else | |
4492 | if test "$cross_compiling" = maybe; then | |
4493 | cross_compiling=yes | |
4494 | else | |
4495 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4496 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4497 | as_fn_error $? "cannot run C compiled programs. | |
4498 | If you meant to cross compile, use \`--host'. | |
4499 | See \`config.log' for more details" "$LINENO" 5; } | |
4500 | fi | |
4501 | fi | |
4502 | fi | |
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4504 | $as_echo "$cross_compiling" >&6; } | |
4505 | ||
4506 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4507 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4509 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4510 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4511 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4512 | else |
81ecdfbb | 4513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4514 | /* end confdefs.h. */ |
4515 | ||
4516 | int | |
4517 | main () | |
4518 | { | |
4519 | ||
4520 | ; | |
4521 | return 0; | |
4522 | } | |
4523 | _ACEOF | |
4524 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4525 | if { { ac_try="$ac_compile" |
4526 | case "(($ac_try" in | |
4527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4528 | *) ac_try_echo=$ac_try;; | |
4529 | esac | |
4530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4531 | $as_echo "$ac_try_echo"; } >&5 | |
4532 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4533 | ac_status=$? |
81ecdfbb RW |
4534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4535 | test $ac_status = 0; }; then : | |
4536 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4537 | test -f "$ac_file" || continue; | |
c6b750e1 | 4538 | case $ac_file in |
81ecdfbb | 4539 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4540 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4541 | break;; | |
4542 | esac | |
4543 | done | |
cac3d6c4 | 4544 | else |
81ecdfbb | 4545 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4546 | sed 's/^/| /' conftest.$ac_ext >&5 |
4547 | ||
81ecdfbb RW |
4548 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4549 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4550 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4551 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4552 | fi |
c6b750e1 DJ |
4553 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4554 | fi | |
81ecdfbb RW |
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4556 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4557 | OBJEXT=$ac_cv_objext |
4558 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4560 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4561 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4562 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4563 | else |
81ecdfbb | 4564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4565 | /* end confdefs.h. */ |
4566 | ||
4567 | int | |
4568 | main () | |
4569 | { | |
4570 | #ifndef __GNUC__ | |
4571 | choke me | |
4572 | #endif | |
4573 | ||
4574 | ; | |
4575 | return 0; | |
4576 | } | |
4577 | _ACEOF | |
81ecdfbb | 4578 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4579 | ac_compiler_gnu=yes |
4580 | else | |
81ecdfbb | 4581 | ac_compiler_gnu=no |
c6b750e1 | 4582 | fi |
81ecdfbb | 4583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4584 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4585 | ||
4586 | fi | |
81ecdfbb RW |
4587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4588 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4589 | if test $ac_compiler_gnu = yes; then | |
4590 | GCC=yes | |
4591 | else | |
4592 | GCC= | |
4593 | fi | |
c6b750e1 DJ |
4594 | ac_test_CFLAGS=${CFLAGS+set} |
4595 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4597 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4598 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4599 | $as_echo_n "(cached) " >&6 |
4600 | else | |
4601 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4602 | ac_c_werror_flag=yes | |
4603 | ac_cv_prog_cc_g=no | |
4604 | CFLAGS="-g" | |
4605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4606 | /* end confdefs.h. */ |
4607 | ||
4608 | int | |
4609 | main () | |
4610 | { | |
4611 | ||
4612 | ; | |
4613 | return 0; | |
4614 | } | |
4615 | _ACEOF | |
81ecdfbb | 4616 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4617 | ac_cv_prog_cc_g=yes |
4618 | else | |
81ecdfbb RW |
4619 | CFLAGS="" |
4620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4621 | /* end confdefs.h. */ | |
4622 | ||
4623 | int | |
4624 | main () | |
4625 | { | |
4626 | ||
4627 | ; | |
4628 | return 0; | |
4629 | } | |
4630 | _ACEOF | |
4631 | if ac_fn_c_try_compile "$LINENO"; then : | |
4632 | ||
4633 | else | |
4634 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4635 | CFLAGS="-g" | |
4636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4637 | /* end confdefs.h. */ | |
cac3d6c4 | 4638 | |
81ecdfbb RW |
4639 | int |
4640 | main () | |
4641 | { | |
4642 | ||
4643 | ; | |
4644 | return 0; | |
4645 | } | |
4646 | _ACEOF | |
4647 | if ac_fn_c_try_compile "$LINENO"; then : | |
4648 | ac_cv_prog_cc_g=yes | |
4649 | fi | |
4650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4651 | fi |
81ecdfbb | 4652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4653 | fi |
81ecdfbb RW |
4654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4655 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4656 | fi | |
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4658 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4659 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4660 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4661 | elif test $ac_cv_prog_cc_g = yes; then |
4662 | if test "$GCC" = yes; then | |
4663 | CFLAGS="-g -O2" | |
4664 | else | |
4665 | CFLAGS="-g" | |
4666 | fi | |
4667 | else | |
4668 | if test "$GCC" = yes; then | |
4669 | CFLAGS="-O2" | |
4670 | else | |
4671 | CFLAGS= | |
4672 | fi | |
4673 | fi | |
81ecdfbb RW |
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4675 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4676 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4677 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4678 | else |
81ecdfbb | 4679 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4680 | ac_save_CC=$CC |
81ecdfbb | 4681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4682 | /* end confdefs.h. */ |
4683 | #include <stdarg.h> | |
4684 | #include <stdio.h> | |
d0ac1c44 | 4685 | struct stat; |
c6b750e1 DJ |
4686 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4687 | struct buf { int x; }; | |
4688 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4689 | static char *e (p, i) | |
4690 | char **p; | |
4691 | int i; | |
4692 | { | |
4693 | return p[i]; | |
4694 | } | |
4695 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4696 | { | |
4697 | char *s; | |
4698 | va_list v; | |
4699 | va_start (v,p); | |
4700 | s = g (p, va_arg (v,int)); | |
4701 | va_end (v); | |
4702 | return s; | |
4703 | } | |
4704 | ||
4705 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4706 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4707 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4708 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4709 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4710 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4711 | that's true only with -std. */ |
c6b750e1 DJ |
4712 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4713 | ||
81ecdfbb RW |
4714 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4715 | inside strings and character constants. */ | |
4716 | #define FOO(x) 'x' | |
4717 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4718 | ||
c6b750e1 DJ |
4719 | int test (int i, double x); |
4720 | struct s1 {int (*f) (int a);}; | |
4721 | struct s2 {int (*f) (double a);}; | |
4722 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4723 | int argc; | |
4724 | char **argv; | |
4725 | int | |
4726 | main () | |
4727 | { | |
4728 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4729 | ; | |
4730 | return 0; | |
4731 | } | |
4732 | _ACEOF | |
81ecdfbb RW |
4733 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4734 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4735 | do |
4736 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4737 | if ac_fn_c_try_compile "$LINENO"; then : |
4738 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4739 | fi |
81ecdfbb RW |
4740 | rm -f core conftest.err conftest.$ac_objext |
4741 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4742 | done |
81ecdfbb | 4743 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4744 | CC=$ac_save_CC |
4745 | ||
4746 | fi | |
81ecdfbb RW |
4747 | # AC_CACHE_VAL |
4748 | case "x$ac_cv_prog_cc_c89" in | |
4749 | x) | |
4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4751 | $as_echo "none needed" >&6; } ;; | |
4752 | xno) | |
4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4754 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4755 | *) |
81ecdfbb RW |
4756 | CC="$CC $ac_cv_prog_cc_c89" |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4758 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4759 | esac |
81ecdfbb | 4760 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4761 | |
c6b750e1 DJ |
4762 | fi |
4763 | ||
c6b750e1 DJ |
4764 | ac_ext=c |
4765 | ac_cpp='$CPP $CPPFLAGS' | |
4766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4769 | |
81ecdfbb | 4770 | ac_ext=cpp |
18f6b6ee PB |
4771 | ac_cpp='$CXXCPP $CPPFLAGS' |
4772 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4773 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4774 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4775 | if test -z "$CXX"; then |
4776 | if test -n "$CCC"; then | |
4777 | CXX=$CCC | |
4778 | else | |
4779 | if test -n "$ac_tool_prefix"; then | |
4780 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4781 | do |
4782 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4783 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4785 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4786 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 4787 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4788 | else |
4789 | if test -n "$CXX"; then | |
4790 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4791 | else | |
4792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4793 | for as_dir in $PATH | |
4794 | do | |
4795 | IFS=$as_save_IFS | |
4796 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4797 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4799 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4801 | break 2 |
4802 | fi | |
4803 | done | |
81ecdfbb RW |
4804 | done |
4805 | IFS=$as_save_IFS | |
512b7dfb | 4806 | |
18f6b6ee PB |
4807 | fi |
4808 | fi | |
4809 | CXX=$ac_cv_prog_CXX | |
4810 | if test -n "$CXX"; then | |
81ecdfbb RW |
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4812 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4813 | else |
81ecdfbb RW |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4815 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4816 | fi |
4817 | ||
81ecdfbb | 4818 | |
18f6b6ee PB |
4819 | test -n "$CXX" && break |
4820 | done | |
4821 | fi | |
4822 | if test -z "$CXX"; then | |
4823 | ac_ct_CXX=$CXX | |
81ecdfbb | 4824 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4825 | do |
4826 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4827 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4829 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4830 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 4831 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4832 | else |
4833 | if test -n "$ac_ct_CXX"; then | |
4834 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4835 | else | |
4836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4837 | for as_dir in $PATH | |
4838 | do | |
4839 | IFS=$as_save_IFS | |
4840 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4841 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4843 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4845 | break 2 |
512b7dfb | 4846 | fi |
18f6b6ee | 4847 | done |
81ecdfbb RW |
4848 | done |
4849 | IFS=$as_save_IFS | |
512b7dfb | 4850 | |
18f6b6ee PB |
4851 | fi |
4852 | fi | |
4853 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4854 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4856 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4857 | else |
81ecdfbb RW |
4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4859 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4860 | fi |
4861 | ||
81ecdfbb | 4862 | |
18f6b6ee PB |
4863 | test -n "$ac_ct_CXX" && break |
4864 | done | |
18f6b6ee | 4865 | |
81ecdfbb RW |
4866 | if test "x$ac_ct_CXX" = x; then |
4867 | CXX="g++" | |
4868 | else | |
4869 | case $cross_compiling:$ac_tool_warned in | |
4870 | yes:) | |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4872 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4873 | ac_tool_warned=yes ;; | |
4874 | esac | |
4875 | CXX=$ac_ct_CXX | |
4876 | fi | |
18f6b6ee PB |
4877 | fi |
4878 | ||
81ecdfbb RW |
4879 | fi |
4880 | fi | |
18f6b6ee | 4881 | # Provide some information about the compiler. |
81ecdfbb RW |
4882 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4883 | set X $ac_compile | |
4884 | ac_compiler=$2 | |
4885 | for ac_option in --version -v -V -qversion; do | |
4886 | { { ac_try="$ac_compiler $ac_option >&5" | |
4887 | case "(($ac_try" in | |
4888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4889 | *) ac_try_echo=$ac_try;; | |
4890 | esac | |
4891 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4892 | $as_echo "$ac_try_echo"; } >&5 | |
4893 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4894 | ac_status=$? |
81ecdfbb RW |
4895 | if test -s conftest.err; then |
4896 | sed '10a\ | |
4897 | ... rest of stderr output deleted ... | |
4898 | 10q' conftest.err >conftest.er1 | |
4899 | cat conftest.er1 >&5 | |
81ecdfbb | 4900 | fi |
d0ac1c44 | 4901 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4903 | test $ac_status = 0; } | |
4904 | done | |
18f6b6ee | 4905 | |
81ecdfbb RW |
4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4907 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 4908 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 4909 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 4910 | else |
81ecdfbb | 4911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4912 | /* end confdefs.h. */ |
4913 | ||
4914 | int | |
4915 | main () | |
4916 | { | |
4917 | #ifndef __GNUC__ | |
4918 | choke me | |
4919 | #endif | |
4920 | ||
4921 | ; | |
4922 | return 0; | |
4923 | } | |
4924 | _ACEOF | |
81ecdfbb | 4925 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4926 | ac_compiler_gnu=yes |
4927 | else | |
81ecdfbb | 4928 | ac_compiler_gnu=no |
18f6b6ee | 4929 | fi |
81ecdfbb | 4930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4931 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4932 | ||
4933 | fi | |
81ecdfbb RW |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4935 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4936 | if test $ac_compiler_gnu = yes; then | |
4937 | GXX=yes | |
4938 | else | |
4939 | GXX= | |
4940 | fi | |
18f6b6ee PB |
4941 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4942 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4944 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 4945 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
4946 | $as_echo_n "(cached) " >&6 |
4947 | else | |
4948 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4949 | ac_cxx_werror_flag=yes | |
4950 | ac_cv_prog_cxx_g=no | |
4951 | CXXFLAGS="-g" | |
4952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4953 | /* end confdefs.h. */ |
4954 | ||
4955 | int | |
4956 | main () | |
4957 | { | |
4958 | ||
4959 | ; | |
4960 | return 0; | |
4961 | } | |
4962 | _ACEOF | |
81ecdfbb | 4963 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4964 | ac_cv_prog_cxx_g=yes |
4965 | else | |
81ecdfbb RW |
4966 | CXXFLAGS="" |
4967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4968 | /* end confdefs.h. */ |
81ecdfbb | 4969 | |
18f6b6ee PB |
4970 | int |
4971 | main () | |
4972 | { | |
81ecdfbb | 4973 | |
18f6b6ee PB |
4974 | ; |
4975 | return 0; | |
4976 | } | |
4977 | _ACEOF | |
81ecdfbb | 4978 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4979 | |
81ecdfbb RW |
4980 | else |
4981 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4982 | CXXFLAGS="-g" | |
4983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4984 | /* end confdefs.h. */ |
81ecdfbb | 4985 | |
18f6b6ee PB |
4986 | int |
4987 | main () | |
4988 | { | |
81ecdfbb | 4989 | |
18f6b6ee PB |
4990 | ; |
4991 | return 0; | |
4992 | } | |
4993 | _ACEOF | |
81ecdfbb RW |
4994 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4995 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4996 | fi |
81ecdfbb RW |
4997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4998 | fi | |
4999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5000 | fi | |
5001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5002 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5003 | fi | |
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5005 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5006 | if test "$ac_test_CXXFLAGS" = set; then | |
5007 | CXXFLAGS=$ac_save_CXXFLAGS | |
5008 | elif test $ac_cv_prog_cxx_g = yes; then | |
5009 | if test "$GXX" = yes; then | |
5010 | CXXFLAGS="-g -O2" | |
5011 | else | |
5012 | CXXFLAGS="-g" | |
5013 | fi | |
5014 | else | |
5015 | if test "$GXX" = yes; then | |
5016 | CXXFLAGS="-O2" | |
5017 | else | |
5018 | CXXFLAGS= | |
5019 | fi | |
18f6b6ee | 5020 | fi |
18f6b6ee PB |
5021 | ac_ext=c |
5022 | ac_cpp='$CPP $CPPFLAGS' | |
5023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5026 | ||
5027 | ||
5028 | # We must set the default linker to the linker used by gcc for the correct | |
5029 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5030 | # set the LD default to the ld used by gcc. | |
5031 | if test -z "$LD"; then | |
5032 | if test "$GCC" = yes; then | |
5033 | case $build in | |
5034 | *-*-mingw*) | |
5035 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5036 | *) | |
5037 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5038 | esac | |
5039 | case $gcc_prog_ld in | |
5040 | # Accept absolute paths. | |
5041 | [\\/]* | [A-Za-z]:[\\/]*) | |
5042 | LD="$gcc_prog_ld" ;; | |
5043 | esac | |
5044 | fi | |
512b7dfb PB |
5045 | fi |
5046 | ||
b3676d82 EB |
5047 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5048 | have_static_libs=no | |
5049 | if test "$GCC" = yes; then | |
5050 | saved_LDFLAGS="$LDFLAGS" | |
5051 | ||
5052 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5054 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5055 | ac_ext=cpp | |
5056 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5057 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5058 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5059 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5060 | ||
5061 | ||
5062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5063 | /* end confdefs.h. */ | |
a882be68 EB |
5064 | |
5065 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5066 | #error -static-libstdc++ not implemented | |
5067 | #endif | |
b3676d82 EB |
5068 | int main() {} |
5069 | _ACEOF | |
5070 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5072 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5073 | else | |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5075 | $as_echo "no" >&6; } | |
5076 | fi | |
5077 | rm -f core conftest.err conftest.$ac_objext \ | |
5078 | conftest$ac_exeext conftest.$ac_ext | |
5079 | ac_ext=c | |
5080 | ac_cpp='$CPP $CPPFLAGS' | |
5081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5084 | ||
5085 | ||
5086 | LDFLAGS="$saved_LDFLAGS" | |
5087 | fi | |
5088 | ||
512b7dfb PB |
5089 | |
5090 | ||
5091 | ||
c6b750e1 | 5092 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5093 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5094 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5096 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5097 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5098 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5099 | else |
512b7dfb PB |
5100 | if test -n "$GNATBIND"; then |
5101 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5102 | else |
c6b750e1 DJ |
5103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5104 | for as_dir in $PATH | |
5105 | do | |
5106 | IFS=$as_save_IFS | |
5107 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5108 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5110 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5112 | break 2 |
5113 | fi | |
5114 | done | |
81ecdfbb RW |
5115 | done |
5116 | IFS=$as_save_IFS | |
c6b750e1 | 5117 | |
9e07f89d NN |
5118 | fi |
5119 | fi | |
512b7dfb PB |
5120 | GNATBIND=$ac_cv_prog_GNATBIND |
5121 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5123 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5124 | else |
81ecdfbb RW |
5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5126 | $as_echo "no" >&6; } | |
9e07f89d NN |
5127 | fi |
5128 | ||
81ecdfbb | 5129 | |
c6b750e1 | 5130 | fi |
512b7dfb PB |
5131 | if test -z "$ac_cv_prog_GNATBIND"; then |
5132 | ac_ct_GNATBIND=$GNATBIND | |
5133 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5134 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5136 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5137 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5138 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5139 | else |
512b7dfb PB |
5140 | if test -n "$ac_ct_GNATBIND"; then |
5141 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5142 | else |
c6b750e1 DJ |
5143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5144 | for as_dir in $PATH | |
5145 | do | |
5146 | IFS=$as_save_IFS | |
5147 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5148 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5149 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5150 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5152 | break 2 |
5153 | fi | |
5154 | done | |
81ecdfbb RW |
5155 | done |
5156 | IFS=$as_save_IFS | |
c6b750e1 | 5157 | |
9e07f89d NN |
5158 | fi |
5159 | fi | |
512b7dfb PB |
5160 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5161 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5163 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5164 | else |
81ecdfbb RW |
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5166 | $as_echo "no" >&6; } | |
9e07f89d NN |
5167 | fi |
5168 | ||
81ecdfbb RW |
5169 | if test "x$ac_ct_GNATBIND" = x; then |
5170 | GNATBIND="no" | |
5171 | else | |
5172 | case $cross_compiling:$ac_tool_warned in | |
5173 | yes:) | |
5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5175 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5176 | ac_tool_warned=yes ;; | |
5177 | esac | |
5178 | GNATBIND=$ac_ct_GNATBIND | |
5179 | fi | |
24ff9987 | 5180 | else |
512b7dfb | 5181 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5182 | fi |
5183 | ||
7df2cd5d | 5184 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5185 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5186 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5188 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5189 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5190 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5191 | else |
512b7dfb PB |
5192 | if test -n "$GNATMAKE"; then |
5193 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5194 | else |
5195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5196 | for as_dir in $PATH | |
5197 | do | |
5198 | IFS=$as_save_IFS | |
5199 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5200 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5202 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5204 | break 2 |
5205 | fi | |
5206 | done | |
81ecdfbb RW |
5207 | done |
5208 | IFS=$as_save_IFS | |
7df2cd5d PB |
5209 | |
5210 | fi | |
5211 | fi | |
512b7dfb PB |
5212 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5213 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5215 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5216 | else |
81ecdfbb RW |
5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5218 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5219 | fi |
5220 | ||
81ecdfbb | 5221 | |
7df2cd5d | 5222 | fi |
512b7dfb PB |
5223 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5224 | ac_ct_GNATMAKE=$GNATMAKE | |
5225 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5226 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5228 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5229 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5230 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5231 | else |
512b7dfb PB |
5232 | if test -n "$ac_ct_GNATMAKE"; then |
5233 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5234 | else |
5235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5236 | for as_dir in $PATH | |
5237 | do | |
5238 | IFS=$as_save_IFS | |
5239 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5240 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5242 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5244 | break 2 |
5245 | fi | |
5246 | done | |
81ecdfbb RW |
5247 | done |
5248 | IFS=$as_save_IFS | |
7df2cd5d | 5249 | |
7df2cd5d PB |
5250 | fi |
5251 | fi | |
512b7dfb PB |
5252 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5253 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5255 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5256 | else |
81ecdfbb RW |
5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5258 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5259 | fi |
5260 | ||
81ecdfbb RW |
5261 | if test "x$ac_ct_GNATMAKE" = x; then |
5262 | GNATMAKE="no" | |
5263 | else | |
5264 | case $cross_compiling:$ac_tool_warned in | |
5265 | yes:) | |
5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5267 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5268 | ac_tool_warned=yes ;; | |
5269 | esac | |
5270 | GNATMAKE=$ac_ct_GNATMAKE | |
5271 | fi | |
7df2cd5d | 5272 | else |
512b7dfb | 5273 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5274 | fi |
5275 | ||
81ecdfbb RW |
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5277 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
d0ac1c44 | 5278 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5279 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5280 | else |
5281 | cat >conftest.adb <<EOF | |
5282 | procedure conftest is begin null; end conftest; | |
5283 | EOF | |
5284 | acx_cv_cc_gcc_supports_ada=no | |
5285 | # There is a bug in old released versions of GCC which causes the | |
5286 | # driver to exit successfully when the appropriate language module | |
5287 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5288 | # Therefore we must check for the error message as well as an | |
5289 | # unsuccessful exit. | |
b8908782 DD |
5290 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5291 | # given a .adb file, but produce no object file. So we must check | |
5292 | # if an object file was really produced to guard against this. | |
9e07f89d | 5293 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5294 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5295 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5296 | fi |
5297 | rm -f conftest.* | |
5298 | fi | |
81ecdfbb RW |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5300 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5301 | |
64b986c0 | 5302 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5303 | have_gnat=yes |
5304 | else | |
5305 | have_gnat=no | |
5306 | fi | |
5307 | ||
81ecdfbb RW |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5309 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5310 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5311 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5312 | else |
5313 | echo abfoo >t1 | |
5314 | echo cdfoo >t2 | |
da17fe9d | 5315 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5316 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5317 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5318 | : | |
5319 | else | |
5320 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5321 | fi | |
5322 | fi | |
b8908782 DD |
5323 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5324 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5325 | : |
b8908782 DD |
5326 | else |
5327 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5328 | fi | |
5329 | fi | |
5330 | rm t1 t2 | |
5331 | ||
5332 | fi | |
81ecdfbb RW |
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5334 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5335 | do_compare="$gcc_cv_prog_cmp_skip" |
5336 | ||
5337 | ||
9e07f89d | 5338 | |
ffdd6afc ILT |
5339 | # Check whether --enable-bootstrap was given. |
5340 | if test "${enable_bootstrap+set}" = set; then : | |
5341 | enableval=$enable_bootstrap; | |
5342 | else | |
5343 | enable_bootstrap=default | |
5344 | fi | |
5345 | ||
5346 | ||
5347 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5348 | if test -r $srcdir/gcc/configure; then | |
5349 | have_compiler=yes | |
5350 | else | |
5351 | have_compiler=no | |
5352 | fi | |
5353 | ||
5354 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5355 | *:*:*:no) ;; | |
5356 | ||
5357 | # Default behavior. Enable bootstrap if we have a compiler | |
5358 | # and we are in a native configuration. | |
5359 | yes:$build:$build:default) | |
5360 | enable_bootstrap=yes ;; | |
5361 | ||
5362 | *:*:*:default) | |
5363 | enable_bootstrap=no ;; | |
5364 | ||
5365 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5366 | yes:$build:$build:yes) | |
5367 | ;; | |
5368 | ||
5369 | # Other configurations, but we have a compiler. Assume the user knows | |
5370 | # what he's doing. | |
5371 | yes:*:*:yes) | |
5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5373 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5374 | ;; | |
5375 | ||
5376 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5377 | no:*:*:yes) | |
d0ac1c44 | 5378 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5379 | |
5380 | # Fail if wrong command line | |
5381 | *) | |
d0ac1c44 | 5382 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5383 | ;; |
5384 | esac | |
5385 | ||
ce6c656d L |
5386 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5387 | # C++98 compiler can still start the bootstrap. | |
5388 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5389 | CXX="$CXX -std=gnu++98" | |
5390 | fi | |
5391 | ||
d5f2ee2e KG |
5392 | # Used for setting $lt_cv_objdir |
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5394 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 5395 | if ${lt_cv_objdir+:} false; then : |
d5f2ee2e KG |
5396 | $as_echo_n "(cached) " >&6 |
5397 | else | |
5398 | rm -f .libs 2>/dev/null | |
5399 | mkdir .libs 2>/dev/null | |
5400 | if test -d .libs; then | |
5401 | lt_cv_objdir=.libs | |
5402 | else | |
5403 | # MS-DOS does not allow filenames that begin with a dot. | |
5404 | lt_cv_objdir=_libs | |
5405 | fi | |
5406 | rmdir .libs 2>/dev/null | |
5407 | fi | |
5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5409 | $as_echo "$lt_cv_objdir" >&6; } | |
5410 | objdir=$lt_cv_objdir | |
5411 | ||
5412 | ||
5413 | ||
5414 | ||
5415 | ||
5416 | cat >>confdefs.h <<_ACEOF | |
5417 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5418 | _ACEOF | |
5419 | ||
5420 | ||
5421 | ||
e8a5fa9c | 5422 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5423 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5424 | gmpinc= |
4b900473 | 5425 | have_gmp=no |
e8a5fa9c RW |
5426 | |
5427 | # Specify a location for mpc | |
5428 | # check for this first so it ends up on the link line before mpfr. | |
5429 | ||
81ecdfbb RW |
5430 | # Check whether --with-mpc was given. |
5431 | if test "${with_mpc+set}" = set; then : | |
5432 | withval=$with_mpc; | |
5433 | fi | |
e8a5fa9c | 5434 | |
e8a5fa9c | 5435 | |
e552509b | 5436 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5437 | if test "${with_mpc_include+set}" = set; then : |
5438 | withval=$with_mpc_include; | |
5439 | fi | |
e8a5fa9c | 5440 | |
e8a5fa9c | 5441 | |
e552509b | 5442 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5443 | if test "${with_mpc_lib+set}" = set; then : |
5444 | withval=$with_mpc_lib; | |
5445 | fi | |
e8a5fa9c | 5446 | |
e8a5fa9c RW |
5447 | |
5448 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5449 | gmplibs="-L$with_mpc/lib $gmplibs" |
5450 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5451 | fi |
5452 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5453 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5454 | fi |
5455 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5456 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5457 | fi |
5458 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5459 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5460 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5461 | # Do not test the mpc version. Assume that it is sufficient, since |
5462 | # it is in the source tree, and the library has not been built yet | |
5463 | # but it would be included on the link line in the version check below | |
5464 | # hence making the test fail. | |
d9b76ff9 | 5465 | have_gmp=yes |
e8a5fa9c | 5466 | fi |
4b900473 | 5467 | |
11b04d1f DD |
5468 | # Specify a location for mpfr |
5469 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5470 | |
81ecdfbb RW |
5471 | # Check whether --with-mpfr-dir was given. |
5472 | if test "${with_mpfr_dir+set}" = set; then : | |
d0ac1c44 | 5473 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
81ecdfbb RW |
5474 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5475 | fi | |
5476 | ||
11b04d1f DD |
5477 | |
5478 | ||
81ecdfbb RW |
5479 | # Check whether --with-mpfr was given. |
5480 | if test "${with_mpfr+set}" = set; then : | |
5481 | withval=$with_mpfr; | |
5482 | fi | |
c6b750e1 | 5483 | |
11b04d1f | 5484 | |
e552509b | 5485 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5486 | if test "${with_mpfr_include+set}" = set; then : |
5487 | withval=$with_mpfr_include; | |
5488 | fi | |
c6b750e1 | 5489 | |
8a0d8a5c | 5490 | |
e552509b | 5491 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5492 | if test "${with_mpfr_lib+set}" = set; then : |
5493 | withval=$with_mpfr_lib; | |
5494 | fi | |
8a0d8a5c | 5495 | |
11b04d1f DD |
5496 | |
5497 | if test "x$with_mpfr" != x; then | |
5498 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5499 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5500 | fi |
8a0d8a5c | 5501 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5502 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5503 | fi |
5504 | if test "x$with_mpfr_lib" != x; then | |
5505 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5506 | fi | |
4b900473 | 5507 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 5508 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 5509 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 5510 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 5511 | fi |
05a13254 NC |
5512 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5513 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5514 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
5515 | # Do not test the mpfr version. Assume that it is sufficient, since |
5516 | # it is in the source tree, and the library has not been built yet | |
5517 | # but it would be included on the link line in the version check below | |
5518 | # hence making the test fail. | |
5519 | have_gmp=yes | |
5520 | fi | |
11b04d1f | 5521 | |
4b1cb4fe | 5522 | # Specify a location for gmp |
c6b750e1 | 5523 | |
81ecdfbb RW |
5524 | # Check whether --with-gmp-dir was given. |
5525 | if test "${with_gmp_dir+set}" = set; then : | |
d0ac1c44 | 5526 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
81ecdfbb RW |
5527 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5528 | fi | |
5529 | ||
4b1cb4fe DD |
5530 | |
5531 | ||
81ecdfbb RW |
5532 | # Check whether --with-gmp was given. |
5533 | if test "${with_gmp+set}" = set; then : | |
5534 | withval=$with_gmp; | |
5535 | fi | |
c6b750e1 | 5536 | |
4b1cb4fe | 5537 | |
e552509b | 5538 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5539 | if test "${with_gmp_include+set}" = set; then : |
5540 | withval=$with_gmp_include; | |
5541 | fi | |
c6b750e1 | 5542 | |
8a0d8a5c | 5543 | |
e552509b | 5544 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5545 | if test "${with_gmp_lib+set}" = set; then : |
5546 | withval=$with_gmp_lib; | |
5547 | fi | |
8a0d8a5c PB |
5548 | |
5549 | ||
4b1cb4fe | 5550 | |
11b04d1f DD |
5551 | if test "x$with_gmp" != x; then |
5552 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5553 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5554 | fi |
8a0d8a5c PB |
5555 | if test "x$with_gmp_include" != x; then |
5556 | gmpinc="-I$with_gmp_include $gmpinc" | |
5557 | fi | |
5558 | if test "x$with_gmp_lib" != x; then | |
5559 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5560 | fi | |
4b900473 | 5561 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5562 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5563 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5564 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5565 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5566 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5567 | # Do not test the gmp version. Assume that it is sufficient, since |
5568 | # it is in the source tree, and the library has not been built yet | |
5569 | # but it would be included on the link line in the version check below | |
5570 | # hence making the test fail. | |
5571 | have_gmp=yes | |
5572 | fi | |
4b1cb4fe | 5573 | |
ceb92e78 | 5574 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5575 | have_gmp=yes |
5576 | saved_CFLAGS="$CFLAGS" | |
5577 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5578 | # Check for the recommended and required versions of GMP. |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5580 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5581 | |
5582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5583 | /* end confdefs.h. */ |
5584 | #include "gmp.h" | |
5585 | int | |
5586 | main () | |
5587 | { | |
5588 | ||
5589 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5590 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5591 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5592 | choke me |
5593 | #endif | |
5594 | ||
5595 | ; | |
5596 | return 0; | |
5597 | } | |
5598 | _ACEOF | |
5599 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5601 | /* end confdefs.h. */ |
a6b5846e | 5602 | #include <gmp.h> |
c6b750e1 DJ |
5603 | int |
5604 | main () | |
5605 | { | |
4b1cb4fe | 5606 | |
a6b5846e KG |
5607 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5608 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5609 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5610 | choke me |
5611 | #endif | |
c6b750e1 DJ |
5612 | |
5613 | ; | |
5614 | return 0; | |
5615 | } | |
5616 | _ACEOF | |
81ecdfbb RW |
5617 | if ac_fn_c_try_compile "$LINENO"; then : |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5619 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5620 | else |
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5622 | $as_echo "buggy but acceptable" >&6; } | |
5623 | fi | |
5624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5625 | else |
81ecdfbb RW |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5627 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5628 | fi |
81ecdfbb | 5629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5630 | |
e8a5fa9c | 5631 | # If we have GMP, check the MPFR version. |
4b900473 | 5632 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5633 | # Check for the recommended and required versions of MPFR. |
5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5635 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5637 | /* end confdefs.h. */ |
9b134994 | 5638 | #include <gmp.h> |
4b900473 | 5639 | #include <mpfr.h> |
c6b750e1 DJ |
5640 | int |
5641 | main () | |
5642 | { | |
9b134994 | 5643 | |
7ec59b9e | 5644 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5645 | choke me |
5646 | #endif | |
c6b750e1 DJ |
5647 | |
5648 | ; | |
5649 | return 0; | |
5650 | } | |
5651 | _ACEOF | |
81ecdfbb RW |
5652 | if ac_fn_c_try_compile "$LINENO"; then : |
5653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5654 | /* end confdefs.h. */ |
4b1cb4fe | 5655 | #include <gmp.h> |
4b900473 | 5656 | #include <mpfr.h> |
c6b750e1 DJ |
5657 | int |
5658 | main () | |
5659 | { | |
9dbaa842 | 5660 | |
a6b5846e | 5661 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5662 | choke me |
5663 | #endif | |
e8a5fa9c RW |
5664 | |
5665 | ; | |
5666 | return 0; | |
5667 | } | |
5668 | _ACEOF | |
81ecdfbb RW |
5669 | if ac_fn_c_try_compile "$LINENO"; then : |
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5671 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5672 | else |
81ecdfbb RW |
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5674 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5675 | fi |
81ecdfbb | 5676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5677 | else |
81ecdfbb RW |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5679 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5680 | fi |
81ecdfbb | 5681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5682 | fi |
5683 | ||
5684 | # Check for the MPC header version. | |
d9b76ff9 | 5685 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5686 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5688 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5690 | /* end confdefs.h. */ |
5691 | #include <mpc.h> | |
5692 | int | |
5693 | main () | |
5694 | { | |
5695 | ||
a6b5846e KG |
5696 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5697 | choke me | |
5698 | #endif | |
5699 | ||
5700 | ; | |
5701 | return 0; | |
5702 | } | |
5703 | _ACEOF | |
5704 | if ac_fn_c_try_compile "$LINENO"; then : | |
5705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5706 | /* end confdefs.h. */ | |
5707 | #include <mpc.h> | |
5708 | int | |
5709 | main () | |
5710 | { | |
5711 | ||
5712 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5713 | choke me |
5714 | #endif | |
5715 | ||
5716 | ; | |
5717 | return 0; | |
5718 | } | |
5719 | _ACEOF | |
81ecdfbb RW |
5720 | if ac_fn_c_try_compile "$LINENO"; then : |
5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5722 | $as_echo "yes" >&6; } |
a6b5846e KG |
5723 | else |
5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5725 | $as_echo "buggy but acceptable" >&6; } | |
5726 | fi | |
5727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5728 | else |
81ecdfbb | 5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5730 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5731 | fi |
81ecdfbb | 5732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5733 | fi |
5734 | ||
5735 | # Now check the MPFR library. | |
5736 | if test x"$have_gmp" = xyes; then | |
5737 | saved_LIBS="$LIBS" | |
5738 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5740 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5742 | /* end confdefs.h. */ |
d9b76ff9 | 5743 | #include <mpc.h> |
e8a5fa9c RW |
5744 | int |
5745 | main () | |
5746 | { | |
5747 | ||
5748 | mpfr_t n; | |
5749 | mpfr_t x; | |
d9b76ff9 | 5750 | mpc_t c; |
e8a5fa9c RW |
5751 | int t; |
5752 | mpfr_init (n); | |
5753 | mpfr_init (x); | |
5754 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5755 | mpfr_erfc (n, x, GMP_RNDN); | |
5756 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5757 | mpfr_clear(n); |
5758 | mpfr_clear(x); | |
5759 | mpc_init2 (c, 53); | |
5760 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5761 | mpc_cosh (c, c, MPC_RNDNN); | |
5762 | mpc_pow (c, c, c, MPC_RNDNN); | |
5763 | mpc_acosh (c, c, MPC_RNDNN); | |
5764 | mpc_clear (c); | |
c6b750e1 DJ |
5765 | |
5766 | ; | |
5767 | return 0; | |
5768 | } | |
5769 | _ACEOF | |
81ecdfbb RW |
5770 | if ac_fn_c_try_link "$LINENO"; then : |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5772 | $as_echo "yes" >&6; } | |
c6b750e1 | 5773 | else |
81ecdfbb RW |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5775 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5776 | fi |
81ecdfbb RW |
5777 | rm -f core conftest.err conftest.$ac_objext \ |
5778 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5779 | LIBS="$saved_LIBS" |
5780 | fi | |
5781 | ||
4b900473 | 5782 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5783 | |
a6b5846e KG |
5784 | # The library versions listed in the error message below should match |
5785 | # the HARD-minimums enforced above. | |
4b900473 | 5786 | if test x$have_gmp != xyes; then |
d0ac1c44 | 5787 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5788 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5789 | their locations. Source code for these libraries can be found at | |
5790 | their respective hosting sites as well as at | |
5791 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5792 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5793 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5794 | make sure that you have installed both the libraries and the header | |
5795 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5796 | fi |
9dbaa842 DD |
5797 | fi |
5798 | ||
e8a5fa9c RW |
5799 | # Flags needed for both GMP, MPFR and/or MPC. |
5800 | ||
5801 | ||
5802 | ||
4b1cb4fe DD |
5803 | |
5804 | ||
5805 | ||
7ec59b9e | 5806 | |
b3676d82 | 5807 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5808 | |
b3676d82 EB |
5809 | # Check whether --with-stage1-libs was given. |
5810 | if test "${with_stage1_libs+set}" = set; then : | |
5811 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5812 | stage1_libs= | |
e8a5fa9c | 5813 | else |
b3676d82 | 5814 | stage1_libs=$withval |
e8a5fa9c RW |
5815 | fi |
5816 | else | |
68996839 | 5817 | stage1_libs= |
81ecdfbb RW |
5818 | fi |
5819 | ||
e8a5fa9c RW |
5820 | |
5821 | ||
b3676d82 | 5822 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5823 | |
b3676d82 EB |
5824 | # Check whether --with-stage1-ldflags was given. |
5825 | if test "${with_stage1_ldflags+set}" = set; then : | |
5826 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5827 | stage1_ldflags= | |
e8a5fa9c | 5828 | else |
b3676d82 | 5829 | stage1_ldflags=$withval |
e8a5fa9c RW |
5830 | fi |
5831 | else | |
b3676d82 EB |
5832 | stage1_ldflags= |
5833 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5834 | # if supported. But if the user explicitly specified the libraries to use, | |
5835 | # trust that they are doing what they want. | |
5836 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5837 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5838 | fi | |
81ecdfbb RW |
5839 | fi |
5840 | ||
e8a5fa9c RW |
5841 | |
5842 | ||
68996839 | 5843 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 5844 | |
81ecdfbb RW |
5845 | # Check whether --with-boot-libs was given. |
5846 | if test "${with_boot_libs+set}" = set; then : | |
5847 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5848 | poststage1_libs= |
5849 | else | |
5850 | poststage1_libs=$withval | |
5851 | fi | |
5852 | else | |
68996839 | 5853 | poststage1_libs= |
81ecdfbb RW |
5854 | fi |
5855 | ||
e8a5fa9c RW |
5856 | |
5857 | ||
143754cd NC |
5858 | # Linker flags to use for stage2 and later builds. |
5859 | ||
5860 | # Check whether --with-boot-ldflags was given. | |
5861 | if test "${with_boot_ldflags+set}" = set; then : | |
5862 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5863 | poststage1_ldflags= | |
5864 | else | |
5865 | poststage1_ldflags=$withval | |
5866 | fi | |
5867 | else | |
5868 | poststage1_ldflags= | |
4f11b223 ILT |
5869 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5870 | # statically. But if the user explicitly specified the libraries to | |
5871 | # use, trust that they are doing what they want. | |
5872 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5873 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5874 | fi | |
5875 | fi | |
5876 | ||
5877 | ||
5878 | ||
4849dfd8 | 5879 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 5880 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
5881 | |
5882 | ||
7ec59b9e L |
5883 | # Check whether --with-isl was given. |
5884 | if test "${with_isl+set}" = set; then : | |
5885 | withval=$with_isl; | |
81ecdfbb | 5886 | fi |
e28c595f | 5887 | |
e28c595f | 5888 | |
1b6c0831 | 5889 | # Treat --without-isl as a request to disable |
8e71395b | 5890 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5891 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 5892 | # Check for isl |
8e71395b L |
5893 | |
5894 | ||
7ec59b9e L |
5895 | # Check whether --with-isl-include was given. |
5896 | if test "${with_isl_include+set}" = set; then : | |
5897 | withval=$with_isl_include; | |
81ecdfbb RW |
5898 | fi |
5899 | ||
e28c595f | 5900 | |
7ec59b9e L |
5901 | # Check whether --with-isl-lib was given. |
5902 | if test "${with_isl_lib+set}" = set; then : | |
5903 | withval=$with_isl_lib; | |
81ecdfbb | 5904 | fi |
e28c595f | 5905 | |
e28c595f | 5906 | |
7ec59b9e L |
5907 | # Check whether --enable-isl-version-check was given. |
5908 | if test "${enable_isl_version_check+set}" = set; then : | |
5909 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5910 | else | |
5911 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5912 | fi |
5913 | ||
5914 | ||
7ec59b9e L |
5915 | # Initialize isllibs and islinc. |
5916 | case $with_isl in | |
5917 | no) | |
5918 | isllibs= | |
5919 | islinc= | |
5920 | ;; | |
5921 | "" | yes) | |
5922 | ;; | |
5923 | *) | |
5924 | isllibs="-L$with_isl/lib" | |
5925 | islinc="-I$with_isl/include" | |
5926 | ;; | |
5927 | esac | |
5928 | if test "x${with_isl_include}" != x ; then | |
5929 | islinc="-I$with_isl_include" | |
5930 | fi | |
5931 | if test "x${with_isl_lib}" != x; then | |
5932 | isllibs="-L$with_isl_lib" | |
5933 | fi | |
5934 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5935 | && test -d ${srcdir}/isl; then | |
5936 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5937 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5938 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5940 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 5941 | fi |
b123da99 | 5942 | |
1b6c0831 | 5943 | isllibs="${isllibs} -lisl" |
b123da99 | 5944 | |
e28c595f | 5945 | |
b3fc79f8 JBG |
5946 | |
5947 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5948 | _isl_saved_CFLAGS=$CFLAGS | |
5949 | _isl_saved_LDFLAGS=$LDFLAGS | |
5950 | _isl_saved_LIBS=$LIBS | |
5951 | ||
5952 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
5953 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
5954 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 5955 | |
bf41f30d NC |
5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
5957 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 5958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 5959 | /* end confdefs.h. */ |
bf41f30d | 5960 | #include <isl/schedule.h> |
b3fc79f8 JBG |
5961 | int |
5962 | main () | |
5963 | { | |
bf41f30d | 5964 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
5965 | ; |
5966 | return 0; | |
5967 | } | |
5968 | _ACEOF | |
1b6c0831 | 5969 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
5970 | gcc_cv_isl=yes |
5971 | else | |
5972 | gcc_cv_isl=no | |
5973 | fi | |
1b6c0831 L |
5974 | rm -f core conftest.err conftest.$ac_objext \ |
5975 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5977 | $as_echo "$gcc_cv_isl" >&6; } | |
5978 | ||
4849dfd8 | 5979 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
5981 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
5982 | fi |
5983 | ||
b3fc79f8 JBG |
5984 | CFLAGS=$_isl_saved_CFLAGS |
5985 | LDFLAGS=$_isl_saved_LDFLAGS | |
5986 | LIBS=$_isl_saved_LIBS | |
5987 | fi | |
5988 | ||
5989 | ||
e28c595f | 5990 | |
e28c595f | 5991 | |
7ec59b9e L |
5992 | |
5993 | ||
7ec59b9e L |
5994 | if test "x${with_isl}" = xno; then |
5995 | graphite_requested=no | |
5996 | elif test "x${with_isl}" != x \ | |
5997 | || test "x${with_isl_include}" != x \ | |
5998 | || test "x${with_isl_lib}" != x ; then | |
5999 | graphite_requested=yes | |
6000 | else | |
6001 | graphite_requested=no | |
b123da99 | 6002 | fi |
e28c595f | 6003 | |
e28c595f JM |
6004 | |
6005 | ||
7ec59b9e L |
6006 | if test "${gcc_cv_isl}" = no ; then |
6007 | isllibs= | |
6008 | islinc= | |
6009 | fi | |
e28c595f | 6010 | |
7ec59b9e L |
6011 | if test "${graphite_requested}" = yes \ |
6012 | && test "x${isllibs}" = x \ | |
6013 | && test "x${islinc}" = x ; then | |
e28c595f | 6014 | |
d0ac1c44 | 6015 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 6016 | fi |
e552509b | 6017 | |
e28c595f | 6018 | |
e552509b ILT |
6019 | fi |
6020 | ||
4849dfd8 | 6021 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 6022 | if test "x$with_isl" = xno || |
8e71395b | 6023 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6024 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6025 | islinc= |
7ec59b9e L |
6026 | fi |
6027 | ||
8e71395b L |
6028 | |
6029 | ||
6030 | ||
700d40ca ILT |
6031 | # Check for LTO support. |
6032 | # Check whether --enable-lto was given. | |
6033 | if test "${enable_lto+set}" = set; then : | |
6034 | enableval=$enable_lto; enable_lto=$enableval | |
6035 | else | |
6036 | enable_lto=yes; default_enable_lto=yes | |
6037 | fi | |
6038 | ||
6039 | ||
143754cd | 6040 | |
e49e5c92 DK |
6041 | |
6042 | ||
6043 | target_elf=no | |
6044 | case $target in | |
6045 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6046 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6047 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6048 | nvptx-*-none) | |
e49e5c92 DK |
6049 | target_elf=no |
6050 | ;; | |
6051 | *) | |
6052 | target_elf=yes | |
6053 | ;; | |
6054 | esac | |
6055 | ||
6056 | if test $target_elf = yes; then : | |
74cea91b DK |
6057 | # ELF platforms build the lto-plugin always. |
6058 | build_lto_plugin=yes | |
e49e5c92 | 6059 | |
e49e5c92 DK |
6060 | else |
6061 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6062 | case $target in |
bf41f30d | 6063 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6064 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6065 | *) enable_lto=no ;; |
6066 | esac | |
e49e5c92 | 6067 | else |
29821356 RW |
6068 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6069 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6070 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6071 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6072 | # -flto it won't be needed until after installation anyway. | |
6073 | case $target in | |
52cf9762 | 6074 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 6075 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 6076 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
6077 | fi |
6078 | ;; | |
6079 | esac | |
6080 | fi | |
a8eb3f0a | 6081 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6082 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6083 | case $target in |
74cea91b | 6084 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6085 | *) ;; |
6086 | esac | |
74cea91b | 6087 | |
e49e5c92 DK |
6088 | fi |
6089 | ||
700d40ca | 6090 | |
1b6c0831 L |
6091 | # Check whether --enable-linker-plugin-configure-flags was given. |
6092 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6093 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6094 | else | |
6095 | extra_linker_plugin_configure_flags= | |
6096 | fi | |
6097 | ||
6098 | ||
6099 | # Check whether --enable-linker-plugin-flags was given. | |
6100 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6101 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6102 | else | |
6103 | extra_linker_plugin_flags= | |
6104 | fi | |
6105 | ||
6106 | ||
6107 | ||
bf41f30d NC |
6108 | # Enable --enable-host-shared. |
6109 | # Checked early to determine whether jit is an 'all' language | |
6110 | # Check whether --enable-host-shared was given. | |
6111 | if test "${enable_host_shared+set}" = set; then : | |
6112 | enableval=$enable_host_shared; host_shared=$enableval | |
6113 | else | |
6114 | host_shared=no | |
6115 | fi | |
6116 | ||
6117 | ||
e28c595f | 6118 | |
7ec59b9e | 6119 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6120 | stage1_languages=,c, |
1d39f329 | 6121 | |
e8a5fa9c | 6122 | # Target libraries that we bootstrap. |
2aa2364a | 6123 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6124 | |
9e07f89d NN |
6125 | # Figure out what language subdirectories are present. |
6126 | # Look if the user specified --enable-languages="..."; if not, use | |
6127 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6128 | # go away some day. | |
6129 | # NB: embedded tabs in this IF block -- do not untabify | |
6130 | if test -d ${srcdir}/gcc; then | |
6131 | if test x"${enable_languages+set}" != xset; then | |
6132 | if test x"${LANGUAGES+set}" = xset; then | |
6133 | enable_languages="${LANGUAGES}" | |
136bb21f | 6134 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 6135 | else |
bf41f30d | 6136 | enable_languages=default |
9e07f89d NN |
6137 | fi |
6138 | else | |
6139 | if test x"${enable_languages}" = x || | |
6140 | test x"${enable_languages}" = xyes; | |
6141 | then | |
136bb21f | 6142 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6143 | exit 1 |
6144 | fi | |
6145 | fi | |
6146 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6147 | ||
096f7d00 DE |
6148 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6149 | # and make the substitution. | |
6150 | case ,${enable_languages}, in | |
6151 | *,f95,*) | |
136bb21f | 6152 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6153 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6154 | ;; | |
6155 | esac | |
6156 | ||
7ec59b9e L |
6157 | # If bootstrapping, C++ must be enabled. |
6158 | case ",$enable_languages,:$enable_bootstrap" in | |
6159 | *,c++,*:*) ;; | |
6160 | *:yes) | |
ffdd6afc ILT |
6161 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6162 | enable_languages="${enable_languages},c++" | |
6163 | else | |
d0ac1c44 | 6164 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6165 | fi |
6166 | ;; | |
6167 | esac | |
6168 | ||
9e07f89d NN |
6169 | # First scan to see if an enabled language requires some other language. |
6170 | # We assume that a given config-lang.in will list all the language | |
6171 | # front ends it requires, even if some are required indirectly. | |
6172 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6173 | case ${lang_frag} in | |
6174 | ..) ;; | |
6175 | # The odd quoting in the next line works around | |
6176 | # an apparent bug in bash 1.12 on linux. | |
6177 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6178 | *) | |
e552509b ILT |
6179 | # From the config-lang.in, get $language, $lang_requires, and |
6180 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6181 | language= |
6182 | lang_requires= | |
e552509b | 6183 | lang_requires_boot_languages= |
bf41f30d NC |
6184 | # set srcdir during sourcing lang_frag to the gcc dir. |
6185 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6186 | # polutes this shell | |
6187 | saved_srcdir=${srcdir} | |
6188 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6189 | srcdir=${saved_srcdir} | |
e552509b | 6190 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6191 | case ,${enable_languages}, in |
6192 | *,$other,*) ;; | |
bf41f30d | 6193 | *,default,*) ;; |
9e07f89d NN |
6194 | *,all,*) ;; |
6195 | *,$language,*) | |
6196 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6197 | enable_languages="${enable_languages},${other}" | |
6198 | ;; | |
6199 | esac | |
6200 | done | |
e552509b ILT |
6201 | for other in ${lang_requires_boot_languages} ; do |
6202 | if test "$other" != "c"; then | |
6203 | case ,${enable_stage1_languages}, in | |
6204 | *,$other,*) ;; | |
bf41f30d | 6205 | *,default,*) ;; |
e552509b ILT |
6206 | *,all,*) ;; |
6207 | *) | |
6208 | case ,${enable_languages}, in | |
6209 | *,$language,*) | |
6210 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6211 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6212 | ;; | |
6213 | esac | |
6214 | ;; | |
6215 | esac | |
6216 | fi | |
6217 | done | |
9e07f89d NN |
6218 | ;; |
6219 | esac | |
6220 | done | |
6221 | ||
9b134994 | 6222 | new_enable_languages=,c, |
700d40ca ILT |
6223 | |
6224 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6225 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6226 | case ,${enable_languages}, in |
6227 | *,lto,*) ;; | |
6228 | *) enable_languages="${enable_languages},lto" ;; | |
6229 | esac | |
a8eb3f0a | 6230 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6231 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6232 | fi |
6233 | fi | |
6234 | ||
1b6c0831 L |
6235 | # If we're building an offloading compiler, add the LTO front end. |
6236 | if test x"$enable_as_accelerator_for" != x ; then | |
6237 | case ,${enable_languages}, in | |
6238 | *,lto,*) ;; | |
6239 | *) enable_languages="${enable_languages},lto" ;; | |
6240 | esac | |
6241 | fi | |
700d40ca | 6242 | |
bf41f30d | 6243 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6244 | potential_languages=,c, |
9e07f89d | 6245 | |
9e1a94f4 ILT |
6246 | enabled_target_libs= |
6247 | disabled_target_libs= | |
6248 | ||
9e07f89d NN |
6249 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6250 | case ${lang_frag} in | |
6251 | ..) ;; | |
6252 | # The odd quoting in the next line works around | |
6253 | # an apparent bug in bash 1.12 on linux. | |
6254 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6255 | *) | |
c6b750e1 | 6256 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6257 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6258 | language= |
6259 | target_libs= | |
6260 | lang_dirs= | |
64ce424c | 6261 | subdir_requires= |
9b134994 PB |
6262 | boot_language=no |
6263 | build_by_default=yes | |
bf41f30d NC |
6264 | # set srcdir during sourcing. See above about save & restore |
6265 | saved_srcdir=${srcdir} | |
6266 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6267 | srcdir=${saved_srcdir} | |
9b134994 PB |
6268 | if test x${language} = x; then |
6269 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6270 | exit 1 | |
6271 | fi | |
6272 | ||
ffdd6afc | 6273 | if test "$language" = "c++"; then |
7ec59b9e | 6274 | boot_language=yes |
e8a5fa9c RW |
6275 | fi |
6276 | ||
8e71395b | 6277 | add_this_lang=no |
bf41f30d NC |
6278 | # C is always enabled, so no need to add it again |
6279 | if test "$language" != "c"; then | |
6280 | case ,${enable_languages}, in | |
6281 | *,${language},*) | |
6282 | # Language was explicitly selected; include it | |
7ec59b9e | 6283 | add_this_lang=yes |
bf41f30d NC |
6284 | ;; |
6285 | *,all,*) | |
6286 | # All languages are enabled | |
6287 | add_this_lang=all | |
6288 | ;; | |
6289 | *,default,*) | |
6290 | # 'default' was selected, select it if it is a default language | |
8e71395b | 6291 | add_this_lang=${build_by_default} |
bf41f30d NC |
6292 | ;; |
6293 | esac | |
6294 | fi | |
4b1cb4fe | 6295 | |
64ce424c | 6296 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6297 | for i in $subdir_requires; do |
3d3adb43 | 6298 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
6299 | case ${add_this_lang} in |
6300 | yes) | |
64ce424c | 6301 | # Specifically requested language; tell them. |
d0ac1c44 | 6302 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 6303 | ;; |
bf41f30d NC |
6304 | all) |
6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6306 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6307 | add_this_lang=unsupported | |
6308 | ;; | |
64ce424c PB |
6309 | *) |
6310 | # Silently disable. | |
9b134994 | 6311 | add_this_lang=unsupported |
64ce424c PB |
6312 | ;; |
6313 | esac | |
6314 | done | |
6315 | ||
9b134994 | 6316 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
6317 | case ${add_this_lang}:${language}:${have_gnat} in |
6318 | yes:ada:no) | |
9b134994 | 6319 | # Specifically requested language; tell them. |
d0ac1c44 | 6320 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 6321 | ;; |
bf41f30d NC |
6322 | all:ada:no) |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6324 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6325 | add_this_lang=unsupported | |
6326 | ;; | |
9b134994 PB |
6327 | *:ada:no) |
6328 | # Silently disable. | |
6329 | add_this_lang=unsupported | |
6330 | ;; | |
6331 | esac | |
6332 | ||
bf41f30d NC |
6333 | # Disable jit if -enable-host-shared not specified |
6334 | case ${add_this_lang}:${language}:${host_shared} in | |
6335 | yes:jit:no) | |
6336 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 6337 | as_fn_error $? " |
bf41f30d NC |
6338 | Enabling language \"jit\" requires --enable-host-shared. |
6339 | ||
6340 | --enable-host-shared typically slows the rest of the compiler down by | |
6341 | a few %, so you must explicitly enable it. | |
6342 | ||
6343 | If you want to build both the jit and the regular compiler, it is often | |
6344 | best to do this via two separate configure/builds, in separate | |
6345 | directories, to avoid imposing the performance cost of | |
6346 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6347 | ;; | |
6348 | all:jit:no) | |
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6350 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6351 | add_this_lang=unsupported | |
6352 | ;; | |
6353 | *:jit:no) | |
6354 | # Silently disable. | |
6355 | add_this_lang=unsupported | |
6356 | ;; | |
6357 | esac | |
6358 | ||
6359 | # Disable a language that is unsupported by the target. | |
6360 | case "${add_this_lang}: $unsupported_languages " in | |
6361 | no:*) ;; | |
6362 | unsupported:*) ;; | |
6363 | *:*" $language "*) | |
6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6365 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 6366 | add_this_lang=unsupported |
59f7ec45 HPN |
6367 | ;; |
6368 | esac | |
6369 | ||
4b1cb4fe | 6370 | case $add_this_lang in |
9b134994 | 6371 | unsupported) |
9e07f89d | 6372 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6373 | disabled_target_libs="$disabled_target_libs $target_libs" |
6374 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6375 | ;; |
9b134994 PB |
6376 | no) |
6377 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6378 | disabled_target_libs="$disabled_target_libs $target_libs" |
6379 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6380 | potential_languages="${potential_languages}${language}," |
6381 | ;; | |
bf41f30d | 6382 | all|yes) |
9b134994 PB |
6383 | new_enable_languages="${new_enable_languages}${language}," |
6384 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6385 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6386 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6387 | case "${boot_language}:,$enable_stage1_languages," in |
6388 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6389 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6390 | case ",$stage1_languages," in |
6391 | *,$language,* | ,yes, | ,all,) ;; | |
6392 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6393 | esac | |
e8a5fa9c RW |
6394 | # We need to bootstrap any supporting libraries. |
6395 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6396 | ;; |
6397 | esac | |
6398 | ;; | |
9e07f89d NN |
6399 | esac |
6400 | ;; | |
6401 | esac | |
6402 | done | |
6403 | ||
9e1a94f4 ILT |
6404 | # Add target libraries which are only needed for disabled languages |
6405 | # to noconfigdirs. | |
6406 | if test -n "$disabled_target_libs"; then | |
6407 | for dir in $disabled_target_libs; do | |
6408 | case " $enabled_target_libs " in | |
6409 | *" ${dir} "*) ;; | |
6410 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6411 | esac | |
6412 | done | |
6413 | fi | |
6414 | ||
81ecdfbb RW |
6415 | # Check whether --enable-stage1-languages was given. |
6416 | if test "${enable_stage1_languages+set}" = set; then : | |
6417 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6418 | ,no,|,,) |
6419 | # Set it to something that will have no effect in the loop below | |
6420 | enable_stage1_languages=c ;; | |
6421 | ,yes,) | |
6422 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6423 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6424 | *,all,*) | |
6425 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6426 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6427 | esac | |
6428 | ||
6429 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6430 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6431 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6432 | case $potential_languages in | |
6433 | *,$i,*) | |
6434 | case $stage1_languages in | |
6435 | *,$i,*) ;; | |
6436 | *) stage1_languages="$stage1_languages$i," ;; | |
6437 | esac ;; | |
6438 | *) | |
6439 | case $missing_languages in | |
6440 | *,$i,*) ;; | |
6441 | *) missing_languages="$missing_languages$i," ;; | |
6442 | esac ;; | |
6443 | esac | |
6444 | done | |
81ecdfbb RW |
6445 | fi |
6446 | ||
9b134994 PB |
6447 | |
6448 | # Remove leading/trailing commas that were added for simplicity | |
6449 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6450 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6451 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6452 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6453 | ||
9e07f89d | 6454 | if test "x$missing_languages" != x; then |
d0ac1c44 | 6455 | as_fn_error $? " |
27258dd4 | 6456 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6457 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6458 | fi |
9e07f89d NN |
6459 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6460 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6461 | enable_languages="$new_enable_languages" |
9e07f89d | 6462 | fi |
9b134994 | 6463 | |
c6b750e1 | 6464 | |
81ec575a | 6465 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6466 | fi |
6467 | ||
a6df5a19 PB |
6468 | # Handle --disable-<component> generically. |
6469 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6470 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6471 | varname=`echo $dirname | sed -e s/+/_/g` |
6472 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6473 | noconfigdirs="$noconfigdirs $dir" |
6474 | fi | |
6475 | done | |
6476 | ||
4f0ef2d8 | 6477 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6478 | # Check whether --enable-objc-gc was given. |
6479 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 6480 | enableval=$enable_objc_gc; |
81ecdfbb RW |
6481 | fi |
6482 | ||
4f0ef2d8 | 6483 | |
05a13254 NC |
6484 | # Check whether --with-target-bdw-gc was given. |
6485 | if test "${with_target_bdw_gc+set}" = set; then : | |
6486 | withval=$with_target_bdw_gc; | |
6487 | fi | |
6488 | ||
6489 | ||
6490 | # Check whether --with-target-bdw-gc-include was given. | |
6491 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6492 | withval=$with_target_bdw_gc_include; | |
6493 | fi | |
6494 | ||
6495 | ||
6496 | # Check whether --with-target-bdw-gc-lib was given. | |
6497 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6498 | withval=$with_target_bdw_gc_lib; | |
6499 | fi | |
6500 | ||
6501 | ||
6502 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6504 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6505 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
6507 | $as_echo "using bdw-gc in default locations" >&6; } | |
6508 | else | |
6509 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 6510 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 6511 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 6512 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
6513 | else |
6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6515 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 6516 | fi |
05a13254 | 6517 | fi |
4f0ef2d8 CD |
6518 | esac |
6519 | ||
bf41f30d | 6520 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6521 | case ,${enable_languages}, in |
1b6c0831 | 6522 | *,c++,*) |
bf41f30d | 6523 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
6524 | case "${noconfigdirs}" in |
6525 | *target-libstdc++-v3*) | |
bf41f30d | 6526 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
6527 | ;; |
6528 | *) ;; | |
6529 | esac | |
6530 | ;; | |
7ec59b9e | 6531 | *) |
bf41f30d | 6532 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6533 | ;; |
6534 | esac | |
6535 | ||
caeba88f AL |
6536 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6537 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6538 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6539 | ||
6540 | notsupp="" | |
6541 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6542 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6543 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6544 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6545 | if test -r $srcdir/$dirname/configure ; then | |
6546 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6547 | true | |
6548 | else | |
6549 | notsupp="$notsupp $dir" | |
6550 | fi | |
6551 | fi | |
6552 | fi | |
caeba88f AL |
6553 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6554 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6555 | if test -r $srcdir/$dirname/configure ; then | |
6556 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6557 | true | |
6558 | else | |
6559 | notsupp="$notsupp $dir" | |
6560 | fi | |
6561 | fi | |
6562 | fi | |
9e07f89d NN |
6563 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6564 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6565 | if test -r $srcdir/$dirname/configure ; then | |
6566 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6567 | true | |
6568 | else | |
6569 | notsupp="$notsupp $dir" | |
6570 | fi | |
6571 | fi | |
6572 | fi | |
6573 | done | |
6574 | ||
9e07f89d NN |
6575 | # Quietly strip out all directories which aren't configurable in this tree. |
6576 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6577 | # is now the case. | |
6a9cf61e PB |
6578 | build_configdirs_all="$build_configdirs" |
6579 | build_configdirs= | |
6580 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6581 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6582 | if test -f ${srcdir}/$j/configure ; then |
6583 | build_configdirs="${build_configdirs} $i" | |
6584 | fi | |
6585 | done | |
6586 | ||
9e07f89d NN |
6587 | configdirs_all="$configdirs" |
6588 | configdirs= | |
6589 | for i in ${configdirs_all} ; do | |
6590 | if test -f ${srcdir}/$i/configure ; then | |
6591 | configdirs="${configdirs} $i" | |
6592 | fi | |
6593 | done | |
6a9cf61e | 6594 | |
9e07f89d NN |
6595 | target_configdirs_all="$target_configdirs" |
6596 | target_configdirs= | |
6597 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6598 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6599 | if test -f ${srcdir}/$j/configure ; then |
6600 | target_configdirs="${target_configdirs} $i" | |
6601 | fi | |
6602 | done | |
6603 | ||
1b6c0831 L |
6604 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6605 | # so we have to add it after the preceding checks. | |
6606 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6607 | then | |
6608 | case " $configdirs " in | |
6609 | *" libiberty "*) | |
6610 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6611 | configdirs="$configdirs libiberty-linker-plugin" | |
6612 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6613 | --with-libiberty=../libiberty-linker-plugin";; | |
6614 | *) | |
d0ac1c44 | 6615 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
6616 | esac |
6617 | fi | |
6618 | ||
6619 | # Sometimes we have special requirements for the host libiberty. | |
6620 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6621 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6622 | case " $configdirs " in |
6623 | *" lto-plugin "* | *" libcc1 "*) | |
6624 | # When these are to be built as shared libraries, the same applies to | |
6625 | # libiberty. | |
6626 | extra_host_libiberty_configure_flags=--enable-shared | |
6627 | ;; | |
e81d5d05 L |
6628 | *" bfd "*) |
6629 | # When bfd is to be built as a shared library, the same applies to | |
6630 | # zlib. | |
6631 | if test "$enable_shared" = "yes"; then | |
6632 | extra_host_zlib_configure_flags=--enable-host-shared | |
6633 | fi | |
6634 | ;; | |
1b6c0831 L |
6635 | esac |
6636 | ||
6637 | ||
e81d5d05 | 6638 | |
9e07f89d NN |
6639 | # Produce a warning message for the subdirs we can't configure. |
6640 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6641 | # FSF releases, it's important to let people know when their machine isn't | |
6642 | # supported by the one or two programs in a package. | |
6643 | ||
6644 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6645 | # If $appdirs is non-empty, at least one of those directories must still | |
6646 | # be configured, or we error out. (E.g., if the gas release supports a | |
6647 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6648 | # pretend that all is well.) | |
6649 | if test -n "$appdirs" ; then | |
6650 | for dir in $appdirs ; do | |
6651 | if test -r $dir/Makefile.in ; then | |
6652 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6653 | appdirs="" | |
6654 | break | |
6655 | fi | |
6a9cf61e | 6656 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6657 | appdirs="" |
6658 | break | |
6659 | fi | |
6660 | fi | |
6661 | done | |
6662 | if test -n "$appdirs" ; then | |
6663 | echo "*** This configuration is not supported by this package." 1>&2 | |
6664 | exit 1 | |
6665 | fi | |
6666 | fi | |
6667 | # Okay, some application will build, or we don't care to check. Still | |
6668 | # notify of subdirs not getting built. | |
6669 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6670 | echo " ${notsupp}" 1>&2 | |
6671 | echo " (Any other directories should still work fine.)" 1>&2 | |
6672 | fi | |
6673 | ||
6674 | case "$host" in | |
6675 | *msdosdjgpp*) | |
6676 | enable_gdbtk=no ;; | |
6677 | esac | |
6678 | ||
18f6b6ee PB |
6679 | # To find our prefix, in gcc_cv_tool_prefix. |
6680 | ||
6681 | # The user is always right. | |
6682 | if test "${PATH_SEPARATOR+set}" != set; then | |
6683 | echo "#! /bin/sh" >conf$$.sh | |
6684 | echo "exit 0" >>conf$$.sh | |
6685 | chmod +x conf$$.sh | |
6686 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6687 | PATH_SEPARATOR=';' | |
6688 | else | |
6689 | PATH_SEPARATOR=: | |
6690 | fi | |
6691 | rm -f conf$$.sh | |
6692 | fi | |
6693 | ||
6694 | ||
bf41f30d NC |
6695 | get_gcc_base_ver="cat" |
6696 | ||
6697 | # Check whether --with-gcc-major-version-only was given. | |
6698 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6699 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 6700 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
6701 | fi |
6702 | ||
6703 | fi | |
6704 | ||
6705 | ||
6706 | ||
6707 | ||
6708 | ||
18f6b6ee PB |
6709 | |
6710 | if test "x$exec_prefix" = xNONE; then | |
6711 | if test "x$prefix" = xNONE; then | |
6712 | gcc_cv_tool_prefix=$ac_default_prefix | |
6713 | else | |
6714 | gcc_cv_tool_prefix=$prefix | |
6715 | fi | |
6716 | else | |
6717 | gcc_cv_tool_prefix=$exec_prefix | |
6718 | fi | |
6719 | ||
6720 | # If there is no compiler in the tree, use the PATH only. In any | |
6721 | # case, if there is no compiler in the tree nobody should use | |
6722 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6723 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
6724 | if test x$with_gcc_major_version_only = xyes ; then |
6725 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6726 | else | |
6727 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6728 | fi | |
18f6b6ee PB |
6729 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6730 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6731 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6732 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6733 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6734 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6735 | else | |
6736 | gcc_cv_tool_dirs= | |
6737 | fi | |
6738 | ||
6739 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6740 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6741 | fi | |
6742 | ||
6743 | ||
6744 | ||
9e07f89d NN |
6745 | copy_dirs= |
6746 | ||
c6b750e1 | 6747 | |
81ecdfbb RW |
6748 | # Check whether --with-build-sysroot was given. |
6749 | if test "${with_build_sysroot+set}" = set; then : | |
6750 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6751 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6752 | fi | |
6753 | else | |
6754 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6755 | fi |
a19b6204 MM |
6756 | |
6757 | ||
8a6ee3ab | 6758 | |
81ecdfbb RW |
6759 | |
6760 | # Check whether --with-debug-prefix-map was given. | |
6761 | if test "${with_debug_prefix_map+set}" = set; then : | |
6762 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6763 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6764 | for debug_map in $withval; do | |
6765 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6766 | done | |
6767 | fi | |
6768 | else | |
6769 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6770 | fi |
6771 | ||
8a6ee3ab JM |
6772 | |
6773 | ||
7f6ef0c0 PB |
6774 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6775 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6776 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6777 | # We want to ensure that TARGET libraries (which we know are built with | |
6778 | # gcc) are built with "-O2 -g", so include those options when setting | |
6779 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6780 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6781 | if test "x${is_cross_compiler}" = xyes; then |
6782 | CFLAGS_FOR_TARGET="-g -O2" | |
6783 | else | |
6784 | CFLAGS_FOR_TARGET=$CFLAGS | |
6785 | case " $CFLAGS " in | |
6786 | *" -O2 "*) ;; | |
6787 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6788 | esac | |
6789 | case " $CFLAGS " in | |
6790 | *" -g "* | *" -g3 "*) ;; | |
6791 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6792 | esac | |
6793 | fi | |
7f6ef0c0 PB |
6794 | fi |
6795 | ||
6796 | ||
6797 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6798 | if test "x${is_cross_compiler}" = xyes; then |
6799 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6800 | else | |
6801 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6802 | case " $CXXFLAGS " in | |
6803 | *" -O2 "*) ;; | |
6804 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6805 | esac | |
6806 | case " $CXXFLAGS " in | |
6807 | *" -g "* | *" -g3 "*) ;; | |
6808 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6809 | esac | |
6810 | fi | |
7f6ef0c0 PB |
6811 | fi |
6812 | ||
6813 | ||
91c1f14c DK |
6814 | |
6815 | ||
9e07f89d NN |
6816 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6817 | # the named directory are copied to $(tooldir)/sys-include. | |
6818 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6819 | if test x${is_cross_compiler} = xno ; then | |
6820 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6821 | exit 1 | |
6822 | fi | |
6823 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6824 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6825 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6826 | fi |
6827 | fi | |
6828 | ||
6829 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6830 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6831 | # are permitted. | |
6832 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6833 | if test x${is_cross_compiler} = xno ; then | |
6834 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6835 | exit 1 | |
6836 | fi | |
6837 | if test x"${with_libs}" != xyes ; then | |
6838 | # Copy the libraries in reverse order, so that files in the first named | |
6839 | # library override files in subsequent libraries. | |
18f6b6ee | 6840 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6841 | for l in ${with_libs}; do |
c6b750e1 | 6842 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6843 | done |
6844 | fi | |
6845 | fi | |
6846 | ||
700d40ca | 6847 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6848 | # |
6849 | # This is done by determining whether or not the appropriate directory | |
6850 | # is available, and by checking whether or not specific configurations | |
6851 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6852 | # |
6853 | # The command line options always override the explicit settings in | |
136bb21f | 6854 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 6855 | # |
c6b750e1 | 6856 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6857 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6858 | # --without-gnu-ld options for the configure script. Similarly, if |
6859 | # the default is to use the included zlib and you don't want to do that, | |
6860 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6861 | |
6862 | if test x${use_gnu_as} = x && | |
6863 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6864 | with_gnu_as=yes | |
6865 | extra_host_args="$extra_host_args --with-gnu-as" | |
6866 | fi | |
6867 | ||
6868 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6869 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6870 | with_gnu_ld=yes |
6871 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6872 | fi | |
6873 | ||
700d40ca ILT |
6874 | if test x${use_included_zlib} = x && |
6875 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6876 | : | |
6877 | else | |
6878 | with_system_zlib=yes | |
6879 | extra_host_args="$extra_host_args --with-system-zlib" | |
6880 | fi | |
6881 | ||
2429c060 PB |
6882 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6883 | # can detect this case. | |
6884 | ||
6885 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6886 | with_newlib=yes | |
6887 | extra_host_args="$extra_host_args --with-newlib" | |
6888 | fi | |
6889 | ||
9e07f89d NN |
6890 | # Handle ${copy_dirs} |
6891 | set fnord ${copy_dirs} | |
6892 | shift | |
6893 | while test $# != 0 ; do | |
6894 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6895 | : | |
6896 | else | |
6897 | echo Copying $1 to $2 | |
6898 | ||
6899 | # Use the install script to create the directory and all required | |
6900 | # parent directories. | |
6901 | if test -d $2 ; then | |
6902 | : | |
6903 | else | |
6904 | echo >config.temp | |
6905 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6906 | fi | |
6907 | ||
6908 | # Copy the directory, assuming we have tar. | |
6909 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6910 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6911 | ||
6912 | # It is the responsibility of the user to correctly adjust all | |
6913 | # symlinks. If somebody can figure out how to handle them correctly | |
6914 | # here, feel free to add the code. | |
6915 | ||
6916 | echo $1 > $2/COPIED | |
6917 | fi | |
6918 | shift; shift | |
6919 | done | |
6920 | ||
2429c060 PB |
6921 | # Determine a target-dependent exec_prefix that the installed |
6922 | # gcc will search in. Keep this list sorted by triplet, with | |
6923 | # the *-*-osname triplets last. | |
6924 | md_exec_prefix= | |
6925 | case "${target}" in | |
521ec477 | 6926 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6927 | md_exec_prefix=/dev/env/DJDIR/bin |
6928 | ;; | |
2429c060 | 6929 | *-*-hpux* | \ |
2429c060 | 6930 | *-*-nto-qnx* | \ |
1f111696 | 6931 | *-*-solaris2*) |
2429c060 PB |
6932 | md_exec_prefix=/usr/ccs/bin |
6933 | ;; | |
6934 | esac | |
6935 | ||
a0da8069 NN |
6936 | extra_arflags_for_target= |
6937 | extra_nmflags_for_target= | |
6938 | extra_ranlibflags_for_target= | |
6939 | target_makefile_frag=/dev/null | |
6940 | case "${target}" in | |
77d7106f AM |
6941 | spu-*-*) |
6942 | target_makefile_frag="config/mt-spu" | |
6943 | ;; | |
a9d58c06 | 6944 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
6945 | target_makefile_frag="config/mt-sde" |
6946 | ;; | |
f3b1e08e RS |
6947 | mipsisa*-*-elfoabi*) |
6948 | target_makefile_frag="config/mt-mips-elfoabi" | |
6949 | ;; | |
e7c8859c RS |
6950 | mips*-*-*linux* | mips*-*-gnu*) |
6951 | target_makefile_frag="config/mt-mips-gnu" | |
6952 | ;; | |
d9e042ac SL |
6953 | nios2-*-elf*) |
6954 | target_makefile_frag="config/mt-nios2-elf" | |
6955 | ;; | |
bf41f30d NC |
6956 | *-*-linux-android*) |
6957 | target_makefile_frag="config/mt-android" | |
6958 | ;; | |
29383458 | 6959 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6960 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6961 | ;; |
6962 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6963 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6964 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6965 | # harmless if we're using GNU nm or ar. | |
6966 | extra_arflags_for_target=" -X32_64" | |
6967 | extra_nmflags_for_target=" -B -X32_64" | |
6968 | ;; | |
a0da8069 NN |
6969 | esac |
6970 | ||
6971 | alphaieee_frag=/dev/null | |
6972 | case $target in | |
6973 | alpha*-*-*) | |
6974 | # This just makes sure to use the -mieee option to build target libs. | |
6975 | # This should probably be set individually by each library. | |
6976 | alphaieee_frag="config/mt-alphaieee" | |
6977 | ;; | |
6978 | esac | |
6979 | ||
6980 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6981 | # the target libraries, similarly if it is not specified, use -Os | |
6982 | # on selected platforms. | |
6983 | ospace_frag=/dev/null | |
6984 | case "${enable_target_optspace}:${target}" in | |
6985 | yes:*) | |
6986 | ospace_frag="config/mt-ospace" | |
6987 | ;; | |
6988 | :d30v-*) | |
6989 | ospace_frag="config/mt-d30v" | |
6990 | ;; | |
16beab3d | 6991 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
6992 | ospace_frag="config/mt-ospace" |
6993 | ;; | |
6994 | no:* | :*) | |
6995 | ;; | |
6996 | *) | |
6997 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6998 | ;; | |
6999 | esac | |
7000 | ||
a0da8069 NN |
7001 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7002 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7003 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7004 | build_tooldir=${tooldir} |
7005 | ||
a0da8069 NN |
7006 | # Create a .gdbinit file which runs the one in srcdir |
7007 | # and tells GDB to look there for source files. | |
7008 | ||
7009 | if test -r ${srcdir}/.gdbinit ; then | |
7010 | case ${srcdir} in | |
7011 | .) ;; | |
7012 | *) cat > ./.gdbinit <<EOF | |
7013 | # ${NO_EDIT} | |
7014 | dir ${srcdir} | |
7015 | dir . | |
7016 | source ${srcdir}/.gdbinit | |
7017 | EOF | |
7018 | ;; | |
7019 | esac | |
7020 | fi | |
7021 | ||
a0da8069 NN |
7022 | # Make sure that the compiler is able to generate an executable. If it |
7023 | # can't, we are probably in trouble. We don't care whether we can run the | |
7024 | # executable--we might be using a cross compiler--we only care whether it | |
7025 | # can be created. At this point the main configure script has set CC. | |
7026 | we_are_ok=no | |
7027 | echo "int main () { return 0; }" > conftest.c | |
7028 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7029 | if test $? = 0 ; then | |
7030 | if test -s conftest || test -s conftest.exe ; then | |
7031 | we_are_ok=yes | |
7032 | fi | |
c6b750e1 | 7033 | fi |
a0da8069 NN |
7034 | case $we_are_ok in |
7035 | no) | |
7036 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7037 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7038 | rm -f conftest* | |
7039 | exit 1 | |
7040 | ;; | |
7041 | esac | |
7042 | rm -f conftest* | |
7043 | ||
3bbd2f8f | 7044 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7045 | case "${host}" in |
7046 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7047 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7048 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7049 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7050 | esac | |
7051 | ||
3bbd2f8f | 7052 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7053 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7054 | # built executables to PATH. | |
3bbd2f8f AL |
7055 | if test "$RPATH_ENVVAR" = PATH; then |
7056 | GCC_SHLIB_SUBDIR=/shlib | |
7057 | else | |
7058 | GCC_SHLIB_SUBDIR= | |
7059 | fi | |
7060 | ||
730af8ee | 7061 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7062 | case $enable_bootstrap in | |
7063 | yes) | |
7064 | bootstrap_suffix=bootstrap | |
7065 | BUILD_CONFIG=bootstrap-debug | |
7066 | ;; | |
7067 | no) | |
7068 | bootstrap_suffix=no-bootstrap | |
7069 | BUILD_CONFIG= | |
7070 | ;; | |
7071 | esac | |
7072 | ||
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7074 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7075 | ||
7076 | ||
7077 | # Check whether --with-build-config was given. | |
7078 | if test "${with_build_config+set}" = set; then : | |
7079 | withval=$with_build_config; case $with_build_config in | |
7080 | yes) with_build_config= ;; | |
7081 | no) with_build_config= BUILD_CONFIG= ;; | |
7082 | esac | |
7083 | fi | |
7084 | ||
7085 | ||
7086 | if test "x${with_build_config}" != x; then | |
7087 | BUILD_CONFIG=$with_build_config | |
7088 | else | |
7089 | case $BUILD_CONFIG in | |
7090 | bootstrap-debug) | |
7091 | if echo "int f (void) { return 0; }" > conftest.c && | |
7092 | ${CC} -c conftest.c && | |
7093 | mv conftest.o conftest.o.g0 && | |
7094 | ${CC} -c -g conftest.c && | |
7095 | mv conftest.o conftest.o.g && | |
7096 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7097 | : | |
7098 | else | |
7099 | BUILD_CONFIG= | |
7100 | fi | |
7101 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7102 | ;; | |
7103 | esac | |
7104 | fi | |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7106 | $as_echo "$BUILD_CONFIG" >&6; } | |
7107 | ||
7108 | ||
7109 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7111 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7112 | # Check whether --enable-vtable-verify was given. | |
7113 | if test "${enable_vtable_verify+set}" = set; then : | |
7114 | enableval=$enable_vtable_verify; case "$enableval" in | |
7115 | yes) enable_vtable_verify=yes ;; | |
7116 | no) enable_vtable_verify=no ;; | |
7117 | *) enable_vtable_verify=no;; | |
7118 | esac | |
7119 | else | |
7120 | enable_vtable_verify=no | |
7121 | fi | |
7122 | ||
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7124 | $as_echo "$enable_vtable_verify" >&6; } | |
7125 | ||
a0da8069 NN |
7126 | # Record target_configdirs and the configure arguments for target and |
7127 | # build configuration in Makefile. | |
7128 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7129 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7130 | bootstrap_fixincludes=no |
a0da8069 | 7131 | |
2aa2364a JR |
7132 | # If we are building libgomp, bootstrap it. |
7133 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7134 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7135 | fi | |
7136 | ||
730af8ee | 7137 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7138 | # or bootstrap-ubsan, bootstrap it. | |
7139 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7140 | case "$BUILD_CONFIG" in | |
7141 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7142 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7143 | bootstrap_fixincludes=yes |
730af8ee | 7144 | ;; |
7145 | esac | |
5eb08693 L |
7146 | fi |
7147 | ||
730af8ee | 7148 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7149 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7150 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7151 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7152 | fi | |
7153 | ||
a0da8069 NN |
7154 | # Determine whether gdb needs tk/tcl or not. |
7155 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7156 | # and in that case we want gdb to be built without tk. Ugh! | |
7157 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7158 | # so we should be able to put the 'maybe's in unconditionally and | |
7159 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7160 | # 100% sure that that's safe though. | |
c180f501 | 7161 | |
675c6968 | 7162 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7163 | case "$enable_gdbtk" in |
7164 | no) | |
7165 | GDB_TK="" ;; | |
c180f501 AC |
7166 | yes) |
7167 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7168 | *) |
c180f501 AC |
7169 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7170 | # distro. Eventually someone will fix this and move Insight, nee | |
7171 | # gdbtk to a separate directory. | |
7172 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7173 | GDB_TK="${gdb_tk}" | |
7174 | else | |
7175 | GDB_TK="" | |
7176 | fi | |
7177 | ;; | |
a0da8069 | 7178 | esac |
907be67c DJ |
7179 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7180 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7181 | |
6bd3dfaa | 7182 | # Strip out unwanted targets. |
dd12c3a8 NN |
7183 | |
7184 | # While at that, we remove Makefiles if we were started for recursive | |
7185 | # configuration, so that the top-level Makefile reconfigures them, | |
7186 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7187 | |
06a51eac RW |
7188 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7189 | # but now we're fixing up the Makefile ourselves with the additional | |
7190 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7191 | # extrasub-{build,host,target} not because there is any reason to split | |
7192 | # the substitutions up that way, but only to remain below the limit of | |
7193 | # 99 commands in a script, for HP-UX sed. | |
7194 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7195 | |
16b1ad29 RW |
7196 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7197 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7198 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 7199 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
7200 | ;; |
7201 | esac | |
7202 | ||
06a51eac | 7203 | extrasub_build= |
6a9cf61e | 7204 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7205 | if test -z "${no_recursion}" \ |
7206 | && test -f ${build_subdir}/${module}/Makefile; then | |
7207 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7208 | rm -f ${build_subdir}/${module}/Makefile | |
7209 | fi | |
06a51eac | 7210 | extrasub_build="$extrasub_build |
498d4a71 CF |
7211 | /^@if build-$module\$/d |
7212 | /^@endif build-$module\$/d | |
7213 | /^@if build-$module-$bootstrap_suffix\$/d | |
7214 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7215 | done | |
06a51eac | 7216 | extrasub_host= |
498d4a71 | 7217 | for module in ${configdirs} ; do |
80911fe1 | 7218 | if test -z "${no_recursion}"; then |
8cf39b1b | 7219 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7220 | if test -f ${file}; then |
7221 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7222 | rm -f ${file} | |
7223 | fi | |
7224 | done | |
498d4a71 | 7225 | fi |
201f096f | 7226 | case ${module},${bootstrap_fixincludes} in |
7227 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7228 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7229 | esac | |
06a51eac | 7230 | extrasub_host="$extrasub_host |
498d4a71 CF |
7231 | /^@if $module\$/d |
7232 | /^@endif $module\$/d | |
201f096f | 7233 | /^@if $module-$host_bootstrap_suffix\$/d |
7234 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7235 | done |
06a51eac | 7236 | extrasub_target= |
498d4a71 CF |
7237 | for module in ${target_configdirs} ; do |
7238 | if test -z "${no_recursion}" \ | |
7239 | && test -f ${target_subdir}/${module}/Makefile; then | |
7240 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7241 | rm -f ${target_subdir}/${module}/Makefile | |
7242 | fi | |
e8a5fa9c RW |
7243 | |
7244 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7245 | case $bootstrap_target_libs in | |
7246 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7247 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7248 | esac | |
7249 | ||
06a51eac | 7250 | extrasub_target="$extrasub_target |
498d4a71 CF |
7251 | /^@if target-$module\$/d |
7252 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7253 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7254 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7255 | done |
7256 | ||
06a51eac RW |
7257 | # Do the final fixup along with target modules. |
7258 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7259 | /^@if /,/^@endif /d" |
a0da8069 NN |
7260 | |
7261 | # Create the serialization dependencies. This uses a temporary file. | |
7262 | ||
81ecdfbb RW |
7263 | # Check whether --enable-serial-configure was given. |
7264 | if test "${enable_serial_configure+set}" = set; then : | |
7265 | enableval=$enable_serial_configure; | |
7266 | fi | |
e6bfb94a AO |
7267 | |
7268 | ||
1047cb91 DD |
7269 | case ${enable_serial_configure} in |
7270 | yes) | |
7271 | enable_serial_build_configure=yes | |
7272 | enable_serial_host_configure=yes | |
7273 | enable_serial_target_configure=yes | |
7274 | ;; | |
7275 | esac | |
7276 | ||
a0da8069 NN |
7277 | # These force 'configure's to be done one at a time, to avoid problems |
7278 | # with contention over a shared config.cache. | |
7279 | rm -f serdep.tmp | |
e6bfb94a | 7280 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7281 | olditem= |
1047cb91 | 7282 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7283 | for item in ${build_configdirs} ; do |
7284 | case ${olditem} in | |
7285 | "") ;; | |
e6bfb94a | 7286 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7287 | esac |
7288 | olditem=${item} | |
7289 | done | |
7290 | olditem= | |
1047cb91 | 7291 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7292 | for item in ${configdirs} ; do |
7293 | case ${olditem} in | |
7294 | "") ;; | |
e6bfb94a | 7295 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7296 | esac |
7297 | olditem=${item} | |
7298 | done | |
7299 | olditem= | |
1047cb91 | 7300 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7301 | for item in ${target_configdirs} ; do |
7302 | case ${olditem} in | |
7303 | "") ;; | |
e6bfb94a | 7304 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7305 | esac |
7306 | olditem=${item} | |
7307 | done | |
7308 | serialization_dependencies=serdep.tmp | |
7309 | ||
7310 | ||
e6bfb94a | 7311 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7312 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7313 | # might not want to pass down to subconfigures. The exception being |
7314 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7315 | # files altogether, and which should be passed on to subconfigures. | |
7316 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7317 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7318 | baseargs= |
65b4571a | 7319 | tbaseargs= |
c6b750e1 DJ |
7320 | keep_next=no |
7321 | skip_next=no | |
7322 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7323 | for ac_arg |
7324 | do | |
c6b750e1 DJ |
7325 | if test X"$skip_next" = X"yes"; then |
7326 | skip_next=no | |
7327 | continue | |
7328 | fi | |
7329 | if test X"$keep_next" = X"yes"; then | |
7330 | case $ac_arg in | |
7331 | *\'*) | |
7332 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7333 | esac | |
7334 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7335 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7336 | keep_next=no |
7337 | continue | |
7338 | fi | |
7339 | ||
7340 | # Handle separated arguments. Based on the logic generated by | |
7341 | # autoconf 2.59. | |
7342 | case $ac_arg in | |
7343 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7344 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7345 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7346 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7347 | separate_arg=no | |
7348 | ;; | |
7349 | -*) | |
7350 | separate_arg=yes | |
7351 | ;; | |
7352 | *) | |
7353 | separate_arg=no | |
7354 | ;; | |
7355 | esac | |
7356 | ||
65b4571a AO |
7357 | skip_targ=no |
7358 | case $ac_arg in | |
7359 | ||
7360 | --with-* | --without-*) | |
7361 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7362 | ||
7363 | case $libopt in | |
7364 | *[-_]include) | |
7365 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7366 | ;; | |
7367 | *[-_]lib) | |
7368 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7369 | ;; | |
7370 | *) | |
7371 | lib=$libopt | |
7372 | ;; | |
7373 | esac | |
7374 | ||
7375 | ||
7376 | case $lib in | |
1b6c0831 | 7377 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7378 | # If we're processing --with-$lib, --with-$lib-include or |
7379 | # --with-$lib-lib, for one of the libs above, and target is | |
7380 | # different from host, don't pass the current argument to any | |
7381 | # target library's configure. | |
7382 | if test x$is_cross_compiler = xyes; then | |
7383 | skip_targ=yes | |
7384 | fi | |
7385 | ;; | |
7386 | esac | |
7387 | ;; | |
7388 | esac | |
7389 | ||
c6b750e1 | 7390 | case "$ac_arg" in |
30167e0a NC |
7391 | --cache-file=/dev/null | \ |
7392 | -cache-file=/dev/null ) | |
7393 | # Handled here to avoid the test to skip args below. | |
7394 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7395 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7396 | # Assert: $separate_arg should always be no. |
7397 | keep_next=$separate_arg | |
7398 | ;; | |
c6b750e1 DJ |
7399 | --no*) |
7400 | continue | |
7401 | ;; | |
7402 | --c* | \ | |
7403 | --sr* | \ | |
7404 | --ho* | \ | |
7405 | --bu* | \ | |
7406 | --t* | \ | |
7407 | --program-* | \ | |
7408 | -cache_file* | \ | |
7409 | -srcdir* | \ | |
7410 | -host* | \ | |
7411 | -build* | \ | |
7412 | -target* | \ | |
7413 | -program-prefix* | \ | |
7414 | -program-suffix* | \ | |
7415 | -program-transform-name* ) | |
7416 | skip_next=$separate_arg | |
7417 | continue | |
7418 | ;; | |
7419 | -*) | |
7420 | # An option. Add it. | |
7421 | case $ac_arg in | |
7422 | *\'*) | |
7423 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7424 | esac | |
7425 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7426 | if test X"$skip_targ" = Xno; then |
7427 | tbaseargs="$tbaseargs '$ac_arg'" | |
7428 | fi | |
c6b750e1 DJ |
7429 | keep_next=$separate_arg |
7430 | ;; | |
7431 | *) | |
7432 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7433 | # pass it down; let the Makefile handle this. | |
7434 | continue | |
7435 | ;; | |
7436 | esac | |
7437 | done | |
7438 | # Remove the initial space we just introduced and, as these will be | |
7439 | # expanded by make, quote '$'. | |
7440 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7441 | |
f27d4f92 DJ |
7442 | # Add in --program-transform-name, after --program-prefix and |
7443 | # --program-suffix have been applied to it. Autoconf has already | |
7444 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7445 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7446 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7447 | # Also, because we want to override the logic in subdir configure scripts to |
7448 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7449 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7450 | ${program_transform_name} | |
7451 | EOF_SED | |
7452 | gcc_transform_name=`cat conftestsed.out` | |
7453 | rm -f conftestsed.out | |
7454 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7455 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7456 | if test "$silent" = yes; then |
7457 | baseargs="$baseargs --silent" | |
65b4571a | 7458 | tbaseargs="$tbaseargs --silent" |
2444379b | 7459 | fi |
34a0f3cf | 7460 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7461 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7462 | |
4074d5f2 RW |
7463 | # Record and document user additions to sub configure arguments. |
7464 | ||
7465 | ||
7466 | ||
7467 | ||
a0da8069 NN |
7468 | # For the build-side libraries, we just need to pretend we're native, |
7469 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7470 | # desired. We can't even use the same cache file for all build-side |
7471 | # libraries, as they're compiled differently; some with C, some with | |
7472 | # C++ or with different feature-enabling options. | |
7473 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7474 | |
7475 | # For host modules, accept cache file option, or specification as blank. | |
7476 | case "${cache_file}" in | |
7477 | "") # empty | |
7478 | cache_file_option="" ;; | |
7479 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7480 | cache_file_option="--cache-file=${cache_file}" ;; | |
7481 | *) # relative path | |
7482 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7483 | esac | |
7484 | ||
82252c06 NN |
7485 | # Host dirs don't like to share a cache file either, horribly enough. |
7486 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7487 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7488 | |
65b4571a | 7489 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7490 | |
7491 | # Passing a --with-cross-host argument lets the target libraries know | |
7492 | # whether they are being built with a cross-compiler or being built | |
7493 | # native. However, it would be better to use other mechanisms to make the | |
7494 | # sorts of decisions they want to make on this basis. Please consider | |
7495 | # this option to be deprecated. FIXME. | |
7496 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7497 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7498 | fi |
7499 | ||
afc0578d | 7500 | # Special user-friendly check for native x86_64-linux build, if |
7501 | # multilib is not explicitly enabled. | |
7502 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7503 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7504 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7505 | dev64=no |
7506 | echo "int main () { return 0; }" > conftest.c | |
7507 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7508 | if test $? = 0 ; then | |
7509 | if test -s conftest || test -s conftest.exe ; then | |
7510 | dev64=yes | |
7511 | fi | |
7512 | fi | |
7513 | rm -f conftest* | |
7514 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 7515 | 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 | 7516 | fi |
7517 | ;; | |
7518 | esac | |
7519 | ||
938d2b74 RW |
7520 | # Default to --enable-multilib. |
7521 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7522 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7523 | fi |
a0da8069 NN |
7524 | |
7525 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7526 | # changed from the earlier setting of with_newlib. | |
7527 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7528 | target_configargs="--with-newlib ${target_configargs}" | |
7529 | fi | |
7530 | ||
95036d20 NN |
7531 | # Different target subdirs use different values of certain variables |
7532 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7533 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7534 | # it doesn't automatically accept command-line overrides of them. | |
7535 | # This means it's not safe for target subdirs to share a cache file, | |
7536 | # which is disgusting, but there you have it. Hopefully this can be | |
7537 | # fixed in future. It's still worthwhile to use a cache file for each | |
7538 | # directory. I think. | |
7539 | ||
ae380b45 MS |
7540 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7541 | # We need to pass --target, as newer autoconf's requires consistency | |
7542 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7543 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7544 | |
a0da8069 NN |
7545 | FLAGS_FOR_TARGET= |
7546 | case " $target_configdirs " in | |
7547 | *" newlib "*) | |
7548 | case " $target_configargs " in | |
7549 | *" --with-newlib "*) | |
7550 | case "$target" in | |
1f53ca9a | 7551 | *-cygwin*) |
6d94c122 | 7552 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7553 | ;; |
a0da8069 NN |
7554 | esac |
7555 | ||
7556 | # If we're not building GCC, don't discard standard headers. | |
7557 | if test -d ${srcdir}/gcc; then | |
7558 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7559 | ||
7560 | if test "${build}" != "${host}"; then | |
7561 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7562 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7563 | # to it. This is right: we don't want to search that directory | |
7564 | # for binaries, but we want the header files in there, so add | |
7565 | # them explicitly. | |
e552509b | 7566 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7567 | |
7568 | # Someone might think of using the pre-installed headers on | |
7569 | # Canadian crosses, in case the installed compiler is not fully | |
7570 | # compatible with the compiler being built. In this case, it | |
7571 | # would be better to flag an error than risking having | |
7572 | # incompatible object files being constructed. We can't | |
7573 | # guarantee that an error will be flagged, but let's hope the | |
7574 | # compiler will do it, when presented with incompatible header | |
7575 | # files. | |
7576 | fi | |
7577 | fi | |
7578 | ||
7579 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7580 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7581 | # Here host == target, so we don't need to build gcc, |
7582 | # so we don't want to discard standard headers. | |
7583 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7584 | ;; | |
7585 | *) | |
7586 | # If we're building newlib, use its generic headers last, but search | |
7587 | # for any libc-related directories first (so make it the last -B | |
7588 | # switch). | |
7589 | 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 |
7590 | |
7591 | # If we're building libgloss, find the startup file, simulator library | |
7592 | # and linker script. | |
7593 | case " $target_configdirs " in | |
7594 | *" libgloss "*) | |
7595 | # Look for startup file, simulator library and maybe linker script. | |
7596 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7597 | # Look for libnosys.a in case the target needs it. | |
7598 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7599 | # Most targets have the linker script in the source directory. | |
7600 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7601 | ;; | |
7602 | esac | |
a0da8069 NN |
7603 | ;; |
7604 | esac | |
7605 | ;; | |
7606 | esac | |
7607 | ;; | |
7608 | esac | |
1f53ca9a | 7609 | |
45055374 | 7610 | case "$target" in |
1f53ca9a AO |
7611 | x86_64-*mingw* | *-w64-mingw*) |
7612 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7613 | # however, use a symlink named 'mingw' in ${prefix} . | |
7614 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7615 | ;; | |
7616 | *-mingw*) | |
7617 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7618 | 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' | |
7619 | ;; | |
45055374 | 7620 | esac |
a0da8069 | 7621 | |
5fbad20a DD |
7622 | # Allow the user to override the flags for |
7623 | # our build compiler if desired. | |
c66487f8 NC |
7624 | if test x"${build}" = x"${host}" ; then |
7625 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7626 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7627 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7628 | fi | |
5fbad20a | 7629 | |
a0da8069 NN |
7630 | # On Canadian crosses, we'll be searching the right directories for |
7631 | # the previously-installed cross compiler, so don't bother to add | |
7632 | # flags for directories within the install tree of the compiler | |
7633 | # being built; programs in there won't even run. | |
7634 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7635 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7636 | 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 |
7637 | fi |
7638 | ||
7639 | if test "x${use_gnu_ld}" = x && | |
7640 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7641 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7642 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7643 | fi |
7644 | ||
a481dbb7 DD |
7645 | # Search for other target-specific linker scripts and such. |
7646 | case "${target}" in | |
4e206d7e DB |
7647 | mep*) |
7648 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7649 | ;; | |
7650 | esac | |
7651 | ||
a0da8069 | 7652 | # Makefile fragments. |
3e707e94 PB |
7653 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7654 | do | |
7655 | eval fragval=\$$frag | |
7656 | if test $fragval != /dev/null; then | |
7657 | eval $frag=${srcdir}/$fragval | |
7658 | fi | |
7659 | done | |
a0da8069 NN |
7660 | |
7661 | ||
7662 | ||
7663 | ||
7664 | ||
7665 | # Miscellanea: directories, flags, etc. | |
7666 | ||
7667 | ||
7668 | ||
7669 | ||
7670 | ||
7671 | ||
7672 | ||
3bbd2f8f | 7673 | |
6a9cf61e | 7674 | # Build module lists & subconfigure args. |
a0da8069 NN |
7675 | |
7676 | ||
7677 | ||
be01d343 PB |
7678 | # Host module lists & subconfigure args. |
7679 | ||
7680 | ||
7681 | ||
911e63d0 | 7682 | |
be01d343 PB |
7683 | # Target module lists & subconfigure args. |
7684 | ||
7685 | ||
7686 | ||
7687 | # Build tools. | |
7688 | ||
7689 | ||
7690 | ||
1576798e PB |
7691 | |
7692 | ||
7693 | ||
7694 | ||
7695 | ||
7696 | ||
7697 | ||
7698 | ||
7699 | ||
7700 | ||
7701 | ||
7702 | ||
7703 | ||
be01d343 PB |
7704 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7705 | # on the build machine. These are used if the Makefile can't locate these | |
7706 | # programs in objdir. | |
7707 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7708 | ||
7709 | for ac_prog in 'bison -y' byacc yacc | |
7710 | do | |
c6b750e1 | 7711 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7712 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7714 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7715 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 7716 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7717 | else |
7718 | if test -n "$YACC"; then | |
7719 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7720 | else | |
c6b750e1 DJ |
7721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7722 | for as_dir in $PATH | |
7723 | do | |
7724 | IFS=$as_save_IFS | |
7725 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7726 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7727 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7728 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7730 | break 2 |
7731 | fi | |
7732 | done | |
81ecdfbb RW |
7733 | done |
7734 | IFS=$as_save_IFS | |
c6b750e1 | 7735 | |
be01d343 PB |
7736 | fi |
7737 | fi | |
c6b750e1 | 7738 | YACC=$ac_cv_prog_YACC |
be01d343 | 7739 | if test -n "$YACC"; then |
81ecdfbb RW |
7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7741 | $as_echo "$YACC" >&6; } | |
be01d343 | 7742 | else |
81ecdfbb RW |
7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7744 | $as_echo "no" >&6; } | |
be01d343 PB |
7745 | fi |
7746 | ||
81ecdfbb | 7747 | |
c6b750e1 | 7748 | test -n "$YACC" && break |
be01d343 PB |
7749 | done |
7750 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7751 | ||
7752 | case " $build_configdirs " in | |
7753 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7754 | esac |
7755 | ||
7756 | for ac_prog in bison | |
7757 | do | |
c6b750e1 | 7758 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7759 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7761 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7762 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 7763 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7764 | else |
7765 | if test -n "$BISON"; then | |
7766 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7767 | else | |
c6b750e1 DJ |
7768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7769 | for as_dir in $PATH | |
7770 | do | |
7771 | IFS=$as_save_IFS | |
7772 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7773 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7775 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7777 | break 2 |
7778 | fi | |
7779 | done | |
81ecdfbb RW |
7780 | done |
7781 | IFS=$as_save_IFS | |
c6b750e1 | 7782 | |
be01d343 PB |
7783 | fi |
7784 | fi | |
c6b750e1 | 7785 | BISON=$ac_cv_prog_BISON |
be01d343 | 7786 | if test -n "$BISON"; then |
81ecdfbb RW |
7787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7788 | $as_echo "$BISON" >&6; } | |
be01d343 | 7789 | else |
81ecdfbb RW |
7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7791 | $as_echo "no" >&6; } | |
be01d343 PB |
7792 | fi |
7793 | ||
81ecdfbb | 7794 | |
c6b750e1 | 7795 | test -n "$BISON" && break |
be01d343 PB |
7796 | done |
7797 | test -n "$BISON" || BISON="$MISSING bison" | |
7798 | ||
7799 | case " $build_configdirs " in | |
7800 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7801 | esac | |
7802 | ||
7803 | for ac_prog in gm4 gnum4 m4 | |
7804 | do | |
c6b750e1 | 7805 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7806 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7808 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7809 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 7810 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7811 | else |
7812 | if test -n "$M4"; then | |
7813 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7814 | else | |
c6b750e1 DJ |
7815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7816 | for as_dir in $PATH | |
7817 | do | |
7818 | IFS=$as_save_IFS | |
7819 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7820 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7822 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7824 | break 2 |
7825 | fi | |
7826 | done | |
81ecdfbb RW |
7827 | done |
7828 | IFS=$as_save_IFS | |
c6b750e1 | 7829 | |
be01d343 PB |
7830 | fi |
7831 | fi | |
c6b750e1 | 7832 | M4=$ac_cv_prog_M4 |
be01d343 | 7833 | if test -n "$M4"; then |
81ecdfbb RW |
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7835 | $as_echo "$M4" >&6; } | |
be01d343 | 7836 | else |
81ecdfbb RW |
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7838 | $as_echo "no" >&6; } | |
be01d343 PB |
7839 | fi |
7840 | ||
81ecdfbb | 7841 | |
c6b750e1 | 7842 | test -n "$M4" && break |
be01d343 PB |
7843 | done |
7844 | test -n "$M4" || M4="$MISSING m4" | |
7845 | ||
7846 | case " $build_configdirs " in | |
7847 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7848 | esac | |
7849 | ||
7850 | for ac_prog in flex lex | |
7851 | do | |
c6b750e1 | 7852 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7853 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7855 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7856 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 7857 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7858 | else |
7859 | if test -n "$LEX"; then | |
7860 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7861 | else | |
c6b750e1 DJ |
7862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7863 | for as_dir in $PATH | |
7864 | do | |
7865 | IFS=$as_save_IFS | |
7866 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7867 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7868 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7869 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7871 | break 2 |
7872 | fi | |
7873 | done | |
81ecdfbb RW |
7874 | done |
7875 | IFS=$as_save_IFS | |
c6b750e1 | 7876 | |
be01d343 PB |
7877 | fi |
7878 | fi | |
c6b750e1 | 7879 | LEX=$ac_cv_prog_LEX |
be01d343 | 7880 | if test -n "$LEX"; then |
81ecdfbb RW |
7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7882 | $as_echo "$LEX" >&6; } | |
be01d343 | 7883 | else |
81ecdfbb RW |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7885 | $as_echo "no" >&6; } | |
be01d343 PB |
7886 | fi |
7887 | ||
81ecdfbb | 7888 | |
c6b750e1 | 7889 | test -n "$LEX" && break |
be01d343 PB |
7890 | done |
7891 | test -n "$LEX" || LEX="$MISSING flex" | |
7892 | ||
7893 | case " $build_configdirs " in | |
7894 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7895 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7896 | esac | |
7897 | ||
7898 | for ac_prog in flex | |
7899 | do | |
c6b750e1 | 7900 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7901 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7903 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7904 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 7905 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7906 | else |
7907 | if test -n "$FLEX"; then | |
7908 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7909 | else | |
c6b750e1 DJ |
7910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7911 | for as_dir in $PATH | |
7912 | do | |
7913 | IFS=$as_save_IFS | |
7914 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7915 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7917 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7919 | break 2 |
7920 | fi | |
7921 | done | |
81ecdfbb RW |
7922 | done |
7923 | IFS=$as_save_IFS | |
c6b750e1 | 7924 | |
be01d343 PB |
7925 | fi |
7926 | fi | |
c6b750e1 | 7927 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7928 | if test -n "$FLEX"; then |
81ecdfbb RW |
7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7930 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7931 | else |
81ecdfbb RW |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7933 | $as_echo "no" >&6; } | |
be01d343 PB |
7934 | fi |
7935 | ||
81ecdfbb | 7936 | |
c6b750e1 | 7937 | test -n "$FLEX" && break |
be01d343 PB |
7938 | done |
7939 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7940 | ||
7941 | case " $build_configdirs " in | |
7942 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7943 | esac | |
7944 | ||
7945 | for ac_prog in makeinfo | |
7946 | do | |
c6b750e1 | 7947 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7948 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7950 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7951 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 7952 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7953 | else |
7954 | if test -n "$MAKEINFO"; then | |
7955 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7956 | else | |
c6b750e1 DJ |
7957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7958 | for as_dir in $PATH | |
7959 | do | |
7960 | IFS=$as_save_IFS | |
7961 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7962 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7964 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7966 | break 2 |
7967 | fi | |
7968 | done | |
81ecdfbb RW |
7969 | done |
7970 | IFS=$as_save_IFS | |
c6b750e1 | 7971 | |
be01d343 PB |
7972 | fi |
7973 | fi | |
c6b750e1 | 7974 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7975 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7977 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7978 | else |
81ecdfbb RW |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7980 | $as_echo "no" >&6; } | |
be01d343 PB |
7981 | fi |
7982 | ||
81ecdfbb | 7983 | |
c6b750e1 | 7984 | test -n "$MAKEINFO" && break |
be01d343 PB |
7985 | done |
7986 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7987 | ||
7988 | case " $build_configdirs " in | |
7989 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7990 | *) | |
7991 | ||
10ad8ef3 | 7992 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7993 | # higher, else we use the "missing" dummy. |
7994 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7995 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7996 | : |
7997 | else | |
7998 | MAKEINFO="$MISSING makeinfo" | |
7999 | fi | |
8000 | ;; | |
8001 | ||
8002 | esac | |
a0da8069 | 8003 | |
be01d343 | 8004 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8005 | |
be01d343 PB |
8006 | for ac_prog in expect |
8007 | do | |
c6b750e1 | 8008 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8009 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8011 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8012 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 8013 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8014 | else |
8015 | if test -n "$EXPECT"; then | |
8016 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8017 | else | |
c6b750e1 DJ |
8018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8019 | for as_dir in $PATH | |
8020 | do | |
8021 | IFS=$as_save_IFS | |
8022 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8023 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8025 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8027 | break 2 |
8028 | fi | |
8029 | done | |
81ecdfbb RW |
8030 | done |
8031 | IFS=$as_save_IFS | |
c6b750e1 | 8032 | |
be01d343 PB |
8033 | fi |
8034 | fi | |
c6b750e1 | 8035 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8036 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8038 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8039 | else |
81ecdfbb RW |
8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8041 | $as_echo "no" >&6; } | |
be01d343 | 8042 | fi |
a0da8069 | 8043 | |
81ecdfbb | 8044 | |
c6b750e1 | 8045 | test -n "$EXPECT" && break |
be01d343 PB |
8046 | done |
8047 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8048 | |
be01d343 PB |
8049 | case " $configdirs " in |
8050 | *" expect "*) | |
8051 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8052 | ;; | |
8053 | esac | |
a0da8069 | 8054 | |
be01d343 PB |
8055 | for ac_prog in runtest |
8056 | do | |
c6b750e1 | 8057 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8058 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8060 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8061 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 8062 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8063 | else |
8064 | if test -n "$RUNTEST"; then | |
8065 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8066 | else | |
c6b750e1 DJ |
8067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8068 | for as_dir in $PATH | |
8069 | do | |
8070 | IFS=$as_save_IFS | |
8071 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8072 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8074 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8076 | break 2 |
8077 | fi | |
8078 | done | |
81ecdfbb RW |
8079 | done |
8080 | IFS=$as_save_IFS | |
c6b750e1 | 8081 | |
be01d343 PB |
8082 | fi |
8083 | fi | |
c6b750e1 | 8084 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8085 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8087 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8088 | else |
81ecdfbb RW |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8090 | $as_echo "no" >&6; } | |
be01d343 | 8091 | fi |
a0da8069 | 8092 | |
81ecdfbb | 8093 | |
c6b750e1 | 8094 | test -n "$RUNTEST" && break |
be01d343 PB |
8095 | done |
8096 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8097 | |
be01d343 PB |
8098 | case " $configdirs " in |
8099 | *" dejagnu "*) | |
6b89cc21 | 8100 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8101 | ;; |
8102 | esac | |
a0da8069 NN |
8103 | |
8104 | ||
a0da8069 | 8105 | # Host tools. |
859789af AC |
8106 | ncn_tool_prefix= |
8107 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8108 | ncn_target_tool_prefix= | |
8109 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8110 | ||
9a819804 AO |
8111 | |
8112 | ||
8113 | if test -n "$AR"; then | |
8114 | ac_cv_prog_AR=$AR | |
8115 | elif test -n "$ac_cv_prog_AR"; then | |
8116 | AR=$ac_cv_prog_AR | |
8117 | fi | |
8118 | ||
8119 | if test -n "$ac_cv_prog_AR"; then | |
8120 | for ncn_progname in ar; do | |
8121 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8122 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8124 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8125 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8126 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8127 | else |
8128 | if test -n "$AR"; then | |
8129 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8130 | else | |
8131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8132 | for as_dir in $PATH | |
8133 | do | |
8134 | IFS=$as_save_IFS | |
8135 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8136 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8138 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8140 | break 2 |
8141 | fi | |
8142 | done | |
81ecdfbb RW |
8143 | done |
8144 | IFS=$as_save_IFS | |
9a819804 AO |
8145 | |
8146 | fi | |
8147 | fi | |
8148 | AR=$ac_cv_prog_AR | |
8149 | if test -n "$AR"; then | |
81ecdfbb RW |
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8151 | $as_echo "$AR" >&6; } | |
9a819804 | 8152 | else |
81ecdfbb RW |
8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8154 | $as_echo "no" >&6; } | |
9a819804 AO |
8155 | fi |
8156 | ||
81ecdfbb | 8157 | |
9a819804 AO |
8158 | done |
8159 | fi | |
8160 | ||
8161 | for ncn_progname in ar; do | |
05cbd757 PB |
8162 | if test -n "$ncn_tool_prefix"; then |
8163 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8164 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8166 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8167 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8168 | $as_echo_n "(cached) " >&6 |
859789af AC |
8169 | else |
8170 | if test -n "$AR"; then | |
8171 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8172 | else | |
c6b750e1 DJ |
8173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8174 | for as_dir in $PATH | |
8175 | do | |
8176 | IFS=$as_save_IFS | |
8177 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8178 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8180 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8182 | break 2 |
8183 | fi | |
8184 | done | |
81ecdfbb RW |
8185 | done |
8186 | IFS=$as_save_IFS | |
c6b750e1 | 8187 | |
859789af AC |
8188 | fi |
8189 | fi | |
c6b750e1 | 8190 | AR=$ac_cv_prog_AR |
859789af | 8191 | if test -n "$AR"; then |
81ecdfbb RW |
8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8193 | $as_echo "$AR" >&6; } | |
859789af | 8194 | else |
81ecdfbb RW |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8196 | $as_echo "no" >&6; } | |
859789af AC |
8197 | fi |
8198 | ||
81ecdfbb | 8199 | |
05cbd757 PB |
8200 | fi |
8201 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8202 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8203 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8205 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8206 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8207 | $as_echo_n "(cached) " >&6 |
859789af | 8208 | else |
05cbd757 PB |
8209 | if test -n "$AR"; then |
8210 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8211 | else |
c6b750e1 DJ |
8212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8213 | for as_dir in $PATH | |
8214 | do | |
8215 | IFS=$as_save_IFS | |
8216 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8217 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8219 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8221 | break 2 |
8222 | fi | |
8223 | done | |
81ecdfbb RW |
8224 | done |
8225 | IFS=$as_save_IFS | |
c6b750e1 | 8226 | |
859789af AC |
8227 | fi |
8228 | fi | |
c6b750e1 | 8229 | AR=$ac_cv_prog_AR |
05cbd757 | 8230 | if test -n "$AR"; then |
81ecdfbb RW |
8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8232 | $as_echo "$AR" >&6; } | |
859789af | 8233 | else |
81ecdfbb RW |
8234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8235 | $as_echo "no" >&6; } | |
859789af | 8236 | fi |
c6b750e1 | 8237 | |
81ecdfbb | 8238 | |
05cbd757 PB |
8239 | fi |
8240 | test -n "$ac_cv_prog_AR" && break | |
8241 | done | |
8242 | ||
8243 | if test -z "$ac_cv_prog_AR" ; then | |
8244 | set dummy ar | |
8245 | if test $build = $host ; then | |
8246 | AR="$2" | |
859789af | 8247 | else |
05cbd757 | 8248 | AR="${ncn_tool_prefix}$2" |
859789af | 8249 | fi |
859789af AC |
8250 | fi |
8251 | ||
9a819804 AO |
8252 | |
8253 | ||
8254 | if test -n "$AS"; then | |
8255 | ac_cv_prog_AS=$AS | |
8256 | elif test -n "$ac_cv_prog_AS"; then | |
8257 | AS=$ac_cv_prog_AS | |
8258 | fi | |
8259 | ||
8260 | if test -n "$ac_cv_prog_AS"; then | |
8261 | for ncn_progname in as; do | |
8262 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8263 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8265 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8266 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8267 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8268 | else |
8269 | if test -n "$AS"; then | |
8270 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8271 | else | |
8272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8273 | for as_dir in $PATH | |
8274 | do | |
8275 | IFS=$as_save_IFS | |
8276 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8277 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8279 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8281 | break 2 |
8282 | fi | |
8283 | done | |
81ecdfbb RW |
8284 | done |
8285 | IFS=$as_save_IFS | |
9a819804 AO |
8286 | |
8287 | fi | |
8288 | fi | |
8289 | AS=$ac_cv_prog_AS | |
8290 | if test -n "$AS"; then | |
81ecdfbb RW |
8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8292 | $as_echo "$AS" >&6; } | |
9a819804 | 8293 | else |
81ecdfbb RW |
8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8295 | $as_echo "no" >&6; } | |
9a819804 AO |
8296 | fi |
8297 | ||
81ecdfbb | 8298 | |
9a819804 AO |
8299 | done |
8300 | fi | |
8301 | ||
8302 | for ncn_progname in as; do | |
05cbd757 PB |
8303 | if test -n "$ncn_tool_prefix"; then |
8304 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8305 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8307 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8308 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8309 | $as_echo_n "(cached) " >&6 |
859789af AC |
8310 | else |
8311 | if test -n "$AS"; then | |
8312 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8313 | else |
8314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8315 | for as_dir in $PATH | |
8316 | do | |
8317 | IFS=$as_save_IFS | |
8318 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8319 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8321 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8323 | break 2 |
8324 | fi | |
8325 | done | |
81ecdfbb RW |
8326 | done |
8327 | IFS=$as_save_IFS | |
c6b750e1 | 8328 | |
859789af AC |
8329 | fi |
8330 | fi | |
c6b750e1 | 8331 | AS=$ac_cv_prog_AS |
859789af | 8332 | if test -n "$AS"; then |
81ecdfbb RW |
8333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8334 | $as_echo "$AS" >&6; } | |
859789af | 8335 | else |
81ecdfbb RW |
8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8337 | $as_echo "no" >&6; } | |
859789af AC |
8338 | fi |
8339 | ||
81ecdfbb | 8340 | |
05cbd757 PB |
8341 | fi |
8342 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8343 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8344 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8346 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8347 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8348 | $as_echo_n "(cached) " >&6 |
859789af | 8349 | else |
05cbd757 PB |
8350 | if test -n "$AS"; then |
8351 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8352 | else |
c6b750e1 DJ |
8353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8354 | for as_dir in $PATH | |
8355 | do | |
8356 | IFS=$as_save_IFS | |
8357 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8358 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8359 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8360 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8362 | break 2 |
8363 | fi | |
8364 | done | |
81ecdfbb RW |
8365 | done |
8366 | IFS=$as_save_IFS | |
c6b750e1 | 8367 | |
859789af AC |
8368 | fi |
8369 | fi | |
c6b750e1 | 8370 | AS=$ac_cv_prog_AS |
05cbd757 | 8371 | if test -n "$AS"; then |
81ecdfbb RW |
8372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8373 | $as_echo "$AS" >&6; } | |
859789af | 8374 | else |
81ecdfbb RW |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8376 | $as_echo "no" >&6; } | |
859789af | 8377 | fi |
c6b750e1 | 8378 | |
81ecdfbb | 8379 | |
05cbd757 PB |
8380 | fi |
8381 | test -n "$ac_cv_prog_AS" && break | |
8382 | done | |
8383 | ||
8384 | if test -z "$ac_cv_prog_AS" ; then | |
8385 | set dummy as | |
8386 | if test $build = $host ; then | |
8387 | AS="$2" | |
859789af | 8388 | else |
05cbd757 | 8389 | AS="${ncn_tool_prefix}$2" |
859789af | 8390 | fi |
859789af AC |
8391 | fi |
8392 | ||
9a819804 AO |
8393 | |
8394 | ||
8395 | if test -n "$DLLTOOL"; then | |
8396 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8397 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8398 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8399 | fi | |
8400 | ||
8401 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8402 | for ncn_progname in dlltool; do | |
8403 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8404 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8406 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8407 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8408 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8409 | else |
8410 | if test -n "$DLLTOOL"; then | |
8411 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8412 | else | |
8413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8414 | for as_dir in $PATH | |
8415 | do | |
8416 | IFS=$as_save_IFS | |
8417 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8418 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8419 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8420 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8422 | break 2 |
8423 | fi | |
8424 | done | |
81ecdfbb RW |
8425 | done |
8426 | IFS=$as_save_IFS | |
9a819804 AO |
8427 | |
8428 | fi | |
8429 | fi | |
8430 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8431 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8433 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8434 | else |
81ecdfbb RW |
8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8436 | $as_echo "no" >&6; } | |
9a819804 AO |
8437 | fi |
8438 | ||
81ecdfbb | 8439 | |
9a819804 AO |
8440 | done |
8441 | fi | |
8442 | ||
8443 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8444 | if test -n "$ncn_tool_prefix"; then |
8445 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8446 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8448 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8449 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8450 | $as_echo_n "(cached) " >&6 |
859789af AC |
8451 | else |
8452 | if test -n "$DLLTOOL"; then | |
8453 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8454 | else | |
c6b750e1 DJ |
8455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8456 | for as_dir in $PATH | |
8457 | do | |
8458 | IFS=$as_save_IFS | |
8459 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8460 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8462 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8464 | break 2 |
8465 | fi | |
8466 | done | |
81ecdfbb RW |
8467 | done |
8468 | IFS=$as_save_IFS | |
c6b750e1 | 8469 | |
859789af AC |
8470 | fi |
8471 | fi | |
c6b750e1 | 8472 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8473 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8475 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8476 | else |
81ecdfbb RW |
8477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8478 | $as_echo "no" >&6; } | |
859789af AC |
8479 | fi |
8480 | ||
81ecdfbb | 8481 | |
05cbd757 PB |
8482 | fi |
8483 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8484 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8485 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8487 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8488 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8489 | $as_echo_n "(cached) " >&6 |
859789af | 8490 | else |
05cbd757 PB |
8491 | if test -n "$DLLTOOL"; then |
8492 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8493 | else |
c6b750e1 DJ |
8494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8495 | for as_dir in $PATH | |
8496 | do | |
8497 | IFS=$as_save_IFS | |
8498 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8499 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8501 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8503 | break 2 |
8504 | fi | |
8505 | done | |
81ecdfbb RW |
8506 | done |
8507 | IFS=$as_save_IFS | |
c6b750e1 | 8508 | |
859789af AC |
8509 | fi |
8510 | fi | |
c6b750e1 | 8511 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8512 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8514 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8515 | else |
81ecdfbb RW |
8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8517 | $as_echo "no" >&6; } | |
859789af | 8518 | fi |
c6b750e1 | 8519 | |
81ecdfbb | 8520 | |
05cbd757 PB |
8521 | fi |
8522 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8523 | done | |
8524 | ||
8525 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8526 | set dummy dlltool | |
8527 | if test $build = $host ; then | |
8528 | DLLTOOL="$2" | |
859789af | 8529 | else |
05cbd757 | 8530 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8531 | fi |
859789af AC |
8532 | fi |
8533 | ||
9a819804 AO |
8534 | |
8535 | ||
8536 | if test -n "$LD"; then | |
8537 | ac_cv_prog_LD=$LD | |
8538 | elif test -n "$ac_cv_prog_LD"; then | |
8539 | LD=$ac_cv_prog_LD | |
8540 | fi | |
8541 | ||
8542 | if test -n "$ac_cv_prog_LD"; then | |
8543 | for ncn_progname in ld; do | |
8544 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8545 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8547 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8548 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8549 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8550 | else |
8551 | if test -n "$LD"; then | |
8552 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8553 | else | |
8554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8555 | for as_dir in $PATH | |
8556 | do | |
8557 | IFS=$as_save_IFS | |
8558 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8559 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8561 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8563 | break 2 |
8564 | fi | |
8565 | done | |
81ecdfbb RW |
8566 | done |
8567 | IFS=$as_save_IFS | |
9a819804 AO |
8568 | |
8569 | fi | |
8570 | fi | |
8571 | LD=$ac_cv_prog_LD | |
8572 | if test -n "$LD"; then | |
81ecdfbb RW |
8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8574 | $as_echo "$LD" >&6; } | |
9a819804 | 8575 | else |
81ecdfbb RW |
8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8577 | $as_echo "no" >&6; } | |
9a819804 AO |
8578 | fi |
8579 | ||
81ecdfbb | 8580 | |
9a819804 AO |
8581 | done |
8582 | fi | |
8583 | ||
8584 | for ncn_progname in ld; do | |
05cbd757 PB |
8585 | if test -n "$ncn_tool_prefix"; then |
8586 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8587 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8589 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8590 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8591 | $as_echo_n "(cached) " >&6 |
859789af AC |
8592 | else |
8593 | if test -n "$LD"; then | |
8594 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8595 | else | |
c6b750e1 DJ |
8596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8597 | for as_dir in $PATH | |
8598 | do | |
8599 | IFS=$as_save_IFS | |
8600 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8601 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8602 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8603 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8605 | break 2 |
8606 | fi | |
8607 | done | |
81ecdfbb RW |
8608 | done |
8609 | IFS=$as_save_IFS | |
c6b750e1 | 8610 | |
859789af AC |
8611 | fi |
8612 | fi | |
c6b750e1 | 8613 | LD=$ac_cv_prog_LD |
859789af | 8614 | if test -n "$LD"; then |
81ecdfbb RW |
8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8616 | $as_echo "$LD" >&6; } | |
859789af | 8617 | else |
81ecdfbb RW |
8618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8619 | $as_echo "no" >&6; } | |
859789af AC |
8620 | fi |
8621 | ||
81ecdfbb | 8622 | |
05cbd757 PB |
8623 | fi |
8624 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8625 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8626 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8628 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8629 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8630 | $as_echo_n "(cached) " >&6 |
859789af | 8631 | else |
05cbd757 PB |
8632 | if test -n "$LD"; then |
8633 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8634 | else |
c6b750e1 DJ |
8635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8636 | for as_dir in $PATH | |
8637 | do | |
8638 | IFS=$as_save_IFS | |
8639 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8640 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8642 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8644 | break 2 |
8645 | fi | |
8646 | done | |
81ecdfbb RW |
8647 | done |
8648 | IFS=$as_save_IFS | |
c6b750e1 | 8649 | |
859789af AC |
8650 | fi |
8651 | fi | |
c6b750e1 | 8652 | LD=$ac_cv_prog_LD |
05cbd757 | 8653 | if test -n "$LD"; then |
81ecdfbb RW |
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8655 | $as_echo "$LD" >&6; } | |
859789af | 8656 | else |
81ecdfbb RW |
8657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8658 | $as_echo "no" >&6; } | |
859789af | 8659 | fi |
c6b750e1 | 8660 | |
81ecdfbb | 8661 | |
05cbd757 PB |
8662 | fi |
8663 | test -n "$ac_cv_prog_LD" && break | |
8664 | done | |
8665 | ||
8666 | if test -z "$ac_cv_prog_LD" ; then | |
8667 | set dummy ld | |
8668 | if test $build = $host ; then | |
8669 | LD="$2" | |
859789af | 8670 | else |
05cbd757 | 8671 | LD="${ncn_tool_prefix}$2" |
859789af | 8672 | fi |
859789af AC |
8673 | fi |
8674 | ||
9a819804 AO |
8675 | |
8676 | ||
8677 | if test -n "$LIPO"; then | |
8678 | ac_cv_prog_LIPO=$LIPO | |
8679 | elif test -n "$ac_cv_prog_LIPO"; then | |
8680 | LIPO=$ac_cv_prog_LIPO | |
8681 | fi | |
8682 | ||
8683 | if test -n "$ac_cv_prog_LIPO"; then | |
8684 | for ncn_progname in lipo; do | |
8685 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8686 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8688 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8689 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8690 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8691 | else |
8692 | if test -n "$LIPO"; then | |
8693 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8694 | else | |
8695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8696 | for as_dir in $PATH | |
8697 | do | |
8698 | IFS=$as_save_IFS | |
8699 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8700 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8702 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8704 | break 2 |
8705 | fi | |
8706 | done | |
81ecdfbb RW |
8707 | done |
8708 | IFS=$as_save_IFS | |
9a819804 AO |
8709 | |
8710 | fi | |
8711 | fi | |
8712 | LIPO=$ac_cv_prog_LIPO | |
8713 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8715 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8716 | else |
81ecdfbb RW |
8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8718 | $as_echo "no" >&6; } | |
9a819804 AO |
8719 | fi |
8720 | ||
81ecdfbb | 8721 | |
9a819804 AO |
8722 | done |
8723 | fi | |
8724 | ||
8725 | for ncn_progname in lipo; do | |
be01d343 PB |
8726 | if test -n "$ncn_tool_prefix"; then |
8727 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8728 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8730 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8731 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8732 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8733 | else |
8734 | if test -n "$LIPO"; then | |
8735 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8736 | else | |
c6b750e1 DJ |
8737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8738 | for as_dir in $PATH | |
8739 | do | |
8740 | IFS=$as_save_IFS | |
8741 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8742 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8744 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8746 | break 2 |
8747 | fi | |
8748 | done | |
81ecdfbb RW |
8749 | done |
8750 | IFS=$as_save_IFS | |
c6b750e1 | 8751 | |
be01d343 PB |
8752 | fi |
8753 | fi | |
c6b750e1 | 8754 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8755 | if test -n "$LIPO"; then |
81ecdfbb RW |
8756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8757 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8758 | else |
81ecdfbb RW |
8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8760 | $as_echo "no" >&6; } | |
be01d343 PB |
8761 | fi |
8762 | ||
81ecdfbb | 8763 | |
be01d343 PB |
8764 | fi |
8765 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8766 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8767 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8769 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8770 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8771 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8772 | else |
8773 | if test -n "$LIPO"; then | |
8774 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8775 | else | |
c6b750e1 DJ |
8776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8777 | for as_dir in $PATH | |
8778 | do | |
8779 | IFS=$as_save_IFS | |
8780 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8781 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8783 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8785 | break 2 |
8786 | fi | |
8787 | done | |
81ecdfbb RW |
8788 | done |
8789 | IFS=$as_save_IFS | |
c6b750e1 | 8790 | |
be01d343 PB |
8791 | fi |
8792 | fi | |
c6b750e1 | 8793 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8794 | if test -n "$LIPO"; then |
81ecdfbb RW |
8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8796 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8797 | else |
81ecdfbb RW |
8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8799 | $as_echo "no" >&6; } | |
be01d343 | 8800 | fi |
c6b750e1 | 8801 | |
81ecdfbb | 8802 | |
be01d343 PB |
8803 | fi |
8804 | test -n "$ac_cv_prog_LIPO" && break | |
8805 | done | |
8806 | ||
8807 | if test -z "$ac_cv_prog_LIPO" ; then | |
8808 | set dummy lipo | |
8809 | if test $build = $host ; then | |
8810 | LIPO="$2" | |
8811 | else | |
8812 | LIPO="${ncn_tool_prefix}$2" | |
8813 | fi | |
8814 | fi | |
8815 | ||
9a819804 AO |
8816 | |
8817 | ||
8818 | if test -n "$NM"; then | |
8819 | ac_cv_prog_NM=$NM | |
8820 | elif test -n "$ac_cv_prog_NM"; then | |
8821 | NM=$ac_cv_prog_NM | |
8822 | fi | |
8823 | ||
8824 | if test -n "$ac_cv_prog_NM"; then | |
8825 | for ncn_progname in nm; do | |
8826 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8827 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8829 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8830 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8831 | $as_echo_n "(cached) " >&6 |
859789af AC |
8832 | else |
8833 | if test -n "$NM"; then | |
8834 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8835 | else | |
c6b750e1 DJ |
8836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8837 | for as_dir in $PATH | |
8838 | do | |
8839 | IFS=$as_save_IFS | |
8840 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8841 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8843 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8845 | break 2 |
8846 | fi | |
8847 | done | |
81ecdfbb RW |
8848 | done |
8849 | IFS=$as_save_IFS | |
c6b750e1 | 8850 | |
859789af AC |
8851 | fi |
8852 | fi | |
c6b750e1 | 8853 | NM=$ac_cv_prog_NM |
859789af | 8854 | if test -n "$NM"; then |
81ecdfbb RW |
8855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8856 | $as_echo "$NM" >&6; } | |
859789af | 8857 | else |
81ecdfbb RW |
8858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8859 | $as_echo "no" >&6; } | |
859789af AC |
8860 | fi |
8861 | ||
81ecdfbb | 8862 | |
9a819804 AO |
8863 | done |
8864 | fi | |
8865 | ||
8866 | for ncn_progname in nm; do | |
8867 | if test -n "$ncn_tool_prefix"; then | |
8868 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8869 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8871 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8872 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8873 | $as_echo_n "(cached) " >&6 |
859789af | 8874 | else |
05cbd757 PB |
8875 | if test -n "$NM"; then |
8876 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8877 | else |
c6b750e1 DJ |
8878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8879 | for as_dir in $PATH | |
8880 | do | |
8881 | IFS=$as_save_IFS | |
8882 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8883 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8885 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8887 | break 2 |
8888 | fi | |
8889 | done | |
81ecdfbb RW |
8890 | done |
8891 | IFS=$as_save_IFS | |
c6b750e1 | 8892 | |
859789af AC |
8893 | fi |
8894 | fi | |
c6b750e1 | 8895 | NM=$ac_cv_prog_NM |
05cbd757 | 8896 | if test -n "$NM"; then |
81ecdfbb RW |
8897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8898 | $as_echo "$NM" >&6; } | |
859789af | 8899 | else |
81ecdfbb RW |
8900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8901 | $as_echo "no" >&6; } | |
859789af | 8902 | fi |
c6b750e1 | 8903 | |
81ecdfbb | 8904 | |
05cbd757 | 8905 | fi |
9a819804 AO |
8906 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8907 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8908 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8910 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8911 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8912 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8913 | else |
8914 | if test -n "$NM"; then | |
8915 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8916 | else | |
8917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8918 | for as_dir in $PATH | |
8919 | do | |
8920 | IFS=$as_save_IFS | |
8921 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8922 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8924 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8926 | break 2 |
8927 | fi | |
8928 | done | |
81ecdfbb RW |
8929 | done |
8930 | IFS=$as_save_IFS | |
9a819804 AO |
8931 | |
8932 | fi | |
8933 | fi | |
8934 | NM=$ac_cv_prog_NM | |
8935 | if test -n "$NM"; then | |
81ecdfbb RW |
8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8937 | $as_echo "$NM" >&6; } | |
9a819804 | 8938 | else |
81ecdfbb RW |
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8940 | $as_echo "no" >&6; } | |
9a819804 AO |
8941 | fi |
8942 | ||
81ecdfbb | 8943 | |
9a819804 AO |
8944 | fi |
8945 | test -n "$ac_cv_prog_NM" && break | |
8946 | done | |
8947 | ||
8948 | if test -z "$ac_cv_prog_NM" ; then | |
8949 | set dummy nm | |
8950 | if test $build = $host ; then | |
8951 | NM="$2" | |
8952 | else | |
8953 | NM="${ncn_tool_prefix}$2" | |
8954 | fi | |
8955 | fi | |
8956 | ||
8957 | ||
8958 | ||
8959 | if test -n "$RANLIB"; then | |
8960 | ac_cv_prog_RANLIB=$RANLIB | |
8961 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8962 | RANLIB=$ac_cv_prog_RANLIB | |
8963 | fi | |
8964 | ||
8965 | if test -n "$ac_cv_prog_RANLIB"; then | |
8966 | for ncn_progname in ranlib; do | |
8967 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8968 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8970 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8971 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 8972 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8973 | else |
8974 | if test -n "$RANLIB"; then | |
8975 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8976 | else | |
8977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8978 | for as_dir in $PATH | |
8979 | do | |
8980 | IFS=$as_save_IFS | |
8981 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8982 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8983 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8984 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8986 | break 2 |
8987 | fi | |
8988 | done | |
81ecdfbb RW |
8989 | done |
8990 | IFS=$as_save_IFS | |
9a819804 AO |
8991 | |
8992 | fi | |
8993 | fi | |
8994 | RANLIB=$ac_cv_prog_RANLIB | |
8995 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8997 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8998 | else |
81ecdfbb RW |
8999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9000 | $as_echo "no" >&6; } | |
9a819804 AO |
9001 | fi |
9002 | ||
81ecdfbb | 9003 | |
9a819804 AO |
9004 | done |
9005 | fi | |
859789af | 9006 | |
9a819804 | 9007 | for ncn_progname in ranlib; do |
05cbd757 PB |
9008 | if test -n "$ncn_tool_prefix"; then |
9009 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9010 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9012 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9013 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9014 | $as_echo_n "(cached) " >&6 |
859789af AC |
9015 | else |
9016 | if test -n "$RANLIB"; then | |
9017 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9018 | else | |
c6b750e1 DJ |
9019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9020 | for as_dir in $PATH | |
9021 | do | |
9022 | IFS=$as_save_IFS | |
9023 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9024 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9026 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9028 | break 2 |
9029 | fi | |
9030 | done | |
81ecdfbb RW |
9031 | done |
9032 | IFS=$as_save_IFS | |
c6b750e1 | 9033 | |
859789af AC |
9034 | fi |
9035 | fi | |
c6b750e1 | 9036 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9037 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9039 | $as_echo "$RANLIB" >&6; } | |
859789af | 9040 | else |
81ecdfbb RW |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9042 | $as_echo "no" >&6; } | |
859789af AC |
9043 | fi |
9044 | ||
81ecdfbb | 9045 | |
05cbd757 PB |
9046 | fi |
9047 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9048 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9049 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9051 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9052 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9053 | $as_echo_n "(cached) " >&6 |
859789af | 9054 | else |
05cbd757 PB |
9055 | if test -n "$RANLIB"; then |
9056 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9057 | else |
c6b750e1 DJ |
9058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9059 | for as_dir in $PATH | |
9060 | do | |
9061 | IFS=$as_save_IFS | |
9062 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9063 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9064 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9065 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9067 | break 2 |
9068 | fi | |
9069 | done | |
81ecdfbb RW |
9070 | done |
9071 | IFS=$as_save_IFS | |
c6b750e1 | 9072 | |
859789af AC |
9073 | fi |
9074 | fi | |
c6b750e1 | 9075 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9076 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9078 | $as_echo "$RANLIB" >&6; } | |
859789af | 9079 | else |
81ecdfbb RW |
9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9081 | $as_echo "no" >&6; } | |
859789af | 9082 | fi |
c6b750e1 | 9083 | |
81ecdfbb | 9084 | |
859789af | 9085 | fi |
05cbd757 PB |
9086 | test -n "$ac_cv_prog_RANLIB" && break |
9087 | done | |
9088 | ||
9089 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9090 | RANLIB="true" |
859789af AC |
9091 | fi |
9092 | ||
9a819804 AO |
9093 | |
9094 | ||
9095 | if test -n "$STRIP"; then | |
9096 | ac_cv_prog_STRIP=$STRIP | |
9097 | elif test -n "$ac_cv_prog_STRIP"; then | |
9098 | STRIP=$ac_cv_prog_STRIP | |
9099 | fi | |
9100 | ||
9101 | if test -n "$ac_cv_prog_STRIP"; then | |
9102 | for ncn_progname in strip; do | |
9103 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9104 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9106 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9107 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9108 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9109 | else |
9110 | if test -n "$STRIP"; then | |
9111 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9112 | else | |
9113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9114 | for as_dir in $PATH | |
9115 | do | |
9116 | IFS=$as_save_IFS | |
9117 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9118 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9119 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9120 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9122 | break 2 |
9123 | fi | |
9124 | done | |
81ecdfbb RW |
9125 | done |
9126 | IFS=$as_save_IFS | |
9a819804 AO |
9127 | |
9128 | fi | |
9129 | fi | |
9130 | STRIP=$ac_cv_prog_STRIP | |
9131 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9133 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9134 | else |
81ecdfbb RW |
9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9136 | $as_echo "no" >&6; } | |
9a819804 AO |
9137 | fi |
9138 | ||
81ecdfbb | 9139 | |
9a819804 AO |
9140 | done |
9141 | fi | |
9142 | ||
9143 | for ncn_progname in strip; do | |
be01d343 PB |
9144 | if test -n "$ncn_tool_prefix"; then |
9145 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9146 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9148 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9149 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9150 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9151 | else |
9152 | if test -n "$STRIP"; then | |
9153 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9154 | else | |
c6b750e1 DJ |
9155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9156 | for as_dir in $PATH | |
9157 | do | |
9158 | IFS=$as_save_IFS | |
9159 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9160 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9162 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9164 | break 2 |
9165 | fi | |
9166 | done | |
81ecdfbb RW |
9167 | done |
9168 | IFS=$as_save_IFS | |
c6b750e1 | 9169 | |
be01d343 PB |
9170 | fi |
9171 | fi | |
c6b750e1 | 9172 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9173 | if test -n "$STRIP"; then |
81ecdfbb RW |
9174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9175 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9176 | else |
81ecdfbb RW |
9177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9178 | $as_echo "no" >&6; } | |
be01d343 PB |
9179 | fi |
9180 | ||
81ecdfbb | 9181 | |
be01d343 PB |
9182 | fi |
9183 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9184 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9185 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9187 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9188 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9189 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9190 | else |
9191 | if test -n "$STRIP"; then | |
9192 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9193 | else | |
c6b750e1 DJ |
9194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9195 | for as_dir in $PATH | |
9196 | do | |
9197 | IFS=$as_save_IFS | |
9198 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9199 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9200 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9201 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9203 | break 2 |
9204 | fi | |
9205 | done | |
81ecdfbb RW |
9206 | done |
9207 | IFS=$as_save_IFS | |
c6b750e1 | 9208 | |
be01d343 PB |
9209 | fi |
9210 | fi | |
c6b750e1 | 9211 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9212 | if test -n "$STRIP"; then |
81ecdfbb RW |
9213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9214 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9215 | else |
81ecdfbb RW |
9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9217 | $as_echo "no" >&6; } | |
be01d343 | 9218 | fi |
c6b750e1 | 9219 | |
81ecdfbb | 9220 | |
be01d343 PB |
9221 | fi |
9222 | test -n "$ac_cv_prog_STRIP" && break | |
9223 | done | |
9224 | ||
9225 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9226 | STRIP="true" |
be01d343 PB |
9227 | fi |
9228 | ||
9a819804 AO |
9229 | |
9230 | ||
9231 | if test -n "$WINDRES"; then | |
9232 | ac_cv_prog_WINDRES=$WINDRES | |
9233 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9234 | WINDRES=$ac_cv_prog_WINDRES | |
9235 | fi | |
9236 | ||
9237 | if test -n "$ac_cv_prog_WINDRES"; then | |
9238 | for ncn_progname in windres; do | |
9239 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9240 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9242 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9243 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9244 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9245 | else |
9246 | if test -n "$WINDRES"; then | |
9247 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9248 | else | |
9249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9250 | for as_dir in $PATH | |
9251 | do | |
9252 | IFS=$as_save_IFS | |
9253 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9254 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9255 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9256 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9258 | break 2 |
9259 | fi | |
9260 | done | |
81ecdfbb RW |
9261 | done |
9262 | IFS=$as_save_IFS | |
9a819804 AO |
9263 | |
9264 | fi | |
9265 | fi | |
9266 | WINDRES=$ac_cv_prog_WINDRES | |
9267 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9269 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9270 | else |
81ecdfbb RW |
9271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9272 | $as_echo "no" >&6; } | |
9a819804 AO |
9273 | fi |
9274 | ||
81ecdfbb | 9275 | |
9a819804 AO |
9276 | done |
9277 | fi | |
9278 | ||
9279 | for ncn_progname in windres; do | |
05cbd757 PB |
9280 | if test -n "$ncn_tool_prefix"; then |
9281 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9282 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9284 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9285 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9286 | $as_echo_n "(cached) " >&6 |
859789af AC |
9287 | else |
9288 | if test -n "$WINDRES"; then | |
9289 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9290 | else | |
c6b750e1 DJ |
9291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9292 | for as_dir in $PATH | |
9293 | do | |
9294 | IFS=$as_save_IFS | |
9295 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9296 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9298 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9300 | break 2 |
9301 | fi | |
9302 | done | |
81ecdfbb RW |
9303 | done |
9304 | IFS=$as_save_IFS | |
c6b750e1 | 9305 | |
859789af AC |
9306 | fi |
9307 | fi | |
c6b750e1 | 9308 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9309 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9311 | $as_echo "$WINDRES" >&6; } | |
859789af | 9312 | else |
81ecdfbb RW |
9313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9314 | $as_echo "no" >&6; } | |
859789af AC |
9315 | fi |
9316 | ||
81ecdfbb | 9317 | |
05cbd757 PB |
9318 | fi |
9319 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9320 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9321 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9323 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9324 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9325 | $as_echo_n "(cached) " >&6 |
859789af | 9326 | else |
05cbd757 PB |
9327 | if test -n "$WINDRES"; then |
9328 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9329 | else |
c6b750e1 DJ |
9330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9331 | for as_dir in $PATH | |
9332 | do | |
9333 | IFS=$as_save_IFS | |
9334 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9335 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9337 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9339 | break 2 |
9340 | fi | |
9341 | done | |
81ecdfbb RW |
9342 | done |
9343 | IFS=$as_save_IFS | |
c6b750e1 | 9344 | |
859789af AC |
9345 | fi |
9346 | fi | |
c6b750e1 | 9347 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9348 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9350 | $as_echo "$WINDRES" >&6; } | |
859789af | 9351 | else |
81ecdfbb RW |
9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9353 | $as_echo "no" >&6; } | |
859789af | 9354 | fi |
c6b750e1 | 9355 | |
81ecdfbb | 9356 | |
05cbd757 PB |
9357 | fi |
9358 | test -n "$ac_cv_prog_WINDRES" && break | |
9359 | done | |
9360 | ||
9361 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9362 | set dummy windres | |
9363 | if test $build = $host ; then | |
9364 | WINDRES="$2" | |
859789af | 9365 | else |
05cbd757 | 9366 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9367 | fi |
859789af AC |
9368 | fi |
9369 | ||
9a819804 AO |
9370 | |
9371 | ||
0c24b341 NC |
9372 | if test -n "$WINDMC"; then |
9373 | ac_cv_prog_WINDMC=$WINDMC | |
9374 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9375 | WINDMC=$ac_cv_prog_WINDMC | |
9376 | fi | |
9377 | ||
9378 | if test -n "$ac_cv_prog_WINDMC"; then | |
9379 | for ncn_progname in windmc; do | |
9380 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9381 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9383 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9384 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9385 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9386 | else |
9387 | if test -n "$WINDMC"; then | |
9388 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9389 | else | |
9390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9391 | for as_dir in $PATH | |
9392 | do | |
9393 | IFS=$as_save_IFS | |
9394 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9395 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9396 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9397 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9399 | break 2 |
9400 | fi | |
9401 | done | |
81ecdfbb RW |
9402 | done |
9403 | IFS=$as_save_IFS | |
0c24b341 NC |
9404 | |
9405 | fi | |
9406 | fi | |
9407 | WINDMC=$ac_cv_prog_WINDMC | |
9408 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9410 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9411 | else |
81ecdfbb RW |
9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9413 | $as_echo "no" >&6; } | |
0c24b341 NC |
9414 | fi |
9415 | ||
81ecdfbb | 9416 | |
0c24b341 NC |
9417 | done |
9418 | fi | |
9419 | ||
9420 | for ncn_progname in windmc; do | |
9421 | if test -n "$ncn_tool_prefix"; then | |
9422 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9423 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9425 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9426 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9427 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9428 | else |
9429 | if test -n "$WINDMC"; then | |
9430 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9431 | else | |
9432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9433 | for as_dir in $PATH | |
9434 | do | |
9435 | IFS=$as_save_IFS | |
9436 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9437 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9438 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9439 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9441 | break 2 |
9442 | fi | |
9443 | done | |
81ecdfbb RW |
9444 | done |
9445 | IFS=$as_save_IFS | |
0c24b341 NC |
9446 | |
9447 | fi | |
9448 | fi | |
9449 | WINDMC=$ac_cv_prog_WINDMC | |
9450 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9452 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9453 | else |
81ecdfbb RW |
9454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9455 | $as_echo "no" >&6; } | |
0c24b341 NC |
9456 | fi |
9457 | ||
81ecdfbb | 9458 | |
0c24b341 NC |
9459 | fi |
9460 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9461 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9462 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9464 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9465 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9466 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9467 | else |
9468 | if test -n "$WINDMC"; then | |
9469 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9470 | else | |
9471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9472 | for as_dir in $PATH | |
9473 | do | |
9474 | IFS=$as_save_IFS | |
9475 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9476 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9478 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9480 | break 2 |
9481 | fi | |
9482 | done | |
81ecdfbb RW |
9483 | done |
9484 | IFS=$as_save_IFS | |
0c24b341 NC |
9485 | |
9486 | fi | |
9487 | fi | |
9488 | WINDMC=$ac_cv_prog_WINDMC | |
9489 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9491 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9492 | else |
81ecdfbb RW |
9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9494 | $as_echo "no" >&6; } | |
0c24b341 NC |
9495 | fi |
9496 | ||
81ecdfbb | 9497 | |
0c24b341 NC |
9498 | fi |
9499 | test -n "$ac_cv_prog_WINDMC" && break | |
9500 | done | |
9501 | ||
9502 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9503 | set dummy windmc | |
9504 | if test $build = $host ; then | |
9505 | WINDMC="$2" | |
9506 | else | |
9507 | WINDMC="${ncn_tool_prefix}$2" | |
9508 | fi | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | ||
9a819804 AO |
9513 | if test -n "$OBJCOPY"; then |
9514 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9515 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9516 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9517 | fi | |
9518 | ||
9519 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9520 | for ncn_progname in objcopy; do | |
9521 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9522 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9524 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9525 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9526 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9527 | else |
9528 | if test -n "$OBJCOPY"; then | |
9529 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9530 | else | |
9531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9532 | for as_dir in $PATH | |
9533 | do | |
9534 | IFS=$as_save_IFS | |
9535 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9536 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9538 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9540 | break 2 |
9541 | fi | |
9542 | done | |
81ecdfbb RW |
9543 | done |
9544 | IFS=$as_save_IFS | |
9a819804 AO |
9545 | |
9546 | fi | |
9547 | fi | |
9548 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9549 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9551 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9552 | else |
81ecdfbb RW |
9553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9554 | $as_echo "no" >&6; } | |
9a819804 AO |
9555 | fi |
9556 | ||
81ecdfbb | 9557 | |
9a819804 AO |
9558 | done |
9559 | fi | |
9560 | ||
9561 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9562 | if test -n "$ncn_tool_prefix"; then |
9563 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9564 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9566 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9567 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9568 | $as_echo_n "(cached) " >&6 |
859789af AC |
9569 | else |
9570 | if test -n "$OBJCOPY"; then | |
9571 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9572 | else | |
c6b750e1 DJ |
9573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9574 | for as_dir in $PATH | |
9575 | do | |
9576 | IFS=$as_save_IFS | |
9577 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9578 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9579 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9580 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9582 | break 2 |
9583 | fi | |
9584 | done | |
81ecdfbb RW |
9585 | done |
9586 | IFS=$as_save_IFS | |
c6b750e1 | 9587 | |
859789af AC |
9588 | fi |
9589 | fi | |
c6b750e1 | 9590 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9591 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9593 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9594 | else |
81ecdfbb RW |
9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9596 | $as_echo "no" >&6; } | |
859789af AC |
9597 | fi |
9598 | ||
81ecdfbb | 9599 | |
05cbd757 PB |
9600 | fi |
9601 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9602 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9603 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9605 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9606 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9607 | $as_echo_n "(cached) " >&6 |
859789af | 9608 | else |
05cbd757 PB |
9609 | if test -n "$OBJCOPY"; then |
9610 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9611 | else |
c6b750e1 DJ |
9612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9613 | for as_dir in $PATH | |
9614 | do | |
9615 | IFS=$as_save_IFS | |
9616 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9617 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9618 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9619 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9621 | break 2 |
9622 | fi | |
9623 | done | |
81ecdfbb RW |
9624 | done |
9625 | IFS=$as_save_IFS | |
c6b750e1 | 9626 | |
859789af AC |
9627 | fi |
9628 | fi | |
c6b750e1 | 9629 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9630 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9632 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9633 | else |
81ecdfbb RW |
9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9635 | $as_echo "no" >&6; } | |
859789af | 9636 | fi |
c6b750e1 | 9637 | |
81ecdfbb | 9638 | |
05cbd757 PB |
9639 | fi |
9640 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9641 | done | |
9642 | ||
9643 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9644 | set dummy objcopy | |
9645 | if test $build = $host ; then | |
9646 | OBJCOPY="$2" | |
859789af | 9647 | else |
05cbd757 | 9648 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9649 | fi |
859789af AC |
9650 | fi |
9651 | ||
9a819804 AO |
9652 | |
9653 | ||
9654 | if test -n "$OBJDUMP"; then | |
9655 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9656 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9657 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9658 | fi | |
9659 | ||
9660 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9661 | for ncn_progname in objdump; do | |
9662 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9663 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9665 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9666 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9667 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9668 | else |
9669 | if test -n "$OBJDUMP"; then | |
9670 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9671 | else | |
9672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9673 | for as_dir in $PATH | |
9674 | do | |
9675 | IFS=$as_save_IFS | |
9676 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9677 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9679 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9681 | break 2 |
9682 | fi | |
9683 | done | |
81ecdfbb RW |
9684 | done |
9685 | IFS=$as_save_IFS | |
9a819804 AO |
9686 | |
9687 | fi | |
9688 | fi | |
9689 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9690 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9692 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9693 | else |
81ecdfbb RW |
9694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9695 | $as_echo "no" >&6; } | |
9a819804 AO |
9696 | fi |
9697 | ||
81ecdfbb | 9698 | |
9a819804 AO |
9699 | done |
9700 | fi | |
9701 | ||
9702 | for ncn_progname in objdump; do | |
05cbd757 PB |
9703 | if test -n "$ncn_tool_prefix"; then |
9704 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9705 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9707 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9708 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9709 | $as_echo_n "(cached) " >&6 |
859789af AC |
9710 | else |
9711 | if test -n "$OBJDUMP"; then | |
9712 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9713 | else | |
c6b750e1 DJ |
9714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9715 | for as_dir in $PATH | |
9716 | do | |
9717 | IFS=$as_save_IFS | |
9718 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9719 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9721 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9723 | break 2 |
9724 | fi | |
9725 | done | |
81ecdfbb RW |
9726 | done |
9727 | IFS=$as_save_IFS | |
c6b750e1 | 9728 | |
859789af AC |
9729 | fi |
9730 | fi | |
c6b750e1 | 9731 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9732 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9734 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9735 | else |
81ecdfbb RW |
9736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9737 | $as_echo "no" >&6; } | |
859789af AC |
9738 | fi |
9739 | ||
81ecdfbb | 9740 | |
05cbd757 PB |
9741 | fi |
9742 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9743 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9744 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9746 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9747 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9748 | $as_echo_n "(cached) " >&6 |
859789af | 9749 | else |
05cbd757 PB |
9750 | if test -n "$OBJDUMP"; then |
9751 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9752 | else |
c6b750e1 DJ |
9753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9754 | for as_dir in $PATH | |
9755 | do | |
9756 | IFS=$as_save_IFS | |
9757 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9758 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9760 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9762 | break 2 |
9763 | fi | |
9764 | done | |
81ecdfbb RW |
9765 | done |
9766 | IFS=$as_save_IFS | |
c6b750e1 | 9767 | |
859789af AC |
9768 | fi |
9769 | fi | |
c6b750e1 | 9770 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9771 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9773 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9774 | else |
81ecdfbb RW |
9775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9776 | $as_echo "no" >&6; } | |
859789af | 9777 | fi |
c6b750e1 | 9778 | |
81ecdfbb | 9779 | |
05cbd757 PB |
9780 | fi |
9781 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9782 | done | |
9783 | ||
9784 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9785 | set dummy objdump | |
9786 | if test $build = $host ; then | |
9787 | OBJDUMP="$2" | |
859789af | 9788 | else |
05cbd757 | 9789 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9790 | fi |
859789af AC |
9791 | fi |
9792 | ||
a0da8069 NN |
9793 | |
9794 | ||
b121d7d4 DD |
9795 | if test -n "$READELF"; then |
9796 | ac_cv_prog_READELF=$READELF | |
9797 | elif test -n "$ac_cv_prog_READELF"; then | |
9798 | READELF=$ac_cv_prog_READELF | |
9799 | fi | |
9800 | ||
9801 | if test -n "$ac_cv_prog_READELF"; then | |
9802 | for ncn_progname in readelf; do | |
9803 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9804 | set dummy ${ncn_progname}; ac_word=$2 | |
9805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9806 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9807 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9808 | $as_echo_n "(cached) " >&6 |
9809 | else | |
9810 | if test -n "$READELF"; then | |
9811 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9812 | else | |
9813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9814 | for as_dir in $PATH | |
9815 | do | |
9816 | IFS=$as_save_IFS | |
9817 | test -z "$as_dir" && as_dir=. | |
9818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9819 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9820 | ac_cv_prog_READELF="${ncn_progname}" |
9821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9822 | break 2 | |
9823 | fi | |
9824 | done | |
9825 | done | |
9826 | IFS=$as_save_IFS | |
9827 | ||
9828 | fi | |
9829 | fi | |
9830 | READELF=$ac_cv_prog_READELF | |
9831 | if test -n "$READELF"; then | |
9832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9833 | $as_echo "$READELF" >&6; } | |
9834 | else | |
9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9836 | $as_echo "no" >&6; } | |
9837 | fi | |
9838 | ||
9839 | ||
9840 | done | |
9841 | fi | |
9842 | ||
9843 | for ncn_progname in readelf; do | |
9844 | if test -n "$ncn_tool_prefix"; then | |
9845 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9846 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9848 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9849 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9850 | $as_echo_n "(cached) " >&6 |
9851 | else | |
9852 | if test -n "$READELF"; then | |
9853 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9854 | else | |
9855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9856 | for as_dir in $PATH | |
9857 | do | |
9858 | IFS=$as_save_IFS | |
9859 | test -z "$as_dir" && as_dir=. | |
9860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9862 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
9863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9864 | break 2 | |
9865 | fi | |
9866 | done | |
9867 | done | |
9868 | IFS=$as_save_IFS | |
9869 | ||
9870 | fi | |
9871 | fi | |
9872 | READELF=$ac_cv_prog_READELF | |
9873 | if test -n "$READELF"; then | |
9874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9875 | $as_echo "$READELF" >&6; } | |
9876 | else | |
9877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9878 | $as_echo "no" >&6; } | |
9879 | fi | |
9880 | ||
9881 | ||
9882 | fi | |
9883 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9884 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9885 | set dummy ${ncn_progname}; ac_word=$2 | |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9887 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9888 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9889 | $as_echo_n "(cached) " >&6 |
9890 | else | |
9891 | if test -n "$READELF"; then | |
9892 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9893 | else | |
9894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9895 | for as_dir in $PATH | |
9896 | do | |
9897 | IFS=$as_save_IFS | |
9898 | test -z "$as_dir" && as_dir=. | |
9899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9900 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9901 | ac_cv_prog_READELF="${ncn_progname}" |
9902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9903 | break 2 | |
9904 | fi | |
9905 | done | |
9906 | done | |
9907 | IFS=$as_save_IFS | |
9908 | ||
9909 | fi | |
9910 | fi | |
9911 | READELF=$ac_cv_prog_READELF | |
9912 | if test -n "$READELF"; then | |
9913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9914 | $as_echo "$READELF" >&6; } | |
9915 | else | |
9916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9917 | $as_echo "no" >&6; } | |
9918 | fi | |
9919 | ||
9920 | ||
9921 | fi | |
9922 | test -n "$ac_cv_prog_READELF" && break | |
9923 | done | |
9924 | ||
9925 | if test -z "$ac_cv_prog_READELF" ; then | |
9926 | set dummy readelf | |
9927 | if test $build = $host ; then | |
9928 | READELF="$2" | |
9929 | else | |
9930 | READELF="${ncn_tool_prefix}$2" | |
9931 | fi | |
9932 | fi | |
9933 | ||
9934 | ||
9935 | ||
a0da8069 NN |
9936 | |
9937 | ||
9938 | ||
be01d343 | 9939 | # Target tools. |
c6b750e1 | 9940 | |
81ecdfbb RW |
9941 | # Check whether --with-build-time-tools was given. |
9942 | if test "${with_build_time_tools+set}" = set; then : | |
9943 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9944 | x/*) ;; |
9945 | *) | |
9946 | with_build_time_tools= | |
81ecdfbb RW |
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9948 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9949 | ;; |
9950 | esac | |
859789af | 9951 | else |
2429c060 | 9952 | with_build_time_tools= |
81ecdfbb RW |
9953 | fi |
9954 | ||
859789af | 9955 | |
9a819804 AO |
9956 | |
9957 | ||
9958 | if test -n "$CC_FOR_TARGET"; then | |
9959 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9960 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9961 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9962 | fi | |
9963 | ||
9964 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9965 | for ncn_progname in cc gcc; do | |
9966 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9967 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9969 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9970 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 9971 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9972 | else |
9973 | if test -n "$CC_FOR_TARGET"; then | |
9974 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9975 | else | |
9976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9977 | for as_dir in $PATH | |
9978 | do | |
9979 | IFS=$as_save_IFS | |
9980 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9981 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9983 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9985 | break 2 |
9986 | fi | |
9987 | done | |
81ecdfbb RW |
9988 | done |
9989 | IFS=$as_save_IFS | |
9a819804 AO |
9990 | |
9991 | fi | |
9992 | fi | |
9993 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9994 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9996 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9997 | else |
81ecdfbb RW |
9998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9999 | $as_echo "no" >&6; } | |
9a819804 AO |
10000 | fi |
10001 | ||
81ecdfbb | 10002 | |
9a819804 AO |
10003 | done |
10004 | fi | |
10005 | ||
10006 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10007 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10009 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10010 | if test -x $with_build_time_tools/${ncn_progname}; then |
10011 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10013 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10014 | break |
2429c060 | 10015 | else |
81ecdfbb RW |
10016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10017 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10018 | fi |
10019 | done | |
55db4b87 PB |
10020 | fi |
10021 | ||
2429c060 PB |
10022 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10023 | for ncn_progname in cc gcc; do | |
10024 | if test -n "$ncn_target_tool_prefix"; then | |
10025 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10026 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10028 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10029 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10030 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10031 | else |
10032 | if test -n "$CC_FOR_TARGET"; then | |
10033 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10034 | else | |
c6b750e1 DJ |
10035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10036 | for as_dir in $PATH | |
10037 | do | |
10038 | IFS=$as_save_IFS | |
10039 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10040 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10042 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10044 | break 2 |
10045 | fi | |
10046 | done | |
81ecdfbb RW |
10047 | done |
10048 | IFS=$as_save_IFS | |
c6b750e1 | 10049 | |
55db4b87 PB |
10050 | fi |
10051 | fi | |
c6b750e1 | 10052 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10053 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10055 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10056 | else |
81ecdfbb RW |
10057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10058 | $as_echo "no" >&6; } | |
55db4b87 PB |
10059 | fi |
10060 | ||
81ecdfbb | 10061 | |
2429c060 PB |
10062 | fi |
10063 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10064 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10065 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10067 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10068 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10069 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10070 | else |
05cbd757 PB |
10071 | if test -n "$CC_FOR_TARGET"; then |
10072 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10073 | else |
c6b750e1 DJ |
10074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10075 | for as_dir in $PATH | |
10076 | do | |
10077 | IFS=$as_save_IFS | |
10078 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10079 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10081 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10083 | break 2 |
10084 | fi | |
10085 | done | |
81ecdfbb RW |
10086 | done |
10087 | IFS=$as_save_IFS | |
c6b750e1 | 10088 | |
55db4b87 PB |
10089 | fi |
10090 | fi | |
c6b750e1 | 10091 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10092 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10094 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10095 | else |
81ecdfbb RW |
10096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10097 | $as_echo "no" >&6; } | |
55db4b87 | 10098 | fi |
c6b750e1 | 10099 | |
81ecdfbb | 10100 | |
2429c060 PB |
10101 | fi |
10102 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10103 | done | |
10104 | fi | |
c6b750e1 | 10105 | |
05cbd757 PB |
10106 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10107 | set dummy cc gcc | |
10108 | if test $build = $target ; then | |
10109 | CC_FOR_TARGET="$2" | |
55db4b87 | 10110 | else |
05cbd757 | 10111 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10112 | fi |
d3f5afc4 MS |
10113 | else |
10114 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10115 | fi |
10116 | ||
9a819804 AO |
10117 | |
10118 | ||
10119 | if test -n "$CXX_FOR_TARGET"; then | |
10120 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10121 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10122 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10123 | fi | |
10124 | ||
10125 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10126 | for ncn_progname in c++ g++ cxx gxx; do | |
10127 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10128 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10130 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10131 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10132 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10133 | else |
10134 | if test -n "$CXX_FOR_TARGET"; then | |
10135 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10136 | else | |
10137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10138 | for as_dir in $PATH | |
10139 | do | |
10140 | IFS=$as_save_IFS | |
10141 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10142 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10144 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10146 | break 2 |
10147 | fi | |
10148 | done | |
81ecdfbb RW |
10149 | done |
10150 | IFS=$as_save_IFS | |
9a819804 AO |
10151 | |
10152 | fi | |
10153 | fi | |
10154 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10155 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10157 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10158 | else |
81ecdfbb RW |
10159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10160 | $as_echo "no" >&6; } | |
9a819804 AO |
10161 | fi |
10162 | ||
81ecdfbb | 10163 | |
9a819804 AO |
10164 | done |
10165 | fi | |
10166 | ||
10167 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10168 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10170 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10171 | if test -x $with_build_time_tools/${ncn_progname}; then |
10172 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10174 | $as_echo "yes" >&6; } | |
2429c060 PB |
10175 | break |
10176 | else | |
81ecdfbb RW |
10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10178 | $as_echo "no" >&6; } | |
2429c060 PB |
10179 | fi |
10180 | done | |
10181 | fi | |
10182 | ||
10183 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10184 | for ncn_progname in c++ g++ cxx gxx; do | |
10185 | if test -n "$ncn_target_tool_prefix"; then | |
10186 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10187 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10189 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10190 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10191 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10192 | else |
10193 | if test -n "$CXX_FOR_TARGET"; then | |
10194 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10195 | else | |
c6b750e1 DJ |
10196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10197 | for as_dir in $PATH | |
10198 | do | |
10199 | IFS=$as_save_IFS | |
10200 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10201 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10203 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10205 | break 2 |
10206 | fi | |
10207 | done | |
81ecdfbb RW |
10208 | done |
10209 | IFS=$as_save_IFS | |
c6b750e1 | 10210 | |
55db4b87 PB |
10211 | fi |
10212 | fi | |
c6b750e1 | 10213 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10214 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10216 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10217 | else |
81ecdfbb RW |
10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10219 | $as_echo "no" >&6; } | |
55db4b87 PB |
10220 | fi |
10221 | ||
81ecdfbb | 10222 | |
2429c060 PB |
10223 | fi |
10224 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10225 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10226 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10228 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10229 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10230 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10231 | else |
05cbd757 PB |
10232 | if test -n "$CXX_FOR_TARGET"; then |
10233 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10234 | else |
c6b750e1 DJ |
10235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10236 | for as_dir in $PATH | |
10237 | do | |
10238 | IFS=$as_save_IFS | |
10239 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10240 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10242 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10244 | break 2 |
10245 | fi | |
10246 | done | |
81ecdfbb RW |
10247 | done |
10248 | IFS=$as_save_IFS | |
c6b750e1 | 10249 | |
55db4b87 PB |
10250 | fi |
10251 | fi | |
c6b750e1 | 10252 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10253 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10255 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10256 | else |
81ecdfbb RW |
10257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10258 | $as_echo "no" >&6; } | |
55db4b87 | 10259 | fi |
c6b750e1 | 10260 | |
81ecdfbb | 10261 | |
2429c060 PB |
10262 | fi |
10263 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10264 | done | |
10265 | fi | |
c6b750e1 | 10266 | |
05cbd757 PB |
10267 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10268 | set dummy c++ g++ cxx gxx | |
10269 | if test $build = $target ; then | |
10270 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10271 | else |
05cbd757 | 10272 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10273 | fi |
d3f5afc4 MS |
10274 | else |
10275 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10276 | fi |
10277 | ||
9a819804 AO |
10278 | |
10279 | ||
10280 | if test -n "$GCC_FOR_TARGET"; then | |
10281 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10282 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10283 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10284 | fi | |
10285 | ||
10286 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10287 | for ncn_progname in gcc; do | |
10288 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10289 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10291 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10292 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10293 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10294 | else |
10295 | if test -n "$GCC_FOR_TARGET"; then | |
10296 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10297 | else | |
10298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10299 | for as_dir in $PATH | |
10300 | do | |
10301 | IFS=$as_save_IFS | |
10302 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10303 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10304 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10305 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10307 | break 2 |
10308 | fi | |
10309 | done | |
81ecdfbb RW |
10310 | done |
10311 | IFS=$as_save_IFS | |
9a819804 AO |
10312 | |
10313 | fi | |
10314 | fi | |
10315 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10316 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10318 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10319 | else |
81ecdfbb RW |
10320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10321 | $as_echo "no" >&6; } | |
9a819804 AO |
10322 | fi |
10323 | ||
81ecdfbb | 10324 | |
9a819804 AO |
10325 | done |
10326 | fi | |
10327 | ||
10328 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10329 | for ncn_progname in gcc; do |
81ecdfbb RW |
10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10331 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10332 | if test -x $with_build_time_tools/${ncn_progname}; then |
10333 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10335 | $as_echo "yes" >&6; } | |
2429c060 PB |
10336 | break |
10337 | else | |
81ecdfbb RW |
10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10339 | $as_echo "no" >&6; } | |
2429c060 PB |
10340 | fi |
10341 | done | |
10342 | fi | |
10343 | ||
10344 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10345 | for ncn_progname in gcc; do | |
10346 | if test -n "$ncn_target_tool_prefix"; then | |
10347 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10348 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10350 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10351 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10352 | $as_echo_n "(cached) " >&6 |
859789af | 10353 | else |
2429c060 PB |
10354 | if test -n "$GCC_FOR_TARGET"; then |
10355 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10356 | else |
c6b750e1 DJ |
10357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10358 | for as_dir in $PATH | |
10359 | do | |
10360 | IFS=$as_save_IFS | |
10361 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10362 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10364 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10366 | break 2 |
10367 | fi | |
10368 | done | |
81ecdfbb RW |
10369 | done |
10370 | IFS=$as_save_IFS | |
c6b750e1 | 10371 | |
55db4b87 PB |
10372 | fi |
10373 | fi | |
c6b750e1 | 10374 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10375 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10377 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10378 | else |
81ecdfbb RW |
10379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10380 | $as_echo "no" >&6; } | |
55db4b87 PB |
10381 | fi |
10382 | ||
81ecdfbb | 10383 | |
2429c060 PB |
10384 | fi |
10385 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10386 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10387 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10389 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10390 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10391 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10392 | else |
05cbd757 PB |
10393 | if test -n "$GCC_FOR_TARGET"; then |
10394 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10395 | else |
c6b750e1 DJ |
10396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10397 | for as_dir in $PATH | |
10398 | do | |
10399 | IFS=$as_save_IFS | |
10400 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10401 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10402 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10403 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10405 | break 2 |
10406 | fi | |
10407 | done | |
81ecdfbb RW |
10408 | done |
10409 | IFS=$as_save_IFS | |
c6b750e1 | 10410 | |
55db4b87 PB |
10411 | fi |
10412 | fi | |
c6b750e1 | 10413 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10414 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10416 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10417 | else |
81ecdfbb RW |
10418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10419 | $as_echo "no" >&6; } | |
55db4b87 | 10420 | fi |
c6b750e1 | 10421 | |
81ecdfbb | 10422 | |
2429c060 PB |
10423 | fi |
10424 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10425 | done | |
10426 | fi | |
c6b750e1 | 10427 | |
05cbd757 PB |
10428 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10429 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10430 | else |
10431 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10432 | fi |
10433 | ||
9a819804 AO |
10434 | |
10435 | ||
9a819804 AO |
10436 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10437 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10438 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10439 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10440 | fi |
10441 | ||
9a819804 AO |
10442 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10443 | for ncn_progname in gfortran; do | |
10444 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10445 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10447 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10448 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10449 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10450 | else |
9a819804 AO |
10451 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10452 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10453 | else |
c6b750e1 DJ |
10454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10455 | for as_dir in $PATH | |
10456 | do | |
10457 | IFS=$as_save_IFS | |
10458 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10459 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10461 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10463 | break 2 |
10464 | fi | |
10465 | done | |
81ecdfbb RW |
10466 | done |
10467 | IFS=$as_save_IFS | |
c6b750e1 | 10468 | |
55db4b87 PB |
10469 | fi |
10470 | fi | |
9a819804 AO |
10471 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10472 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10474 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10475 | else |
81ecdfbb RW |
10476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10477 | $as_echo "no" >&6; } | |
55db4b87 | 10478 | fi |
c6b750e1 | 10479 | |
81ecdfbb | 10480 | |
2429c060 PB |
10481 | done |
10482 | fi | |
c6b750e1 | 10483 | |
9a819804 | 10484 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10485 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10487 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10488 | if test -x $with_build_time_tools/${ncn_progname}; then |
10489 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10491 | $as_echo "yes" >&6; } | |
2429c060 PB |
10492 | break |
10493 | else | |
81ecdfbb RW |
10494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10495 | $as_echo "no" >&6; } | |
2429c060 PB |
10496 | fi |
10497 | done | |
10498 | fi | |
10499 | ||
10500 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10501 | for ncn_progname in gfortran; do | |
10502 | if test -n "$ncn_target_tool_prefix"; then | |
10503 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10504 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10506 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10507 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10508 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10509 | else |
10510 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10511 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10512 | else | |
c6b750e1 DJ |
10513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10514 | for as_dir in $PATH | |
10515 | do | |
10516 | IFS=$as_save_IFS | |
10517 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10518 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10519 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10520 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10521 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10522 | break 2 |
10523 | fi | |
10524 | done | |
81ecdfbb RW |
10525 | done |
10526 | IFS=$as_save_IFS | |
c6b750e1 | 10527 | |
55db4b87 PB |
10528 | fi |
10529 | fi | |
c6b750e1 | 10530 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10531 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10533 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10534 | else |
81ecdfbb RW |
10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10536 | $as_echo "no" >&6; } | |
55db4b87 PB |
10537 | fi |
10538 | ||
81ecdfbb | 10539 | |
2429c060 PB |
10540 | fi |
10541 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10542 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10543 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10545 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10546 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10547 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10548 | else |
05cbd757 | 10549 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10550 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10551 | else | |
10552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10553 | for as_dir in $PATH | |
10554 | do | |
10555 | IFS=$as_save_IFS | |
10556 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10557 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10559 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10561 | break 2 |
10562 | fi | |
10563 | done | |
81ecdfbb RW |
10564 | done |
10565 | IFS=$as_save_IFS | |
c6b750e1 | 10566 | |
55db4b87 PB |
10567 | fi |
10568 | fi | |
c6b750e1 | 10569 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10570 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10572 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10573 | else |
81ecdfbb RW |
10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10575 | $as_echo "no" >&6; } | |
55db4b87 | 10576 | fi |
c6b750e1 | 10577 | |
81ecdfbb | 10578 | |
2429c060 PB |
10579 | fi |
10580 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10581 | done | |
10582 | fi | |
c6b750e1 | 10583 | |
05cbd757 PB |
10584 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10585 | set dummy gfortran | |
10586 | if test $build = $target ; then | |
10587 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10588 | else |
05cbd757 | 10589 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10590 | fi |
d3f5afc4 MS |
10591 | else |
10592 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10593 | fi |
10594 | ||
2429c060 PB |
10595 | |
10596 | ||
e552509b ILT |
10597 | if test -n "$GOC_FOR_TARGET"; then |
10598 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10599 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10600 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10601 | fi | |
10602 | ||
10603 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10604 | for ncn_progname in gccgo; do | |
10605 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10606 | set dummy ${ncn_progname}; ac_word=$2 | |
10607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10608 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10609 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10610 | $as_echo_n "(cached) " >&6 |
10611 | else | |
10612 | if test -n "$GOC_FOR_TARGET"; then | |
10613 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10614 | else | |
10615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10616 | for as_dir in $PATH | |
10617 | do | |
10618 | IFS=$as_save_IFS | |
10619 | test -z "$as_dir" && as_dir=. | |
10620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10622 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10624 | break 2 | |
10625 | fi | |
10626 | done | |
10627 | done | |
10628 | IFS=$as_save_IFS | |
10629 | ||
10630 | fi | |
10631 | fi | |
10632 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10633 | if test -n "$GOC_FOR_TARGET"; then | |
10634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10635 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10636 | else | |
10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10638 | $as_echo "no" >&6; } | |
10639 | fi | |
10640 | ||
10641 | ||
10642 | done | |
10643 | fi | |
10644 | ||
10645 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10646 | for ncn_progname in gccgo; do | |
10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10648 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10649 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10650 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10652 | $as_echo "yes" >&6; } | |
10653 | break | |
10654 | else | |
10655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10656 | $as_echo "no" >&6; } | |
10657 | fi | |
10658 | done | |
10659 | fi | |
10660 | ||
10661 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10662 | for ncn_progname in gccgo; do | |
10663 | if test -n "$ncn_target_tool_prefix"; then | |
10664 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10665 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10667 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10668 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10669 | $as_echo_n "(cached) " >&6 |
10670 | else | |
10671 | if test -n "$GOC_FOR_TARGET"; then | |
10672 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10673 | else | |
10674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10675 | for as_dir in $PATH | |
10676 | do | |
10677 | IFS=$as_save_IFS | |
10678 | test -z "$as_dir" && as_dir=. | |
10679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10681 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10683 | break 2 | |
10684 | fi | |
10685 | done | |
10686 | done | |
10687 | IFS=$as_save_IFS | |
10688 | ||
10689 | fi | |
10690 | fi | |
10691 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10692 | if test -n "$GOC_FOR_TARGET"; then | |
10693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10694 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10695 | else | |
10696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10697 | $as_echo "no" >&6; } | |
10698 | fi | |
10699 | ||
10700 | ||
10701 | fi | |
10702 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10703 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10704 | set dummy ${ncn_progname}; ac_word=$2 | |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10706 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10707 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10708 | $as_echo_n "(cached) " >&6 |
10709 | else | |
10710 | if test -n "$GOC_FOR_TARGET"; then | |
10711 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10712 | else | |
10713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10714 | for as_dir in $PATH | |
10715 | do | |
10716 | IFS=$as_save_IFS | |
10717 | test -z "$as_dir" && as_dir=. | |
10718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10720 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10722 | break 2 | |
10723 | fi | |
10724 | done | |
10725 | done | |
10726 | IFS=$as_save_IFS | |
10727 | ||
10728 | fi | |
10729 | fi | |
10730 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10731 | if test -n "$GOC_FOR_TARGET"; then | |
10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10733 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10734 | else | |
10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10736 | $as_echo "no" >&6; } | |
10737 | fi | |
10738 | ||
10739 | ||
10740 | fi | |
10741 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10742 | done | |
10743 | fi | |
10744 | ||
10745 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10746 | set dummy gccgo | |
10747 | if test $build = $target ; then | |
10748 | GOC_FOR_TARGET="$2" | |
10749 | else | |
10750 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10751 | fi | |
10752 | else | |
10753 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10754 | fi | |
10755 | ||
10756 | ||
10757 | ||
2429c060 PB |
10758 | cat > conftest.c << \EOF |
10759 | #ifdef __GNUC__ | |
10760 | gcc_yay; | |
10761 | #endif | |
10762 | EOF | |
10763 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10764 | have_gcc_for_target=yes | |
859789af | 10765 | else |
2429c060 PB |
10766 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10767 | have_gcc_for_target=no | |
859789af | 10768 | fi |
2429c060 PB |
10769 | rm conftest.c |
10770 | ||
10771 | ||
10772 | ||
859789af | 10773 | |
2429c060 PB |
10774 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10775 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10777 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10778 | if test -x $with_build_time_tools/ar; then |
10779 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10780 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10782 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10783 | else |
81ecdfbb RW |
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10785 | $as_echo "no" >&6; } | |
3a35eeb3 | 10786 | fi |
2429c060 PB |
10787 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10788 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10789 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10790 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10791 | fi |
2429c060 | 10792 | fi |
c6b750e1 | 10793 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10794 | # Extract the first word of "ar", so it can be a program name with args. |
10795 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10797 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10798 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10799 | $as_echo_n "(cached) " >&6 |
859789af | 10800 | else |
c6b750e1 DJ |
10801 | case $AR_FOR_TARGET in |
10802 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10803 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10804 | ;; | |
2429c060 | 10805 | *) |
c6b750e1 DJ |
10806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10807 | for as_dir in $gcc_cv_tool_dirs | |
10808 | do | |
10809 | IFS=$as_save_IFS | |
10810 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10811 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10812 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10813 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10815 | break 2 |
10816 | fi | |
10817 | done | |
81ecdfbb RW |
10818 | done |
10819 | IFS=$as_save_IFS | |
c6b750e1 | 10820 | |
2429c060 PB |
10821 | ;; |
10822 | esac | |
859789af | 10823 | fi |
c6b750e1 | 10824 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10825 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10827 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10828 | else |
81ecdfbb RW |
10829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10830 | $as_echo "no" >&6; } | |
859789af | 10831 | fi |
05cbd757 | 10832 | |
81ecdfbb | 10833 | |
2429c060 PB |
10834 | fi |
10835 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10836 | |
10837 | ||
10838 | if test -n "$AR_FOR_TARGET"; then | |
10839 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10840 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10841 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10842 | fi | |
10843 | ||
10844 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10845 | for ncn_progname in ar; do | |
10846 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10847 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10849 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10850 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10851 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10852 | else |
10853 | if test -n "$AR_FOR_TARGET"; then | |
10854 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10855 | else | |
10856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10857 | for as_dir in $PATH | |
10858 | do | |
10859 | IFS=$as_save_IFS | |
10860 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10861 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10863 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10865 | break 2 |
10866 | fi | |
10867 | done | |
81ecdfbb RW |
10868 | done |
10869 | IFS=$as_save_IFS | |
9a819804 AO |
10870 | |
10871 | fi | |
10872 | fi | |
10873 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10874 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10876 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10877 | else |
81ecdfbb RW |
10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10879 | $as_echo "no" >&6; } | |
9a819804 AO |
10880 | fi |
10881 | ||
81ecdfbb | 10882 | |
9a819804 AO |
10883 | done |
10884 | fi | |
10885 | ||
10886 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10887 | for ncn_progname in ar; do |
81ecdfbb RW |
10888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10889 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10890 | if test -x $with_build_time_tools/${ncn_progname}; then |
10891 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10893 | $as_echo "yes" >&6; } | |
2429c060 PB |
10894 | break |
10895 | else | |
81ecdfbb RW |
10896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10897 | $as_echo "no" >&6; } | |
2429c060 PB |
10898 | fi |
10899 | done | |
859789af AC |
10900 | fi |
10901 | ||
2429c060 PB |
10902 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10903 | for ncn_progname in ar; do | |
10904 | if test -n "$ncn_target_tool_prefix"; then | |
10905 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10906 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10908 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10909 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10910 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 10911 | else |
2429c060 PB |
10912 | if test -n "$AR_FOR_TARGET"; then |
10913 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10914 | else |
c6b750e1 DJ |
10915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10916 | for as_dir in $PATH | |
10917 | do | |
10918 | IFS=$as_save_IFS | |
10919 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10920 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10922 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10924 | break 2 |
10925 | fi | |
10926 | done | |
81ecdfbb RW |
10927 | done |
10928 | IFS=$as_save_IFS | |
c6b750e1 | 10929 | |
7e0f7140 GK |
10930 | fi |
10931 | fi | |
c6b750e1 | 10932 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10933 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10935 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10936 | else |
81ecdfbb RW |
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10938 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10939 | fi |
10940 | ||
81ecdfbb | 10941 | |
2429c060 PB |
10942 | fi |
10943 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10944 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10945 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10947 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10948 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10949 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 10950 | else |
2429c060 PB |
10951 | if test -n "$AR_FOR_TARGET"; then |
10952 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10953 | else |
c6b750e1 DJ |
10954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10955 | for as_dir in $PATH | |
10956 | do | |
10957 | IFS=$as_save_IFS | |
10958 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10959 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10960 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10961 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10963 | break 2 |
10964 | fi | |
10965 | done | |
81ecdfbb RW |
10966 | done |
10967 | IFS=$as_save_IFS | |
c6b750e1 | 10968 | |
7e0f7140 GK |
10969 | fi |
10970 | fi | |
c6b750e1 | 10971 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10972 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10974 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10975 | else |
81ecdfbb RW |
10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10977 | $as_echo "no" >&6; } | |
7e0f7140 | 10978 | fi |
c6b750e1 | 10979 | |
81ecdfbb | 10980 | |
2429c060 PB |
10981 | fi |
10982 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10983 | done | |
10984 | fi | |
c6b750e1 | 10985 | |
2429c060 PB |
10986 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10987 | set dummy ar | |
7e0f7140 | 10988 | if test $build = $target ; then |
2429c060 | 10989 | AR_FOR_TARGET="$2" |
7e0f7140 | 10990 | else |
2429c060 | 10991 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 10992 | fi |
d3f5afc4 MS |
10993 | else |
10994 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
10995 | fi |
10996 | ||
3a35eeb3 PB |
10997 | else |
10998 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
10999 | fi |
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11005 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11007 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11008 | if test -x $with_build_time_tools/as; then |
11009 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11010 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11012 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11013 | else |
81ecdfbb RW |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11015 | $as_echo "no" >&6; } | |
3a35eeb3 | 11016 | fi |
2429c060 PB |
11017 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11018 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11019 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11020 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11021 | fi |
11022 | fi | |
c6b750e1 | 11023 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11024 | # Extract the first word of "as", so it can be a program name with args. |
11025 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11027 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11028 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11029 | $as_echo_n "(cached) " >&6 |
2429c060 | 11030 | else |
c6b750e1 DJ |
11031 | case $AS_FOR_TARGET in |
11032 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11033 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11034 | ;; | |
2429c060 | 11035 | *) |
c6b750e1 DJ |
11036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11037 | for as_dir in $gcc_cv_tool_dirs | |
11038 | do | |
11039 | IFS=$as_save_IFS | |
11040 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11041 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11043 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11045 | break 2 |
11046 | fi | |
11047 | done | |
81ecdfbb RW |
11048 | done |
11049 | IFS=$as_save_IFS | |
c6b750e1 | 11050 | |
2429c060 PB |
11051 | ;; |
11052 | esac | |
11053 | fi | |
c6b750e1 | 11054 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11055 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11057 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11058 | else |
81ecdfbb RW |
11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11060 | $as_echo "no" >&6; } | |
2429c060 PB |
11061 | fi |
11062 | ||
81ecdfbb | 11063 | |
2429c060 PB |
11064 | fi |
11065 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11066 | |
11067 | ||
11068 | if test -n "$AS_FOR_TARGET"; then | |
11069 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11070 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11071 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11072 | fi | |
11073 | ||
11074 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11075 | for ncn_progname in as; do | |
11076 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11077 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11079 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11080 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11081 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11082 | else |
11083 | if test -n "$AS_FOR_TARGET"; then | |
11084 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11085 | else | |
11086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11087 | for as_dir in $PATH | |
11088 | do | |
11089 | IFS=$as_save_IFS | |
11090 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11091 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11092 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11093 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11095 | break 2 |
11096 | fi | |
11097 | done | |
81ecdfbb RW |
11098 | done |
11099 | IFS=$as_save_IFS | |
9a819804 AO |
11100 | |
11101 | fi | |
11102 | fi | |
11103 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11104 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11106 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11107 | else |
81ecdfbb RW |
11108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11109 | $as_echo "no" >&6; } | |
9a819804 AO |
11110 | fi |
11111 | ||
81ecdfbb | 11112 | |
9a819804 AO |
11113 | done |
11114 | fi | |
11115 | ||
11116 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11117 | for ncn_progname in as; do |
81ecdfbb RW |
11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11119 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11120 | if test -x $with_build_time_tools/${ncn_progname}; then |
11121 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11123 | $as_echo "yes" >&6; } | |
2429c060 PB |
11124 | break |
11125 | else | |
81ecdfbb RW |
11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11127 | $as_echo "no" >&6; } | |
2429c060 PB |
11128 | fi |
11129 | done | |
11130 | fi | |
11131 | ||
11132 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11133 | for ncn_progname in as; do | |
11134 | if test -n "$ncn_target_tool_prefix"; then | |
11135 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11136 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11138 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11139 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11140 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11141 | else |
11142 | if test -n "$AS_FOR_TARGET"; then | |
11143 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11144 | else | |
c6b750e1 DJ |
11145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11146 | for as_dir in $PATH | |
11147 | do | |
11148 | IFS=$as_save_IFS | |
11149 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11150 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11151 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11152 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11154 | break 2 |
11155 | fi | |
11156 | done | |
81ecdfbb RW |
11157 | done |
11158 | IFS=$as_save_IFS | |
c6b750e1 | 11159 | |
2429c060 PB |
11160 | fi |
11161 | fi | |
c6b750e1 | 11162 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11163 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11165 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11166 | else |
81ecdfbb RW |
11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11168 | $as_echo "no" >&6; } | |
2429c060 PB |
11169 | fi |
11170 | ||
81ecdfbb | 11171 | |
2429c060 PB |
11172 | fi |
11173 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11174 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11175 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11177 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11178 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11179 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11180 | else |
11181 | if test -n "$AS_FOR_TARGET"; then | |
11182 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11183 | else | |
c6b750e1 DJ |
11184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11185 | for as_dir in $PATH | |
11186 | do | |
11187 | IFS=$as_save_IFS | |
11188 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11189 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11191 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11193 | break 2 |
11194 | fi | |
11195 | done | |
81ecdfbb RW |
11196 | done |
11197 | IFS=$as_save_IFS | |
c6b750e1 | 11198 | |
2429c060 PB |
11199 | fi |
11200 | fi | |
c6b750e1 | 11201 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11202 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11204 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11205 | else |
81ecdfbb RW |
11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11207 | $as_echo "no" >&6; } | |
2429c060 | 11208 | fi |
c6b750e1 | 11209 | |
81ecdfbb | 11210 | |
2429c060 PB |
11211 | fi |
11212 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11213 | done | |
11214 | fi | |
c6b750e1 | 11215 | |
2429c060 PB |
11216 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11217 | set dummy as | |
11218 | if test $build = $target ; then | |
11219 | AS_FOR_TARGET="$2" | |
11220 | else | |
11221 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11222 | fi | |
d3f5afc4 MS |
11223 | else |
11224 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11225 | fi |
11226 | ||
3a35eeb3 PB |
11227 | else |
11228 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11229 | fi |
11230 | ||
11231 | ||
11232 | ||
11233 | ||
11234 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11235 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11237 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11238 | if test -x $with_build_time_tools/dlltool; then |
11239 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11240 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11242 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11243 | else |
81ecdfbb RW |
11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11245 | $as_echo "no" >&6; } | |
3a35eeb3 | 11246 | fi |
2429c060 PB |
11247 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11248 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11249 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11250 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11251 | fi |
11252 | fi | |
c6b750e1 | 11253 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11254 | # Extract the first word of "dlltool", so it can be a program name with args. |
11255 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11257 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11258 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11259 | $as_echo_n "(cached) " >&6 |
2429c060 | 11260 | else |
c6b750e1 DJ |
11261 | case $DLLTOOL_FOR_TARGET in |
11262 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11263 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11264 | ;; | |
2429c060 | 11265 | *) |
c6b750e1 DJ |
11266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11267 | for as_dir in $gcc_cv_tool_dirs | |
11268 | do | |
11269 | IFS=$as_save_IFS | |
11270 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11271 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11272 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11273 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11275 | break 2 |
11276 | fi | |
11277 | done | |
81ecdfbb RW |
11278 | done |
11279 | IFS=$as_save_IFS | |
c6b750e1 | 11280 | |
2429c060 PB |
11281 | ;; |
11282 | esac | |
11283 | fi | |
c6b750e1 | 11284 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11285 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11287 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11288 | else |
81ecdfbb RW |
11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11290 | $as_echo "no" >&6; } | |
2429c060 PB |
11291 | fi |
11292 | ||
81ecdfbb | 11293 | |
2429c060 PB |
11294 | fi |
11295 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11296 | |
11297 | ||
11298 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11299 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11300 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11301 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11302 | fi | |
11303 | ||
11304 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11305 | for ncn_progname in dlltool; do | |
11306 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11307 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11309 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11310 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11311 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11312 | else |
11313 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11314 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11315 | else | |
11316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11317 | for as_dir in $PATH | |
11318 | do | |
11319 | IFS=$as_save_IFS | |
11320 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11321 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11322 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11323 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11325 | break 2 |
11326 | fi | |
11327 | done | |
81ecdfbb RW |
11328 | done |
11329 | IFS=$as_save_IFS | |
9a819804 AO |
11330 | |
11331 | fi | |
11332 | fi | |
11333 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11334 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11336 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11337 | else |
81ecdfbb RW |
11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11339 | $as_echo "no" >&6; } | |
9a819804 AO |
11340 | fi |
11341 | ||
81ecdfbb | 11342 | |
9a819804 AO |
11343 | done |
11344 | fi | |
11345 | ||
11346 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11347 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11349 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11350 | if test -x $with_build_time_tools/${ncn_progname}; then |
11351 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11353 | $as_echo "yes" >&6; } | |
2429c060 PB |
11354 | break |
11355 | else | |
81ecdfbb RW |
11356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11357 | $as_echo "no" >&6; } | |
2429c060 PB |
11358 | fi |
11359 | done | |
11360 | fi | |
11361 | ||
11362 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11363 | for ncn_progname in dlltool; do | |
11364 | if test -n "$ncn_target_tool_prefix"; then | |
11365 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11366 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11368 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11369 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11370 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11371 | else |
11372 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11373 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11374 | else | |
c6b750e1 DJ |
11375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11376 | for as_dir in $PATH | |
11377 | do | |
11378 | IFS=$as_save_IFS | |
11379 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11380 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11382 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11384 | break 2 |
11385 | fi | |
11386 | done | |
81ecdfbb RW |
11387 | done |
11388 | IFS=$as_save_IFS | |
c6b750e1 | 11389 | |
2429c060 PB |
11390 | fi |
11391 | fi | |
c6b750e1 | 11392 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11393 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11395 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11396 | else |
81ecdfbb RW |
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11398 | $as_echo "no" >&6; } | |
2429c060 PB |
11399 | fi |
11400 | ||
81ecdfbb | 11401 | |
2429c060 PB |
11402 | fi |
11403 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11404 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11405 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11407 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11408 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11409 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11410 | else |
11411 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11412 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11413 | else | |
c6b750e1 DJ |
11414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11415 | for as_dir in $PATH | |
11416 | do | |
11417 | IFS=$as_save_IFS | |
11418 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11419 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11421 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11423 | break 2 |
11424 | fi | |
11425 | done | |
81ecdfbb RW |
11426 | done |
11427 | IFS=$as_save_IFS | |
c6b750e1 | 11428 | |
2429c060 PB |
11429 | fi |
11430 | fi | |
c6b750e1 | 11431 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11432 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11434 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11435 | else |
81ecdfbb RW |
11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11437 | $as_echo "no" >&6; } | |
2429c060 | 11438 | fi |
c6b750e1 | 11439 | |
81ecdfbb | 11440 | |
2429c060 PB |
11441 | fi |
11442 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11443 | done | |
11444 | fi | |
c6b750e1 | 11445 | |
2429c060 PB |
11446 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11447 | set dummy dlltool | |
11448 | if test $build = $target ; then | |
11449 | DLLTOOL_FOR_TARGET="$2" | |
11450 | else | |
11451 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11452 | fi | |
d3f5afc4 MS |
11453 | else |
11454 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11455 | fi |
11456 | ||
3a35eeb3 PB |
11457 | else |
11458 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11459 | fi |
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11465 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11467 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11468 | if test -x $with_build_time_tools/ld; then |
11469 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11470 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11472 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11473 | else |
81ecdfbb RW |
11474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11475 | $as_echo "no" >&6; } | |
3a35eeb3 | 11476 | fi |
2429c060 PB |
11477 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11478 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11479 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11480 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11481 | fi |
11482 | fi | |
c6b750e1 | 11483 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11484 | # Extract the first word of "ld", so it can be a program name with args. |
11485 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11487 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11488 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11489 | $as_echo_n "(cached) " >&6 |
2429c060 | 11490 | else |
c6b750e1 DJ |
11491 | case $LD_FOR_TARGET in |
11492 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11493 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11494 | ;; | |
2429c060 | 11495 | *) |
c6b750e1 DJ |
11496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11497 | for as_dir in $gcc_cv_tool_dirs | |
11498 | do | |
11499 | IFS=$as_save_IFS | |
11500 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11501 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11502 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11503 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11505 | break 2 |
11506 | fi | |
11507 | done | |
81ecdfbb RW |
11508 | done |
11509 | IFS=$as_save_IFS | |
c6b750e1 | 11510 | |
2429c060 PB |
11511 | ;; |
11512 | esac | |
11513 | fi | |
c6b750e1 | 11514 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11515 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11517 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11518 | else |
81ecdfbb RW |
11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11520 | $as_echo "no" >&6; } | |
2429c060 PB |
11521 | fi |
11522 | ||
81ecdfbb | 11523 | |
2429c060 PB |
11524 | fi |
11525 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11526 | |
11527 | ||
11528 | if test -n "$LD_FOR_TARGET"; then | |
11529 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11530 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11531 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11532 | fi | |
11533 | ||
11534 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11535 | for ncn_progname in ld; do | |
11536 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11537 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11539 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11540 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11541 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11542 | else |
11543 | if test -n "$LD_FOR_TARGET"; then | |
11544 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11545 | else | |
11546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11547 | for as_dir in $PATH | |
11548 | do | |
11549 | IFS=$as_save_IFS | |
11550 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11551 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11553 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11555 | break 2 |
11556 | fi | |
11557 | done | |
81ecdfbb RW |
11558 | done |
11559 | IFS=$as_save_IFS | |
9a819804 AO |
11560 | |
11561 | fi | |
11562 | fi | |
11563 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11564 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11566 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11567 | else |
81ecdfbb RW |
11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11569 | $as_echo "no" >&6; } | |
9a819804 AO |
11570 | fi |
11571 | ||
81ecdfbb | 11572 | |
9a819804 AO |
11573 | done |
11574 | fi | |
11575 | ||
11576 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11577 | for ncn_progname in ld; do |
81ecdfbb RW |
11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11579 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11580 | if test -x $with_build_time_tools/${ncn_progname}; then |
11581 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11583 | $as_echo "yes" >&6; } | |
2429c060 PB |
11584 | break |
11585 | else | |
81ecdfbb RW |
11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11587 | $as_echo "no" >&6; } | |
2429c060 PB |
11588 | fi |
11589 | done | |
11590 | fi | |
11591 | ||
11592 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11593 | for ncn_progname in ld; do | |
11594 | if test -n "$ncn_target_tool_prefix"; then | |
11595 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11596 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11598 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11599 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11600 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11601 | else |
11602 | if test -n "$LD_FOR_TARGET"; then | |
11603 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11604 | else | |
c6b750e1 DJ |
11605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11606 | for as_dir in $PATH | |
11607 | do | |
11608 | IFS=$as_save_IFS | |
11609 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11610 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11611 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11612 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11614 | break 2 |
11615 | fi | |
11616 | done | |
81ecdfbb RW |
11617 | done |
11618 | IFS=$as_save_IFS | |
c6b750e1 | 11619 | |
2429c060 PB |
11620 | fi |
11621 | fi | |
c6b750e1 | 11622 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11623 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11625 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11626 | else |
81ecdfbb RW |
11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11628 | $as_echo "no" >&6; } | |
2429c060 PB |
11629 | fi |
11630 | ||
81ecdfbb | 11631 | |
2429c060 PB |
11632 | fi |
11633 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11634 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11635 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11637 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11638 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11639 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11640 | else |
11641 | if test -n "$LD_FOR_TARGET"; then | |
11642 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11643 | else | |
c6b750e1 DJ |
11644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11645 | for as_dir in $PATH | |
11646 | do | |
11647 | IFS=$as_save_IFS | |
11648 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11649 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11651 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11653 | break 2 |
11654 | fi | |
11655 | done | |
81ecdfbb RW |
11656 | done |
11657 | IFS=$as_save_IFS | |
c6b750e1 | 11658 | |
2429c060 PB |
11659 | fi |
11660 | fi | |
c6b750e1 | 11661 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11662 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11664 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11665 | else |
81ecdfbb RW |
11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11667 | $as_echo "no" >&6; } | |
2429c060 | 11668 | fi |
c6b750e1 | 11669 | |
81ecdfbb | 11670 | |
2429c060 PB |
11671 | fi |
11672 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11673 | done | |
11674 | fi | |
c6b750e1 | 11675 | |
2429c060 PB |
11676 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11677 | set dummy ld | |
11678 | if test $build = $target ; then | |
11679 | LD_FOR_TARGET="$2" | |
11680 | else | |
11681 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11682 | fi | |
d3f5afc4 MS |
11683 | else |
11684 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11685 | fi |
11686 | ||
3a35eeb3 PB |
11687 | else |
11688 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11689 | fi |
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11695 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11697 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11698 | if test -x $with_build_time_tools/lipo; then |
11699 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11700 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11702 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11703 | else |
81ecdfbb RW |
11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11705 | $as_echo "no" >&6; } | |
3a35eeb3 | 11706 | fi |
2429c060 PB |
11707 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11708 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11709 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11710 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11711 | fi |
11712 | fi | |
9a819804 AO |
11713 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11714 | # Extract the first word of "lipo", so it can be a program name with args. | |
11715 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11717 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11718 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11719 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11720 | else |
11721 | case $LIPO_FOR_TARGET in | |
11722 | [\\/]* | ?:[\\/]*) | |
11723 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11724 | ;; | |
11725 | *) | |
11726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11727 | for as_dir in $gcc_cv_tool_dirs | |
11728 | do | |
11729 | IFS=$as_save_IFS | |
11730 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11731 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11733 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11735 | break 2 |
11736 | fi | |
11737 | done | |
81ecdfbb RW |
11738 | done |
11739 | IFS=$as_save_IFS | |
9a819804 AO |
11740 | |
11741 | ;; | |
11742 | esac | |
11743 | fi | |
11744 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11745 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11747 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11748 | else |
81ecdfbb RW |
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11750 | $as_echo "no" >&6; } | |
9a819804 AO |
11751 | fi |
11752 | ||
81ecdfbb | 11753 | |
9a819804 AO |
11754 | fi |
11755 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11756 | ||
11757 | ||
11758 | if test -n "$LIPO_FOR_TARGET"; then | |
11759 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11760 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11761 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11762 | fi | |
11763 | ||
11764 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11765 | for ncn_progname in lipo; do | |
11766 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11767 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11769 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11770 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11771 | $as_echo_n "(cached) " >&6 |
2429c060 | 11772 | else |
9a819804 AO |
11773 | if test -n "$LIPO_FOR_TARGET"; then |
11774 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11775 | else | |
11776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11777 | for as_dir in $PATH | |
c6b750e1 DJ |
11778 | do |
11779 | IFS=$as_save_IFS | |
11780 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11781 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11783 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11785 | break 2 |
11786 | fi | |
11787 | done | |
81ecdfbb RW |
11788 | done |
11789 | IFS=$as_save_IFS | |
c6b750e1 | 11790 | |
2429c060 | 11791 | fi |
9a819804 AO |
11792 | fi |
11793 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11794 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11796 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11797 | else |
81ecdfbb RW |
11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11799 | $as_echo "no" >&6; } | |
2429c060 PB |
11800 | fi |
11801 | ||
81ecdfbb | 11802 | |
9a819804 | 11803 | done |
2429c060 | 11804 | fi |
9a819804 AO |
11805 | |
11806 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11807 | for ncn_progname in lipo; do |
81ecdfbb RW |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11809 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11810 | if test -x $with_build_time_tools/${ncn_progname}; then |
11811 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11813 | $as_echo "yes" >&6; } | |
2429c060 PB |
11814 | break |
11815 | else | |
81ecdfbb RW |
11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11817 | $as_echo "no" >&6; } | |
2429c060 PB |
11818 | fi |
11819 | done | |
11820 | fi | |
11821 | ||
11822 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11823 | for ncn_progname in lipo; do | |
11824 | if test -n "$ncn_target_tool_prefix"; then | |
11825 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11826 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11828 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11829 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11830 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11831 | else |
11832 | if test -n "$LIPO_FOR_TARGET"; then | |
11833 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11834 | else | |
c6b750e1 DJ |
11835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11836 | for as_dir in $PATH | |
11837 | do | |
11838 | IFS=$as_save_IFS | |
11839 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11840 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11841 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11842 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11844 | break 2 |
11845 | fi | |
11846 | done | |
81ecdfbb RW |
11847 | done |
11848 | IFS=$as_save_IFS | |
c6b750e1 | 11849 | |
2429c060 PB |
11850 | fi |
11851 | fi | |
c6b750e1 | 11852 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11853 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11855 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11856 | else |
81ecdfbb RW |
11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11858 | $as_echo "no" >&6; } | |
2429c060 PB |
11859 | fi |
11860 | ||
81ecdfbb | 11861 | |
2429c060 PB |
11862 | fi |
11863 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11864 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11865 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11867 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11868 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11869 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11870 | else |
11871 | if test -n "$LIPO_FOR_TARGET"; then | |
11872 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11873 | else | |
c6b750e1 DJ |
11874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11875 | for as_dir in $PATH | |
11876 | do | |
11877 | IFS=$as_save_IFS | |
11878 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11879 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11880 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11881 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11883 | break 2 |
11884 | fi | |
11885 | done | |
81ecdfbb RW |
11886 | done |
11887 | IFS=$as_save_IFS | |
c6b750e1 | 11888 | |
2429c060 PB |
11889 | fi |
11890 | fi | |
c6b750e1 | 11891 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11892 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11894 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11895 | else |
81ecdfbb RW |
11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11897 | $as_echo "no" >&6; } | |
2429c060 | 11898 | fi |
c6b750e1 | 11899 | |
81ecdfbb | 11900 | |
2429c060 PB |
11901 | fi |
11902 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11903 | done | |
11904 | fi | |
c6b750e1 | 11905 | |
2429c060 PB |
11906 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11907 | set dummy lipo | |
11908 | if test $build = $target ; then | |
11909 | LIPO_FOR_TARGET="$2" | |
11910 | else | |
11911 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11912 | fi | |
d3f5afc4 MS |
11913 | else |
11914 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11915 | fi |
11916 | ||
3a35eeb3 PB |
11917 | else |
11918 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11919 | fi |
11920 | ||
11921 | ||
11922 | ||
11923 | ||
11924 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11925 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11927 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11928 | if test -x $with_build_time_tools/nm; then |
11929 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11930 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11932 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11933 | else |
81ecdfbb RW |
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11935 | $as_echo "no" >&6; } | |
3a35eeb3 | 11936 | fi |
2429c060 PB |
11937 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11938 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11939 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11940 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11941 | fi |
11942 | fi | |
c6b750e1 | 11943 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11944 | # Extract the first word of "nm", so it can be a program name with args. |
11945 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11947 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11948 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 11949 | $as_echo_n "(cached) " >&6 |
2429c060 | 11950 | else |
c6b750e1 DJ |
11951 | case $NM_FOR_TARGET in |
11952 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11953 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11954 | ;; | |
2429c060 | 11955 | *) |
c6b750e1 DJ |
11956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11957 | for as_dir in $gcc_cv_tool_dirs | |
11958 | do | |
11959 | IFS=$as_save_IFS | |
11960 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11961 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11963 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11965 | break 2 |
11966 | fi | |
11967 | done | |
81ecdfbb RW |
11968 | done |
11969 | IFS=$as_save_IFS | |
c6b750e1 | 11970 | |
2429c060 PB |
11971 | ;; |
11972 | esac | |
11973 | fi | |
c6b750e1 | 11974 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11975 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11977 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11978 | else |
81ecdfbb RW |
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11980 | $as_echo "no" >&6; } | |
2429c060 PB |
11981 | fi |
11982 | ||
81ecdfbb | 11983 | |
2429c060 PB |
11984 | fi |
11985 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11986 | |
11987 | ||
11988 | if test -n "$NM_FOR_TARGET"; then | |
11989 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11990 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11991 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11992 | fi | |
11993 | ||
11994 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11995 | for ncn_progname in nm; do | |
11996 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11997 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11999 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12000 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12001 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12002 | else |
12003 | if test -n "$NM_FOR_TARGET"; then | |
12004 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12005 | else | |
12006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12007 | for as_dir in $PATH | |
12008 | do | |
12009 | IFS=$as_save_IFS | |
12010 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12011 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12013 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12015 | break 2 |
12016 | fi | |
12017 | done | |
81ecdfbb RW |
12018 | done |
12019 | IFS=$as_save_IFS | |
9a819804 AO |
12020 | |
12021 | fi | |
12022 | fi | |
12023 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12024 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12026 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12027 | else |
81ecdfbb RW |
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12029 | $as_echo "no" >&6; } | |
9a819804 AO |
12030 | fi |
12031 | ||
81ecdfbb | 12032 | |
9a819804 AO |
12033 | done |
12034 | fi | |
12035 | ||
12036 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12037 | for ncn_progname in nm; do |
81ecdfbb RW |
12038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12039 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12040 | if test -x $with_build_time_tools/${ncn_progname}; then |
12041 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12043 | $as_echo "yes" >&6; } | |
2429c060 PB |
12044 | break |
12045 | else | |
81ecdfbb RW |
12046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12047 | $as_echo "no" >&6; } | |
2429c060 PB |
12048 | fi |
12049 | done | |
12050 | fi | |
12051 | ||
12052 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12053 | for ncn_progname in nm; do | |
12054 | if test -n "$ncn_target_tool_prefix"; then | |
12055 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12056 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12058 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12059 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12060 | $as_echo_n "(cached) " >&6 |
859789af | 12061 | else |
55db4b87 PB |
12062 | if test -n "$NM_FOR_TARGET"; then |
12063 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12064 | else |
c6b750e1 DJ |
12065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12066 | for as_dir in $PATH | |
12067 | do | |
12068 | IFS=$as_save_IFS | |
12069 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12070 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12072 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12074 | break 2 |
12075 | fi | |
12076 | done | |
81ecdfbb RW |
12077 | done |
12078 | IFS=$as_save_IFS | |
c6b750e1 | 12079 | |
859789af AC |
12080 | fi |
12081 | fi | |
c6b750e1 | 12082 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12083 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12085 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12086 | else |
81ecdfbb RW |
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12088 | $as_echo "no" >&6; } | |
859789af AC |
12089 | fi |
12090 | ||
81ecdfbb | 12091 | |
2429c060 PB |
12092 | fi |
12093 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12094 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12095 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12097 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12098 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12099 | $as_echo_n "(cached) " >&6 |
859789af | 12100 | else |
05cbd757 PB |
12101 | if test -n "$NM_FOR_TARGET"; then |
12102 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12103 | else |
c6b750e1 DJ |
12104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12105 | for as_dir in $PATH | |
12106 | do | |
12107 | IFS=$as_save_IFS | |
12108 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12109 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12110 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12111 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12113 | break 2 |
12114 | fi | |
12115 | done | |
81ecdfbb RW |
12116 | done |
12117 | IFS=$as_save_IFS | |
c6b750e1 | 12118 | |
859789af AC |
12119 | fi |
12120 | fi | |
c6b750e1 | 12121 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12122 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12124 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12125 | else |
81ecdfbb RW |
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12127 | $as_echo "no" >&6; } | |
859789af | 12128 | fi |
c6b750e1 | 12129 | |
81ecdfbb | 12130 | |
2429c060 PB |
12131 | fi |
12132 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12133 | done | |
12134 | fi | |
c6b750e1 | 12135 | |
05cbd757 PB |
12136 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12137 | set dummy nm | |
12138 | if test $build = $target ; then | |
12139 | NM_FOR_TARGET="$2" | |
859789af | 12140 | else |
05cbd757 | 12141 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12142 | fi |
d3f5afc4 MS |
12143 | else |
12144 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12145 | fi |
12146 | ||
3a35eeb3 PB |
12147 | else |
12148 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12149 | fi |
12150 | ||
12151 | ||
12152 | ||
12153 | ||
6b91c541 AP |
12154 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12155 | if test -n "$with_build_time_tools"; then | |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12157 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12158 | if test -x $with_build_time_tools/objcopy; then | |
12159 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12160 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12162 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12163 | else | |
12164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12165 | $as_echo "no" >&6; } | |
12166 | fi | |
12167 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12168 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12169 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12170 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12171 | fi | |
12172 | fi | |
12173 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12174 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12175 | set dummy objcopy; ac_word=$2 | |
12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12177 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12178 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12179 | $as_echo_n "(cached) " >&6 |
12180 | else | |
12181 | case $OBJCOPY_FOR_TARGET in | |
12182 | [\\/]* | ?:[\\/]*) | |
12183 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12184 | ;; | |
12185 | *) | |
12186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12187 | for as_dir in $gcc_cv_tool_dirs | |
12188 | do | |
12189 | IFS=$as_save_IFS | |
12190 | test -z "$as_dir" && as_dir=. | |
12191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12192 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12193 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12195 | break 2 | |
12196 | fi | |
12197 | done | |
12198 | done | |
12199 | IFS=$as_save_IFS | |
12200 | ||
12201 | ;; | |
12202 | esac | |
12203 | fi | |
12204 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12205 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12207 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12208 | else | |
12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12210 | $as_echo "no" >&6; } | |
12211 | fi | |
12212 | ||
12213 | ||
12214 | fi | |
12215 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12216 | ||
12217 | ||
12218 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12219 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12220 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12221 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12222 | fi | |
12223 | ||
12224 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12225 | for ncn_progname in objcopy; do | |
12226 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12227 | set dummy ${ncn_progname}; ac_word=$2 | |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12229 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12230 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12231 | $as_echo_n "(cached) " >&6 |
12232 | else | |
12233 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12234 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12235 | else | |
12236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12237 | for as_dir in $PATH | |
12238 | do | |
12239 | IFS=$as_save_IFS | |
12240 | test -z "$as_dir" && as_dir=. | |
12241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12243 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12245 | break 2 | |
12246 | fi | |
12247 | done | |
12248 | done | |
12249 | IFS=$as_save_IFS | |
12250 | ||
12251 | fi | |
12252 | fi | |
12253 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12254 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12256 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12257 | else | |
12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12259 | $as_echo "no" >&6; } | |
12260 | fi | |
12261 | ||
12262 | ||
12263 | done | |
12264 | fi | |
12265 | ||
12266 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12267 | for ncn_progname in objcopy; do | |
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12269 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12270 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12271 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12273 | $as_echo "yes" >&6; } | |
12274 | break | |
12275 | else | |
12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12277 | $as_echo "no" >&6; } | |
12278 | fi | |
12279 | done | |
12280 | fi | |
12281 | ||
12282 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12283 | for ncn_progname in objcopy; do | |
12284 | if test -n "$ncn_target_tool_prefix"; then | |
12285 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12286 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12288 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12289 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12290 | $as_echo_n "(cached) " >&6 |
12291 | else | |
12292 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12293 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12294 | else | |
12295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12296 | for as_dir in $PATH | |
12297 | do | |
12298 | IFS=$as_save_IFS | |
12299 | test -z "$as_dir" && as_dir=. | |
12300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12302 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12304 | break 2 | |
12305 | fi | |
12306 | done | |
12307 | done | |
12308 | IFS=$as_save_IFS | |
12309 | ||
12310 | fi | |
12311 | fi | |
12312 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12313 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12315 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12316 | else | |
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12318 | $as_echo "no" >&6; } | |
12319 | fi | |
12320 | ||
12321 | ||
12322 | fi | |
12323 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12324 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12325 | set dummy ${ncn_progname}; ac_word=$2 | |
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12327 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12328 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12329 | $as_echo_n "(cached) " >&6 |
12330 | else | |
12331 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12332 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12333 | else | |
12334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12335 | for as_dir in $PATH | |
12336 | do | |
12337 | IFS=$as_save_IFS | |
12338 | test -z "$as_dir" && as_dir=. | |
12339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12341 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12343 | break 2 | |
12344 | fi | |
12345 | done | |
12346 | done | |
12347 | IFS=$as_save_IFS | |
12348 | ||
12349 | fi | |
12350 | fi | |
12351 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12352 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12354 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12355 | else | |
12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12357 | $as_echo "no" >&6; } | |
12358 | fi | |
12359 | ||
12360 | ||
12361 | fi | |
12362 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12363 | done | |
12364 | fi | |
12365 | ||
12366 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12367 | set dummy objcopy | |
12368 | if test $build = $target ; then | |
12369 | OBJCOPY_FOR_TARGET="$2" | |
12370 | else | |
12371 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12372 | fi | |
12373 | else | |
12374 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12375 | fi | |
12376 | ||
12377 | else | |
12378 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12379 | fi | |
12380 | ||
12381 | ||
12382 | ||
12383 | ||
2429c060 PB |
12384 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12385 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12387 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12388 | if test -x $with_build_time_tools/objdump; then |
12389 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12390 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12392 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12393 | else |
81ecdfbb RW |
12394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12395 | $as_echo "no" >&6; } | |
3a35eeb3 | 12396 | fi |
2429c060 PB |
12397 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12398 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12399 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12400 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12401 | fi |
12402 | fi | |
c6b750e1 | 12403 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12404 | # Extract the first word of "objdump", so it can be a program name with args. |
12405 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12407 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12408 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12409 | $as_echo_n "(cached) " >&6 |
2429c060 | 12410 | else |
c6b750e1 DJ |
12411 | case $OBJDUMP_FOR_TARGET in |
12412 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12413 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12414 | ;; | |
2429c060 | 12415 | *) |
c6b750e1 DJ |
12416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12417 | for as_dir in $gcc_cv_tool_dirs | |
12418 | do | |
12419 | IFS=$as_save_IFS | |
12420 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12421 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12422 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12423 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12425 | break 2 |
12426 | fi | |
12427 | done | |
81ecdfbb RW |
12428 | done |
12429 | IFS=$as_save_IFS | |
c6b750e1 | 12430 | |
2429c060 PB |
12431 | ;; |
12432 | esac | |
12433 | fi | |
c6b750e1 | 12434 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12435 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12437 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12438 | else |
81ecdfbb RW |
12439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12440 | $as_echo "no" >&6; } | |
2429c060 PB |
12441 | fi |
12442 | ||
81ecdfbb | 12443 | |
2429c060 PB |
12444 | fi |
12445 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12446 | |
12447 | ||
12448 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12449 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12450 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12451 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12452 | fi | |
12453 | ||
12454 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12455 | for ncn_progname in objdump; do | |
12456 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12457 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12459 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12460 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12461 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12462 | else |
12463 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12464 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12465 | else | |
12466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12467 | for as_dir in $PATH | |
12468 | do | |
12469 | IFS=$as_save_IFS | |
12470 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12471 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12472 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12473 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12475 | break 2 |
12476 | fi | |
12477 | done | |
81ecdfbb RW |
12478 | done |
12479 | IFS=$as_save_IFS | |
9a819804 AO |
12480 | |
12481 | fi | |
12482 | fi | |
12483 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12484 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12486 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12487 | else |
81ecdfbb RW |
12488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12489 | $as_echo "no" >&6; } | |
9a819804 AO |
12490 | fi |
12491 | ||
81ecdfbb | 12492 | |
9a819804 AO |
12493 | done |
12494 | fi | |
12495 | ||
12496 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12497 | for ncn_progname in objdump; do |
81ecdfbb RW |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12499 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12500 | if test -x $with_build_time_tools/${ncn_progname}; then |
12501 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12503 | $as_echo "yes" >&6; } | |
2429c060 PB |
12504 | break |
12505 | else | |
81ecdfbb RW |
12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12507 | $as_echo "no" >&6; } | |
2429c060 PB |
12508 | fi |
12509 | done | |
12510 | fi | |
12511 | ||
12512 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12513 | for ncn_progname in objdump; do | |
12514 | if test -n "$ncn_target_tool_prefix"; then | |
12515 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12516 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12518 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12519 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12520 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12521 | else |
12522 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12523 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12524 | else | |
c6b750e1 DJ |
12525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12526 | for as_dir in $PATH | |
12527 | do | |
12528 | IFS=$as_save_IFS | |
12529 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12530 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12531 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12532 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12534 | break 2 |
12535 | fi | |
12536 | done | |
81ecdfbb RW |
12537 | done |
12538 | IFS=$as_save_IFS | |
c6b750e1 | 12539 | |
5ae72758 DJ |
12540 | fi |
12541 | fi | |
c6b750e1 | 12542 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12543 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12545 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12546 | else |
81ecdfbb RW |
12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12548 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12549 | fi |
12550 | ||
81ecdfbb | 12551 | |
2429c060 PB |
12552 | fi |
12553 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12554 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12555 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12557 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12558 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12559 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12560 | else |
12561 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12562 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12563 | else | |
c6b750e1 DJ |
12564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12565 | for as_dir in $PATH | |
12566 | do | |
12567 | IFS=$as_save_IFS | |
12568 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12569 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12570 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12571 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12573 | break 2 |
12574 | fi | |
12575 | done | |
81ecdfbb RW |
12576 | done |
12577 | IFS=$as_save_IFS | |
c6b750e1 | 12578 | |
5ae72758 DJ |
12579 | fi |
12580 | fi | |
c6b750e1 | 12581 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12582 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12584 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12585 | else |
81ecdfbb RW |
12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12587 | $as_echo "no" >&6; } | |
5ae72758 | 12588 | fi |
c6b750e1 | 12589 | |
81ecdfbb | 12590 | |
2429c060 PB |
12591 | fi |
12592 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12593 | done | |
12594 | fi | |
c6b750e1 | 12595 | |
5ae72758 DJ |
12596 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12597 | set dummy objdump | |
12598 | if test $build = $target ; then | |
12599 | OBJDUMP_FOR_TARGET="$2" | |
12600 | else | |
12601 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12602 | fi | |
d3f5afc4 MS |
12603 | else |
12604 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12605 | fi |
12606 | ||
3a35eeb3 PB |
12607 | else |
12608 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12609 | fi |
12610 | ||
12611 | ||
12612 | ||
12613 | ||
12614 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12615 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12617 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12618 | if test -x $with_build_time_tools/ranlib; then |
12619 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12620 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12622 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12623 | else |
81ecdfbb RW |
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12625 | $as_echo "no" >&6; } | |
3a35eeb3 | 12626 | fi |
2429c060 PB |
12627 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12628 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12629 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12630 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12631 | fi |
12632 | fi | |
c6b750e1 | 12633 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12634 | # Extract the first word of "ranlib", so it can be a program name with args. |
12635 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12637 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12638 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12639 | $as_echo_n "(cached) " >&6 |
2429c060 | 12640 | else |
c6b750e1 DJ |
12641 | case $RANLIB_FOR_TARGET in |
12642 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12643 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12644 | ;; | |
2429c060 | 12645 | *) |
c6b750e1 DJ |
12646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12647 | for as_dir in $gcc_cv_tool_dirs | |
12648 | do | |
12649 | IFS=$as_save_IFS | |
12650 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12651 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12652 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12653 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12655 | break 2 |
12656 | fi | |
12657 | done | |
81ecdfbb RW |
12658 | done |
12659 | IFS=$as_save_IFS | |
c6b750e1 | 12660 | |
2429c060 PB |
12661 | ;; |
12662 | esac | |
12663 | fi | |
c6b750e1 | 12664 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12665 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12667 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12668 | else |
81ecdfbb RW |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12670 | $as_echo "no" >&6; } | |
2429c060 PB |
12671 | fi |
12672 | ||
81ecdfbb | 12673 | |
2429c060 PB |
12674 | fi |
12675 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12676 | |
12677 | ||
12678 | if test -n "$RANLIB_FOR_TARGET"; then | |
12679 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12680 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12681 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12682 | fi | |
12683 | ||
12684 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12685 | for ncn_progname in ranlib; do | |
12686 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12687 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12689 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12690 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12691 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12692 | else |
12693 | if test -n "$RANLIB_FOR_TARGET"; then | |
12694 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12695 | else | |
12696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12697 | for as_dir in $PATH | |
12698 | do | |
12699 | IFS=$as_save_IFS | |
12700 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12701 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12703 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12705 | break 2 |
12706 | fi | |
12707 | done | |
81ecdfbb RW |
12708 | done |
12709 | IFS=$as_save_IFS | |
9a819804 AO |
12710 | |
12711 | fi | |
12712 | fi | |
12713 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12714 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12716 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12717 | else |
81ecdfbb RW |
12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12719 | $as_echo "no" >&6; } | |
9a819804 AO |
12720 | fi |
12721 | ||
81ecdfbb | 12722 | |
9a819804 AO |
12723 | done |
12724 | fi | |
12725 | ||
12726 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12727 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12729 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12730 | if test -x $with_build_time_tools/${ncn_progname}; then |
12731 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12733 | $as_echo "yes" >&6; } | |
2429c060 PB |
12734 | break |
12735 | else | |
81ecdfbb RW |
12736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12737 | $as_echo "no" >&6; } | |
2429c060 PB |
12738 | fi |
12739 | done | |
12740 | fi | |
12741 | ||
12742 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12743 | for ncn_progname in ranlib; do | |
12744 | if test -n "$ncn_target_tool_prefix"; then | |
12745 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12746 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12748 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12749 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12750 | $as_echo_n "(cached) " >&6 |
859789af | 12751 | else |
55db4b87 PB |
12752 | if test -n "$RANLIB_FOR_TARGET"; then |
12753 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12754 | else |
c6b750e1 DJ |
12755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12756 | for as_dir in $PATH | |
12757 | do | |
12758 | IFS=$as_save_IFS | |
12759 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12760 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12762 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12764 | break 2 |
12765 | fi | |
12766 | done | |
81ecdfbb RW |
12767 | done |
12768 | IFS=$as_save_IFS | |
c6b750e1 | 12769 | |
859789af AC |
12770 | fi |
12771 | fi | |
c6b750e1 | 12772 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12773 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12775 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12776 | else |
81ecdfbb RW |
12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12778 | $as_echo "no" >&6; } | |
859789af AC |
12779 | fi |
12780 | ||
81ecdfbb | 12781 | |
2429c060 PB |
12782 | fi |
12783 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12784 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12785 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12787 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12788 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12789 | $as_echo_n "(cached) " >&6 |
859789af | 12790 | else |
05cbd757 PB |
12791 | if test -n "$RANLIB_FOR_TARGET"; then |
12792 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12793 | else |
c6b750e1 DJ |
12794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12795 | for as_dir in $PATH | |
12796 | do | |
12797 | IFS=$as_save_IFS | |
12798 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12799 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12800 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12801 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12803 | break 2 |
12804 | fi | |
12805 | done | |
81ecdfbb RW |
12806 | done |
12807 | IFS=$as_save_IFS | |
c6b750e1 | 12808 | |
859789af AC |
12809 | fi |
12810 | fi | |
c6b750e1 | 12811 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12812 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12814 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12815 | else |
81ecdfbb RW |
12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12817 | $as_echo "no" >&6; } | |
859789af | 12818 | fi |
c6b750e1 | 12819 | |
81ecdfbb | 12820 | |
2429c060 PB |
12821 | fi |
12822 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12823 | done | |
12824 | fi | |
c6b750e1 | 12825 | |
2429c060 PB |
12826 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12827 | set dummy ranlib | |
12828 | if test $build = $target ; then | |
12829 | RANLIB_FOR_TARGET="$2" | |
12830 | else | |
12831 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12832 | fi |
d3f5afc4 MS |
12833 | else |
12834 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12835 | fi |
05cbd757 | 12836 | |
3a35eeb3 PB |
12837 | else |
12838 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12839 | fi |
12840 | ||
2429c060 PB |
12841 | |
12842 | ||
12843 | ||
b121d7d4 DD |
12844 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12845 | if test -n "$with_build_time_tools"; then | |
12846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12847 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12848 | if test -x $with_build_time_tools/readelf; then | |
12849 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12850 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12852 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12853 | else | |
12854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12855 | $as_echo "no" >&6; } | |
12856 | fi | |
12857 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12858 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12859 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12860 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12861 | fi | |
12862 | fi | |
12863 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12864 | # Extract the first word of "readelf", so it can be a program name with args. | |
12865 | set dummy readelf; ac_word=$2 | |
12866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12867 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12868 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12869 | $as_echo_n "(cached) " >&6 |
12870 | else | |
12871 | case $READELF_FOR_TARGET in | |
12872 | [\\/]* | ?:[\\/]*) | |
12873 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12874 | ;; | |
12875 | *) | |
12876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12877 | for as_dir in $gcc_cv_tool_dirs | |
12878 | do | |
12879 | IFS=$as_save_IFS | |
12880 | test -z "$as_dir" && as_dir=. | |
12881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12882 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12883 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12885 | break 2 | |
12886 | fi | |
12887 | done | |
12888 | done | |
12889 | IFS=$as_save_IFS | |
12890 | ||
12891 | ;; | |
12892 | esac | |
12893 | fi | |
12894 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12895 | if test -n "$READELF_FOR_TARGET"; then | |
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12897 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12898 | else | |
12899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12900 | $as_echo "no" >&6; } | |
12901 | fi | |
12902 | ||
12903 | ||
12904 | fi | |
12905 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12906 | ||
12907 | ||
12908 | if test -n "$READELF_FOR_TARGET"; then | |
12909 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12910 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12911 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12912 | fi | |
12913 | ||
12914 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12915 | for ncn_progname in readelf; do | |
12916 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12917 | set dummy ${ncn_progname}; ac_word=$2 | |
12918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12919 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12920 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12921 | $as_echo_n "(cached) " >&6 |
12922 | else | |
12923 | if test -n "$READELF_FOR_TARGET"; then | |
12924 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12925 | else | |
12926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12927 | for as_dir in $PATH | |
12928 | do | |
12929 | IFS=$as_save_IFS | |
12930 | test -z "$as_dir" && as_dir=. | |
12931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12932 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12933 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
12934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12935 | break 2 | |
12936 | fi | |
12937 | done | |
12938 | done | |
12939 | IFS=$as_save_IFS | |
12940 | ||
12941 | fi | |
12942 | fi | |
12943 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12944 | if test -n "$READELF_FOR_TARGET"; then | |
12945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12946 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12947 | else | |
12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12949 | $as_echo "no" >&6; } | |
12950 | fi | |
12951 | ||
12952 | ||
12953 | done | |
12954 | fi | |
12955 | ||
12956 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12957 | for ncn_progname in readelf; do | |
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12959 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12960 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12961 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12963 | $as_echo "yes" >&6; } | |
12964 | break | |
12965 | else | |
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12967 | $as_echo "no" >&6; } | |
12968 | fi | |
12969 | done | |
12970 | fi | |
12971 | ||
12972 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12973 | for ncn_progname in readelf; do | |
12974 | if test -n "$ncn_target_tool_prefix"; then | |
12975 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12976 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12978 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12979 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12980 | $as_echo_n "(cached) " >&6 |
12981 | else | |
12982 | if test -n "$READELF_FOR_TARGET"; then | |
12983 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12984 | else | |
12985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12986 | for as_dir in $PATH | |
12987 | do | |
12988 | IFS=$as_save_IFS | |
12989 | test -z "$as_dir" && as_dir=. | |
12990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12992 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12994 | break 2 | |
12995 | fi | |
12996 | done | |
12997 | done | |
12998 | IFS=$as_save_IFS | |
12999 | ||
13000 | fi | |
13001 | fi | |
13002 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13003 | if test -n "$READELF_FOR_TARGET"; then | |
13004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13005 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13006 | else | |
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13008 | $as_echo "no" >&6; } | |
13009 | fi | |
13010 | ||
13011 | ||
13012 | fi | |
13013 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13014 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13015 | set dummy ${ncn_progname}; ac_word=$2 | |
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13017 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13018 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13019 | $as_echo_n "(cached) " >&6 |
13020 | else | |
13021 | if test -n "$READELF_FOR_TARGET"; then | |
13022 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13023 | else | |
13024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13025 | for as_dir in $PATH | |
13026 | do | |
13027 | IFS=$as_save_IFS | |
13028 | test -z "$as_dir" && as_dir=. | |
13029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13030 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13031 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13033 | break 2 | |
13034 | fi | |
13035 | done | |
13036 | done | |
13037 | IFS=$as_save_IFS | |
13038 | ||
13039 | fi | |
13040 | fi | |
13041 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13042 | if test -n "$READELF_FOR_TARGET"; then | |
13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13044 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13045 | else | |
13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13047 | $as_echo "no" >&6; } | |
13048 | fi | |
13049 | ||
13050 | ||
13051 | fi | |
13052 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13053 | done | |
13054 | fi | |
13055 | ||
13056 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13057 | set dummy readelf | |
13058 | if test $build = $target ; then | |
13059 | READELF_FOR_TARGET="$2" | |
13060 | else | |
13061 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13062 | fi | |
13063 | else | |
13064 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13065 | fi | |
13066 | ||
13067 | else | |
13068 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13069 | fi | |
13070 | ||
13071 | ||
13072 | ||
13073 | ||
2429c060 PB |
13074 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13075 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13077 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13078 | if test -x $with_build_time_tools/strip; then |
13079 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13080 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13082 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13083 | else |
81ecdfbb RW |
13084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13085 | $as_echo "no" >&6; } | |
3a35eeb3 | 13086 | fi |
2429c060 PB |
13087 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13088 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13089 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13090 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13091 | fi |
13092 | fi | |
c6b750e1 | 13093 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13094 | # Extract the first word of "strip", so it can be a program name with args. |
13095 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13097 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13098 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13099 | $as_echo_n "(cached) " >&6 |
2429c060 | 13100 | else |
c6b750e1 DJ |
13101 | case $STRIP_FOR_TARGET in |
13102 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13103 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13104 | ;; | |
2429c060 | 13105 | *) |
c6b750e1 DJ |
13106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13107 | for as_dir in $gcc_cv_tool_dirs | |
13108 | do | |
13109 | IFS=$as_save_IFS | |
13110 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13111 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13113 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13115 | break 2 |
13116 | fi | |
13117 | done | |
81ecdfbb RW |
13118 | done |
13119 | IFS=$as_save_IFS | |
c6b750e1 | 13120 | |
2429c060 PB |
13121 | ;; |
13122 | esac | |
13123 | fi | |
c6b750e1 | 13124 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13125 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13127 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13128 | else |
81ecdfbb RW |
13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13130 | $as_echo "no" >&6; } | |
2429c060 PB |
13131 | fi |
13132 | ||
81ecdfbb | 13133 | |
2429c060 PB |
13134 | fi |
13135 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13136 | |
13137 | ||
13138 | if test -n "$STRIP_FOR_TARGET"; then | |
13139 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13140 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13141 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13142 | fi | |
13143 | ||
13144 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13145 | for ncn_progname in strip; do | |
13146 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13147 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13149 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13150 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13151 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13152 | else |
13153 | if test -n "$STRIP_FOR_TARGET"; then | |
13154 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13155 | else | |
13156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13157 | for as_dir in $PATH | |
13158 | do | |
13159 | IFS=$as_save_IFS | |
13160 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13161 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13162 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13163 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13165 | break 2 |
13166 | fi | |
13167 | done | |
81ecdfbb RW |
13168 | done |
13169 | IFS=$as_save_IFS | |
9a819804 AO |
13170 | |
13171 | fi | |
13172 | fi | |
13173 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13174 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13176 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13177 | else |
81ecdfbb RW |
13178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13179 | $as_echo "no" >&6; } | |
9a819804 AO |
13180 | fi |
13181 | ||
81ecdfbb | 13182 | |
9a819804 AO |
13183 | done |
13184 | fi | |
13185 | ||
13186 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13187 | for ncn_progname in strip; do |
81ecdfbb RW |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13189 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13190 | if test -x $with_build_time_tools/${ncn_progname}; then |
13191 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13193 | $as_echo "yes" >&6; } | |
2429c060 PB |
13194 | break |
13195 | else | |
81ecdfbb RW |
13196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13197 | $as_echo "no" >&6; } | |
2429c060 PB |
13198 | fi |
13199 | done | |
13200 | fi | |
13201 | ||
13202 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13203 | for ncn_progname in strip; do | |
13204 | if test -n "$ncn_target_tool_prefix"; then | |
13205 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13206 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13208 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13209 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13210 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13211 | else |
13212 | if test -n "$STRIP_FOR_TARGET"; then | |
13213 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13214 | else |
13215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13216 | for as_dir in $PATH | |
13217 | do | |
13218 | IFS=$as_save_IFS | |
13219 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13220 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13222 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13224 | break 2 |
13225 | fi | |
13226 | done | |
81ecdfbb RW |
13227 | done |
13228 | IFS=$as_save_IFS | |
c6b750e1 | 13229 | |
7e0f7140 GK |
13230 | fi |
13231 | fi | |
c6b750e1 | 13232 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13233 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13235 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13236 | else |
81ecdfbb RW |
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13238 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13239 | fi |
13240 | ||
81ecdfbb | 13241 | |
2429c060 PB |
13242 | fi |
13243 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13244 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13245 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13247 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13248 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13249 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13250 | else |
13251 | if test -n "$STRIP_FOR_TARGET"; then | |
13252 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13253 | else | |
c6b750e1 DJ |
13254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13255 | for as_dir in $PATH | |
13256 | do | |
13257 | IFS=$as_save_IFS | |
13258 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13259 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13260 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13261 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13263 | break 2 |
13264 | fi | |
13265 | done | |
81ecdfbb RW |
13266 | done |
13267 | IFS=$as_save_IFS | |
c6b750e1 | 13268 | |
7e0f7140 GK |
13269 | fi |
13270 | fi | |
c6b750e1 | 13271 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13272 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13274 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13275 | else |
81ecdfbb RW |
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13277 | $as_echo "no" >&6; } | |
7e0f7140 | 13278 | fi |
c6b750e1 | 13279 | |
81ecdfbb | 13280 | |
2429c060 PB |
13281 | fi |
13282 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13283 | done | |
13284 | fi | |
c6b750e1 | 13285 | |
7e0f7140 GK |
13286 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13287 | set dummy strip | |
13288 | if test $build = $target ; then | |
13289 | STRIP_FOR_TARGET="$2" | |
13290 | else | |
13291 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13292 | fi | |
d3f5afc4 MS |
13293 | else |
13294 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13295 | fi |
13296 | ||
3a35eeb3 PB |
13297 | else |
13298 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13299 | fi |
13300 | ||
13301 | ||
13302 | ||
13303 | ||
13304 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13305 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13307 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13308 | if test -x $with_build_time_tools/windres; then |
13309 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13310 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13312 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13313 | else |
81ecdfbb RW |
13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13315 | $as_echo "no" >&6; } | |
3a35eeb3 | 13316 | fi |
2429c060 PB |
13317 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13318 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13319 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13320 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13321 | fi |
13322 | fi | |
c6b750e1 | 13323 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13324 | # Extract the first word of "windres", so it can be a program name with args. |
13325 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13327 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13328 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13329 | $as_echo_n "(cached) " >&6 |
2429c060 | 13330 | else |
c6b750e1 DJ |
13331 | case $WINDRES_FOR_TARGET in |
13332 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13333 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13334 | ;; | |
2429c060 | 13335 | *) |
c6b750e1 DJ |
13336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13337 | for as_dir in $gcc_cv_tool_dirs | |
13338 | do | |
13339 | IFS=$as_save_IFS | |
13340 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13341 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13343 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13345 | break 2 |
13346 | fi | |
13347 | done | |
81ecdfbb RW |
13348 | done |
13349 | IFS=$as_save_IFS | |
c6b750e1 | 13350 | |
2429c060 PB |
13351 | ;; |
13352 | esac | |
13353 | fi | |
c6b750e1 | 13354 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13355 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13357 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13358 | else |
81ecdfbb RW |
13359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13360 | $as_echo "no" >&6; } | |
2429c060 PB |
13361 | fi |
13362 | ||
81ecdfbb | 13363 | |
2429c060 PB |
13364 | fi |
13365 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13366 | |
13367 | ||
13368 | if test -n "$WINDRES_FOR_TARGET"; then | |
13369 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13370 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13371 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13372 | fi | |
13373 | ||
13374 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13375 | for ncn_progname in windres; do | |
13376 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13377 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13379 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13380 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13381 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13382 | else |
13383 | if test -n "$WINDRES_FOR_TARGET"; then | |
13384 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13385 | else | |
13386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13387 | for as_dir in $PATH | |
13388 | do | |
13389 | IFS=$as_save_IFS | |
13390 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13391 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13393 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13395 | break 2 |
13396 | fi | |
13397 | done | |
81ecdfbb RW |
13398 | done |
13399 | IFS=$as_save_IFS | |
9a819804 AO |
13400 | |
13401 | fi | |
13402 | fi | |
13403 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13404 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13406 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13407 | else |
81ecdfbb RW |
13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13409 | $as_echo "no" >&6; } | |
9a819804 AO |
13410 | fi |
13411 | ||
81ecdfbb | 13412 | |
9a819804 AO |
13413 | done |
13414 | fi | |
13415 | ||
13416 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13417 | for ncn_progname in windres; do |
81ecdfbb RW |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13419 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13420 | if test -x $with_build_time_tools/${ncn_progname}; then |
13421 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13423 | $as_echo "yes" >&6; } | |
2429c060 PB |
13424 | break |
13425 | else | |
81ecdfbb RW |
13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13427 | $as_echo "no" >&6; } | |
2429c060 PB |
13428 | fi |
13429 | done | |
13430 | fi | |
13431 | ||
13432 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13433 | for ncn_progname in windres; do | |
13434 | if test -n "$ncn_target_tool_prefix"; then | |
13435 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13436 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13438 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13439 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13440 | $as_echo_n "(cached) " >&6 |
859789af | 13441 | else |
55db4b87 PB |
13442 | if test -n "$WINDRES_FOR_TARGET"; then |
13443 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13444 | else |
c6b750e1 DJ |
13445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13446 | for as_dir in $PATH | |
13447 | do | |
13448 | IFS=$as_save_IFS | |
13449 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13450 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13451 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13452 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13454 | break 2 |
13455 | fi | |
13456 | done | |
81ecdfbb RW |
13457 | done |
13458 | IFS=$as_save_IFS | |
c6b750e1 | 13459 | |
859789af AC |
13460 | fi |
13461 | fi | |
c6b750e1 | 13462 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13463 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13465 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13466 | else |
81ecdfbb RW |
13467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13468 | $as_echo "no" >&6; } | |
859789af AC |
13469 | fi |
13470 | ||
81ecdfbb | 13471 | |
2429c060 PB |
13472 | fi |
13473 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13474 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13475 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13477 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13478 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13479 | $as_echo_n "(cached) " >&6 |
859789af | 13480 | else |
05cbd757 PB |
13481 | if test -n "$WINDRES_FOR_TARGET"; then |
13482 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13483 | else |
c6b750e1 DJ |
13484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13485 | for as_dir in $PATH | |
13486 | do | |
13487 | IFS=$as_save_IFS | |
13488 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13489 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13491 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13493 | break 2 |
13494 | fi | |
13495 | done | |
81ecdfbb RW |
13496 | done |
13497 | IFS=$as_save_IFS | |
c6b750e1 | 13498 | |
859789af AC |
13499 | fi |
13500 | fi | |
c6b750e1 | 13501 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13502 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13504 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13505 | else |
81ecdfbb RW |
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13507 | $as_echo "no" >&6; } | |
859789af | 13508 | fi |
c6b750e1 | 13509 | |
81ecdfbb | 13510 | |
2429c060 PB |
13511 | fi |
13512 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13513 | done | |
13514 | fi | |
c6b750e1 | 13515 | |
05cbd757 PB |
13516 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13517 | set dummy windres | |
13518 | if test $build = $target ; then | |
13519 | WINDRES_FOR_TARGET="$2" | |
859789af | 13520 | else |
05cbd757 | 13521 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13522 | fi |
d3f5afc4 MS |
13523 | else |
13524 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13525 | fi |
13526 | ||
3a35eeb3 PB |
13527 | else |
13528 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13529 | fi |
13530 | ||
852e5f18 | 13531 | |
0c24b341 NC |
13532 | |
13533 | ||
13534 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13535 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13537 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13538 | if test -x $with_build_time_tools/windmc; then |
13539 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13540 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13542 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13543 | else |
81ecdfbb RW |
13544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13545 | $as_echo "no" >&6; } | |
0c24b341 NC |
13546 | fi |
13547 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13548 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13549 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13550 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13551 | fi | |
13552 | fi | |
13553 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13554 | # Extract the first word of "windmc", so it can be a program name with args. | |
13555 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13557 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13558 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13559 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13560 | else |
13561 | case $WINDMC_FOR_TARGET in | |
13562 | [\\/]* | ?:[\\/]*) | |
13563 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13564 | ;; | |
13565 | *) | |
13566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13567 | for as_dir in $gcc_cv_tool_dirs | |
13568 | do | |
13569 | IFS=$as_save_IFS | |
13570 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13571 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13572 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13573 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13575 | break 2 |
13576 | fi | |
13577 | done | |
81ecdfbb RW |
13578 | done |
13579 | IFS=$as_save_IFS | |
0c24b341 NC |
13580 | |
13581 | ;; | |
13582 | esac | |
13583 | fi | |
13584 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13585 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13587 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13588 | else |
81ecdfbb RW |
13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13590 | $as_echo "no" >&6; } | |
0c24b341 NC |
13591 | fi |
13592 | ||
81ecdfbb | 13593 | |
0c24b341 NC |
13594 | fi |
13595 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13596 | ||
13597 | ||
13598 | if test -n "$WINDMC_FOR_TARGET"; then | |
13599 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13600 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13601 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13602 | fi | |
13603 | ||
13604 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13605 | for ncn_progname in windmc; do | |
13606 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13607 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13609 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13610 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13611 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13612 | else |
13613 | if test -n "$WINDMC_FOR_TARGET"; then | |
13614 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13615 | else | |
13616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13617 | for as_dir in $PATH | |
13618 | do | |
13619 | IFS=$as_save_IFS | |
13620 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13621 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13623 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13625 | break 2 |
13626 | fi | |
13627 | done | |
81ecdfbb RW |
13628 | done |
13629 | IFS=$as_save_IFS | |
0c24b341 NC |
13630 | |
13631 | fi | |
13632 | fi | |
13633 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13634 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13636 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13637 | else |
81ecdfbb RW |
13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13639 | $as_echo "no" >&6; } | |
0c24b341 NC |
13640 | fi |
13641 | ||
81ecdfbb | 13642 | |
0c24b341 NC |
13643 | done |
13644 | fi | |
13645 | ||
13646 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13647 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13649 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13650 | if test -x $with_build_time_tools/${ncn_progname}; then |
13651 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13653 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13654 | break |
13655 | else | |
81ecdfbb RW |
13656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13657 | $as_echo "no" >&6; } | |
0c24b341 NC |
13658 | fi |
13659 | done | |
13660 | fi | |
13661 | ||
13662 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13663 | for ncn_progname in windmc; do | |
13664 | if test -n "$ncn_target_tool_prefix"; then | |
13665 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13666 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13668 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13669 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13670 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13671 | else |
13672 | if test -n "$WINDMC_FOR_TARGET"; then | |
13673 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13674 | else | |
13675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13676 | for as_dir in $PATH | |
13677 | do | |
13678 | IFS=$as_save_IFS | |
13679 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13680 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13681 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13682 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13684 | break 2 |
13685 | fi | |
13686 | done | |
81ecdfbb RW |
13687 | done |
13688 | IFS=$as_save_IFS | |
0c24b341 NC |
13689 | |
13690 | fi | |
13691 | fi | |
13692 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13693 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13695 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13696 | else |
81ecdfbb RW |
13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13698 | $as_echo "no" >&6; } | |
0c24b341 NC |
13699 | fi |
13700 | ||
81ecdfbb | 13701 | |
0c24b341 NC |
13702 | fi |
13703 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13704 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13705 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13707 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13708 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13709 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13710 | else |
13711 | if test -n "$WINDMC_FOR_TARGET"; then | |
13712 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13713 | else | |
13714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13715 | for as_dir in $PATH | |
13716 | do | |
13717 | IFS=$as_save_IFS | |
13718 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13719 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13721 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13723 | break 2 |
13724 | fi | |
13725 | done | |
81ecdfbb RW |
13726 | done |
13727 | IFS=$as_save_IFS | |
0c24b341 NC |
13728 | |
13729 | fi | |
13730 | fi | |
13731 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13732 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13734 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13735 | else |
81ecdfbb RW |
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13737 | $as_echo "no" >&6; } | |
0c24b341 NC |
13738 | fi |
13739 | ||
81ecdfbb | 13740 | |
0c24b341 NC |
13741 | fi |
13742 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13743 | done | |
13744 | fi | |
13745 | ||
13746 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13747 | set dummy windmc | |
13748 | if test $build = $target ; then | |
13749 | WINDMC_FOR_TARGET="$2" | |
13750 | else | |
13751 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13752 | fi | |
13753 | else | |
13754 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13755 | fi | |
13756 | ||
13757 | else | |
13758 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13759 | fi | |
13760 | ||
13761 | ||
be01d343 PB |
13762 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13763 | ||
81ecdfbb RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13765 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13766 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13767 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13768 | # We already found the complete path | |
b8025f34 | 13769 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13771 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13772 | else |
13773 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13775 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13776 | fi |
be01d343 PB |
13777 | else |
13778 | ok=yes | |
13779 | case " ${configdirs} " in | |
13780 | *" binutils "*) ;; | |
13781 | *) ok=no ;; | |
13782 | esac | |
c6b750e1 | 13783 | |
be01d343 PB |
13784 | if test $ok = yes; then |
13785 | # An in-tree tool is available and we can use it | |
13786 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13788 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13789 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13790 | # We already found the complete path | |
b8025f34 | 13791 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13793 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13794 | elif test "x$target" = "x$host"; then |
13795 | # We can use an host tool | |
13796 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13798 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13799 | else |
13800 | # We need a cross tool | |
81ecdfbb RW |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13802 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13803 | fi |
13804 | fi | |
4b900473 | 13805 | |
81ecdfbb RW |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13807 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13808 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13809 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13810 | # We already found the complete path | |
b8025f34 | 13811 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13813 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13814 | else |
13815 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13817 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13818 | fi |
be01d343 PB |
13819 | else |
13820 | ok=yes | |
13821 | case " ${configdirs} " in | |
13822 | *" gas "*) ;; | |
13823 | *) ok=no ;; | |
13824 | esac | |
c6b750e1 | 13825 | |
be01d343 PB |
13826 | if test $ok = yes; then |
13827 | # An in-tree tool is available and we can use it | |
13828 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13830 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13831 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13832 | # We already found the complete path | |
b8025f34 | 13833 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13835 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13836 | elif test "x$target" = "x$host"; then |
13837 | # We can use an host tool | |
13838 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13840 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13841 | else |
13842 | # We need a cross tool | |
81ecdfbb RW |
13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13844 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13845 | fi |
13846 | fi | |
4b900473 | 13847 | |
81ecdfbb RW |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13849 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13850 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13851 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13852 | # We already found the complete path | |
b8025f34 | 13853 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13855 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13856 | else |
13857 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13859 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13860 | fi |
be01d343 PB |
13861 | else |
13862 | ok=yes | |
13863 | case " ${configdirs} " in | |
13864 | *" gcc "*) ;; | |
13865 | *) ok=no ;; | |
13866 | esac | |
c6b750e1 | 13867 | |
be01d343 PB |
13868 | if test $ok = yes; then |
13869 | # An in-tree tool is available and we can use it | |
13870 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13872 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13873 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13874 | # We already found the complete path | |
b8025f34 | 13875 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13877 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13878 | elif test "x$target" = "x$host"; then |
13879 | # We can use an host tool | |
13880 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13882 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13883 | else |
13884 | # We need a cross tool | |
81ecdfbb RW |
13885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13886 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13887 | fi |
13888 | fi | |
4b900473 | 13889 | |
81ecdfbb RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13891 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13892 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13893 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13894 | # We already found the complete path | |
b8025f34 | 13895 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13897 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13898 | else |
13899 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13901 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13902 | fi |
be01d343 PB |
13903 | else |
13904 | ok=yes | |
13905 | case " ${configdirs} " in | |
13906 | *" gcc "*) ;; | |
13907 | *) ok=no ;; | |
13908 | esac | |
13909 | case ,${enable_languages}, in | |
13910 | *,c++,*) ;; | |
13911 | *) ok=no ;; | |
13912 | esac | |
13913 | if test $ok = yes; then | |
13914 | # An in-tree tool is available and we can use it | |
95e43135 | 13915 | 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 |
13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13917 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13918 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13919 | # We already found the complete path | |
b8025f34 | 13920 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13922 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13923 | elif test "x$target" = "x$host"; then |
13924 | # We can use an host tool | |
13925 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13927 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13928 | else |
13929 | # We need a cross tool | |
81ecdfbb RW |
13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13931 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13932 | fi |
13933 | fi | |
4b900473 | 13934 | |
81ecdfbb RW |
13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13936 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13937 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13938 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13939 | # We already found the complete path | |
b8025f34 | 13940 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13942 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13943 | else |
13944 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13946 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13947 | fi |
be01d343 PB |
13948 | else |
13949 | ok=yes | |
13950 | case " ${configdirs} " in | |
13951 | *" gcc "*) ;; | |
13952 | *) ok=no ;; | |
13953 | esac | |
13954 | case ,${enable_languages}, in | |
13955 | *,c++,*) ;; | |
13956 | *) ok=no ;; | |
13957 | esac | |
13958 | if test $ok = yes; then | |
13959 | # An in-tree tool is available and we can use it | |
95e43135 | 13960 | 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 |
13961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13962 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13963 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13964 | # We already found the complete path | |
b8025f34 | 13965 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13967 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13968 | elif test "x$target" = "x$host"; then |
13969 | # We can use an host tool | |
13970 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13972 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13973 | else |
13974 | # We need a cross tool | |
81ecdfbb RW |
13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13976 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13977 | fi |
13978 | fi | |
4b900473 | 13979 | |
81ecdfbb RW |
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13981 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13982 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13983 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13984 | # We already found the complete path | |
b8025f34 | 13985 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13987 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13988 | else |
13989 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13991 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13992 | fi |
be01d343 PB |
13993 | else |
13994 | ok=yes | |
13995 | case " ${configdirs} " in | |
13996 | *" binutils "*) ;; | |
13997 | *) ok=no ;; | |
13998 | esac | |
c6b750e1 | 13999 | |
be01d343 PB |
14000 | if test $ok = yes; then |
14001 | # An in-tree tool is available and we can use it | |
14002 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14004 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14005 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14006 | # We already found the complete path | |
b8025f34 | 14007 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14009 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14010 | elif test "x$target" = "x$host"; then |
14011 | # We can use an host tool | |
14012 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14014 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14015 | else |
14016 | # We need a cross tool | |
81ecdfbb RW |
14017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14018 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14019 | fi |
14020 | fi | |
4b900473 | 14021 | |
81ecdfbb RW |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14023 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14024 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14025 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14026 | # We already found the complete path | |
b8025f34 | 14027 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14029 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14030 | else |
14031 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14033 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14034 | fi |
be01d343 PB |
14035 | else |
14036 | ok=yes | |
14037 | case " ${configdirs} " in | |
14038 | *" gcc "*) ;; | |
14039 | *) ok=no ;; | |
14040 | esac | |
c6b750e1 | 14041 | |
be01d343 PB |
14042 | if test $ok = yes; then |
14043 | # An in-tree tool is available and we can use it | |
14044 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14046 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14047 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14048 | # We already found the complete path | |
b8025f34 | 14049 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14051 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14052 | elif test "x$target" = "x$host"; then |
14053 | # We can use an host tool | |
14054 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14056 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14057 | else |
14058 | # We need a cross tool | |
81ecdfbb RW |
14059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14060 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14061 | fi |
14062 | fi | |
4b900473 | 14063 | |
81ecdfbb RW |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14065 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14066 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14067 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14068 | # We already found the complete path | |
b8025f34 | 14069 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14071 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14072 | else |
14073 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14075 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14076 | fi |
be01d343 PB |
14077 | else |
14078 | ok=yes | |
14079 | case " ${configdirs} " in | |
14080 | *" gcc "*) ;; | |
14081 | *) ok=no ;; | |
14082 | esac | |
14083 | case ,${enable_languages}, in | |
14084 | *,fortran,*) ;; | |
14085 | *) ok=no ;; | |
14086 | esac | |
14087 | if test $ok = yes; then | |
14088 | # An in-tree tool is available and we can use it | |
14089 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14091 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14092 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14093 | # We already found the complete path | |
b8025f34 | 14094 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14096 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14097 | elif test "x$target" = "x$host"; then |
14098 | # We can use an host tool | |
14099 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14101 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14102 | else |
14103 | # We need a cross tool | |
81ecdfbb RW |
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14105 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14106 | fi |
14107 | fi | |
4b900473 | 14108 | |
e552509b ILT |
14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14110 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14111 | if test "x${build}" != "x${host}" ; then | |
14112 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14113 | # We already found the complete path | |
14114 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14116 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14117 | else | |
14118 | # Canadian cross, just use what we found | |
14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14120 | $as_echo "pre-installed" >&6; } | |
14121 | fi | |
14122 | else | |
14123 | ok=yes | |
14124 | case " ${configdirs} " in | |
14125 | *" gcc "*) ;; | |
14126 | *) ok=no ;; | |
14127 | esac | |
14128 | case ,${enable_languages}, in | |
14129 | *,go,*) ;; | |
14130 | *) ok=no ;; | |
14131 | esac | |
14132 | if test $ok = yes; then | |
14133 | # An in-tree tool is available and we can use it | |
14134 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14136 | $as_echo "just compiled" >&6; } | |
14137 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14138 | # We already found the complete path | |
14139 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14141 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14142 | elif test "x$target" = "x$host"; then | |
14143 | # We can use an host tool | |
14144 | GOC_FOR_TARGET='$(GOC)' | |
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14146 | $as_echo "host tool" >&6; } | |
14147 | else | |
14148 | # We need a cross tool | |
14149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14150 | $as_echo "pre-installed" >&6; } | |
14151 | fi | |
14152 | fi | |
14153 | ||
81ecdfbb RW |
14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14155 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14156 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14157 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14158 | # We already found the complete path | |
b8025f34 | 14159 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14161 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14162 | else |
14163 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14165 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14166 | fi |
be01d343 PB |
14167 | else |
14168 | ok=yes | |
14169 | case " ${configdirs} " in | |
14170 | *" ld "*) ;; | |
14171 | *) ok=no ;; | |
14172 | esac | |
c6b750e1 | 14173 | |
be01d343 PB |
14174 | if test $ok = yes; then |
14175 | # An in-tree tool is available and we can use it | |
14176 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14178 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14179 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14180 | # We already found the complete path | |
b8025f34 | 14181 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14183 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14184 | elif test "x$target" = "x$host"; then |
14185 | # We can use an host tool | |
14186 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14188 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14189 | else |
14190 | # We need a cross tool | |
81ecdfbb RW |
14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14192 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14193 | fi |
14194 | fi | |
4b900473 | 14195 | |
81ecdfbb RW |
14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14197 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14198 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14199 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14200 | # We already found the complete path | |
b8025f34 | 14201 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14203 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14204 | else |
14205 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14207 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14208 | fi |
be01d343 | 14209 | else |
2429c060 PB |
14210 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14211 | # We already found the complete path | |
b8025f34 | 14212 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14214 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14215 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14216 | # We can use an host tool |
14217 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14219 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14220 | else |
14221 | # We need a cross tool | |
81ecdfbb RW |
14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14223 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14224 | fi |
14225 | fi | |
4b900473 | 14226 | |
81ecdfbb RW |
14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14228 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14229 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14230 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14231 | # We already found the complete path | |
b8025f34 | 14232 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14234 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14235 | else |
14236 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14238 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14239 | fi |
be01d343 PB |
14240 | else |
14241 | ok=yes | |
14242 | case " ${configdirs} " in | |
14243 | *" binutils "*) ;; | |
14244 | *) ok=no ;; | |
14245 | esac | |
c6b750e1 | 14246 | |
be01d343 PB |
14247 | if test $ok = yes; then |
14248 | # An in-tree tool is available and we can use it | |
14249 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14251 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14252 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14253 | # We already found the complete path | |
b8025f34 | 14254 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14256 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14257 | elif test "x$target" = "x$host"; then |
14258 | # We can use an host tool | |
14259 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14261 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14262 | else |
14263 | # We need a cross tool | |
81ecdfbb RW |
14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14265 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14266 | fi |
14267 | fi | |
4b900473 | 14268 | |
6b91c541 AP |
14269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14270 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14271 | if test "x${build}" != "x${host}" ; then | |
14272 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14273 | # We already found the complete path | |
14274 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14276 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14277 | else | |
14278 | # Canadian cross, just use what we found | |
14279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14280 | $as_echo "pre-installed" >&6; } | |
14281 | fi | |
14282 | else | |
14283 | ok=yes | |
14284 | case " ${configdirs} " in | |
14285 | *" binutils "*) ;; | |
14286 | *) ok=no ;; | |
14287 | esac | |
14288 | ||
14289 | if test $ok = yes; then | |
14290 | # An in-tree tool is available and we can use it | |
14291 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14293 | $as_echo "just compiled" >&6; } | |
14294 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14295 | # We already found the complete path | |
14296 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14298 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14299 | elif test "x$target" = "x$host"; then | |
14300 | # We can use an host tool | |
1b6c0831 | 14301 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14303 | $as_echo "host tool" >&6; } | |
14304 | else | |
14305 | # We need a cross tool | |
14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14307 | $as_echo "pre-installed" >&6; } | |
14308 | fi | |
14309 | fi | |
14310 | ||
81ecdfbb RW |
14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14312 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14313 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14314 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14315 | # We already found the complete path | |
b8025f34 | 14316 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14318 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14319 | else |
14320 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14322 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14323 | fi |
be01d343 PB |
14324 | else |
14325 | ok=yes | |
14326 | case " ${configdirs} " in | |
14327 | *" binutils "*) ;; | |
14328 | *) ok=no ;; | |
14329 | esac | |
c6b750e1 | 14330 | |
be01d343 PB |
14331 | if test $ok = yes; then |
14332 | # An in-tree tool is available and we can use it | |
14333 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14335 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14336 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14337 | # We already found the complete path | |
b8025f34 | 14338 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14340 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14341 | elif test "x$target" = "x$host"; then |
14342 | # We can use an host tool | |
14343 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14345 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14346 | else |
14347 | # We need a cross tool | |
81ecdfbb RW |
14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14349 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14350 | fi |
14351 | fi | |
4b900473 | 14352 | |
81ecdfbb RW |
14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14354 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14355 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14356 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14357 | # We already found the complete path | |
b8025f34 | 14358 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14360 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14361 | else |
14362 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14364 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14365 | fi |
be01d343 PB |
14366 | else |
14367 | ok=yes | |
14368 | case " ${configdirs} " in | |
14369 | *" binutils "*) ;; | |
14370 | *) ok=no ;; | |
14371 | esac | |
c6b750e1 | 14372 | |
be01d343 PB |
14373 | if test $ok = yes; then |
14374 | # An in-tree tool is available and we can use it | |
14375 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14377 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14378 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14379 | # We already found the complete path | |
b8025f34 | 14380 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14382 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14383 | elif test "x$target" = "x$host"; then |
14384 | # We can use an host tool | |
14385 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14387 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14388 | else |
14389 | # We need a cross tool | |
81ecdfbb RW |
14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14391 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14392 | fi |
14393 | fi | |
4b900473 | 14394 | |
b121d7d4 DD |
14395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14396 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14397 | if test "x${build}" != "x${host}" ; then | |
14398 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14399 | # We already found the complete path | |
14400 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14402 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14403 | else | |
14404 | # Canadian cross, just use what we found | |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14406 | $as_echo "pre-installed" >&6; } | |
14407 | fi | |
14408 | else | |
14409 | ok=yes | |
14410 | case " ${configdirs} " in | |
14411 | *" binutils "*) ;; | |
14412 | *) ok=no ;; | |
14413 | esac | |
14414 | ||
14415 | if test $ok = yes; then | |
14416 | # An in-tree tool is available and we can use it | |
14417 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14419 | $as_echo "just compiled" >&6; } | |
14420 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14421 | # We already found the complete path | |
14422 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14424 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14425 | elif test "x$target" = "x$host"; then | |
14426 | # We can use an host tool | |
14427 | READELF_FOR_TARGET='$(READELF)' | |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14429 | $as_echo "host tool" >&6; } | |
14430 | else | |
14431 | # We need a cross tool | |
14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14433 | $as_echo "pre-installed" >&6; } | |
14434 | fi | |
14435 | fi | |
14436 | ||
81ecdfbb RW |
14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14438 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14439 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14440 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14441 | # We already found the complete path | |
b8025f34 | 14442 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14444 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14445 | else |
14446 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14448 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14449 | fi |
be01d343 PB |
14450 | else |
14451 | ok=yes | |
14452 | case " ${configdirs} " in | |
14453 | *" binutils "*) ;; | |
14454 | *) ok=no ;; | |
14455 | esac | |
c6b750e1 | 14456 | |
be01d343 PB |
14457 | if test $ok = yes; then |
14458 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14459 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14461 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14462 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14463 | # We already found the complete path | |
b8025f34 | 14464 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14466 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14467 | elif test "x$target" = "x$host"; then |
14468 | # We can use an host tool | |
14469 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14471 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14472 | else |
14473 | # We need a cross tool | |
81ecdfbb RW |
14474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14475 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14476 | fi |
14477 | fi | |
4b900473 | 14478 | |
81ecdfbb RW |
14479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14480 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14481 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14482 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14483 | # We already found the complete path | |
b8025f34 | 14484 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14486 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14487 | else |
14488 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14490 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14491 | fi |
be01d343 PB |
14492 | else |
14493 | ok=yes | |
14494 | case " ${configdirs} " in | |
14495 | *" binutils "*) ;; | |
14496 | *) ok=no ;; | |
14497 | esac | |
c6b750e1 | 14498 | |
be01d343 PB |
14499 | if test $ok = yes; then |
14500 | # An in-tree tool is available and we can use it | |
14501 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14503 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14504 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14505 | # We already found the complete path | |
b8025f34 | 14506 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14508 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14509 | elif test "x$target" = "x$host"; then |
14510 | # We can use an host tool | |
14511 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14513 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14514 | else |
14515 | # We need a cross tool | |
81ecdfbb RW |
14516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14517 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14518 | fi |
a0da8069 | 14519 | fi |
54752a6b | 14520 | |
81ecdfbb RW |
14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14522 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14523 | if test "x${build}" != "x${host}" ; then |
14524 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14525 | # We already found the complete path | |
14526 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14528 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14529 | else |
14530 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14532 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14533 | fi |
14534 | else | |
14535 | ok=yes | |
14536 | case " ${configdirs} " in | |
14537 | *" binutils "*) ;; | |
14538 | *) ok=no ;; | |
14539 | esac | |
14540 | ||
14541 | if test $ok = yes; then | |
14542 | # An in-tree tool is available and we can use it | |
14543 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14545 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14546 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14547 | # We already found the complete path | |
14548 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14550 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14551 | elif test "x$target" = "x$host"; then |
14552 | # We can use an host tool | |
14553 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14555 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14556 | else |
14557 | # We need a cross tool | |
81ecdfbb RW |
14558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14559 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14560 | fi |
14561 | fi | |
14562 | ||
54752a6b NN |
14563 | |
14564 | ||
be01d343 | 14565 | |
4b900473 | 14566 | |
a0da8069 NN |
14567 | # Certain tools may need extra flags. |
14568 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14569 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14570 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14571 | ||
be01d343 PB |
14572 | # When building target libraries, except in a Canadian cross, we use |
14573 | # the same toolchain as the compiler we just built. | |
14574 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14575 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14576 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14577 | if test $host = $build; then | |
14578 | case " $configdirs " in | |
14579 | *" gcc "*) | |
14580 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14581 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14582 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14583 | ;; | |
14584 | esac | |
14585 | fi | |
14586 | ||
14587 | ||
14588 | ||
14589 | ||
14590 | ||
81ecdfbb RW |
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14592 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14593 | # Check whether --enable-maintainer-mode was given. | |
14594 | if test "${enable_maintainer_mode+set}" = set; then : | |
14595 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14596 | else |
14597 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14598 | fi |
14599 | ||
14600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14601 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14602 | |
14603 | ||
14604 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14605 | MAINTAINER_MODE_TRUE= | |
14606 | MAINTAINER_MODE_FALSE='#' | |
14607 | else | |
14608 | MAINTAINER_MODE_TRUE='#' | |
14609 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14610 | fi |
3d5e36ae AO |
14611 | MAINT=$MAINTAINER_MODE_TRUE |
14612 | ||
1d39f329 NN |
14613 | # --------------------- |
14614 | # GCC bootstrap support | |
14615 | # --------------------- | |
14616 | ||
14617 | # Stage specific cflags for build. | |
14618 | stage1_cflags="-g" | |
14619 | case $build in | |
14620 | vax-*-*) | |
14621 | case ${GCC} in | |
14622 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14623 | *) stage1_cflags="-g -J" ;; | |
14624 | esac ;; | |
1d39f329 NN |
14625 | esac |
14626 | ||
1d89b610 | 14627 | |
1d39f329 | 14628 | |
8a0d8a5c | 14629 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14630 | # Check whether --enable-stage1-checking was given. |
14631 | if test "${enable_stage1_checking+set}" = set; then : | |
14632 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14633 | else |
5566c1fa | 14634 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
14635 | # For --disable-checking or implicit --enable-checking=release, avoid |
14636 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14637 | # bootstraps. See PR62077. | |
ce6c656d L |
14638 | case $BUILD_CONFIG in |
14639 | *lto*) | |
05a13254 NC |
14640 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14641 | *) | |
14642 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 14643 | esac |
05a13254 NC |
14644 | if test "x$enable_checking" = x && \ |
14645 | test -d ${srcdir}/gcc && \ | |
14646 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14647 | stage1_checking=--enable-checking=yes,types,extra | |
14648 | fi | |
8a0d8a5c | 14649 | else |
5566c1fa | 14650 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14651 | fi |
81ecdfbb | 14652 | fi |
8a0d8a5c PB |
14653 | |
14654 | ||
c6b750e1 | 14655 | |
81ecdfbb RW |
14656 | # Enable -Werror in bootstrap stage2 and later. |
14657 | # Check whether --enable-werror was given. | |
14658 | if test "${enable_werror+set}" = set; then : | |
14659 | enableval=$enable_werror; | |
1a6f2dc7 NN |
14660 | case ${enable_werror} in |
14661 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14662 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14663 | esac |
14664 | ||
82033c9b | 14665 | else |
82033c9b | 14666 | |
bf41f30d NC |
14667 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
14668 | case $BUILD_CONFIG in | |
14669 | bootstrap-debug) | |
14670 | stage2_werror_flag="--enable-werror-always" ;; | |
14671 | "") | |
14672 | stage2_werror_flag="--enable-werror-always" ;; | |
14673 | esac | |
14674 | fi | |
82033c9b | 14675 | |
bf41f30d | 14676 | fi |
82033c9b | 14677 | |
1b6c0831 | 14678 | |
1b6c0831 | 14679 | |
1b6c0831 | 14680 | |
e8a5fa9c RW |
14681 | # Specify what files to not compare during bootstrap. |
14682 | ||
14683 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14684 | case "$target" in | |
14685 | hppa*64*-*-hpux*) ;; | |
bf41f30d | 14686 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
1488e230 | 14687 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14688 | esac |
14689 | ||
14690 | ||
81ecdfbb RW |
14691 | ac_config_files="$ac_config_files Makefile" |
14692 | ||
c6b750e1 | 14693 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14694 | # This file is a shell script that caches the results of configure |
14695 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14696 | # scripts and configure runs, see configure's option --config-cache. |
14697 | # It is not useful on other systems. If it contains results you don't | |
14698 | # want to keep, you may remove or edit it. | |
a0da8069 | 14699 | # |
c6b750e1 DJ |
14700 | # config.status only pays attention to the cache file if you give it |
14701 | # the --recheck option to rerun configure. | |
a0da8069 | 14702 | # |
c6b750e1 DJ |
14703 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14704 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14705 | # following values. | |
14706 | ||
14707 | _ACEOF | |
14708 | ||
a0da8069 NN |
14709 | # The following way of writing the cache mishandles newlines in values, |
14710 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14711 | # So, we kill variables containing newlines. |
a0da8069 NN |
14712 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14713 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14714 | ( |
14715 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14716 | eval ac_val=\$$ac_var | |
14717 | case $ac_val in #( | |
14718 | *${as_nl}*) | |
14719 | case $ac_var in #( | |
14720 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14721 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14722 | esac | |
14723 | case $ac_var in #( | |
14724 | _ | IFS | as_nl) ;; #( | |
14725 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14726 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14727 | esac ;; | |
14728 | esac | |
14729 | done | |
14730 | ||
c6b750e1 | 14731 | (set) 2>&1 | |
81ecdfbb RW |
14732 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14733 | *${as_nl}ac_space=\ *) | |
14734 | # `set' does not quote correctly, so add quotes: double-quote | |
14735 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14736 | sed -n \ |
14737 | "s/'/'\\\\''/g; | |
14738 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14739 | ;; #( |
c6b750e1 DJ |
14740 | *) |
14741 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14742 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14743 | ;; |
81ecdfbb RW |
14744 | esac | |
14745 | sort | |
14746 | ) | | |
c6b750e1 | 14747 | sed ' |
81ecdfbb | 14748 | /^ac_cv_env_/b end |
c6b750e1 | 14749 | t clear |
81ecdfbb | 14750 | :clear |
c6b750e1 DJ |
14751 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14752 | t end | |
81ecdfbb RW |
14753 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14754 | :end' >>confcache | |
14755 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14756 | if test -w "$cache_file"; then | |
d0ac1c44 | 14757 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14759 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14760 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14761 | cat confcache >"$cache_file" | |
14762 | else | |
14763 | case $cache_file in #( | |
14764 | */* | ?:*) | |
14765 | mv -f confcache "$cache_file"$$ && | |
14766 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14767 | *) | |
14768 | mv -f confcache "$cache_file" ;; | |
14769 | esac | |
14770 | fi | |
14771 | fi | |
a0da8069 | 14772 | else |
81ecdfbb RW |
14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14774 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14775 | fi |
852e5f18 | 14776 | fi |
a0da8069 | 14777 | rm -f confcache |
852e5f18 | 14778 | |
a0da8069 NN |
14779 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14780 | # Let make expand exec_prefix. | |
14781 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14782 | |
a0da8069 NN |
14783 | # Transform confdefs.h into DEFS. |
14784 | # Protect against shell expansion while executing Makefile rules. | |
14785 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14786 | # |
14787 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14788 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14789 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14790 | ac_script=' |
14791 | :mline | |
14792 | /\\$/{ | |
14793 | N | |
14794 | s,\\\n,, | |
14795 | b mline | |
14796 | } | |
c6b750e1 | 14797 | t clear |
81ecdfbb RW |
14798 | :clear |
14799 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14800 | t quote |
81ecdfbb | 14801 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14802 | t quote |
81ecdfbb RW |
14803 | b any |
14804 | :quote | |
14805 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14806 | s/\[/\\&/g | |
14807 | s/\]/\\&/g | |
14808 | s/\$/$$/g | |
14809 | H | |
14810 | :any | |
14811 | ${ | |
14812 | g | |
14813 | s/^\n// | |
14814 | s/\n/ /g | |
14815 | p | |
14816 | } | |
14817 | ' | |
14818 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14819 | |
14820 | ||
14821 | ac_libobjs= | |
14822 | ac_ltlibobjs= | |
d0ac1c44 | 14823 | U= |
c6b750e1 DJ |
14824 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14825 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14826 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14827 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14828 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14829 | # will be set to the directory where LIBOBJS objects are built. | |
14830 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14831 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14832 | done |
14833 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14834 | |
c6b750e1 | 14835 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14836 | |
cac3d6c4 | 14837 | |
c6b750e1 | 14838 | |
d0ac1c44 | 14839 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 14840 | ac_write_fail=0 |
c6b750e1 DJ |
14841 | ac_clean_files_save=$ac_clean_files |
14842 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14843 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14844 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14845 | as_write_fail=0 | |
14846 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14847 | #! $SHELL |
14848 | # Generated by $as_me. | |
a0da8069 | 14849 | # Run this file to recreate the current configuration. |
a0da8069 | 14850 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14851 | # configure, is in config.log if it exists. |
376a0e54 | 14852 | |
c6b750e1 DJ |
14853 | debug=false |
14854 | ac_cs_recheck=false | |
14855 | ac_cs_silent=false | |
c6b750e1 | 14856 | |
81ecdfbb RW |
14857 | SHELL=\${CONFIG_SHELL-$SHELL} |
14858 | export SHELL | |
14859 | _ASEOF | |
14860 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14861 | ## -------------------- ## | |
14862 | ## M4sh Initialization. ## | |
14863 | ## -------------------- ## | |
14864 | ||
14865 | # Be more Bourne compatible | |
14866 | DUALCASE=1; export DUALCASE # for MKS sh | |
14867 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14868 | emulate sh |
14869 | NULLCMD=: | |
81ecdfbb | 14870 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14871 | # is contrary to our usage. Disable this feature. |
14872 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14873 | setopt NO_GLOB_SUBST |
14874 | else | |
14875 | case `(set -o) 2>/dev/null` in #( | |
14876 | *posix*) : | |
14877 | set -o posix ;; #( | |
14878 | *) : | |
14879 | ;; | |
14880 | esac | |
c6b750e1 | 14881 | fi |
c6b750e1 | 14882 | |
81ecdfbb RW |
14883 | |
14884 | as_nl=' | |
14885 | ' | |
14886 | export as_nl | |
14887 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14888 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14889 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14890 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14891 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14892 | # but without wasting forks for bash or zsh. | |
14893 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14894 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14895 | as_echo='print -r --' | |
14896 | as_echo_n='print -rn --' | |
14897 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14898 | as_echo='printf %s\n' | |
14899 | as_echo_n='printf %s' | |
14900 | else | |
14901 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14902 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14903 | as_echo_n='/usr/ucb/echo -n' | |
14904 | else | |
14905 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14906 | as_echo_n_body='eval | |
14907 | arg=$1; | |
14908 | case $arg in #( | |
14909 | *"$as_nl"*) | |
14910 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14911 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14912 | esac; | |
14913 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14914 | ' | |
14915 | export as_echo_n_body | |
14916 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14917 | fi | |
14918 | export as_echo_body | |
14919 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14920 | fi |
14921 | ||
81ecdfbb RW |
14922 | # The user is always right. |
14923 | if test "${PATH_SEPARATOR+set}" != set; then | |
14924 | PATH_SEPARATOR=: | |
14925 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14926 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14927 | PATH_SEPARATOR=';' | |
14928 | } | |
14929 | fi | |
14930 | ||
14931 | ||
14932 | # IFS | |
14933 | # We need space, tab and new line, in precisely that order. Quoting is | |
14934 | # there to prevent editors from complaining about space-tab. | |
14935 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14936 | # splitting by setting IFS to empty value.) | |
14937 | IFS=" "" $as_nl" | |
14938 | ||
14939 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 14940 | as_myself= |
81ecdfbb RW |
14941 | case $0 in #(( |
14942 | *[\\/]* ) as_myself=$0 ;; | |
14943 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14944 | for as_dir in $PATH | |
14945 | do | |
14946 | IFS=$as_save_IFS | |
14947 | test -z "$as_dir" && as_dir=. | |
14948 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14949 | done | |
14950 | IFS=$as_save_IFS | |
14951 | ||
14952 | ;; | |
14953 | esac | |
14954 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14955 | # in which case we are not to be found in the path. | |
14956 | if test "x$as_myself" = x; then | |
14957 | as_myself=$0 | |
14958 | fi | |
14959 | if test ! -f "$as_myself"; then | |
14960 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14961 | exit 1 | |
14962 | fi | |
c6b750e1 | 14963 | |
81ecdfbb RW |
14964 | # Unset variables that we do not need and which cause bugs (e.g. in |
14965 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14966 | # suppresses any "Segmentation fault" message there. '((' could | |
14967 | # trigger a bug in pdksh 5.2.14. | |
14968 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14969 | do eval test x\${$as_var+set} = xset \ | |
14970 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14971 | done | |
c6b750e1 DJ |
14972 | PS1='$ ' |
14973 | PS2='> ' | |
14974 | PS4='+ ' | |
14975 | ||
14976 | # NLS nuisances. | |
81ecdfbb RW |
14977 | LC_ALL=C |
14978 | export LC_ALL | |
14979 | LANGUAGE=C | |
14980 | export LANGUAGE | |
14981 | ||
14982 | # CDPATH. | |
14983 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14984 | ||
14985 | ||
d0ac1c44 SM |
14986 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14987 | # ---------------------------------------- | |
81ecdfbb RW |
14988 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14989 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 14990 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
14991 | as_fn_error () |
14992 | { | |
d0ac1c44 SM |
14993 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14994 | if test "$4"; then | |
14995 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14996 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 14997 | fi |
d0ac1c44 | 14998 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
14999 | as_fn_exit $as_status |
15000 | } # as_fn_error | |
15001 | ||
15002 | ||
15003 | # as_fn_set_status STATUS | |
15004 | # ----------------------- | |
15005 | # Set $? to STATUS, without forking. | |
15006 | as_fn_set_status () | |
15007 | { | |
15008 | return $1 | |
15009 | } # as_fn_set_status | |
15010 | ||
15011 | # as_fn_exit STATUS | |
15012 | # ----------------- | |
15013 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15014 | as_fn_exit () | |
15015 | { | |
15016 | set +e | |
15017 | as_fn_set_status $1 | |
15018 | exit $1 | |
15019 | } # as_fn_exit | |
15020 | ||
15021 | # as_fn_unset VAR | |
15022 | # --------------- | |
15023 | # Portably unset VAR. | |
15024 | as_fn_unset () | |
15025 | { | |
15026 | { eval $1=; unset $1;} | |
15027 | } | |
15028 | as_unset=as_fn_unset | |
15029 | # as_fn_append VAR VALUE | |
15030 | # ---------------------- | |
15031 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15032 | # advantage of any shell optimizations that allow amortized linear growth over | |
15033 | # repeated appends, instead of the typical quadratic growth present in naive | |
15034 | # implementations. | |
15035 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15036 | eval 'as_fn_append () | |
15037 | { | |
15038 | eval $1+=\$2 | |
15039 | }' | |
15040 | else | |
15041 | as_fn_append () | |
15042 | { | |
15043 | eval $1=\$$1\$2 | |
15044 | } | |
15045 | fi # as_fn_append | |
15046 | ||
15047 | # as_fn_arith ARG... | |
15048 | # ------------------ | |
15049 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15050 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15051 | # must be portable across $(()) and expr. | |
15052 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15053 | eval 'as_fn_arith () | |
15054 | { | |
15055 | as_val=$(( $* )) | |
15056 | }' | |
15057 | else | |
15058 | as_fn_arith () | |
15059 | { | |
15060 | as_val=`expr "$@" || test $? -eq 1` | |
15061 | } | |
15062 | fi # as_fn_arith | |
15063 | ||
c6b750e1 | 15064 | |
81ecdfbb RW |
15065 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15066 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15067 | as_expr=expr |
15068 | else | |
15069 | as_expr=false | |
15070 | fi | |
15071 | ||
81ecdfbb | 15072 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15073 | as_basename=basename |
15074 | else | |
15075 | as_basename=false | |
15076 | fi | |
15077 | ||
81ecdfbb RW |
15078 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15079 | as_dirname=dirname | |
15080 | else | |
15081 | as_dirname=false | |
15082 | fi | |
c6b750e1 | 15083 | |
81ecdfbb | 15084 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15085 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15086 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15087 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15088 | $as_echo X/"$0" | | |
15089 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15090 | s//\1/ | |
15091 | q | |
15092 | } | |
15093 | /^X\/\(\/\/\)$/{ | |
15094 | s//\1/ | |
15095 | q | |
15096 | } | |
15097 | /^X\/\(\/\).*/{ | |
15098 | s//\1/ | |
15099 | q | |
15100 | } | |
15101 | s/.*/./; q'` | |
c6b750e1 | 15102 | |
c6b750e1 DJ |
15103 | # Avoid depending upon Character Ranges. |
15104 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15105 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15106 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15107 | as_cr_digits='0123456789' | |
15108 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15109 | ||
81ecdfbb RW |
15110 | ECHO_C= ECHO_N= ECHO_T= |
15111 | case `echo -n x` in #((((( | |
15112 | -n*) | |
15113 | case `echo 'xy\c'` in | |
15114 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15115 | xy) ECHO_C='\c';; | |
15116 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15117 | ECHO_T=' ';; | |
15118 | esac;; | |
15119 | *) | |
15120 | ECHO_N='-n';; | |
c6b750e1 DJ |
15121 | esac |
15122 | ||
81ecdfbb RW |
15123 | rm -f conf$$ conf$$.exe conf$$.file |
15124 | if test -d conf$$.dir; then | |
15125 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15126 | else |
81ecdfbb RW |
15127 | rm -f conf$$.dir |
15128 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15129 | fi |
81ecdfbb RW |
15130 | if (echo >conf$$.file) 2>/dev/null; then |
15131 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15132 | as_ln_s='ln -s' |
81ecdfbb RW |
15133 | # ... but there are two gotchas: |
15134 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15135 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15136 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15137 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15138 | as_ln_s='cp -pR' |
81ecdfbb RW |
15139 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15140 | as_ln_s=ln | |
15141 | else | |
d0ac1c44 | 15142 | as_ln_s='cp -pR' |
c6b750e1 | 15143 | fi |
c6b750e1 | 15144 | else |
d0ac1c44 | 15145 | as_ln_s='cp -pR' |
c6b750e1 | 15146 | fi |
81ecdfbb RW |
15147 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15148 | rmdir conf$$.dir 2>/dev/null | |
15149 | ||
15150 | ||
15151 | # as_fn_mkdir_p | |
15152 | # ------------- | |
15153 | # Create "$as_dir" as a directory, including parents if necessary. | |
15154 | as_fn_mkdir_p () | |
15155 | { | |
15156 | ||
15157 | case $as_dir in #( | |
15158 | -*) as_dir=./$as_dir;; | |
15159 | esac | |
15160 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15161 | as_dirs= | |
15162 | while :; do | |
15163 | case $as_dir in #( | |
15164 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15165 | *) as_qdir=$as_dir;; | |
15166 | esac | |
15167 | as_dirs="'$as_qdir' $as_dirs" | |
15168 | as_dir=`$as_dirname -- "$as_dir" || | |
15169 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15170 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15171 | X"$as_dir" : 'X\(//\)$' \| \ | |
15172 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15173 | $as_echo X"$as_dir" | | |
15174 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15175 | s//\1/ | |
15176 | q | |
15177 | } | |
15178 | /^X\(\/\/\)[^/].*/{ | |
15179 | s//\1/ | |
15180 | q | |
15181 | } | |
15182 | /^X\(\/\/\)$/{ | |
15183 | s//\1/ | |
15184 | q | |
15185 | } | |
15186 | /^X\(\/\).*/{ | |
15187 | s//\1/ | |
15188 | q | |
15189 | } | |
15190 | s/.*/./; q'` | |
15191 | test -d "$as_dir" && break | |
15192 | done | |
15193 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15194 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 15195 | |
c6b750e1 | 15196 | |
81ecdfbb | 15197 | } # as_fn_mkdir_p |
c6b750e1 | 15198 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15199 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15200 | else |
15201 | test -d ./-p && rmdir ./-p | |
15202 | as_mkdir_p=false | |
15203 | fi | |
15204 | ||
d0ac1c44 SM |
15205 | |
15206 | # as_fn_executable_p FILE | |
15207 | # ----------------------- | |
15208 | # Test if FILE is an executable regular file. | |
15209 | as_fn_executable_p () | |
15210 | { | |
15211 | test -f "$1" && test -x "$1" | |
15212 | } # as_fn_executable_p | |
15213 | as_test_x='test -x' | |
15214 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
15215 | |
15216 | # Sed expression to map a string onto a valid CPP name. | |
15217 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15218 | ||
15219 | # Sed expression to map a string onto a valid variable name. | |
15220 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15221 | ||
15222 | ||
c6b750e1 | 15223 | exec 6>&1 |
81ecdfbb RW |
15224 | ## ----------------------------------- ## |
15225 | ## Main body of $CONFIG_STATUS script. ## | |
15226 | ## ----------------------------------- ## | |
15227 | _ASEOF | |
15228 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15229 | ||
15230 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15231 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15232 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15233 | # values after options handling. |
15234 | ac_log=" | |
c6b750e1 | 15235 | This file was extended by $as_me, which was |
d0ac1c44 | 15236 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
15237 | |
15238 | CONFIG_FILES = $CONFIG_FILES | |
15239 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15240 | CONFIG_LINKS = $CONFIG_LINKS | |
15241 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15242 | $ $0 $@ | |
15243 | ||
81ecdfbb RW |
15244 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15245 | " | |
15246 | ||
c6b750e1 DJ |
15247 | _ACEOF |
15248 | ||
81ecdfbb RW |
15249 | case $ac_config_files in *" |
15250 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15251 | esac | |
c6b750e1 | 15252 | |
c6b750e1 | 15253 | |
c6b750e1 | 15254 | |
81ecdfbb RW |
15255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15256 | # Files that config.status was made for. | |
15257 | config_files="$ac_config_files" | |
c6b750e1 | 15258 | |
81ecdfbb | 15259 | _ACEOF |
c6b750e1 | 15260 | |
81ecdfbb | 15261 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15262 | ac_cs_usage="\ |
81ecdfbb RW |
15263 | \`$as_me' instantiates files and other configuration actions |
15264 | from templates according to the current configuration. Unless the files | |
15265 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15266 | |
81ecdfbb | 15267 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15268 | |
15269 | -h, --help print this help, then exit | |
81ecdfbb | 15270 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15271 | --config print configuration, then exit |
81ecdfbb RW |
15272 | -q, --quiet, --silent |
15273 | do not print progress messages | |
c6b750e1 DJ |
15274 | -d, --debug don't remove temporary files |
15275 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15276 | --file=FILE[:TEMPLATE] |
15277 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15278 | |
15279 | Configuration files: | |
15280 | $config_files | |
15281 | ||
81ecdfbb | 15282 | Report bugs to the package provider." |
c6b750e1 | 15283 | |
81ecdfbb RW |
15284 | _ACEOF |
15285 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15286 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
15287 | ac_cs_version="\\ |
15288 | config.status | |
d0ac1c44 SM |
15289 | configured by $0, generated by GNU Autoconf 2.69, |
15290 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 15291 | |
d0ac1c44 | 15292 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
15293 | This config.status script is free software; the Free Software Foundation |
15294 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15295 | |
15296 | ac_pwd='$ac_pwd' | |
15297 | srcdir='$srcdir' | |
15298 | INSTALL='$INSTALL' | |
8e957354 | 15299 | AWK='$AWK' |
81ecdfbb | 15300 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15301 | _ACEOF |
15302 | ||
81ecdfbb RW |
15303 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15304 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15305 | ac_need_defaults=: |
15306 | while test $# != 0 | |
a0da8069 | 15307 | do |
c6b750e1 | 15308 | case $1 in |
d0ac1c44 | 15309 | --*=?*) |
81ecdfbb RW |
15310 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15311 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15312 | ac_shift=: |
15313 | ;; | |
d0ac1c44 SM |
15314 | --*=) |
15315 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15316 | ac_optarg= | |
15317 | ac_shift=: | |
15318 | ;; | |
81ecdfbb | 15319 | *) |
c6b750e1 DJ |
15320 | ac_option=$1 |
15321 | ac_optarg=$2 | |
15322 | ac_shift=shift | |
15323 | ;; | |
c6b750e1 DJ |
15324 | esac |
15325 | ||
15326 | case $ac_option in | |
15327 | # Handling of the options. | |
a0da8069 | 15328 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15329 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15330 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15331 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
15332 | --config | --confi | --conf | --con | --co | --c ) |
15333 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 15334 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
15335 | debug=: ;; |
15336 | --file | --fil | --fi | --f ) | |
15337 | $ac_shift | |
81ecdfbb RW |
15338 | case $ac_optarg in |
15339 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 15340 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
15341 | esac |
15342 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15343 | ac_need_defaults=false;; |
81ecdfbb RW |
15344 | --he | --h | --help | --hel | -h ) |
15345 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15346 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15347 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15348 | ac_cs_silent=: ;; | |
15349 | ||
15350 | # This is an error. | |
d0ac1c44 | 15351 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 15352 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 15353 | |
81ecdfbb RW |
15354 | *) as_fn_append ac_config_targets " $1" |
15355 | ac_need_defaults=false ;; | |
c6b750e1 | 15356 | |
376a0e54 | 15357 | esac |
c6b750e1 | 15358 | shift |
376a0e54 CM |
15359 | done |
15360 | ||
c6b750e1 | 15361 | ac_configure_extra_args= |
376a0e54 | 15362 | |
c6b750e1 DJ |
15363 | if $ac_cs_silent; then |
15364 | exec 6>/dev/null | |
15365 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15366 | fi | |
376a0e54 | 15367 | |
c6b750e1 | 15368 | _ACEOF |
81ecdfbb | 15369 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15370 | if \$ac_cs_recheck; then |
d0ac1c44 | 15371 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
15372 | shift |
15373 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15374 | CONFIG_SHELL='$SHELL' | |
15375 | export CONFIG_SHELL | |
15376 | exec "\$@" | |
c6b750e1 DJ |
15377 | fi |
15378 | ||
15379 | _ACEOF | |
81ecdfbb RW |
15380 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15381 | exec 5>>config.log | |
15382 | { | |
15383 | echo | |
15384 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15385 | ## Running $as_me. ## | |
15386 | _ASBOX | |
15387 | $as_echo "$ac_log" | |
15388 | } >&5 | |
c6b750e1 | 15389 | |
81ecdfbb RW |
15390 | _ACEOF |
15391 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15392 | # |
15393 | # INIT-COMMANDS | |
15394 | # | |
15395 | extrasub_build="$extrasub_build" | |
15396 | extrasub_host="$extrasub_host" | |
15397 | extrasub_target="$extrasub_target" | |
15398 | ||
81ecdfbb | 15399 | _ACEOF |
c6b750e1 | 15400 | |
81ecdfbb | 15401 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15402 | |
81ecdfbb | 15403 | # Handling of arguments. |
c6b750e1 DJ |
15404 | for ac_config_target in $ac_config_targets |
15405 | do | |
81ecdfbb RW |
15406 | case $ac_config_target in |
15407 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15408 | ||
d0ac1c44 | 15409 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
15410 | esac |
15411 | done | |
15412 | ||
81ecdfbb | 15413 | |
c6b750e1 DJ |
15414 | # If the user did not use the arguments to specify the items to instantiate, |
15415 | # then the envvar interface is used. Set only those that are not. | |
15416 | # We use the long form for the default assignment because of an extremely | |
15417 | # bizarre bug on SunOS 4.1.3. | |
15418 | if $ac_need_defaults; then | |
15419 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15420 | fi | |
15421 | ||
15422 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15423 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15424 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15425 | # Hook for its removal unless debugging. |
15426 | # Note that there is a small window in which the directory will not be cleaned: | |
15427 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15428 | $debug || |
15429 | { | |
d0ac1c44 | 15430 | tmp= ac_tmp= |
81ecdfbb | 15431 | trap 'exit_status=$? |
d0ac1c44 SM |
15432 | : "${ac_tmp:=$tmp}" |
15433 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15434 | ' 0 |
15435 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15436 | } |
c6b750e1 DJ |
15437 | # Create a (secure) tmp directory for tmp files. |
15438 | ||
15439 | { | |
81ecdfbb | 15440 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15441 | test -d "$tmp" |
c6b750e1 DJ |
15442 | } || |
15443 | { | |
81ecdfbb RW |
15444 | tmp=./conf$$-$RANDOM |
15445 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15446 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15447 | ac_tmp=$tmp | |
81ecdfbb RW |
15448 | |
15449 | # Set up the scripts for CONFIG_FILES section. | |
15450 | # No need to generate them if there are no CONFIG_FILES. | |
15451 | # This happens for instance with `./config.status config.h'. | |
15452 | if test -n "$CONFIG_FILES"; then | |
15453 | ||
15454 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15455 | ac_cs_awk_getline=: | |
15456 | ac_cs_awk_pipe_init= | |
15457 | ac_cs_awk_read_file=' | |
15458 | while ((getline aline < (F[key])) > 0) | |
15459 | print(aline) | |
15460 | close(F[key])' | |
15461 | ac_cs_awk_pipe_fini= | |
15462 | else | |
15463 | ac_cs_awk_getline=false | |
15464 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15465 | ac_cs_awk_read_file=' | |
15466 | print "|#_!!_#|" | |
15467 | print "cat " F[key] " &&" | |
15468 | '$ac_cs_awk_pipe_init | |
15469 | # The final `:' finishes the AND list. | |
15470 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15471 | fi | |
15472 | ac_cr=`echo X | tr X '\015'` | |
15473 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15474 | # But we know of no other shell where ac_cr would be empty at this | |
15475 | # point, so we can use a bashism as a fallback. | |
15476 | if test "x$ac_cr" = x; then | |
15477 | eval ac_cr=\$\'\\r\' | |
15478 | fi | |
15479 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15480 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15481 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15482 | else |
15483 | ac_cs_awk_cr=$ac_cr | |
15484 | fi | |
15485 | ||
d0ac1c44 | 15486 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15487 | _ACEOF |
15488 | ||
15489 | # Create commands to substitute file output variables. | |
c6b750e1 | 15490 | { |
81ecdfbb | 15491 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 15492 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
15493 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
15494 | echo "_ACAWK" && | |
15495 | echo "_ACEOF" | |
15496 | } >conf$$files.sh && | |
15497 | . ./conf$$files.sh || | |
d0ac1c44 | 15498 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 15499 | rm -f conf$$files.sh |
c6b750e1 | 15500 | |
81ecdfbb RW |
15501 | { |
15502 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15503 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15504 | echo "_ACEOF" | |
15505 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15506 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15507 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15508 | ac_delim='%!_!# ' |
15509 | for ac_last_try in false false false false false :; do | |
15510 | . ./conf$$subs.sh || | |
d0ac1c44 | 15511 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15512 | |
15513 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15514 | if test $ac_delim_n = $ac_delim_num; then | |
15515 | break | |
15516 | elif $ac_last_try; then | |
d0ac1c44 | 15517 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15518 | else |
15519 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15520 | fi | |
15521 | done | |
15522 | rm -f conf$$subs.sh | |
15523 | ||
15524 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15525 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 15526 | _ACEOF |
81ecdfbb RW |
15527 | sed -n ' |
15528 | h | |
15529 | s/^/S["/; s/!.*/"]=/ | |
15530 | p | |
15531 | g | |
15532 | s/^[^!]*!// | |
15533 | :repl | |
15534 | t repl | |
15535 | s/'"$ac_delim"'$// | |
15536 | t delim | |
15537 | :nl | |
15538 | h | |
d0ac1c44 | 15539 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15540 | t more1 |
15541 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15542 | p | |
15543 | n | |
15544 | b repl | |
15545 | :more1 | |
15546 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15547 | p | |
15548 | g | |
15549 | s/.\{148\}// | |
15550 | t nl | |
15551 | :delim | |
15552 | h | |
d0ac1c44 | 15553 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15554 | t more2 |
15555 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15556 | p | |
15557 | b | |
15558 | :more2 | |
15559 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15560 | p | |
15561 | g | |
15562 | s/.\{148\}// | |
15563 | t delim | |
15564 | ' <conf$$subs.awk | sed ' | |
15565 | /^[^""]/{ | |
15566 | N | |
15567 | s/\n// | |
15568 | } | |
15569 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15570 | rm -f conf$$subs.awk | |
15571 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15572 | _ACAWK | |
d0ac1c44 | 15573 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15574 | for (key in S) S_is_set[key] = 1 |
15575 | FS = "\a" | |
15576 | \$ac_cs_awk_pipe_init | |
15577 | } | |
15578 | { | |
15579 | line = $ 0 | |
15580 | nfields = split(line, field, "@") | |
15581 | substed = 0 | |
15582 | len = length(field[1]) | |
15583 | for (i = 2; i < nfields; i++) { | |
15584 | key = field[i] | |
15585 | keylen = length(key) | |
15586 | if (S_is_set[key]) { | |
15587 | value = S[key] | |
15588 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15589 | len += length(value) + length(field[++i]) | |
15590 | substed = 1 | |
15591 | } else | |
15592 | len += 1 + keylen | |
15593 | } | |
15594 | if (nfields == 3 && !substed) { | |
15595 | key = field[2] | |
15596 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15597 | \$ac_cs_awk_read_file | |
15598 | next | |
15599 | } | |
15600 | } | |
15601 | print line | |
15602 | } | |
15603 | \$ac_cs_awk_pipe_fini | |
15604 | _ACAWK | |
15605 | _ACEOF | |
15606 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15607 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15608 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15609 | else | |
15610 | cat | |
d0ac1c44 SM |
15611 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15612 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
15613 | _ACEOF |
15614 | ||
d0ac1c44 SM |
15615 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15616 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15617 | # trailing colons and then remove the whole line if VPATH becomes empty |
15618 | # (actually we leave an empty line to preserve line numbers). | |
15619 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15620 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15621 | h | |
15622 | s/// | |
15623 | s/^/:/ | |
15624 | s/[ ]*$/:/ | |
15625 | s/:\$(srcdir):/:/g | |
15626 | s/:\${srcdir}:/:/g | |
15627 | s/:@srcdir@:/:/g | |
15628 | s/^:*// | |
81ecdfbb | 15629 | s/:*$// |
d0ac1c44 SM |
15630 | x |
15631 | s/\(=[ ]*\).*/\1/ | |
15632 | G | |
15633 | s/\n// | |
81ecdfbb RW |
15634 | s/^[^=]*=[ ]*$// |
15635 | }' | |
15636 | fi | |
c6b750e1 | 15637 | |
81ecdfbb RW |
15638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15639 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15640 | |
c6b750e1 | 15641 | |
81ecdfbb RW |
15642 | eval set X " :F $CONFIG_FILES " |
15643 | shift | |
15644 | for ac_tag | |
15645 | do | |
15646 | case $ac_tag in | |
15647 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15648 | esac | |
15649 | case $ac_mode$ac_tag in | |
15650 | :[FHL]*:*);; | |
d0ac1c44 | 15651 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
15652 | :[FH]-) ac_tag=-:-;; |
15653 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15654 | esac | |
15655 | ac_save_IFS=$IFS | |
15656 | IFS=: | |
15657 | set x $ac_tag | |
15658 | IFS=$ac_save_IFS | |
15659 | shift | |
15660 | ac_file=$1 | |
15661 | shift | |
252b5132 | 15662 | |
81ecdfbb RW |
15663 | case $ac_mode in |
15664 | :L) ac_source=$1;; | |
15665 | :[FH]) | |
15666 | ac_file_inputs= | |
15667 | for ac_f | |
15668 | do | |
15669 | case $ac_f in | |
d0ac1c44 | 15670 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
15671 | *) # Look for the file first in the build tree, then in the source tree |
15672 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15673 | # because $ac_f cannot contain `:'. | |
15674 | test -f "$ac_f" || | |
15675 | case $ac_f in | |
15676 | [\\/$]*) false;; | |
15677 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15678 | esac || | |
d0ac1c44 | 15679 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
15680 | esac |
15681 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15682 | as_fn_append ac_file_inputs " '$ac_f'" | |
15683 | done | |
c6b750e1 | 15684 | |
81ecdfbb RW |
15685 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15686 | # use $as_me), people would be surprised to read: | |
15687 | # /* config.h. Generated by config.status. */ | |
15688 | configure_input='Generated from '` | |
15689 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15690 | `' by configure.' | |
15691 | if test x"$ac_file" != x-; then | |
15692 | configure_input="$ac_file. $configure_input" | |
15693 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15694 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15695 | fi |
81ecdfbb RW |
15696 | # Neutralize special characters interpreted by sed in replacement strings. |
15697 | case $configure_input in #( | |
15698 | *\&* | *\|* | *\\* ) | |
15699 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15700 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15701 | *) ac_sed_conf_input=$configure_input;; | |
15702 | esac | |
cac3d6c4 | 15703 | |
81ecdfbb | 15704 | case $ac_tag in |
d0ac1c44 SM |
15705 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15706 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
15707 | esac |
15708 | ;; | |
a0da8069 | 15709 | esac |
252b5132 | 15710 | |
81ecdfbb | 15711 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15712 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15713 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15714 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15715 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15716 | $as_echo X"$ac_file" | | |
15717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15718 | s//\1/ | |
15719 | q | |
15720 | } | |
15721 | /^X\(\/\/\)[^/].*/{ | |
15722 | s//\1/ | |
15723 | q | |
15724 | } | |
15725 | /^X\(\/\/\)$/{ | |
15726 | s//\1/ | |
15727 | q | |
15728 | } | |
15729 | /^X\(\/\).*/{ | |
15730 | s//\1/ | |
15731 | q | |
15732 | } | |
15733 | s/.*/./; q'` | |
15734 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15735 | ac_builddir=. |
252b5132 | 15736 | |
81ecdfbb RW |
15737 | case "$ac_dir" in |
15738 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15739 | *) | |
15740 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15741 | # A ".." for each directory in $ac_dir_suffix. | |
15742 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15743 | case $ac_top_builddir_sub in | |
15744 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15745 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15746 | esac ;; | |
15747 | esac | |
15748 | ac_abs_top_builddir=$ac_pwd | |
15749 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15750 | # for backward compatibility: | |
15751 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15752 | |
15753 | case $srcdir in | |
81ecdfbb | 15754 | .) # We are building in place. |
c6b750e1 | 15755 | ac_srcdir=. |
81ecdfbb RW |
15756 | ac_top_srcdir=$ac_top_builddir_sub |
15757 | ac_abs_top_srcdir=$ac_pwd ;; | |
15758 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15759 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15760 | ac_top_srcdir=$srcdir |
15761 | ac_abs_top_srcdir=$srcdir ;; | |
15762 | *) # Relative name. | |
15763 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15764 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15765 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15766 | esac |
81ecdfbb | 15767 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15768 | |
252b5132 | 15769 | |
81ecdfbb RW |
15770 | case $ac_mode in |
15771 | :F) | |
15772 | # | |
15773 | # CONFIG_FILE | |
15774 | # | |
c6b750e1 DJ |
15775 | |
15776 | case $INSTALL in | |
15777 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15778 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15779 | esac |
81ecdfbb | 15780 | _ACEOF |
252b5132 | 15781 | |
81ecdfbb RW |
15782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15783 | # If the template does not know about datarootdir, expand it. | |
15784 | # FIXME: This hack should be removed a few years after 2.60. | |
15785 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15786 | ac_sed_dataroot=' | |
15787 | /datarootdir/ { | |
15788 | p | |
15789 | q | |
15790 | } | |
15791 | /@datadir@/p | |
15792 | /@docdir@/p | |
15793 | /@infodir@/p | |
15794 | /@localedir@/p | |
15795 | /@mandir@/p' | |
15796 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15797 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15798 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15800 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15801 | _ACEOF |
81ecdfbb RW |
15802 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15803 | ac_datarootdir_hack=' | |
15804 | s&@datadir@&$datadir&g | |
15805 | s&@docdir@&$docdir&g | |
15806 | s&@infodir@&$infodir&g | |
15807 | s&@localedir@&$localedir&g | |
15808 | s&@mandir@&$mandir&g | |
15809 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15810 | esac | |
15811 | _ACEOF | |
15812 | ||
15813 | # Neutralize VPATH when `$srcdir' = `.'. | |
15814 | # Shell code in configure.ac might set extrasub. | |
15815 | # FIXME: do we really want to maintain this feature? | |
15816 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15817 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15818 | $extrasub |
15819 | _ACEOF | |
81ecdfbb | 15820 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15821 | :t |
15822 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15823 | s|@configure_input@|$ac_sed_conf_input|;t t |
15824 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15825 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15826 | s&@srcdir@&$ac_srcdir&;t t | |
15827 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15828 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15829 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15830 | s&@builddir@&$ac_builddir&;t t | |
15831 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15832 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15833 | s&@INSTALL@&$ac_INSTALL&;t t | |
15834 | $ac_datarootdir_hack | |
15835 | " | |
15836 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15837 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 15838 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 15839 | else |
d0ac1c44 SM |
15840 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
15841 | fi \ | |
15842 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
15843 | |
15844 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
15845 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15846 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15847 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 15848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15849 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 15850 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15851 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 15852 | |
d0ac1c44 | 15853 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 15854 | case $ac_file in |
d0ac1c44 SM |
15855 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15856 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 15857 | esac \ |
d0ac1c44 | 15858 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 15859 | ;; |
c148b4cb | 15860 | |
c148b4cb | 15861 | |
c148b4cb | 15862 | |
81ecdfbb RW |
15863 | esac |
15864 | ||
06a51eac RW |
15865 | |
15866 | case $ac_file$ac_mode in | |
15867 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15868 | sed "$extrasub_host" | | |
15869 | sed "$extrasub_target" > mf$$ | |
15870 | mv -f mf$$ Makefile ;; | |
15871 | ||
15872 | esac | |
81ecdfbb RW |
15873 | done # for ac_tag |
15874 | ||
15875 | ||
15876 | as_fn_exit 0 | |
c6b750e1 | 15877 | _ACEOF |
c6b750e1 DJ |
15878 | ac_clean_files=$ac_clean_files_save |
15879 | ||
81ecdfbb | 15880 | test $ac_write_fail = 0 || |
d0ac1c44 | 15881 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 15882 | |
c6b750e1 DJ |
15883 | |
15884 | # configure is writing to config.log, and then calls config.status. | |
15885 | # config.status does its own redirection, appending to config.log. | |
15886 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15887 | # by configure, so config.status won't be able to write to it; its | |
15888 | # output is simply discarded. So we exec the FD to /dev/null, | |
15889 | # effectively closing config.log, so it can be properly (re)opened and | |
15890 | # appended to by config.status. When coming back to configure, we | |
15891 | # need to make the FD available again. | |
15892 | if test "$no_create" != yes; then | |
15893 | ac_cs_success=: | |
15894 | ac_config_status_args= | |
15895 | test "$silent" = yes && | |
15896 | ac_config_status_args="$ac_config_status_args --quiet" | |
15897 | exec 5>/dev/null | |
15898 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15899 | exec 5>>config.log | |
15900 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15901 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 15902 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
15903 | fi |
15904 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15906 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15907 | fi |
c148b4cb | 15908 |