]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
671aa708 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1c710c3c | 14 | |
5213506e 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 : | |
1c710c3c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e 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 | |
1c710c3c | 31 | fi |
1c710c3c | 32 | |
5213506e 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 | } | |
1c710c3c DJ |
79 | fi |
80 | ||
81 | ||
5213506e 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. | |
22e05272 | 90 | as_myself= |
5213506e 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 | |
1c710c3c DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e 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 | ||
22e05272 JM |
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;} | |
5213506e 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 | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e 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'\" && | |
87264276 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" | |
5213506e 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 | |
1c710c3c | 211 | do |
5213506e 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 : | |
22e05272 JM |
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 | |
5213506e 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." | |
1c710c3c | 266 | else |
5213506e 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." | |
1c710c3c | 271 | fi |
5213506e 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 | |
1c710c3c | 301 | |
5213506e 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" | |
22e05272 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
22e05272 JM |
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 | |
5213506e 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 | ||
22e05272 JM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
5213506e 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 | |
22e05272 | 407 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
408 | as_fn_error () |
409 | { | |
22e05272 JM |
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 | |
5213506e | 414 | fi |
22e05272 | 415 | $as_echo "$as_me: error: $2" >&2 |
5213506e 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 | |
1c710c3c DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
5213506e | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
5213506e 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 | |
1c710c3c | 437 | |
5213506e | 438 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
5213506e 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'` | |
1c710c3c | 456 | |
2aeb72e9 DD |
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 | |
11a67599 | 463 | |
1c710c3c | 464 | |
5213506e 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 | | |
1c710c3c | 474 | sed ' |
5213506e RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
1c710c3c | 479 | N |
5213506e RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 482 | t loop |
5213506e | 483 | s/-\n.*// |
1c710c3c | 484 | ' >$as_me.lineno && |
5213506e 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; } | |
1c710c3c | 487 | |
22e05272 JM |
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 | |
1c710c3c 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 | |
5213506e RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
1c710c3c DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
5213506e 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';; | |
1c710c3c DJ |
511 | esac |
512 | ||
5213506e RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 516 | else |
5213506e RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 519 | fi |
5213506e RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 522 | as_ln_s='ln -s' |
5213506e 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. | |
22e05272 | 526 | # In both cases, we have to default to `cp -pR'. |
5213506e | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 528 | as_ln_s='cp -pR' |
5213506e RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
22e05272 | 532 | as_ln_s='cp -pR' |
2aeb72e9 | 533 | fi |
1c710c3c | 534 | else |
22e05272 | 535 | as_ln_s='cp -pR' |
1c710c3c | 536 | fi |
5213506e RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
5213506e | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
22e05272 JM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
0b0dc272 | 549 | |
1c710c3c DJ |
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 | ||
22e05272 JM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
1c710c3c DJ |
559 | |
560 | # Name of the host. | |
22e05272 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
1c710c3c DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
1c710c3c DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
671aa708 | 568 | ac_default_prefix=/usr/local |
5213506e | 569 | ac_clean_files= |
1c710c3c | 570 | ac_config_libobj_dir=. |
5213506e | 571 | LIBOBJS= |
1c710c3c DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
2aeb72e9 | 576 | |
1c710c3c DJ |
577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
5213506e | 583 | PACKAGE_URL= |
1c710c3c DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
5213506e 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 | |
e7a82751 | 604 | READELF_FOR_TARGET |
5213506e | 605 | RANLIB_FOR_TARGET |
e4a9a572 | 606 | OTOOL_FOR_TARGET |
5213506e | 607 | OBJDUMP_FOR_TARGET |
9bccfdf5 | 608 | OBJCOPY_FOR_TARGET |
5213506e RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
c7c99407 | 612 | DSYMUTIL_FOR_TARGET |
5213506e RW |
613 | DLLTOOL_FOR_TARGET |
614 | AS_FOR_TARGET | |
615 | AR_FOR_TARGET | |
b4c522fa | 616 | GDC_FOR_TARGET |
632e2a07 | 617 | GOC_FOR_TARGET |
5213506e | 618 | GFORTRAN_FOR_TARGET |
5213506e RW |
619 | GCC_FOR_TARGET |
620 | CXX_FOR_TARGET | |
621 | CC_FOR_TARGET | |
e7a82751 | 622 | READELF |
e4a9a572 | 623 | OTOOL |
5213506e RW |
624 | OBJDUMP |
625 | OBJCOPY | |
626 | WINDMC | |
627 | WINDRES | |
628 | STRIP | |
629 | RANLIB | |
630 | NM | |
631 | LIPO | |
632 | LD | |
c7c99407 | 633 | DSYMUTIL |
5213506e RW |
634 | DLLTOOL |
635 | AS | |
636 | AR | |
637 | RUNTEST | |
638 | EXPECT | |
639 | MAKEINFO | |
640 | FLEX | |
641 | LEX | |
642 | M4 | |
643 | BISON | |
644 | YACC | |
5213506e RW |
645 | WINDRES_FOR_BUILD |
646 | WINDMC_FOR_BUILD | |
647 | RANLIB_FOR_BUILD | |
648 | NM_FOR_BUILD | |
649 | LD_FOR_BUILD | |
650 | LDFLAGS_FOR_BUILD | |
b4c522fa | 651 | GDC_FOR_BUILD |
632e2a07 | 652 | GOC_FOR_BUILD |
5213506e | 653 | GFORTRAN_FOR_BUILD |
c7c99407 | 654 | DSYMUTIL_FOR_BUILD |
5213506e RW |
655 | DLLTOOL_FOR_BUILD |
656 | CXX_FOR_BUILD | |
657 | CXXFLAGS_FOR_BUILD | |
658 | CFLAGS_FOR_BUILD | |
659 | CC_FOR_BUILD | |
660 | AS_FOR_BUILD | |
661 | AR_FOR_BUILD | |
aae29963 | 662 | target_configdirs |
5213506e | 663 | configdirs |
5213506e | 664 | build_configdirs |
5213506e RW |
665 | INSTALL_GDB_TK |
666 | GDB_TK | |
667 | CONFIGURE_GDB_TK | |
668 | build_tooldir | |
669 | tooldir | |
670 | GCC_SHLIB_SUBDIR | |
671 | RPATH_ENVVAR | |
ffedf511 RW |
672 | target_configargs |
673 | host_configargs | |
674 | build_configargs | |
e12c4094 | 675 | BUILD_CONFIG |
6f57bdf6 | 676 | LDFLAGS_FOR_TARGET |
5213506e RW |
677 | CXXFLAGS_FOR_TARGET |
678 | CFLAGS_FOR_TARGET | |
679 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
680 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 681 | get_gcc_base_ver |
1c01ebf6 | 682 | extra_host_zlib_configure_flags |
d7f09764 | 683 | extra_host_libiberty_configure_flags |
fca38047 | 684 | stage1_languages |
cdfee50a | 685 | host_shared |
45b3824d TS |
686 | extra_linker_plugin_flags |
687 | extra_linker_plugin_configure_flags | |
33ad93b9 | 688 | islinc |
eae1a5d4 | 689 | isllibs |
5213506e | 690 | poststage1_ldflags |
ed2eaa9f | 691 | poststage1_libs |
5213506e | 692 | stage1_ldflags |
0b21f5d3 | 693 | stage1_libs |
0ff2d841 | 694 | extra_isl_gmp_configure_flags |
5213506e RW |
695 | extra_mpc_mpfr_configure_flags |
696 | extra_mpc_gmp_configure_flags | |
697 | extra_mpfr_configure_flags | |
698 | gmpinc | |
699 | gmplibs | |
700 | do_compare | |
701 | GNATMAKE | |
702 | GNATBIND | |
703 | ac_ct_CXX | |
704 | CXXFLAGS | |
705 | CXX | |
706 | OBJEXT | |
707 | EXEEXT | |
708 | ac_ct_CC | |
709 | CPPFLAGS | |
710 | LDFLAGS | |
711 | CFLAGS | |
712 | CC | |
5f520819 | 713 | extra_liboffloadmic_configure_flags |
5213506e RW |
714 | target_subdir |
715 | host_subdir | |
716 | build_subdir | |
717 | build_libsubdir | |
87264276 PB |
718 | AWK |
719 | SED | |
5213506e RW |
720 | LN_S |
721 | LN | |
722 | INSTALL_DATA | |
723 | INSTALL_SCRIPT | |
724 | INSTALL_PROGRAM | |
725 | target_os | |
726 | target_vendor | |
727 | target_cpu | |
728 | target | |
729 | host_os | |
730 | host_vendor | |
731 | host_cpu | |
732 | host | |
733 | target_noncanonical | |
734 | host_noncanonical | |
735 | build_noncanonical | |
736 | build_os | |
737 | build_vendor | |
738 | build_cpu | |
739 | build | |
740 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
741 | target_alias | |
742 | host_alias | |
743 | build_alias | |
744 | LIBS | |
745 | ECHO_T | |
746 | ECHO_N | |
747 | ECHO_C | |
748 | DEFS | |
749 | mandir | |
750 | localedir | |
751 | libdir | |
752 | psdir | |
753 | pdfdir | |
754 | dvidir | |
755 | htmldir | |
756 | infodir | |
757 | docdir | |
758 | oldincludedir | |
759 | includedir | |
760 | localstatedir | |
761 | sharedstatedir | |
762 | sysconfdir | |
763 | datadir | |
764 | datarootdir | |
765 | libexecdir | |
766 | sbindir | |
767 | bindir | |
768 | program_transform_name | |
769 | prefix | |
770 | exec_prefix | |
771 | PACKAGE_URL | |
772 | PACKAGE_BUGREPORT | |
773 | PACKAGE_STRING | |
774 | PACKAGE_VERSION | |
775 | PACKAGE_TARNAME | |
776 | PACKAGE_NAME | |
777 | PATH_SEPARATOR | |
778 | SHELL' | |
779 | ac_subst_files='serialization_dependencies | |
780 | host_makefile_frag | |
781 | target_makefile_frag | |
782 | alphaieee_frag | |
783 | ospace_frag' | |
784 | ac_user_opts=' | |
785 | enable_option_checking | |
786 | with_build_libsubdir | |
a05c2c75 | 787 | with_system_zlib |
85c64bbe BS |
788 | enable_as_accelerator_for |
789 | enable_offload_targets | |
5213506e | 790 | enable_gold |
21539e2e | 791 | enable_ld |
78edb32f | 792 | enable_compressed_debug_sections |
87e6d9dc TB |
793 | enable_libquadmath |
794 | enable_libquadmath_support | |
5213506e RW |
795 | enable_libada |
796 | enable_libssp | |
1873ec0c | 797 | enable_libstdcxx |
5f520819 | 798 | enable_liboffloadmic |
ff3ac0f4 | 799 | enable_bootstrap |
5213506e RW |
800 | with_mpc |
801 | with_mpc_include | |
802 | with_mpc_lib | |
803 | with_mpfr_dir | |
804 | with_mpfr | |
805 | with_mpfr_include | |
806 | with_mpfr_lib | |
807 | with_gmp_dir | |
808 | with_gmp | |
809 | with_gmp_include | |
810 | with_gmp_lib | |
5213506e | 811 | with_stage1_libs |
aac9103b | 812 | with_static_standard_libraries |
0b21f5d3 | 813 | with_stage1_ldflags |
5213506e | 814 | with_boot_libs |
ed2eaa9f | 815 | with_boot_ldflags |
33ad93b9 RG |
816 | with_isl |
817 | with_isl_include | |
818 | with_isl_lib | |
819 | enable_isl_version_check | |
d7f09764 | 820 | enable_lto |
45b3824d TS |
821 | enable_linker_plugin_configure_flags |
822 | enable_linker_plugin_flags | |
cdfee50a | 823 | enable_host_shared |
5213506e | 824 | enable_stage1_languages |
43c40f3e | 825 | enable_objc_gc |
114bf3f1 MK |
826 | with_target_bdw_gc |
827 | with_target_bdw_gc_include | |
828 | with_target_bdw_gc_lib | |
3c36aa6b | 829 | with_gcc_major_version_only |
5213506e RW |
830 | with_build_sysroot |
831 | with_debug_prefix_map | |
5646b7b9 | 832 | with_build_config |
beeda1d9 | 833 | enable_vtable_verify |
5213506e RW |
834 | enable_serial_configure |
835 | with_build_time_tools | |
836 | enable_maintainer_mode | |
837 | enable_stage1_checking | |
838 | enable_werror | |
5213506e RW |
839 | ' |
840 | ac_precious_vars='build_alias | |
841 | host_alias | |
842 | target_alias | |
843 | CC | |
844 | CFLAGS | |
845 | LDFLAGS | |
846 | LIBS | |
847 | CPPFLAGS | |
848 | CXX | |
849 | CXXFLAGS | |
850 | CCC | |
ffedf511 RW |
851 | build_configargs |
852 | host_configargs | |
853 | target_configargs | |
5213506e RW |
854 | AR |
855 | AS | |
856 | DLLTOOL | |
c7c99407 | 857 | DSYMUTIL |
5213506e RW |
858 | LD |
859 | LIPO | |
860 | NM | |
861 | RANLIB | |
862 | STRIP | |
863 | WINDRES | |
864 | WINDMC | |
865 | OBJCOPY | |
866 | OBJDUMP | |
e4a9a572 | 867 | OTOOL |
e7a82751 | 868 | READELF |
5213506e RW |
869 | CC_FOR_TARGET |
870 | CXX_FOR_TARGET | |
871 | GCC_FOR_TARGET | |
5213506e | 872 | GFORTRAN_FOR_TARGET |
632e2a07 | 873 | GOC_FOR_TARGET |
b4c522fa | 874 | GDC_FOR_TARGET |
5213506e RW |
875 | AR_FOR_TARGET |
876 | AS_FOR_TARGET | |
877 | DLLTOOL_FOR_TARGET | |
c7c99407 | 878 | DSYMUTIL_FOR_TARGET |
5213506e RW |
879 | LD_FOR_TARGET |
880 | LIPO_FOR_TARGET | |
881 | NM_FOR_TARGET | |
9bccfdf5 | 882 | OBJCOPY_FOR_TARGET |
5213506e | 883 | OBJDUMP_FOR_TARGET |
e4a9a572 | 884 | OTOOL_FOR_TARGET |
5213506e | 885 | RANLIB_FOR_TARGET |
e7a82751 | 886 | READELF_FOR_TARGET |
5213506e RW |
887 | STRIP_FOR_TARGET |
888 | WINDRES_FOR_TARGET | |
889 | WINDMC_FOR_TARGET' | |
890 | ||
671aa708 NN |
891 | |
892 | # Initialize some variables set by options. | |
1c710c3c DJ |
893 | ac_init_help= |
894 | ac_init_version=false | |
5213506e RW |
895 | ac_unrecognized_opts= |
896 | ac_unrecognized_sep= | |
671aa708 NN |
897 | # The variables have the same names as the options, with |
898 | # dashes changed to underlines. | |
1c710c3c | 899 | cache_file=/dev/null |
671aa708 | 900 | exec_prefix=NONE |
671aa708 | 901 | no_create= |
671aa708 NN |
902 | no_recursion= |
903 | prefix=NONE | |
904 | program_prefix=NONE | |
905 | program_suffix=NONE | |
906 | program_transform_name=s,x,x, | |
907 | silent= | |
908 | site= | |
909 | srcdir= | |
671aa708 NN |
910 | verbose= |
911 | x_includes=NONE | |
912 | x_libraries=NONE | |
1c710c3c DJ |
913 | |
914 | # Installation directory options. | |
915 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
916 | # and all the variables that are supposed to be based on exec_prefix | |
917 | # by default will actually change. | |
918 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 919 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
920 | bindir='${exec_prefix}/bin' |
921 | sbindir='${exec_prefix}/sbin' | |
922 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
923 | datarootdir='${prefix}/share' |
924 | datadir='${datarootdir}' | |
671aa708 NN |
925 | sysconfdir='${prefix}/etc' |
926 | sharedstatedir='${prefix}/com' | |
927 | localstatedir='${prefix}/var' | |
671aa708 NN |
928 | includedir='${prefix}/include' |
929 | oldincludedir='/usr/include' | |
5213506e RW |
930 | docdir='${datarootdir}/doc/${PACKAGE}' |
931 | infodir='${datarootdir}/info' | |
932 | htmldir='${docdir}' | |
933 | dvidir='${docdir}' | |
934 | pdfdir='${docdir}' | |
935 | psdir='${docdir}' | |
936 | libdir='${exec_prefix}/lib' | |
937 | localedir='${datarootdir}/locale' | |
938 | mandir='${datarootdir}/man' | |
79c06341 | 939 | |
671aa708 | 940 | ac_prev= |
5213506e | 941 | ac_dashdash= |
671aa708 NN |
942 | for ac_option |
943 | do | |
671aa708 NN |
944 | # If the previous option needs an argument, assign it. |
945 | if test -n "$ac_prev"; then | |
5213506e | 946 | eval $ac_prev=\$ac_option |
671aa708 NN |
947 | ac_prev= |
948 | continue | |
949 | fi | |
79c06341 | 950 | |
5213506e | 951 | case $ac_option in |
22e05272 JM |
952 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
953 | *=) ac_optarg= ;; | |
954 | *) ac_optarg=yes ;; | |
5213506e | 955 | esac |
671aa708 NN |
956 | |
957 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
958 | ||
5213506e RW |
959 | case $ac_dashdash$ac_option in |
960 | --) | |
961 | ac_dashdash=yes ;; | |
671aa708 NN |
962 | |
963 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
964 | ac_prev=bindir ;; | |
965 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 966 | bindir=$ac_optarg ;; |
671aa708 NN |
967 | |
968 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 969 | ac_prev=build_alias ;; |
671aa708 | 970 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 971 | build_alias=$ac_optarg ;; |
671aa708 NN |
972 | |
973 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
974 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
975 | ac_prev=cache_file ;; | |
976 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
977 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
978 | cache_file=$ac_optarg ;; |
979 | ||
980 | --config-cache | -C) | |
981 | cache_file=config.cache ;; | |
671aa708 | 982 | |
5213506e | 983 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 984 | ac_prev=datadir ;; |
5213506e | 985 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 986 | datadir=$ac_optarg ;; |
671aa708 | 987 | |
5213506e RW |
988 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
989 | | --dataroo | --dataro | --datar) | |
990 | ac_prev=datarootdir ;; | |
991 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
992 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
993 | datarootdir=$ac_optarg ;; | |
994 | ||
671aa708 | 995 | -disable-* | --disable-*) |
5213506e | 996 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 997 | # Reject names that are not valid shell variable names. |
5213506e | 998 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 999 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1000 | ac_useropt_orig=$ac_useropt |
1001 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1002 | case $ac_user_opts in | |
1003 | *" | |
1004 | "enable_$ac_useropt" | |
1005 | "*) ;; | |
1006 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1007 | ac_unrecognized_sep=', ';; | |
1008 | esac | |
1009 | eval enable_$ac_useropt=no ;; | |
1010 | ||
1011 | -docdir | --docdir | --docdi | --doc | --do) | |
1012 | ac_prev=docdir ;; | |
1013 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1014 | docdir=$ac_optarg ;; | |
1015 | ||
1016 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1017 | ac_prev=dvidir ;; | |
1018 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1019 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1020 | |
1021 | -enable-* | --enable-*) | |
5213506e | 1022 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1023 | # Reject names that are not valid shell variable names. |
5213506e | 1024 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1025 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1026 | ac_useropt_orig=$ac_useropt |
1027 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1028 | case $ac_user_opts in | |
1029 | *" | |
1030 | "enable_$ac_useropt" | |
1031 | "*) ;; | |
1032 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1033 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1034 | esac |
5213506e | 1035 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1036 | |
1037 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1038 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1039 | | --exec | --exe | --ex) | |
1040 | ac_prev=exec_prefix ;; | |
1041 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1042 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1043 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1044 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1045 | |
1046 | -gas | --gas | --ga | --g) | |
1047 | # Obsolete; use --with-gas. | |
1048 | with_gas=yes ;; | |
1049 | ||
1c710c3c DJ |
1050 | -help | --help | --hel | --he | -h) |
1051 | ac_init_help=long ;; | |
1052 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1053 | ac_init_help=recursive ;; | |
1054 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1055 | ac_init_help=short ;; | |
671aa708 NN |
1056 | |
1057 | -host | --host | --hos | --ho) | |
1c710c3c | 1058 | ac_prev=host_alias ;; |
671aa708 | 1059 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1060 | host_alias=$ac_optarg ;; |
671aa708 | 1061 | |
5213506e RW |
1062 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1063 | ac_prev=htmldir ;; | |
1064 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1065 | | --ht=*) | |
1066 | htmldir=$ac_optarg ;; | |
1067 | ||
671aa708 NN |
1068 | -includedir | --includedir | --includedi | --included | --include \ |
1069 | | --includ | --inclu | --incl | --inc) | |
1070 | ac_prev=includedir ;; | |
1071 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1072 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1073 | includedir=$ac_optarg ;; |
671aa708 NN |
1074 | |
1075 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1076 | ac_prev=infodir ;; | |
1077 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1078 | infodir=$ac_optarg ;; |
671aa708 NN |
1079 | |
1080 | -libdir | --libdir | --libdi | --libd) | |
1081 | ac_prev=libdir ;; | |
1082 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1083 | libdir=$ac_optarg ;; |
671aa708 NN |
1084 | |
1085 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1086 | | --libexe | --libex | --libe) | |
1087 | ac_prev=libexecdir ;; | |
1088 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1089 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1090 | libexecdir=$ac_optarg ;; |
671aa708 | 1091 | |
5213506e RW |
1092 | -localedir | --localedir | --localedi | --localed | --locale) |
1093 | ac_prev=localedir ;; | |
1094 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1095 | localedir=$ac_optarg ;; | |
1096 | ||
671aa708 | 1097 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1098 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1099 | ac_prev=localstatedir ;; |
1100 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1101 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1102 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1103 | |
1104 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1105 | ac_prev=mandir ;; | |
1106 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1107 | mandir=$ac_optarg ;; |
671aa708 NN |
1108 | |
1109 | -nfp | --nfp | --nf) | |
1110 | # Obsolete; use --without-fp. | |
1111 | with_fp=no ;; | |
1112 | ||
1113 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1114 | | --no-cr | --no-c | -n) |
671aa708 NN |
1115 | no_create=yes ;; |
1116 | ||
1117 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1118 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1119 | no_recursion=yes ;; | |
1120 | ||
1121 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1122 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1123 | | --oldin | --oldi | --old | --ol | --o) | |
1124 | ac_prev=oldincludedir ;; | |
1125 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1126 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1127 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1128 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1129 | |
1130 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1131 | ac_prev=prefix ;; | |
1132 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1133 | prefix=$ac_optarg ;; |
671aa708 NN |
1134 | |
1135 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1136 | | --program-pre | --program-pr | --program-p) | |
1137 | ac_prev=program_prefix ;; | |
1138 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1139 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1140 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1141 | |
1142 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1143 | | --program-suf | --program-su | --program-s) | |
1144 | ac_prev=program_suffix ;; | |
1145 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1146 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1147 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1148 | |
1149 | -program-transform-name | --program-transform-name \ | |
1150 | | --program-transform-nam | --program-transform-na \ | |
1151 | | --program-transform-n | --program-transform- \ | |
1152 | | --program-transform | --program-transfor \ | |
1153 | | --program-transfo | --program-transf \ | |
1154 | | --program-trans | --program-tran \ | |
1155 | | --progr-tra | --program-tr | --program-t) | |
1156 | ac_prev=program_transform_name ;; | |
1157 | -program-transform-name=* | --program-transform-name=* \ | |
1158 | | --program-transform-nam=* | --program-transform-na=* \ | |
1159 | | --program-transform-n=* | --program-transform-=* \ | |
1160 | | --program-transform=* | --program-transfor=* \ | |
1161 | | --program-transfo=* | --program-transf=* \ | |
1162 | | --program-trans=* | --program-tran=* \ | |
1163 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1164 | program_transform_name=$ac_optarg ;; |
671aa708 | 1165 | |
5213506e RW |
1166 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1167 | ac_prev=pdfdir ;; | |
1168 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1169 | pdfdir=$ac_optarg ;; | |
1170 | ||
1171 | -psdir | --psdir | --psdi | --psd | --ps) | |
1172 | ac_prev=psdir ;; | |
1173 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1174 | psdir=$ac_optarg ;; | |
1175 | ||
671aa708 NN |
1176 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1177 | | -silent | --silent | --silen | --sile | --sil) | |
1178 | silent=yes ;; | |
1179 | ||
1180 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1181 | ac_prev=sbindir ;; | |
1182 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1183 | | --sbi=* | --sb=*) | |
1c710c3c | 1184 | sbindir=$ac_optarg ;; |
671aa708 NN |
1185 | |
1186 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1187 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1188 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1189 | | --sha | --sh) | |
1190 | ac_prev=sharedstatedir ;; | |
1191 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1192 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1193 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1194 | | --sha=* | --sh=*) | |
1c710c3c | 1195 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1196 | |
1197 | -site | --site | --sit) | |
1198 | ac_prev=site ;; | |
1199 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1200 | site=$ac_optarg ;; |
671aa708 NN |
1201 | |
1202 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1203 | ac_prev=srcdir ;; | |
1204 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1205 | srcdir=$ac_optarg ;; |
671aa708 NN |
1206 | |
1207 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1208 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1209 | ac_prev=sysconfdir ;; | |
1210 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1211 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1212 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1213 | |
1214 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1215 | ac_prev=target_alias ;; |
671aa708 | 1216 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1217 | target_alias=$ac_optarg ;; |
671aa708 NN |
1218 | |
1219 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1220 | verbose=yes ;; | |
1221 | ||
1c710c3c DJ |
1222 | -version | --version | --versio | --versi | --vers | -V) |
1223 | ac_init_version=: ;; | |
671aa708 NN |
1224 | |
1225 | -with-* | --with-*) | |
5213506e | 1226 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1227 | # Reject names that are not valid shell variable names. |
5213506e | 1228 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1229 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1230 | ac_useropt_orig=$ac_useropt |
1231 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1232 | case $ac_user_opts in | |
1233 | *" | |
1234 | "with_$ac_useropt" | |
1235 | "*) ;; | |
1236 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1237 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1238 | esac |
5213506e | 1239 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1240 | |
1241 | -without-* | --without-*) | |
5213506e | 1242 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1243 | # Reject names that are not valid shell variable names. |
5213506e | 1244 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1245 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1246 | ac_useropt_orig=$ac_useropt |
1247 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1248 | case $ac_user_opts in | |
1249 | *" | |
1250 | "with_$ac_useropt" | |
1251 | "*) ;; | |
1252 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1253 | ac_unrecognized_sep=', ';; | |
1254 | esac | |
1255 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1256 | |
1257 | --x) | |
1258 | # Obsolete; use --with-x. | |
1259 | with_x=yes ;; | |
1260 | ||
1261 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1262 | | --x-incl | --x-inc | --x-in | --x-i) | |
1263 | ac_prev=x_includes ;; | |
1264 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1265 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1266 | x_includes=$ac_optarg ;; |
671aa708 NN |
1267 | |
1268 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1269 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1270 | ac_prev=x_libraries ;; | |
1271 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1272 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1273 | x_libraries=$ac_optarg ;; |
671aa708 | 1274 | |
22e05272 JM |
1275 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1276 | Try \`$0 --help' for more information" | |
671aa708 NN |
1277 | ;; |
1278 | ||
1c710c3c DJ |
1279 | *=*) |
1280 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1281 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1282 | case $ac_envvar in #( |
1283 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1284 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1285 | esac |
1286 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1287 | export $ac_envvar ;; |
1288 | ||
671aa708 | 1289 | *) |
1c710c3c | 1290 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1291 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1292 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1293 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1294 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1295 | ;; |
1296 | ||
1297 | esac | |
1298 | done | |
1299 | ||
1300 | if test -n "$ac_prev"; then | |
1c710c3c | 1301 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1302 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1303 | fi |
af71363e | 1304 | |
5213506e RW |
1305 | if test -n "$ac_unrecognized_opts"; then |
1306 | case $enable_option_checking in | |
1307 | no) ;; | |
22e05272 | 1308 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1309 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1310 | esac |
5213506e | 1311 | fi |
2aeb72e9 | 1312 | |
5213506e RW |
1313 | # Check all directory arguments for consistency. |
1314 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1315 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1316 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1317 | libdir localedir mandir | |
2aeb72e9 | 1318 | do |
5213506e RW |
1319 | eval ac_val=\$$ac_var |
1320 | # Remove trailing slashes. | |
1321 | case $ac_val in | |
1322 | */ ) | |
1323 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1324 | eval $ac_var=\$ac_val;; | |
1325 | esac | |
1326 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1327 | case $ac_val in |
5213506e RW |
1328 | [\\/$]* | ?:[\\/]* ) continue;; |
1329 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1330 | esac |
22e05272 | 1331 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1332 | done |
1333 | ||
1c710c3c DJ |
1334 | # There might be people who depend on the old broken behavior: `$host' |
1335 | # used to hold the argument of --host etc. | |
1336 | # FIXME: To remove some day. | |
1337 | build=$build_alias | |
1338 | host=$host_alias | |
1339 | target=$target_alias | |
0b0dc272 | 1340 | |
1c710c3c DJ |
1341 | # FIXME: To remove some day. |
1342 | if test "x$host_alias" != x; then | |
1343 | if test "x$build_alias" = x; then | |
1344 | cross_compiling=maybe | |
1c710c3c DJ |
1345 | elif test "x$build_alias" != "x$host_alias"; then |
1346 | cross_compiling=yes | |
1347 | fi | |
1348 | fi | |
1349 | ||
1350 | ac_tool_prefix= | |
1351 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1352 | ||
1353 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1354 | |
671aa708 | 1355 | |
5213506e RW |
1356 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1357 | ac_ls_di=`ls -di .` && | |
1358 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1359 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1360 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1361 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1362 | |
1363 | ||
671aa708 NN |
1364 | # Find the source files, if location was not specified. |
1365 | if test -z "$srcdir"; then | |
1366 | ac_srcdir_defaulted=yes | |
5213506e RW |
1367 | # Try the directory containing this script, then the parent directory. |
1368 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1369 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1370 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1371 | X"$as_myself" : 'X\(//\)$' \| \ | |
1372 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1373 | $as_echo X"$as_myself" | | |
1374 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | /^X\(\/\/\)[^/].*/{ | |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | /^X\(\/\/\)$/{ | |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | /^X\(\/\).*/{ | |
1387 | s//\1/ | |
1388 | q | |
1389 | } | |
1390 | s/.*/./; q'` | |
671aa708 | 1391 | srcdir=$ac_confdir |
5213506e | 1392 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1393 | srcdir=.. |
1394 | fi | |
1395 | else | |
1396 | ac_srcdir_defaulted=no | |
1397 | fi | |
5213506e RW |
1398 | if test ! -r "$srcdir/$ac_unique_file"; then |
1399 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1400 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1401 | fi |
1402 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1403 | ac_abs_confdir=`( | |
22e05272 | 1404 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1405 | pwd)` |
1406 | # When building in place, set srcdir=. | |
1407 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1408 | srcdir=. | |
1409 | fi | |
1410 | # Remove unnecessary trailing slashes from srcdir. | |
1411 | # Double slashes in file names in object file debugging info | |
1412 | # mess up M-x gdb in Emacs. | |
1413 | case $srcdir in | |
1414 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1415 | esac | |
87841584 AM |
1416 | case $srcdir in |
1417 | *" "*) | |
22e05272 | 1418 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1419 | ;; |
1420 | esac | |
ac9e6043 RW |
1421 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1422 | ||
5213506e RW |
1423 | for ac_var in $ac_precious_vars; do |
1424 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1425 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1426 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1427 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1428 | done | |
1c710c3c DJ |
1429 | |
1430 | # | |
1431 | # Report the --help message. | |
1432 | # | |
1433 | if test "$ac_init_help" = "long"; then | |
1434 | # Omit some internal or obsolete options to make the list less imposing. | |
1435 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1436 | cat <<_ACEOF | |
1437 | \`configure' configures this package to adapt to many kinds of systems. | |
1438 | ||
1439 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1440 | ||
1441 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1442 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1443 | ||
1444 | Defaults for the options are specified in brackets. | |
1445 | ||
1446 | Configuration: | |
1447 | -h, --help display this help and exit | |
1448 | --help=short display options specific to this package | |
1449 | --help=recursive display the short help of all the included packages | |
1450 | -V, --version display version information and exit | |
22e05272 | 1451 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1452 | --cache-file=FILE cache test results in FILE [disabled] |
1453 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1454 | -n, --no-create do not create output files | |
1455 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1456 | ||
1c710c3c DJ |
1457 | Installation directories: |
1458 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1459 | [$ac_default_prefix] |
1c710c3c | 1460 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1461 | [PREFIX] |
1c710c3c DJ |
1462 | |
1463 | By default, \`make install' will install all the files in | |
1464 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1465 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1466 | for instance \`--prefix=\$HOME'. | |
1467 | ||
1468 | For better control, use the options below. | |
1469 | ||
1470 | Fine tuning of the installation directories: | |
5213506e RW |
1471 | --bindir=DIR user executables [EPREFIX/bin] |
1472 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1473 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1474 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1475 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1476 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1477 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1478 | --includedir=DIR C header files [PREFIX/include] | |
1479 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1480 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1481 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1482 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1483 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1484 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1485 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1486 | --htmldir=DIR html documentation [DOCDIR] | |
1487 | --dvidir=DIR dvi documentation [DOCDIR] | |
1488 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1489 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1490 | _ACEOF |
1491 | ||
1492 | cat <<\_ACEOF | |
1493 | ||
1494 | Program names: | |
1495 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1496 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1497 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1498 | ||
1499 | System types: | |
1500 | --build=BUILD configure for building on BUILD [guessed] | |
1501 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1502 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1503 | _ACEOF | |
1504 | fi | |
1505 | ||
1506 | if test -n "$ac_init_help"; then | |
1507 | ||
1508 | cat <<\_ACEOF | |
1509 | ||
1510 | Optional Features: | |
5213506e | 1511 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1512 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1513 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1514 | --enable-as-accelerator-for=ARG |
1515 | build as offload target compiler. Specify offload | |
1516 | host triple by ARG | |
1517 | --enable-offload-targets=LIST | |
1518 | enable offloading to devices from comma-separated | |
1519 | LIST of TARGET[=DIR]. Use optional path to find | |
1520 | offload target compiler during the build | |
21539e2e | 1521 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1522 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1523 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1524 | Enable compressed debug sections for gas, gold or ld |
1525 | by default | |
87e6d9dc TB |
1526 | --disable-libquadmath do not build libquadmath directory |
1527 | --disable-libquadmath-support | |
1528 | disable libquadmath support for Fortran | |
30b74385 RW |
1529 | --enable-libada build libada directory |
1530 | --enable-libssp build libssp directory | |
1873ec0c | 1531 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1532 | --enable-liboffloadmic=ARG |
1533 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1534 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1535 | --disable-isl-version-check |
560d18d3 | 1536 | disable check for isl version |
d7f09764 | 1537 | --enable-lto enable link time optimization support |
45b3824d TS |
1538 | --enable-linker-plugin-configure-flags=FLAGS |
1539 | additional flags for configuring linker plugins | |
1540 | [none] | |
1541 | --enable-linker-plugin-flags=FLAGS | |
1542 | additional flags for configuring and building linker | |
1543 | plugins [none] | |
cdfee50a | 1544 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1545 | --enable-stage1-languages[=all] |
1546 | choose additional languages to build during stage1. | |
1547 | Mostly useful for compiler development | |
43c40f3e RO |
1548 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1549 | Objective-C runtime | |
318a4e6d | 1550 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1551 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1552 | force sequential configuration of sub-packages for |
1553 | the host, target or build machine, or all | |
1554 | sub-packages | |
1555 | --enable-maintainer-mode | |
1556 | enable make rules and dependencies not useful (and | |
1557 | sometimes confusing) to the casual installer | |
1558 | --enable-stage1-checking[=all] | |
1559 | choose additional checking for stage1 of the | |
1560 | compiler | |
1c710c3c DJ |
1561 | --enable-werror enable -Werror in bootstrap stage2 and later |
1562 | ||
1563 | Optional Packages: | |
1564 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1565 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1566 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1567 | --with-system-zlib use installed libz |
33e39b66 AS |
1568 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1569 | Equivalent to --with-mpc-include=PATH/include plus | |
1570 | --with-mpc-lib=PATH/lib | |
1571 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1572 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1573 | --with-mpfr-dir=PATH this option has been REMOVED |
1574 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1575 | Equivalent to --with-mpfr-include=PATH/include plus |
1576 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1577 | --with-mpfr-include=PATH |
30b74385 RW |
1578 | specify directory for installed MPFR include files |
1579 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1580 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1581 | --with-gmp=PATH specify prefix directory for the installed GMP |
1582 | package. Equivalent to | |
1583 | --with-gmp-include=PATH/include plus | |
1584 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1585 | --with-gmp-include=PATH specify directory for installed GMP include files |
1586 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1587 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1588 | --with-static-standard-libraries |
1589 | use -static-libstdc++ and -static-libgcc | |
1590 | (default=auto) | |
33e39b66 AS |
1591 | --with-stage1-ldflags=FLAGS |
1592 | linker flags for stage1 | |
33e39b66 AS |
1593 | --with-boot-libs=LIBS libraries for stage2 and later |
1594 | --with-boot-ldflags=FLAGS | |
1595 | linker flags for stage2 and later | |
e357a5e0 | 1596 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1597 | package. Equivalent to |
33ad93b9 RG |
1598 | --with-isl-include=PATH/include plus |
1599 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1600 | --with-isl-include=PATH Specify directory for installed isl include files |
1601 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1602 | --with-target-bdw-gc=PATHLIST |
1603 | specify prefix directory for installed bdw-gc | |
1604 | package. Equivalent to | |
1605 | --with-target-bdw-gc-include=PATH/include plus | |
1606 | --with-target-bdw-gc-lib=PATH/lib | |
1607 | --with-target-bdw-gc-include=PATHLIST | |
1608 | specify directories for installed bdw-gc include | |
1609 | files | |
1610 | --with-target-bdw-gc-lib=PATHLIST | |
1611 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1612 | --with-gcc-major-version-only |
1613 | use only GCC major number in filesystem paths | |
30b74385 | 1614 | --with-build-sysroot=SYSROOT |
1c710c3c | 1615 | use sysroot as the system root during the build |
c8aea42c | 1616 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1617 | map A to B, C to D ... in debug information |
1618 | --with-build-config='NAME NAME2...' | |
1619 | use config/NAME.mk build configuration | |
30b74385 | 1620 | --with-build-time-tools=PATH |
1c710c3c | 1621 | use given path to find target tools during the build |
1c710c3c DJ |
1622 | |
1623 | Some influential environment variables: | |
1624 | CC C compiler command | |
1625 | CFLAGS C compiler flags | |
1626 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1627 | nonstandard directory <lib dir> | |
5213506e | 1628 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1629 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1630 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1631 | CXX C++ compiler command |
1632 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1633 | build_configargs |
1634 | additional configure arguments for build directories | |
1635 | host_configargs | |
1636 | additional configure arguments for host directories | |
1637 | target_configargs | |
1638 | additional configure arguments for target directories | |
278a7a38 AO |
1639 | AR AR for the host |
1640 | AS AS for the host | |
1641 | DLLTOOL DLLTOOL for the host | |
c7c99407 | 1642 | DSYMUTIL DSYMUTIL for the host |
278a7a38 AO |
1643 | LD LD for the host |
1644 | LIPO LIPO for the host | |
1645 | NM NM for the host | |
1646 | RANLIB RANLIB for the host | |
1647 | STRIP STRIP for the host | |
1648 | WINDRES WINDRES for the host | |
901119ae | 1649 | WINDMC WINDMC for the host |
278a7a38 AO |
1650 | OBJCOPY OBJCOPY for the host |
1651 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1652 | OTOOL OTOOL for the host |
e7a82751 | 1653 | READELF READELF for the host |
278a7a38 AO |
1654 | CC_FOR_TARGET |
1655 | CC for the target | |
1656 | CXX_FOR_TARGET | |
1657 | CXX for the target | |
1658 | GCC_FOR_TARGET | |
1659 | GCC for the target | |
278a7a38 AO |
1660 | GFORTRAN_FOR_TARGET |
1661 | GFORTRAN for the target | |
632e2a07 ILT |
1662 | GOC_FOR_TARGET |
1663 | GOC for the target | |
b4c522fa IB |
1664 | GDC_FOR_TARGET |
1665 | GDC for the target | |
278a7a38 AO |
1666 | AR_FOR_TARGET |
1667 | AR for the target | |
1668 | AS_FOR_TARGET | |
1669 | AS for the target | |
1670 | DLLTOOL_FOR_TARGET | |
1671 | DLLTOOL for the target | |
c7c99407 IS |
1672 | DSYMUTIL_FOR_TARGET |
1673 | DSYMUTIL for the target | |
278a7a38 AO |
1674 | LD_FOR_TARGET |
1675 | LD for the target | |
1676 | LIPO_FOR_TARGET | |
1677 | LIPO for the target | |
1678 | NM_FOR_TARGET | |
1679 | NM for the target | |
9bccfdf5 AP |
1680 | OBJCOPY_FOR_TARGET |
1681 | OBJCOPY for the target | |
278a7a38 AO |
1682 | OBJDUMP_FOR_TARGET |
1683 | OBJDUMP for the target | |
e4a9a572 IS |
1684 | OTOOL_FOR_TARGET |
1685 | OTOOL for the target | |
278a7a38 AO |
1686 | RANLIB_FOR_TARGET |
1687 | RANLIB for the target | |
e7a82751 RM |
1688 | READELF_FOR_TARGET |
1689 | READELF for the target | |
278a7a38 AO |
1690 | STRIP_FOR_TARGET |
1691 | STRIP for the target | |
1692 | WINDRES_FOR_TARGET | |
1693 | WINDRES for the target | |
901119ae KT |
1694 | WINDMC_FOR_TARGET |
1695 | WINDMC for the target | |
1c710c3c DJ |
1696 | |
1697 | Use these variables to override the choices made by `configure' or to help | |
1698 | it to find libraries and programs with nonstandard names/locations. | |
1699 | ||
5213506e | 1700 | Report bugs to the package provider. |
1c710c3c | 1701 | _ACEOF |
5213506e | 1702 | ac_status=$? |
1c710c3c DJ |
1703 | fi |
1704 | ||
1705 | if test "$ac_init_help" = "recursive"; then | |
1706 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1707 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1708 | test -d "$ac_dir" || |
1709 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1710 | continue | |
1c710c3c DJ |
1711 | ac_builddir=. |
1712 | ||
5213506e RW |
1713 | case "$ac_dir" in |
1714 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1715 | *) | |
1716 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1717 | # A ".." for each directory in $ac_dir_suffix. | |
1718 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1719 | case $ac_top_builddir_sub in | |
1720 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1721 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1722 | esac ;; | |
1723 | esac | |
1724 | ac_abs_top_builddir=$ac_pwd | |
1725 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1726 | # for backward compatibility: | |
1727 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1728 | |
1729 | case $srcdir in | |
5213506e | 1730 | .) # We are building in place. |
1c710c3c | 1731 | ac_srcdir=. |
5213506e RW |
1732 | ac_top_srcdir=$ac_top_builddir_sub |
1733 | ac_abs_top_srcdir=$ac_pwd ;; | |
1734 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1735 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1736 | ac_top_srcdir=$srcdir |
1737 | ac_abs_top_srcdir=$srcdir ;; | |
1738 | *) # Relative name. | |
1739 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1740 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1741 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1742 | esac |
5213506e RW |
1743 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1744 | ||
1745 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1746 | # Check for guested configure. | |
1747 | if test -f "$ac_srcdir/configure.gnu"; then | |
1748 | echo && | |
1749 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1750 | elif test -f "$ac_srcdir/configure"; then | |
1751 | echo && | |
1752 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1753 | else |
5213506e RW |
1754 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1755 | fi || ac_status=$? | |
1756 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1757 | done |
1758 | fi | |
1759 | ||
5213506e | 1760 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1761 | if $ac_init_version; then |
1762 | cat <<\_ACEOF | |
5213506e | 1763 | configure |
22e05272 | 1764 | generated by GNU Autoconf 2.69 |
1c710c3c | 1765 | |
22e05272 | 1766 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1767 | This configure script is free software; the Free Software Foundation |
1768 | gives unlimited permission to copy, distribute and modify it. | |
1769 | _ACEOF | |
5213506e | 1770 | exit |
0b0dc272 | 1771 | fi |
5213506e RW |
1772 | |
1773 | ## ------------------------ ## | |
1774 | ## Autoconf initialization. ## | |
1775 | ## ------------------------ ## | |
1776 | ||
1777 | # ac_fn_c_try_compile LINENO | |
1778 | # -------------------------- | |
1779 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1780 | ac_fn_c_try_compile () | |
1781 | { | |
1782 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1783 | rm -f conftest.$ac_objext | |
1784 | if { { ac_try="$ac_compile" | |
1785 | case "(($ac_try" in | |
1786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1787 | *) ac_try_echo=$ac_try;; | |
1788 | esac | |
1789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1790 | $as_echo "$ac_try_echo"; } >&5 | |
1791 | (eval "$ac_compile") 2>conftest.err | |
1792 | ac_status=$? | |
1793 | if test -s conftest.err; then | |
1794 | grep -v '^ *+' conftest.err >conftest.er1 | |
1795 | cat conftest.er1 >&5 | |
1796 | mv -f conftest.er1 conftest.err | |
1797 | fi | |
1798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1799 | test $ac_status = 0; } && { | |
1800 | test -z "$ac_c_werror_flag" || | |
1801 | test ! -s conftest.err | |
1802 | } && test -s conftest.$ac_objext; then : | |
1803 | ac_retval=0 | |
1804 | else | |
1805 | $as_echo "$as_me: failed program was:" >&5 | |
1806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1807 | ||
1808 | ac_retval=1 | |
1809 | fi | |
22e05272 JM |
1810 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1811 | as_fn_set_status $ac_retval | |
5213506e RW |
1812 | |
1813 | } # ac_fn_c_try_compile | |
1814 | ||
1815 | # ac_fn_cxx_try_compile LINENO | |
1816 | # ---------------------------- | |
1817 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1818 | ac_fn_cxx_try_compile () | |
1819 | { | |
1820 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1821 | rm -f conftest.$ac_objext | |
1822 | if { { ac_try="$ac_compile" | |
1823 | case "(($ac_try" in | |
1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1825 | *) ac_try_echo=$ac_try;; | |
1826 | esac | |
1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1828 | $as_echo "$ac_try_echo"; } >&5 | |
1829 | (eval "$ac_compile") 2>conftest.err | |
1830 | ac_status=$? | |
1831 | if test -s conftest.err; then | |
1832 | grep -v '^ *+' conftest.err >conftest.er1 | |
1833 | cat conftest.er1 >&5 | |
1834 | mv -f conftest.er1 conftest.err | |
1835 | fi | |
1836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1837 | test $ac_status = 0; } && { | |
1838 | test -z "$ac_cxx_werror_flag" || | |
1839 | test ! -s conftest.err | |
1840 | } && test -s conftest.$ac_objext; then : | |
1841 | ac_retval=0 | |
1842 | else | |
1843 | $as_echo "$as_me: failed program was:" >&5 | |
1844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1845 | ||
1846 | ac_retval=1 | |
1847 | fi | |
22e05272 JM |
1848 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1849 | as_fn_set_status $ac_retval | |
5213506e RW |
1850 | |
1851 | } # ac_fn_cxx_try_compile | |
1852 | ||
0b21f5d3 EB |
1853 | # ac_fn_cxx_try_link LINENO |
1854 | # ------------------------- | |
1855 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1856 | ac_fn_cxx_try_link () | |
1857 | { | |
1858 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1860 | if { { ac_try="$ac_link" | |
1861 | case "(($ac_try" in | |
1862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1863 | *) ac_try_echo=$ac_try;; | |
1864 | esac | |
1865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1866 | $as_echo "$ac_try_echo"; } >&5 | |
1867 | (eval "$ac_link") 2>conftest.err | |
1868 | ac_status=$? | |
1869 | if test -s conftest.err; then | |
1870 | grep -v '^ *+' conftest.err >conftest.er1 | |
1871 | cat conftest.er1 >&5 | |
1872 | mv -f conftest.er1 conftest.err | |
1873 | fi | |
1874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1875 | test $ac_status = 0; } && { | |
1876 | test -z "$ac_cxx_werror_flag" || | |
1877 | test ! -s conftest.err | |
1878 | } && test -s conftest$ac_exeext && { | |
1879 | test "$cross_compiling" = yes || | |
22e05272 | 1880 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1881 | }; then : |
1882 | ac_retval=0 | |
1883 | else | |
1884 | $as_echo "$as_me: failed program was:" >&5 | |
1885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1886 | ||
1887 | ac_retval=1 | |
1888 | fi | |
1889 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1890 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1891 | # interfere with the next link command; also delete a directory that is | |
1892 | # left behind by Apple's compiler. We do this before executing the actions. | |
1893 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1894 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1895 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1896 | |
1897 | } # ac_fn_cxx_try_link | |
1898 | ||
5213506e RW |
1899 | # ac_fn_c_try_link LINENO |
1900 | # ----------------------- | |
1901 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1902 | ac_fn_c_try_link () | |
1903 | { | |
1904 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1906 | if { { ac_try="$ac_link" | |
1907 | case "(($ac_try" in | |
1908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1909 | *) ac_try_echo=$ac_try;; | |
1910 | esac | |
1911 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1912 | $as_echo "$ac_try_echo"; } >&5 | |
1913 | (eval "$ac_link") 2>conftest.err | |
1914 | ac_status=$? | |
1915 | if test -s conftest.err; then | |
1916 | grep -v '^ *+' conftest.err >conftest.er1 | |
1917 | cat conftest.er1 >&5 | |
1918 | mv -f conftest.er1 conftest.err | |
1919 | fi | |
1920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1921 | test $ac_status = 0; } && { | |
1922 | test -z "$ac_c_werror_flag" || | |
1923 | test ! -s conftest.err | |
1924 | } && test -s conftest$ac_exeext && { | |
1925 | test "$cross_compiling" = yes || | |
22e05272 | 1926 | test -x conftest$ac_exeext |
5213506e RW |
1927 | }; then : |
1928 | ac_retval=0 | |
1929 | else | |
1930 | $as_echo "$as_me: failed program was:" >&5 | |
1931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1932 | ||
1933 | ac_retval=1 | |
1934 | fi | |
1935 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1936 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1937 | # interfere with the next link command; also delete a directory that is | |
1938 | # left behind by Apple's compiler. We do this before executing the actions. | |
1939 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1940 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1941 | as_fn_set_status $ac_retval | |
5213506e RW |
1942 | |
1943 | } # ac_fn_c_try_link | |
1944 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1945 | This file contains any messages produced by compilers while |
1946 | running configure, to aid debugging if configure makes a mistake. | |
1947 | ||
1948 | It was created by $as_me, which was | |
22e05272 | 1949 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1950 | |
1951 | $ $0 $@ | |
1952 | ||
1953 | _ACEOF | |
5213506e | 1954 | exec 5>>config.log |
1c710c3c DJ |
1955 | { |
1956 | cat <<_ASUNAME | |
1957 | ## --------- ## | |
1958 | ## Platform. ## | |
1959 | ## --------- ## | |
1960 | ||
1961 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1962 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1963 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1964 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1965 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1966 | ||
1967 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1968 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1969 | ||
1970 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1971 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1972 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1973 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1974 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1975 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1976 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1977 | ||
1978 | _ASUNAME | |
1979 | ||
1980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1981 | for as_dir in $PATH | |
1982 | do | |
1983 | IFS=$as_save_IFS | |
1984 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1985 | $as_echo "PATH: $as_dir" |
1986 | done | |
1987 | IFS=$as_save_IFS | |
1c710c3c DJ |
1988 | |
1989 | } >&5 | |
1990 | ||
1991 | cat >&5 <<_ACEOF | |
1992 | ||
1993 | ||
1994 | ## ----------- ## | |
1995 | ## Core tests. ## | |
1996 | ## ----------- ## | |
1997 | ||
1998 | _ACEOF | |
1999 | ||
2000 | ||
2001 | # Keep a trace of the command line. | |
2002 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2003 | # Strip out --silent because we don't want to record it for future runs. | |
2004 | # Also quote any args containing shell meta-characters. | |
2005 | # Make two passes to allow for proper duplicate-argument suppression. | |
2006 | ac_configure_args= | |
2007 | ac_configure_args0= | |
2008 | ac_configure_args1= | |
1c710c3c DJ |
2009 | ac_must_keep_next=false |
2010 | for ac_pass in 1 2 | |
2011 | do | |
2012 | for ac_arg | |
2013 | do | |
2014 | case $ac_arg in | |
2015 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2016 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2017 | | -silent | --silent | --silen | --sile | --sil) | |
2018 | continue ;; | |
5213506e RW |
2019 | *\'*) |
2020 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2021 | esac |
2022 | case $ac_pass in | |
5213506e | 2023 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2024 | 2) |
5213506e | 2025 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2026 | if test $ac_must_keep_next = true; then |
2027 | ac_must_keep_next=false # Got value, back to normal. | |
2028 | else | |
2029 | case $ac_arg in | |
2030 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2031 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2032 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2033 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2034 | case "$ac_configure_args0 " in | |
2035 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2036 | esac | |
2037 | ;; | |
2038 | -* ) ac_must_keep_next=true ;; | |
2039 | esac | |
2040 | fi | |
5213506e | 2041 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2042 | ;; |
2043 | esac | |
2044 | done | |
2045 | done | |
5213506e RW |
2046 | { ac_configure_args0=; unset ac_configure_args0;} |
2047 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2048 | |
2049 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2050 | # config.log. We remove comments because anyway the quotes in there | |
2051 | # would cause problems or look ugly. | |
5213506e RW |
2052 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2053 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2054 | trap 'exit_status=$? |
2055 | # Save into config.log some information that might help in debugging. | |
2056 | { | |
2057 | echo | |
2058 | ||
22e05272 | 2059 | $as_echo "## ---------------- ## |
1c710c3c | 2060 | ## Cache variables. ## |
22e05272 | 2061 | ## ---------------- ##" |
1c710c3c DJ |
2062 | echo |
2063 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2064 | ( |
2065 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2066 | eval ac_val=\$$ac_var | |
2067 | case $ac_val in #( | |
2068 | *${as_nl}*) | |
2069 | case $ac_var in #( | |
2070 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2071 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2072 | esac | |
2073 | case $ac_var in #( | |
2074 | _ | IFS | as_nl) ;; #( | |
2075 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2076 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2077 | esac ;; | |
2078 | esac | |
2079 | done | |
1c710c3c | 2080 | (set) 2>&1 | |
5213506e RW |
2081 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2082 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2083 | sed -n \ |
5213506e RW |
2084 | "s/'\''/'\''\\\\'\'''\''/g; |
2085 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2086 | ;; #( | |
1c710c3c | 2087 | *) |
5213506e | 2088 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2089 | ;; |
5213506e RW |
2090 | esac | |
2091 | sort | |
2092 | ) | |
1c710c3c DJ |
2093 | echo |
2094 | ||
22e05272 | 2095 | $as_echo "## ----------------- ## |
1c710c3c | 2096 | ## Output variables. ## |
22e05272 | 2097 | ## ----------------- ##" |
1c710c3c DJ |
2098 | echo |
2099 | for ac_var in $ac_subst_vars | |
2100 | do | |
5213506e RW |
2101 | eval ac_val=\$$ac_var |
2102 | case $ac_val in | |
2103 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2104 | esac | |
2105 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2106 | done | sort |
2107 | echo | |
2108 | ||
2109 | if test -n "$ac_subst_files"; then | |
22e05272 | 2110 | $as_echo "## ------------------- ## |
5213506e | 2111 | ## File substitutions. ## |
22e05272 | 2112 | ## ------------------- ##" |
1c710c3c DJ |
2113 | echo |
2114 | for ac_var in $ac_subst_files | |
2115 | do | |
5213506e RW |
2116 | eval ac_val=\$$ac_var |
2117 | case $ac_val in | |
2118 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2119 | esac | |
2120 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2121 | done | sort |
2122 | echo | |
2123 | fi | |
2124 | ||
2125 | if test -s confdefs.h; then | |
22e05272 | 2126 | $as_echo "## ----------- ## |
1c710c3c | 2127 | ## confdefs.h. ## |
22e05272 | 2128 | ## ----------- ##" |
1c710c3c | 2129 | echo |
5213506e | 2130 | cat confdefs.h |
1c710c3c DJ |
2131 | echo |
2132 | fi | |
2133 | test "$ac_signal" != 0 && | |
5213506e RW |
2134 | $as_echo "$as_me: caught signal $ac_signal" |
2135 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2136 | } >&5 |
5213506e RW |
2137 | rm -f core *.core core.conftest.* && |
2138 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2139 | exit $exit_status |
5213506e | 2140 | ' 0 |
1c710c3c | 2141 | for ac_signal in 1 2 13 15; do |
5213506e | 2142 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2143 | done |
2144 | ac_signal=0 | |
2145 | ||
2146 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2147 | rm -f -r conftest* confdefs.h |
2148 | ||
2149 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2150 | |
2151 | # Predefined preprocessor variables. | |
2152 | ||
2153 | cat >>confdefs.h <<_ACEOF | |
2154 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2155 | _ACEOF | |
2156 | ||
1c710c3c DJ |
2157 | cat >>confdefs.h <<_ACEOF |
2158 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2159 | _ACEOF | |
2160 | ||
1c710c3c DJ |
2161 | cat >>confdefs.h <<_ACEOF |
2162 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2163 | _ACEOF | |
0b0dc272 | 2164 | |
1c710c3c DJ |
2165 | cat >>confdefs.h <<_ACEOF |
2166 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2167 | _ACEOF | |
2168 | ||
1c710c3c DJ |
2169 | cat >>confdefs.h <<_ACEOF |
2170 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2171 | _ACEOF | |
2172 | ||
5213506e RW |
2173 | cat >>confdefs.h <<_ACEOF |
2174 | #define PACKAGE_URL "$PACKAGE_URL" | |
2175 | _ACEOF | |
2176 | ||
1c710c3c DJ |
2177 | |
2178 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2179 | # Prefer an explicitly selected file to automatically selected ones. |
2180 | ac_site_file1=NONE | |
2181 | ac_site_file2=NONE | |
2182 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2183 | # We do not want a PATH search for config.site. |
2184 | case $CONFIG_SITE in #(( | |
2185 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2186 | */*) ac_site_file1=$CONFIG_SITE;; | |
2187 | *) ac_site_file1=./$CONFIG_SITE;; | |
2188 | esac | |
5213506e RW |
2189 | elif test "x$prefix" != xNONE; then |
2190 | ac_site_file1=$prefix/share/config.site | |
2191 | ac_site_file2=$prefix/etc/config.site | |
2192 | else | |
2193 | ac_site_file1=$ac_default_prefix/share/config.site | |
2194 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2195 | fi |
5213506e RW |
2196 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2197 | do | |
2198 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2199 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2201 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2202 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2203 | . "$ac_site_file" \ |
2204 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2205 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2206 | as_fn_error $? "failed to load site script $ac_site_file | |
2207 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2208 | fi |
2209 | done | |
2210 | ||
2211 | if test -r "$cache_file"; then | |
22e05272 JM |
2212 | # Some versions of bash will fail to source /dev/null (special files |
2213 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2214 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2216 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2217 | case $cache_file in |
5213506e RW |
2218 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2219 | *) . "./$cache_file";; | |
1c710c3c DJ |
2220 | esac |
2221 | fi | |
671aa708 | 2222 | else |
5213506e RW |
2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2224 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2225 | >$cache_file |
2226 | fi | |
2227 | ||
2228 | # Check that the precious variables saved in the cache have kept the same | |
2229 | # value. | |
2230 | ac_cache_corrupted=false | |
5213506e | 2231 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2232 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2233 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2234 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2235 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2236 | case $ac_old_set,$ac_new_set in |
2237 | set,) | |
5213506e RW |
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2239 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2240 | ac_cache_corrupted=: ;; |
2241 | ,set) | |
5213506e RW |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2243 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2244 | ac_cache_corrupted=: ;; |
2245 | ,);; | |
2246 | *) | |
2247 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2248 | # differences in whitespace do not lead to failure. |
2249 | ac_old_val_w=`echo x $ac_old_val` | |
2250 | ac_new_val_w=`echo x $ac_new_val` | |
2251 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2253 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2254 | ac_cache_corrupted=: | |
2255 | else | |
2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2257 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2258 | eval $ac_var=\$ac_old_val | |
2259 | fi | |
2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2261 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2263 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2264 | fi;; |
2265 | esac | |
2266 | # Pass precious variables to config.status. | |
2267 | if test "$ac_new_set" = set; then | |
2268 | case $ac_new_val in | |
5213506e | 2269 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2270 | *) ac_arg=$ac_var=$ac_new_val ;; |
2271 | esac | |
2272 | case " $ac_configure_args " in | |
2273 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2274 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2275 | esac |
2276 | fi | |
2277 | done | |
2278 | if $ac_cache_corrupted; then | |
5213506e RW |
2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2281 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2282 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2283 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2284 | fi |
5213506e RW |
2285 | ## -------------------- ## |
2286 | ## Main body of script. ## | |
2287 | ## -------------------- ## | |
671aa708 | 2288 | |
2aeb72e9 DD |
2289 | ac_ext=c |
2290 | ac_cpp='$CPP $CPPFLAGS' | |
2291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2294 | ||
1c710c3c DJ |
2295 | |
2296 | ||
2297 | ||
1c710c3c DJ |
2298 | |
2299 | ||
0115d4a3 | 2300 | |
1c710c3c | 2301 | |
ad33ff57 RW |
2302 | progname=$0 |
2303 | # if PWD already has a value, it is probably wrong. | |
2304 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2305 | ||
2306 | # Export original configure arguments for use by sub-configures. | |
2307 | # Quote arguments with shell meta charatcers. | |
2308 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2309 | set -- "$progname" "$@" | |
2310 | for ac_arg | |
2311 | do | |
2312 | case "$ac_arg" in | |
2313 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2314 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2315 | # if the argument is of the form -foo=baz, quote the baz part only | |
2316 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2317 | *) ;; | |
2318 | esac | |
2319 | # Add the quoted argument to the list. | |
2320 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2321 | done | |
2322 | if test "$silent" = yes; then | |
2323 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2324 | fi | |
2325 | # Remove the initial space we just introduced and, as these will be | |
2326 | # expanded by make, quote '$'. | |
2327 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2328 | ||
1c710c3c DJ |
2329 | |
2330 | # Find the build, host, and target systems. | |
671aa708 | 2331 | ac_aux_dir= |
5213506e | 2332 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2333 | if test -f "$ac_dir/install-sh"; then |
2334 | ac_aux_dir=$ac_dir | |
2335 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2336 | break | |
2337 | elif test -f "$ac_dir/install.sh"; then | |
2338 | ac_aux_dir=$ac_dir | |
2339 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2340 | break | |
2341 | elif test -f "$ac_dir/shtool"; then | |
2342 | ac_aux_dir=$ac_dir | |
2343 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2344 | break | |
2345 | fi | |
671aa708 NN |
2346 | done |
2347 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2348 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2349 | fi |
5213506e RW |
2350 | |
2351 | # These three variables are undocumented and unsupported, | |
2352 | # and are intended to be withdrawn in a future Autoconf release. | |
2353 | # They can cause serious problems if a builder's source tree is in a directory | |
2354 | # whose full name contains unusual characters. | |
2355 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2356 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2357 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2358 | ||
671aa708 | 2359 | |
1c710c3c | 2360 | # Make sure we can run config.sub. |
5213506e | 2361 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2362 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2363 | |
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2365 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2366 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2367 | $as_echo_n "(cached) " >&6 |
2368 | else | |
2369 | ac_build_alias=$build_alias | |
2370 | test "x$ac_build_alias" = x && | |
2371 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2372 | test "x$ac_build_alias" = x && | |
22e05272 | 2373 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2374 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2375 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2376 | |
2377 | fi | |
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2379 | $as_echo "$ac_cv_build" >&6; } | |
2380 | case $ac_cv_build in | |
2381 | *-*-*) ;; | |
22e05272 | 2382 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2383 | esac |
1c710c3c | 2384 | build=$ac_cv_build |
5213506e RW |
2385 | ac_save_IFS=$IFS; IFS='-' |
2386 | set x $ac_cv_build | |
2387 | shift | |
2388 | build_cpu=$1 | |
2389 | build_vendor=$2 | |
2390 | shift; shift | |
2391 | # Remember, the first character of IFS is used to create $*, | |
2392 | # except with old shells: | |
2393 | build_os=$* | |
2394 | IFS=$ac_save_IFS | |
2395 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2396 | |
671aa708 | 2397 | |
1c710c3c DJ |
2398 | case ${build_alias} in |
2399 | "") build_noncanonical=${build} ;; | |
2400 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2401 | esac |
2402 | ||
2403 | ||
af71363e | 2404 | |
1c710c3c DJ |
2405 | case ${host_alias} in |
2406 | "") host_noncanonical=${build_noncanonical} ;; | |
2407 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2408 | esac |
2409 | ||
af71363e | 2410 | |
1c710c3c DJ |
2411 | |
2412 | case ${target_alias} in | |
2413 | "") target_noncanonical=${host_noncanonical} ;; | |
2414 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2415 | esac |
2416 | ||
af71363e | 2417 | |
1c710c3c DJ |
2418 | |
2419 | ||
2420 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2421 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2422 | NONENONEs,x,x, && | |
1c710c3c | 2423 | program_transform_name=s,y,y, |
af71363e | 2424 | |
5213506e RW |
2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2426 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2427 | if ${ac_cv_host+:} false; then : |
5213506e | 2428 | $as_echo_n "(cached) " >&6 |
af71363e | 2429 | else |
5213506e RW |
2430 | if test "x$host_alias" = x; then |
2431 | ac_cv_host=$ac_cv_build | |
2432 | else | |
2433 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2434 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2435 | fi |
1c710c3c | 2436 | |
af71363e | 2437 | fi |
5213506e RW |
2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2439 | $as_echo "$ac_cv_host" >&6; } | |
2440 | case $ac_cv_host in | |
2441 | *-*-*) ;; | |
22e05272 | 2442 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2443 | esac |
1c710c3c | 2444 | host=$ac_cv_host |
5213506e RW |
2445 | ac_save_IFS=$IFS; IFS='-' |
2446 | set x $ac_cv_host | |
2447 | shift | |
2448 | host_cpu=$1 | |
2449 | host_vendor=$2 | |
2450 | shift; shift | |
2451 | # Remember, the first character of IFS is used to create $*, | |
2452 | # except with old shells: | |
2453 | host_os=$* | |
2454 | IFS=$ac_save_IFS | |
2455 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2456 | |
2457 | ||
5213506e RW |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2459 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2460 | if ${ac_cv_target+:} false; then : |
5213506e | 2461 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2462 | else |
5213506e RW |
2463 | if test "x$target_alias" = x; then |
2464 | ac_cv_target=$ac_cv_host | |
2465 | else | |
2466 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2467 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2468 | fi |
1c710c3c DJ |
2469 | |
2470 | fi | |
5213506e RW |
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2472 | $as_echo "$ac_cv_target" >&6; } | |
2473 | case $ac_cv_target in | |
2474 | *-*-*) ;; | |
22e05272 | 2475 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2476 | esac |
1c710c3c | 2477 | target=$ac_cv_target |
5213506e RW |
2478 | ac_save_IFS=$IFS; IFS='-' |
2479 | set x $ac_cv_target | |
2480 | shift | |
2481 | target_cpu=$1 | |
2482 | target_vendor=$2 | |
2483 | shift; shift | |
2484 | # Remember, the first character of IFS is used to create $*, | |
2485 | # except with old shells: | |
2486 | target_os=$* | |
2487 | IFS=$ac_save_IFS | |
2488 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2489 | |
2490 | ||
2491 | # The aliases save the names the user supplied, while $host etc. | |
2492 | # will get canonicalized. | |
2493 | test -n "$target_alias" && | |
2494 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2495 | NONENONEs,x,x, && | |
2496 | program_prefix=${target_alias}- | |
5213506e | 2497 | |
671aa708 | 2498 | test "$program_prefix" != NONE && |
5213506e | 2499 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2500 | # Use a double $ so make ignores it. |
2501 | test "$program_suffix" != NONE && | |
5213506e RW |
2502 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2503 | # Double any \ or $. | |
1c710c3c | 2504 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2505 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2506 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2507 | |
671aa708 NN |
2508 | |
2509 | ||
775956d0 NN |
2510 | # Get 'install' or 'install-sh' and its variants. |
2511 | # Find a good install program. We prefer a C program (faster), | |
2512 | # so one script is as good as another. But avoid the broken or | |
2513 | # incompatible versions: | |
2514 | # SysV /etc/install, /usr/sbin/install | |
2515 | # SunOS /usr/etc/install | |
2516 | # IRIX /sbin/install | |
2517 | # AIX /bin/install | |
1c710c3c | 2518 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2519 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2520 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2521 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2522 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2523 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2524 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2526 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2527 | if test -z "$INSTALL"; then |
22e05272 | 2528 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2529 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2530 | else |
2531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2532 | for as_dir in $PATH | |
2533 | do | |
2534 | IFS=$as_save_IFS | |
2535 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2536 | # Account for people who put trailing slashes in PATH elements. |
2537 | case $as_dir/ in #(( | |
2538 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2539 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2540 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2541 | /usr/ucb/* ) ;; |
2542 | *) | |
2543 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2544 | # Don't use installbsd from OSF since it installs stuff as root | |
2545 | # by default. | |
2546 | for ac_prog in ginstall scoinst install; do | |
2547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2548 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2549 | if test $ac_prog = install && |
1c710c3c | 2550 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2551 | # AIX install. It has an incompatible calling convention. |
2552 | : | |
1c710c3c DJ |
2553 | elif test $ac_prog = install && |
2554 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2555 | # program-specific install script used by HP pwplus--don't use. | |
2556 | : | |
775956d0 | 2557 | else |
38d24731 RW |
2558 | rm -rf conftest.one conftest.two conftest.dir |
2559 | echo one > conftest.one | |
2560 | echo two > conftest.two | |
2561 | mkdir conftest.dir | |
2562 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2563 | test -s conftest.one && test -s conftest.two && | |
2564 | test -s conftest.dir/conftest.one && | |
2565 | test -s conftest.dir/conftest.two | |
2566 | then | |
2567 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2568 | break 3 | |
2569 | fi | |
775956d0 NN |
2570 | fi |
2571 | fi | |
2572 | done | |
1c710c3c DJ |
2573 | done |
2574 | ;; | |
2575 | esac | |
5213506e RW |
2576 | |
2577 | done | |
2578 | IFS=$as_save_IFS | |
1c710c3c | 2579 | |
38d24731 | 2580 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2581 | |
2582 | fi | |
2583 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2584 | INSTALL=$ac_cv_path_install |
775956d0 | 2585 | else |
38d24731 RW |
2586 | # As a last resort, use the slow shell script. Don't cache a |
2587 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2588 | # break other packages using the cache if that directory is |
38d24731 | 2589 | # removed, or if the value is a relative name. |
1c710c3c | 2590 | INSTALL=$ac_install_sh |
775956d0 NN |
2591 | fi |
2592 | fi | |
5213506e RW |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2594 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2595 | |
2596 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2597 | # It thinks the first close brace ends the variable substitution. | |
2598 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2599 | ||
1c710c3c | 2600 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2601 | |
2602 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2603 | ||
5213506e RW |
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2605 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2606 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2607 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2608 | else |
2609 | rm -f conftestdata_t | |
2610 | echo >conftestdata_f | |
2611 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2612 | then | |
2613 | acx_cv_prog_LN=ln | |
2614 | else | |
2615 | acx_cv_prog_LN=no | |
2616 | fi | |
2617 | rm -f conftestdata_f conftestdata_t | |
2618 | ||
2619 | fi | |
2620 | if test $acx_cv_prog_LN = no; then | |
2621 | LN="cp" | |
5213506e RW |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2623 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2624 | else |
2625 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2627 | $as_echo "yes" >&6; } | |
ad6717df PB |
2628 | fi |
2629 | ||
5213506e RW |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2631 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2632 | LN_S=$as_ln_s |
2633 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2635 | $as_echo "yes" >&6; } | |
fb0103e5 | 2636 | else |
5213506e RW |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2638 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2639 | fi |
2640 | ||
87264276 PB |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2642 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2643 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2644 | $as_echo_n "(cached) " >&6 |
2645 | else | |
2646 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2647 | for ac_i in 1 2 3 4 5 6 7; do | |
2648 | ac_script="$ac_script$as_nl$ac_script" | |
2649 | done | |
2650 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2651 | { ac_script=; unset ac_script;} | |
2652 | if test -z "$SED"; then | |
2653 | ac_path_SED_found=false | |
2654 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
2658 | IFS=$as_save_IFS | |
2659 | test -z "$as_dir" && as_dir=. | |
2660 | for ac_prog in sed gsed; do | |
2661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2662 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2663 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2664 | # Check for GNU ac_path_SED and select it if it is found. |
2665 | # Check for GNU $ac_path_SED | |
2666 | case `"$ac_path_SED" --version 2>&1` in | |
2667 | *GNU*) | |
2668 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2669 | *) | |
2670 | ac_count=0 | |
2671 | $as_echo_n 0123456789 >"conftest.in" | |
2672 | while : | |
2673 | do | |
2674 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2675 | mv "conftest.tmp" "conftest.in" | |
2676 | cp "conftest.in" "conftest.nl" | |
2677 | $as_echo '' >> "conftest.nl" | |
2678 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2679 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2680 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2681 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2682 | # Best one so far, save it but keep looking for a better one | |
2683 | ac_cv_path_SED="$ac_path_SED" | |
2684 | ac_path_SED_max=$ac_count | |
2685 | fi | |
2686 | # 10*(2^10) chars as input seems more than enough | |
2687 | test $ac_count -gt 10 && break | |
2688 | done | |
2689 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2690 | esac | |
2691 | ||
2692 | $ac_path_SED_found && break 3 | |
2693 | done | |
2694 | done | |
2695 | done | |
2696 | IFS=$as_save_IFS | |
2697 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2698 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2699 | fi |
2700 | else | |
2701 | ac_cv_path_SED=$SED | |
2702 | fi | |
2703 | ||
2704 | fi | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2706 | $as_echo "$ac_cv_path_SED" >&6; } | |
2707 | SED="$ac_cv_path_SED" | |
2708 | rm -f conftest.sed | |
2709 | ||
2710 | for ac_prog in gawk mawk nawk awk | |
2711 | do | |
2712 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2713 | set dummy $ac_prog; ac_word=$2 | |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2715 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2716 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2717 | $as_echo_n "(cached) " >&6 |
2718 | else | |
2719 | if test -n "$AWK"; then | |
2720 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2721 | else | |
2722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2723 | for as_dir in $PATH | |
2724 | do | |
2725 | IFS=$as_save_IFS | |
2726 | test -z "$as_dir" && as_dir=. | |
2727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2729 | ac_cv_prog_AWK="$ac_prog" |
2730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2731 | break 2 | |
2732 | fi | |
2733 | done | |
2734 | done | |
2735 | IFS=$as_save_IFS | |
2736 | ||
2737 | fi | |
2738 | fi | |
2739 | AWK=$ac_cv_prog_AWK | |
2740 | if test -n "$AWK"; then | |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2742 | $as_echo "$AWK" >&6; } | |
2743 | else | |
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2745 | $as_echo "no" >&6; } | |
2746 | fi | |
2747 | ||
2748 | ||
2749 | test -n "$AWK" && break | |
2750 | done | |
2751 | ||
775956d0 | 2752 | |
ee6a22df L |
2753 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2754 | ||
2755 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2756 | # a relative path. | |
2757 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2758 | INSTALL="${srcpwd}/install-sh -c" | |
2759 | fi | |
2760 | ||
671aa708 NN |
2761 | # Set srcdir to "." if that's what it is. |
2762 | # This is important for multilib support. | |
2763 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2764 | if test "${pwd}" = "${srcpwd}" ; then |
2765 | srcdir=. | |
79c06341 JL |
2766 | fi |
2767 | ||
671aa708 | 2768 | topsrcdir=$srcpwd |
5d4a5ee6 | 2769 | |
671aa708 | 2770 | extra_host_args= |
afabd8e6 | 2771 | |
671aa708 NN |
2772 | ### To add a new directory to the tree, first choose whether it is a target |
2773 | ### or a host dependent tool. Then put it into the appropriate list | |
2774 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2775 | |
1c710c3c | 2776 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2777 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2778 | |
1c710c3c DJ |
2779 | # Dependency sorting is only needed when *configuration* must be done in |
2780 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2781 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2782 | |
671aa708 NN |
2783 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2784 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2785 | |
23f6b2f9 PB |
2786 | # these library is used by various programs built for the build |
2787 | # environment | |
2788 | # | |
929315a9 | 2789 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2790 | |
2791 | # these tools are built for the build environment | |
85bfb75e | 2792 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2793 | |
671aa708 | 2794 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2795 | #f |
de6abd85 | 2796 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
671aa708 | 2797 | |
671aa708 NN |
2798 | # these tools are built for the host environment |
2799 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2800 | # know that we are building the simulator. | |
2801 | # binutils, gas and ld appear in that order because it makes sense to run | |
2802 | # "make check" in that particular order. | |
38e3d868 | 2803 | # If --enable-gold is used, "gold" may replace "ld". |
f9d09df0 | 2804 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
671aa708 | 2805 | |
671aa708 NN |
2806 | # these libraries are built for the target environment, and are built after |
2807 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2808 | # Note that libiberty is not a target library. |
291f172e | 2809 | target_libraries="target-libgcc \ |
eff02e4f | 2810 | target-libbacktrace \ |
671aa708 NN |
2811 | target-libgloss \ |
2812 | target-newlib \ | |
6d3b5aea | 2813 | target-libgomp \ |
5f520819 | 2814 | target-liboffloadmic \ |
5fd1486c | 2815 | target-libhsail-rt \ |
48310492 | 2816 | target-libatomic \ |
0a35513e | 2817 | target-libitm \ |
cb543528 | 2818 | target-libstdc++-v3 \ |
f35db108 | 2819 | target-libsanitizer \ |
2077db1b | 2820 | target-libvtv \ |
77008252 | 2821 | target-libssp \ |
1ec601bf | 2822 | target-libquadmath \ |
6de9cd9a | 2823 | target-libgfortran \ |
012447ea | 2824 | target-libffi \ |
d9cdb878 | 2825 | target-libobjc \ |
632e2a07 | 2826 | target-libada \ |
b4c522fa | 2827 | target-libgo \ |
bb50312e IB |
2828 | target-libphobos \ |
2829 | target-zlib" | |
671aa708 | 2830 | |
4dbda6f0 NN |
2831 | # these tools are built using the target libraries, and are intended to |
2832 | # run only in the target environment | |
671aa708 | 2833 | # |
4dbda6f0 | 2834 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2835 | # list belongs in this list. |
671aa708 | 2836 | # |
85bfb75e | 2837 | target_tools="target-rda" |
79c06341 | 2838 | |
671aa708 | 2839 | ################################################################################ |
79c06341 | 2840 | |
671aa708 NN |
2841 | ## All tools belong in one of the four categories, and are assigned above |
2842 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2843 | ## is important because configure will choke if they ever get through. | |
2844 | ## ${configdirs} is directories we build using the host tools. | |
2845 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2846 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2847 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2848 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2849 | |
ac9e6043 RW |
2850 | |
2851 | ||
671aa708 | 2852 | ################################################################################ |
79c06341 | 2853 | |
671aa708 | 2854 | srcname="gnu development package" |
79c06341 | 2855 | |
671aa708 NN |
2856 | # This gets set non-empty for some net releases of packages. |
2857 | appdirs="" | |
79c06341 | 2858 | |
671aa708 NN |
2859 | # Define is_cross_compiler to save on calls to 'test'. |
2860 | is_cross_compiler= | |
2861 | if test x"${host}" = x"${target}" ; then | |
2862 | is_cross_compiler=no | |
79c06341 | 2863 | else |
671aa708 | 2864 | is_cross_compiler=yes |
1c710c3c | 2865 | fi |
79c06341 | 2866 | |
b4acb5ef | 2867 | # Find the build and target subdir names. |
8b87bb96 | 2868 | |
2e9e6f68 DJ |
2869 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2870 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2871 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2872 | # However, they still use the build modules, because the corresponding | |
2873 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2874 | # finishes. So: | |
2875 | # - build_subdir is where we find build modules, and never changes. | |
2876 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2877 | ||
2878 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2879 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2880 | |
5213506e RW |
2881 | # Check whether --with-build-libsubdir was given. |
2882 | if test "${with_build_libsubdir+set}" = set; then : | |
2883 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2884 | else |
2885 | build_libsubdir="$build_subdir" | |
5213506e RW |
2886 | fi |
2887 | ||
215c351a PB |
2888 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2889 | if ( test $srcdir = . && test -d gcc ) \ | |
2890 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2891 | host_subdir="host-${host_noncanonical}" | |
2892 | else | |
2893 | host_subdir=. | |
2894 | fi | |
8b87bb96 NN |
2895 | # No prefix. |
2896 | target_subdir=${target_noncanonical} | |
1c710c3c | 2897 | |
0db770bd RW |
2898 | # Be sure to cover against remnants of an in-tree build. |
2899 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2900 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2901 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2902 | fi | |
79c06341 | 2903 | |
671aa708 NN |
2904 | # Skipdirs are removed silently. |
2905 | skipdirs= | |
2906 | # Noconfigdirs are removed loudly. | |
2907 | noconfigdirs="" | |
79c06341 | 2908 | |
671aa708 NN |
2909 | use_gnu_ld= |
2910 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2911 | if test x$with_gnu_ld = xno ; then | |
2912 | use_gnu_ld=no | |
5afab7ad | 2913 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2914 | fi |
2915 | ||
671aa708 NN |
2916 | use_gnu_as= |
2917 | # Make sure we don't let GNU as be added if we didn't want it. | |
2918 | if test x$with_gnu_as = xno ; then | |
2919 | use_gnu_as=no | |
2920 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2921 | fi |
2922 | ||
d7f09764 | 2923 | use_included_zlib= |
a05c2c75 L |
2924 | |
2925 | # Check whether --with-system-zlib was given. | |
2926 | if test "${with_system_zlib+set}" = set; then : | |
2927 | withval=$with_system_zlib; | |
2928 | fi | |
2929 | ||
d7f09764 DN |
2930 | # Make sure we don't let ZLIB be added if we didn't want it. |
2931 | if test x$with_system_zlib = xyes ; then | |
2932 | use_included_zlib=no | |
2933 | noconfigdirs="$noconfigdirs zlib" | |
2934 | fi | |
2935 | ||
1c710c3c | 2936 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2937 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2938 | |
671aa708 NN |
2939 | case ${with_x} in |
2940 | yes | "") ;; # the default value for this tree is that X11 is available | |
2941 | no) | |
b4f96efe | 2942 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2943 | # We won't be able to build gdbtk without X. |
1c710c3c | 2944 | enable_gdbtk=no |
671aa708 NN |
2945 | ;; |
2946 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2947 | esac | |
79c06341 | 2948 | |
1bcce263 | 2949 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2950 | # Remove these if host=target. |
2951 | cross_only="target-libgloss target-newlib target-opcodes" | |
2952 | ||
2953 | case $is_cross_compiler in | |
2954 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2955 | esac |
79c06341 | 2956 | |
671aa708 NN |
2957 | # If both --with-headers and --with-libs are specified, default to |
2958 | # --without-newlib. | |
ee6a22df L |
2959 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2960 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2961 | if test x"${with_newlib}" = x ; then |
2962 | with_newlib=no | |
2963 | fi | |
79c06341 JL |
2964 | fi |
2965 | ||
671aa708 NN |
2966 | # Recognize --with-newlib/--without-newlib. |
2967 | case ${with_newlib} in | |
2968 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2969 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2970 | esac | |
79c06341 | 2971 | |
85c64bbe BS |
2972 | # Check whether --enable-as-accelerator-for was given. |
2973 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2974 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2975 | fi |
2976 | ||
2977 | ||
2978 | # Check whether --enable-offload-targets was given. | |
2979 | if test "${enable_offload_targets+set}" = set; then : | |
2980 | enableval=$enable_offload_targets; | |
2981 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 2982 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
2983 | fi |
2984 | ||
2985 | else | |
2986 | enable_offload_targets= | |
2987 | fi | |
2988 | ||
2989 | ||
21539e2e MK |
2990 | # Handle --enable-gold, --enable-ld. |
2991 | # --disable-gold [--enable-ld] | |
2992 | # Build only ld. Default option. | |
9580395f L |
2993 | # --enable-gold [--enable-ld] |
2994 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2995 | # as "ld.bfd" and "ld". | |
2996 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2997 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2998 | # install ld as "ld.bfd". | |
2999 | # --enable-gold[=default] --disable-ld | |
3000 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3001 | # --enable-gold --enable-ld=default | |
9580395f L |
3002 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3003 | # and ld.bfd). | |
21539e2e MK |
3004 | # In other words, ld is default |
3005 | # --enable-gold=default --enable-ld=default | |
3006 | # Error. | |
3007 | ||
3008 | default_ld= | |
5213506e RW |
3009 | # Check whether --enable-gold was given. |
3010 | if test "${enable_gold+set}" = set; then : | |
3011 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3012 | else |
3013 | ENABLE_GOLD=no | |
5213506e RW |
3014 | fi |
3015 | ||
21539e2e MK |
3016 | case "${ENABLE_GOLD}" in |
3017 | yes|default) | |
38e3d868 RM |
3018 | # Check for ELF target. |
3019 | is_elf=no | |
3020 | case "${target}" in | |
3021 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3022 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3023 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3024 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3025 | case "${target}" in |
3026 | *-*-linux*aout* | *-*-linux*oldld*) | |
3027 | ;; | |
3028 | *) | |
3029 | is_elf=yes | |
3030 | ;; | |
3031 | esac | |
3032 | esac | |
3033 | ||
3034 | if test "$is_elf" = "yes"; then | |
3035 | # Check for target supported by gold. | |
5afab7ad | 3036 | case "${target}" in |
7705dfd1 | 3037 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 3038 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
3039 | configdirs="$configdirs gold" |
3040 | if test x${ENABLE_GOLD} = xdefault; then | |
3041 | default_ld=gold | |
3042 | fi | |
38e3d868 | 3043 | ENABLE_GOLD=yes |
5afab7ad ILT |
3044 | ;; |
3045 | esac | |
38e3d868 RM |
3046 | fi |
3047 | ;; | |
3048 | no) | |
3049 | ;; | |
3050 | *) | |
22e05272 | 3051 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3052 | ;; |
21539e2e MK |
3053 | esac |
3054 | ||
3055 | # Check whether --enable-ld was given. | |
3056 | if test "${enable_ld+set}" = set; then : | |
3057 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3058 | else | |
3059 | ENABLE_LD=yes | |
3060 | fi | |
3061 | ||
3062 | ||
3063 | case "${ENABLE_LD}" in | |
3064 | default) | |
9580395f | 3065 | if test x${default_ld} != x; then |
22e05272 | 3066 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3067 | fi |
3068 | ;; | |
3069 | yes) | |
3070 | ;; | |
3071 | no) | |
3072 | if test x${ENABLE_GOLD} != xyes; then | |
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3074 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3075 | fi | |
3076 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3077 | ;; | |
3078 | *) | |
22e05272 | 3079 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3080 | ;; |
3081 | esac | |
5afab7ad | 3082 | |
78edb32f L |
3083 | # PR gas/19109 |
3084 | # Decide the default method for compressing debug sections. | |
3085 | # Provide a configure time option to override our default. | |
3086 | # Check whether --enable-compressed_debug_sections was given. | |
3087 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3088 | enableval=$enable_compressed_debug_sections; | |
3089 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3090 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3091 | fi |
3092 | ||
3093 | else | |
3094 | enable_compressed_debug_sections= | |
3095 | fi | |
3096 | ||
3097 | ||
671aa708 | 3098 | # Configure extra directories which are host specific |
79c06341 | 3099 | |
671aa708 NN |
3100 | case "${host}" in |
3101 | *-cygwin*) | |
3102 | configdirs="$configdirs libtermcap" ;; | |
3103 | esac | |
79c06341 | 3104 | |
4fab7234 HPN |
3105 | # A target can indicate whether a language isn't supported for some reason. |
3106 | # Only spaces may be used in this macro; not newlines or tabs. | |
3107 | unsupported_languages= | |
3108 | ||
1c710c3c | 3109 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3110 | # target this usually means that a port of the program doesn't |
3111 | # exist yet. | |
ec8d6ddc | 3112 | |
671aa708 | 3113 | case "${host}" in |
111eeb6e | 3114 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3115 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3116 | ;; |
671aa708 | 3117 | esac |
ec8d6ddc | 3118 | |
6de9cd9a | 3119 | |
87e6d9dc TB |
3120 | # Check whether --enable-libquadmath was given. |
3121 | if test "${enable_libquadmath+set}" = set; then : | |
3122 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3123 | else | |
3124 | ENABLE_LIBQUADMATH=yes | |
3125 | fi | |
3126 | ||
3127 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3128 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3129 | fi | |
3130 | ||
3131 | ||
3132 | # Check whether --enable-libquadmath-support was given. | |
3133 | if test "${enable_libquadmath_support+set}" = set; then : | |
3134 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3135 | else | |
3136 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3137 | fi | |
3138 | ||
3139 | enable_libquadmath_support= | |
3140 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3141 | enable_libquadmath_support=no | |
3142 | fi | |
3143 | ||
3144 | ||
5213506e RW |
3145 | # Check whether --enable-libada was given. |
3146 | if test "${enable_libada+set}" = set; then : | |
3147 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3148 | else |
3149 | ENABLE_LIBADA=yes | |
5213506e RW |
3150 | fi |
3151 | ||
d9cdb878 | 3152 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3153 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3154 | fi |
3155 | ||
5213506e RW |
3156 | # Check whether --enable-libssp was given. |
3157 | if test "${enable_libssp+set}" = set; then : | |
3158 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3159 | else |
3160 | ENABLE_LIBSSP=yes | |
5213506e RW |
3161 | fi |
3162 | ||
ef0087a7 | 3163 | |
1873ec0c L |
3164 | # Check whether --enable-libstdcxx was given. |
3165 | if test "${enable_libstdcxx+set}" = set; then : | |
3166 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3167 | else | |
3168 | ENABLE_LIBSTDCXX=default | |
3169 | fi | |
3170 | ||
3171 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3172 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3173 | fi |
3174 | ||
5f520819 KY |
3175 | # If this is accelerator compiler and its target is intelmic we enable |
3176 | # target liboffloadmic by default. If this is compiler with offloading | |
3177 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3178 | # liboffloadmic is disabled by default. | |
3179 | # Check whether --enable-liboffloadmic was given. | |
3180 | if test "${enable_liboffloadmic+set}" = set; then : | |
3181 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3182 | no | host | target) | |
3183 | enable_liboffloadmic=$enableval ;; | |
3184 | *) | |
22e05272 | 3185 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
5f520819 KY |
3186 | esac |
3187 | else | |
4b4f2e35 | 3188 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3189 | case "${target}" in |
3190 | *-intelmic-* | *-intelmicemul-*) | |
3191 | enable_liboffloadmic=target | |
3192 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3193 | ;; | |
3194 | *) | |
3195 | enable_liboffloadmic=no | |
3196 | ;; | |
3197 | esac | |
3198 | else | |
3199 | case "${enable_offload_targets}" in | |
3200 | *-intelmic-* | *-intelmicemul-*) | |
3201 | enable_liboffloadmic=host | |
3202 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3203 | ;; | |
3204 | *) | |
3205 | enable_liboffloadmic=no | |
3206 | ;; | |
3207 | esac | |
3208 | fi | |
3209 | fi | |
3210 | ||
3211 | ||
3212 | ||
44a7d18d | 3213 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3214 | if test x$enable_libgomp = x ; then |
953ff289 | 3215 | case "${target}" in |
416ac4d4 | 3216 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3217 | ;; |
8c6d158a | 3218 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3219 | ;; |
b24513a1 | 3220 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3221 | ;; |
cac90078 | 3222 | *-*-darwin* | *-*-aix*) |
953ff289 | 3223 | ;; |
29b1533a | 3224 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3225 | ;; |
953ff289 DN |
3226 | *) |
3227 | noconfigdirs="$noconfigdirs target-libgomp" | |
3228 | ;; | |
3229 | esac | |
27079765 | 3230 | fi |
953ff289 | 3231 | |
48310492 RH |
3232 | # Disable libatomic on unsupported systems. |
3233 | if test -d ${srcdir}/libatomic; then | |
3234 | if test x$enable_libatomic = x; then | |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3236 | $as_echo_n "checking for libatomic support... " >&6; } | |
3237 | if (srcdir=${srcdir}/libatomic; \ | |
3238 | . ${srcdir}/configure.tgt; \ | |
3239 | test -n "$UNSUPPORTED") | |
3240 | then | |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3242 | $as_echo "no" >&6; } | |
3243 | noconfigdirs="$noconfigdirs target-libatomic" | |
3244 | else | |
3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3246 | $as_echo "yes" >&6; } | |
3247 | fi | |
3248 | fi | |
3249 | fi | |
3250 | ||
5f520819 KY |
3251 | # Disable liboffloadmic on unsupported systems. |
3252 | if test -d ${srcdir}/liboffloadmic; then | |
3253 | if test x$enable_liboffloadmic != xno; then | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3255 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3256 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3257 | . ${srcdir}/configure.tgt; \ | |
3258 | test -n "$UNSUPPORTED") | |
3259 | then | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3261 | $as_echo "no" >&6; } | |
3262 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3263 | else | |
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3265 | $as_echo "yes" >&6; } | |
3266 | fi | |
3267 | fi | |
3268 | fi | |
3269 | ||
e948157d RH |
3270 | # Disable libitm on unsupported systems. |
3271 | if test -d ${srcdir}/libitm; then | |
3272 | if test x$enable_libitm = x; then | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3274 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3275 | if (srcdir=${srcdir}/libitm; \ |
3276 | . ${srcdir}/configure.tgt; \ | |
3277 | test -n "$UNSUPPORTED") | |
3278 | then | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3280 | $as_echo "no" >&6; } |
e948157d RH |
3281 | noconfigdirs="$noconfigdirs target-libitm" |
3282 | else | |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3284 | $as_echo "yes" >&6; } |
e948157d RH |
3285 | fi |
3286 | fi | |
0a35513e AH |
3287 | fi |
3288 | ||
93bf5390 RH |
3289 | # Disable libsanitizer on unsupported systems. |
3290 | if test -d ${srcdir}/libsanitizer; then | |
3291 | if test x$enable_libsanitizer = x; then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3293 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3294 | if (srcdir=${srcdir}/libsanitizer; \ | |
3295 | . ${srcdir}/configure.tgt; \ | |
3296 | test -n "$UNSUPPORTED") | |
3297 | then | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3299 | $as_echo "no" >&6; } | |
3300 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3301 | else | |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3303 | $as_echo "yes" >&6; } | |
3304 | fi | |
3305 | fi | |
3306 | fi | |
3307 | ||
2077db1b CT |
3308 | # Disable libvtv on unsupported systems. |
3309 | if test -d ${srcdir}/libvtv; then | |
3310 | if test x$enable_libvtv = x; then | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3312 | $as_echo_n "checking for libvtv support... " >&6; } | |
3313 | if (srcdir=${srcdir}/libvtv; \ | |
3314 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3315 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3316 | then |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3318 | $as_echo "no" >&6; } | |
3319 | noconfigdirs="$noconfigdirs target-libvtv" | |
3320 | else | |
3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3322 | $as_echo "yes" >&6; } | |
3323 | fi | |
3324 | fi | |
3325 | fi | |
3326 | ||
5373cd33 | 3327 | |
f6a24a94 MJ |
3328 | # Disable libhsail-rt on unsupported systems. |
3329 | if test -d ${srcdir}/libhsail-rt; then | |
3330 | if test x$enable_libhsail_rt = x; then | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3332 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3333 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3334 | . ${srcdir}/configure.tgt; \ | |
3335 | test -n "$UNSUPPORTED") | |
3336 | then | |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3338 | $as_echo "no" >&6; } | |
3339 | unsupported_languages="$unsupported_languages brig" | |
3340 | # This implicitly disables also target-libhsail-rt as it won't | |
3341 | # get added to the build without BRIG FE. | |
3342 | else | |
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3344 | $as_echo "yes" >&6; } | |
3345 | fi | |
3346 | fi | |
3347 | fi | |
5373cd33 IE |
3348 | |
3349 | ||
d91491e5 SE |
3350 | # Disable libquadmath for some systems. |
3351 | case "${target}" in | |
e7fae550 DE |
3352 | avr-*-*) |
3353 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3354 | ;; | |
d91491e5 SE |
3355 | # libquadmath is unused on AIX and libquadmath build process use of |
3356 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3357 | powerpc-*-aix* | rs6000-*-aix*) | |
3358 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3359 | ;; | |
3360 | esac | |
3361 | ||
1e9e0e23 JM |
3362 | # Disable libssp for some systems. |
3363 | case "${target}" in | |
3364 | avr-*-*) | |
b318fb4b | 3365 | # No hosted I/O support. |
1e9e0e23 JM |
3366 | noconfigdirs="$noconfigdirs target-libssp" |
3367 | ;; | |
91dfef96 JM |
3368 | bpf-*-*) |
3369 | noconfigdirs="$noconfigdirs target-libssp" | |
3370 | ;; | |
1e9e0e23 JM |
3371 | powerpc-*-aix* | rs6000-*-aix*) |
3372 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3373 | ;; |
8d2af3a2 DD |
3374 | pru-*-*) |
3375 | # No hosted I/O support. | |
3376 | noconfigdirs="$noconfigdirs target-libssp" | |
3377 | ;; | |
85b8555e | 3378 | rl78-*-*) |
7cb62ef1 EB |
3379 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3380 | # doesn't fault for those - instead, it gives a build-time error | |
3381 | # for explicit misaligned loads. | |
85b8555e | 3382 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3383 | ;; |
0969ec7d EB |
3384 | visium-*-*) |
3385 | # No hosted I/O support. | |
3386 | noconfigdirs="$noconfigdirs target-libssp" | |
3387 | ;; | |
1e9e0e23 JM |
3388 | esac |
3389 | ||
1e9e0e23 | 3390 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3391 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3392 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3393 | case "${target}" in | |
3394 | *-*-vxworks*) | |
3395 | # VxWorks uses the Dinkumware C++ library. | |
3396 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3397 | ;; | |
afa3d80e TS |
3398 | amdgcn*-*-*) |
3399 | # Not ported/fails to build when using newlib. | |
3400 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3401 | ;; | |
1873ec0c L |
3402 | arm*-wince-pe*) |
3403 | # the C++ libraries don't build on top of CE's C libraries | |
3404 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3405 | ;; | |
3406 | avr-*-*) | |
3407 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3408 | ;; | |
91dfef96 JM |
3409 | bpf-*-*) |
3410 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3411 | ;; | |
fef939d6 JB |
3412 | ft32-*-*) |
3413 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3414 | ;; | |
1873ec0c L |
3415 | esac |
3416 | fi | |
1e9e0e23 | 3417 | |
91dfef96 JM |
3418 | # Disable C++ on systems where it is known to not work. |
3419 | # For testing, you can override this with --enable-languages=c++. | |
3420 | case ,${enable_languages}, in | |
3421 | *,c++,*) | |
3422 | ;; | |
3423 | *) | |
3424 | case "${target}" in | |
3425 | bpf-*-*) | |
3426 | unsupported_languages="$unsupported_languages c++" | |
3427 | ;; | |
3428 | esac | |
3429 | ;; | |
3430 | esac | |
3431 | ||
3432 | # Disable Objc on systems where it is known to not work. | |
3433 | # For testing, you can override this with --enable-languages=objc. | |
3434 | case ,${enable_languages}, in | |
3435 | *,objc,*) | |
3436 | ;; | |
3437 | *) | |
3438 | case "${target}" in | |
3439 | bpf-*-*) | |
3440 | unsupported_languages="$unsupported_languages objc" | |
3441 | ;; | |
3442 | esac | |
3443 | ;; | |
3444 | esac | |
3445 | ||
260eedb9 IB |
3446 | # Disable D on systems where it is known to not work. |
3447 | # For testing, you can override this with --enable-languages=d. | |
3448 | case ,${enable_languages}, in | |
3449 | *,d,*) | |
3450 | ;; | |
3451 | *) | |
3452 | case "${target}" in | |
4d024c32 | 3453 | *-*-darwin*) |
91dfef96 JM |
3454 | unsupported_languages="$unsupported_languages d" |
3455 | ;; | |
3456 | bpf-*-*) | |
260eedb9 IB |
3457 | unsupported_languages="$unsupported_languages d" |
3458 | ;; | |
3459 | esac | |
3460 | ;; | |
3461 | esac | |
3462 | ||
3463 | # Disable libphobos on unsupported systems. | |
3464 | # For testing, you can override this with --enable-libphobos. | |
3465 | if test -d ${srcdir}/libphobos; then | |
3466 | if test x$enable_libphobos = x; then | |
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3468 | $as_echo_n "checking for libphobos support... " >&6; } | |
3469 | if (srcdir=${srcdir}/libphobos; \ | |
3470 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3471 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3472 | then |
3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3474 | $as_echo "no" >&6; } | |
3475 | noconfigdirs="$noconfigdirs target-libphobos" | |
3476 | else | |
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3478 | $as_echo "yes" >&6; } | |
3479 | fi | |
3480 | fi | |
3481 | fi | |
3482 | ||
1e9e0e23 JM |
3483 | # Disable Fortran for some systems. |
3484 | case "${target}" in | |
3485 | mmix-*-*) | |
3486 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3487 | unsupported_languages="$unsupported_languages fortran" | |
3488 | ;; | |
91dfef96 JM |
3489 | bpf-*-*) |
3490 | unsupported_languages="$unsupported_languages fortran" | |
3491 | ;; | |
1e9e0e23 JM |
3492 | esac |
3493 | ||
012447ea JJ |
3494 | # Disable libffi for some systems. |
3495 | case "${target}" in | |
3496 | powerpc-*-darwin*) | |
3497 | ;; | |
3498 | i[3456789]86-*-darwin*) | |
3499 | ;; | |
3500 | x86_64-*-darwin[912]*) | |
3501 | ;; | |
3502 | *-*-darwin*) | |
3503 | noconfigdirs="$noconfigdirs target-libffi" | |
3504 | ;; | |
3505 | *-*-netware*) | |
3506 | noconfigdirs="$noconfigdirs target-libffi" | |
3507 | ;; | |
3508 | *-*-phoenix*) | |
3509 | noconfigdirs="$noconfigdirs target-libffi" | |
3510 | ;; | |
3511 | *-*-rtems*) | |
3512 | noconfigdirs="$noconfigdirs target-libffi" | |
3513 | ;; | |
3514 | *-*-tpf*) | |
3515 | noconfigdirs="$noconfigdirs target-libffi" | |
3516 | ;; | |
3517 | *-*-uclinux*) | |
3518 | noconfigdirs="$noconfigdirs target-libffi" | |
3519 | ;; | |
3520 | *-*-vxworks*) | |
3521 | noconfigdirs="$noconfigdirs target-libffi" | |
3522 | ;; | |
b20e7532 AT |
3523 | aarch64*-*-freebsd*) |
3524 | noconfigdirs="$noconfigdirs target-libffi" | |
3525 | ;; | |
012447ea JJ |
3526 | alpha*-*-*vms*) |
3527 | noconfigdirs="$noconfigdirs target-libffi" | |
3528 | ;; | |
3529 | arm*-*-freebsd*) | |
3530 | noconfigdirs="$noconfigdirs target-libffi" | |
3531 | ;; | |
3532 | arm-wince-pe) | |
3533 | noconfigdirs="$noconfigdirs target-libffi" | |
3534 | ;; | |
3535 | arm*-*-symbianelf*) | |
3536 | noconfigdirs="$noconfigdirs target-libffi" | |
3537 | ;; | |
91dfef96 JM |
3538 | bpf-*-*) |
3539 | noconfigdirs="$noconfigdirs target-libffi" | |
3540 | ;; | |
012447ea JJ |
3541 | cris-*-* | crisv32-*-*) |
3542 | case "${target}" in | |
3543 | *-*-linux*) | |
3544 | ;; | |
3545 | *) # See PR46792 regarding target-libffi. | |
3546 | noconfigdirs="$noconfigdirs target-libffi";; | |
3547 | esac | |
3548 | ;; | |
3549 | hppa*64*-*-hpux*) | |
3550 | noconfigdirs="$noconfigdirs target-libffi" | |
3551 | ;; | |
3552 | hppa*-hp-hpux11*) | |
3553 | ;; | |
3554 | hppa*-*-hpux*) | |
3555 | noconfigdirs="$noconfigdirs target-libffi" | |
3556 | ;; | |
3557 | ia64*-*-*vms*) | |
3558 | noconfigdirs="$noconfigdirs target-libffi" | |
3559 | ;; | |
3560 | i[3456789]86-w64-mingw*) | |
3561 | noconfigdirs="$noconfigdirs target-libffi" | |
3562 | ;; | |
3563 | i[3456789]86-*-mingw*) | |
3564 | noconfigdirs="$noconfigdirs target-libffi" | |
3565 | ;; | |
3566 | x86_64-*-mingw*) | |
3567 | noconfigdirs="$noconfigdirs target-libffi" | |
3568 | ;; | |
3569 | mmix-*-*) | |
3570 | noconfigdirs="$noconfigdirs target-libffi" | |
3571 | ;; | |
3572 | powerpc-*-aix*) | |
012447ea JJ |
3573 | ;; |
3574 | rs6000-*-aix*) | |
012447ea JJ |
3575 | ;; |
3576 | ft32-*-*) | |
3577 | noconfigdirs="$noconfigdirs target-libffi" | |
3578 | ;; | |
3579 | *-*-lynxos*) | |
3580 | noconfigdirs="$noconfigdirs target-libffi" | |
3581 | ;; | |
3582 | esac | |
3583 | ||
3584 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3585 | # this in sync with contrib/config-list.mk. | |
3586 | case "${target}" in | |
91dfef96 | 3587 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3588 | unsupported_languages="$unsupported_languages go" |
3589 | ;; | |
3590 | esac | |
3591 | ||
f9d09df0 TT |
3592 | # Only allow gdbserver on some systems. |
3593 | if test -d ${srcdir}/gdbserver; then | |
3594 | if test x$enable_gdbserver = x; then | |
3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3596 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3597 | if (srcdir=${srcdir}/gdbserver; \ | |
3598 | . ${srcdir}/configure.srv; \ | |
3599 | test -n "$UNSUPPORTED") | |
3600 | then | |
3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3602 | $as_echo "no" >&6; } | |
3603 | noconfigdirs="$noconfigdirs gdbserver" | |
3604 | else | |
3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3606 | $as_echo "yes" >&6; } | |
3607 | fi | |
3608 | fi | |
3609 | fi | |
3610 | ||
cdbc9e92 ILT |
3611 | # Disable libgo for some systems where it is known to not work. |
3612 | # For testing, you can easily override this with --enable-libgo. | |
3613 | if test x$enable_libgo = x; then | |
3614 | case "${target}" in | |
3615 | *-*-darwin*) | |
3616 | # PR 46986 | |
3617 | noconfigdirs="$noconfigdirs target-libgo" | |
3618 | ;; | |
3619 | *-*-cygwin* | *-*-mingw*) | |
3620 | noconfigdirs="$noconfigdirs target-libgo" | |
3621 | ;; | |
91dfef96 JM |
3622 | bpf-*-*) |
3623 | noconfigdirs="$noconfigdirs target-libgo" | |
3624 | ;; | |
cdbc9e92 ILT |
3625 | esac |
3626 | fi | |
3627 | ||
c03353e2 RIL |
3628 | # Default libgloss CPU subdirectory. |
3629 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3630 | |
fbcf0dca JM |
3631 | case "${target}" in |
3632 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3633 | libgloss_dir=wince | |
3634 | ;; | |
4dddfc74 YZ |
3635 | aarch64*-*-* ) |
3636 | libgloss_dir=aarch64 | |
3637 | ;; | |
fbcf0dca JM |
3638 | arm*-*-*) |
3639 | libgloss_dir=arm | |
3640 | ;; | |
3641 | cris-*-* | crisv32-*-*) | |
3642 | libgloss_dir=cris | |
3643 | ;; | |
3644 | hppa*-*-*) | |
3645 | libgloss_dir=pa | |
3646 | ;; | |
3647 | i[3456789]86-*-*) | |
3648 | libgloss_dir=i386 | |
3649 | ;; | |
3650 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3651 | libgloss_dir=m68hc11 | |
3652 | ;; | |
3653 | m68*-*-* | fido-*-*) | |
3654 | libgloss_dir=m68k | |
3655 | ;; | |
3656 | mips*-*-*) | |
3657 | libgloss_dir=mips | |
3658 | ;; | |
3659 | powerpc*-*-*) | |
3660 | libgloss_dir=rs6000 | |
3661 | ;; | |
8d2af3a2 DD |
3662 | pru-*-*) |
3663 | libgloss_dir=pru | |
3664 | ;; | |
fbcf0dca JM |
3665 | sparc*-*-*) |
3666 | libgloss_dir=sparc | |
3667 | ;; | |
3668 | esac | |
3669 | ||
6a789d5e | 3670 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3671 | case "${target}" in |
6a789d5e JM |
3672 | alpha*-dec-osf*) |
3673 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3674 | ;; | |
3675 | i[3456789]86-*-linux*) | |
3676 | # This section makes it possible to build newlib natively on linux. | |
3677 | # If we are using a cross compiler then don't configure newlib. | |
3678 | if test x${is_cross_compiler} != xno ; then | |
3679 | noconfigdirs="$noconfigdirs target-newlib" | |
3680 | fi | |
3681 | noconfigdirs="$noconfigdirs target-libgloss" | |
3682 | # If we are not using a cross compiler, do configure newlib. | |
3683 | # Note however, that newlib will only be configured in this situation | |
3684 | # if the --with-newlib option has been given, because otherwise | |
3685 | # 'target-newlib' will appear in skipdirs. | |
3686 | ;; | |
3687 | i[3456789]86-*-rdos*) | |
3688 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3689 | ;; | |
3690 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3691 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3692 | ;; | |
3693 | sparc-*-sunos4*) | |
3694 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3695 | ;; | |
91dfef96 JM |
3696 | bpf-*-*) |
3697 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3698 | ;; | |
6a789d5e JM |
3699 | *-*-aix*) |
3700 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3701 | ;; | |
3702 | *-*-beos*) | |
3703 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3704 | ;; | |
671aa708 | 3705 | *-*-chorusos) |
0036370f | 3706 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3707 | ;; |
6a789d5e JM |
3708 | *-*-dragonfly*) |
3709 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3710 | ;; | |
3711 | *-*-freebsd*) | |
3712 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3713 | ;; | |
3714 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3715 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3716 | ;; | |
3717 | *-*-lynxos*) | |
3718 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3719 | ;; | |
3720 | *-*-mingw*) | |
3721 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3722 | ;; | |
3723 | *-*-netbsd*) | |
3724 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3725 | ;; | |
3726 | *-*-netware*) | |
3727 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3728 | ;; | |
3729 | *-*-tpf*) | |
3730 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3731 | ;; | |
3732 | *-*-uclinux*) | |
3733 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3734 | ;; | |
3735 | *-*-vxworks*) | |
3736 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3737 | ;; | |
3738 | esac | |
3739 | ||
3740 | case "${target}" in | |
3741 | *-*-chorusos) | |
3742 | ;; | |
3be96231 TG |
3743 | aarch64-*-darwin*) |
3744 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3745 | noconfigdirs="$noconfigdirs sim target-rda" | |
3746 | ;; | |
7431c1a1 AS |
3747 | amdgcn*-*-*) |
3748 | ;; | |
3be96231 TG |
3749 | arm-*-darwin*) |
3750 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3751 | noconfigdirs="$noconfigdirs sim target-rda" | |
3752 | ;; | |
75eeae1a | 3753 | powerpc-*-darwin*) |
e1514c3f | 3754 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3755 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3756 | ;; |
354ebf88 RW |
3757 | i[3456789]86-*-darwin*) |
3758 | noconfigdirs="$noconfigdirs ld gprof" | |
3759 | noconfigdirs="$noconfigdirs sim target-rda" | |
3760 | ;; | |
3761 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3762 | noconfigdirs="$noconfigdirs ld gas gprof" |
3763 | noconfigdirs="$noconfigdirs sim target-rda" | |
3764 | ;; | |
42c1cd8a AT |
3765 | *-*-darwin*) |
3766 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3767 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3768 | ;; |
8c6d158a | 3769 | *-*-dragonfly*) |
8c6d158a | 3770 | ;; |
c3f84f61 | 3771 | *-*-freebsd*) |
6de9cd9a | 3772 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
7cacf5a5 | 3773 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3774 | && test -f /usr/local/include/gmp.h; then |
3775 | with_gmp=/usr/local | |
3776 | fi | |
6de9cd9a | 3777 | ;; |
ef4e7569 US |
3778 | *-*-kaos*) |
3779 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3780 | noconfigdirs="$noconfigdirs target-libgloss" |
3781 | ;; | |
671aa708 | 3782 | *-*-netbsd*) |
671aa708 | 3783 | ;; |
61fec9ff | 3784 | *-*-netware*) |
671aa708 | 3785 | ;; |
fd6487af JS |
3786 | *-*-phoenix*) |
3787 | noconfigdirs="$noconfigdirs target-libgloss" | |
3788 | ;; | |
671aa708 | 3789 | *-*-rtems*) |
2909494b | 3790 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3791 | ;; |
a8ba31f2 EC |
3792 | # The tpf target doesn't support gdb yet. |
3793 | *-*-tpf*) | |
6a789d5e | 3794 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3795 | ;; |
5785c0ed | 3796 | *-*-uclinux*) |
6a789d5e | 3797 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3798 | ;; |
671aa708 | 3799 | *-*-vxworks*) |
671aa708 NN |
3800 | ;; |
3801 | alpha*-dec-osf*) | |
3802 | # ld works, but does not support shared libraries. | |
671aa708 | 3803 | # gas doesn't generate exception information. |
6a789d5e | 3804 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3805 | ;; |
3806 | alpha*-*-*vms*) | |
2909494b | 3807 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3808 | ;; |
671aa708 NN |
3809 | alpha*-*-*) |
3810 | # newlib is not 64 bit ready | |
2909494b | 3811 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3812 | ;; |
91dfef96 JM |
3813 | bpf-*-*) |
3814 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3815 | ;; | |
671aa708 | 3816 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3817 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3818 | ;; |
2fd88f4f AK |
3819 | arc*-*-*) |
3820 | noconfigdirs="$noconfigdirs sim" | |
3821 | ;; | |
671aa708 | 3822 | arm-*-pe*) |
2909494b | 3823 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3824 | ;; |
671aa708 | 3825 | arm-*-riscix*) |
0036370f | 3826 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3827 | ;; |
b588ae30 GJL |
3828 | avr-*-*) |
3829 | if test x${with_avrlibc} != xno; then | |
3830 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3831 | fi | |
3832 | ;; | |
671aa708 | 3833 | c4x-*-* | tic4x-*-*) |
0036370f | 3834 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3835 | ;; |
0036370f JM |
3836 | tic54x-*-*) |
3837 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3838 | ;; |
671aa708 | 3839 | d10v-*-*) |
0036370f | 3840 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3841 | ;; |
3842 | d30v-*-*) | |
0036370f | 3843 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3844 | ;; |
3845 | fr30-*-elf*) | |
2909494b | 3846 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3847 | ;; |
a05c2c75 L |
3848 | ft32-*-*) |
3849 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3850 | ;; | |
55f2d967 | 3851 | moxie-*-*) |
a05c2c75 | 3852 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3853 | ;; |
671aa708 | 3854 | h8300*-*-*) |
2909494b | 3855 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3856 | ;; |
3857 | h8500-*-*) | |
0036370f | 3858 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3859 | ;; |
ee6a22df | 3860 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3861 | ;; |
a05c2c75 L |
3862 | hppa*64*-*-hpux*) |
3863 | noconfigdirs="$noconfigdirs gdb" | |
3864 | ;; | |
3865 | hppa*-*-hpux11*) | |
3866 | noconfigdirs="$noconfigdirs gdb ld" | |
3867 | ;; | |
4569f85e | 3868 | hppa*64*-*-linux*) |
671aa708 | 3869 | ;; |
56f8587a | 3870 | hppa*-*-linux*) |
3e732ba0 | 3871 | ;; |
671aa708 | 3872 | hppa*-*-*elf* | \ |
671aa708 NN |
3873 | hppa*-*-lites* | \ |
3874 | hppa*-*-openbsd* | \ | |
3875 | hppa*64*-*-*) | |
671aa708 | 3876 | ;; |
c03353e2 | 3877 | hppa*-*-pro*) |
c03353e2 | 3878 | ;; |
671aa708 | 3879 | hppa*-*-*) |
2909494b | 3880 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3881 | ;; |
fb87ad5d | 3882 | i960-*-*) |
0036370f | 3883 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3884 | ;; |
671aa708 NN |
3885 | ia64*-*-elf*) |
3886 | # No gdb support yet. | |
1bcce263 | 3887 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3888 | ;; |
3889 | ia64*-**-hpux*) | |
5a2931d1 | 3890 | # No ld support yet. |
a05c2c75 | 3891 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3892 | ;; |
52535a64 | 3893 | ia64*-*-*vms*) |
091fe9ca TG |
3894 | # No ld support yet. |
3895 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3896 | ;; |
ef4c4300 | 3897 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3898 | ;; |
3899 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3900 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3901 | ;; |
671aa708 NN |
3902 | *-*-cygwin*) |
3903 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3904 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3905 | # always build newlib if winsup directory is present. |
b91f0a41 | 3906 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3907 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3908 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3909 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3910 | fi |
1c710c3c | 3911 | ;; |
f2a0e225 | 3912 | i[3456789]86-*-pe) |
ebb9f8b0 | 3913 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3914 | ;; |
f2a0e225 | 3915 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3916 | # The linker does not yet know about weak symbols in COFF, |
3917 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3918 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3919 | ;; |
f2a0e225 | 3920 | i[3456789]86-*-sco*) |
0036370f | 3921 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3922 | ;; |
fbdd5d87 | 3923 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3924 | noconfigdirs="$noconfigdirs target-libgloss" |
3925 | ;; | |
f2a0e225 | 3926 | i[3456789]86-*-sysv4*) |
0036370f | 3927 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3928 | ;; |
f2a0e225 | 3929 | i[3456789]86-*-beos*) |
6a789d5e | 3930 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3931 | ;; |
d1f8db0c | 3932 | i[3456789]86-*-rdos*) |
6a789d5e | 3933 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3934 | ;; |
671aa708 | 3935 | mmix-*-*) |
2909494b | 3936 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3937 | ;; |
ab34901f | 3938 | mt-*-*) |
79dd769c AH |
3939 | noconfigdirs="$noconfigdirs sim" |
3940 | ;; | |
58b40a67 FT |
3941 | nfp-*-*) |
3942 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3943 | noconfigdirs="$noconfigdirs $target_libraries" | |
3944 | ;; | |
e6cbe965 SC |
3945 | pdp11-*-*) |
3946 | noconfigdirs="$noconfigdirs gdb gprof" | |
3947 | ;; | |
671aa708 NN |
3948 | powerpc-*-aix*) |
3949 | # copied from rs6000-*-* entry | |
6a789d5e | 3950 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3951 | ;; |
4569f85e | 3952 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3953 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3954 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3955 | # always build newlib. |
3956 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3957 | ;; | |
3958 | # This is temporary until we can link against shared libraries | |
3959 | powerpcle-*-solaris*) | |
0036370f | 3960 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3961 | ;; |
3962 | powerpc-*-beos*) | |
6a789d5e | 3963 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3964 | ;; |
671aa708 | 3965 | rs6000-*-lynxos*) |
6a789d5e | 3966 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3967 | ;; |
3968 | rs6000-*-aix*) | |
6a789d5e | 3969 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3970 | ;; |
3971 | rs6000-*-*) | |
2909494b | 3972 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3973 | ;; |
3974 | m68k-apollo-*) | |
0036370f | 3975 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3976 | ;; |
ca9fe997 | 3977 | microblaze*) |
2909494b | 3978 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3979 | ;; |
d896cc4d | 3980 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3981 | if test x$with_newlib = xyes; then |
3982 | noconfigdirs="$noconfigdirs gprof" | |
3983 | fi | |
d9dced13 | 3984 | ;; |
671aa708 | 3985 | mips*-*-irix5*) |
0036370f | 3986 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3987 | ;; |
3988 | mips*-*-irix6*) | |
2909494b | 3989 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3990 | ;; |
671aa708 | 3991 | mips*-*-bsd*) |
bc98bcc4 | 3992 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3993 | ;; |
671aa708 | 3994 | mips*-*-linux*) |
671aa708 | 3995 | ;; |
bc98bcc4 JBG |
3996 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3997 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3998 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3999 | ;; | |
671aa708 | 4000 | mips*-*-*) |
2909494b | 4001 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 4002 | ;; |
738f2522 | 4003 | nvptx*-*-*) |
738f2522 BS |
4004 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4005 | ;; | |
bc6d9014 | 4006 | sh-*-*) |
ea2002ba CB |
4007 | case "${target}" in |
4008 | sh*-*-elf) | |
2909494b | 4009 | ;; |
ea2002ba | 4010 | *) |
2909494b | 4011 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4012 | esac |
671aa708 | 4013 | ;; |
671aa708 | 4014 | sparc-*-sunos4*) |
6a789d5e | 4015 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4016 | use_gnu_ld=no |
4017 | fi | |
4018 | ;; | |
b42f0d7e | 4019 | tic6x-*-*) |
0d557ff8 | 4020 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4021 | ;; |
341c653c | 4022 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
4023 | noconfigdirs="$noconfigdirs sim" |
4024 | ;; | |
671aa708 | 4025 | v810-*-*) |
0036370f | 4026 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4027 | ;; |
4028 | vax-*-*) | |
2909494b | 4029 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4030 | ;; |
1fc1d82e MR |
4031 | wasm32-*-*) |
4032 | noconfigdirs="$noconfigdirs ld" | |
4033 | ;; | |
671aa708 | 4034 | esac |
79c06341 | 4035 | |
671aa708 NN |
4036 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4037 | # depends upon some newlib header files. | |
4038 | case "${noconfigdirs}" in | |
4039 | *target-libgloss*) ;; | |
4040 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4041 | esac | |
4042 | ||
671aa708 | 4043 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4044 | host_makefile_frag=/dev/null |
4045 | if test -d ${srcdir}/config ; then | |
4046 | case "${host}" in | |
f2a0e225 | 4047 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4048 | host_makefile_frag="config/mh-djgpp" |
4049 | ;; | |
4050 | *-cygwin*) | |
2a79c47f | 4051 | |
5213506e RW |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4053 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4054 | echo a >cygwin-cat-check |
e25a8c82 | 4055 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4056 | rm cygwin-cat-check |
5213506e RW |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4058 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4059 | else |
4060 | rm cygwin-cat-check | |
5213506e RW |
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4062 | $as_echo "no" >&6; } | |
22e05272 | 4063 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4064 | Please either mount the build directory in binary mode or run the following |
4065 | commands before running any configure script: | |
4066 | set -o igncr | |
4067 | export SHELLOPTS | |
5213506e | 4068 | " "$LINENO" 5 |
2a79c47f NC |
4069 | fi |
4070 | ||
671aa708 NN |
4071 | host_makefile_frag="config/mh-cygwin" |
4072 | ;; | |
c53a18d3 | 4073 | *-mingw*) |
1f5a6b84 | 4074 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4075 | ;; |
cabb9d59 | 4076 | alpha*-linux*) |
13be44ed UB |
4077 | host_makefile_frag="config/mh-alpha-linux" |
4078 | ;; | |
efd41714 | 4079 | hppa*-hp-hpux10*) |
efd41714 | 4080 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 4081 | ;; |
111eeb6e | 4082 | hppa*-hp-hpux*) |
efd41714 PB |
4083 | host_makefile_frag="config/mh-pa" |
4084 | ;; | |
4085 | hppa*-*) | |
4086 | host_makefile_frag="config/mh-pa" | |
4087 | ;; | |
107b1618 | 4088 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4089 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4090 | ;; |
d19bca38 PB |
4091 | powerpc-*-aix*) |
4092 | host_makefile_frag="config/mh-ppc-aix" | |
4093 | ;; | |
4094 | rs6000-*-aix*) | |
4095 | host_makefile_frag="config/mh-ppc-aix" | |
4096 | ;; | |
671aa708 NN |
4097 | esac |
4098 | fi | |
4099 | ||
55ffb5ed | 4100 | if test "${build}" != "${host}" ; then |
0999159b PB |
4101 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4102 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4103 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b | 4104 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
c7c99407 | 4105 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4106 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4107 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4108 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4109 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4110 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4111 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4112 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4113 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4114 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4115 | else | |
4116 | AR_FOR_BUILD="\$(AR)" | |
4117 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4118 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4119 | CXX_FOR_BUILD="\$(CXX)" |
c7c99407 | 4120 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4121 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4122 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4123 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4124 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4125 | LD_FOR_BUILD="\$(LD)" | |
4126 | NM_FOR_BUILD="\$(NM)" | |
4127 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4128 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4129 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4130 | fi |
4131 | ||
4132 | ac_ext=c | |
1c710c3c DJ |
4133 | ac_cpp='$CPP $CPPFLAGS' |
4134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4137 | if test -n "$ac_tool_prefix"; then | |
4138 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4139 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4141 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4142 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4143 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4144 | else |
4145 | if test -n "$CC"; then | |
4146 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4147 | else | |
4148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4149 | for as_dir in $PATH | |
4150 | do | |
4151 | IFS=$as_save_IFS | |
4152 | test -z "$as_dir" && as_dir=. | |
5213506e | 4153 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4155 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4157 | break 2 |
4158 | fi | |
4159 | done | |
5213506e RW |
4160 | done |
4161 | IFS=$as_save_IFS | |
1c710c3c DJ |
4162 | |
4163 | fi | |
4164 | fi | |
4165 | CC=$ac_cv_prog_CC | |
4166 | if test -n "$CC"; then | |
5213506e RW |
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4168 | $as_echo "$CC" >&6; } | |
1c710c3c | 4169 | else |
5213506e RW |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4171 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4172 | fi |
4173 | ||
5213506e | 4174 | |
1c710c3c DJ |
4175 | fi |
4176 | if test -z "$ac_cv_prog_CC"; then | |
4177 | ac_ct_CC=$CC | |
fb0103e5 RG |
4178 | # Extract the first word of "gcc", so it can be a program name with args. |
4179 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4181 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4182 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4183 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4184 | else |
4185 | if test -n "$ac_ct_CC"; then | |
4186 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4187 | else | |
4188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4189 | for as_dir in $PATH | |
4190 | do | |
4191 | IFS=$as_save_IFS | |
4192 | test -z "$as_dir" && as_dir=. | |
5213506e | 4193 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4194 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4195 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4197 | break 2 |
4198 | fi | |
4199 | done | |
5213506e RW |
4200 | done |
4201 | IFS=$as_save_IFS | |
1c710c3c DJ |
4202 | |
4203 | fi | |
4204 | fi | |
4205 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4206 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4208 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4209 | else |
5213506e RW |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4211 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4212 | fi |
4213 | ||
5213506e RW |
4214 | if test "x$ac_ct_CC" = x; then |
4215 | CC="" | |
4216 | else | |
4217 | case $cross_compiling:$ac_tool_warned in | |
4218 | yes:) | |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4220 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4221 | ac_tool_warned=yes ;; | |
4222 | esac | |
4223 | CC=$ac_ct_CC | |
4224 | fi | |
1c710c3c DJ |
4225 | else |
4226 | CC="$ac_cv_prog_CC" | |
4227 | fi | |
4228 | ||
4229 | if test -z "$CC"; then | |
5213506e RW |
4230 | if test -n "$ac_tool_prefix"; then |
4231 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4232 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4234 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4235 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4236 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4237 | else |
4238 | if test -n "$CC"; then | |
4239 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4240 | else | |
1c710c3c DJ |
4241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4242 | for as_dir in $PATH | |
4243 | do | |
4244 | IFS=$as_save_IFS | |
4245 | test -z "$as_dir" && as_dir=. | |
5213506e | 4246 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4248 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4250 | break 2 |
4251 | fi | |
4252 | done | |
5213506e RW |
4253 | done |
4254 | IFS=$as_save_IFS | |
1c710c3c | 4255 | |
0b0dc272 | 4256 | fi |
0b0dc272 | 4257 | fi |
1c710c3c | 4258 | CC=$ac_cv_prog_CC |
af71363e | 4259 | if test -n "$CC"; then |
5213506e RW |
4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4261 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4262 | else |
5213506e RW |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4264 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4265 | fi |
4266 | ||
2aeb72e9 | 4267 | |
5213506e | 4268 | fi |
1c710c3c | 4269 | fi |
55ffb5ed NN |
4270 | if test -z "$CC"; then |
4271 | # Extract the first word of "cc", so it can be a program name with args. | |
4272 | set dummy cc; ac_word=$2 | |
5213506e RW |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4274 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4275 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4276 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4277 | else |
4278 | if test -n "$CC"; then | |
4279 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4280 | else | |
0b0dc272 | 4281 | ac_prog_rejected=no |
1c710c3c DJ |
4282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4283 | for as_dir in $PATH | |
4284 | do | |
4285 | IFS=$as_save_IFS | |
4286 | test -z "$as_dir" && as_dir=. | |
5213506e | 4287 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4288 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4289 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4290 | ac_prog_rejected=yes | |
4291 | continue | |
4292 | fi | |
4293 | ac_cv_prog_CC="cc" | |
5213506e | 4294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4295 | break 2 |
4296 | fi | |
4297 | done | |
5213506e RW |
4298 | done |
4299 | IFS=$as_save_IFS | |
1c710c3c | 4300 | |
55ffb5ed NN |
4301 | if test $ac_prog_rejected = yes; then |
4302 | # We found a bogon in the path, so make sure we never use it. | |
4303 | set dummy $ac_cv_prog_CC | |
4304 | shift | |
1c710c3c | 4305 | if test $# != 0; then |
55ffb5ed NN |
4306 | # We chose a different compiler from the bogus one. |
4307 | # However, it has the same basename, so the bogon will be chosen | |
4308 | # first if we set CC to just the basename; use the full file name. | |
4309 | shift | |
1c710c3c | 4310 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4311 | fi |
4312 | fi | |
4313 | fi | |
4314 | fi | |
1c710c3c | 4315 | CC=$ac_cv_prog_CC |
55ffb5ed | 4316 | if test -n "$CC"; then |
5213506e RW |
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4318 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4319 | else |
5213506e RW |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4321 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4322 | fi |
4323 | ||
5213506e | 4324 | |
1c710c3c DJ |
4325 | fi |
4326 | if test -z "$CC"; then | |
4327 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4328 | for ac_prog in cl.exe |
1c710c3c DJ |
4329 | do |
4330 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4331 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4333 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4334 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4335 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4336 | else |
4337 | if test -n "$CC"; then | |
4338 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4339 | else | |
1c710c3c DJ |
4340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4341 | for as_dir in $PATH | |
4342 | do | |
4343 | IFS=$as_save_IFS | |
4344 | test -z "$as_dir" && as_dir=. | |
5213506e | 4345 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4347 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4349 | break 2 |
4350 | fi | |
4351 | done | |
5213506e RW |
4352 | done |
4353 | IFS=$as_save_IFS | |
1c710c3c | 4354 | |
55ffb5ed NN |
4355 | fi |
4356 | fi | |
1c710c3c | 4357 | CC=$ac_cv_prog_CC |
55ffb5ed | 4358 | if test -n "$CC"; then |
5213506e RW |
4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4360 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4361 | else |
5213506e RW |
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4363 | $as_echo "no" >&6; } | |
fb0103e5 | 4364 | fi |
af71363e | 4365 | |
5213506e | 4366 | |
1c710c3c DJ |
4367 | test -n "$CC" && break |
4368 | done | |
af71363e | 4369 | fi |
1c710c3c DJ |
4370 | if test -z "$CC"; then |
4371 | ac_ct_CC=$CC | |
5213506e | 4372 | for ac_prog in cl.exe |
1c710c3c DJ |
4373 | do |
4374 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4375 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4377 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4378 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4379 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4380 | else |
1c710c3c DJ |
4381 | if test -n "$ac_ct_CC"; then |
4382 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4383 | else |
1c710c3c DJ |
4384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4385 | for as_dir in $PATH | |
4386 | do | |
4387 | IFS=$as_save_IFS | |
4388 | test -z "$as_dir" && as_dir=. | |
5213506e | 4389 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4391 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4393 | break 2 |
4394 | fi | |
4395 | done | |
5213506e RW |
4396 | done |
4397 | IFS=$as_save_IFS | |
1c710c3c | 4398 | |
af71363e AS |
4399 | fi |
4400 | fi | |
1c710c3c DJ |
4401 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4402 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4404 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4405 | else |
5213506e RW |
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4407 | $as_echo "no" >&6; } | |
af71363e | 4408 | fi |
0b0dc272 | 4409 | |
5213506e | 4410 | |
1c710c3c DJ |
4411 | test -n "$ac_ct_CC" && break |
4412 | done | |
4413 | ||
5213506e RW |
4414 | if test "x$ac_ct_CC" = x; then |
4415 | CC="" | |
4416 | else | |
4417 | case $cross_compiling:$ac_tool_warned in | |
4418 | yes:) | |
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4420 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4421 | ac_tool_warned=yes ;; | |
4422 | esac | |
4423 | CC=$ac_ct_CC | |
4424 | fi | |
1c710c3c DJ |
4425 | fi |
4426 | ||
4427 | fi | |
4428 | ||
4429 | ||
5213506e RW |
4430 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4431 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4432 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4433 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4434 | |
4435 | # Provide some information about the compiler. | |
5213506e RW |
4436 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4437 | set X $ac_compile | |
4438 | ac_compiler=$2 | |
4439 | for ac_option in --version -v -V -qversion; do | |
4440 | { { ac_try="$ac_compiler $ac_option >&5" | |
4441 | case "(($ac_try" in | |
4442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4443 | *) ac_try_echo=$ac_try;; | |
4444 | esac | |
4445 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4446 | $as_echo "$ac_try_echo"; } >&5 | |
4447 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4448 | ac_status=$? |
5213506e RW |
4449 | if test -s conftest.err; then |
4450 | sed '10a\ | |
4451 | ... rest of stderr output deleted ... | |
4452 | 10q' conftest.err >conftest.er1 | |
4453 | cat conftest.er1 >&5 | |
5213506e | 4454 | fi |
22e05272 | 4455 | rm -f conftest.er1 conftest.err |
5213506e RW |
4456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4457 | test $ac_status = 0; } | |
4458 | done | |
1c710c3c | 4459 | |
5213506e | 4460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4461 | /* end confdefs.h. */ |
4462 | ||
4463 | int | |
4464 | main () | |
4465 | { | |
4466 | ||
4467 | ; | |
4468 | return 0; | |
4469 | } | |
4470 | _ACEOF | |
4471 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4472 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4473 | # Try to create an executable without -o first, disregard a.out. |
4474 | # It will help us diagnose broken compilers, and finding out an intuition | |
4475 | # of exeext. | |
22e05272 JM |
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4477 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4478 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4479 | ||
4480 | # The possible output files: | |
4481 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4482 | ||
4483 | ac_rmfiles= | |
4484 | for ac_file in $ac_files | |
4485 | do | |
4486 | case $ac_file in | |
4487 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4488 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4489 | esac | |
4490 | done | |
4491 | rm -f $ac_rmfiles | |
4492 | ||
4493 | if { { ac_try="$ac_link_default" | |
4494 | case "(($ac_try" in | |
4495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4496 | *) ac_try_echo=$ac_try;; | |
4497 | esac | |
4498 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4499 | $as_echo "$ac_try_echo"; } >&5 | |
4500 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4501 | ac_status=$? |
5213506e RW |
4502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4503 | test $ac_status = 0; }; then : | |
4504 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4505 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4506 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4507 | # so that the user can short-circuit this test for compilers unknown to | |
4508 | # Autoconf. | |
4509 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4510 | do |
4511 | test -f "$ac_file" || continue | |
4512 | case $ac_file in | |
5213506e | 4513 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4514 | ;; |
4515 | [ab].out ) | |
4516 | # We found the default executable, but exeext='' is most | |
4517 | # certainly right. | |
4518 | break;; | |
4519 | *.* ) | |
5213506e RW |
4520 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4521 | then :; else | |
4522 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4523 | fi | |
4524 | # We set ac_cv_exeext here because the later test for it is not | |
4525 | # safe: cross compilers may not add the suffix if given an `-o' | |
4526 | # argument, so we may need to know it at that point already. | |
4527 | # Even if this section looks crufty: it has the advantage of | |
4528 | # actually working. | |
1c710c3c DJ |
4529 | break;; |
4530 | * ) | |
4531 | break;; | |
4532 | esac | |
4533 | done | |
5213506e RW |
4534 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4535 | ||
1c710c3c | 4536 | else |
5213506e RW |
4537 | ac_file='' |
4538 | fi | |
5213506e | 4539 | if test -z "$ac_file"; then : |
22e05272 JM |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4541 | $as_echo "no" >&6; } | |
4542 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4543 | sed 's/^/| /' conftest.$ac_ext >&5 |
4544 | ||
5213506e RW |
4545 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4547 | as_fn_error 77 "C compiler cannot create executables |
4548 | See \`config.log' for more details" "$LINENO" 5; } | |
4549 | else | |
4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4551 | $as_echo "yes" >&6; } | |
1c710c3c | 4552 | fi |
22e05272 JM |
4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4554 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4556 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4557 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4558 | |
22e05272 | 4559 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4560 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4562 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4563 | if { { ac_try="$ac_link" | |
4564 | case "(($ac_try" in | |
4565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4566 | *) ac_try_echo=$ac_try;; | |
4567 | esac | |
4568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4569 | $as_echo "$ac_try_echo"; } >&5 | |
4570 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4571 | ac_status=$? |
5213506e RW |
4572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4573 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4574 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4575 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4576 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4577 | # `rm'. | |
4578 | for ac_file in conftest.exe conftest conftest.*; do | |
4579 | test -f "$ac_file" || continue | |
4580 | case $ac_file in | |
5213506e | 4581 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4582 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4583 | break;; |
4584 | * ) break;; | |
4585 | esac | |
4586 | done | |
af71363e | 4587 | else |
5213506e RW |
4588 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4589 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4590 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4591 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4592 | fi |
22e05272 | 4593 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4595 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4596 | |
4597 | rm -f conftest.$ac_ext | |
4598 | EXEEXT=$ac_cv_exeext | |
4599 | ac_exeext=$EXEEXT | |
22e05272 JM |
4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4601 | /* end confdefs.h. */ | |
4602 | #include <stdio.h> | |
4603 | int | |
4604 | main () | |
4605 | { | |
4606 | FILE *f = fopen ("conftest.out", "w"); | |
4607 | return ferror (f) || fclose (f) != 0; | |
4608 | ||
4609 | ; | |
4610 | return 0; | |
4611 | } | |
4612 | _ACEOF | |
4613 | ac_clean_files="$ac_clean_files conftest.out" | |
4614 | # Check that the compiler produces executables we can run. If not, either | |
4615 | # the compiler is broken, or we cross compile. | |
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4617 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4618 | if test "$cross_compiling" != yes; then | |
4619 | { { ac_try="$ac_link" | |
4620 | case "(($ac_try" in | |
4621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4622 | *) ac_try_echo=$ac_try;; | |
4623 | esac | |
4624 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4625 | $as_echo "$ac_try_echo"; } >&5 | |
4626 | (eval "$ac_link") 2>&5 | |
4627 | ac_status=$? | |
4628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4629 | test $ac_status = 0; } | |
4630 | if { ac_try='./conftest$ac_cv_exeext' | |
4631 | { { case "(($ac_try" in | |
4632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4633 | *) ac_try_echo=$ac_try;; | |
4634 | esac | |
4635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4636 | $as_echo "$ac_try_echo"; } >&5 | |
4637 | (eval "$ac_try") 2>&5 | |
4638 | ac_status=$? | |
4639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4640 | test $ac_status = 0; }; }; then | |
4641 | cross_compiling=no | |
4642 | else | |
4643 | if test "$cross_compiling" = maybe; then | |
4644 | cross_compiling=yes | |
4645 | else | |
4646 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4648 | as_fn_error $? "cannot run C compiled programs. | |
4649 | If you meant to cross compile, use \`--host'. | |
4650 | See \`config.log' for more details" "$LINENO" 5; } | |
4651 | fi | |
4652 | fi | |
4653 | fi | |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4655 | $as_echo "$cross_compiling" >&6; } | |
4656 | ||
4657 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4658 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4660 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4661 | if ${ac_cv_objext+:} false; then : |
5213506e | 4662 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4663 | else |
5213506e | 4664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4665 | /* end confdefs.h. */ |
4666 | ||
4667 | int | |
4668 | main () | |
4669 | { | |
4670 | ||
4671 | ; | |
4672 | return 0; | |
4673 | } | |
4674 | _ACEOF | |
4675 | rm -f conftest.o conftest.obj | |
5213506e RW |
4676 | if { { ac_try="$ac_compile" |
4677 | case "(($ac_try" in | |
4678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4679 | *) ac_try_echo=$ac_try;; | |
4680 | esac | |
4681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4682 | $as_echo "$ac_try_echo"; } >&5 | |
4683 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4684 | ac_status=$? |
5213506e RW |
4685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4686 | test $ac_status = 0; }; then : | |
4687 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4688 | test -f "$ac_file" || continue; | |
1c710c3c | 4689 | case $ac_file in |
5213506e | 4690 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4691 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4692 | break;; | |
4693 | esac | |
4694 | done | |
4695 | else | |
5213506e | 4696 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4697 | sed 's/^/| /' conftest.$ac_ext >&5 |
4698 | ||
5213506e RW |
4699 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4701 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4702 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4703 | fi |
1c710c3c DJ |
4704 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4705 | fi | |
5213506e RW |
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4707 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4708 | OBJEXT=$ac_cv_objext |
4709 | ac_objext=$OBJEXT | |
5213506e RW |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4711 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4712 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4713 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4714 | else |
5213506e | 4715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4716 | /* end confdefs.h. */ |
4717 | ||
4718 | int | |
4719 | main () | |
4720 | { | |
4721 | #ifndef __GNUC__ | |
4722 | choke me | |
4723 | #endif | |
4724 | ||
4725 | ; | |
4726 | return 0; | |
4727 | } | |
4728 | _ACEOF | |
5213506e | 4729 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4730 | ac_compiler_gnu=yes |
4731 | else | |
5213506e | 4732 | ac_compiler_gnu=no |
1c710c3c | 4733 | fi |
5213506e | 4734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4735 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4736 | ||
4737 | fi | |
5213506e RW |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4739 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4740 | if test $ac_compiler_gnu = yes; then | |
4741 | GCC=yes | |
4742 | else | |
4743 | GCC= | |
4744 | fi | |
1c710c3c DJ |
4745 | ac_test_CFLAGS=${CFLAGS+set} |
4746 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4748 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4749 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4750 | $as_echo_n "(cached) " >&6 |
4751 | else | |
4752 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4753 | ac_c_werror_flag=yes | |
4754 | ac_cv_prog_cc_g=no | |
4755 | CFLAGS="-g" | |
4756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4757 | /* end confdefs.h. */ |
4758 | ||
4759 | int | |
4760 | main () | |
4761 | { | |
4762 | ||
4763 | ; | |
4764 | return 0; | |
4765 | } | |
4766 | _ACEOF | |
5213506e | 4767 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4768 | ac_cv_prog_cc_g=yes |
4769 | else | |
5213506e RW |
4770 | CFLAGS="" |
4771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4772 | /* end confdefs.h. */ | |
4773 | ||
4774 | int | |
4775 | main () | |
4776 | { | |
4777 | ||
4778 | ; | |
4779 | return 0; | |
4780 | } | |
4781 | _ACEOF | |
4782 | if ac_fn_c_try_compile "$LINENO"; then : | |
4783 | ||
4784 | else | |
4785 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4786 | CFLAGS="-g" | |
4787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4788 | /* end confdefs.h. */ | |
af71363e | 4789 | |
5213506e RW |
4790 | int |
4791 | main () | |
4792 | { | |
4793 | ||
4794 | ; | |
4795 | return 0; | |
4796 | } | |
4797 | _ACEOF | |
4798 | if ac_fn_c_try_compile "$LINENO"; then : | |
4799 | ac_cv_prog_cc_g=yes | |
4800 | fi | |
4801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4802 | fi |
5213506e | 4803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4804 | fi |
5213506e RW |
4805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4806 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4807 | fi | |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4809 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4810 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4811 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4812 | elif test $ac_cv_prog_cc_g = yes; then |
4813 | if test "$GCC" = yes; then | |
4814 | CFLAGS="-g -O2" | |
4815 | else | |
4816 | CFLAGS="-g" | |
4817 | fi | |
4818 | else | |
4819 | if test "$GCC" = yes; then | |
4820 | CFLAGS="-O2" | |
4821 | else | |
4822 | CFLAGS= | |
4823 | fi | |
4824 | fi | |
5213506e RW |
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4826 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4827 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4828 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4829 | else |
5213506e | 4830 | ac_cv_prog_cc_c89=no |
1c710c3c | 4831 | ac_save_CC=$CC |
5213506e | 4832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4833 | /* end confdefs.h. */ |
4834 | #include <stdarg.h> | |
4835 | #include <stdio.h> | |
22e05272 | 4836 | struct stat; |
1c710c3c DJ |
4837 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4838 | struct buf { int x; }; | |
4839 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4840 | static char *e (p, i) | |
4841 | char **p; | |
4842 | int i; | |
4843 | { | |
4844 | return p[i]; | |
4845 | } | |
4846 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4847 | { | |
4848 | char *s; | |
4849 | va_list v; | |
4850 | va_start (v,p); | |
4851 | s = g (p, va_arg (v,int)); | |
4852 | va_end (v); | |
4853 | return s; | |
4854 | } | |
4855 | ||
4856 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4857 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4858 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4859 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4860 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4861 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4862 | that's true only with -std. */ |
1c710c3c DJ |
4863 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4864 | ||
5213506e RW |
4865 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4866 | inside strings and character constants. */ | |
4867 | #define FOO(x) 'x' | |
4868 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4869 | ||
1c710c3c DJ |
4870 | int test (int i, double x); |
4871 | struct s1 {int (*f) (int a);}; | |
4872 | struct s2 {int (*f) (double a);}; | |
4873 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4874 | int argc; | |
4875 | char **argv; | |
4876 | int | |
4877 | main () | |
4878 | { | |
4879 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4880 | ; | |
4881 | return 0; | |
4882 | } | |
4883 | _ACEOF | |
5213506e RW |
4884 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4885 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4886 | do |
4887 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4888 | if ac_fn_c_try_compile "$LINENO"; then : |
4889 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4890 | fi |
5213506e RW |
4891 | rm -f core conftest.err conftest.$ac_objext |
4892 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4893 | done |
5213506e | 4894 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4895 | CC=$ac_save_CC |
4896 | ||
4897 | fi | |
5213506e RW |
4898 | # AC_CACHE_VAL |
4899 | case "x$ac_cv_prog_cc_c89" in | |
4900 | x) | |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4902 | $as_echo "none needed" >&6; } ;; | |
4903 | xno) | |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4905 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4906 | *) |
5213506e RW |
4907 | CC="$CC $ac_cv_prog_cc_c89" |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4909 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4910 | esac |
5213506e | 4911 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4912 | |
2aeb72e9 DD |
4913 | fi |
4914 | ||
2aeb72e9 DD |
4915 | ac_ext=c |
4916 | ac_cpp='$CPP $CPPFLAGS' | |
4917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4920 | ||
5213506e | 4921 | ac_ext=cpp |
2aeb72e9 DD |
4922 | ac_cpp='$CXXCPP $CPPFLAGS' |
4923 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4924 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4925 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4926 | if test -z "$CXX"; then |
4927 | if test -n "$CCC"; then | |
4928 | CXX=$CCC | |
4929 | else | |
4930 | if test -n "$ac_tool_prefix"; then | |
4931 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4932 | do |
4933 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4934 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4936 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4937 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 4938 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
4939 | else |
4940 | if test -n "$CXX"; then | |
4941 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4942 | else | |
4943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4944 | for as_dir in $PATH | |
4945 | do | |
4946 | IFS=$as_save_IFS | |
4947 | test -z "$as_dir" && as_dir=. | |
5213506e | 4948 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 4950 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4952 | break 2 |
4953 | fi | |
4954 | done | |
5213506e RW |
4955 | done |
4956 | IFS=$as_save_IFS | |
55ffb5ed | 4957 | |
c3a86da9 DJ |
4958 | fi |
4959 | fi | |
4960 | CXX=$ac_cv_prog_CXX | |
4961 | if test -n "$CXX"; then | |
5213506e RW |
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4963 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4964 | else |
5213506e RW |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4966 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4967 | fi |
4968 | ||
5213506e | 4969 | |
c3a86da9 DJ |
4970 | test -n "$CXX" && break |
4971 | done | |
4972 | fi | |
4973 | if test -z "$CXX"; then | |
4974 | ac_ct_CXX=$CXX | |
5213506e | 4975 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4976 | do |
4977 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4978 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4980 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4981 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 4982 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
4983 | else |
4984 | if test -n "$ac_ct_CXX"; then | |
4985 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4986 | else | |
4987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4988 | for as_dir in $PATH | |
4989 | do | |
4990 | IFS=$as_save_IFS | |
4991 | test -z "$as_dir" && as_dir=. | |
5213506e | 4992 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 4994 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4996 | break 2 |
4997 | fi | |
4998 | done | |
5213506e RW |
4999 | done |
5000 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5001 | |
5002 | fi | |
5003 | fi | |
5004 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5005 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5007 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5008 | else |
5213506e RW |
5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5010 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5011 | fi |
5012 | ||
5213506e | 5013 | |
c3a86da9 DJ |
5014 | test -n "$ac_ct_CXX" && break |
5015 | done | |
c3a86da9 | 5016 | |
5213506e RW |
5017 | if test "x$ac_ct_CXX" = x; then |
5018 | CXX="g++" | |
5019 | else | |
5020 | case $cross_compiling:$ac_tool_warned in | |
5021 | yes:) | |
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5023 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5024 | ac_tool_warned=yes ;; | |
5025 | esac | |
5026 | CXX=$ac_ct_CXX | |
5027 | fi | |
c3a86da9 DJ |
5028 | fi |
5029 | ||
5213506e RW |
5030 | fi |
5031 | fi | |
c3a86da9 | 5032 | # Provide some information about the compiler. |
5213506e RW |
5033 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5034 | set X $ac_compile | |
5035 | ac_compiler=$2 | |
5036 | for ac_option in --version -v -V -qversion; do | |
5037 | { { ac_try="$ac_compiler $ac_option >&5" | |
5038 | case "(($ac_try" in | |
5039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5040 | *) ac_try_echo=$ac_try;; | |
5041 | esac | |
5042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5043 | $as_echo "$ac_try_echo"; } >&5 | |
5044 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5045 | ac_status=$? |
5213506e RW |
5046 | if test -s conftest.err; then |
5047 | sed '10a\ | |
5048 | ... rest of stderr output deleted ... | |
5049 | 10q' conftest.err >conftest.er1 | |
5050 | cat conftest.er1 >&5 | |
5213506e | 5051 | fi |
22e05272 | 5052 | rm -f conftest.er1 conftest.err |
5213506e RW |
5053 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5054 | test $ac_status = 0; } | |
5055 | done | |
c3a86da9 | 5056 | |
5213506e RW |
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5058 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5059 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5060 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5061 | else |
5213506e | 5062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5063 | /* end confdefs.h. */ |
5064 | ||
5065 | int | |
5066 | main () | |
5067 | { | |
5068 | #ifndef __GNUC__ | |
5069 | choke me | |
5070 | #endif | |
5071 | ||
5072 | ; | |
5073 | return 0; | |
5074 | } | |
5075 | _ACEOF | |
5213506e | 5076 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5077 | ac_compiler_gnu=yes |
5078 | else | |
5213506e | 5079 | ac_compiler_gnu=no |
c3a86da9 | 5080 | fi |
5213506e | 5081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5082 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5083 | ||
5084 | fi | |
5213506e RW |
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5086 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5087 | if test $ac_compiler_gnu = yes; then | |
5088 | GXX=yes | |
5089 | else | |
5090 | GXX= | |
5091 | fi | |
c3a86da9 DJ |
5092 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5093 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5095 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5096 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5097 | $as_echo_n "(cached) " >&6 |
5098 | else | |
5099 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5100 | ac_cxx_werror_flag=yes | |
5101 | ac_cv_prog_cxx_g=no | |
5102 | CXXFLAGS="-g" | |
5103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5104 | /* end confdefs.h. */ |
5105 | ||
5106 | int | |
5107 | main () | |
5108 | { | |
5109 | ||
5110 | ; | |
5111 | return 0; | |
5112 | } | |
5113 | _ACEOF | |
5213506e | 5114 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5115 | ac_cv_prog_cxx_g=yes |
5116 | else | |
5213506e RW |
5117 | CXXFLAGS="" |
5118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5119 | /* end confdefs.h. */ |
5213506e | 5120 | |
c3a86da9 DJ |
5121 | int |
5122 | main () | |
5123 | { | |
5213506e | 5124 | |
c3a86da9 DJ |
5125 | ; |
5126 | return 0; | |
5127 | } | |
5128 | _ACEOF | |
5213506e | 5129 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5130 | |
5213506e RW |
5131 | else |
5132 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5133 | CXXFLAGS="-g" | |
5134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5135 | /* end confdefs.h. */ |
5213506e | 5136 | |
c3a86da9 DJ |
5137 | int |
5138 | main () | |
5139 | { | |
5213506e | 5140 | |
c3a86da9 DJ |
5141 | ; |
5142 | return 0; | |
5143 | } | |
5144 | _ACEOF | |
5213506e RW |
5145 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5146 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5147 | fi |
5213506e RW |
5148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5149 | fi | |
5150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5151 | fi | |
5152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5153 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5154 | fi | |
5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5156 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5157 | if test "$ac_test_CXXFLAGS" = set; then | |
5158 | CXXFLAGS=$ac_save_CXXFLAGS | |
5159 | elif test $ac_cv_prog_cxx_g = yes; then | |
5160 | if test "$GXX" = yes; then | |
5161 | CXXFLAGS="-g -O2" | |
5162 | else | |
5163 | CXXFLAGS="-g" | |
5164 | fi | |
5165 | else | |
5166 | if test "$GXX" = yes; then | |
5167 | CXXFLAGS="-O2" | |
5168 | else | |
5169 | CXXFLAGS= | |
5170 | fi | |
c3a86da9 | 5171 | fi |
c3a86da9 DJ |
5172 | ac_ext=c |
5173 | ac_cpp='$CPP $CPPFLAGS' | |
5174 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5175 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5176 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5177 | ||
5178 | ||
5179 | # We must set the default linker to the linker used by gcc for the correct | |
5180 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5181 | # set the LD default to the ld used by gcc. | |
5182 | if test -z "$LD"; then | |
5183 | if test "$GCC" = yes; then | |
5184 | case $build in | |
5185 | *-*-mingw*) | |
5186 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5187 | *) | |
5188 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5189 | esac | |
5190 | case $gcc_prog_ld in | |
5191 | # Accept absolute paths. | |
5192 | [\\/]* | [A-Za-z]:[\\/]*) | |
5193 | LD="$gcc_prog_ld" ;; | |
5194 | esac | |
5195 | fi | |
23f6b2f9 PB |
5196 | fi |
5197 | ||
0b21f5d3 EB |
5198 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5199 | have_static_libs=no | |
5200 | if test "$GCC" = yes; then | |
5201 | saved_LDFLAGS="$LDFLAGS" | |
5202 | ||
5203 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5205 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5206 | ac_ext=cpp | |
5207 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5211 | ||
5212 | ||
5213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5214 | /* end confdefs.h. */ | |
0d6414b2 EB |
5215 | |
5216 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5217 | #error -static-libstdc++ not implemented | |
5218 | #endif | |
0b21f5d3 EB |
5219 | int main() {} |
5220 | _ACEOF | |
5221 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5223 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5224 | else | |
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5226 | $as_echo "no" >&6; } | |
5227 | fi | |
5228 | rm -f core conftest.err conftest.$ac_objext \ | |
5229 | conftest$ac_exeext conftest.$ac_ext | |
5230 | ac_ext=c | |
5231 | ac_cpp='$CPP $CPPFLAGS' | |
5232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5235 | ||
5236 | ||
5237 | LDFLAGS="$saved_LDFLAGS" | |
5238 | fi | |
5239 | ||
23f6b2f9 PB |
5240 | |
5241 | ||
55ffb5ed | 5242 | |
1c710c3c DJ |
5243 | if test -n "$ac_tool_prefix"; then |
5244 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5245 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5247 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5248 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5249 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5250 | else |
5251 | if test -n "$GNATBIND"; then | |
5252 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5253 | else | |
1c710c3c DJ |
5254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5255 | for as_dir in $PATH | |
5256 | do | |
5257 | IFS=$as_save_IFS | |
5258 | test -z "$as_dir" && as_dir=. | |
5213506e | 5259 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5260 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5261 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5263 | break 2 |
5264 | fi | |
5265 | done | |
5213506e RW |
5266 | done |
5267 | IFS=$as_save_IFS | |
1c710c3c | 5268 | |
55ffb5ed NN |
5269 | fi |
5270 | fi | |
1c710c3c | 5271 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5272 | if test -n "$GNATBIND"; then |
5213506e RW |
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5274 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5275 | else |
5213506e RW |
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5277 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5278 | fi |
5279 | ||
5213506e | 5280 | |
1c710c3c | 5281 | fi |
55ffb5ed | 5282 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5283 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5284 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5285 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5287 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5288 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5289 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5290 | else |
1c710c3c DJ |
5291 | if test -n "$ac_ct_GNATBIND"; then |
5292 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5293 | else |
1c710c3c DJ |
5294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5295 | for as_dir in $PATH | |
5296 | do | |
5297 | IFS=$as_save_IFS | |
5298 | test -z "$as_dir" && as_dir=. | |
5213506e | 5299 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5300 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5301 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5302 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5303 | break 2 |
5304 | fi | |
5305 | done | |
5213506e RW |
5306 | done |
5307 | IFS=$as_save_IFS | |
1c710c3c | 5308 | |
55ffb5ed NN |
5309 | fi |
5310 | fi | |
1c710c3c DJ |
5311 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5312 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5314 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5315 | else |
5213506e RW |
5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5317 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5318 | fi |
5319 | ||
5213506e RW |
5320 | if test "x$ac_ct_GNATBIND" = x; then |
5321 | GNATBIND="no" | |
5322 | else | |
5323 | case $cross_compiling:$ac_tool_warned in | |
5324 | yes:) | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5326 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5327 | ac_tool_warned=yes ;; | |
5328 | esac | |
5329 | GNATBIND=$ac_ct_GNATBIND | |
5330 | fi | |
55ffb5ed | 5331 | else |
1c710c3c | 5332 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5333 | fi |
5334 | ||
1c710c3c DJ |
5335 | if test -n "$ac_tool_prefix"; then |
5336 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5337 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5339 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5340 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5341 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5342 | else |
5343 | if test -n "$GNATMAKE"; then | |
5344 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5345 | else | |
1c710c3c DJ |
5346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5347 | for as_dir in $PATH | |
5348 | do | |
5349 | IFS=$as_save_IFS | |
5350 | test -z "$as_dir" && as_dir=. | |
5213506e | 5351 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5352 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5353 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5355 | break 2 |
5356 | fi | |
5357 | done | |
5213506e RW |
5358 | done |
5359 | IFS=$as_save_IFS | |
1c710c3c | 5360 | |
5305be7e RG |
5361 | fi |
5362 | fi | |
1c710c3c | 5363 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5364 | if test -n "$GNATMAKE"; then |
5213506e RW |
5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5366 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5367 | else |
5213506e RW |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5369 | $as_echo "no" >&6; } | |
5305be7e RG |
5370 | fi |
5371 | ||
5213506e | 5372 | |
1c710c3c | 5373 | fi |
5305be7e | 5374 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5375 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5376 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5377 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5379 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5380 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5381 | $as_echo_n "(cached) " >&6 |
5305be7e | 5382 | else |
1c710c3c DJ |
5383 | if test -n "$ac_ct_GNATMAKE"; then |
5384 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5385 | else |
1c710c3c DJ |
5386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5387 | for as_dir in $PATH | |
5388 | do | |
5389 | IFS=$as_save_IFS | |
5390 | test -z "$as_dir" && as_dir=. | |
5213506e | 5391 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5393 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5395 | break 2 |
5396 | fi | |
5397 | done | |
5213506e RW |
5398 | done |
5399 | IFS=$as_save_IFS | |
1c710c3c | 5400 | |
5305be7e RG |
5401 | fi |
5402 | fi | |
1c710c3c DJ |
5403 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5404 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5406 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5407 | else |
5213506e RW |
5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5409 | $as_echo "no" >&6; } | |
5305be7e RG |
5410 | fi |
5411 | ||
5213506e RW |
5412 | if test "x$ac_ct_GNATMAKE" = x; then |
5413 | GNATMAKE="no" | |
5414 | else | |
5415 | case $cross_compiling:$ac_tool_warned in | |
5416 | yes:) | |
5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5418 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5419 | ac_tool_warned=yes ;; | |
5420 | esac | |
5421 | GNATMAKE=$ac_ct_GNATMAKE | |
5422 | fi | |
5305be7e | 5423 | else |
1c710c3c | 5424 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5425 | fi |
5426 | ||
5213506e RW |
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5428 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
22e05272 | 5429 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5430 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5431 | else |
5432 | cat >conftest.adb <<EOF | |
5433 | procedure conftest is begin null; end conftest; | |
5434 | EOF | |
5435 | acx_cv_cc_gcc_supports_ada=no | |
5436 | # There is a bug in old released versions of GCC which causes the | |
5437 | # driver to exit successfully when the appropriate language module | |
5438 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5439 | # Therefore we must check for the error message as well as an | |
5440 | # unsuccessful exit. | |
1db673ca RO |
5441 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5442 | # given a .adb file, but produce no object file. So we must check | |
5443 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5444 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5445 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5446 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5447 | fi |
5448 | rm -f conftest.* | |
5449 | fi | |
5213506e RW |
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5451 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5452 | |
7cb62ef1 | 5453 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5454 | have_gnat=yes |
5455 | else | |
5456 | have_gnat=no | |
5457 | fi | |
5458 | ||
5213506e RW |
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5460 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5461 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5462 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5463 | else |
5464 | echo abfoo >t1 | |
5465 | echo cdfoo >t2 | |
b55e6680 | 5466 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5467 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5468 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5469 | : | |
5470 | else | |
5471 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5472 | fi | |
5473 | fi | |
a76494aa PB |
5474 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5475 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5476 | : |
a76494aa PB |
5477 | else |
5478 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5479 | fi | |
5480 | fi | |
5481 | rm t1 t2 | |
5482 | ||
5483 | fi | |
5213506e RW |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5485 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5486 | do_compare="$gcc_cv_prog_cmp_skip" |
5487 | ||
5488 | ||
55ffb5ed | 5489 | |
ff3ac0f4 ILT |
5490 | # Check whether --enable-bootstrap was given. |
5491 | if test "${enable_bootstrap+set}" = set; then : | |
5492 | enableval=$enable_bootstrap; | |
5493 | else | |
5494 | enable_bootstrap=default | |
5495 | fi | |
5496 | ||
5497 | ||
5498 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5499 | if test -r $srcdir/gcc/configure; then |
5500 | have_compiler=yes | |
5501 | else | |
5502 | have_compiler=no | |
5503 | fi | |
ff3ac0f4 ILT |
5504 | |
5505 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5506 | *:*:*:no) ;; | |
5507 | ||
5508 | # Default behavior. Enable bootstrap if we have a compiler | |
5509 | # and we are in a native configuration. | |
5510 | yes:$build:$build:default) | |
5511 | enable_bootstrap=yes ;; | |
5512 | ||
5513 | *:*:*:default) | |
5514 | enable_bootstrap=no ;; | |
5515 | ||
5516 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5517 | yes:$build:$build:yes) | |
5518 | ;; | |
5519 | ||
5520 | # Other configurations, but we have a compiler. Assume the user knows | |
5521 | # what he's doing. | |
5522 | yes:*:*:yes) | |
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5524 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5525 | ;; | |
5526 | ||
5527 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5528 | no:*:*:yes) | |
22e05272 | 5529 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5530 | |
5531 | # Fail if wrong command line | |
5532 | *) | |
22e05272 | 5533 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5534 | ;; |
5535 | esac | |
5536 | ||
46070488 JM |
5537 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5538 | # C++98 compiler can still start the bootstrap. | |
5539 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
8ca528d9 | 5540 | CXX="$CXX -std=gnu++98" |
46070488 JM |
5541 | fi |
5542 | ||
592c90ff KG |
5543 | # Used for setting $lt_cv_objdir |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5545 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 5546 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
5547 | $as_echo_n "(cached) " >&6 |
5548 | else | |
5549 | rm -f .libs 2>/dev/null | |
5550 | mkdir .libs 2>/dev/null | |
5551 | if test -d .libs; then | |
5552 | lt_cv_objdir=.libs | |
5553 | else | |
5554 | # MS-DOS does not allow filenames that begin with a dot. | |
5555 | lt_cv_objdir=_libs | |
5556 | fi | |
5557 | rmdir .libs 2>/dev/null | |
5558 | fi | |
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5560 | $as_echo "$lt_cv_objdir" >&6; } | |
5561 | objdir=$lt_cv_objdir | |
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | cat >>confdefs.h <<_ACEOF | |
5568 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5569 | _ACEOF | |
5570 | ||
5571 | ||
5572 | ||
acd26225 | 5573 | # Check for GMP, MPFR and MPC |
3a5729ea | 5574 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5575 | gmpinc= |
e69bf64b | 5576 | have_gmp=no |
acd26225 KG |
5577 | |
5578 | # Specify a location for mpc | |
5579 | # check for this first so it ends up on the link line before mpfr. | |
5580 | ||
5213506e RW |
5581 | # Check whether --with-mpc was given. |
5582 | if test "${with_mpc+set}" = set; then : | |
5583 | withval=$with_mpc; | |
5584 | fi | |
acd26225 | 5585 | |
acd26225 | 5586 | |
9965e3cd | 5587 | # Check whether --with-mpc-include was given. |
5213506e RW |
5588 | if test "${with_mpc_include+set}" = set; then : |
5589 | withval=$with_mpc_include; | |
5590 | fi | |
acd26225 | 5591 | |
acd26225 | 5592 | |
9965e3cd | 5593 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5594 | if test "${with_mpc_lib+set}" = set; then : |
5595 | withval=$with_mpc_lib; | |
5596 | fi | |
acd26225 | 5597 | |
acd26225 KG |
5598 | |
5599 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5600 | gmplibs="-L$with_mpc/lib $gmplibs" |
5601 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5602 | fi |
5603 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5604 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5605 | fi |
5606 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5607 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5608 | fi |
5609 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5610 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5611 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5612 | # Do not test the mpc version. Assume that it is sufficient, since |
5613 | # it is in the source tree, and the library has not been built yet | |
5614 | # but it would be included on the link line in the version check below | |
5615 | # hence making the test fail. | |
3a5729ea | 5616 | have_gmp=yes |
acd26225 | 5617 | fi |
e69bf64b | 5618 | |
bebf829d PB |
5619 | # Specify a location for mpfr |
5620 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5621 | |
5213506e RW |
5622 | # Check whether --with-mpfr-dir was given. |
5623 | if test "${with_mpfr_dir+set}" = set; then : | |
22e05272 | 5624 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
5213506e RW |
5625 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5626 | fi | |
5627 | ||
bebf829d PB |
5628 | |
5629 | ||
5213506e RW |
5630 | # Check whether --with-mpfr was given. |
5631 | if test "${with_mpfr+set}" = set; then : | |
5632 | withval=$with_mpfr; | |
5633 | fi | |
1c710c3c | 5634 | |
bebf829d | 5635 | |
9965e3cd | 5636 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5637 | if test "${with_mpfr_include+set}" = set; then : |
5638 | withval=$with_mpfr_include; | |
5639 | fi | |
1c710c3c | 5640 | |
8a877c9c | 5641 | |
9965e3cd | 5642 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5643 | if test "${with_mpfr_lib+set}" = set; then : |
5644 | withval=$with_mpfr_lib; | |
5645 | fi | |
8a877c9c | 5646 | |
bebf829d PB |
5647 | |
5648 | if test "x$with_mpfr" != x; then | |
5649 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5650 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5651 | fi |
8a877c9c | 5652 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5653 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5654 | fi |
5655 | if test "x$with_mpfr_lib" != x; then | |
5656 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5657 | fi | |
e69bf64b | 5658 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
5659 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5660 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 5661 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 5662 | fi |
00f35794 BE |
5663 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5664 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5665 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
5666 | # Do not test the mpfr version. Assume that it is sufficient, since |
5667 | # it is in the source tree, and the library has not been built yet | |
5668 | # but it would be included on the link line in the version check below | |
5669 | # hence making the test fail. | |
5670 | have_gmp=yes | |
5671 | fi | |
bebf829d | 5672 | |
6de9cd9a | 5673 | # Specify a location for gmp |
1c710c3c | 5674 | |
5213506e RW |
5675 | # Check whether --with-gmp-dir was given. |
5676 | if test "${with_gmp_dir+set}" = set; then : | |
22e05272 | 5677 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
5213506e RW |
5678 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5679 | fi | |
5680 | ||
6de9cd9a | 5681 | |
6de9cd9a | 5682 | |
5213506e RW |
5683 | # Check whether --with-gmp was given. |
5684 | if test "${with_gmp+set}" = set; then : | |
5685 | withval=$with_gmp; | |
5686 | fi | |
1c710c3c | 5687 | |
6de9cd9a | 5688 | |
9965e3cd | 5689 | # Check whether --with-gmp-include was given. |
5213506e RW |
5690 | if test "${with_gmp_include+set}" = set; then : |
5691 | withval=$with_gmp_include; | |
5692 | fi | |
1c710c3c | 5693 | |
8a877c9c | 5694 | |
9965e3cd | 5695 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5696 | if test "${with_gmp_lib+set}" = set; then : |
5697 | withval=$with_gmp_lib; | |
5698 | fi | |
8a877c9c KG |
5699 | |
5700 | ||
6de9cd9a | 5701 | |
bebf829d PB |
5702 | if test "x$with_gmp" != x; then |
5703 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5704 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5705 | fi |
8a877c9c KG |
5706 | if test "x$with_gmp_include" != x; then |
5707 | gmpinc="-I$with_gmp_include $gmpinc" | |
5708 | fi | |
5709 | if test "x$with_gmp_lib" != x; then | |
5710 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5711 | fi | |
e69bf64b | 5712 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5713 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5714 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5715 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5716 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 5717 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
5718 | # Do not test the gmp version. Assume that it is sufficient, since |
5719 | # it is in the source tree, and the library has not been built yet | |
5720 | # but it would be included on the link line in the version check below | |
5721 | # hence making the test fail. | |
5722 | have_gmp=yes | |
5723 | fi | |
6de9cd9a | 5724 | |
d943d7c4 | 5725 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5726 | have_gmp=yes |
5727 | saved_CFLAGS="$CFLAGS" | |
5728 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5729 | # Check for the recommended and required versions of GMP. |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5731 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5732 | |
5733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5734 | /* end confdefs.h. */ |
5735 | #include "gmp.h" | |
5736 | int | |
5737 | main () | |
5738 | { | |
5739 | ||
5740 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5741 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 5742 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
5743 | choke me |
5744 | #endif | |
5745 | ||
5746 | ; | |
5747 | return 0; | |
5748 | } | |
5749 | _ACEOF | |
5750 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5752 | /* end confdefs.h. */ |
362c6d2f | 5753 | #include <gmp.h> |
1c710c3c DJ |
5754 | int |
5755 | main () | |
5756 | { | |
6de9cd9a | 5757 | |
362c6d2f KG |
5758 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5759 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5760 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5761 | choke me |
5762 | #endif | |
1c710c3c DJ |
5763 | |
5764 | ; | |
5765 | return 0; | |
5766 | } | |
5767 | _ACEOF | |
5213506e RW |
5768 | if ac_fn_c_try_compile "$LINENO"; then : |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5770 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5771 | else |
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5773 | $as_echo "buggy but acceptable" >&6; } | |
5774 | fi | |
5775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5776 | else |
5213506e RW |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5778 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5779 | fi |
5213506e | 5780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5781 | |
acd26225 | 5782 | # If we have GMP, check the MPFR version. |
e69bf64b | 5783 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5784 | # Check for the recommended and required versions of MPFR. |
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5786 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5788 | /* end confdefs.h. */ |
70ec446f | 5789 | #include <gmp.h> |
e69bf64b | 5790 | #include <mpfr.h> |
1c710c3c DJ |
5791 | int |
5792 | main () | |
5793 | { | |
e48d66a9 | 5794 | |
8be34204 | 5795 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
5796 | choke me |
5797 | #endif | |
1c710c3c DJ |
5798 | |
5799 | ; | |
5800 | return 0; | |
5801 | } | |
5802 | _ACEOF | |
5213506e RW |
5803 | if ac_fn_c_try_compile "$LINENO"; then : |
5804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5805 | /* end confdefs.h. */ |
a3993f33 | 5806 | #include <gmp.h> |
e69bf64b | 5807 | #include <mpfr.h> |
1c710c3c DJ |
5808 | int |
5809 | main () | |
5810 | { | |
a3993f33 | 5811 | |
8be34204 | 5812 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
5813 | choke me |
5814 | #endif | |
acd26225 KG |
5815 | |
5816 | ; | |
5817 | return 0; | |
5818 | } | |
5819 | _ACEOF | |
5213506e RW |
5820 | if ac_fn_c_try_compile "$LINENO"; then : |
5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5822 | $as_echo "yes" >&6; } | |
acd26225 | 5823 | else |
5213506e RW |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5825 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5826 | fi |
5213506e | 5827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5828 | else |
5213506e RW |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5830 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5831 | fi |
5213506e | 5832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5833 | fi |
5834 | ||
5835 | # Check for the MPC header version. | |
3a5729ea | 5836 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5837 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5839 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5841 | /* end confdefs.h. */ |
5842 | #include <mpc.h> | |
5843 | int | |
5844 | main () | |
5845 | { | |
5846 | ||
362c6d2f KG |
5847 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5848 | choke me | |
5849 | #endif | |
5850 | ||
5851 | ; | |
5852 | return 0; | |
5853 | } | |
5854 | _ACEOF | |
5855 | if ac_fn_c_try_compile "$LINENO"; then : | |
5856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5857 | /* end confdefs.h. */ | |
5858 | #include <mpc.h> | |
5859 | int | |
5860 | main () | |
5861 | { | |
5862 | ||
5863 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5864 | choke me |
5865 | #endif | |
5866 | ||
5867 | ; | |
5868 | return 0; | |
5869 | } | |
5870 | _ACEOF | |
5213506e RW |
5871 | if ac_fn_c_try_compile "$LINENO"; then : |
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5873 | $as_echo "yes" >&6; } |
362c6d2f KG |
5874 | else |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5876 | $as_echo "buggy but acceptable" >&6; } | |
5877 | fi | |
5878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5879 | else |
5213506e | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5881 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5882 | fi |
5213506e | 5883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5884 | fi |
5885 | ||
5886 | # Now check the MPFR library. | |
5887 | if test x"$have_gmp" = xyes; then | |
5888 | saved_LIBS="$LIBS" | |
5889 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5891 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5893 | /* end confdefs.h. */ |
3a5729ea | 5894 | #include <mpc.h> |
acd26225 KG |
5895 | int |
5896 | main () | |
5897 | { | |
5898 | ||
5899 | mpfr_t n; | |
5900 | mpfr_t x; | |
3a5729ea | 5901 | mpc_t c; |
acd26225 KG |
5902 | int t; |
5903 | mpfr_init (n); | |
5904 | mpfr_init (x); | |
90ca6847 TB |
5905 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
5906 | mpfr_erfc (n, x, MPFR_RNDN); | |
5907 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
5908 | mpfr_clear(n); |
5909 | mpfr_clear(x); | |
5910 | mpc_init2 (c, 53); | |
5911 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5912 | mpc_cosh (c, c, MPC_RNDNN); | |
5913 | mpc_pow (c, c, c, MPC_RNDNN); | |
5914 | mpc_acosh (c, c, MPC_RNDNN); | |
5915 | mpc_clear (c); | |
1c710c3c DJ |
5916 | |
5917 | ; | |
5918 | return 0; | |
5919 | } | |
5920 | _ACEOF | |
5213506e RW |
5921 | if ac_fn_c_try_link "$LINENO"; then : |
5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5923 | $as_echo "yes" >&6; } | |
1c710c3c | 5924 | else |
5213506e RW |
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5926 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5927 | fi |
5213506e RW |
5928 | rm -f core conftest.err conftest.$ac_objext \ |
5929 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5930 | LIBS="$saved_LIBS" |
5931 | fi | |
5932 | ||
e69bf64b | 5933 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5934 | |
362c6d2f KG |
5935 | # The library versions listed in the error message below should match |
5936 | # the HARD-minimums enforced above. | |
e69bf64b | 5937 | if test x$have_gmp != xyes; then |
8be34204 | 5938 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
5939 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5940 | their locations. Source code for these libraries can be found at | |
5941 | their respective hosting sites as well as at | |
aeebd94c | 5942 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
3a5729ea KG |
5943 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
5944 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5945 | make sure that you have installed both the libraries and the header | |
5946 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5947 | fi |
70ec446f KG |
5948 | fi |
5949 | ||
acd26225 KG |
5950 | # Flags needed for both GMP, MPFR and/or MPC. |
5951 | ||
5952 | ||
6de9cd9a DN |
5953 | |
5954 | ||
5955 | ||
9e3eba15 | 5956 | |
0ff2d841 | 5957 | |
0b21f5d3 | 5958 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 5959 | |
0b21f5d3 EB |
5960 | # Check whether --with-stage1-libs was given. |
5961 | if test "${with_stage1_libs+set}" = set; then : | |
5962 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5963 | stage1_libs= | |
00020c16 | 5964 | else |
0b21f5d3 | 5965 | stage1_libs=$withval |
00020c16 ILT |
5966 | fi |
5967 | else | |
5dc85f7e | 5968 | stage1_libs= |
5213506e RW |
5969 | fi |
5970 | ||
00020c16 ILT |
5971 | |
5972 | ||
aac9103b TT |
5973 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
5974 | # default is yes if gcc is being built; no otherwise. The reason for | |
5975 | # this default is that gdb is sometimes linked against GNU Source | |
5976 | # Highlight, which is a shared library that uses C++ exceptions. In | |
5977 | # this case, -static-libstdc++ will cause crashes. | |
5978 | ||
5979 | # Check whether --with-static-standard-libraries was given. | |
5980 | if test "${with_static_standard_libraries+set}" = set; then : | |
5981 | withval=$with_static_standard_libraries; | |
5982 | else | |
5983 | with_static_standard_libraries=auto | |
5984 | fi | |
5985 | ||
5986 | if test "$with_static_standard_libraries" = auto; then | |
5987 | with_static_standard_libraries=$have_compiler | |
5988 | fi | |
5989 | ||
0b21f5d3 | 5990 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 5991 | |
0b21f5d3 EB |
5992 | # Check whether --with-stage1-ldflags was given. |
5993 | if test "${with_stage1_ldflags+set}" = set; then : | |
5994 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5995 | stage1_ldflags= | |
00020c16 | 5996 | else |
0b21f5d3 | 5997 | stage1_ldflags=$withval |
00020c16 ILT |
5998 | fi |
5999 | else | |
0b21f5d3 EB |
6000 | stage1_ldflags= |
6001 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
6002 | # if supported. But if the user explicitly specified the libraries to use, | |
6003 | # trust that they are doing what they want. | |
aac9103b TT |
6004 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
6005 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
6006 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
6007 | fi | |
5213506e RW |
6008 | fi |
6009 | ||
00020c16 ILT |
6010 | |
6011 | ||
5dc85f7e | 6012 | # Libraries to use for stage2 and later builds. |
00020c16 | 6013 | |
5213506e RW |
6014 | # Check whether --with-boot-libs was given. |
6015 | if test "${with_boot_libs+set}" = set; then : | |
6016 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
6017 | poststage1_libs= |
6018 | else | |
6019 | poststage1_libs=$withval | |
6020 | fi | |
6021 | else | |
5dc85f7e | 6022 | poststage1_libs= |
5213506e RW |
6023 | fi |
6024 | ||
00020c16 ILT |
6025 | |
6026 | ||
ed2eaa9f ILT |
6027 | # Linker flags to use for stage2 and later builds. |
6028 | ||
6029 | # Check whether --with-boot-ldflags was given. | |
6030 | if test "${with_boot_ldflags+set}" = set; then : | |
6031 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6032 | poststage1_ldflags= | |
6033 | else | |
6034 | poststage1_ldflags=$withval | |
6035 | fi | |
6036 | else | |
6037 | poststage1_ldflags= | |
bec93d73 ILT |
6038 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
6039 | # statically. But if the user explicitly specified the libraries to | |
6040 | # use, trust that they are doing what they want. | |
6041 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
6042 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
6043 | fi | |
6044 | fi | |
6045 | ||
6046 | ||
6047 | ||
e357a5e0 | 6048 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 6049 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
6050 | |
6051 | ||
33ad93b9 RG |
6052 | # Check whether --with-isl was given. |
6053 | if test "${with_isl+set}" = set; then : | |
6054 | withval=$with_isl; | |
5213506e | 6055 | fi |
f8bf9252 | 6056 | |
f8bf9252 | 6057 | |
eae1a5d4 | 6058 | # Treat --without-isl as a request to disable |
625afa23 | 6059 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 6060 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 6061 | # Check for isl |
625afa23 RG |
6062 | |
6063 | ||
33ad93b9 RG |
6064 | # Check whether --with-isl-include was given. |
6065 | if test "${with_isl_include+set}" = set; then : | |
6066 | withval=$with_isl_include; | |
5213506e RW |
6067 | fi |
6068 | ||
f8bf9252 | 6069 | |
33ad93b9 RG |
6070 | # Check whether --with-isl-lib was given. |
6071 | if test "${with_isl_lib+set}" = set; then : | |
6072 | withval=$with_isl_lib; | |
5213506e | 6073 | fi |
f8bf9252 | 6074 | |
f8bf9252 | 6075 | |
33ad93b9 RG |
6076 | # Check whether --enable-isl-version-check was given. |
6077 | if test "${enable_isl_version_check+set}" = set; then : | |
6078 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
6079 | else | |
6080 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
6081 | fi |
6082 | ||
6083 | ||
33ad93b9 RG |
6084 | # Initialize isllibs and islinc. |
6085 | case $with_isl in | |
6086 | no) | |
6087 | isllibs= | |
6088 | islinc= | |
6089 | ;; | |
6090 | "" | yes) | |
6091 | ;; | |
6092 | *) | |
6093 | isllibs="-L$with_isl/lib" | |
6094 | islinc="-I$with_isl/include" | |
6095 | ;; | |
6096 | esac | |
6097 | if test "x${with_isl_include}" != x ; then | |
6098 | islinc="-I$with_isl_include" | |
6099 | fi | |
6100 | if test "x${with_isl_lib}" != x; then | |
6101 | isllibs="-L$with_isl_lib" | |
6102 | fi | |
6103 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
6104 | && test -d ${srcdir}/isl; then | |
6105 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
6106 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
6107 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
6109 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 6110 | fi |
7d32a440 | 6111 | |
eae1a5d4 RG |
6112 | isllibs="${isllibs} -lisl" |
6113 | ||
7d32a440 | 6114 | |
7d32a440 | 6115 | |
9847828b RB |
6116 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
6117 | _isl_saved_CFLAGS=$CFLAGS | |
6118 | _isl_saved_LDFLAGS=$LDFLAGS | |
6119 | _isl_saved_LIBS=$LIBS | |
6120 | ||
6121 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
6122 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6123 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 6124 | |
f877b3ad RB |
6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
6126 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 6127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 6128 | /* end confdefs.h. */ |
f877b3ad | 6129 | #include <isl/schedule.h> |
622dbadf BC |
6130 | int |
6131 | main () | |
6132 | { | |
f877b3ad | 6133 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
6134 | ; |
6135 | return 0; | |
6136 | } | |
6137 | _ACEOF | |
6138 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 6139 | gcc_cv_isl=yes |
622dbadf BC |
6140 | else |
6141 | gcc_cv_isl=no | |
6142 | fi | |
6143 | rm -f core conftest.err conftest.$ac_objext \ | |
6144 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6146 | $as_echo "$gcc_cv_isl" >&6; } | |
6147 | ||
560d18d3 | 6148 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
6150 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
6151 | fi |
6152 | ||
9847828b RB |
6153 | CFLAGS=$_isl_saved_CFLAGS |
6154 | LDFLAGS=$_isl_saved_LDFLAGS | |
6155 | LIBS=$_isl_saved_LIBS | |
6156 | fi | |
6157 | ||
6158 | ||
f8bf9252 | 6159 | |
f8bf9252 | 6160 | |
33ad93b9 RG |
6161 | |
6162 | ||
33ad93b9 RG |
6163 | if test "x${with_isl}" = xno; then |
6164 | graphite_requested=no | |
6165 | elif test "x${with_isl}" != x \ | |
6166 | || test "x${with_isl_include}" != x \ | |
6167 | || test "x${with_isl_lib}" != x ; then | |
6168 | graphite_requested=yes | |
6169 | else | |
6170 | graphite_requested=no | |
7d32a440 | 6171 | fi |
d789184e | 6172 | |
d789184e SP |
6173 | |
6174 | ||
33ad93b9 RG |
6175 | if test "${gcc_cv_isl}" = no ; then |
6176 | isllibs= | |
6177 | islinc= | |
6178 | fi | |
6179 | ||
6180 | if test "${graphite_requested}" = yes \ | |
6181 | && test "x${isllibs}" = x \ | |
6182 | && test "x${islinc}" = x ; then | |
f8bf9252 | 6183 | |
22e05272 | 6184 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 6185 | fi |
f8bf9252 | 6186 | |
d32ef397 | 6187 | |
d32ef397 AS |
6188 | fi |
6189 | ||
e357a5e0 | 6190 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 6191 | if test "x$with_isl" = xno || |
625afa23 | 6192 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 6193 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 6194 | islinc= |
32d024bf RG |
6195 | fi |
6196 | ||
625afa23 RG |
6197 | |
6198 | ||
6199 | ||
d7f09764 DN |
6200 | # Check for LTO support. |
6201 | # Check whether --enable-lto was given. | |
6202 | if test "${enable_lto+set}" = set; then : | |
6203 | enableval=$enable_lto; enable_lto=$enableval | |
6204 | else | |
6205 | enable_lto=yes; default_enable_lto=yes | |
6206 | fi | |
6207 | ||
6208 | ||
7413962d | 6209 | |
9a02962b DK |
6210 | |
6211 | ||
6212 | target_elf=no | |
6213 | case $target in | |
6214 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 6215 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 6216 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 6217 | nvptx-*-none) |
9a02962b DK |
6218 | target_elf=no |
6219 | ;; | |
6220 | *) | |
6221 | target_elf=yes | |
6222 | ;; | |
6223 | esac | |
6224 | ||
6225 | if test $target_elf = yes; then : | |
48215350 DK |
6226 | # ELF platforms build the lto-plugin always. |
6227 | build_lto_plugin=yes | |
9a02962b | 6228 | |
9a02962b DK |
6229 | else |
6230 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 6231 | case $target in |
deeba76a | 6232 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 6233 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
6234 | *) enable_lto=no ;; |
6235 | esac | |
9a02962b | 6236 | else |
db50fe7d IS |
6237 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6238 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
6239 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6240 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6241 | # -flto it won't be needed until after installation anyway. | |
6242 | case $target in | |
9e530bcd | 6243 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 6244 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 6245 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
6246 | fi |
6247 | ;; | |
6248 | esac | |
6249 | fi | |
1cd0b716 | 6250 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 6251 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 6252 | case $target in |
48215350 | 6253 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
6254 | *) ;; |
6255 | esac | |
48215350 | 6256 | |
9a02962b DK |
6257 | fi |
6258 | ||
d7f09764 | 6259 | |
45b3824d TS |
6260 | # Check whether --enable-linker-plugin-configure-flags was given. |
6261 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6262 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6263 | else | |
6264 | extra_linker_plugin_configure_flags= | |
6265 | fi | |
6266 | ||
6267 | ||
6268 | # Check whether --enable-linker-plugin-flags was given. | |
6269 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6270 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6271 | else | |
6272 | extra_linker_plugin_flags= | |
6273 | fi | |
6274 | ||
6275 | ||
6276 | ||
cdfee50a NS |
6277 | # Enable --enable-host-shared. |
6278 | # Checked early to determine whether jit is an 'all' language | |
6279 | # Check whether --enable-host-shared was given. | |
6280 | if test "${enable_host_shared+set}" = set; then : | |
6281 | enableval=$enable_host_shared; host_shared=$enableval | |
6282 | else | |
6283 | host_shared=no | |
6284 | fi | |
6285 | ||
6286 | ||
f8bf9252 | 6287 | |
0823efed | 6288 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 6289 | stage1_languages=,c, |
2805b53a | 6290 | |
00020c16 | 6291 | # Target libraries that we bootstrap. |
ad1e5170 | 6292 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 6293 | |
55ffb5ed NN |
6294 | # Figure out what language subdirectories are present. |
6295 | # Look if the user specified --enable-languages="..."; if not, use | |
6296 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6297 | # go away some day. | |
6298 | # NB: embedded tabs in this IF block -- do not untabify | |
6299 | if test -d ${srcdir}/gcc; then | |
6300 | if test x"${enable_languages+set}" != xset; then | |
6301 | if test x"${LANGUAGES+set}" = xset; then | |
6302 | enable_languages="${LANGUAGES}" | |
6b1786aa | 6303 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 6304 | else |
cdfee50a | 6305 | enable_languages=default |
55ffb5ed NN |
6306 | fi |
6307 | else | |
6308 | if test x"${enable_languages}" = x || | |
6309 | test x"${enable_languages}" = xyes; | |
6310 | then | |
6b1786aa | 6311 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
6312 | exit 1 |
6313 | fi | |
6314 | fi | |
6315 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6316 | ||
7f26dfa3 FXC |
6317 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6318 | # and make the substitution. | |
6319 | case ,${enable_languages}, in | |
6320 | *,f95,*) | |
6b1786aa | 6321 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
6322 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6323 | ;; | |
6324 | esac | |
6325 | ||
0823efed DN |
6326 | # If bootstrapping, C++ must be enabled. |
6327 | case ",$enable_languages,:$enable_bootstrap" in | |
6328 | *,c++,*:*) ;; | |
6329 | *:yes) | |
ff3ac0f4 ILT |
6330 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6331 | enable_languages="${enable_languages},c++" | |
6332 | else | |
22e05272 | 6333 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
6334 | fi |
6335 | ;; | |
6336 | esac | |
6337 | ||
55ffb5ed NN |
6338 | # First scan to see if an enabled language requires some other language. |
6339 | # We assume that a given config-lang.in will list all the language | |
6340 | # front ends it requires, even if some are required indirectly. | |
6341 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6342 | case ${lang_frag} in | |
6343 | ..) ;; | |
6344 | # The odd quoting in the next line works around | |
6345 | # an apparent bug in bash 1.12 on linux. | |
6346 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6347 | *) | |
69ecd18f ILT |
6348 | # From the config-lang.in, get $language, $lang_requires, and |
6349 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6350 | language= |
6351 | lang_requires= | |
69ecd18f | 6352 | lang_requires_boot_languages= |
d4360477 NS |
6353 | # set srcdir during sourcing lang_frag to the gcc dir. |
6354 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6355 | # polutes this shell | |
6356 | saved_srcdir=${srcdir} | |
6357 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6358 | srcdir=${saved_srcdir} | |
69ecd18f | 6359 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6360 | case ,${enable_languages}, in |
6361 | *,$other,*) ;; | |
cdfee50a | 6362 | *,default,*) ;; |
55ffb5ed NN |
6363 | *,all,*) ;; |
6364 | *,$language,*) | |
6365 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6366 | enable_languages="${enable_languages},${other}" | |
6367 | ;; | |
6368 | esac | |
6369 | done | |
69ecd18f ILT |
6370 | for other in ${lang_requires_boot_languages} ; do |
6371 | if test "$other" != "c"; then | |
6372 | case ,${enable_stage1_languages}, in | |
6373 | *,$other,*) ;; | |
cdfee50a | 6374 | *,default,*) ;; |
69ecd18f ILT |
6375 | *,all,*) ;; |
6376 | *) | |
6377 | case ,${enable_languages}, in | |
6378 | *,$language,*) | |
6379 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6380 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6381 | ;; | |
6382 | esac | |
6383 | ;; | |
6384 | esac | |
6385 | fi | |
6386 | done | |
55ffb5ed NN |
6387 | ;; |
6388 | esac | |
6389 | done | |
6390 | ||
e1888513 | 6391 | new_enable_languages=,c, |
d7f09764 DN |
6392 | |
6393 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 6394 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
6395 | case ,${enable_languages}, in |
6396 | *,lto,*) ;; | |
6397 | *) enable_languages="${enable_languages},lto" ;; | |
6398 | esac | |
1cd0b716 | 6399 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 6400 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
6401 | fi |
6402 | fi | |
6403 | ||
426c1eb0 TS |
6404 | # If we're building an offloading compiler, add the LTO front end. |
6405 | if test x"$enable_as_accelerator_for" != x ; then | |
6406 | case ,${enable_languages}, in | |
6407 | *,lto,*) ;; | |
6408 | *) enable_languages="${enable_languages},lto" ;; | |
6409 | esac | |
6410 | fi | |
6411 | ||
cdfee50a | 6412 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6413 | potential_languages=,c, |
55ffb5ed | 6414 | |
4da3b0f8 ILT |
6415 | enabled_target_libs= |
6416 | disabled_target_libs= | |
6417 | ||
55ffb5ed NN |
6418 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6419 | case ${lang_frag} in | |
6420 | ..) ;; | |
6421 | # The odd quoting in the next line works around | |
6422 | # an apparent bug in bash 1.12 on linux. | |
6423 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6424 | *) | |
1c710c3c | 6425 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6426 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6427 | language= |
6428 | target_libs= | |
6429 | lang_dirs= | |
1546bb64 | 6430 | subdir_requires= |
e1888513 PB |
6431 | boot_language=no |
6432 | build_by_default=yes | |
d4360477 NS |
6433 | # set srcdir during sourcing. See above about save & restore |
6434 | saved_srcdir=${srcdir} | |
6435 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6436 | srcdir=${saved_srcdir} | |
e1888513 PB |
6437 | if test x${language} = x; then |
6438 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6439 | exit 1 | |
6440 | fi | |
6441 | ||
78767fd9 | 6442 | if test "$language" = "c++"; then |
0823efed | 6443 | boot_language=yes |
00020c16 ILT |
6444 | fi |
6445 | ||
178f875a | 6446 | add_this_lang=no |
cdfee50a NS |
6447 | # C is always enabled, so no need to add it again |
6448 | if test "$language" != "c"; then | |
6449 | case ,${enable_languages}, in | |
6450 | *,${language},*) | |
6451 | # Language was explicitly selected; include it | |
d4a10d0a | 6452 | add_this_lang=yes |
cdfee50a NS |
6453 | ;; |
6454 | *,all,*) | |
6455 | # All languages are enabled | |
6456 | add_this_lang=all | |
6457 | ;; | |
6458 | *,default,*) | |
6459 | # 'default' was selected, select it if it is a default language | |
178f875a | 6460 | add_this_lang=${build_by_default} |
cdfee50a NS |
6461 | ;; |
6462 | esac | |
6463 | fi | |
6de9cd9a | 6464 | |
1546bb64 | 6465 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6466 | for i in $subdir_requires; do |
b6348cb3 | 6467 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
6468 | case ${add_this_lang} in |
6469 | yes) | |
1546bb64 | 6470 | # Specifically requested language; tell them. |
22e05272 | 6471 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 6472 | ;; |
cdfee50a NS |
6473 | all) |
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6475 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6476 | add_this_lang=unsupported | |
6477 | ;; | |
1546bb64 PB |
6478 | *) |
6479 | # Silently disable. | |
e1888513 | 6480 | add_this_lang=unsupported |
1546bb64 PB |
6481 | ;; |
6482 | esac | |
6483 | done | |
6484 | ||
e1888513 | 6485 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
6486 | case ${add_this_lang}:${language}:${have_gnat} in |
6487 | yes:ada:no) | |
e1888513 | 6488 | # Specifically requested language; tell them. |
22e05272 | 6489 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 6490 | ;; |
cdfee50a NS |
6491 | all:ada:no) |
6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6493 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6494 | add_this_lang=unsupported | |
6495 | ;; | |
e1888513 PB |
6496 | *:ada:no) |
6497 | # Silently disable. | |
6498 | add_this_lang=unsupported | |
6499 | ;; | |
6500 | esac | |
6501 | ||
cdfee50a NS |
6502 | # Disable jit if -enable-host-shared not specified |
6503 | case ${add_this_lang}:${language}:${host_shared} in | |
6504 | yes:jit:no) | |
6505 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 6506 | as_fn_error $? " |
cdfee50a NS |
6507 | Enabling language \"jit\" requires --enable-host-shared. |
6508 | ||
6509 | --enable-host-shared typically slows the rest of the compiler down by | |
6510 | a few %, so you must explicitly enable it. | |
6511 | ||
6512 | If you want to build both the jit and the regular compiler, it is often | |
6513 | best to do this via two separate configure/builds, in separate | |
6514 | directories, to avoid imposing the performance cost of | |
6515 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6516 | ;; | |
6517 | all:jit:no) | |
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6519 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6520 | add_this_lang=unsupported | |
6521 | ;; | |
6522 | *:jit:no) | |
6523 | # Silently disable. | |
6524 | add_this_lang=unsupported | |
6525 | ;; | |
6526 | esac | |
6527 | ||
6528 | # Disable a language that is unsupported by the target. | |
6529 | case "${add_this_lang}: $unsupported_languages " in | |
6530 | no:*) ;; | |
6531 | unsupported:*) ;; | |
6532 | *:*" $language "*) | |
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6534 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 6535 | add_this_lang=unsupported |
4fab7234 HPN |
6536 | ;; |
6537 | esac | |
6538 | ||
6de9cd9a | 6539 | case $add_this_lang in |
e1888513 | 6540 | unsupported) |
55ffb5ed | 6541 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6542 | disabled_target_libs="$disabled_target_libs $target_libs" |
6543 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6544 | ;; |
e1888513 PB |
6545 | no) |
6546 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6547 | disabled_target_libs="$disabled_target_libs $target_libs" |
6548 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6549 | potential_languages="${potential_languages}${language}," |
6550 | ;; | |
cdfee50a | 6551 | all|yes) |
e1888513 PB |
6552 | new_enable_languages="${new_enable_languages}${language}," |
6553 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6554 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6555 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6556 | case "${boot_language}:,$enable_stage1_languages," in |
6557 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6558 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6559 | case ",$stage1_languages," in |
6560 | *,$language,* | ,yes, | ,all,) ;; | |
6561 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6562 | esac | |
00020c16 ILT |
6563 | # We need to bootstrap any supporting libraries. |
6564 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6565 | ;; |
6566 | esac | |
6567 | ;; | |
55ffb5ed NN |
6568 | esac |
6569 | ;; | |
6570 | esac | |
6571 | done | |
6572 | ||
4da3b0f8 ILT |
6573 | # Add target libraries which are only needed for disabled languages |
6574 | # to noconfigdirs. | |
6575 | if test -n "$disabled_target_libs"; then | |
6576 | for dir in $disabled_target_libs; do | |
6577 | case " $enabled_target_libs " in | |
6578 | *" ${dir} "*) ;; | |
6579 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6580 | esac | |
6581 | done | |
6582 | fi | |
6583 | ||
5213506e RW |
6584 | # Check whether --enable-stage1-languages was given. |
6585 | if test "${enable_stage1_languages+set}" = set; then : | |
6586 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6587 | ,no,|,,) |
6588 | # Set it to something that will have no effect in the loop below | |
6589 | enable_stage1_languages=c ;; | |
6590 | ,yes,) | |
6591 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6592 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6593 | *,all,*) | |
6594 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6595 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6596 | esac | |
6597 | ||
6598 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6599 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6600 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6601 | case $potential_languages in | |
6602 | *,$i,*) | |
6603 | case $stage1_languages in | |
6604 | *,$i,*) ;; | |
6605 | *) stage1_languages="$stage1_languages$i," ;; | |
6606 | esac ;; | |
6607 | *) | |
6608 | case $missing_languages in | |
6609 | *,$i,*) ;; | |
6610 | *) missing_languages="$missing_languages$i," ;; | |
6611 | esac ;; | |
6612 | esac | |
6613 | done | |
5213506e RW |
6614 | fi |
6615 | ||
e1888513 PB |
6616 | |
6617 | # Remove leading/trailing commas that were added for simplicity | |
6618 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6619 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6620 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6621 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6622 | ||
55ffb5ed | 6623 | if test "x$missing_languages" != x; then |
22e05272 | 6624 | as_fn_error $? " |
0cf085e4 | 6625 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6626 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6627 | fi |
55ffb5ed NN |
6628 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6629 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6630 | enable_languages="$new_enable_languages" |
55ffb5ed | 6631 | fi |
e1888513 | 6632 | |
1c710c3c | 6633 | |
b2eaac4a | 6634 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6635 | fi |
6636 | ||
27079765 AH |
6637 | # Handle --disable-<component> generically. |
6638 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6639 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6640 | varname=`echo $dirname | sed -e s/+/_/g` |
6641 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6642 | noconfigdirs="$noconfigdirs $dir" |
6643 | fi | |
6644 | done | |
6645 | ||
43c40f3e RO |
6646 | # Check for Boehm's garbage collector |
6647 | # Check whether --enable-objc-gc was given. | |
6648 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
6649 | enableval=$enable_objc_gc; |
6650 | fi | |
6651 | ||
6652 | ||
6653 | # Check whether --with-target-bdw-gc was given. | |
6654 | if test "${with_target_bdw_gc+set}" = set; then : | |
6655 | withval=$with_target_bdw_gc; | |
6656 | fi | |
6657 | ||
6658 | ||
6659 | # Check whether --with-target-bdw-gc-include was given. | |
6660 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6661 | withval=$with_target_bdw_gc_include; | |
6662 | fi | |
6663 | ||
6664 | ||
6665 | # Check whether --with-target-bdw-gc-lib was given. | |
6666 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6667 | withval=$with_target_bdw_gc_lib; | |
6668 | fi | |
6669 | ||
6670 | ||
6671 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6673 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6674 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
6676 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
6677 | else |
6678 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 6679 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 6680 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 6681 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
6682 | else |
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6684 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
6685 | fi | |
6686 | fi | |
43c40f3e RO |
6687 | esac |
6688 | ||
5e9d6aa4 | 6689 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 6690 | case ,${enable_languages}, in |
1007a55c | 6691 | *,c++,*) |
5e9d6aa4 | 6692 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
6693 | case "${noconfigdirs}" in |
6694 | *target-libstdc++-v3*) | |
5e9d6aa4 | 6695 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
6696 | ;; |
6697 | *) ;; | |
6698 | esac | |
6699 | ;; | |
99776ebd | 6700 | *) |
5e9d6aa4 | 6701 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
6702 | ;; |
6703 | esac | |
6704 | ||
ee6a22df L |
6705 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6706 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6707 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6708 | ||
6709 | notsupp="" | |
6710 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6711 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6712 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6713 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6714 | if test -r $srcdir/$dirname/configure ; then | |
6715 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6716 | true | |
6717 | else | |
6718 | notsupp="$notsupp $dir" | |
6719 | fi | |
6720 | fi | |
6721 | fi | |
ee6a22df L |
6722 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6723 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6724 | if test -r $srcdir/$dirname/configure ; then | |
6725 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6726 | true | |
6727 | else | |
6728 | notsupp="$notsupp $dir" | |
6729 | fi | |
6730 | fi | |
6731 | fi | |
55ffb5ed NN |
6732 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6733 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6734 | if test -r $srcdir/$dirname/configure ; then | |
6735 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6736 | true | |
6737 | else | |
6738 | notsupp="$notsupp $dir" | |
6739 | fi | |
6740 | fi | |
6741 | fi | |
6742 | done | |
6743 | ||
55ffb5ed NN |
6744 | # Quietly strip out all directories which aren't configurable in this tree. |
6745 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6746 | # is now the case. | |
23f6b2f9 PB |
6747 | build_configdirs_all="$build_configdirs" |
6748 | build_configdirs= | |
6749 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6750 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6751 | if test -f ${srcdir}/$j/configure ; then |
6752 | build_configdirs="${build_configdirs} $i" | |
6753 | fi | |
6754 | done | |
6755 | ||
55ffb5ed NN |
6756 | configdirs_all="$configdirs" |
6757 | configdirs= | |
6758 | for i in ${configdirs_all} ; do | |
6759 | if test -f ${srcdir}/$i/configure ; then | |
6760 | configdirs="${configdirs} $i" | |
6761 | fi | |
6762 | done | |
23f6b2f9 | 6763 | |
55ffb5ed NN |
6764 | target_configdirs_all="$target_configdirs" |
6765 | target_configdirs= | |
6766 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6767 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6768 | if test -f ${srcdir}/$j/configure ; then |
6769 | target_configdirs="${target_configdirs} $i" | |
6770 | fi | |
6771 | done | |
6772 | ||
45b3824d TS |
6773 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6774 | # so we have to add it after the preceding checks. | |
6775 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6776 | then | |
6777 | case " $configdirs " in | |
6778 | *" libiberty "*) | |
6779 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6780 | configdirs="$configdirs libiberty-linker-plugin" | |
6781 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6782 | --with-libiberty=../libiberty-linker-plugin";; | |
6783 | *) | |
22e05272 | 6784 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
6785 | esac |
6786 | fi | |
6787 | ||
fca38047 TS |
6788 | # Sometimes we have special requirements for the host libiberty. |
6789 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 6790 | extra_host_zlib_configure_flags= |
fca38047 TS |
6791 | case " $configdirs " in |
6792 | *" lto-plugin "* | *" libcc1 "*) | |
6793 | # When these are to be built as shared libraries, the same applies to | |
6794 | # libiberty. | |
6795 | extra_host_libiberty_configure_flags=--enable-shared | |
6796 | ;; | |
1c01ebf6 L |
6797 | *" bfd "*) |
6798 | # When bfd is to be built as a shared library, the same applies to | |
6799 | # zlib. | |
6800 | if test "$enable_shared" = "yes"; then | |
6801 | extra_host_zlib_configure_flags=--enable-host-shared | |
6802 | fi | |
6803 | ;; | |
fca38047 TS |
6804 | esac |
6805 | ||
6806 | ||
1c01ebf6 | 6807 | |
55ffb5ed NN |
6808 | # Produce a warning message for the subdirs we can't configure. |
6809 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6810 | # FSF releases, it's important to let people know when their machine isn't | |
6811 | # supported by the one or two programs in a package. | |
6812 | ||
6813 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6814 | # If $appdirs is non-empty, at least one of those directories must still | |
6815 | # be configured, or we error out. (E.g., if the gas release supports a | |
6816 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6817 | # pretend that all is well.) | |
6818 | if test -n "$appdirs" ; then | |
6819 | for dir in $appdirs ; do | |
6820 | if test -r $dir/Makefile.in ; then | |
6821 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6822 | appdirs="" | |
6823 | break | |
6824 | fi | |
23f6b2f9 | 6825 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6826 | appdirs="" |
6827 | break | |
6828 | fi | |
6829 | fi | |
6830 | done | |
6831 | if test -n "$appdirs" ; then | |
6832 | echo "*** This configuration is not supported by this package." 1>&2 | |
6833 | exit 1 | |
6834 | fi | |
6835 | fi | |
6836 | # Okay, some application will build, or we don't care to check. Still | |
6837 | # notify of subdirs not getting built. | |
6838 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6839 | echo " ${notsupp}" 1>&2 | |
6840 | echo " (Any other directories should still work fine.)" 1>&2 | |
6841 | fi | |
6842 | ||
6843 | case "$host" in | |
6844 | *msdosdjgpp*) | |
6845 | enable_gdbtk=no ;; | |
6846 | esac | |
6847 | ||
c3a86da9 DJ |
6848 | # To find our prefix, in gcc_cv_tool_prefix. |
6849 | ||
6850 | # The user is always right. | |
6851 | if test "${PATH_SEPARATOR+set}" != set; then | |
6852 | echo "#! /bin/sh" >conf$$.sh | |
6853 | echo "exit 0" >>conf$$.sh | |
6854 | chmod +x conf$$.sh | |
6855 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6856 | PATH_SEPARATOR=';' | |
6857 | else | |
6858 | PATH_SEPARATOR=: | |
6859 | fi | |
6860 | rm -f conf$$.sh | |
6861 | fi | |
6862 | ||
6863 | ||
3c36aa6b JJ |
6864 | get_gcc_base_ver="cat" |
6865 | ||
6866 | # Check whether --with-gcc-major-version-only was given. | |
6867 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6868 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 6869 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
6870 | fi |
6871 | ||
6872 | fi | |
6873 | ||
6874 | ||
6875 | ||
6876 | ||
6877 | ||
c3a86da9 DJ |
6878 | |
6879 | if test "x$exec_prefix" = xNONE; then | |
6880 | if test "x$prefix" = xNONE; then | |
6881 | gcc_cv_tool_prefix=$ac_default_prefix | |
6882 | else | |
6883 | gcc_cv_tool_prefix=$prefix | |
6884 | fi | |
6885 | else | |
6886 | gcc_cv_tool_prefix=$exec_prefix | |
6887 | fi | |
6888 | ||
6889 | # If there is no compiler in the tree, use the PATH only. In any | |
6890 | # case, if there is no compiler in the tree nobody should use | |
6891 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6892 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
6893 | if test x$with_gcc_major_version_only = xyes ; then |
6894 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6895 | else | |
6896 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6897 | fi | |
c3a86da9 DJ |
6898 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6899 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6900 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6901 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6902 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6903 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6904 | else | |
6905 | gcc_cv_tool_dirs= | |
6906 | fi | |
6907 | ||
6908 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6909 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6910 | fi | |
6911 | ||
6912 | ||
6913 | ||
55ffb5ed NN |
6914 | copy_dirs= |
6915 | ||
1c710c3c | 6916 | |
5213506e RW |
6917 | # Check whether --with-build-sysroot was given. |
6918 | if test "${with_build_sysroot+set}" = set; then : | |
6919 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6920 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6921 | fi | |
6922 | else | |
6923 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6924 | fi |
526635cb MM |
6925 | |
6926 | ||
c8aea42c | 6927 | |
5213506e RW |
6928 | |
6929 | # Check whether --with-debug-prefix-map was given. | |
6930 | if test "${with_debug_prefix_map+set}" = set; then : | |
6931 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6932 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6933 | for debug_map in $withval; do | |
6934 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6935 | done | |
6936 | fi | |
6937 | else | |
6938 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6939 | fi |
6940 | ||
c8aea42c PB |
6941 | |
6942 | ||
1c8bd6a3 PB |
6943 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6944 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6945 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6946 | # We want to ensure that TARGET libraries (which we know are built with | |
6947 | # gcc) are built with "-O2 -g", so include those options when setting | |
6948 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6949 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6950 | if test "x${is_cross_compiler}" = xyes; then |
6951 | CFLAGS_FOR_TARGET="-g -O2" | |
6952 | else | |
6953 | CFLAGS_FOR_TARGET=$CFLAGS | |
6954 | case " $CFLAGS " in | |
6955 | *" -O2 "*) ;; | |
6956 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6957 | esac | |
6958 | case " $CFLAGS " in | |
6959 | *" -g "* | *" -g3 "*) ;; | |
6960 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6961 | esac | |
6962 | fi | |
1c8bd6a3 PB |
6963 | fi |
6964 | ||
6965 | ||
6966 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6967 | if test "x${is_cross_compiler}" = xyes; then |
6968 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6969 | else | |
6970 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6971 | case " $CXXFLAGS " in | |
6972 | *" -O2 "*) ;; | |
6973 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6974 | esac | |
6975 | case " $CXXFLAGS " in | |
6976 | *" -g "* | *" -g3 "*) ;; | |
6977 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6978 | esac | |
6979 | fi | |
1c8bd6a3 PB |
6980 | fi |
6981 | ||
6982 | ||
6f57bdf6 DK |
6983 | |
6984 | ||
55ffb5ed NN |
6985 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6986 | # the named directory are copied to $(tooldir)/sys-include. | |
6987 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6988 | if test x${is_cross_compiler} = xno ; then | |
6989 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6990 | exit 1 | |
6991 | fi | |
6992 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6993 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6994 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6995 | fi |
6996 | fi | |
6997 | ||
6998 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6999 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
7000 | # are permitted. | |
7001 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
7002 | if test x${is_cross_compiler} = xno ; then | |
7003 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
7004 | exit 1 | |
7005 | fi | |
7006 | if test x"${with_libs}" != xyes ; then | |
7007 | # Copy the libraries in reverse order, so that files in the first named | |
7008 | # library override files in subsequent libraries. | |
c3a86da9 | 7009 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 7010 | for l in ${with_libs}; do |
1c710c3c | 7011 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
7012 | done |
7013 | fi | |
7014 | fi | |
7015 | ||
d7f09764 | 7016 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
7017 | # |
7018 | # This is done by determining whether or not the appropriate directory | |
7019 | # is available, and by checking whether or not specific configurations | |
7020 | # have requested that this magic not happen. | |
1c710c3c DJ |
7021 | # |
7022 | # The command line options always override the explicit settings in | |
6b1786aa | 7023 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 7024 | # |
1c710c3c | 7025 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 7026 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
7027 | # --without-gnu-ld options for the configure script. Similarly, if |
7028 | # the default is to use the included zlib and you don't want to do that, | |
7029 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
7030 | |
7031 | if test x${use_gnu_as} = x && | |
7032 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
7033 | with_gnu_as=yes | |
7034 | extra_host_args="$extra_host_args --with-gnu-as" | |
7035 | fi | |
7036 | ||
7037 | if test x${use_gnu_ld} = x && | |
5afab7ad | 7038 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
7039 | with_gnu_ld=yes |
7040 | extra_host_args="$extra_host_args --with-gnu-ld" | |
7041 | fi | |
7042 | ||
d7f09764 DN |
7043 | if test x${use_included_zlib} = x && |
7044 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
7045 | : | |
7046 | else | |
7047 | with_system_zlib=yes | |
7048 | extra_host_args="$extra_host_args --with-system-zlib" | |
7049 | fi | |
7050 | ||
e8b05380 PB |
7051 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
7052 | # can detect this case. | |
7053 | ||
7054 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
7055 | with_newlib=yes | |
7056 | extra_host_args="$extra_host_args --with-newlib" | |
7057 | fi | |
7058 | ||
55ffb5ed NN |
7059 | # Handle ${copy_dirs} |
7060 | set fnord ${copy_dirs} | |
7061 | shift | |
7062 | while test $# != 0 ; do | |
7063 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
7064 | : | |
7065 | else | |
7066 | echo Copying $1 to $2 | |
7067 | ||
7068 | # Use the install script to create the directory and all required | |
7069 | # parent directories. | |
7070 | if test -d $2 ; then | |
7071 | : | |
7072 | else | |
7073 | echo >config.temp | |
7074 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
7075 | fi | |
7076 | ||
7077 | # Copy the directory, assuming we have tar. | |
7078 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
7079 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
7080 | ||
7081 | # It is the responsibility of the user to correctly adjust all | |
7082 | # symlinks. If somebody can figure out how to handle them correctly | |
7083 | # here, feel free to add the code. | |
7084 | ||
7085 | echo $1 > $2/COPIED | |
7086 | fi | |
7087 | shift; shift | |
7088 | done | |
7089 | ||
e8b05380 PB |
7090 | # Determine a target-dependent exec_prefix that the installed |
7091 | # gcc will search in. Keep this list sorted by triplet, with | |
7092 | # the *-*-osname triplets last. | |
7093 | md_exec_prefix= | |
7094 | case "${target}" in | |
30b74385 | 7095 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
7096 | md_exec_prefix=/dev/env/DJDIR/bin |
7097 | ;; | |
e8b05380 | 7098 | *-*-hpux* | \ |
e8b05380 | 7099 | *-*-nto-qnx* | \ |
6de66370 | 7100 | *-*-solaris2*) |
e8b05380 PB |
7101 | md_exec_prefix=/usr/ccs/bin |
7102 | ;; | |
7103 | esac | |
7104 | ||
671aa708 NN |
7105 | extra_arflags_for_target= |
7106 | extra_nmflags_for_target= | |
7107 | extra_ranlibflags_for_target= | |
7108 | target_makefile_frag=/dev/null | |
7109 | case "${target}" in | |
58e24147 AM |
7110 | spu-*-*) |
7111 | target_makefile_frag="config/mt-spu" | |
7112 | ;; | |
d896cc4d | 7113 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
7114 | target_makefile_frag="config/mt-sde" |
7115 | ;; | |
1ec3b87b RS |
7116 | mipsisa*-*-elfoabi*) |
7117 | target_makefile_frag="config/mt-mips-elfoabi" | |
7118 | ;; | |
08d0963a RS |
7119 | mips*-*-*linux* | mips*-*-gnu*) |
7120 | target_makefile_frag="config/mt-mips-gnu" | |
7121 | ;; | |
707f1839 SL |
7122 | nios2-*-elf*) |
7123 | target_makefile_frag="config/mt-nios2-elf" | |
7124 | ;; | |
76052545 EB |
7125 | *-*-linux-android*) |
7126 | target_makefile_frag="config/mt-android" | |
7127 | ;; | |
416ac4d4 | 7128 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 7129 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
7130 | ;; |
7131 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 7132 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
7133 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7134 | # harmless if we're using GNU nm or ar. | |
7135 | extra_arflags_for_target=" -X32_64" | |
7136 | extra_nmflags_for_target=" -B -X32_64" | |
7137 | ;; | |
671aa708 NN |
7138 | esac |
7139 | ||
7140 | alphaieee_frag=/dev/null | |
7141 | case $target in | |
7142 | alpha*-*-*) | |
7143 | # This just makes sure to use the -mieee option to build target libs. | |
7144 | # This should probably be set individually by each library. | |
7145 | alphaieee_frag="config/mt-alphaieee" | |
7146 | ;; | |
7147 | esac | |
7148 | ||
7149 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7150 | # the target libraries, similarly if it is not specified, use -Os | |
7151 | # on selected platforms. | |
7152 | ospace_frag=/dev/null | |
7153 | case "${enable_target_optspace}:${target}" in | |
7154 | yes:*) | |
7155 | ospace_frag="config/mt-ospace" | |
7156 | ;; | |
7157 | :d30v-*) | |
7158 | ospace_frag="config/mt-d30v" | |
7159 | ;; | |
d9063947 | 7160 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
7161 | ospace_frag="config/mt-ospace" |
7162 | ;; | |
7163 | no:* | :*) | |
7164 | ;; | |
7165 | *) | |
7166 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7167 | ;; | |
7168 | esac | |
7169 | ||
671aa708 NN |
7170 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7171 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 7172 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
7173 | build_tooldir=${tooldir} |
7174 | ||
671aa708 NN |
7175 | # Create a .gdbinit file which runs the one in srcdir |
7176 | # and tells GDB to look there for source files. | |
7177 | ||
7178 | if test -r ${srcdir}/.gdbinit ; then | |
7179 | case ${srcdir} in | |
7180 | .) ;; | |
7181 | *) cat > ./.gdbinit <<EOF | |
7182 | # ${NO_EDIT} | |
7183 | dir ${srcdir} | |
7184 | dir . | |
7185 | source ${srcdir}/.gdbinit | |
7186 | EOF | |
7187 | ;; | |
7188 | esac | |
7189 | fi | |
7190 | ||
671aa708 NN |
7191 | # Make sure that the compiler is able to generate an executable. If it |
7192 | # can't, we are probably in trouble. We don't care whether we can run the | |
7193 | # executable--we might be using a cross compiler--we only care whether it | |
7194 | # can be created. At this point the main configure script has set CC. | |
7195 | we_are_ok=no | |
7196 | echo "int main () { return 0; }" > conftest.c | |
7197 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7198 | if test $? = 0 ; then | |
7199 | if test -s conftest || test -s conftest.exe ; then | |
7200 | we_are_ok=yes | |
7201 | fi | |
1c710c3c | 7202 | fi |
671aa708 NN |
7203 | case $we_are_ok in |
7204 | no) | |
7205 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7206 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7207 | rm -f conftest* | |
7208 | exit 1 | |
7209 | ;; | |
7210 | esac | |
7211 | rm -f conftest* | |
7212 | ||
d89f0ad6 | 7213 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
7214 | case "${host}" in |
7215 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 7216 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 7217 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
7218 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7219 | esac | |
7220 | ||
d89f0ad6 AL |
7221 | # On systems where the dynamic library environment variable is PATH, |
7222 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
7223 | # built executables to PATH. | |
7224 | if test "$RPATH_ENVVAR" = PATH; then | |
7225 | GCC_SHLIB_SUBDIR=/shlib | |
7226 | else | |
7227 | GCC_SHLIB_SUBDIR= | |
7228 | fi | |
7229 | ||
beeda1d9 JJ |
7230 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7231 | case $enable_bootstrap in | |
7232 | yes) | |
7233 | bootstrap_suffix=bootstrap | |
7234 | BUILD_CONFIG=bootstrap-debug | |
7235 | ;; | |
7236 | no) | |
7237 | bootstrap_suffix=no-bootstrap | |
7238 | BUILD_CONFIG= | |
7239 | ;; | |
7240 | esac | |
7241 | ||
7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7243 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7244 | ||
7245 | ||
7246 | # Check whether --with-build-config was given. | |
7247 | if test "${with_build_config+set}" = set; then : | |
7248 | withval=$with_build_config; case $with_build_config in | |
7249 | yes) with_build_config= ;; | |
7250 | no) with_build_config= BUILD_CONFIG= ;; | |
7251 | esac | |
7252 | fi | |
7253 | ||
7254 | ||
7255 | if test "x${with_build_config}" != x; then | |
7256 | BUILD_CONFIG=$with_build_config | |
7257 | else | |
7258 | case $BUILD_CONFIG in | |
7259 | bootstrap-debug) | |
7260 | if echo "int f (void) { return 0; }" > conftest.c && | |
7261 | ${CC} -c conftest.c && | |
7262 | mv conftest.o conftest.o.g0 && | |
7263 | ${CC} -c -g conftest.c && | |
7264 | mv conftest.o conftest.o.g && | |
7265 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7266 | : | |
7267 | else | |
7268 | BUILD_CONFIG= | |
7269 | fi | |
7270 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7271 | ;; | |
7272 | esac | |
7273 | fi | |
7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7275 | $as_echo "$BUILD_CONFIG" >&6; } | |
7276 | ||
7277 | ||
7278 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7280 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7281 | # Check whether --enable-vtable-verify was given. | |
7282 | if test "${enable_vtable_verify+set}" = set; then : | |
7283 | enableval=$enable_vtable_verify; case "$enableval" in | |
7284 | yes) enable_vtable_verify=yes ;; | |
7285 | no) enable_vtable_verify=no ;; | |
7286 | *) enable_vtable_verify=no;; | |
7287 | esac | |
7288 | else | |
7289 | enable_vtable_verify=no | |
7290 | fi | |
7291 | ||
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7293 | $as_echo "$enable_vtable_verify" >&6; } | |
7294 | ||
671aa708 NN |
7295 | # Record target_configdirs and the configure arguments for target and |
7296 | # build configuration in Makefile. | |
7297 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 7298 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 7299 | bootstrap_fixincludes=no |
671aa708 | 7300 | |
ad1e5170 JR |
7301 | # If we are building libgomp, bootstrap it. |
7302 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7303 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7304 | fi | |
7305 | ||
beeda1d9 JJ |
7306 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7307 | # or bootstrap-ubsan, bootstrap it. | |
7308 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7309 | case "$BUILD_CONFIG" in | |
7310 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7311 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
9e1c8fc1 | 7312 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
7313 | ;; |
7314 | esac | |
ac8701fe L |
7315 | fi |
7316 | ||
beeda1d9 JJ |
7317 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7318 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7319 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
7320 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7321 | fi | |
7322 | ||
671aa708 NN |
7323 | # Determine whether gdb needs tk/tcl or not. |
7324 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7325 | # and in that case we want gdb to be built without tk. Ugh! | |
7326 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7327 | # so we should be able to put the 'maybe's in unconditionally and | |
7328 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7329 | # 100% sure that that's safe though. | |
e914a571 | 7330 | |
b4f96efe | 7331 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
7332 | case "$enable_gdbtk" in |
7333 | no) | |
7334 | GDB_TK="" ;; | |
e914a571 AC |
7335 | yes) |
7336 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 7337 | *) |
e914a571 AC |
7338 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7339 | # distro. Eventually someone will fix this and move Insight, nee | |
7340 | # gdbtk to a separate directory. | |
7341 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7342 | GDB_TK="${gdb_tk}" | |
7343 | else | |
7344 | GDB_TK="" | |
7345 | fi | |
7346 | ;; | |
671aa708 | 7347 | esac |
ef9db8d5 DJ |
7348 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7349 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 7350 | |
f9d09df0 TT |
7351 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
7352 | # else does, only include them if one of these is built. The Makefile | |
7353 | # provides the ordering, so it's enough here to add to the list. | |
7354 | case " ${configdirs} " in | |
7355 | *\ gdb\ *) | |
7356 | configdirs="${configdirs} gnulib gdbsupport" | |
7357 | ;; | |
7358 | *\ gdbserver\ *) | |
7359 | configdirs="${configdirs} gnulib gdbsupport" | |
7360 | ;; | |
7361 | esac | |
98e5be21 | 7362 | |
60975492 | 7363 | # Strip out unwanted targets. |
8b87bb96 NN |
7364 | |
7365 | # While at that, we remove Makefiles if we were started for recursive | |
7366 | # configuration, so that the top-level Makefile reconfigures them, | |
7367 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 7368 | |
3e54529c RW |
7369 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7370 | # but now we're fixing up the Makefile ourselves with the additional | |
7371 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7372 | # extrasub-{build,host,target} not because there is any reason to split | |
7373 | # the substitutions up that way, but only to remain below the limit of | |
7374 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
7375 | |
7376 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7377 | # configure will not warn you at all. | |
8b87bb96 | 7378 | |
79cd2b23 RW |
7379 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7380 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7381 | yes:yes:*\ gold\ *:*) | |
22e05272 | 7382 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
7383 | ;; |
7384 | esac | |
7385 | ||
3e54529c | 7386 | extrasub_build= |
23f6b2f9 | 7387 | for module in ${build_configdirs} ; do |
5607edfd PB |
7388 | if test -z "${no_recursion}" \ |
7389 | && test -f ${build_subdir}/${module}/Makefile; then | |
7390 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7391 | rm -f ${build_subdir}/${module}/Makefile | |
7392 | fi | |
3e54529c | 7393 | extrasub_build="$extrasub_build |
5607edfd PB |
7394 | /^@if build-$module\$/d |
7395 | /^@endif build-$module\$/d | |
da34ca3f | 7396 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 7397 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
7398 | /^@endif build-$module-$bootstrap_suffix\$/d |
7399 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 7400 | done |
3e54529c | 7401 | extrasub_host= |
5607edfd | 7402 | for module in ${configdirs} ; do |
a6fbc1e2 | 7403 | if test -z "${no_recursion}"; then |
f063a9ed | 7404 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
7405 | if test -f ${file}; then |
7406 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7407 | rm -f ${file} | |
7408 | fi | |
7409 | done | |
5607edfd | 7410 | fi |
9e1c8fc1 JJ |
7411 | case ${module},${bootstrap_fixincludes} in |
7412 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7413 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7414 | esac | |
3e54529c | 7415 | extrasub_host="$extrasub_host |
5607edfd PB |
7416 | /^@if $module\$/d |
7417 | /^@endif $module\$/d | |
da34ca3f | 7418 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 7419 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
7420 | /^@endif $module-$host_bootstrap_suffix\$/d |
7421 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 7422 | done |
3e54529c | 7423 | extrasub_target= |
5607edfd PB |
7424 | for module in ${target_configdirs} ; do |
7425 | if test -z "${no_recursion}" \ | |
7426 | && test -f ${target_subdir}/${module}/Makefile; then | |
7427 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7428 | rm -f ${target_subdir}/${module}/Makefile | |
7429 | fi | |
00020c16 ILT |
7430 | |
7431 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7432 | case $bootstrap_target_libs in | |
7433 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7434 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7435 | esac | |
7436 | ||
3e54529c | 7437 | extrasub_target="$extrasub_target |
5607edfd PB |
7438 | /^@if target-$module\$/d |
7439 | /^@endif target-$module\$/d | |
da34ca3f | 7440 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 7441 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
7442 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7443 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
7444 | done |
7445 | ||
3e54529c RW |
7446 | # Do the final fixup along with target modules. |
7447 | extrasub_target="$extrasub_target | |
da34ca3f AO |
7448 | /^@if /,/^@endif /d |
7449 | /^@unless /d | |
7450 | /^@endunless /d" | |
671aa708 NN |
7451 | |
7452 | # Create the serialization dependencies. This uses a temporary file. | |
7453 | ||
5213506e RW |
7454 | # Check whether --enable-serial-configure was given. |
7455 | if test "${enable_serial_configure+set}" = set; then : | |
7456 | enableval=$enable_serial_configure; | |
7457 | fi | |
ade82b16 AO |
7458 | |
7459 | ||
bf1d3e81 NN |
7460 | case ${enable_serial_configure} in |
7461 | yes) | |
7462 | enable_serial_build_configure=yes | |
7463 | enable_serial_host_configure=yes | |
7464 | enable_serial_target_configure=yes | |
7465 | ;; | |
7466 | esac | |
7467 | ||
671aa708 NN |
7468 | # These force 'configure's to be done one at a time, to avoid problems |
7469 | # with contention over a shared config.cache. | |
7470 | rm -f serdep.tmp | |
ade82b16 | 7471 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 7472 | olditem= |
bf1d3e81 | 7473 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
7474 | for item in ${build_configdirs} ; do |
7475 | case ${olditem} in | |
7476 | "") ;; | |
ade82b16 | 7477 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7478 | esac |
7479 | olditem=${item} | |
7480 | done | |
7481 | olditem= | |
bf1d3e81 | 7482 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
7483 | for item in ${configdirs} ; do |
7484 | case ${olditem} in | |
7485 | "") ;; | |
ade82b16 | 7486 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7487 | esac |
7488 | olditem=${item} | |
7489 | done | |
7490 | olditem= | |
bf1d3e81 | 7491 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
7492 | for item in ${target_configdirs} ; do |
7493 | case ${olditem} in | |
7494 | "") ;; | |
ade82b16 | 7495 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7496 | esac |
7497 | olditem=${item} | |
7498 | done | |
7499 | serialization_dependencies=serdep.tmp | |
7500 | ||
7501 | ||
ade82b16 | 7502 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 7503 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
7504 | # might not want to pass down to subconfigures. The exception being |
7505 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7506 | # files altogether, and which should be passed on to subconfigures. | |
7507 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7508 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 7509 | baseargs= |
29a63921 | 7510 | tbaseargs= |
1c710c3c DJ |
7511 | keep_next=no |
7512 | skip_next=no | |
7513 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
7514 | for ac_arg |
7515 | do | |
1c710c3c DJ |
7516 | if test X"$skip_next" = X"yes"; then |
7517 | skip_next=no | |
7518 | continue | |
7519 | fi | |
7520 | if test X"$keep_next" = X"yes"; then | |
7521 | case $ac_arg in | |
7522 | *\'*) | |
7523 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7524 | esac | |
7525 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7526 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7527 | keep_next=no |
7528 | continue | |
7529 | fi | |
7530 | ||
7531 | # Handle separated arguments. Based on the logic generated by | |
7532 | # autoconf 2.59. | |
7533 | case $ac_arg in | |
7534 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7535 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7536 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7537 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7538 | separate_arg=no | |
7539 | ;; | |
7540 | -*) | |
7541 | separate_arg=yes | |
7542 | ;; | |
7543 | *) | |
7544 | separate_arg=no | |
7545 | ;; | |
7546 | esac | |
7547 | ||
29a63921 AO |
7548 | skip_targ=no |
7549 | case $ac_arg in | |
7550 | ||
7551 | --with-* | --without-*) | |
7552 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7553 | ||
7554 | case $libopt in | |
7555 | *[-_]include) | |
7556 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7557 | ;; | |
7558 | *[-_]lib) | |
7559 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7560 | ;; | |
7561 | *) | |
7562 | lib=$libopt | |
7563 | ;; | |
7564 | esac | |
7565 | ||
7566 | ||
7567 | case $lib in | |
4a9bb2aa | 7568 | mpc | mpfr | gmp | isl) |
29a63921 AO |
7569 | # If we're processing --with-$lib, --with-$lib-include or |
7570 | # --with-$lib-lib, for one of the libs above, and target is | |
7571 | # different from host, don't pass the current argument to any | |
7572 | # target library's configure. | |
7573 | if test x$is_cross_compiler = xyes; then | |
7574 | skip_targ=yes | |
7575 | fi | |
7576 | ;; | |
7577 | esac | |
7578 | ;; | |
7579 | esac | |
7580 | ||
1c710c3c | 7581 | case "$ac_arg" in |
f1a036e4 NC |
7582 | --cache-file=/dev/null | \ |
7583 | -cache-file=/dev/null ) | |
7584 | # Handled here to avoid the test to skip args below. | |
7585 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7586 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7587 | # Assert: $separate_arg should always be no. |
7588 | keep_next=$separate_arg | |
7589 | ;; | |
1c710c3c DJ |
7590 | --no*) |
7591 | continue | |
7592 | ;; | |
7593 | --c* | \ | |
7594 | --sr* | \ | |
7595 | --ho* | \ | |
7596 | --bu* | \ | |
7597 | --t* | \ | |
7598 | --program-* | \ | |
7599 | -cache_file* | \ | |
7600 | -srcdir* | \ | |
7601 | -host* | \ | |
7602 | -build* | \ | |
7603 | -target* | \ | |
7604 | -program-prefix* | \ | |
7605 | -program-suffix* | \ | |
7606 | -program-transform-name* ) | |
7607 | skip_next=$separate_arg | |
7608 | continue | |
7609 | ;; | |
7610 | -*) | |
7611 | # An option. Add it. | |
7612 | case $ac_arg in | |
7613 | *\'*) | |
7614 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7615 | esac | |
7616 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7617 | if test X"$skip_targ" = Xno; then |
7618 | tbaseargs="$tbaseargs '$ac_arg'" | |
7619 | fi | |
1c710c3c DJ |
7620 | keep_next=$separate_arg |
7621 | ;; | |
7622 | *) | |
7623 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7624 | # pass it down; let the Makefile handle this. | |
7625 | continue | |
7626 | ;; | |
7627 | esac | |
7628 | done | |
7629 | # Remove the initial space we just introduced and, as these will be | |
7630 | # expanded by make, quote '$'. | |
7631 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7632 | |
43bb47c2 DJ |
7633 | # Add in --program-transform-name, after --program-prefix and |
7634 | # --program-suffix have been applied to it. Autoconf has already | |
7635 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7636 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7637 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7638 | # Also, because we want to override the logic in subdir configure scripts to |
7639 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7640 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7641 | ${program_transform_name} | |
7642 | EOF_SED | |
7643 | gcc_transform_name=`cat conftestsed.out` | |
7644 | rm -f conftestsed.out | |
7645 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7646 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7647 | if test "$silent" = yes; then |
7648 | baseargs="$baseargs --silent" | |
29a63921 | 7649 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7650 | fi |
0115d4a3 | 7651 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7652 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7653 | |
ffedf511 RW |
7654 | # Record and document user additions to sub configure arguments. |
7655 | ||
7656 | ||
7657 | ||
7658 | ||
671aa708 NN |
7659 | # For the build-side libraries, we just need to pretend we're native, |
7660 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
7661 | # desired. We can't even use the same cache file for all build-side |
7662 | # libraries, as they're compiled differently; some with C, some with | |
7663 | # C++ or with different feature-enabling options. | |
7664 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
7665 | |
7666 | # For host modules, accept cache file option, or specification as blank. | |
7667 | case "${cache_file}" in | |
7668 | "") # empty | |
7669 | cache_file_option="" ;; | |
7670 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7671 | cache_file_option="--cache-file=${cache_file}" ;; | |
7672 | *) # relative path | |
7673 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7674 | esac | |
7675 | ||
09438bde NN |
7676 | # Host dirs don't like to share a cache file either, horribly enough. |
7677 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7678 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7679 | |
29a63921 | 7680 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7681 | |
7682 | # Passing a --with-cross-host argument lets the target libraries know | |
7683 | # whether they are being built with a cross-compiler or being built | |
7684 | # native. However, it would be better to use other mechanisms to make the | |
7685 | # sorts of decisions they want to make on this basis. Please consider | |
7686 | # this option to be deprecated. FIXME. | |
7687 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7688 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7689 | fi |
7690 | ||
79e0604d FXC |
7691 | # Special user-friendly check for native x86_64-linux build, if |
7692 | # multilib is not explicitly enabled. | |
7693 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7694 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 7695 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
7696 | dev64=no |
7697 | echo "int main () { return 0; }" > conftest.c | |
7698 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7699 | if test $? = 0 ; then | |
7700 | if test -s conftest || test -s conftest.exe ; then | |
7701 | dev64=yes | |
7702 | fi | |
7703 | fi | |
7704 | rm -f conftest* | |
7705 | if test x${dev64} != xyes ; then | |
22e05272 | 7706 | 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 |
79e0604d FXC |
7707 | fi |
7708 | ;; | |
7709 | esac | |
7710 | ||
dc683a3f RW |
7711 | # Default to --enable-multilib. |
7712 | if test x${enable_multilib} = x ; then | |
671aa708 | 7713 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7714 | fi |
671aa708 NN |
7715 | |
7716 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7717 | # changed from the earlier setting of with_newlib. | |
7718 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7719 | target_configargs="--with-newlib ${target_configargs}" | |
7720 | fi | |
7721 | ||
6b9eb62c NN |
7722 | # Different target subdirs use different values of certain variables |
7723 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7724 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7725 | # it doesn't automatically accept command-line overrides of them. | |
7726 | # This means it's not safe for target subdirs to share a cache file, | |
7727 | # which is disgusting, but there you have it. Hopefully this can be | |
7728 | # fixed in future. It's still worthwhile to use a cache file for each | |
7729 | # directory. I think. | |
7730 | ||
bebcd931 MS |
7731 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7732 | # We need to pass --target, as newer autoconf's requires consistency | |
7733 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7734 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7735 | |
671aa708 NN |
7736 | FLAGS_FOR_TARGET= |
7737 | case " $target_configdirs " in | |
7738 | *" newlib "*) | |
7739 | case " $target_configargs " in | |
7740 | *" --with-newlib "*) | |
7741 | case "$target" in | |
5d571eaa | 7742 | *-cygwin*) |
443e6238 | 7743 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 7744 | ;; |
671aa708 NN |
7745 | esac |
7746 | ||
7747 | # If we're not building GCC, don't discard standard headers. | |
7748 | if test -d ${srcdir}/gcc; then | |
7749 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7750 | ||
7751 | if test "${build}" != "${host}"; then | |
7752 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7753 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7754 | # to it. This is right: we don't want to search that directory | |
7755 | # for binaries, but we want the header files in there, so add | |
7756 | # them explicitly. | |
0463992b | 7757 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7758 | |
7759 | # Someone might think of using the pre-installed headers on | |
7760 | # Canadian crosses, in case the installed compiler is not fully | |
7761 | # compatible with the compiler being built. In this case, it | |
7762 | # would be better to flag an error than risking having | |
7763 | # incompatible object files being constructed. We can't | |
7764 | # guarantee that an error will be flagged, but let's hope the | |
7765 | # compiler will do it, when presented with incompatible header | |
7766 | # files. | |
7767 | fi | |
7768 | fi | |
7769 | ||
7770 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7771 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7772 | # Here host == target, so we don't need to build gcc, |
7773 | # so we don't want to discard standard headers. | |
7774 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7775 | ;; | |
7776 | *) | |
7777 | # If we're building newlib, use its generic headers last, but search | |
7778 | # for any libc-related directories first (so make it the last -B | |
7779 | # switch). | |
7780 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
c03353e2 RIL |
7781 | |
7782 | # If we're building libgloss, find the startup file, simulator library | |
7783 | # and linker script. | |
7784 | case " $target_configdirs " in | |
7785 | *" libgloss "*) | |
7786 | # Look for startup file, simulator library and maybe linker script. | |
7787 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7788 | # Look for libnosys.a in case the target needs it. | |
7789 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7790 | # Most targets have the linker script in the source directory. | |
7791 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7792 | ;; | |
7793 | esac | |
671aa708 NN |
7794 | ;; |
7795 | esac | |
7796 | ;; | |
7797 | esac | |
7798 | ;; | |
7799 | esac | |
5d571eaa | 7800 | |
b91f0a41 | 7801 | case "$target" in |
5d571eaa OS |
7802 | x86_64-*mingw* | *-w64-mingw*) |
7803 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7804 | # however, use a symlink named 'mingw' in ${prefix} . | |
7805 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7806 | ;; | |
7807 | *-mingw*) | |
7808 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7809 | 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' | |
7810 | ;; | |
b91f0a41 | 7811 | esac |
671aa708 | 7812 | |
6691a79e ME |
7813 | # Allow the user to override the flags for |
7814 | # our build compiler if desired. | |
f019adc1 MF |
7815 | if test x"${build}" = x"${host}" ; then |
7816 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7817 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7818 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7819 | fi | |
6691a79e | 7820 | |
671aa708 NN |
7821 | # On Canadian crosses, we'll be searching the right directories for |
7822 | # the previously-installed cross compiler, so don't bother to add | |
7823 | # flags for directories within the install tree of the compiler | |
7824 | # being built; programs in there won't even run. | |
7825 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7826 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7827 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
671aa708 NN |
7828 | fi |
7829 | ||
7830 | if test "x${use_gnu_ld}" = x && | |
7831 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7832 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7833 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7834 | fi |
7835 | ||
e88a2c09 DD |
7836 | # Search for other target-specific linker scripts and such. |
7837 | case "${target}" in | |
3e19841a PB |
7838 | mep*) |
7839 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7840 | ;; | |
e88a2c09 DD |
7841 | esac |
7842 | ||
671aa708 | 7843 | # Makefile fragments. |
7b61653a PE |
7844 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7845 | do | |
7846 | eval fragval=\$$frag | |
7847 | if test $fragval != /dev/null; then | |
7848 | eval $frag=${srcdir}/$fragval | |
7849 | fi | |
7850 | done | |
671aa708 NN |
7851 | |
7852 | ||
7853 | ||
7854 | ||
7855 | ||
7856 | # Miscellanea: directories, flags, etc. | |
7857 | ||
7858 | ||
7859 | ||
7860 | ||
7861 | ||
7862 | ||
7863 | ||
d89f0ad6 | 7864 | |
23f6b2f9 | 7865 | # Build module lists & subconfigure args. |
671aa708 NN |
7866 | |
7867 | ||
7868 | ||
2abefe3d PB |
7869 | # Host module lists & subconfigure args. |
7870 | ||
7871 | ||
7872 | ||
aae29963 | 7873 | |
2abefe3d PB |
7874 | # Target module lists & subconfigure args. |
7875 | ||
7876 | ||
7877 | ||
7878 | # Build tools. | |
7879 | ||
7880 | ||
7881 | ||
0999159b PB |
7882 | |
7883 | ||
7884 | ||
7885 | ||
7886 | ||
7887 | ||
7888 | ||
7889 | ||
7890 | ||
7891 | ||
7892 | ||
7893 | ||
7894 | ||
b4c522fa | 7895 | |
c7c99407 | 7896 | |
2abefe3d PB |
7897 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7898 | # on the build machine. These are used if the Makefile can't locate these | |
7899 | # programs in objdir. | |
7900 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7901 | ||
7902 | for ac_prog in 'bison -y' byacc yacc | |
7903 | do | |
1c710c3c | 7904 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7905 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7907 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7908 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 7909 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7910 | else |
7911 | if test -n "$YACC"; then | |
7912 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7913 | else | |
1c710c3c DJ |
7914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7915 | for as_dir in $PATH | |
7916 | do | |
7917 | IFS=$as_save_IFS | |
7918 | test -z "$as_dir" && as_dir=. | |
5213506e | 7919 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 7921 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7923 | break 2 |
7924 | fi | |
7925 | done | |
5213506e RW |
7926 | done |
7927 | IFS=$as_save_IFS | |
1c710c3c | 7928 | |
2abefe3d PB |
7929 | fi |
7930 | fi | |
1c710c3c | 7931 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7932 | if test -n "$YACC"; then |
5213506e RW |
7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7934 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7935 | else |
5213506e RW |
7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7937 | $as_echo "no" >&6; } | |
2abefe3d PB |
7938 | fi |
7939 | ||
5213506e | 7940 | |
1c710c3c | 7941 | test -n "$YACC" && break |
2abefe3d PB |
7942 | done |
7943 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7944 | ||
7945 | case " $build_configdirs " in | |
7946 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7947 | esac |
7948 | ||
7949 | for ac_prog in bison | |
7950 | do | |
1c710c3c | 7951 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7952 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7954 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7955 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 7956 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7957 | else |
7958 | if test -n "$BISON"; then | |
7959 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7960 | else | |
1c710c3c DJ |
7961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7962 | for as_dir in $PATH | |
7963 | do | |
7964 | IFS=$as_save_IFS | |
7965 | test -z "$as_dir" && as_dir=. | |
5213506e | 7966 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 7968 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7970 | break 2 |
7971 | fi | |
7972 | done | |
5213506e RW |
7973 | done |
7974 | IFS=$as_save_IFS | |
1c710c3c | 7975 | |
2abefe3d PB |
7976 | fi |
7977 | fi | |
1c710c3c | 7978 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7979 | if test -n "$BISON"; then |
5213506e RW |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7981 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7982 | else |
5213506e RW |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7984 | $as_echo "no" >&6; } | |
2abefe3d PB |
7985 | fi |
7986 | ||
5213506e | 7987 | |
1c710c3c | 7988 | test -n "$BISON" && break |
2abefe3d PB |
7989 | done |
7990 | test -n "$BISON" || BISON="$MISSING bison" | |
7991 | ||
7992 | case " $build_configdirs " in | |
7993 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7994 | esac | |
7995 | ||
7996 | for ac_prog in gm4 gnum4 m4 | |
7997 | do | |
1c710c3c | 7998 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7999 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8001 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8002 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 8003 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8004 | else |
8005 | if test -n "$M4"; then | |
8006 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
8007 | else | |
1c710c3c DJ |
8008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8009 | for as_dir in $PATH | |
8010 | do | |
8011 | IFS=$as_save_IFS | |
8012 | test -z "$as_dir" && as_dir=. | |
5213506e | 8013 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8015 | ac_cv_prog_M4="$ac_prog" |
5213506e | 8016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8017 | break 2 |
8018 | fi | |
8019 | done | |
5213506e RW |
8020 | done |
8021 | IFS=$as_save_IFS | |
1c710c3c | 8022 | |
2abefe3d PB |
8023 | fi |
8024 | fi | |
1c710c3c | 8025 | M4=$ac_cv_prog_M4 |
2abefe3d | 8026 | if test -n "$M4"; then |
5213506e RW |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
8028 | $as_echo "$M4" >&6; } | |
2abefe3d | 8029 | else |
5213506e RW |
8030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8031 | $as_echo "no" >&6; } | |
2abefe3d PB |
8032 | fi |
8033 | ||
5213506e | 8034 | |
1c710c3c | 8035 | test -n "$M4" && break |
2abefe3d PB |
8036 | done |
8037 | test -n "$M4" || M4="$MISSING m4" | |
8038 | ||
8039 | case " $build_configdirs " in | |
8040 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
8041 | esac | |
8042 | ||
8043 | for ac_prog in flex lex | |
8044 | do | |
1c710c3c | 8045 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8046 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8048 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8049 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 8050 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8051 | else |
8052 | if test -n "$LEX"; then | |
8053 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8054 | else | |
1c710c3c DJ |
8055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8056 | for as_dir in $PATH | |
8057 | do | |
8058 | IFS=$as_save_IFS | |
8059 | test -z "$as_dir" && as_dir=. | |
5213506e | 8060 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8062 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 8063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8064 | break 2 |
8065 | fi | |
8066 | done | |
5213506e RW |
8067 | done |
8068 | IFS=$as_save_IFS | |
1c710c3c | 8069 | |
2abefe3d PB |
8070 | fi |
8071 | fi | |
1c710c3c | 8072 | LEX=$ac_cv_prog_LEX |
2abefe3d | 8073 | if test -n "$LEX"; then |
5213506e RW |
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
8075 | $as_echo "$LEX" >&6; } | |
2abefe3d | 8076 | else |
5213506e RW |
8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8078 | $as_echo "no" >&6; } | |
2abefe3d PB |
8079 | fi |
8080 | ||
5213506e | 8081 | |
1c710c3c | 8082 | test -n "$LEX" && break |
2abefe3d PB |
8083 | done |
8084 | test -n "$LEX" || LEX="$MISSING flex" | |
8085 | ||
8086 | case " $build_configdirs " in | |
8087 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8088 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
8089 | esac | |
8090 | ||
8091 | for ac_prog in flex | |
8092 | do | |
1c710c3c | 8093 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8094 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8096 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8097 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 8098 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8099 | else |
8100 | if test -n "$FLEX"; then | |
8101 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
8102 | else | |
1c710c3c DJ |
8103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8104 | for as_dir in $PATH | |
8105 | do | |
8106 | IFS=$as_save_IFS | |
8107 | test -z "$as_dir" && as_dir=. | |
5213506e | 8108 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8110 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 8111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8112 | break 2 |
8113 | fi | |
8114 | done | |
5213506e RW |
8115 | done |
8116 | IFS=$as_save_IFS | |
1c710c3c | 8117 | |
2abefe3d PB |
8118 | fi |
8119 | fi | |
1c710c3c | 8120 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 8121 | if test -n "$FLEX"; then |
5213506e RW |
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
8123 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 8124 | else |
5213506e RW |
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8126 | $as_echo "no" >&6; } | |
2abefe3d PB |
8127 | fi |
8128 | ||
5213506e | 8129 | |
1c710c3c | 8130 | test -n "$FLEX" && break |
2abefe3d PB |
8131 | done |
8132 | test -n "$FLEX" || FLEX="$MISSING flex" | |
8133 | ||
8134 | case " $build_configdirs " in | |
8135 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8136 | esac | |
8137 | ||
8138 | for ac_prog in makeinfo | |
8139 | do | |
1c710c3c | 8140 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8141 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8143 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8144 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 8145 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8146 | else |
8147 | if test -n "$MAKEINFO"; then | |
8148 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8149 | else | |
1c710c3c DJ |
8150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8151 | for as_dir in $PATH | |
8152 | do | |
8153 | IFS=$as_save_IFS | |
8154 | test -z "$as_dir" && as_dir=. | |
5213506e | 8155 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8156 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8157 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 8158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8159 | break 2 |
8160 | fi | |
8161 | done | |
5213506e RW |
8162 | done |
8163 | IFS=$as_save_IFS | |
1c710c3c | 8164 | |
2abefe3d PB |
8165 | fi |
8166 | fi | |
1c710c3c | 8167 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 8168 | if test -n "$MAKEINFO"; then |
5213506e RW |
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8170 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 8171 | else |
5213506e RW |
8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8173 | $as_echo "no" >&6; } | |
2abefe3d PB |
8174 | fi |
8175 | ||
5213506e | 8176 | |
1c710c3c | 8177 | test -n "$MAKEINFO" && break |
2abefe3d PB |
8178 | done |
8179 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8180 | ||
8181 | case " $build_configdirs " in | |
8182 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8183 | *) | |
8184 | ||
d18ff35a | 8185 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
8186 | # higher, else we use the "missing" dummy. |
8187 | if ${MAKEINFO} --version \ | |
d18ff35a | 8188 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
8189 | : |
8190 | else | |
8191 | MAKEINFO="$MISSING makeinfo" | |
8192 | fi | |
8193 | ;; | |
8194 | ||
8195 | esac | |
671aa708 | 8196 | |
2abefe3d | 8197 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 8198 | |
2abefe3d PB |
8199 | for ac_prog in expect |
8200 | do | |
1c710c3c | 8201 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8202 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8204 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8205 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 8206 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8207 | else |
8208 | if test -n "$EXPECT"; then | |
8209 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8210 | else | |
1c710c3c DJ |
8211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8212 | for as_dir in $PATH | |
8213 | do | |
8214 | IFS=$as_save_IFS | |
8215 | test -z "$as_dir" && as_dir=. | |
5213506e | 8216 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8217 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8218 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 8219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8220 | break 2 |
8221 | fi | |
8222 | done | |
5213506e RW |
8223 | done |
8224 | IFS=$as_save_IFS | |
1c710c3c | 8225 | |
2abefe3d PB |
8226 | fi |
8227 | fi | |
1c710c3c | 8228 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 8229 | if test -n "$EXPECT"; then |
5213506e RW |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8231 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 8232 | else |
5213506e RW |
8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8234 | $as_echo "no" >&6; } | |
2abefe3d | 8235 | fi |
671aa708 | 8236 | |
5213506e | 8237 | |
1c710c3c | 8238 | test -n "$EXPECT" && break |
2abefe3d PB |
8239 | done |
8240 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 8241 | |
2abefe3d PB |
8242 | case " $configdirs " in |
8243 | *" expect "*) | |
8244 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8245 | ;; | |
8246 | esac | |
671aa708 | 8247 | |
2abefe3d PB |
8248 | for ac_prog in runtest |
8249 | do | |
1c710c3c | 8250 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8251 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8253 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8254 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 8255 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8256 | else |
8257 | if test -n "$RUNTEST"; then | |
8258 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 8259 | else |
1c710c3c DJ |
8260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8261 | for as_dir in $PATH | |
8262 | do | |
8263 | IFS=$as_save_IFS | |
8264 | test -z "$as_dir" && as_dir=. | |
5213506e | 8265 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8267 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 8268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8269 | break 2 |
8270 | fi | |
8271 | done | |
5213506e RW |
8272 | done |
8273 | IFS=$as_save_IFS | |
1c710c3c | 8274 | |
2abefe3d PB |
8275 | fi |
8276 | fi | |
1c710c3c | 8277 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 8278 | if test -n "$RUNTEST"; then |
5213506e RW |
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8280 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 8281 | else |
5213506e RW |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8283 | $as_echo "no" >&6; } | |
2abefe3d | 8284 | fi |
671aa708 | 8285 | |
5213506e | 8286 | |
1c710c3c | 8287 | test -n "$RUNTEST" && break |
2abefe3d PB |
8288 | done |
8289 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 8290 | |
2abefe3d PB |
8291 | case " $configdirs " in |
8292 | *" dejagnu "*) | |
c394e891 | 8293 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
8294 | ;; |
8295 | esac | |
671aa708 NN |
8296 | |
8297 | ||
671aa708 | 8298 | # Host tools. |
ca9f4b81 AO |
8299 | ncn_tool_prefix= |
8300 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8301 | ncn_target_tool_prefix= | |
8302 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8303 | ||
278a7a38 AO |
8304 | |
8305 | ||
8306 | if test -n "$AR"; then | |
8307 | ac_cv_prog_AR=$AR | |
8308 | elif test -n "$ac_cv_prog_AR"; then | |
8309 | AR=$ac_cv_prog_AR | |
8310 | fi | |
8311 | ||
8312 | if test -n "$ac_cv_prog_AR"; then | |
8313 | for ncn_progname in ar; do | |
8314 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8315 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8317 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8318 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 8319 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8320 | else |
8321 | if test -n "$AR"; then | |
8322 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8323 | else | |
8324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8325 | for as_dir in $PATH | |
8326 | do | |
8327 | IFS=$as_save_IFS | |
8328 | test -z "$as_dir" && as_dir=. | |
5213506e | 8329 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8331 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8333 | break 2 |
8334 | fi | |
8335 | done | |
5213506e RW |
8336 | done |
8337 | IFS=$as_save_IFS | |
278a7a38 AO |
8338 | |
8339 | fi | |
8340 | fi | |
8341 | AR=$ac_cv_prog_AR | |
8342 | if test -n "$AR"; then | |
5213506e RW |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8344 | $as_echo "$AR" >&6; } | |
278a7a38 | 8345 | else |
5213506e RW |
8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8347 | $as_echo "no" >&6; } | |
278a7a38 AO |
8348 | fi |
8349 | ||
5213506e | 8350 | |
278a7a38 AO |
8351 | done |
8352 | fi | |
8353 | ||
8354 | for ncn_progname in ar; do | |
2693c0b0 PB |
8355 | if test -n "$ncn_tool_prefix"; then |
8356 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8357 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8359 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8360 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 8361 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8362 | else |
8363 | if test -n "$AR"; then | |
8364 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8365 | else | |
1c710c3c DJ |
8366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8367 | for as_dir in $PATH | |
8368 | do | |
8369 | IFS=$as_save_IFS | |
8370 | test -z "$as_dir" && as_dir=. | |
5213506e | 8371 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8373 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8375 | break 2 |
8376 | fi | |
8377 | done | |
5213506e RW |
8378 | done |
8379 | IFS=$as_save_IFS | |
1c710c3c | 8380 | |
ca9f4b81 AO |
8381 | fi |
8382 | fi | |
1c710c3c | 8383 | AR=$ac_cv_prog_AR |
ca9f4b81 | 8384 | if test -n "$AR"; then |
5213506e RW |
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8386 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8387 | else |
5213506e RW |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8389 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8390 | fi |
8391 | ||
5213506e | 8392 | |
2693c0b0 PB |
8393 | fi |
8394 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8396 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8398 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8399 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 8400 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8401 | else |
2693c0b0 | 8402 | if test -n "$AR"; then |
af71363e AS |
8403 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8404 | else | |
1c710c3c DJ |
8405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8406 | for as_dir in $PATH | |
8407 | do | |
8408 | IFS=$as_save_IFS | |
8409 | test -z "$as_dir" && as_dir=. | |
5213506e | 8410 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8412 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8414 | break 2 |
8415 | fi | |
8416 | done | |
5213506e RW |
8417 | done |
8418 | IFS=$as_save_IFS | |
1c710c3c | 8419 | |
ca9f4b81 AO |
8420 | fi |
8421 | fi | |
1c710c3c | 8422 | AR=$ac_cv_prog_AR |
2693c0b0 | 8423 | if test -n "$AR"; then |
5213506e RW |
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8425 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8426 | else |
5213506e RW |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8428 | $as_echo "no" >&6; } | |
ca9f4b81 | 8429 | fi |
1c710c3c | 8430 | |
5213506e | 8431 | |
2693c0b0 PB |
8432 | fi |
8433 | test -n "$ac_cv_prog_AR" && break | |
8434 | done | |
8435 | ||
8436 | if test -z "$ac_cv_prog_AR" ; then | |
8437 | set dummy ar | |
8438 | if test $build = $host ; then | |
8439 | AR="$2" | |
ca9f4b81 | 8440 | else |
2693c0b0 | 8441 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 8442 | fi |
ca9f4b81 AO |
8443 | fi |
8444 | ||
278a7a38 AO |
8445 | |
8446 | ||
8447 | if test -n "$AS"; then | |
8448 | ac_cv_prog_AS=$AS | |
8449 | elif test -n "$ac_cv_prog_AS"; then | |
8450 | AS=$ac_cv_prog_AS | |
8451 | fi | |
8452 | ||
8453 | if test -n "$ac_cv_prog_AS"; then | |
8454 | for ncn_progname in as; do | |
8455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8456 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8458 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8459 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 8460 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8461 | else |
8462 | if test -n "$AS"; then | |
8463 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8464 | else | |
8465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8466 | for as_dir in $PATH | |
8467 | do | |
8468 | IFS=$as_save_IFS | |
8469 | test -z "$as_dir" && as_dir=. | |
5213506e | 8470 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8472 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8474 | break 2 |
8475 | fi | |
8476 | done | |
5213506e RW |
8477 | done |
8478 | IFS=$as_save_IFS | |
278a7a38 AO |
8479 | |
8480 | fi | |
8481 | fi | |
8482 | AS=$ac_cv_prog_AS | |
8483 | if test -n "$AS"; then | |
5213506e RW |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8485 | $as_echo "$AS" >&6; } | |
278a7a38 | 8486 | else |
5213506e RW |
8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8488 | $as_echo "no" >&6; } | |
278a7a38 AO |
8489 | fi |
8490 | ||
5213506e | 8491 | |
278a7a38 AO |
8492 | done |
8493 | fi | |
8494 | ||
8495 | for ncn_progname in as; do | |
2693c0b0 PB |
8496 | if test -n "$ncn_tool_prefix"; then |
8497 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8498 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8500 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8501 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 8502 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8503 | else |
8504 | if test -n "$AS"; then | |
8505 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 8506 | else |
1c710c3c DJ |
8507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8508 | for as_dir in $PATH | |
8509 | do | |
8510 | IFS=$as_save_IFS | |
8511 | test -z "$as_dir" && as_dir=. | |
5213506e | 8512 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8514 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8516 | break 2 |
8517 | fi | |
8518 | done | |
5213506e RW |
8519 | done |
8520 | IFS=$as_save_IFS | |
1c710c3c | 8521 | |
ca9f4b81 AO |
8522 | fi |
8523 | fi | |
1c710c3c | 8524 | AS=$ac_cv_prog_AS |
ca9f4b81 | 8525 | if test -n "$AS"; then |
5213506e RW |
8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8527 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8528 | else |
5213506e RW |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8530 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8531 | fi |
8532 | ||
5213506e | 8533 | |
2693c0b0 PB |
8534 | fi |
8535 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8536 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8537 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8539 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8540 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 8541 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8542 | else |
2693c0b0 PB |
8543 | if test -n "$AS"; then |
8544 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8545 | else |
1c710c3c DJ |
8546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8547 | for as_dir in $PATH | |
8548 | do | |
8549 | IFS=$as_save_IFS | |
8550 | test -z "$as_dir" && as_dir=. | |
5213506e | 8551 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8553 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8555 | break 2 |
8556 | fi | |
8557 | done | |
5213506e RW |
8558 | done |
8559 | IFS=$as_save_IFS | |
1c710c3c | 8560 | |
ca9f4b81 AO |
8561 | fi |
8562 | fi | |
1c710c3c | 8563 | AS=$ac_cv_prog_AS |
2693c0b0 | 8564 | if test -n "$AS"; then |
5213506e RW |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8566 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8567 | else |
5213506e RW |
8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8569 | $as_echo "no" >&6; } | |
ca9f4b81 | 8570 | fi |
1c710c3c | 8571 | |
5213506e | 8572 | |
2693c0b0 PB |
8573 | fi |
8574 | test -n "$ac_cv_prog_AS" && break | |
8575 | done | |
8576 | ||
8577 | if test -z "$ac_cv_prog_AS" ; then | |
8578 | set dummy as | |
8579 | if test $build = $host ; then | |
8580 | AS="$2" | |
ca9f4b81 | 8581 | else |
2693c0b0 | 8582 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8583 | fi |
ca9f4b81 AO |
8584 | fi |
8585 | ||
278a7a38 AO |
8586 | |
8587 | ||
8588 | if test -n "$DLLTOOL"; then | |
8589 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8590 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8591 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8592 | fi | |
8593 | ||
8594 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8595 | for ncn_progname in dlltool; do | |
8596 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8597 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8599 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8600 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 8601 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8602 | else |
8603 | if test -n "$DLLTOOL"; then | |
8604 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8605 | else | |
8606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8607 | for as_dir in $PATH | |
8608 | do | |
8609 | IFS=$as_save_IFS | |
8610 | test -z "$as_dir" && as_dir=. | |
5213506e | 8611 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8612 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8613 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8615 | break 2 |
8616 | fi | |
8617 | done | |
5213506e RW |
8618 | done |
8619 | IFS=$as_save_IFS | |
278a7a38 AO |
8620 | |
8621 | fi | |
8622 | fi | |
8623 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8624 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8626 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8627 | else |
5213506e RW |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8629 | $as_echo "no" >&6; } | |
278a7a38 AO |
8630 | fi |
8631 | ||
5213506e | 8632 | |
278a7a38 AO |
8633 | done |
8634 | fi | |
8635 | ||
8636 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8637 | if test -n "$ncn_tool_prefix"; then |
8638 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8639 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8641 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8642 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 8643 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8644 | else |
8645 | if test -n "$DLLTOOL"; then | |
8646 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8647 | else | |
1c710c3c DJ |
8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
5213506e | 8653 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8655 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8657 | break 2 |
8658 | fi | |
8659 | done | |
5213506e RW |
8660 | done |
8661 | IFS=$as_save_IFS | |
1c710c3c | 8662 | |
ca9f4b81 AO |
8663 | fi |
8664 | fi | |
1c710c3c | 8665 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8666 | if test -n "$DLLTOOL"; then |
5213506e RW |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8668 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8669 | else |
5213506e RW |
8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8671 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8672 | fi |
8673 | ||
5213506e | 8674 | |
2693c0b0 PB |
8675 | fi |
8676 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8677 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8678 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8680 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8681 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 8682 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8683 | else |
2693c0b0 PB |
8684 | if test -n "$DLLTOOL"; then |
8685 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8686 | else |
1c710c3c DJ |
8687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8688 | for as_dir in $PATH | |
8689 | do | |
8690 | IFS=$as_save_IFS | |
8691 | test -z "$as_dir" && as_dir=. | |
5213506e | 8692 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8694 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8696 | break 2 |
8697 | fi | |
8698 | done | |
5213506e RW |
8699 | done |
8700 | IFS=$as_save_IFS | |
1c710c3c | 8701 | |
ca9f4b81 AO |
8702 | fi |
8703 | fi | |
1c710c3c | 8704 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8705 | if test -n "$DLLTOOL"; then |
5213506e RW |
8706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8707 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8708 | else |
5213506e RW |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8710 | $as_echo "no" >&6; } | |
ca9f4b81 | 8711 | fi |
1c710c3c | 8712 | |
5213506e | 8713 | |
2693c0b0 PB |
8714 | fi |
8715 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8716 | done | |
8717 | ||
8718 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8719 | set dummy dlltool | |
8720 | if test $build = $host ; then | |
8721 | DLLTOOL="$2" | |
ca9f4b81 | 8722 | else |
2693c0b0 | 8723 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8724 | fi |
ca9f4b81 AO |
8725 | fi |
8726 | ||
278a7a38 AO |
8727 | |
8728 | ||
c7c99407 IS |
8729 | if test -n "$DSYMUTIL"; then |
8730 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
8731 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
8732 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8733 | fi | |
8734 | ||
8735 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
8736 | for ncn_progname in dsymutil; do | |
8737 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8738 | set dummy ${ncn_progname}; ac_word=$2 | |
8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8740 | $as_echo_n "checking for $ac_word... " >&6; } | |
8741 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
8742 | $as_echo_n "(cached) " >&6 | |
8743 | else | |
8744 | if test -n "$DSYMUTIL"; then | |
8745 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8746 | else | |
8747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8748 | for as_dir in $PATH | |
8749 | do | |
8750 | IFS=$as_save_IFS | |
8751 | test -z "$as_dir" && as_dir=. | |
8752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8753 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8754 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
8755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8756 | break 2 | |
8757 | fi | |
8758 | done | |
8759 | done | |
8760 | IFS=$as_save_IFS | |
8761 | ||
8762 | fi | |
8763 | fi | |
8764 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8765 | if test -n "$DSYMUTIL"; then | |
8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8767 | $as_echo "$DSYMUTIL" >&6; } | |
8768 | else | |
8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8770 | $as_echo "no" >&6; } | |
8771 | fi | |
8772 | ||
8773 | ||
8774 | done | |
8775 | fi | |
8776 | ||
8777 | for ncn_progname in dsymutil; do | |
8778 | if test -n "$ncn_tool_prefix"; then | |
8779 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8780 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8782 | $as_echo_n "checking for $ac_word... " >&6; } | |
8783 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
8784 | $as_echo_n "(cached) " >&6 | |
8785 | else | |
8786 | if test -n "$DSYMUTIL"; then | |
8787 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8788 | else | |
8789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8790 | for as_dir in $PATH | |
8791 | do | |
8792 | IFS=$as_save_IFS | |
8793 | test -z "$as_dir" && as_dir=. | |
8794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8796 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
8797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8798 | break 2 | |
8799 | fi | |
8800 | done | |
8801 | done | |
8802 | IFS=$as_save_IFS | |
8803 | ||
8804 | fi | |
8805 | fi | |
8806 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8807 | if test -n "$DSYMUTIL"; then | |
8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8809 | $as_echo "$DSYMUTIL" >&6; } | |
8810 | else | |
8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8812 | $as_echo "no" >&6; } | |
8813 | fi | |
8814 | ||
8815 | ||
8816 | fi | |
8817 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
8818 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8819 | set dummy ${ncn_progname}; ac_word=$2 | |
8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8821 | $as_echo_n "checking for $ac_word... " >&6; } | |
8822 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
8823 | $as_echo_n "(cached) " >&6 | |
8824 | else | |
8825 | if test -n "$DSYMUTIL"; then | |
8826 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8827 | else | |
8828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8829 | for as_dir in $PATH | |
8830 | do | |
8831 | IFS=$as_save_IFS | |
8832 | test -z "$as_dir" && as_dir=. | |
8833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8835 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
8836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8837 | break 2 | |
8838 | fi | |
8839 | done | |
8840 | done | |
8841 | IFS=$as_save_IFS | |
8842 | ||
8843 | fi | |
8844 | fi | |
8845 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8846 | if test -n "$DSYMUTIL"; then | |
8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8848 | $as_echo "$DSYMUTIL" >&6; } | |
8849 | else | |
8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8851 | $as_echo "no" >&6; } | |
8852 | fi | |
8853 | ||
8854 | ||
8855 | fi | |
8856 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
8857 | done | |
8858 | ||
8859 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
8860 | set dummy dsymutil | |
8861 | if test $build = $host ; then | |
8862 | DSYMUTIL="$2" | |
8863 | else | |
8864 | DSYMUTIL="${ncn_tool_prefix}$2" | |
8865 | fi | |
8866 | fi | |
8867 | ||
8868 | ||
8869 | ||
278a7a38 AO |
8870 | if test -n "$LD"; then |
8871 | ac_cv_prog_LD=$LD | |
8872 | elif test -n "$ac_cv_prog_LD"; then | |
8873 | LD=$ac_cv_prog_LD | |
8874 | fi | |
8875 | ||
8876 | if test -n "$ac_cv_prog_LD"; then | |
8877 | for ncn_progname in ld; do | |
8878 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8879 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8881 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8882 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 8883 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8884 | else |
8885 | if test -n "$LD"; then | |
8886 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8887 | else | |
8888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8889 | for as_dir in $PATH | |
8890 | do | |
8891 | IFS=$as_save_IFS | |
8892 | test -z "$as_dir" && as_dir=. | |
5213506e | 8893 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8895 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8897 | break 2 |
8898 | fi | |
8899 | done | |
5213506e RW |
8900 | done |
8901 | IFS=$as_save_IFS | |
278a7a38 AO |
8902 | |
8903 | fi | |
8904 | fi | |
8905 | LD=$ac_cv_prog_LD | |
8906 | if test -n "$LD"; then | |
5213506e RW |
8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8908 | $as_echo "$LD" >&6; } | |
278a7a38 | 8909 | else |
5213506e RW |
8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8911 | $as_echo "no" >&6; } | |
278a7a38 AO |
8912 | fi |
8913 | ||
5213506e | 8914 | |
278a7a38 AO |
8915 | done |
8916 | fi | |
8917 | ||
8918 | for ncn_progname in ld; do | |
2693c0b0 PB |
8919 | if test -n "$ncn_tool_prefix"; then |
8920 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8921 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8923 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8924 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 8925 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8926 | else |
8927 | if test -n "$LD"; then | |
8928 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8929 | else | |
1c710c3c DJ |
8930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8931 | for as_dir in $PATH | |
8932 | do | |
8933 | IFS=$as_save_IFS | |
8934 | test -z "$as_dir" && as_dir=. | |
5213506e | 8935 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8937 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8939 | break 2 |
8940 | fi | |
8941 | done | |
5213506e RW |
8942 | done |
8943 | IFS=$as_save_IFS | |
1c710c3c | 8944 | |
ca9f4b81 AO |
8945 | fi |
8946 | fi | |
1c710c3c | 8947 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8948 | if test -n "$LD"; then |
5213506e RW |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8950 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8951 | else |
5213506e RW |
8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8953 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8954 | fi |
8955 | ||
5213506e | 8956 | |
2693c0b0 PB |
8957 | fi |
8958 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8959 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8960 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8962 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8963 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 8964 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8965 | else |
2693c0b0 PB |
8966 | if test -n "$LD"; then |
8967 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8968 | else |
1c710c3c DJ |
8969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8970 | for as_dir in $PATH | |
8971 | do | |
8972 | IFS=$as_save_IFS | |
8973 | test -z "$as_dir" && as_dir=. | |
5213506e | 8974 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8975 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8976 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8978 | break 2 |
8979 | fi | |
8980 | done | |
5213506e RW |
8981 | done |
8982 | IFS=$as_save_IFS | |
1c710c3c | 8983 | |
ca9f4b81 AO |
8984 | fi |
8985 | fi | |
1c710c3c | 8986 | LD=$ac_cv_prog_LD |
2693c0b0 | 8987 | if test -n "$LD"; then |
5213506e RW |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8989 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8990 | else |
5213506e RW |
8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8992 | $as_echo "no" >&6; } | |
ca9f4b81 | 8993 | fi |
1c710c3c | 8994 | |
5213506e | 8995 | |
2693c0b0 PB |
8996 | fi |
8997 | test -n "$ac_cv_prog_LD" && break | |
8998 | done | |
8999 | ||
9000 | if test -z "$ac_cv_prog_LD" ; then | |
9001 | set dummy ld | |
9002 | if test $build = $host ; then | |
9003 | LD="$2" | |
ca9f4b81 | 9004 | else |
2693c0b0 | 9005 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 9006 | fi |
ca9f4b81 AO |
9007 | fi |
9008 | ||
278a7a38 AO |
9009 | |
9010 | ||
9011 | if test -n "$LIPO"; then | |
9012 | ac_cv_prog_LIPO=$LIPO | |
9013 | elif test -n "$ac_cv_prog_LIPO"; then | |
9014 | LIPO=$ac_cv_prog_LIPO | |
9015 | fi | |
9016 | ||
9017 | if test -n "$ac_cv_prog_LIPO"; then | |
9018 | for ncn_progname in lipo; do | |
9019 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9020 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9022 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9023 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 9024 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9025 | else |
9026 | if test -n "$LIPO"; then | |
9027 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9028 | else | |
9029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9030 | for as_dir in $PATH | |
9031 | do | |
9032 | IFS=$as_save_IFS | |
9033 | test -z "$as_dir" && as_dir=. | |
5213506e | 9034 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9036 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 9037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9038 | break 2 |
9039 | fi | |
9040 | done | |
5213506e RW |
9041 | done |
9042 | IFS=$as_save_IFS | |
278a7a38 AO |
9043 | |
9044 | fi | |
9045 | fi | |
9046 | LIPO=$ac_cv_prog_LIPO | |
9047 | if test -n "$LIPO"; then | |
5213506e RW |
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9049 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 9050 | else |
5213506e RW |
9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9052 | $as_echo "no" >&6; } | |
278a7a38 AO |
9053 | fi |
9054 | ||
5213506e | 9055 | |
278a7a38 AO |
9056 | done |
9057 | fi | |
9058 | ||
9059 | for ncn_progname in lipo; do | |
2abefe3d PB |
9060 | if test -n "$ncn_tool_prefix"; then |
9061 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9062 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9064 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9065 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 9066 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9067 | else |
9068 | if test -n "$LIPO"; then | |
9069 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9070 | else | |
1c710c3c DJ |
9071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9072 | for as_dir in $PATH | |
9073 | do | |
9074 | IFS=$as_save_IFS | |
9075 | test -z "$as_dir" && as_dir=. | |
5213506e | 9076 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9078 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9080 | break 2 |
9081 | fi | |
9082 | done | |
5213506e RW |
9083 | done |
9084 | IFS=$as_save_IFS | |
1c710c3c | 9085 | |
2abefe3d PB |
9086 | fi |
9087 | fi | |
1c710c3c | 9088 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 9089 | if test -n "$LIPO"; then |
5213506e RW |
9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9091 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 9092 | else |
5213506e RW |
9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9094 | $as_echo "no" >&6; } | |
2abefe3d PB |
9095 | fi |
9096 | ||
5213506e | 9097 | |
2abefe3d PB |
9098 | fi |
9099 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
9100 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9101 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9103 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9104 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 9105 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9106 | else |
9107 | if test -n "$LIPO"; then | |
9108 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9109 | else | |
1c710c3c DJ |
9110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9111 | for as_dir in $PATH | |
9112 | do | |
9113 | IFS=$as_save_IFS | |
9114 | test -z "$as_dir" && as_dir=. | |
5213506e | 9115 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9117 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 9118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9119 | break 2 |
9120 | fi | |
9121 | done | |
5213506e RW |
9122 | done |
9123 | IFS=$as_save_IFS | |
1c710c3c | 9124 | |
2abefe3d PB |
9125 | fi |
9126 | fi | |
1c710c3c | 9127 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 9128 | if test -n "$LIPO"; then |
5213506e RW |
9129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9130 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 9131 | else |
5213506e RW |
9132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9133 | $as_echo "no" >&6; } | |
2abefe3d | 9134 | fi |
1c710c3c | 9135 | |
5213506e | 9136 | |
2abefe3d PB |
9137 | fi |
9138 | test -n "$ac_cv_prog_LIPO" && break | |
9139 | done | |
9140 | ||
9141 | if test -z "$ac_cv_prog_LIPO" ; then | |
9142 | set dummy lipo | |
9143 | if test $build = $host ; then | |
9144 | LIPO="$2" | |
9145 | else | |
9146 | LIPO="${ncn_tool_prefix}$2" | |
9147 | fi | |
9148 | fi | |
9149 | ||
278a7a38 AO |
9150 | |
9151 | ||
9152 | if test -n "$NM"; then | |
9153 | ac_cv_prog_NM=$NM | |
9154 | elif test -n "$ac_cv_prog_NM"; then | |
9155 | NM=$ac_cv_prog_NM | |
9156 | fi | |
9157 | ||
9158 | if test -n "$ac_cv_prog_NM"; then | |
9159 | for ncn_progname in nm; do | |
9160 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9161 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9163 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9164 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 9165 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9166 | else |
9167 | if test -n "$NM"; then | |
9168 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9169 | else | |
1c710c3c DJ |
9170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9171 | for as_dir in $PATH | |
9172 | do | |
9173 | IFS=$as_save_IFS | |
9174 | test -z "$as_dir" && as_dir=. | |
5213506e | 9175 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9177 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 9178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9179 | break 2 |
9180 | fi | |
9181 | done | |
5213506e RW |
9182 | done |
9183 | IFS=$as_save_IFS | |
1c710c3c | 9184 | |
ca9f4b81 AO |
9185 | fi |
9186 | fi | |
1c710c3c | 9187 | NM=$ac_cv_prog_NM |
ca9f4b81 | 9188 | if test -n "$NM"; then |
5213506e RW |
9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9190 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 9191 | else |
5213506e RW |
9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9193 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9194 | fi |
9195 | ||
5213506e | 9196 | |
278a7a38 AO |
9197 | done |
9198 | fi | |
9199 | ||
9200 | for ncn_progname in nm; do | |
9201 | if test -n "$ncn_tool_prefix"; then | |
9202 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9203 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9205 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9206 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 9207 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9208 | else |
2693c0b0 PB |
9209 | if test -n "$NM"; then |
9210 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 9211 | else |
1c710c3c DJ |
9212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9213 | for as_dir in $PATH | |
9214 | do | |
9215 | IFS=$as_save_IFS | |
9216 | test -z "$as_dir" && as_dir=. | |
5213506e | 9217 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9219 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9221 | break 2 |
9222 | fi | |
9223 | done | |
5213506e RW |
9224 | done |
9225 | IFS=$as_save_IFS | |
1c710c3c | 9226 | |
ca9f4b81 AO |
9227 | fi |
9228 | fi | |
1c710c3c | 9229 | NM=$ac_cv_prog_NM |
2693c0b0 | 9230 | if test -n "$NM"; then |
5213506e RW |
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9232 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 9233 | else |
5213506e RW |
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9235 | $as_echo "no" >&6; } | |
ca9f4b81 | 9236 | fi |
1c710c3c | 9237 | |
5213506e | 9238 | |
2693c0b0 | 9239 | fi |
278a7a38 AO |
9240 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
9241 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9242 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9244 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9245 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 9246 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9247 | else |
9248 | if test -n "$NM"; then | |
9249 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9250 | else | |
9251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9252 | for as_dir in $PATH | |
9253 | do | |
9254 | IFS=$as_save_IFS | |
9255 | test -z "$as_dir" && as_dir=. | |
5213506e | 9256 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9258 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 9259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9260 | break 2 |
9261 | fi | |
9262 | done | |
5213506e RW |
9263 | done |
9264 | IFS=$as_save_IFS | |
278a7a38 AO |
9265 | |
9266 | fi | |
9267 | fi | |
9268 | NM=$ac_cv_prog_NM | |
9269 | if test -n "$NM"; then | |
5213506e RW |
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9271 | $as_echo "$NM" >&6; } | |
278a7a38 | 9272 | else |
5213506e RW |
9273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9274 | $as_echo "no" >&6; } | |
278a7a38 AO |
9275 | fi |
9276 | ||
5213506e | 9277 | |
278a7a38 AO |
9278 | fi |
9279 | test -n "$ac_cv_prog_NM" && break | |
9280 | done | |
9281 | ||
9282 | if test -z "$ac_cv_prog_NM" ; then | |
9283 | set dummy nm | |
9284 | if test $build = $host ; then | |
9285 | NM="$2" | |
9286 | else | |
9287 | NM="${ncn_tool_prefix}$2" | |
9288 | fi | |
9289 | fi | |
9290 | ||
9291 | ||
9292 | ||
9293 | if test -n "$RANLIB"; then | |
9294 | ac_cv_prog_RANLIB=$RANLIB | |
9295 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9296 | RANLIB=$ac_cv_prog_RANLIB | |
9297 | fi | |
9298 | ||
9299 | if test -n "$ac_cv_prog_RANLIB"; then | |
9300 | for ncn_progname in ranlib; do | |
9301 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9302 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9304 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9305 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 9306 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9307 | else |
9308 | if test -n "$RANLIB"; then | |
9309 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9310 | else | |
9311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9312 | for as_dir in $PATH | |
9313 | do | |
9314 | IFS=$as_save_IFS | |
9315 | test -z "$as_dir" && as_dir=. | |
5213506e | 9316 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9318 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 9319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9320 | break 2 |
9321 | fi | |
9322 | done | |
5213506e RW |
9323 | done |
9324 | IFS=$as_save_IFS | |
278a7a38 AO |
9325 | |
9326 | fi | |
9327 | fi | |
9328 | RANLIB=$ac_cv_prog_RANLIB | |
9329 | if test -n "$RANLIB"; then | |
5213506e RW |
9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9331 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 9332 | else |
5213506e RW |
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9334 | $as_echo "no" >&6; } | |
278a7a38 AO |
9335 | fi |
9336 | ||
5213506e | 9337 | |
278a7a38 AO |
9338 | done |
9339 | fi | |
ca9f4b81 | 9340 | |
278a7a38 | 9341 | for ncn_progname in ranlib; do |
2693c0b0 PB |
9342 | if test -n "$ncn_tool_prefix"; then |
9343 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9344 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9346 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9347 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 9348 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9349 | else |
9350 | if test -n "$RANLIB"; then | |
9351 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9352 | else | |
1c710c3c DJ |
9353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9354 | for as_dir in $PATH | |
9355 | do | |
9356 | IFS=$as_save_IFS | |
9357 | test -z "$as_dir" && as_dir=. | |
5213506e | 9358 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9359 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9360 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9362 | break 2 |
9363 | fi | |
9364 | done | |
5213506e RW |
9365 | done |
9366 | IFS=$as_save_IFS | |
1c710c3c | 9367 | |
ca9f4b81 AO |
9368 | fi |
9369 | fi | |
1c710c3c | 9370 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 9371 | if test -n "$RANLIB"; then |
5213506e RW |
9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9373 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9374 | else |
5213506e RW |
9375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9376 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9377 | fi |
9378 | ||
5213506e | 9379 | |
2693c0b0 PB |
9380 | fi |
9381 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9382 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9383 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9385 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9386 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 9387 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9388 | else |
2693c0b0 PB |
9389 | if test -n "$RANLIB"; then |
9390 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 9391 | else |
1c710c3c DJ |
9392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9393 | for as_dir in $PATH | |
9394 | do | |
9395 | IFS=$as_save_IFS | |
9396 | test -z "$as_dir" && as_dir=. | |
5213506e | 9397 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9399 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 9400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9401 | break 2 |
9402 | fi | |
9403 | done | |
5213506e RW |
9404 | done |
9405 | IFS=$as_save_IFS | |
1c710c3c | 9406 | |
ca9f4b81 AO |
9407 | fi |
9408 | fi | |
1c710c3c | 9409 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 9410 | if test -n "$RANLIB"; then |
5213506e RW |
9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9412 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9413 | else |
5213506e RW |
9414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9415 | $as_echo "no" >&6; } | |
ca9f4b81 | 9416 | fi |
1c710c3c | 9417 | |
5213506e | 9418 | |
ca9f4b81 | 9419 | fi |
2693c0b0 PB |
9420 | test -n "$ac_cv_prog_RANLIB" && break |
9421 | done | |
9422 | ||
9423 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 9424 | RANLIB="true" |
ca9f4b81 AO |
9425 | fi |
9426 | ||
278a7a38 AO |
9427 | |
9428 | ||
9429 | if test -n "$STRIP"; then | |
9430 | ac_cv_prog_STRIP=$STRIP | |
9431 | elif test -n "$ac_cv_prog_STRIP"; then | |
9432 | STRIP=$ac_cv_prog_STRIP | |
9433 | fi | |
9434 | ||
9435 | if test -n "$ac_cv_prog_STRIP"; then | |
9436 | for ncn_progname in strip; do | |
9437 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9438 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9440 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9441 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 9442 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9443 | else |
9444 | if test -n "$STRIP"; then | |
9445 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9446 | else | |
9447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9448 | for as_dir in $PATH | |
9449 | do | |
9450 | IFS=$as_save_IFS | |
9451 | test -z "$as_dir" && as_dir=. | |
5213506e | 9452 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9453 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9454 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9456 | break 2 |
9457 | fi | |
9458 | done | |
5213506e RW |
9459 | done |
9460 | IFS=$as_save_IFS | |
278a7a38 AO |
9461 | |
9462 | fi | |
9463 | fi | |
9464 | STRIP=$ac_cv_prog_STRIP | |
9465 | if test -n "$STRIP"; then | |
5213506e RW |
9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9467 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 9468 | else |
5213506e RW |
9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9470 | $as_echo "no" >&6; } | |
278a7a38 AO |
9471 | fi |
9472 | ||
5213506e | 9473 | |
278a7a38 AO |
9474 | done |
9475 | fi | |
9476 | ||
9477 | for ncn_progname in strip; do | |
2abefe3d PB |
9478 | if test -n "$ncn_tool_prefix"; then |
9479 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9480 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9482 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9483 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 9484 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9485 | else |
9486 | if test -n "$STRIP"; then | |
9487 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9488 | else | |
1c710c3c DJ |
9489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9490 | for as_dir in $PATH | |
9491 | do | |
9492 | IFS=$as_save_IFS | |
9493 | test -z "$as_dir" && as_dir=. | |
5213506e | 9494 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9495 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9496 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9498 | break 2 |
9499 | fi | |
9500 | done | |
5213506e RW |
9501 | done |
9502 | IFS=$as_save_IFS | |
1c710c3c | 9503 | |
2abefe3d PB |
9504 | fi |
9505 | fi | |
1c710c3c | 9506 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9507 | if test -n "$STRIP"; then |
5213506e RW |
9508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9509 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9510 | else |
5213506e RW |
9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9512 | $as_echo "no" >&6; } | |
2abefe3d PB |
9513 | fi |
9514 | ||
5213506e | 9515 | |
2abefe3d PB |
9516 | fi |
9517 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9518 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9519 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9521 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9522 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 9523 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9524 | else |
9525 | if test -n "$STRIP"; then | |
9526 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9527 | else | |
1c710c3c DJ |
9528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9529 | for as_dir in $PATH | |
9530 | do | |
9531 | IFS=$as_save_IFS | |
9532 | test -z "$as_dir" && as_dir=. | |
5213506e | 9533 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9534 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9535 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9537 | break 2 |
9538 | fi | |
9539 | done | |
5213506e RW |
9540 | done |
9541 | IFS=$as_save_IFS | |
1c710c3c | 9542 | |
2abefe3d PB |
9543 | fi |
9544 | fi | |
1c710c3c | 9545 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9546 | if test -n "$STRIP"; then |
5213506e RW |
9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9548 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9549 | else |
5213506e RW |
9550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9551 | $as_echo "no" >&6; } | |
2abefe3d | 9552 | fi |
1c710c3c | 9553 | |
5213506e | 9554 | |
2abefe3d PB |
9555 | fi |
9556 | test -n "$ac_cv_prog_STRIP" && break | |
9557 | done | |
9558 | ||
9559 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 9560 | STRIP="true" |
2abefe3d PB |
9561 | fi |
9562 | ||
278a7a38 AO |
9563 | |
9564 | ||
9565 | if test -n "$WINDRES"; then | |
9566 | ac_cv_prog_WINDRES=$WINDRES | |
9567 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9568 | WINDRES=$ac_cv_prog_WINDRES | |
9569 | fi | |
9570 | ||
9571 | if test -n "$ac_cv_prog_WINDRES"; then | |
9572 | for ncn_progname in windres; do | |
9573 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9574 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9576 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9577 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 9578 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9579 | else |
9580 | if test -n "$WINDRES"; then | |
9581 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9582 | else | |
9583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9584 | for as_dir in $PATH | |
9585 | do | |
9586 | IFS=$as_save_IFS | |
9587 | test -z "$as_dir" && as_dir=. | |
5213506e | 9588 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9589 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9590 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9592 | break 2 |
9593 | fi | |
9594 | done | |
5213506e RW |
9595 | done |
9596 | IFS=$as_save_IFS | |
278a7a38 AO |
9597 | |
9598 | fi | |
9599 | fi | |
9600 | WINDRES=$ac_cv_prog_WINDRES | |
9601 | if test -n "$WINDRES"; then | |
5213506e RW |
9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9603 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 9604 | else |
5213506e RW |
9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9606 | $as_echo "no" >&6; } | |
278a7a38 AO |
9607 | fi |
9608 | ||
5213506e | 9609 | |
278a7a38 AO |
9610 | done |
9611 | fi | |
9612 | ||
9613 | for ncn_progname in windres; do | |
2693c0b0 PB |
9614 | if test -n "$ncn_tool_prefix"; then |
9615 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9616 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9618 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9619 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 9620 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9621 | else |
9622 | if test -n "$WINDRES"; then | |
9623 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9624 | else | |
1c710c3c DJ |
9625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9626 | for as_dir in $PATH | |
9627 | do | |
9628 | IFS=$as_save_IFS | |
9629 | test -z "$as_dir" && as_dir=. | |
5213506e | 9630 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9632 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9634 | break 2 |
9635 | fi | |
9636 | done | |
5213506e RW |
9637 | done |
9638 | IFS=$as_save_IFS | |
1c710c3c | 9639 | |
ca9f4b81 AO |
9640 | fi |
9641 | fi | |
1c710c3c | 9642 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 9643 | if test -n "$WINDRES"; then |
5213506e RW |
9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9645 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9646 | else |
5213506e RW |
9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9648 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9649 | fi |
9650 | ||
5213506e | 9651 | |
2693c0b0 PB |
9652 | fi |
9653 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9654 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9655 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9657 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9658 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 9659 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9660 | else |
2693c0b0 PB |
9661 | if test -n "$WINDRES"; then |
9662 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 9663 | else |
1c710c3c DJ |
9664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9665 | for as_dir in $PATH | |
9666 | do | |
9667 | IFS=$as_save_IFS | |
9668 | test -z "$as_dir" && as_dir=. | |
5213506e | 9669 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9670 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9671 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9673 | break 2 |
9674 | fi | |
9675 | done | |
5213506e RW |
9676 | done |
9677 | IFS=$as_save_IFS | |
1c710c3c | 9678 | |
ca9f4b81 AO |
9679 | fi |
9680 | fi | |
1c710c3c | 9681 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9682 | if test -n "$WINDRES"; then |
5213506e RW |
9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9684 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9685 | else |
5213506e RW |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9687 | $as_echo "no" >&6; } | |
ca9f4b81 | 9688 | fi |
1c710c3c | 9689 | |
5213506e | 9690 | |
2693c0b0 PB |
9691 | fi |
9692 | test -n "$ac_cv_prog_WINDRES" && break | |
9693 | done | |
9694 | ||
9695 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9696 | set dummy windres | |
9697 | if test $build = $host ; then | |
9698 | WINDRES="$2" | |
ca9f4b81 | 9699 | else |
2693c0b0 | 9700 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9701 | fi |
ca9f4b81 AO |
9702 | fi |
9703 | ||
278a7a38 AO |
9704 | |
9705 | ||
901119ae KT |
9706 | if test -n "$WINDMC"; then |
9707 | ac_cv_prog_WINDMC=$WINDMC | |
9708 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9709 | WINDMC=$ac_cv_prog_WINDMC | |
9710 | fi | |
9711 | ||
9712 | if test -n "$ac_cv_prog_WINDMC"; then | |
9713 | for ncn_progname in windmc; do | |
9714 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9715 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9717 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9718 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 9719 | $as_echo_n "(cached) " >&6 |
901119ae KT |
9720 | else |
9721 | if test -n "$WINDMC"; then | |
9722 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9723 | else | |
9724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9725 | for as_dir in $PATH | |
9726 | do | |
9727 | IFS=$as_save_IFS | |
9728 | test -z "$as_dir" && as_dir=. | |
5213506e | 9729 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 9731 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9733 | break 2 |
9734 | fi | |
9735 | done | |
5213506e RW |
9736 | done |
9737 | IFS=$as_save_IFS | |
901119ae KT |
9738 | |
9739 | fi | |
9740 | fi | |
9741 | WINDMC=$ac_cv_prog_WINDMC | |
9742 | if test -n "$WINDMC"; then | |
5213506e RW |
9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9744 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9745 | else |
5213506e RW |
9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9747 | $as_echo "no" >&6; } | |
901119ae KT |
9748 | fi |
9749 | ||
5213506e | 9750 | |
901119ae KT |
9751 | done |
9752 | fi | |
9753 | ||
9754 | for ncn_progname in windmc; do | |
9755 | if test -n "$ncn_tool_prefix"; then | |
9756 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9757 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9759 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9760 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 9761 | $as_echo_n "(cached) " >&6 |
901119ae KT |
9762 | else |
9763 | if test -n "$WINDMC"; then | |
9764 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9765 | else | |
9766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9767 | for as_dir in $PATH | |
9768 | do | |
9769 | IFS=$as_save_IFS | |
9770 | test -z "$as_dir" && as_dir=. | |
5213506e | 9771 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 9773 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9775 | break 2 |
9776 | fi | |
9777 | done | |
5213506e RW |
9778 | done |
9779 | IFS=$as_save_IFS | |
901119ae KT |
9780 | |
9781 | fi | |
9782 | fi | |
9783 | WINDMC=$ac_cv_prog_WINDMC | |
9784 | if test -n "$WINDMC"; then | |
5213506e RW |
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9786 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9787 | else |
5213506e RW |
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9789 | $as_echo "no" >&6; } | |
901119ae KT |
9790 | fi |
9791 | ||
5213506e | 9792 | |
901119ae KT |
9793 | fi |
9794 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9795 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9796 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9798 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9799 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 9800 | $as_echo_n "(cached) " >&6 |
901119ae KT |
9801 | else |
9802 | if test -n "$WINDMC"; then | |
9803 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9804 | else | |
9805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9806 | for as_dir in $PATH | |
9807 | do | |
9808 | IFS=$as_save_IFS | |
9809 | test -z "$as_dir" && as_dir=. | |
5213506e | 9810 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 9812 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9814 | break 2 |
9815 | fi | |
9816 | done | |
5213506e RW |
9817 | done |
9818 | IFS=$as_save_IFS | |
901119ae KT |
9819 | |
9820 | fi | |
9821 | fi | |
9822 | WINDMC=$ac_cv_prog_WINDMC | |
9823 | if test -n "$WINDMC"; then | |
5213506e RW |
9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9825 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9826 | else |
5213506e RW |
9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9828 | $as_echo "no" >&6; } | |
901119ae KT |
9829 | fi |
9830 | ||
5213506e | 9831 | |
901119ae KT |
9832 | fi |
9833 | test -n "$ac_cv_prog_WINDMC" && break | |
9834 | done | |
9835 | ||
9836 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9837 | set dummy windmc | |
9838 | if test $build = $host ; then | |
9839 | WINDMC="$2" | |
9840 | else | |
9841 | WINDMC="${ncn_tool_prefix}$2" | |
9842 | fi | |
9843 | fi | |
9844 | ||
9845 | ||
9846 | ||
278a7a38 AO |
9847 | if test -n "$OBJCOPY"; then |
9848 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9849 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9850 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9851 | fi | |
9852 | ||
9853 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9854 | for ncn_progname in objcopy; do | |
9855 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9856 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9858 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9859 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 9860 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9861 | else |
9862 | if test -n "$OBJCOPY"; then | |
9863 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9864 | else | |
9865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9866 | for as_dir in $PATH | |
9867 | do | |
9868 | IFS=$as_save_IFS | |
9869 | test -z "$as_dir" && as_dir=. | |
5213506e | 9870 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9872 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9874 | break 2 |
9875 | fi | |
9876 | done | |
5213506e RW |
9877 | done |
9878 | IFS=$as_save_IFS | |
278a7a38 AO |
9879 | |
9880 | fi | |
9881 | fi | |
9882 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9883 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9885 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9886 | else |
5213506e RW |
9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9888 | $as_echo "no" >&6; } | |
278a7a38 AO |
9889 | fi |
9890 | ||
5213506e | 9891 | |
278a7a38 AO |
9892 | done |
9893 | fi | |
9894 | ||
9895 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9896 | if test -n "$ncn_tool_prefix"; then |
9897 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9898 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9900 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9901 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 9902 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9903 | else |
9904 | if test -n "$OBJCOPY"; then | |
9905 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9906 | else | |
1c710c3c DJ |
9907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9908 | for as_dir in $PATH | |
9909 | do | |
9910 | IFS=$as_save_IFS | |
9911 | test -z "$as_dir" && as_dir=. | |
5213506e | 9912 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9914 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9916 | break 2 |
9917 | fi | |
9918 | done | |
5213506e RW |
9919 | done |
9920 | IFS=$as_save_IFS | |
1c710c3c | 9921 | |
ca9f4b81 AO |
9922 | fi |
9923 | fi | |
1c710c3c | 9924 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9925 | if test -n "$OBJCOPY"; then |
5213506e RW |
9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9927 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9928 | else |
5213506e RW |
9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9930 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9931 | fi |
9932 | ||
5213506e | 9933 | |
2693c0b0 PB |
9934 | fi |
9935 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9936 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9937 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9939 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9940 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 9941 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9942 | else |
2693c0b0 PB |
9943 | if test -n "$OBJCOPY"; then |
9944 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9945 | else |
1c710c3c DJ |
9946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9947 | for as_dir in $PATH | |
9948 | do | |
9949 | IFS=$as_save_IFS | |
9950 | test -z "$as_dir" && as_dir=. | |
5213506e | 9951 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9953 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9955 | break 2 |
9956 | fi | |
9957 | done | |
5213506e RW |
9958 | done |
9959 | IFS=$as_save_IFS | |
1c710c3c | 9960 | |
ca9f4b81 AO |
9961 | fi |
9962 | fi | |
1c710c3c | 9963 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9964 | if test -n "$OBJCOPY"; then |
5213506e RW |
9965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9966 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9967 | else |
5213506e RW |
9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9969 | $as_echo "no" >&6; } | |
ca9f4b81 | 9970 | fi |
1c710c3c | 9971 | |
5213506e | 9972 | |
2693c0b0 PB |
9973 | fi |
9974 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9975 | done | |
9976 | ||
9977 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9978 | set dummy objcopy | |
9979 | if test $build = $host ; then | |
9980 | OBJCOPY="$2" | |
ca9f4b81 | 9981 | else |
2693c0b0 | 9982 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9983 | fi |
ca9f4b81 AO |
9984 | fi |
9985 | ||
278a7a38 AO |
9986 | |
9987 | ||
9988 | if test -n "$OBJDUMP"; then | |
9989 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9990 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9991 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9992 | fi | |
9993 | ||
9994 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9995 | for ncn_progname in objdump; do | |
9996 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9997 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9999 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10000 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 10001 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10002 | else |
10003 | if test -n "$OBJDUMP"; then | |
10004 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
10005 | else | |
10006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10007 | for as_dir in $PATH | |
10008 | do | |
10009 | IFS=$as_save_IFS | |
10010 | test -z "$as_dir" && as_dir=. | |
5213506e | 10011 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10013 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 10014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10015 | break 2 |
10016 | fi | |
10017 | done | |
5213506e RW |
10018 | done |
10019 | IFS=$as_save_IFS | |
278a7a38 AO |
10020 | |
10021 | fi | |
10022 | fi | |
10023 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
10024 | if test -n "$OBJDUMP"; then | |
5213506e RW |
10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
10026 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 10027 | else |
5213506e RW |
10028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10029 | $as_echo "no" >&6; } | |
278a7a38 AO |
10030 | fi |
10031 | ||
5213506e | 10032 | |
278a7a38 AO |
10033 | done |
10034 | fi | |
10035 | ||
10036 | for ncn_progname in objdump; do | |
2693c0b0 PB |
10037 | if test -n "$ncn_tool_prefix"; then |
10038 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10039 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10041 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10042 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 10043 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10044 | else |
10045 | if test -n "$OBJDUMP"; then | |
10046 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
10047 | else | |
1c710c3c DJ |
10048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10049 | for as_dir in $PATH | |
10050 | do | |
10051 | IFS=$as_save_IFS | |
10052 | test -z "$as_dir" && as_dir=. | |
5213506e | 10053 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10055 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10057 | break 2 |
10058 | fi | |
10059 | done | |
5213506e RW |
10060 | done |
10061 | IFS=$as_save_IFS | |
1c710c3c | 10062 | |
ca9f4b81 AO |
10063 | fi |
10064 | fi | |
1c710c3c | 10065 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 10066 | if test -n "$OBJDUMP"; then |
5213506e RW |
10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
10068 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 10069 | else |
5213506e RW |
10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10071 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10072 | fi |
10073 | ||
5213506e | 10074 | |
2693c0b0 PB |
10075 | fi |
10076 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
10077 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10078 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10080 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10081 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 10082 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10083 | else |
2693c0b0 PB |
10084 | if test -n "$OBJDUMP"; then |
10085 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 10086 | else |
1c710c3c DJ |
10087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10088 | for as_dir in $PATH | |
10089 | do | |
10090 | IFS=$as_save_IFS | |
10091 | test -z "$as_dir" && as_dir=. | |
5213506e | 10092 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10094 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 10095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10096 | break 2 |
10097 | fi | |
10098 | done | |
5213506e RW |
10099 | done |
10100 | IFS=$as_save_IFS | |
1c710c3c | 10101 | |
ca9f4b81 AO |
10102 | fi |
10103 | fi | |
1c710c3c | 10104 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 10105 | if test -n "$OBJDUMP"; then |
5213506e RW |
10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
10107 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 10108 | else |
5213506e RW |
10109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10110 | $as_echo "no" >&6; } | |
ca9f4b81 | 10111 | fi |
1c710c3c | 10112 | |
5213506e | 10113 | |
2693c0b0 PB |
10114 | fi |
10115 | test -n "$ac_cv_prog_OBJDUMP" && break | |
10116 | done | |
10117 | ||
10118 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
10119 | set dummy objdump | |
10120 | if test $build = $host ; then | |
10121 | OBJDUMP="$2" | |
ca9f4b81 | 10122 | else |
2693c0b0 | 10123 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 10124 | fi |
ca9f4b81 AO |
10125 | fi |
10126 | ||
671aa708 NN |
10127 | |
10128 | ||
e4a9a572 IS |
10129 | if test -n "$OTOOL"; then |
10130 | ac_cv_prog_OTOOL=$OTOOL | |
10131 | elif test -n "$ac_cv_prog_OTOOL"; then | |
10132 | OTOOL=$ac_cv_prog_OTOOL | |
10133 | fi | |
10134 | ||
10135 | if test -n "$ac_cv_prog_OTOOL"; then | |
10136 | for ncn_progname in otool; do | |
10137 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10138 | set dummy ${ncn_progname}; ac_word=$2 | |
10139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10140 | $as_echo_n "checking for $ac_word... " >&6; } | |
10141 | if ${ac_cv_prog_OTOOL+:} false; then : | |
10142 | $as_echo_n "(cached) " >&6 | |
10143 | else | |
10144 | if test -n "$OTOOL"; then | |
10145 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
10146 | else | |
10147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10148 | for as_dir in $PATH | |
10149 | do | |
10150 | IFS=$as_save_IFS | |
10151 | test -z "$as_dir" && as_dir=. | |
10152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10154 | ac_cv_prog_OTOOL="${ncn_progname}" | |
10155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10156 | break 2 | |
10157 | fi | |
10158 | done | |
10159 | done | |
10160 | IFS=$as_save_IFS | |
10161 | ||
10162 | fi | |
10163 | fi | |
10164 | OTOOL=$ac_cv_prog_OTOOL | |
10165 | if test -n "$OTOOL"; then | |
10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
10167 | $as_echo "$OTOOL" >&6; } | |
10168 | else | |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10170 | $as_echo "no" >&6; } | |
10171 | fi | |
10172 | ||
10173 | ||
10174 | done | |
10175 | fi | |
10176 | ||
10177 | for ncn_progname in otool; do | |
10178 | if test -n "$ncn_tool_prefix"; then | |
10179 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10180 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10182 | $as_echo_n "checking for $ac_word... " >&6; } | |
10183 | if ${ac_cv_prog_OTOOL+:} false; then : | |
10184 | $as_echo_n "(cached) " >&6 | |
10185 | else | |
10186 | if test -n "$OTOOL"; then | |
10187 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
10188 | else | |
10189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10190 | for as_dir in $PATH | |
10191 | do | |
10192 | IFS=$as_save_IFS | |
10193 | test -z "$as_dir" && as_dir=. | |
10194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10196 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
10197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10198 | break 2 | |
10199 | fi | |
10200 | done | |
10201 | done | |
10202 | IFS=$as_save_IFS | |
10203 | ||
10204 | fi | |
10205 | fi | |
10206 | OTOOL=$ac_cv_prog_OTOOL | |
10207 | if test -n "$OTOOL"; then | |
10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
10209 | $as_echo "$OTOOL" >&6; } | |
10210 | else | |
10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10212 | $as_echo "no" >&6; } | |
10213 | fi | |
10214 | ||
10215 | ||
10216 | fi | |
10217 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
10218 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10219 | set dummy ${ncn_progname}; ac_word=$2 | |
10220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10221 | $as_echo_n "checking for $ac_word... " >&6; } | |
10222 | if ${ac_cv_prog_OTOOL+:} false; then : | |
10223 | $as_echo_n "(cached) " >&6 | |
10224 | else | |
10225 | if test -n "$OTOOL"; then | |
10226 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
10227 | else | |
10228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10229 | for as_dir in $PATH | |
10230 | do | |
10231 | IFS=$as_save_IFS | |
10232 | test -z "$as_dir" && as_dir=. | |
10233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10234 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10235 | ac_cv_prog_OTOOL="${ncn_progname}" | |
10236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10237 | break 2 | |
10238 | fi | |
10239 | done | |
10240 | done | |
10241 | IFS=$as_save_IFS | |
10242 | ||
10243 | fi | |
10244 | fi | |
10245 | OTOOL=$ac_cv_prog_OTOOL | |
10246 | if test -n "$OTOOL"; then | |
10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
10248 | $as_echo "$OTOOL" >&6; } | |
10249 | else | |
10250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10251 | $as_echo "no" >&6; } | |
10252 | fi | |
10253 | ||
10254 | ||
10255 | fi | |
10256 | test -n "$ac_cv_prog_OTOOL" && break | |
10257 | done | |
10258 | ||
10259 | if test -z "$ac_cv_prog_OTOOL" ; then | |
10260 | set dummy otool | |
10261 | if test $build = $host ; then | |
10262 | OTOOL="$2" | |
10263 | else | |
10264 | OTOOL="${ncn_tool_prefix}$2" | |
10265 | fi | |
10266 | fi | |
10267 | ||
10268 | ||
10269 | ||
e7a82751 RM |
10270 | if test -n "$READELF"; then |
10271 | ac_cv_prog_READELF=$READELF | |
10272 | elif test -n "$ac_cv_prog_READELF"; then | |
10273 | READELF=$ac_cv_prog_READELF | |
10274 | fi | |
10275 | ||
10276 | if test -n "$ac_cv_prog_READELF"; then | |
10277 | for ncn_progname in readelf; do | |
10278 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10279 | set dummy ${ncn_progname}; ac_word=$2 | |
10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10281 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10282 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
10283 | $as_echo_n "(cached) " >&6 |
10284 | else | |
10285 | if test -n "$READELF"; then | |
10286 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10287 | else | |
10288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10289 | for as_dir in $PATH | |
10290 | do | |
10291 | IFS=$as_save_IFS | |
10292 | test -z "$as_dir" && as_dir=. | |
10293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10294 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
10295 | ac_cv_prog_READELF="${ncn_progname}" |
10296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10297 | break 2 | |
10298 | fi | |
10299 | done | |
10300 | done | |
10301 | IFS=$as_save_IFS | |
10302 | ||
10303 | fi | |
10304 | fi | |
10305 | READELF=$ac_cv_prog_READELF | |
10306 | if test -n "$READELF"; then | |
10307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10308 | $as_echo "$READELF" >&6; } | |
10309 | else | |
10310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10311 | $as_echo "no" >&6; } | |
10312 | fi | |
10313 | ||
10314 | ||
10315 | done | |
10316 | fi | |
10317 | ||
10318 | for ncn_progname in readelf; do | |
10319 | if test -n "$ncn_tool_prefix"; then | |
10320 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10321 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10323 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10324 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
10325 | $as_echo_n "(cached) " >&6 |
10326 | else | |
10327 | if test -n "$READELF"; then | |
10328 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10329 | else | |
10330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10331 | for as_dir in $PATH | |
10332 | do | |
10333 | IFS=$as_save_IFS | |
10334 | test -z "$as_dir" && as_dir=. | |
10335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
10337 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
10338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10339 | break 2 | |
10340 | fi | |
10341 | done | |
10342 | done | |
10343 | IFS=$as_save_IFS | |
10344 | ||
10345 | fi | |
10346 | fi | |
10347 | READELF=$ac_cv_prog_READELF | |
10348 | if test -n "$READELF"; then | |
10349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10350 | $as_echo "$READELF" >&6; } | |
10351 | else | |
10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10353 | $as_echo "no" >&6; } | |
10354 | fi | |
10355 | ||
10356 | ||
10357 | fi | |
10358 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
10359 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10360 | set dummy ${ncn_progname}; ac_word=$2 | |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10362 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10363 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
10364 | $as_echo_n "(cached) " >&6 |
10365 | else | |
10366 | if test -n "$READELF"; then | |
10367 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10368 | else | |
10369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10370 | for as_dir in $PATH | |
10371 | do | |
10372 | IFS=$as_save_IFS | |
10373 | test -z "$as_dir" && as_dir=. | |
10374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
10376 | ac_cv_prog_READELF="${ncn_progname}" |
10377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10378 | break 2 | |
10379 | fi | |
10380 | done | |
10381 | done | |
10382 | IFS=$as_save_IFS | |
10383 | ||
10384 | fi | |
10385 | fi | |
10386 | READELF=$ac_cv_prog_READELF | |
10387 | if test -n "$READELF"; then | |
10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10389 | $as_echo "$READELF" >&6; } | |
10390 | else | |
10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10392 | $as_echo "no" >&6; } | |
10393 | fi | |
10394 | ||
10395 | ||
10396 | fi | |
10397 | test -n "$ac_cv_prog_READELF" && break | |
10398 | done | |
10399 | ||
10400 | if test -z "$ac_cv_prog_READELF" ; then | |
10401 | set dummy readelf | |
10402 | if test $build = $host ; then | |
10403 | READELF="$2" | |
10404 | else | |
10405 | READELF="${ncn_tool_prefix}$2" | |
10406 | fi | |
10407 | fi | |
10408 | ||
10409 | ||
10410 | ||
671aa708 NN |
10411 | |
10412 | ||
10413 | ||
2abefe3d | 10414 | # Target tools. |
1c710c3c | 10415 | |
5213506e RW |
10416 | # Check whether --with-build-time-tools was given. |
10417 | if test "${with_build_time_tools+set}" = set; then : | |
10418 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
10419 | x/*) ;; |
10420 | *) | |
10421 | with_build_time_tools= | |
5213506e RW |
10422 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10423 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
10424 | ;; |
10425 | esac | |
ca9f4b81 | 10426 | else |
e8b05380 | 10427 | with_build_time_tools= |
5213506e RW |
10428 | fi |
10429 | ||
ca9f4b81 | 10430 | |
278a7a38 AO |
10431 | |
10432 | ||
10433 | if test -n "$CC_FOR_TARGET"; then | |
10434 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10435 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10436 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10437 | fi | |
10438 | ||
10439 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10440 | for ncn_progname in cc gcc; do | |
10441 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10442 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10444 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10445 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 10446 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10447 | else |
10448 | if test -n "$CC_FOR_TARGET"; then | |
10449 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10450 | else | |
10451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10452 | for as_dir in $PATH | |
10453 | do | |
10454 | IFS=$as_save_IFS | |
10455 | test -z "$as_dir" && as_dir=. | |
5213506e | 10456 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10458 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 10459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10460 | break 2 |
10461 | fi | |
10462 | done | |
5213506e RW |
10463 | done |
10464 | IFS=$as_save_IFS | |
278a7a38 AO |
10465 | |
10466 | fi | |
10467 | fi | |
10468 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10469 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10471 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 10472 | else |
5213506e RW |
10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10474 | $as_echo "no" >&6; } | |
278a7a38 AO |
10475 | fi |
10476 | ||
5213506e | 10477 | |
278a7a38 AO |
10478 | done |
10479 | fi | |
10480 | ||
10481 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10482 | for ncn_progname in cc gcc; do |
5213506e RW |
10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10484 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10485 | if test -x $with_build_time_tools/${ncn_progname}; then |
10486 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10488 | $as_echo "yes" >&6; } | |
72a7ab82 | 10489 | break |
e8b05380 | 10490 | else |
5213506e RW |
10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10492 | $as_echo "no" >&6; } | |
72a7ab82 AP |
10493 | fi |
10494 | done | |
4de997d1 PB |
10495 | fi |
10496 | ||
e8b05380 PB |
10497 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10498 | for ncn_progname in cc gcc; do | |
10499 | if test -n "$ncn_target_tool_prefix"; then | |
10500 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10501 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10503 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10504 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 10505 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
10506 | else |
10507 | if test -n "$CC_FOR_TARGET"; then | |
10508 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10509 | else | |
1c710c3c DJ |
10510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10511 | for as_dir in $PATH | |
10512 | do | |
10513 | IFS=$as_save_IFS | |
10514 | test -z "$as_dir" && as_dir=. | |
5213506e | 10515 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10516 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10517 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10519 | break 2 |
10520 | fi | |
10521 | done | |
5213506e RW |
10522 | done |
10523 | IFS=$as_save_IFS | |
1c710c3c | 10524 | |
4de997d1 PB |
10525 | fi |
10526 | fi | |
1c710c3c | 10527 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 10528 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10530 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10531 | else |
5213506e RW |
10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10533 | $as_echo "no" >&6; } | |
4de997d1 PB |
10534 | fi |
10535 | ||
5213506e | 10536 | |
e8b05380 PB |
10537 | fi |
10538 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10539 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10540 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10542 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10543 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 10544 | $as_echo_n "(cached) " >&6 |
4de997d1 | 10545 | else |
2693c0b0 PB |
10546 | if test -n "$CC_FOR_TARGET"; then |
10547 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10548 | else |
1c710c3c DJ |
10549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10550 | for as_dir in $PATH | |
10551 | do | |
10552 | IFS=$as_save_IFS | |
10553 | test -z "$as_dir" && as_dir=. | |
5213506e | 10554 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10556 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 10557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10558 | break 2 |
10559 | fi | |
10560 | done | |
5213506e RW |
10561 | done |
10562 | IFS=$as_save_IFS | |
1c710c3c | 10563 | |
4de997d1 PB |
10564 | fi |
10565 | fi | |
1c710c3c | 10566 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 10567 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10569 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10570 | else |
5213506e RW |
10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10572 | $as_echo "no" >&6; } | |
4de997d1 | 10573 | fi |
1c710c3c | 10574 | |
5213506e | 10575 | |
e8b05380 PB |
10576 | fi |
10577 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10578 | done | |
10579 | fi | |
1c710c3c | 10580 | |
2693c0b0 PB |
10581 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10582 | set dummy cc gcc | |
10583 | if test $build = $target ; then | |
10584 | CC_FOR_TARGET="$2" | |
4de997d1 | 10585 | else |
2693c0b0 | 10586 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10587 | fi |
1c00b503 PB |
10588 | else |
10589 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
10590 | fi |
10591 | ||
278a7a38 AO |
10592 | |
10593 | ||
10594 | if test -n "$CXX_FOR_TARGET"; then | |
10595 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10596 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10597 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10598 | fi | |
10599 | ||
10600 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10601 | for ncn_progname in c++ g++ cxx gxx; do | |
10602 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10603 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10605 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10606 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 10607 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10608 | else |
10609 | if test -n "$CXX_FOR_TARGET"; then | |
10610 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10611 | else | |
10612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10613 | for as_dir in $PATH | |
10614 | do | |
10615 | IFS=$as_save_IFS | |
10616 | test -z "$as_dir" && as_dir=. | |
5213506e | 10617 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10618 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10619 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10621 | break 2 |
10622 | fi | |
10623 | done | |
5213506e RW |
10624 | done |
10625 | IFS=$as_save_IFS | |
278a7a38 AO |
10626 | |
10627 | fi | |
10628 | fi | |
10629 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10630 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
10631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10632 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 10633 | else |
5213506e RW |
10634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10635 | $as_echo "no" >&6; } | |
278a7a38 AO |
10636 | fi |
10637 | ||
5213506e | 10638 | |
278a7a38 AO |
10639 | done |
10640 | fi | |
10641 | ||
10642 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10643 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10645 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10646 | if test -x $with_build_time_tools/${ncn_progname}; then |
10647 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10649 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10650 | break |
10651 | else | |
5213506e RW |
10652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10653 | $as_echo "no" >&6; } | |
e8b05380 PB |
10654 | fi |
10655 | done | |
10656 | fi | |
10657 | ||
10658 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10659 | for ncn_progname in c++ g++ cxx gxx; do | |
10660 | if test -n "$ncn_target_tool_prefix"; then | |
10661 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10662 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10664 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10665 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 10666 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
10667 | else |
10668 | if test -n "$CXX_FOR_TARGET"; then | |
10669 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10670 | else | |
1c710c3c DJ |
10671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10672 | for as_dir in $PATH | |
10673 | do | |
10674 | IFS=$as_save_IFS | |
10675 | test -z "$as_dir" && as_dir=. | |
5213506e | 10676 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10677 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10678 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10680 | break 2 |
10681 | fi | |
10682 | done | |
5213506e RW |
10683 | done |
10684 | IFS=$as_save_IFS | |
1c710c3c | 10685 | |
4de997d1 PB |
10686 | fi |
10687 | fi | |
1c710c3c | 10688 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 10689 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10691 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10692 | else |
5213506e RW |
10693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10694 | $as_echo "no" >&6; } | |
4de997d1 PB |
10695 | fi |
10696 | ||
5213506e | 10697 | |
e8b05380 PB |
10698 | fi |
10699 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10700 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10701 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10703 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10704 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 10705 | $as_echo_n "(cached) " >&6 |
4de997d1 | 10706 | else |
2693c0b0 PB |
10707 | if test -n "$CXX_FOR_TARGET"; then |
10708 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10709 | else |
1c710c3c DJ |
10710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10711 | for as_dir in $PATH | |
10712 | do | |
10713 | IFS=$as_save_IFS | |
10714 | test -z "$as_dir" && as_dir=. | |
5213506e | 10715 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10717 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10719 | break 2 |
10720 | fi | |
10721 | done | |
5213506e RW |
10722 | done |
10723 | IFS=$as_save_IFS | |
1c710c3c | 10724 | |
4de997d1 PB |
10725 | fi |
10726 | fi | |
1c710c3c | 10727 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 10728 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10730 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10731 | else |
5213506e RW |
10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10733 | $as_echo "no" >&6; } | |
4de997d1 | 10734 | fi |
1c710c3c | 10735 | |
5213506e | 10736 | |
e8b05380 PB |
10737 | fi |
10738 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10739 | done | |
10740 | fi | |
1c710c3c | 10741 | |
2693c0b0 PB |
10742 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10743 | set dummy c++ g++ cxx gxx | |
10744 | if test $build = $target ; then | |
10745 | CXX_FOR_TARGET="$2" | |
4de997d1 | 10746 | else |
2693c0b0 | 10747 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10748 | fi |
1c00b503 PB |
10749 | else |
10750 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
10751 | fi |
10752 | ||
278a7a38 AO |
10753 | |
10754 | ||
10755 | if test -n "$GCC_FOR_TARGET"; then | |
10756 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10757 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10758 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10759 | fi | |
10760 | ||
10761 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10762 | for ncn_progname in gcc; do | |
10763 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10764 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10766 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10767 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 10768 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10769 | else |
10770 | if test -n "$GCC_FOR_TARGET"; then | |
10771 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10772 | else | |
10773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10774 | for as_dir in $PATH | |
10775 | do | |
10776 | IFS=$as_save_IFS | |
10777 | test -z "$as_dir" && as_dir=. | |
5213506e | 10778 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10779 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10780 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10782 | break 2 |
10783 | fi | |
10784 | done | |
5213506e RW |
10785 | done |
10786 | IFS=$as_save_IFS | |
278a7a38 AO |
10787 | |
10788 | fi | |
10789 | fi | |
10790 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10791 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10793 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 10794 | else |
5213506e RW |
10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10796 | $as_echo "no" >&6; } | |
278a7a38 AO |
10797 | fi |
10798 | ||
5213506e | 10799 | |
278a7a38 AO |
10800 | done |
10801 | fi | |
10802 | ||
10803 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10804 | for ncn_progname in gcc; do |
5213506e RW |
10805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10806 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10807 | if test -x $with_build_time_tools/${ncn_progname}; then |
10808 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10810 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10811 | break |
10812 | else | |
5213506e RW |
10813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10814 | $as_echo "no" >&6; } | |
e8b05380 PB |
10815 | fi |
10816 | done | |
10817 | fi | |
10818 | ||
10819 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10820 | for ncn_progname in gcc; do | |
10821 | if test -n "$ncn_target_tool_prefix"; then | |
10822 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10823 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10825 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10826 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 10827 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10828 | else |
e8b05380 PB |
10829 | if test -n "$GCC_FOR_TARGET"; then |
10830 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10831 | else |
1c710c3c DJ |
10832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10833 | for as_dir in $PATH | |
10834 | do | |
10835 | IFS=$as_save_IFS | |
10836 | test -z "$as_dir" && as_dir=. | |
5213506e | 10837 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10838 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10839 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10841 | break 2 |
10842 | fi | |
10843 | done | |
5213506e RW |
10844 | done |
10845 | IFS=$as_save_IFS | |
1c710c3c | 10846 | |
ca9f4b81 AO |
10847 | fi |
10848 | fi | |
1c710c3c | 10849 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10850 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10852 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10853 | else |
5213506e RW |
10854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10855 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10856 | fi |
10857 | ||
5213506e | 10858 | |
e8b05380 PB |
10859 | fi |
10860 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10861 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10862 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10864 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10865 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 10866 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10867 | else |
e8b05380 PB |
10868 | if test -n "$GCC_FOR_TARGET"; then |
10869 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10870 | else |
1c710c3c DJ |
10871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10872 | for as_dir in $PATH | |
10873 | do | |
10874 | IFS=$as_save_IFS | |
10875 | test -z "$as_dir" && as_dir=. | |
5213506e | 10876 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10878 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10880 | break 2 |
10881 | fi | |
10882 | done | |
5213506e RW |
10883 | done |
10884 | IFS=$as_save_IFS | |
1c710c3c | 10885 | |
ca9f4b81 AO |
10886 | fi |
10887 | fi | |
1c710c3c | 10888 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10889 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10891 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10892 | else |
5213506e RW |
10893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10894 | $as_echo "no" >&6; } | |
ca9f4b81 | 10895 | fi |
1c710c3c | 10896 | |
5213506e | 10897 | |
e8b05380 PB |
10898 | fi |
10899 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10900 | done | |
10901 | fi | |
1c710c3c | 10902 | |
e8b05380 PB |
10903 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10904 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10905 | else |
10906 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10907 | fi |
10908 | ||
278a7a38 AO |
10909 | |
10910 | ||
278a7a38 AO |
10911 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10912 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10913 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10914 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10915 | fi |
10916 | ||
278a7a38 AO |
10917 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10918 | for ncn_progname in gfortran; do | |
10919 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10920 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10922 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10923 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 10924 | $as_echo_n "(cached) " >&6 |
e8b05380 | 10925 | else |
278a7a38 AO |
10926 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10927 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10928 | else |
1c710c3c DJ |
10929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10930 | for as_dir in $PATH | |
10931 | do | |
10932 | IFS=$as_save_IFS | |
10933 | test -z "$as_dir" && as_dir=. | |
5213506e | 10934 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10935 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10936 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10938 | break 2 |
10939 | fi | |
10940 | done | |
5213506e RW |
10941 | done |
10942 | IFS=$as_save_IFS | |
1c710c3c | 10943 | |
e8b05380 PB |
10944 | fi |
10945 | fi | |
278a7a38 AO |
10946 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10947 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
10948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10949 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10950 | else |
5213506e RW |
10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10952 | $as_echo "no" >&6; } | |
e8b05380 | 10953 | fi |
1c710c3c | 10954 | |
5213506e | 10955 | |
e8b05380 PB |
10956 | done |
10957 | fi | |
1c710c3c | 10958 | |
278a7a38 | 10959 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10960 | for ncn_progname in gfortran; do |
5213506e RW |
10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10962 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10963 | if test -x $with_build_time_tools/${ncn_progname}; then |
10964 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10966 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10967 | break |
10968 | else | |
5213506e RW |
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10970 | $as_echo "no" >&6; } | |
e8b05380 PB |
10971 | fi |
10972 | done | |
10973 | fi | |
10974 | ||
10975 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10976 | for ncn_progname in gfortran; do | |
10977 | if test -n "$ncn_target_tool_prefix"; then | |
10978 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10979 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10981 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10982 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 10983 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
10984 | else |
10985 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10986 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10987 | else | |
10988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10989 | for as_dir in $PATH | |
10990 | do | |
10991 | IFS=$as_save_IFS | |
10992 | test -z "$as_dir" && as_dir=. | |
5213506e | 10993 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10994 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10995 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10997 | break 2 |
10998 | fi | |
10999 | done | |
5213506e RW |
11000 | done |
11001 | IFS=$as_save_IFS | |
1c710c3c | 11002 | |
e8b05380 PB |
11003 | fi |
11004 | fi | |
1c710c3c | 11005 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 11006 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
11008 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 11009 | else |
5213506e RW |
11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11011 | $as_echo "no" >&6; } | |
e8b05380 PB |
11012 | fi |
11013 | ||
5213506e | 11014 | |
e8b05380 PB |
11015 | fi |
11016 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
11017 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11018 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11020 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11021 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 11022 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
11023 | else |
11024 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
11025 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
11026 | else | |
1c710c3c DJ |
11027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11028 | for as_dir in $PATH | |
11029 | do | |
11030 | IFS=$as_save_IFS | |
11031 | test -z "$as_dir" && as_dir=. | |
5213506e | 11032 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11034 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 11035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11036 | break 2 |
11037 | fi | |
11038 | done | |
5213506e RW |
11039 | done |
11040 | IFS=$as_save_IFS | |
1c710c3c | 11041 | |
e8b05380 PB |
11042 | fi |
11043 | fi | |
1c710c3c | 11044 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 11045 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
11047 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 11048 | else |
5213506e RW |
11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11050 | $as_echo "no" >&6; } | |
e8b05380 | 11051 | fi |
1c710c3c | 11052 | |
5213506e | 11053 | |
e8b05380 PB |
11054 | fi |
11055 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
11056 | done | |
11057 | fi | |
1c710c3c | 11058 | |
e8b05380 PB |
11059 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
11060 | set dummy gfortran | |
2693c0b0 | 11061 | if test $build = $target ; then |
e8b05380 | 11062 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 11063 | else |
e8b05380 PB |
11064 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
11065 | fi | |
1c00b503 PB |
11066 | else |
11067 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
11068 | fi |
11069 | ||
11070 | ||
11071 | ||
632e2a07 ILT |
11072 | if test -n "$GOC_FOR_TARGET"; then |
11073 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
11074 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11075 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11076 | fi | |
11077 | ||
11078 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11079 | for ncn_progname in gccgo; do | |
11080 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11081 | set dummy ${ncn_progname}; ac_word=$2 | |
11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11083 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11084 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
11085 | $as_echo_n "(cached) " >&6 |
11086 | else | |
11087 | if test -n "$GOC_FOR_TARGET"; then | |
11088 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11089 | else | |
11090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11091 | for as_dir in $PATH | |
11092 | do | |
11093 | IFS=$as_save_IFS | |
11094 | test -z "$as_dir" && as_dir=. | |
11095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
11097 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
11098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11099 | break 2 | |
11100 | fi | |
11101 | done | |
11102 | done | |
11103 | IFS=$as_save_IFS | |
11104 | ||
11105 | fi | |
11106 | fi | |
11107 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11108 | if test -n "$GOC_FOR_TARGET"; then | |
11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11110 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11111 | else | |
11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11113 | $as_echo "no" >&6; } | |
11114 | fi | |
11115 | ||
11116 | ||
11117 | done | |
11118 | fi | |
11119 | ||
11120 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11121 | for ncn_progname in gccgo; do | |
11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11123 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11124 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11125 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11127 | $as_echo "yes" >&6; } | |
11128 | break | |
11129 | else | |
11130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11131 | $as_echo "no" >&6; } | |
11132 | fi | |
11133 | done | |
11134 | fi | |
11135 | ||
11136 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11137 | for ncn_progname in gccgo; do | |
11138 | if test -n "$ncn_target_tool_prefix"; then | |
11139 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11140 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11142 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11143 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
11144 | $as_echo_n "(cached) " >&6 |
11145 | else | |
11146 | if test -n "$GOC_FOR_TARGET"; then | |
11147 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11148 | else | |
11149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11150 | for as_dir in $PATH | |
11151 | do | |
11152 | IFS=$as_save_IFS | |
11153 | test -z "$as_dir" && as_dir=. | |
11154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
11156 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11158 | break 2 | |
11159 | fi | |
11160 | done | |
11161 | done | |
11162 | IFS=$as_save_IFS | |
11163 | ||
11164 | fi | |
11165 | fi | |
11166 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11167 | if test -n "$GOC_FOR_TARGET"; then | |
11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11169 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11170 | else | |
11171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11172 | $as_echo "no" >&6; } | |
11173 | fi | |
11174 | ||
11175 | ||
11176 | fi | |
11177 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
11178 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11179 | set dummy ${ncn_progname}; ac_word=$2 | |
11180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11181 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11182 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
11183 | $as_echo_n "(cached) " >&6 |
11184 | else | |
11185 | if test -n "$GOC_FOR_TARGET"; then | |
11186 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11187 | else | |
11188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11189 | for as_dir in $PATH | |
11190 | do | |
11191 | IFS=$as_save_IFS | |
11192 | test -z "$as_dir" && as_dir=. | |
11193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11194 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
11195 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
11196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11197 | break 2 | |
11198 | fi | |
11199 | done | |
11200 | done | |
11201 | IFS=$as_save_IFS | |
11202 | ||
11203 | fi | |
11204 | fi | |
11205 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11206 | if test -n "$GOC_FOR_TARGET"; then | |
11207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11208 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11209 | else | |
11210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11211 | $as_echo "no" >&6; } | |
11212 | fi | |
11213 | ||
11214 | ||
11215 | fi | |
11216 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
11217 | done | |
11218 | fi | |
11219 | ||
11220 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
11221 | set dummy gccgo | |
11222 | if test $build = $target ; then | |
11223 | GOC_FOR_TARGET="$2" | |
11224 | else | |
11225 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11226 | fi | |
11227 | else | |
11228 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
11229 | fi | |
11230 | ||
11231 | ||
11232 | ||
b4c522fa IB |
11233 | if test -n "$GDC_FOR_TARGET"; then |
11234 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
11235 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
11236 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11237 | fi | |
11238 | ||
11239 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
11240 | for ncn_progname in gdc; do | |
11241 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11242 | set dummy ${ncn_progname}; ac_word=$2 | |
11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11244 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11245 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
11246 | $as_echo_n "(cached) " >&6 |
11247 | else | |
11248 | if test -n "$GDC_FOR_TARGET"; then | |
11249 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11250 | else | |
11251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11252 | for as_dir in $PATH | |
11253 | do | |
11254 | IFS=$as_save_IFS | |
11255 | test -z "$as_dir" && as_dir=. | |
11256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
11258 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
11259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11260 | break 2 | |
11261 | fi | |
11262 | done | |
11263 | done | |
11264 | IFS=$as_save_IFS | |
11265 | ||
11266 | fi | |
11267 | fi | |
11268 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11269 | if test -n "$GDC_FOR_TARGET"; then | |
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11271 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11272 | else | |
11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11274 | $as_echo "no" >&6; } | |
11275 | fi | |
11276 | ||
11277 | ||
11278 | done | |
11279 | fi | |
11280 | ||
11281 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11282 | for ncn_progname in gdc; do | |
11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11284 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11285 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11286 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11288 | $as_echo "yes" >&6; } | |
11289 | break | |
11290 | else | |
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11292 | $as_echo "no" >&6; } | |
11293 | fi | |
11294 | done | |
11295 | fi | |
11296 | ||
11297 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
11298 | for ncn_progname in gdc; do | |
11299 | if test -n "$ncn_target_tool_prefix"; then | |
11300 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11301 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11303 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11304 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
11305 | $as_echo_n "(cached) " >&6 |
11306 | else | |
11307 | if test -n "$GDC_FOR_TARGET"; then | |
11308 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11309 | else | |
11310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11311 | for as_dir in $PATH | |
11312 | do | |
11313 | IFS=$as_save_IFS | |
11314 | test -z "$as_dir" && as_dir=. | |
11315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
11317 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11319 | break 2 | |
11320 | fi | |
11321 | done | |
11322 | done | |
11323 | IFS=$as_save_IFS | |
11324 | ||
11325 | fi | |
11326 | fi | |
11327 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11328 | if test -n "$GDC_FOR_TARGET"; then | |
11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11330 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11331 | else | |
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11333 | $as_echo "no" >&6; } | |
11334 | fi | |
11335 | ||
11336 | ||
11337 | fi | |
11338 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
11339 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11340 | set dummy ${ncn_progname}; ac_word=$2 | |
11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11342 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11343 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
11344 | $as_echo_n "(cached) " >&6 |
11345 | else | |
11346 | if test -n "$GDC_FOR_TARGET"; then | |
11347 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11348 | else | |
11349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11350 | for as_dir in $PATH | |
11351 | do | |
11352 | IFS=$as_save_IFS | |
11353 | test -z "$as_dir" && as_dir=. | |
11354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
11356 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
11357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11358 | break 2 | |
11359 | fi | |
11360 | done | |
11361 | done | |
11362 | IFS=$as_save_IFS | |
11363 | ||
11364 | fi | |
11365 | fi | |
11366 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11367 | if test -n "$GDC_FOR_TARGET"; then | |
11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11369 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11370 | else | |
11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11372 | $as_echo "no" >&6; } | |
11373 | fi | |
11374 | ||
11375 | ||
11376 | fi | |
11377 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
11378 | done | |
11379 | fi | |
11380 | ||
11381 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
11382 | set dummy gdc | |
11383 | if test $build = $target ; then | |
11384 | GDC_FOR_TARGET="$2" | |
11385 | else | |
11386 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11387 | fi | |
11388 | else | |
11389 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
11390 | fi | |
11391 | ||
11392 | ||
11393 | ||
e8b05380 PB |
11394 | cat > conftest.c << \EOF |
11395 | #ifdef __GNUC__ | |
11396 | gcc_yay; | |
11397 | #endif | |
11398 | EOF | |
11399 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
11400 | have_gcc_for_target=yes | |
11401 | else | |
11402 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
11403 | have_gcc_for_target=no | |
11404 | fi | |
11405 | rm conftest.c | |
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
11411 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
11413 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11414 | if test -x $with_build_time_tools/ar; then |
11415 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
11416 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
11418 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 11419 | else |
5213506e RW |
11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11421 | $as_echo "no" >&6; } | |
d1f8db0c | 11422 | fi |
e8b05380 PB |
11423 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11424 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
11425 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
11426 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
11427 | fi |
11428 | fi | |
3e19841a | 11429 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11430 | # Extract the first word of "ar", so it can be a program name with args. |
11431 | set dummy ar; ac_word=$2 | |
5213506e RW |
11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11433 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11434 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 11435 | $as_echo_n "(cached) " >&6 |
e8b05380 | 11436 | else |
1c710c3c DJ |
11437 | case $AR_FOR_TARGET in |
11438 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11439 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11440 | ;; | |
e8b05380 | 11441 | *) |
1c710c3c DJ |
11442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11443 | for as_dir in $gcc_cv_tool_dirs | |
11444 | do | |
11445 | IFS=$as_save_IFS | |
11446 | test -z "$as_dir" && as_dir=. | |
5213506e | 11447 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11449 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11451 | break 2 |
11452 | fi | |
11453 | done | |
5213506e RW |
11454 | done |
11455 | IFS=$as_save_IFS | |
1c710c3c | 11456 | |
e8b05380 PB |
11457 | ;; |
11458 | esac | |
11459 | fi | |
1c710c3c | 11460 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 11461 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11463 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 11464 | else |
5213506e RW |
11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11466 | $as_echo "no" >&6; } | |
4de997d1 PB |
11467 | fi |
11468 | ||
5213506e | 11469 | |
e8b05380 PB |
11470 | fi |
11471 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
11472 | |
11473 | ||
11474 | if test -n "$AR_FOR_TARGET"; then | |
11475 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11476 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11477 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11478 | fi | |
11479 | ||
11480 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11481 | for ncn_progname in ar; do | |
11482 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11483 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11485 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11486 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 11487 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11488 | else |
11489 | if test -n "$AR_FOR_TARGET"; then | |
11490 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11491 | else | |
11492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11493 | for as_dir in $PATH | |
11494 | do | |
11495 | IFS=$as_save_IFS | |
11496 | test -z "$as_dir" && as_dir=. | |
5213506e | 11497 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11498 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11499 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11501 | break 2 |
11502 | fi | |
11503 | done | |
5213506e RW |
11504 | done |
11505 | IFS=$as_save_IFS | |
278a7a38 AO |
11506 | |
11507 | fi | |
11508 | fi | |
11509 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11510 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11512 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 11513 | else |
5213506e RW |
11514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11515 | $as_echo "no" >&6; } | |
278a7a38 AO |
11516 | fi |
11517 | ||
5213506e | 11518 | |
278a7a38 AO |
11519 | done |
11520 | fi | |
11521 | ||
11522 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11523 | for ncn_progname in ar; do |
5213506e RW |
11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11525 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11526 | if test -x $with_build_time_tools/${ncn_progname}; then |
11527 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11529 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11530 | break |
11531 | else | |
5213506e RW |
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11533 | $as_echo "no" >&6; } | |
e8b05380 PB |
11534 | fi |
11535 | done | |
11536 | fi | |
11537 | ||
11538 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
11539 | for ncn_progname in ar; do | |
11540 | if test -n "$ncn_target_tool_prefix"; then | |
11541 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11542 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11544 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11545 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 11546 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11547 | else |
e8b05380 PB |
11548 | if test -n "$AR_FOR_TARGET"; then |
11549 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11550 | else |
1c710c3c DJ |
11551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11552 | for as_dir in $PATH | |
11553 | do | |
11554 | IFS=$as_save_IFS | |
11555 | test -z "$as_dir" && as_dir=. | |
5213506e | 11556 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11558 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11560 | break 2 |
11561 | fi | |
11562 | done | |
5213506e RW |
11563 | done |
11564 | IFS=$as_save_IFS | |
1c710c3c | 11565 | |
4de997d1 PB |
11566 | fi |
11567 | fi | |
1c710c3c | 11568 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11569 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11571 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 11572 | else |
5213506e RW |
11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11574 | $as_echo "no" >&6; } | |
4de997d1 PB |
11575 | fi |
11576 | ||
5213506e | 11577 | |
e8b05380 PB |
11578 | fi |
11579 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11580 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11581 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11583 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11584 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 11585 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
11586 | else |
11587 | if test -n "$AR_FOR_TARGET"; then | |
11588 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11589 | else | |
1c710c3c DJ |
11590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11591 | for as_dir in $PATH | |
11592 | do | |
11593 | IFS=$as_save_IFS | |
11594 | test -z "$as_dir" && as_dir=. | |
5213506e | 11595 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11596 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11597 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11599 | break 2 |
11600 | fi | |
11601 | done | |
5213506e RW |
11602 | done |
11603 | IFS=$as_save_IFS | |
1c710c3c | 11604 | |
e8b05380 PB |
11605 | fi |
11606 | fi | |
1c710c3c | 11607 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11608 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11610 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 11611 | else |
5213506e RW |
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11613 | $as_echo "no" >&6; } | |
e8b05380 | 11614 | fi |
1c710c3c | 11615 | |
5213506e | 11616 | |
e8b05380 PB |
11617 | fi |
11618 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11619 | done | |
11620 | fi | |
1c710c3c | 11621 | |
e8b05380 PB |
11622 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11623 | set dummy ar | |
11624 | if test $build = $target ; then | |
11625 | AR_FOR_TARGET="$2" | |
11626 | else | |
11627 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 11628 | fi |
1c00b503 PB |
11629 | else |
11630 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
11631 | fi |
11632 | ||
d1f8db0c PB |
11633 | else |
11634 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
11635 | fi |
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11641 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11643 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11644 | if test -x $with_build_time_tools/as; then |
11645 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11646 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11648 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 11649 | else |
5213506e RW |
11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11651 | $as_echo "no" >&6; } | |
d1f8db0c | 11652 | fi |
e8b05380 PB |
11653 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11654 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
11655 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11656 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
11657 | fi |
11658 | fi | |
3e19841a | 11659 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11660 | # Extract the first word of "as", so it can be a program name with args. |
11661 | set dummy as; ac_word=$2 | |
5213506e RW |
11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11663 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11664 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 11665 | $as_echo_n "(cached) " >&6 |
e8b05380 | 11666 | else |
1c710c3c DJ |
11667 | case $AS_FOR_TARGET in |
11668 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11669 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11670 | ;; | |
e8b05380 | 11671 | *) |
1c710c3c DJ |
11672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11673 | for as_dir in $gcc_cv_tool_dirs | |
11674 | do | |
11675 | IFS=$as_save_IFS | |
11676 | test -z "$as_dir" && as_dir=. | |
5213506e | 11677 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11679 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11681 | break 2 |
11682 | fi | |
11683 | done | |
5213506e RW |
11684 | done |
11685 | IFS=$as_save_IFS | |
1c710c3c | 11686 | |
e8b05380 PB |
11687 | ;; |
11688 | esac | |
11689 | fi | |
1c710c3c | 11690 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 11691 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11693 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11694 | else |
5213506e RW |
11695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11696 | $as_echo "no" >&6; } | |
e8b05380 PB |
11697 | fi |
11698 | ||
5213506e | 11699 | |
e8b05380 PB |
11700 | fi |
11701 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
11702 | |
11703 | ||
11704 | if test -n "$AS_FOR_TARGET"; then | |
11705 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11706 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11707 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11708 | fi | |
11709 | ||
11710 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11711 | for ncn_progname in as; do | |
11712 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11713 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11715 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11716 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 11717 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11718 | else |
11719 | if test -n "$AS_FOR_TARGET"; then | |
11720 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11721 | else | |
11722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11723 | for as_dir in $PATH | |
11724 | do | |
11725 | IFS=$as_save_IFS | |
11726 | test -z "$as_dir" && as_dir=. | |
5213506e | 11727 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11729 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11731 | break 2 |
11732 | fi | |
11733 | done | |
5213506e RW |
11734 | done |
11735 | IFS=$as_save_IFS | |
278a7a38 AO |
11736 | |
11737 | fi | |
11738 | fi | |
11739 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11740 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11742 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 11743 | else |
5213506e RW |
11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11745 | $as_echo "no" >&6; } | |
278a7a38 AO |
11746 | fi |
11747 | ||
5213506e | 11748 | |
278a7a38 AO |
11749 | done |
11750 | fi | |
11751 | ||
11752 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11753 | for ncn_progname in as; do |
5213506e RW |
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11755 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11756 | if test -x $with_build_time_tools/${ncn_progname}; then |
11757 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11759 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11760 | break |
11761 | else | |
5213506e RW |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11763 | $as_echo "no" >&6; } | |
e8b05380 PB |
11764 | fi |
11765 | done | |
11766 | fi | |
11767 | ||
11768 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11769 | for ncn_progname in as; do | |
11770 | if test -n "$ncn_target_tool_prefix"; then | |
11771 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11772 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11774 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11775 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 11776 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
11777 | else |
11778 | if test -n "$AS_FOR_TARGET"; then | |
11779 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11780 | else | |
1c710c3c DJ |
11781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11782 | for as_dir in $PATH | |
11783 | do | |
11784 | IFS=$as_save_IFS | |
11785 | test -z "$as_dir" && as_dir=. | |
5213506e | 11786 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11788 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11790 | break 2 |
11791 | fi | |
11792 | done | |
5213506e RW |
11793 | done |
11794 | IFS=$as_save_IFS | |
1c710c3c | 11795 | |
e8b05380 PB |
11796 | fi |
11797 | fi | |
1c710c3c | 11798 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11799 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11801 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11802 | else |
5213506e RW |
11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11804 | $as_echo "no" >&6; } | |
e8b05380 PB |
11805 | fi |
11806 | ||
5213506e | 11807 | |
e8b05380 PB |
11808 | fi |
11809 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11810 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11811 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11813 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11814 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 11815 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11816 | else |
e8b05380 PB |
11817 | if test -n "$AS_FOR_TARGET"; then |
11818 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11819 | else |
1c710c3c DJ |
11820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11821 | for as_dir in $PATH | |
11822 | do | |
11823 | IFS=$as_save_IFS | |
11824 | test -z "$as_dir" && as_dir=. | |
5213506e | 11825 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11827 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11829 | break 2 |
11830 | fi | |
11831 | done | |
5213506e RW |
11832 | done |
11833 | IFS=$as_save_IFS | |
1c710c3c | 11834 | |
4de997d1 PB |
11835 | fi |
11836 | fi | |
1c710c3c | 11837 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11838 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11840 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11841 | else |
5213506e RW |
11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11843 | $as_echo "no" >&6; } | |
4de997d1 | 11844 | fi |
1c710c3c | 11845 | |
5213506e | 11846 | |
e8b05380 PB |
11847 | fi |
11848 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11849 | done | |
11850 | fi | |
1c710c3c | 11851 | |
e8b05380 PB |
11852 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11853 | set dummy as | |
11854 | if test $build = $target ; then | |
11855 | AS_FOR_TARGET="$2" | |
11856 | else | |
11857 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11858 | fi |
1c00b503 PB |
11859 | else |
11860 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11861 | fi |
2693c0b0 | 11862 | |
d1f8db0c PB |
11863 | else |
11864 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11865 | fi |
11866 | ||
e8b05380 PB |
11867 | |
11868 | ||
11869 | ||
11870 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11871 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11873 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11874 | if test -x $with_build_time_tools/dlltool; then |
11875 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11876 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11878 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11879 | else |
5213506e RW |
11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11881 | $as_echo "no" >&6; } | |
d1f8db0c | 11882 | fi |
e8b05380 PB |
11883 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11884 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11885 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11886 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11887 | fi |
11888 | fi | |
3e19841a | 11889 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11890 | # Extract the first word of "dlltool", so it can be a program name with args. |
11891 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11893 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11894 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11895 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11896 | else |
1c710c3c DJ |
11897 | case $DLLTOOL_FOR_TARGET in |
11898 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11899 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11900 | ;; | |
e8b05380 | 11901 | *) |
1c710c3c DJ |
11902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11903 | for as_dir in $gcc_cv_tool_dirs | |
11904 | do | |
11905 | IFS=$as_save_IFS | |
11906 | test -z "$as_dir" && as_dir=. | |
5213506e | 11907 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11908 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11909 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11911 | break 2 |
11912 | fi | |
11913 | done | |
5213506e RW |
11914 | done |
11915 | IFS=$as_save_IFS | |
1c710c3c | 11916 | |
e8b05380 PB |
11917 | ;; |
11918 | esac | |
4de997d1 | 11919 | fi |
1c710c3c | 11920 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11921 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11923 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11924 | else |
5213506e RW |
11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11926 | $as_echo "no" >&6; } | |
4de997d1 PB |
11927 | fi |
11928 | ||
5213506e | 11929 | |
e8b05380 PB |
11930 | fi |
11931 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11932 | |
11933 | ||
11934 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11935 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11936 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11937 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11938 | fi | |
11939 | ||
11940 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11941 | for ncn_progname in dlltool; do | |
11942 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11943 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11945 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11946 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11947 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11948 | else |
11949 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11950 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11951 | else | |
11952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11953 | for as_dir in $PATH | |
11954 | do | |
11955 | IFS=$as_save_IFS | |
11956 | test -z "$as_dir" && as_dir=. | |
5213506e | 11957 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11959 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11961 | break 2 |
11962 | fi | |
11963 | done | |
5213506e RW |
11964 | done |
11965 | IFS=$as_save_IFS | |
278a7a38 AO |
11966 | |
11967 | fi | |
11968 | fi | |
11969 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11970 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11972 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 11973 | else |
5213506e RW |
11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11975 | $as_echo "no" >&6; } | |
278a7a38 AO |
11976 | fi |
11977 | ||
5213506e | 11978 | |
278a7a38 AO |
11979 | done |
11980 | fi | |
11981 | ||
11982 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11983 | for ncn_progname in dlltool; do |
5213506e RW |
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11985 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11986 | if test -x $with_build_time_tools/${ncn_progname}; then |
11987 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11989 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11990 | break |
11991 | else | |
5213506e RW |
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11993 | $as_echo "no" >&6; } | |
e8b05380 PB |
11994 | fi |
11995 | done | |
11996 | fi | |
11997 | ||
11998 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11999 | for ncn_progname in dlltool; do | |
12000 | if test -n "$ncn_target_tool_prefix"; then | |
12001 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12002 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12004 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12005 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 12006 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12007 | else |
e8b05380 PB |
12008 | if test -n "$DLLTOOL_FOR_TARGET"; then |
12009 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12010 | else |
1c710c3c DJ |
12011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12012 | for as_dir in $PATH | |
12013 | do | |
12014 | IFS=$as_save_IFS | |
12015 | test -z "$as_dir" && as_dir=. | |
5213506e | 12016 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12018 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12020 | break 2 |
12021 | fi | |
12022 | done | |
5213506e RW |
12023 | done |
12024 | IFS=$as_save_IFS | |
1c710c3c | 12025 | |
4de997d1 PB |
12026 | fi |
12027 | fi | |
1c710c3c | 12028 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 12029 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
12031 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 12032 | else |
5213506e RW |
12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12034 | $as_echo "no" >&6; } | |
4de997d1 | 12035 | fi |
4de997d1 | 12036 | |
5213506e | 12037 | |
e8b05380 PB |
12038 | fi |
12039 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
12040 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12041 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12043 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12044 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 12045 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12046 | else |
e8b05380 PB |
12047 | if test -n "$DLLTOOL_FOR_TARGET"; then |
12048 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12049 | else |
1c710c3c DJ |
12050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12051 | for as_dir in $PATH | |
12052 | do | |
12053 | IFS=$as_save_IFS | |
12054 | test -z "$as_dir" && as_dir=. | |
5213506e | 12055 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12056 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12057 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 12058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12059 | break 2 |
12060 | fi | |
12061 | done | |
5213506e RW |
12062 | done |
12063 | IFS=$as_save_IFS | |
1c710c3c | 12064 | |
4de997d1 PB |
12065 | fi |
12066 | fi | |
1c710c3c | 12067 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 12068 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
12070 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 12071 | else |
5213506e RW |
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12073 | $as_echo "no" >&6; } | |
4de997d1 | 12074 | fi |
1c710c3c | 12075 | |
5213506e | 12076 | |
e8b05380 PB |
12077 | fi |
12078 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
12079 | done | |
12080 | fi | |
1c710c3c | 12081 | |
e8b05380 PB |
12082 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
12083 | set dummy dlltool | |
12084 | if test $build = $target ; then | |
12085 | DLLTOOL_FOR_TARGET="$2" | |
12086 | else | |
12087 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12088 | fi | |
1c00b503 PB |
12089 | else |
12090 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
12091 | fi |
12092 | ||
d1f8db0c PB |
12093 | else |
12094 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
12095 | fi |
12096 | ||
4de997d1 | 12097 | |
e8b05380 PB |
12098 | |
12099 | ||
c7c99407 IS |
12100 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
12101 | if test -n "$with_build_time_tools"; then | |
12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
12103 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
12104 | if test -x $with_build_time_tools/dsymutil; then | |
12105 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
12106 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
12108 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
12109 | else | |
12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12111 | $as_echo "no" >&6; } | |
12112 | fi | |
12113 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12114 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
12115 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
12116 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
12117 | fi | |
12118 | fi | |
12119 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12120 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
12121 | set dummy dsymutil; ac_word=$2 | |
12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12123 | $as_echo_n "checking for $ac_word... " >&6; } | |
12124 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
12125 | $as_echo_n "(cached) " >&6 | |
12126 | else | |
12127 | case $DSYMUTIL_FOR_TARGET in | |
12128 | [\\/]* | ?:[\\/]*) | |
12129 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
12130 | ;; | |
12131 | *) | |
12132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12133 | for as_dir in $gcc_cv_tool_dirs | |
12134 | do | |
12135 | IFS=$as_save_IFS | |
12136 | test -z "$as_dir" && as_dir=. | |
12137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12138 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12139 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12141 | break 2 | |
12142 | fi | |
12143 | done | |
12144 | done | |
12145 | IFS=$as_save_IFS | |
12146 | ||
12147 | ;; | |
12148 | esac | |
12149 | fi | |
12150 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
12151 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
12153 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
12154 | else | |
12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12156 | $as_echo "no" >&6; } | |
12157 | fi | |
12158 | ||
12159 | ||
12160 | fi | |
12161 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
12162 | ||
12163 | ||
12164 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
12165 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
12166 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
12167 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
12168 | fi | |
12169 | ||
12170 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
12171 | for ncn_progname in dsymutil; do | |
12172 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12173 | set dummy ${ncn_progname}; ac_word=$2 | |
12174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12175 | $as_echo_n "checking for $ac_word... " >&6; } | |
12176 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
12177 | $as_echo_n "(cached) " >&6 | |
12178 | else | |
12179 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
12180 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
12181 | else | |
12182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12183 | for as_dir in $PATH | |
12184 | do | |
12185 | IFS=$as_save_IFS | |
12186 | test -z "$as_dir" && as_dir=. | |
12187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12189 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
12190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12191 | break 2 | |
12192 | fi | |
12193 | done | |
12194 | done | |
12195 | IFS=$as_save_IFS | |
12196 | ||
12197 | fi | |
12198 | fi | |
12199 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
12200 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
12202 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
12203 | else | |
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12205 | $as_echo "no" >&6; } | |
12206 | fi | |
12207 | ||
12208 | ||
12209 | done | |
12210 | fi | |
12211 | ||
12212 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12213 | for ncn_progname in dsymutil; do | |
12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12215 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12216 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12217 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12219 | $as_echo "yes" >&6; } | |
12220 | break | |
12221 | else | |
12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12223 | $as_echo "no" >&6; } | |
12224 | fi | |
12225 | done | |
12226 | fi | |
12227 | ||
12228 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
12229 | for ncn_progname in dsymutil; do | |
12230 | if test -n "$ncn_target_tool_prefix"; then | |
12231 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12232 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12234 | $as_echo_n "checking for $ac_word... " >&6; } | |
12235 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
12236 | $as_echo_n "(cached) " >&6 | |
12237 | else | |
12238 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
12239 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
12240 | else | |
12241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12242 | for as_dir in $PATH | |
12243 | do | |
12244 | IFS=$as_save_IFS | |
12245 | test -z "$as_dir" && as_dir=. | |
12246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12248 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12250 | break 2 | |
12251 | fi | |
12252 | done | |
12253 | done | |
12254 | IFS=$as_save_IFS | |
12255 | ||
12256 | fi | |
12257 | fi | |
12258 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
12259 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
12261 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
12262 | else | |
12263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12264 | $as_echo "no" >&6; } | |
12265 | fi | |
12266 | ||
12267 | ||
12268 | fi | |
12269 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
12270 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12271 | set dummy ${ncn_progname}; ac_word=$2 | |
12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12273 | $as_echo_n "checking for $ac_word... " >&6; } | |
12274 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
12275 | $as_echo_n "(cached) " >&6 | |
12276 | else | |
12277 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
12278 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
12279 | else | |
12280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12281 | for as_dir in $PATH | |
12282 | do | |
12283 | IFS=$as_save_IFS | |
12284 | test -z "$as_dir" && as_dir=. | |
12285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12287 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
12288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12289 | break 2 | |
12290 | fi | |
12291 | done | |
12292 | done | |
12293 | IFS=$as_save_IFS | |
12294 | ||
12295 | fi | |
12296 | fi | |
12297 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
12298 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
12300 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
12301 | else | |
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12303 | $as_echo "no" >&6; } | |
12304 | fi | |
12305 | ||
12306 | ||
12307 | fi | |
12308 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
12309 | done | |
12310 | fi | |
12311 | ||
12312 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
12313 | set dummy dsymutil | |
12314 | if test $build = $target ; then | |
12315 | DSYMUTIL_FOR_TARGET="$2" | |
12316 | else | |
12317 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12318 | fi | |
12319 | else | |
12320 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
12321 | fi | |
12322 | ||
12323 | else | |
12324 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
12325 | fi | |
12326 | ||
12327 | ||
12328 | ||
12329 | ||
e8b05380 PB |
12330 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
12331 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
12333 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12334 | if test -x $with_build_time_tools/ld; then |
12335 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
12336 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
12338 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 12339 | else |
5213506e RW |
12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12341 | $as_echo "no" >&6; } | |
d1f8db0c | 12342 | fi |
e8b05380 PB |
12343 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12344 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
12345 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
12346 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 12347 | fi |
e8b05380 | 12348 | fi |
3e19841a | 12349 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12350 | # Extract the first word of "ld", so it can be a program name with args. |
12351 | set dummy ld; ac_word=$2 | |
5213506e RW |
12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12353 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12354 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 12355 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12356 | else |
1c710c3c DJ |
12357 | case $LD_FOR_TARGET in |
12358 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12359 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
12360 | ;; | |
e8b05380 | 12361 | *) |
1c710c3c DJ |
12362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12363 | for as_dir in $gcc_cv_tool_dirs | |
12364 | do | |
12365 | IFS=$as_save_IFS | |
12366 | test -z "$as_dir" && as_dir=. | |
5213506e | 12367 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12369 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12371 | break 2 |
12372 | fi | |
12373 | done | |
5213506e RW |
12374 | done |
12375 | IFS=$as_save_IFS | |
1c710c3c | 12376 | |
e8b05380 PB |
12377 | ;; |
12378 | esac | |
4de997d1 | 12379 | fi |
1c710c3c | 12380 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 12381 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12383 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 12384 | else |
5213506e RW |
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12386 | $as_echo "no" >&6; } | |
4de997d1 | 12387 | fi |
2693c0b0 | 12388 | |
5213506e | 12389 | |
e8b05380 PB |
12390 | fi |
12391 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
12392 | |
12393 | ||
12394 | if test -n "$LD_FOR_TARGET"; then | |
12395 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
12396 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
12397 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
12398 | fi | |
12399 | ||
12400 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
12401 | for ncn_progname in ld; do | |
12402 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12403 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12405 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12406 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 12407 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12408 | else |
12409 | if test -n "$LD_FOR_TARGET"; then | |
12410 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
12411 | else | |
12412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12413 | for as_dir in $PATH | |
12414 | do | |
12415 | IFS=$as_save_IFS | |
12416 | test -z "$as_dir" && as_dir=. | |
5213506e | 12417 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12418 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12419 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 12420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12421 | break 2 |
12422 | fi | |
12423 | done | |
5213506e RW |
12424 | done |
12425 | IFS=$as_save_IFS | |
278a7a38 AO |
12426 | |
12427 | fi | |
12428 | fi | |
12429 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
12430 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12432 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 12433 | else |
5213506e RW |
12434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12435 | $as_echo "no" >&6; } | |
278a7a38 AO |
12436 | fi |
12437 | ||
5213506e | 12438 | |
278a7a38 AO |
12439 | done |
12440 | fi | |
12441 | ||
12442 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12443 | for ncn_progname in ld; do |
5213506e RW |
12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12445 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12446 | if test -x $with_build_time_tools/${ncn_progname}; then |
12447 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12449 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12450 | break |
12451 | else | |
5213506e RW |
12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12453 | $as_echo "no" >&6; } | |
e8b05380 PB |
12454 | fi |
12455 | done | |
ca9f4b81 AO |
12456 | fi |
12457 | ||
e8b05380 PB |
12458 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
12459 | for ncn_progname in ld; do | |
12460 | if test -n "$ncn_target_tool_prefix"; then | |
12461 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12462 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12464 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12465 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 12466 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12467 | else |
4de997d1 PB |
12468 | if test -n "$LD_FOR_TARGET"; then |
12469 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12470 | else |
1c710c3c DJ |
12471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12472 | for as_dir in $PATH | |
12473 | do | |
12474 | IFS=$as_save_IFS | |
12475 | test -z "$as_dir" && as_dir=. | |
5213506e | 12476 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12478 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12480 | break 2 |
12481 | fi | |
12482 | done | |
5213506e RW |
12483 | done |
12484 | IFS=$as_save_IFS | |
1c710c3c | 12485 | |
ca9f4b81 AO |
12486 | fi |
12487 | fi | |
1c710c3c | 12488 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 12489 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12491 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 12492 | else |
5213506e RW |
12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12494 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12495 | fi |
12496 | ||
5213506e | 12497 | |
e8b05380 PB |
12498 | fi |
12499 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
12500 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12501 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12503 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12504 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 12505 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12506 | else |
2693c0b0 PB |
12507 | if test -n "$LD_FOR_TARGET"; then |
12508 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12509 | else |
1c710c3c DJ |
12510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12511 | for as_dir in $PATH | |
12512 | do | |
12513 | IFS=$as_save_IFS | |
12514 | test -z "$as_dir" && as_dir=. | |
5213506e | 12515 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12516 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12517 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 12518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12519 | break 2 |
12520 | fi | |
12521 | done | |
5213506e RW |
12522 | done |
12523 | IFS=$as_save_IFS | |
1c710c3c | 12524 | |
ca9f4b81 AO |
12525 | fi |
12526 | fi | |
1c710c3c | 12527 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 12528 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12530 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 12531 | else |
5213506e RW |
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12533 | $as_echo "no" >&6; } | |
ca9f4b81 | 12534 | fi |
1c710c3c | 12535 | |
5213506e | 12536 | |
e8b05380 PB |
12537 | fi |
12538 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
12539 | done | |
12540 | fi | |
1c710c3c | 12541 | |
2693c0b0 PB |
12542 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
12543 | set dummy ld | |
12544 | if test $build = $target ; then | |
12545 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 12546 | else |
2693c0b0 | 12547 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12548 | fi |
1c00b503 PB |
12549 | else |
12550 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
12551 | fi |
12552 | ||
d1f8db0c PB |
12553 | else |
12554 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
12555 | fi |
12556 | ||
12557 | ||
12558 | ||
12559 | ||
12560 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12561 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
12563 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12564 | if test -x $with_build_time_tools/lipo; then |
12565 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
12566 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
12568 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 12569 | else |
5213506e RW |
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12571 | $as_echo "no" >&6; } | |
d1f8db0c | 12572 | fi |
e8b05380 PB |
12573 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12574 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
12575 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
12576 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
12577 | fi |
12578 | fi | |
278a7a38 AO |
12579 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
12580 | # Extract the first word of "lipo", so it can be a program name with args. | |
12581 | set dummy lipo; ac_word=$2 | |
5213506e RW |
12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12583 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12584 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12585 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12586 | else |
12587 | case $LIPO_FOR_TARGET in | |
12588 | [\\/]* | ?:[\\/]*) | |
12589 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
12590 | ;; | |
12591 | *) | |
12592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12593 | for as_dir in $gcc_cv_tool_dirs | |
12594 | do | |
12595 | IFS=$as_save_IFS | |
12596 | test -z "$as_dir" && as_dir=. | |
5213506e | 12597 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12599 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12601 | break 2 |
12602 | fi | |
12603 | done | |
5213506e RW |
12604 | done |
12605 | IFS=$as_save_IFS | |
278a7a38 AO |
12606 | |
12607 | ;; | |
12608 | esac | |
12609 | fi | |
12610 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 12611 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12613 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 12614 | else |
5213506e RW |
12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12616 | $as_echo "no" >&6; } | |
278a7a38 AO |
12617 | fi |
12618 | ||
5213506e | 12619 | |
278a7a38 AO |
12620 | fi |
12621 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12622 | ||
12623 | ||
12624 | if test -n "$LIPO_FOR_TARGET"; then | |
12625 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
12626 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12627 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
12628 | fi | |
12629 | ||
12630 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12631 | for ncn_progname in lipo; do | |
12632 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12633 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12635 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12636 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12637 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12638 | else |
278a7a38 AO |
12639 | if test -n "$LIPO_FOR_TARGET"; then |
12640 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12641 | else | |
12642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12643 | for as_dir in $PATH | |
1c710c3c DJ |
12644 | do |
12645 | IFS=$as_save_IFS | |
12646 | test -z "$as_dir" && as_dir=. | |
5213506e | 12647 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12648 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12649 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 12650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12651 | break 2 |
12652 | fi | |
12653 | done | |
5213506e RW |
12654 | done |
12655 | IFS=$as_save_IFS | |
1c710c3c | 12656 | |
e8b05380 | 12657 | fi |
278a7a38 AO |
12658 | fi |
12659 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 12660 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12662 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 12663 | else |
5213506e RW |
12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12665 | $as_echo "no" >&6; } | |
e8b05380 PB |
12666 | fi |
12667 | ||
5213506e | 12668 | |
278a7a38 | 12669 | done |
e8b05380 | 12670 | fi |
278a7a38 AO |
12671 | |
12672 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12673 | for ncn_progname in lipo; do |
5213506e RW |
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12675 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12676 | if test -x $with_build_time_tools/${ncn_progname}; then |
12677 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12679 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12680 | break |
12681 | else | |
5213506e RW |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12683 | $as_echo "no" >&6; } | |
e8b05380 PB |
12684 | fi |
12685 | done | |
12686 | fi | |
12687 | ||
12688 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12689 | for ncn_progname in lipo; do | |
12690 | if test -n "$ncn_target_tool_prefix"; then | |
12691 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12692 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12694 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12695 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12696 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
12697 | else |
12698 | if test -n "$LIPO_FOR_TARGET"; then | |
12699 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12700 | else | |
1c710c3c DJ |
12701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12702 | for as_dir in $PATH | |
12703 | do | |
12704 | IFS=$as_save_IFS | |
12705 | test -z "$as_dir" && as_dir=. | |
5213506e | 12706 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12707 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12708 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12710 | break 2 |
12711 | fi | |
12712 | done | |
5213506e RW |
12713 | done |
12714 | IFS=$as_save_IFS | |
1c710c3c | 12715 | |
040b1c5a GK |
12716 | fi |
12717 | fi | |
1c710c3c | 12718 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 12719 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12721 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 12722 | else |
5213506e RW |
12723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12724 | $as_echo "no" >&6; } | |
040b1c5a GK |
12725 | fi |
12726 | ||
5213506e | 12727 | |
e8b05380 PB |
12728 | fi |
12729 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12730 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12731 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12733 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12734 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12735 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
12736 | else |
12737 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
12738 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
12739 | else | |
1c710c3c DJ |
12740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12741 | for as_dir in $PATH | |
12742 | do | |
12743 | IFS=$as_save_IFS | |
12744 | test -z "$as_dir" && as_dir=. | |
5213506e | 12745 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12747 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 12748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12749 | break 2 |
12750 | fi | |
12751 | done | |
5213506e RW |
12752 | done |
12753 | IFS=$as_save_IFS | |
1c710c3c | 12754 | |
040b1c5a GK |
12755 | fi |
12756 | fi | |
1c710c3c | 12757 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 12758 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12760 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 12761 | else |
5213506e RW |
12762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12763 | $as_echo "no" >&6; } | |
040b1c5a | 12764 | fi |
1c710c3c | 12765 | |
5213506e | 12766 | |
e8b05380 PB |
12767 | fi |
12768 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12769 | done | |
12770 | fi | |
1c710c3c | 12771 | |
040b1c5a GK |
12772 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12773 | set dummy lipo | |
12774 | if test $build = $target ; then | |
12775 | LIPO_FOR_TARGET="$2" | |
12776 | else | |
12777 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12778 | fi | |
1c00b503 PB |
12779 | else |
12780 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
12781 | fi |
12782 | ||
d1f8db0c PB |
12783 | else |
12784 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
12785 | fi |
12786 | ||
12787 | ||
12788 | ||
12789 | ||
12790 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12791 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12793 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12794 | if test -x $with_build_time_tools/nm; then |
12795 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12796 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12798 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 12799 | else |
5213506e RW |
12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12801 | $as_echo "no" >&6; } | |
d1f8db0c | 12802 | fi |
e8b05380 PB |
12803 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12804 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
12805 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12806 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
12807 | fi |
12808 | fi | |
3e19841a | 12809 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12810 | # Extract the first word of "nm", so it can be a program name with args. |
12811 | set dummy nm; ac_word=$2 | |
5213506e RW |
12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12813 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12814 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 12815 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12816 | else |
1c710c3c DJ |
12817 | case $NM_FOR_TARGET in |
12818 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12819 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12820 | ;; | |
e8b05380 | 12821 | *) |
1c710c3c DJ |
12822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12823 | for as_dir in $gcc_cv_tool_dirs | |
12824 | do | |
12825 | IFS=$as_save_IFS | |
12826 | test -z "$as_dir" && as_dir=. | |
5213506e | 12827 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12829 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12831 | break 2 |
12832 | fi | |
12833 | done | |
5213506e RW |
12834 | done |
12835 | IFS=$as_save_IFS | |
1c710c3c | 12836 | |
e8b05380 PB |
12837 | ;; |
12838 | esac | |
12839 | fi | |
1c710c3c | 12840 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 12841 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12843 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 12844 | else |
5213506e RW |
12845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12846 | $as_echo "no" >&6; } | |
e8b05380 PB |
12847 | fi |
12848 | ||
5213506e | 12849 | |
e8b05380 PB |
12850 | fi |
12851 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
12852 | |
12853 | ||
12854 | if test -n "$NM_FOR_TARGET"; then | |
12855 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12856 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12857 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12858 | fi | |
12859 | ||
12860 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12861 | for ncn_progname in nm; do | |
12862 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12863 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12865 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12866 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 12867 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12868 | else |
12869 | if test -n "$NM_FOR_TARGET"; then | |
12870 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12871 | else | |
12872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12873 | for as_dir in $PATH | |
12874 | do | |
12875 | IFS=$as_save_IFS | |
12876 | test -z "$as_dir" && as_dir=. | |
5213506e | 12877 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12879 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12881 | break 2 |
12882 | fi | |
12883 | done | |
5213506e RW |
12884 | done |
12885 | IFS=$as_save_IFS | |
278a7a38 AO |
12886 | |
12887 | fi | |
12888 | fi | |
12889 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12890 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12892 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 12893 | else |
5213506e RW |
12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12895 | $as_echo "no" >&6; } | |
278a7a38 AO |
12896 | fi |
12897 | ||
5213506e | 12898 | |
278a7a38 AO |
12899 | done |
12900 | fi | |
12901 | ||
12902 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12903 | for ncn_progname in nm; do |
5213506e RW |
12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12905 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12906 | if test -x $with_build_time_tools/${ncn_progname}; then |
12907 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12909 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12910 | break |
12911 | else | |
5213506e RW |
12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12913 | $as_echo "no" >&6; } | |
e8b05380 PB |
12914 | fi |
12915 | done | |
12916 | fi | |
12917 | ||
12918 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12919 | for ncn_progname in nm; do | |
12920 | if test -n "$ncn_target_tool_prefix"; then | |
12921 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12922 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12924 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12925 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 12926 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12927 | else |
4de997d1 PB |
12928 | if test -n "$NM_FOR_TARGET"; then |
12929 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12930 | else |
1c710c3c DJ |
12931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12932 | for as_dir in $PATH | |
12933 | do | |
12934 | IFS=$as_save_IFS | |
12935 | test -z "$as_dir" && as_dir=. | |
5213506e | 12936 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12938 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12940 | break 2 |
12941 | fi | |
12942 | done | |
5213506e RW |
12943 | done |
12944 | IFS=$as_save_IFS | |
1c710c3c | 12945 | |
ca9f4b81 AO |
12946 | fi |
12947 | fi | |
1c710c3c | 12948 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 12949 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12951 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12952 | else |
5213506e RW |
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12954 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12955 | fi |
12956 | ||
5213506e | 12957 | |
e8b05380 PB |
12958 | fi |
12959 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12960 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12961 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12963 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12964 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 12965 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12966 | else |
2693c0b0 PB |
12967 | if test -n "$NM_FOR_TARGET"; then |
12968 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12969 | else |
1c710c3c DJ |
12970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12971 | for as_dir in $PATH | |
12972 | do | |
12973 | IFS=$as_save_IFS | |
12974 | test -z "$as_dir" && as_dir=. | |
5213506e | 12975 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12977 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12979 | break 2 |
12980 | fi | |
12981 | done | |
5213506e RW |
12982 | done |
12983 | IFS=$as_save_IFS | |
1c710c3c | 12984 | |
ca9f4b81 AO |
12985 | fi |
12986 | fi | |
1c710c3c | 12987 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 12988 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12990 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12991 | else |
5213506e RW |
12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12993 | $as_echo "no" >&6; } | |
ca9f4b81 | 12994 | fi |
1c710c3c | 12995 | |
5213506e | 12996 | |
e8b05380 PB |
12997 | fi |
12998 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12999 | done | |
13000 | fi | |
1c710c3c | 13001 | |
2693c0b0 PB |
13002 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
13003 | set dummy nm | |
13004 | if test $build = $target ; then | |
13005 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 13006 | else |
2693c0b0 | 13007 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 13008 | fi |
1c00b503 PB |
13009 | else |
13010 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
13011 | fi |
13012 | ||
d1f8db0c PB |
13013 | else |
13014 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
13015 | fi |
13016 | ||
13017 | ||
13018 | ||
13019 | ||
9bccfdf5 AP |
13020 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
13021 | if test -n "$with_build_time_tools"; then | |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
13023 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
13024 | if test -x $with_build_time_tools/objcopy; then | |
13025 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
13026 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
13028 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
13029 | else | |
13030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13031 | $as_echo "no" >&6; } | |
13032 | fi | |
13033 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13034 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
13035 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
13036 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
13037 | fi | |
13038 | fi | |
13039 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13040 | # Extract the first word of "objcopy", so it can be a program name with args. | |
13041 | set dummy objcopy; ac_word=$2 | |
13042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13043 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13044 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
13045 | $as_echo_n "(cached) " >&6 |
13046 | else | |
13047 | case $OBJCOPY_FOR_TARGET in | |
13048 | [\\/]* | ?:[\\/]*) | |
13049 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
13050 | ;; | |
13051 | *) | |
13052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13053 | for as_dir in $gcc_cv_tool_dirs | |
13054 | do | |
13055 | IFS=$as_save_IFS | |
13056 | test -z "$as_dir" && as_dir=. | |
13057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
13059 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13061 | break 2 | |
13062 | fi | |
13063 | done | |
13064 | done | |
13065 | IFS=$as_save_IFS | |
13066 | ||
13067 | ;; | |
13068 | esac | |
13069 | fi | |
13070 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
13071 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
13073 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
13074 | else | |
13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13076 | $as_echo "no" >&6; } | |
13077 | fi | |
13078 | ||
13079 | ||
13080 | fi | |
13081 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
13082 | ||
13083 | ||
13084 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13085 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
13086 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
13087 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
13088 | fi | |
13089 | ||
13090 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
13091 | for ncn_progname in objcopy; do | |
13092 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13093 | set dummy ${ncn_progname}; ac_word=$2 | |
13094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13095 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13096 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
13097 | $as_echo_n "(cached) " >&6 |
13098 | else | |
13099 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13100 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
13101 | else | |
13102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13103 | for as_dir in $PATH | |
13104 | do | |
13105 | IFS=$as_save_IFS | |
13106 | test -z "$as_dir" && as_dir=. | |
13107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13108 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
13109 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
13110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13111 | break 2 | |
13112 | fi | |
13113 | done | |
13114 | done | |
13115 | IFS=$as_save_IFS | |
13116 | ||
13117 | fi | |
13118 | fi | |
13119 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
13120 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
13122 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
13123 | else | |
13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13125 | $as_echo "no" >&6; } | |
13126 | fi | |
13127 | ||
13128 | ||
13129 | done | |
13130 | fi | |
13131 | ||
13132 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13133 | for ncn_progname in objcopy; do | |
13134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13135 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13136 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13137 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13139 | $as_echo "yes" >&6; } | |
13140 | break | |
13141 | else | |
13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13143 | $as_echo "no" >&6; } | |
13144 | fi | |
13145 | done | |
13146 | fi | |
13147 | ||
13148 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
13149 | for ncn_progname in objcopy; do | |
13150 | if test -n "$ncn_target_tool_prefix"; then | |
13151 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13152 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13154 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13155 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
13156 | $as_echo_n "(cached) " >&6 |
13157 | else | |
13158 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13159 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
13160 | else | |
13161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13162 | for as_dir in $PATH | |
13163 | do | |
13164 | IFS=$as_save_IFS | |
13165 | test -z "$as_dir" && as_dir=. | |
13166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
13168 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13170 | break 2 | |
13171 | fi | |
13172 | done | |
13173 | done | |
13174 | IFS=$as_save_IFS | |
13175 | ||
13176 | fi | |
13177 | fi | |
13178 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
13179 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
13181 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
13182 | else | |
13183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13184 | $as_echo "no" >&6; } | |
13185 | fi | |
13186 | ||
13187 | ||
13188 | fi | |
13189 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
13190 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13191 | set dummy ${ncn_progname}; ac_word=$2 | |
13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13193 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13194 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
13195 | $as_echo_n "(cached) " >&6 |
13196 | else | |
13197 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13198 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
13199 | else | |
13200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13201 | for as_dir in $PATH | |
13202 | do | |
13203 | IFS=$as_save_IFS | |
13204 | test -z "$as_dir" && as_dir=. | |
13205 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
13207 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
13208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13209 | break 2 | |
13210 | fi | |
13211 | done | |
13212 | done | |
13213 | IFS=$as_save_IFS | |
13214 | ||
13215 | fi | |
13216 | fi | |
13217 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
13218 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
13220 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
13221 | else | |
13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13223 | $as_echo "no" >&6; } | |
13224 | fi | |
13225 | ||
13226 | ||
13227 | fi | |
13228 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
13229 | done | |
13230 | fi | |
13231 | ||
13232 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
13233 | set dummy objcopy | |
13234 | if test $build = $target ; then | |
13235 | OBJCOPY_FOR_TARGET="$2" | |
13236 | else | |
13237 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13238 | fi | |
13239 | else | |
13240 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
13241 | fi | |
13242 | ||
13243 | else | |
13244 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
13245 | fi | |
13246 | ||
13247 | ||
13248 | ||
13249 | ||
e8b05380 PB |
13250 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
13251 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
13253 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13254 | if test -x $with_build_time_tools/objdump; then |
13255 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
13256 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
13258 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 13259 | else |
5213506e RW |
13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13261 | $as_echo "no" >&6; } | |
d1f8db0c | 13262 | fi |
e8b05380 PB |
13263 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13264 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
13265 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
13266 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
13267 | fi |
13268 | fi | |
3e19841a | 13269 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13270 | # Extract the first word of "objdump", so it can be a program name with args. |
13271 | set dummy objdump; ac_word=$2 | |
5213506e RW |
13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13273 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13274 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 13275 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13276 | else |
1c710c3c DJ |
13277 | case $OBJDUMP_FOR_TARGET in |
13278 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13279 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
13280 | ;; | |
e8b05380 | 13281 | *) |
1c710c3c DJ |
13282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13283 | for as_dir in $gcc_cv_tool_dirs | |
13284 | do | |
13285 | IFS=$as_save_IFS | |
13286 | test -z "$as_dir" && as_dir=. | |
5213506e | 13287 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13288 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13289 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13291 | break 2 |
13292 | fi | |
13293 | done | |
5213506e RW |
13294 | done |
13295 | IFS=$as_save_IFS | |
1c710c3c | 13296 | |
e8b05380 PB |
13297 | ;; |
13298 | esac | |
13299 | fi | |
1c710c3c | 13300 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 13301 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13303 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 13304 | else |
5213506e RW |
13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13306 | $as_echo "no" >&6; } | |
e8b05380 PB |
13307 | fi |
13308 | ||
5213506e | 13309 | |
e8b05380 PB |
13310 | fi |
13311 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
13312 | |
13313 | ||
13314 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13315 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
13316 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
13317 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
13318 | fi | |
13319 | ||
13320 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
13321 | for ncn_progname in objdump; do | |
13322 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13323 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13325 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13326 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 13327 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13328 | else |
13329 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13330 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
13331 | else | |
13332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13333 | for as_dir in $PATH | |
13334 | do | |
13335 | IFS=$as_save_IFS | |
13336 | test -z "$as_dir" && as_dir=. | |
5213506e | 13337 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13339 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 13340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13341 | break 2 |
13342 | fi | |
13343 | done | |
5213506e RW |
13344 | done |
13345 | IFS=$as_save_IFS | |
278a7a38 AO |
13346 | |
13347 | fi | |
13348 | fi | |
13349 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
13350 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13352 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 13353 | else |
5213506e RW |
13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13355 | $as_echo "no" >&6; } | |
278a7a38 AO |
13356 | fi |
13357 | ||
5213506e | 13358 | |
278a7a38 AO |
13359 | done |
13360 | fi | |
13361 | ||
13362 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13363 | for ncn_progname in objdump; do |
5213506e RW |
13364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13365 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13366 | if test -x $with_build_time_tools/${ncn_progname}; then |
13367 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13369 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13370 | break |
13371 | else | |
5213506e RW |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13373 | $as_echo "no" >&6; } | |
e8b05380 PB |
13374 | fi |
13375 | done | |
13376 | fi | |
13377 | ||
13378 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
13379 | for ncn_progname in objdump; do | |
13380 | if test -n "$ncn_target_tool_prefix"; then | |
13381 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13382 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13384 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13385 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 13386 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
13387 | else |
13388 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13389 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
13390 | else | |
1c710c3c DJ |
13391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13392 | for as_dir in $PATH | |
13393 | do | |
13394 | IFS=$as_save_IFS | |
13395 | test -z "$as_dir" && as_dir=. | |
5213506e | 13396 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13398 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13400 | break 2 |
13401 | fi | |
13402 | done | |
5213506e RW |
13403 | done |
13404 | IFS=$as_save_IFS | |
1c710c3c | 13405 | |
d739199a DJ |
13406 | fi |
13407 | fi | |
1c710c3c | 13408 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 13409 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13411 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 13412 | else |
5213506e RW |
13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13414 | $as_echo "no" >&6; } | |
d739199a DJ |
13415 | fi |
13416 | ||
5213506e | 13417 | |
e8b05380 PB |
13418 | fi |
13419 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
13420 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 13421 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13423 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13424 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 13425 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
13426 | else |
13427 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13428 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
13429 | else | |
1c710c3c DJ |
13430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13431 | for as_dir in $PATH | |
13432 | do | |
13433 | IFS=$as_save_IFS | |
13434 | test -z "$as_dir" && as_dir=. | |
5213506e | 13435 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13436 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13437 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 13438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13439 | break 2 |
13440 | fi | |
13441 | done | |
5213506e RW |
13442 | done |
13443 | IFS=$as_save_IFS | |
1c710c3c | 13444 | |
d739199a DJ |
13445 | fi |
13446 | fi | |
1c710c3c | 13447 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 13448 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13450 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 13451 | else |
5213506e RW |
13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13453 | $as_echo "no" >&6; } | |
d739199a | 13454 | fi |
1c710c3c | 13455 | |
5213506e | 13456 | |
e8b05380 PB |
13457 | fi |
13458 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
13459 | done | |
13460 | fi | |
1c710c3c | 13461 | |
d739199a DJ |
13462 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
13463 | set dummy objdump | |
13464 | if test $build = $target ; then | |
13465 | OBJDUMP_FOR_TARGET="$2" | |
13466 | else | |
13467 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13468 | fi | |
1c00b503 PB |
13469 | else |
13470 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
13471 | fi |
13472 | ||
d1f8db0c PB |
13473 | else |
13474 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
13475 | fi |
13476 | ||
13477 | ||
13478 | ||
13479 | ||
e4a9a572 IS |
13480 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
13481 | if test -n "$with_build_time_tools"; then | |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
13483 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
13484 | if test -x $with_build_time_tools/otool; then | |
13485 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
13486 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
13488 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
13489 | else | |
13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13491 | $as_echo "no" >&6; } | |
13492 | fi | |
13493 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13494 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
13495 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
13496 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13497 | fi | |
13498 | fi | |
13499 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13500 | # Extract the first word of "otool", so it can be a program name with args. | |
13501 | set dummy otool; ac_word=$2 | |
13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13503 | $as_echo_n "checking for $ac_word... " >&6; } | |
13504 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
13505 | $as_echo_n "(cached) " >&6 | |
13506 | else | |
13507 | case $OTOOL_FOR_TARGET in | |
13508 | [\\/]* | ?:[\\/]*) | |
13509 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
13510 | ;; | |
13511 | *) | |
13512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13513 | for as_dir in $gcc_cv_tool_dirs | |
13514 | do | |
13515 | IFS=$as_save_IFS | |
13516 | test -z "$as_dir" && as_dir=. | |
13517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13519 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13521 | break 2 | |
13522 | fi | |
13523 | done | |
13524 | done | |
13525 | IFS=$as_save_IFS | |
13526 | ||
13527 | ;; | |
13528 | esac | |
13529 | fi | |
13530 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13531 | if test -n "$OTOOL_FOR_TARGET"; then | |
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13533 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13534 | else | |
13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13536 | $as_echo "no" >&6; } | |
13537 | fi | |
13538 | ||
13539 | ||
13540 | fi | |
13541 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
13542 | ||
13543 | ||
13544 | if test -n "$OTOOL_FOR_TARGET"; then | |
13545 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13546 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13547 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13548 | fi | |
13549 | ||
13550 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13551 | for ncn_progname in otool; do | |
13552 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13553 | set dummy ${ncn_progname}; ac_word=$2 | |
13554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13555 | $as_echo_n "checking for $ac_word... " >&6; } | |
13556 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13557 | $as_echo_n "(cached) " >&6 | |
13558 | else | |
13559 | if test -n "$OTOOL_FOR_TARGET"; then | |
13560 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13561 | else | |
13562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13563 | for as_dir in $PATH | |
13564 | do | |
13565 | IFS=$as_save_IFS | |
13566 | test -z "$as_dir" && as_dir=. | |
13567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13568 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13569 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13571 | break 2 | |
13572 | fi | |
13573 | done | |
13574 | done | |
13575 | IFS=$as_save_IFS | |
13576 | ||
13577 | fi | |
13578 | fi | |
13579 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13580 | if test -n "$OTOOL_FOR_TARGET"; then | |
13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13582 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13583 | else | |
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13585 | $as_echo "no" >&6; } | |
13586 | fi | |
13587 | ||
13588 | ||
13589 | done | |
13590 | fi | |
13591 | ||
13592 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13593 | for ncn_progname in otool; do | |
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13595 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13596 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13597 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13599 | $as_echo "yes" >&6; } | |
13600 | break | |
13601 | else | |
13602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13603 | $as_echo "no" >&6; } | |
13604 | fi | |
13605 | done | |
13606 | fi | |
13607 | ||
13608 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13609 | for ncn_progname in otool; do | |
13610 | if test -n "$ncn_target_tool_prefix"; then | |
13611 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13612 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13614 | $as_echo_n "checking for $ac_word... " >&6; } | |
13615 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13616 | $as_echo_n "(cached) " >&6 | |
13617 | else | |
13618 | if test -n "$OTOOL_FOR_TARGET"; then | |
13619 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13620 | else | |
13621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13622 | for as_dir in $PATH | |
13623 | do | |
13624 | IFS=$as_save_IFS | |
13625 | test -z "$as_dir" && as_dir=. | |
13626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13628 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13630 | break 2 | |
13631 | fi | |
13632 | done | |
13633 | done | |
13634 | IFS=$as_save_IFS | |
13635 | ||
13636 | fi | |
13637 | fi | |
13638 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13639 | if test -n "$OTOOL_FOR_TARGET"; then | |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13641 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13642 | else | |
13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13644 | $as_echo "no" >&6; } | |
13645 | fi | |
13646 | ||
13647 | ||
13648 | fi | |
13649 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
13650 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13651 | set dummy ${ncn_progname}; ac_word=$2 | |
13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13653 | $as_echo_n "checking for $ac_word... " >&6; } | |
13654 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13655 | $as_echo_n "(cached) " >&6 | |
13656 | else | |
13657 | if test -n "$OTOOL_FOR_TARGET"; then | |
13658 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13659 | else | |
13660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13661 | for as_dir in $PATH | |
13662 | do | |
13663 | IFS=$as_save_IFS | |
13664 | test -z "$as_dir" && as_dir=. | |
13665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13666 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13667 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13669 | break 2 | |
13670 | fi | |
13671 | done | |
13672 | done | |
13673 | IFS=$as_save_IFS | |
13674 | ||
13675 | fi | |
13676 | fi | |
13677 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13678 | if test -n "$OTOOL_FOR_TARGET"; then | |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13680 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13681 | else | |
13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13683 | $as_echo "no" >&6; } | |
13684 | fi | |
13685 | ||
13686 | ||
13687 | fi | |
13688 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
13689 | done | |
13690 | fi | |
13691 | ||
13692 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
13693 | set dummy otool | |
13694 | if test $build = $target ; then | |
13695 | OTOOL_FOR_TARGET="$2" | |
13696 | else | |
13697 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13698 | fi | |
13699 | else | |
13700 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
13701 | fi | |
13702 | ||
13703 | else | |
13704 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13705 | fi | |
13706 | ||
13707 | ||
13708 | ||
13709 | ||
e8b05380 PB |
13710 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
13711 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
13713 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13714 | if test -x $with_build_time_tools/ranlib; then |
13715 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
13716 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
13718 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 13719 | else |
5213506e RW |
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13721 | $as_echo "no" >&6; } | |
d1f8db0c | 13722 | fi |
e8b05380 PB |
13723 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13724 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
13725 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
13726 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
13727 | fi |
13728 | fi | |
3e19841a | 13729 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13730 | # Extract the first word of "ranlib", so it can be a program name with args. |
13731 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13733 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13734 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13735 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13736 | else |
1c710c3c DJ |
13737 | case $RANLIB_FOR_TARGET in |
13738 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13739 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
13740 | ;; | |
e8b05380 | 13741 | *) |
1c710c3c DJ |
13742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13743 | for as_dir in $gcc_cv_tool_dirs | |
13744 | do | |
13745 | IFS=$as_save_IFS | |
13746 | test -z "$as_dir" && as_dir=. | |
5213506e | 13747 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13749 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13751 | break 2 |
13752 | fi | |
13753 | done | |
5213506e RW |
13754 | done |
13755 | IFS=$as_save_IFS | |
1c710c3c | 13756 | |
e8b05380 PB |
13757 | ;; |
13758 | esac | |
13759 | fi | |
1c710c3c | 13760 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 13761 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13763 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 13764 | else |
5213506e RW |
13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13766 | $as_echo "no" >&6; } | |
e8b05380 PB |
13767 | fi |
13768 | ||
5213506e | 13769 | |
e8b05380 PB |
13770 | fi |
13771 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
13772 | |
13773 | ||
13774 | if test -n "$RANLIB_FOR_TARGET"; then | |
13775 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
13776 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13777 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13778 | fi | |
13779 | ||
13780 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13781 | for ncn_progname in ranlib; do | |
13782 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13783 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13785 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13786 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13787 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13788 | else |
13789 | if test -n "$RANLIB_FOR_TARGET"; then | |
13790 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
13791 | else | |
13792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13793 | for as_dir in $PATH | |
13794 | do | |
13795 | IFS=$as_save_IFS | |
13796 | test -z "$as_dir" && as_dir=. | |
5213506e | 13797 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13799 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 13800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13801 | break 2 |
13802 | fi | |
13803 | done | |
5213506e RW |
13804 | done |
13805 | IFS=$as_save_IFS | |
278a7a38 AO |
13806 | |
13807 | fi | |
13808 | fi | |
13809 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13810 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13812 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 13813 | else |
5213506e RW |
13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13815 | $as_echo "no" >&6; } | |
278a7a38 AO |
13816 | fi |
13817 | ||
5213506e | 13818 | |
278a7a38 AO |
13819 | done |
13820 | fi | |
13821 | ||
13822 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13823 | for ncn_progname in ranlib; do |
5213506e RW |
13824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13825 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13826 | if test -x $with_build_time_tools/${ncn_progname}; then |
13827 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13829 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13830 | break |
13831 | else | |
5213506e RW |
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13833 | $as_echo "no" >&6; } | |
e8b05380 PB |
13834 | fi |
13835 | done | |
13836 | fi | |
13837 | ||
13838 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13839 | for ncn_progname in ranlib; do | |
13840 | if test -n "$ncn_target_tool_prefix"; then | |
13841 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 13842 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13844 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13845 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13846 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13847 | else |
4de997d1 PB |
13848 | if test -n "$RANLIB_FOR_TARGET"; then |
13849 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13850 | else |
1c710c3c DJ |
13851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13852 | for as_dir in $PATH | |
13853 | do | |
13854 | IFS=$as_save_IFS | |
13855 | test -z "$as_dir" && as_dir=. | |
5213506e | 13856 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13858 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13860 | break 2 |
13861 | fi | |
13862 | done | |
5213506e RW |
13863 | done |
13864 | IFS=$as_save_IFS | |
1c710c3c | 13865 | |
ca9f4b81 AO |
13866 | fi |
13867 | fi | |
1c710c3c | 13868 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 13869 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13871 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 13872 | else |
5213506e RW |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13874 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13875 | fi |
13876 | ||
5213506e | 13877 | |
e8b05380 PB |
13878 | fi |
13879 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
13880 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13881 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13883 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13884 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13885 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13886 | else |
2693c0b0 PB |
13887 | if test -n "$RANLIB_FOR_TARGET"; then |
13888 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13889 | else |
1c710c3c DJ |
13890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13891 | for as_dir in $PATH | |
13892 | do | |
13893 | IFS=$as_save_IFS | |
13894 | test -z "$as_dir" && as_dir=. | |
5213506e | 13895 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13897 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 13898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13899 | break 2 |
13900 | fi | |
13901 | done | |
5213506e RW |
13902 | done |
13903 | IFS=$as_save_IFS | |
1c710c3c | 13904 | |
ca9f4b81 AO |
13905 | fi |
13906 | fi | |
1c710c3c | 13907 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 13908 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13910 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 13911 | else |
5213506e RW |
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13913 | $as_echo "no" >&6; } | |
ca9f4b81 | 13914 | fi |
1c710c3c | 13915 | |
5213506e | 13916 | |
e8b05380 PB |
13917 | fi |
13918 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
13919 | done | |
13920 | fi | |
1c710c3c | 13921 | |
e8b05380 PB |
13922 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13923 | set dummy ranlib | |
13924 | if test $build = $target ; then | |
13925 | RANLIB_FOR_TARGET="$2" | |
13926 | else | |
13927 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 13928 | fi |
1c00b503 PB |
13929 | else |
13930 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 13931 | fi |
2693c0b0 | 13932 | |
d1f8db0c PB |
13933 | else |
13934 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
13935 | fi |
13936 | ||
e8b05380 PB |
13937 | |
13938 | ||
13939 | ||
e7a82751 RM |
13940 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13941 | if test -n "$with_build_time_tools"; then | |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13943 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13944 | if test -x $with_build_time_tools/readelf; then | |
13945 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13946 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13948 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13949 | else | |
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13951 | $as_echo "no" >&6; } | |
13952 | fi | |
13953 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13954 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13955 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13956 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13957 | fi | |
13958 | fi | |
13959 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13960 | # Extract the first word of "readelf", so it can be a program name with args. | |
13961 | set dummy readelf; ac_word=$2 | |
13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13963 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13964 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
13965 | $as_echo_n "(cached) " >&6 |
13966 | else | |
13967 | case $READELF_FOR_TARGET in | |
13968 | [\\/]* | ?:[\\/]*) | |
13969 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13970 | ;; | |
13971 | *) | |
13972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13973 | for as_dir in $gcc_cv_tool_dirs | |
13974 | do | |
13975 | IFS=$as_save_IFS | |
13976 | test -z "$as_dir" && as_dir=. | |
13977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13979 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13981 | break 2 | |
13982 | fi | |
13983 | done | |
13984 | done | |
13985 | IFS=$as_save_IFS | |
13986 | ||
13987 | ;; | |
13988 | esac | |
13989 | fi | |
13990 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13991 | if test -n "$READELF_FOR_TARGET"; then | |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13993 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13994 | else | |
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13996 | $as_echo "no" >&6; } | |
13997 | fi | |
13998 | ||
13999 | ||
14000 | fi | |
14001 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
14002 | ||
14003 | ||
14004 | if test -n "$READELF_FOR_TARGET"; then | |
14005 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
14006 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
14007 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
14008 | fi | |
14009 | ||
14010 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
14011 | for ncn_progname in readelf; do | |
14012 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14013 | set dummy ${ncn_progname}; ac_word=$2 | |
14014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14015 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14016 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
14017 | $as_echo_n "(cached) " >&6 |
14018 | else | |
14019 | if test -n "$READELF_FOR_TARGET"; then | |
14020 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
14021 | else | |
14022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14023 | for as_dir in $PATH | |
14024 | do | |
14025 | IFS=$as_save_IFS | |
14026 | test -z "$as_dir" && as_dir=. | |
14027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
14029 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
14030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14031 | break 2 | |
14032 | fi | |
14033 | done | |
14034 | done | |
14035 | IFS=$as_save_IFS | |
14036 | ||
14037 | fi | |
14038 | fi | |
14039 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
14040 | if test -n "$READELF_FOR_TARGET"; then | |
14041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
14042 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
14043 | else | |
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14045 | $as_echo "no" >&6; } | |
14046 | fi | |
14047 | ||
14048 | ||
14049 | done | |
14050 | fi | |
14051 | ||
14052 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14053 | for ncn_progname in readelf; do | |
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14055 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14056 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14057 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14059 | $as_echo "yes" >&6; } | |
14060 | break | |
14061 | else | |
14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14063 | $as_echo "no" >&6; } | |
14064 | fi | |
14065 | done | |
14066 | fi | |
14067 | ||
14068 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
14069 | for ncn_progname in readelf; do | |
14070 | if test -n "$ncn_target_tool_prefix"; then | |
14071 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14072 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14074 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14075 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
14076 | $as_echo_n "(cached) " >&6 |
14077 | else | |
14078 | if test -n "$READELF_FOR_TARGET"; then | |
14079 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
14080 | else | |
14081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14082 | for as_dir in $PATH | |
14083 | do | |
14084 | IFS=$as_save_IFS | |
14085 | test -z "$as_dir" && as_dir=. | |
14086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
14088 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
14089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14090 | break 2 | |
14091 | fi | |
14092 | done | |
14093 | done | |
14094 | IFS=$as_save_IFS | |
14095 | ||
14096 | fi | |
14097 | fi | |
14098 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
14099 | if test -n "$READELF_FOR_TARGET"; then | |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
14101 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
14102 | else | |
14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14104 | $as_echo "no" >&6; } | |
14105 | fi | |
14106 | ||
14107 | ||
14108 | fi | |
14109 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
14110 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14111 | set dummy ${ncn_progname}; ac_word=$2 | |
14112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14113 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14114 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
14115 | $as_echo_n "(cached) " >&6 |
14116 | else | |
14117 | if test -n "$READELF_FOR_TARGET"; then | |
14118 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
14119 | else | |
14120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14121 | for as_dir in $PATH | |
14122 | do | |
14123 | IFS=$as_save_IFS | |
14124 | test -z "$as_dir" && as_dir=. | |
14125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
14127 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
14128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14129 | break 2 | |
14130 | fi | |
14131 | done | |
14132 | done | |
14133 | IFS=$as_save_IFS | |
14134 | ||
14135 | fi | |
14136 | fi | |
14137 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
14138 | if test -n "$READELF_FOR_TARGET"; then | |
14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
14140 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
14141 | else | |
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14143 | $as_echo "no" >&6; } | |
14144 | fi | |
14145 | ||
14146 | ||
14147 | fi | |
14148 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
14149 | done | |
14150 | fi | |
14151 | ||
14152 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
14153 | set dummy readelf | |
14154 | if test $build = $target ; then | |
14155 | READELF_FOR_TARGET="$2" | |
14156 | else | |
14157 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14158 | fi | |
14159 | else | |
14160 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
14161 | fi | |
14162 | ||
14163 | else | |
14164 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
14165 | fi | |
14166 | ||
14167 | ||
14168 | ||
14169 | ||
e8b05380 PB |
14170 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
14171 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
14173 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14174 | if test -x $with_build_time_tools/strip; then |
14175 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
14176 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
14178 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 14179 | else |
5213506e RW |
14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14181 | $as_echo "no" >&6; } | |
d1f8db0c | 14182 | fi |
e8b05380 PB |
14183 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14184 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
14185 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
14186 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
14187 | fi |
14188 | fi | |
3e19841a | 14189 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14190 | # Extract the first word of "strip", so it can be a program name with args. |
14191 | set dummy strip; ac_word=$2 | |
5213506e RW |
14192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14193 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14194 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 14195 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14196 | else |
1c710c3c DJ |
14197 | case $STRIP_FOR_TARGET in |
14198 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14199 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
14200 | ;; | |
e8b05380 | 14201 | *) |
1c710c3c DJ |
14202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14203 | for as_dir in $gcc_cv_tool_dirs | |
14204 | do | |
14205 | IFS=$as_save_IFS | |
14206 | test -z "$as_dir" && as_dir=. | |
5213506e | 14207 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14209 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14211 | break 2 |
14212 | fi | |
14213 | done | |
5213506e RW |
14214 | done |
14215 | IFS=$as_save_IFS | |
1c710c3c | 14216 | |
e8b05380 PB |
14217 | ;; |
14218 | esac | |
14219 | fi | |
1c710c3c | 14220 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 14221 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
14223 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 14224 | else |
5213506e RW |
14225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14226 | $as_echo "no" >&6; } | |
e8b05380 PB |
14227 | fi |
14228 | ||
5213506e | 14229 | |
e8b05380 PB |
14230 | fi |
14231 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
14232 | |
14233 | ||
14234 | if test -n "$STRIP_FOR_TARGET"; then | |
14235 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
14236 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
14237 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
14238 | fi | |
14239 | ||
14240 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
14241 | for ncn_progname in strip; do | |
14242 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14243 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14245 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14246 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 14247 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14248 | else |
14249 | if test -n "$STRIP_FOR_TARGET"; then | |
14250 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
14251 | else | |
14252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14253 | for as_dir in $PATH | |
14254 | do | |
14255 | IFS=$as_save_IFS | |
14256 | test -z "$as_dir" && as_dir=. | |
5213506e | 14257 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14258 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14259 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 14260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14261 | break 2 |
14262 | fi | |
14263 | done | |
5213506e RW |
14264 | done |
14265 | IFS=$as_save_IFS | |
278a7a38 AO |
14266 | |
14267 | fi | |
14268 | fi | |
14269 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
14270 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
14271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
14272 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 14273 | else |
5213506e RW |
14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14275 | $as_echo "no" >&6; } | |
278a7a38 AO |
14276 | fi |
14277 | ||
5213506e | 14278 | |
278a7a38 AO |
14279 | done |
14280 | fi | |
14281 | ||
14282 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14283 | for ncn_progname in strip; do |
5213506e RW |
14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14285 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14286 | if test -x $with_build_time_tools/${ncn_progname}; then |
14287 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14289 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14290 | break |
14291 | else | |
5213506e RW |
14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14293 | $as_echo "no" >&6; } | |
e8b05380 PB |
14294 | fi |
14295 | done | |
14296 | fi | |
14297 | ||
14298 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
14299 | for ncn_progname in strip; do | |
14300 | if test -n "$ncn_target_tool_prefix"; then | |
14301 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 14302 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14304 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14305 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 14306 | $as_echo_n "(cached) " >&6 |
af71363e AS |
14307 | else |
14308 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
14309 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
14310 | else | |
14311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14312 | for as_dir in $PATH | |
14313 | do | |
14314 | IFS=$as_save_IFS | |
14315 | test -z "$as_dir" && as_dir=. | |
5213506e | 14316 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14318 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14320 | break 2 |
14321 | fi | |
14322 | done | |
5213506e RW |
14323 | done |
14324 | IFS=$as_save_IFS | |
1c710c3c | 14325 | |
040b1c5a GK |
14326 | fi |
14327 | fi | |
1c710c3c | 14328 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 14329 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
14331 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 14332 | else |
5213506e RW |
14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14334 | $as_echo "no" >&6; } | |
040b1c5a GK |
14335 | fi |
14336 | ||
5213506e | 14337 | |
e8b05380 PB |
14338 | fi |
14339 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
14340 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 14341 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14343 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14344 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 14345 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
14346 | else |
14347 | if test -n "$STRIP_FOR_TARGET"; then | |
14348 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
14349 | else | |
1c710c3c DJ |
14350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14351 | for as_dir in $PATH | |
14352 | do | |
14353 | IFS=$as_save_IFS | |
14354 | test -z "$as_dir" && as_dir=. | |
5213506e | 14355 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14356 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14357 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 14358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14359 | break 2 |
14360 | fi | |
14361 | done | |
5213506e RW |
14362 | done |
14363 | IFS=$as_save_IFS | |
1c710c3c | 14364 | |
040b1c5a GK |
14365 | fi |
14366 | fi | |
1c710c3c | 14367 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 14368 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
14369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
14370 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 14371 | else |
5213506e RW |
14372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14373 | $as_echo "no" >&6; } | |
040b1c5a | 14374 | fi |
1c710c3c | 14375 | |
5213506e | 14376 | |
e8b05380 PB |
14377 | fi |
14378 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
14379 | done | |
14380 | fi | |
1c710c3c | 14381 | |
040b1c5a GK |
14382 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
14383 | set dummy strip | |
14384 | if test $build = $target ; then | |
14385 | STRIP_FOR_TARGET="$2" | |
14386 | else | |
14387 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14388 | fi | |
1c00b503 PB |
14389 | else |
14390 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
14391 | fi |
14392 | ||
d1f8db0c PB |
14393 | else |
14394 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
14395 | fi |
14396 | ||
14397 | ||
14398 | ||
14399 | ||
14400 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
14401 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
14403 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14404 | if test -x $with_build_time_tools/windres; then |
14405 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
14406 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
14408 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 14409 | else |
5213506e RW |
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14411 | $as_echo "no" >&6; } | |
d1f8db0c | 14412 | fi |
e8b05380 PB |
14413 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14414 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
14415 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
14416 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
14417 | fi |
14418 | fi | |
3e19841a | 14419 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14420 | # Extract the first word of "windres", so it can be a program name with args. |
14421 | set dummy windres; ac_word=$2 | |
5213506e RW |
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14423 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14424 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14425 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14426 | else |
1c710c3c DJ |
14427 | case $WINDRES_FOR_TARGET in |
14428 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14429 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
14430 | ;; | |
e8b05380 | 14431 | *) |
1c710c3c DJ |
14432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14433 | for as_dir in $gcc_cv_tool_dirs | |
14434 | do | |
14435 | IFS=$as_save_IFS | |
14436 | test -z "$as_dir" && as_dir=. | |
5213506e | 14437 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14438 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14439 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14441 | break 2 |
14442 | fi | |
14443 | done | |
5213506e RW |
14444 | done |
14445 | IFS=$as_save_IFS | |
1c710c3c | 14446 | |
e8b05380 PB |
14447 | ;; |
14448 | esac | |
14449 | fi | |
1c710c3c | 14450 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 14451 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
14452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14453 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 14454 | else |
5213506e RW |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14456 | $as_echo "no" >&6; } | |
e8b05380 PB |
14457 | fi |
14458 | ||
5213506e | 14459 | |
e8b05380 PB |
14460 | fi |
14461 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
14462 | |
14463 | ||
14464 | if test -n "$WINDRES_FOR_TARGET"; then | |
14465 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
14466 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
14467 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
14468 | fi | |
14469 | ||
14470 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
14471 | for ncn_progname in windres; do | |
14472 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14473 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14475 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14476 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14477 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14478 | else |
14479 | if test -n "$WINDRES_FOR_TARGET"; then | |
14480 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
14481 | else | |
14482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14483 | for as_dir in $PATH | |
14484 | do | |
14485 | IFS=$as_save_IFS | |
14486 | test -z "$as_dir" && as_dir=. | |
5213506e | 14487 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14488 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14489 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 14490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14491 | break 2 |
14492 | fi | |
14493 | done | |
5213506e RW |
14494 | done |
14495 | IFS=$as_save_IFS | |
278a7a38 AO |
14496 | |
14497 | fi | |
14498 | fi | |
14499 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
14500 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
14501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14502 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 14503 | else |
5213506e RW |
14504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14505 | $as_echo "no" >&6; } | |
278a7a38 AO |
14506 | fi |
14507 | ||
5213506e | 14508 | |
278a7a38 AO |
14509 | done |
14510 | fi | |
14511 | ||
14512 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14513 | for ncn_progname in windres; do |
5213506e RW |
14514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14515 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14516 | if test -x $with_build_time_tools/${ncn_progname}; then |
14517 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14519 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14520 | break |
14521 | else | |
5213506e RW |
14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14523 | $as_echo "no" >&6; } | |
e8b05380 PB |
14524 | fi |
14525 | done | |
14526 | fi | |
14527 | ||
14528 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
14529 | for ncn_progname in windres; do | |
14530 | if test -n "$ncn_target_tool_prefix"; then | |
14531 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14532 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14534 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14535 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14536 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14537 | else |
4de997d1 PB |
14538 | if test -n "$WINDRES_FOR_TARGET"; then |
14539 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14540 | else |
1c710c3c DJ |
14541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14542 | for as_dir in $PATH | |
14543 | do | |
14544 | IFS=$as_save_IFS | |
14545 | test -z "$as_dir" && as_dir=. | |
5213506e | 14546 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14548 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14550 | break 2 |
14551 | fi | |
14552 | done | |
5213506e RW |
14553 | done |
14554 | IFS=$as_save_IFS | |
1c710c3c | 14555 | |
ca9f4b81 AO |
14556 | fi |
14557 | fi | |
1c710c3c | 14558 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 14559 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14561 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 14562 | else |
5213506e RW |
14563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14564 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14565 | fi |
14566 | ||
5213506e | 14567 | |
e8b05380 PB |
14568 | fi |
14569 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
14570 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14571 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14573 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14574 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14575 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14576 | else |
2693c0b0 PB |
14577 | if test -n "$WINDRES_FOR_TARGET"; then |
14578 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14579 | else |
1c710c3c DJ |
14580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14581 | for as_dir in $PATH | |
14582 | do | |
14583 | IFS=$as_save_IFS | |
14584 | test -z "$as_dir" && as_dir=. | |
5213506e | 14585 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14586 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14587 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 14588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14589 | break 2 |
14590 | fi | |
14591 | done | |
5213506e RW |
14592 | done |
14593 | IFS=$as_save_IFS | |
1c710c3c | 14594 | |
ca9f4b81 AO |
14595 | fi |
14596 | fi | |
1c710c3c | 14597 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 14598 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14600 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 14601 | else |
5213506e RW |
14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14603 | $as_echo "no" >&6; } | |
ca9f4b81 | 14604 | fi |
1c710c3c | 14605 | |
5213506e | 14606 | |
e8b05380 PB |
14607 | fi |
14608 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
14609 | done | |
14610 | fi | |
1c710c3c | 14611 | |
2693c0b0 PB |
14612 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
14613 | set dummy windres | |
14614 | if test $build = $target ; then | |
14615 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 14616 | else |
2693c0b0 | 14617 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14618 | fi |
1c00b503 PB |
14619 | else |
14620 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
14621 | fi |
14622 | ||
d1f8db0c PB |
14623 | else |
14624 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
14625 | fi |
14626 | ||
4977bab6 | 14627 | |
901119ae KT |
14628 | |
14629 | ||
14630 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14631 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
14633 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
14634 | if test -x $with_build_time_tools/windmc; then |
14635 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
14636 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
14637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
14638 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14639 | else |
5213506e RW |
14640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14641 | $as_echo "no" >&6; } | |
901119ae KT |
14642 | fi |
14643 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14644 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
14645 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
14646 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
14647 | fi |
14648 | fi | |
14649 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14650 | # Extract the first word of "windmc", so it can be a program name with args. | |
14651 | set dummy windmc; ac_word=$2 | |
5213506e RW |
14652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14653 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14654 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14655 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14656 | else |
14657 | case $WINDMC_FOR_TARGET in | |
14658 | [\\/]* | ?:[\\/]*) | |
14659 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
14660 | ;; | |
14661 | *) | |
14662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14663 | for as_dir in $gcc_cv_tool_dirs | |
14664 | do | |
14665 | IFS=$as_save_IFS | |
14666 | test -z "$as_dir" && as_dir=. | |
5213506e | 14667 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14668 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14669 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14671 | break 2 |
14672 | fi | |
14673 | done | |
5213506e RW |
14674 | done |
14675 | IFS=$as_save_IFS | |
901119ae KT |
14676 | |
14677 | ;; | |
14678 | esac | |
14679 | fi | |
14680 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 14681 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
14682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14683 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14684 | else |
5213506e RW |
14685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14686 | $as_echo "no" >&6; } | |
901119ae KT |
14687 | fi |
14688 | ||
5213506e | 14689 | |
901119ae KT |
14690 | fi |
14691 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14692 | ||
14693 | ||
14694 | if test -n "$WINDMC_FOR_TARGET"; then | |
14695 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
14696 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14697 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14698 | fi | |
14699 | ||
14700 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14701 | for ncn_progname in windmc; do | |
14702 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14703 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14705 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14706 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14707 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14708 | else |
14709 | if test -n "$WINDMC_FOR_TARGET"; then | |
14710 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14711 | else | |
14712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14713 | for as_dir in $PATH | |
14714 | do | |
14715 | IFS=$as_save_IFS | |
14716 | test -z "$as_dir" && as_dir=. | |
5213506e | 14717 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14719 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 14720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14721 | break 2 |
14722 | fi | |
14723 | done | |
5213506e RW |
14724 | done |
14725 | IFS=$as_save_IFS | |
901119ae KT |
14726 | |
14727 | fi | |
14728 | fi | |
14729 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14730 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
14731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14732 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14733 | else |
5213506e RW |
14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14735 | $as_echo "no" >&6; } | |
901119ae KT |
14736 | fi |
14737 | ||
5213506e | 14738 | |
901119ae KT |
14739 | done |
14740 | fi | |
14741 | ||
14742 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14743 | for ncn_progname in windmc; do | |
5213506e RW |
14744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14745 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
14746 | if test -x $with_build_time_tools/${ncn_progname}; then |
14747 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14749 | $as_echo "yes" >&6; } | |
901119ae KT |
14750 | break |
14751 | else | |
5213506e RW |
14752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14753 | $as_echo "no" >&6; } | |
901119ae KT |
14754 | fi |
14755 | done | |
14756 | fi | |
14757 | ||
14758 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14759 | for ncn_progname in windmc; do | |
14760 | if test -n "$ncn_target_tool_prefix"; then | |
14761 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14762 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14764 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14765 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14766 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14767 | else |
14768 | if test -n "$WINDMC_FOR_TARGET"; then | |
14769 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14770 | else | |
14771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14772 | for as_dir in $PATH | |
14773 | do | |
14774 | IFS=$as_save_IFS | |
14775 | test -z "$as_dir" && as_dir=. | |
5213506e | 14776 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14778 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14780 | break 2 |
14781 | fi | |
14782 | done | |
5213506e RW |
14783 | done |
14784 | IFS=$as_save_IFS | |
901119ae KT |
14785 | |
14786 | fi | |
14787 | fi | |
14788 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14789 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14791 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14792 | else |
5213506e RW |
14793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14794 | $as_echo "no" >&6; } | |
901119ae KT |
14795 | fi |
14796 | ||
5213506e | 14797 | |
901119ae KT |
14798 | fi |
14799 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
14800 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14801 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14803 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14804 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14805 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14806 | else |
14807 | if test -n "$WINDMC_FOR_TARGET"; then | |
14808 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14809 | else | |
14810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14811 | for as_dir in $PATH | |
14812 | do | |
14813 | IFS=$as_save_IFS | |
14814 | test -z "$as_dir" && as_dir=. | |
5213506e | 14815 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14816 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14817 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 14818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14819 | break 2 |
14820 | fi | |
14821 | done | |
5213506e RW |
14822 | done |
14823 | IFS=$as_save_IFS | |
901119ae KT |
14824 | |
14825 | fi | |
14826 | fi | |
14827 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14828 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
14829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14830 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14831 | else |
5213506e RW |
14832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14833 | $as_echo "no" >&6; } | |
901119ae KT |
14834 | fi |
14835 | ||
5213506e | 14836 | |
901119ae KT |
14837 | fi |
14838 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
14839 | done | |
14840 | fi | |
14841 | ||
14842 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
14843 | set dummy windmc | |
14844 | if test $build = $target ; then | |
14845 | WINDMC_FOR_TARGET="$2" | |
14846 | else | |
14847 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14848 | fi | |
1c00b503 PB |
14849 | else |
14850 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
14851 | fi |
14852 | ||
14853 | else | |
14854 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
14855 | fi | |
14856 | ||
14857 | ||
2abefe3d PB |
14858 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
14859 | ||
5213506e RW |
14860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
14861 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 14862 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14863 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14864 | # We already found the complete path | |
172e41aa | 14865 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
14866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14867 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14868 | else |
14869 | # Canadian cross, just use what we found | |
5213506e RW |
14870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14871 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14872 | fi |
2abefe3d PB |
14873 | else |
14874 | ok=yes | |
14875 | case " ${configdirs} " in | |
14876 | *" binutils "*) ;; | |
14877 | *) ok=no ;; | |
14878 | esac | |
1c710c3c | 14879 | |
2abefe3d PB |
14880 | if test $ok = yes; then |
14881 | # An in-tree tool is available and we can use it | |
14882 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14884 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14885 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14886 | # We already found the complete path | |
172e41aa | 14887 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
14888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14889 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14890 | elif test "x$target" = "x$host"; then |
14891 | # We can use an host tool | |
14892 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14894 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14895 | else |
14896 | # We need a cross tool | |
5213506e RW |
14897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14898 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14899 | fi |
14900 | fi | |
0b0dc272 | 14901 | |
5213506e RW |
14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
14903 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 14904 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14905 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14906 | # We already found the complete path | |
172e41aa | 14907 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
14908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14909 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14910 | else |
14911 | # Canadian cross, just use what we found | |
5213506e RW |
14912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14913 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14914 | fi |
2abefe3d PB |
14915 | else |
14916 | ok=yes | |
14917 | case " ${configdirs} " in | |
14918 | *" gas "*) ;; | |
14919 | *) ok=no ;; | |
14920 | esac | |
1c710c3c | 14921 | |
2abefe3d PB |
14922 | if test $ok = yes; then |
14923 | # An in-tree tool is available and we can use it | |
14924 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
14925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14926 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14927 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14928 | # We already found the complete path | |
172e41aa | 14929 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14931 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14932 | elif test "x$target" = "x$host"; then |
14933 | # We can use an host tool | |
14934 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
14935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14936 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14937 | else |
14938 | # We need a cross tool | |
5213506e RW |
14939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14940 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14941 | fi |
14942 | fi | |
0b0dc272 | 14943 | |
5213506e RW |
14944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14945 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 14946 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14947 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14948 | # We already found the complete path | |
172e41aa | 14949 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
14950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14951 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14952 | else |
14953 | # Canadian cross, just use what we found | |
5213506e RW |
14954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14955 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14956 | fi |
2abefe3d PB |
14957 | else |
14958 | ok=yes | |
14959 | case " ${configdirs} " in | |
14960 | *" gcc "*) ;; | |
14961 | *) ok=no ;; | |
14962 | esac | |
1c710c3c | 14963 | |
2abefe3d PB |
14964 | if test $ok = yes; then |
14965 | # An in-tree tool is available and we can use it | |
14966 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14968 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14969 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14970 | # We already found the complete path | |
172e41aa | 14971 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
14972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14973 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14974 | elif test "x$target" = "x$host"; then |
14975 | # We can use an host tool | |
14976 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
14977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14978 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14979 | else |
14980 | # We need a cross tool | |
5213506e RW |
14981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14982 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14983 | fi |
14984 | fi | |
0b0dc272 | 14985 | |
5213506e RW |
14986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14987 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 14988 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14989 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14990 | # We already found the complete path | |
172e41aa | 14991 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14993 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14994 | else |
14995 | # Canadian cross, just use what we found | |
5213506e RW |
14996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14997 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14998 | fi |
2abefe3d PB |
14999 | else |
15000 | ok=yes | |
15001 | case " ${configdirs} " in | |
15002 | *" gcc "*) ;; | |
15003 | *) ok=no ;; | |
15004 | esac | |
15005 | case ,${enable_languages}, in | |
15006 | *,c++,*) ;; | |
15007 | *) ok=no ;; | |
15008 | esac | |
15009 | if test $ok = yes; then | |
15010 | # An in-tree tool is available and we can use it | |
2077db1b | 15011 | 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' |
5213506e RW |
15012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15013 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15014 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
15015 | # We already found the complete path | |
172e41aa | 15016 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
15017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15018 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15019 | elif test "x$target" = "x$host"; then |
15020 | # We can use an host tool | |
15021 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
15022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15023 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15024 | else |
15025 | # We need a cross tool | |
5213506e RW |
15026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15027 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15028 | fi |
15029 | fi | |
0b0dc272 | 15030 | |
5213506e RW |
15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
15032 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 15033 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15034 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
15035 | # We already found the complete path | |
172e41aa | 15036 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
15037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15038 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15039 | else |
15040 | # Canadian cross, just use what we found | |
5213506e RW |
15041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15042 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15043 | fi |
2abefe3d PB |
15044 | else |
15045 | ok=yes | |
15046 | case " ${configdirs} " in | |
15047 | *" gcc "*) ;; | |
15048 | *) ok=no ;; | |
15049 | esac | |
15050 | case ,${enable_languages}, in | |
15051 | *,c++,*) ;; | |
15052 | *) ok=no ;; | |
15053 | esac | |
15054 | if test $ok = yes; then | |
15055 | # An in-tree tool is available and we can use it | |
2077db1b | 15056 | 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' |
5213506e RW |
15057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15058 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15059 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
15060 | # We already found the complete path | |
172e41aa | 15061 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
15062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15063 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15064 | elif test "x$target" = "x$host"; then |
15065 | # We can use an host tool | |
15066 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
15067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15068 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15069 | else |
15070 | # We need a cross tool | |
5213506e RW |
15071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15072 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15073 | fi |
15074 | fi | |
0b0dc272 | 15075 | |
5213506e RW |
15076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
15077 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 15078 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15079 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
15080 | # We already found the complete path | |
172e41aa | 15081 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
15082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15083 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15084 | else |
15085 | # Canadian cross, just use what we found | |
5213506e RW |
15086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15087 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15088 | fi |
2abefe3d PB |
15089 | else |
15090 | ok=yes | |
15091 | case " ${configdirs} " in | |
15092 | *" binutils "*) ;; | |
15093 | *) ok=no ;; | |
15094 | esac | |
1c710c3c | 15095 | |
2abefe3d PB |
15096 | if test $ok = yes; then |
15097 | # An in-tree tool is available and we can use it | |
15098 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
15099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15100 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15101 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
15102 | # We already found the complete path | |
172e41aa | 15103 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
15104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15105 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15106 | elif test "x$target" = "x$host"; then |
15107 | # We can use an host tool | |
15108 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
15109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15110 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15111 | else |
15112 | # We need a cross tool | |
5213506e RW |
15113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15114 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15115 | fi |
15116 | fi | |
0b0dc272 | 15117 | |
c7c99407 IS |
15118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
15119 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
15120 | if test "x${build}" != "x${host}" ; then | |
15121 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
15122 | # We already found the complete path | |
15123 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
15124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15125 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15126 | else | |
15127 | # Canadian cross, just use what we found | |
15128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15129 | $as_echo "pre-installed" >&6; } | |
15130 | fi | |
15131 | else | |
15132 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
15133 | # We already found the complete path | |
15134 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
15135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15136 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15137 | elif test "x$target" = "x$host"; then | |
15138 | # We can use an host tool | |
15139 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15141 | $as_echo "host tool" >&6; } | |
15142 | else | |
15143 | # We need a cross tool | |
15144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15145 | $as_echo "pre-installed" >&6; } | |
15146 | fi | |
15147 | fi | |
15148 | ||
5213506e RW |
15149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
15150 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 15151 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15152 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
15153 | # We already found the complete path | |
172e41aa | 15154 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
15155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15156 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15157 | else |
15158 | # Canadian cross, just use what we found | |
5213506e RW |
15159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15160 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15161 | fi |
2abefe3d PB |
15162 | else |
15163 | ok=yes | |
15164 | case " ${configdirs} " in | |
15165 | *" gcc "*) ;; | |
15166 | *) ok=no ;; | |
15167 | esac | |
1c710c3c | 15168 | |
2abefe3d PB |
15169 | if test $ok = yes; then |
15170 | # An in-tree tool is available and we can use it | |
15171 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
15172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15173 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15174 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
15175 | # We already found the complete path | |
172e41aa | 15176 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
15177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15178 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15179 | elif test "x$target" = "x$host"; then |
15180 | # We can use an host tool | |
15181 | GCC_FOR_TARGET='$()' | |
5213506e RW |
15182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15183 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15184 | else |
15185 | # We need a cross tool | |
5213506e RW |
15186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15187 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15188 | fi |
15189 | fi | |
0b0dc272 | 15190 | |
5213506e RW |
15191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
15192 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 15193 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15194 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
15195 | # We already found the complete path | |
172e41aa | 15196 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
15197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15198 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15199 | else |
15200 | # Canadian cross, just use what we found | |
5213506e RW |
15201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15202 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15203 | fi |
2abefe3d PB |
15204 | else |
15205 | ok=yes | |
15206 | case " ${configdirs} " in | |
15207 | *" gcc "*) ;; | |
15208 | *) ok=no ;; | |
15209 | esac | |
15210 | case ,${enable_languages}, in | |
15211 | *,fortran,*) ;; | |
15212 | *) ok=no ;; | |
15213 | esac | |
15214 | if test $ok = yes; then | |
15215 | # An in-tree tool is available and we can use it | |
15216 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
15217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15218 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15219 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
15220 | # We already found the complete path | |
172e41aa | 15221 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
15222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15223 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15224 | elif test "x$target" = "x$host"; then |
15225 | # We can use an host tool | |
15226 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
15227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15228 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15229 | else |
15230 | # We need a cross tool | |
5213506e RW |
15231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15232 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15233 | fi |
15234 | fi | |
0b0dc272 | 15235 | |
632e2a07 ILT |
15236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
15237 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
15238 | if test "x${build}" != "x${host}" ; then | |
15239 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
15240 | # We already found the complete path | |
15241 | ac_dir=`dirname $GOC_FOR_TARGET` | |
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15243 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15244 | else | |
15245 | # Canadian cross, just use what we found | |
15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15247 | $as_echo "pre-installed" >&6; } | |
15248 | fi | |
15249 | else | |
15250 | ok=yes | |
15251 | case " ${configdirs} " in | |
15252 | *" gcc "*) ;; | |
15253 | *) ok=no ;; | |
15254 | esac | |
15255 | case ,${enable_languages}, in | |
15256 | *,go,*) ;; | |
15257 | *) ok=no ;; | |
15258 | esac | |
15259 | if test $ok = yes; then | |
15260 | # An in-tree tool is available and we can use it | |
15261 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
15262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15263 | $as_echo "just compiled" >&6; } | |
15264 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
15265 | # We already found the complete path | |
15266 | ac_dir=`dirname $GOC_FOR_TARGET` | |
15267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15268 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15269 | elif test "x$target" = "x$host"; then | |
15270 | # We can use an host tool | |
15271 | GOC_FOR_TARGET='$(GOC)' | |
15272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15273 | $as_echo "host tool" >&6; } | |
15274 | else | |
15275 | # We need a cross tool | |
15276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15277 | $as_echo "pre-installed" >&6; } | |
15278 | fi | |
15279 | fi | |
15280 | ||
b4c522fa IB |
15281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
15282 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
15283 | if test "x${build}" != "x${host}" ; then | |
15284 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
15285 | # We already found the complete path | |
15286 | ac_dir=`dirname $GDC_FOR_TARGET` | |
15287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15288 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15289 | else | |
15290 | # Canadian cross, just use what we found | |
15291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15292 | $as_echo "pre-installed" >&6; } | |
15293 | fi | |
15294 | else | |
15295 | ok=yes | |
15296 | case " ${configdirs} " in | |
15297 | *" gcc "*) ;; | |
15298 | *) ok=no ;; | |
15299 | esac | |
15300 | case ,${enable_languages}, in | |
15301 | *,d,*) ;; | |
15302 | *) ok=no ;; | |
15303 | esac | |
15304 | if test $ok = yes; then | |
15305 | # An in-tree tool is available and we can use it | |
15306 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
15307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15308 | $as_echo "just compiled" >&6; } | |
15309 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
15310 | # We already found the complete path | |
15311 | ac_dir=`dirname $GDC_FOR_TARGET` | |
15312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15313 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15314 | elif test "x$target" = "x$host"; then | |
15315 | # We can use an host tool | |
15316 | GDC_FOR_TARGET='$(GDC)' | |
15317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15318 | $as_echo "host tool" >&6; } | |
15319 | else | |
15320 | # We need a cross tool | |
15321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15322 | $as_echo "pre-installed" >&6; } | |
15323 | fi | |
15324 | fi | |
15325 | ||
5213506e RW |
15326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
15327 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 15328 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15329 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
15330 | # We already found the complete path | |
172e41aa | 15331 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
15332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15333 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15334 | else |
15335 | # Canadian cross, just use what we found | |
5213506e RW |
15336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15337 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15338 | fi |
2abefe3d PB |
15339 | else |
15340 | ok=yes | |
15341 | case " ${configdirs} " in | |
15342 | *" ld "*) ;; | |
15343 | *) ok=no ;; | |
15344 | esac | |
1c710c3c | 15345 | |
2abefe3d PB |
15346 | if test $ok = yes; then |
15347 | # An in-tree tool is available and we can use it | |
15348 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
15349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15350 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15351 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
15352 | # We already found the complete path | |
172e41aa | 15353 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
15354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15355 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15356 | elif test "x$target" = "x$host"; then |
15357 | # We can use an host tool | |
15358 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
15359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15360 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15361 | else |
15362 | # We need a cross tool | |
5213506e RW |
15363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15364 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15365 | fi |
15366 | fi | |
0b0dc272 | 15367 | |
5213506e RW |
15368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
15369 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 15370 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15371 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
15372 | # We already found the complete path | |
172e41aa | 15373 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
15374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15375 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15376 | else |
15377 | # Canadian cross, just use what we found | |
5213506e RW |
15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15379 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15380 | fi |
2abefe3d | 15381 | else |
e8b05380 PB |
15382 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
15383 | # We already found the complete path | |
172e41aa | 15384 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
15385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15386 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 15387 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
15388 | # We can use an host tool |
15389 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
15390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15391 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15392 | else |
15393 | # We need a cross tool | |
5213506e RW |
15394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15395 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15396 | fi |
15397 | fi | |
0b0dc272 | 15398 | |
5213506e RW |
15399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
15400 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 15401 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15402 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
15403 | # We already found the complete path | |
172e41aa | 15404 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
15405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15406 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15407 | else |
15408 | # Canadian cross, just use what we found | |
5213506e RW |
15409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15410 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15411 | fi |
2abefe3d PB |
15412 | else |
15413 | ok=yes | |
15414 | case " ${configdirs} " in | |
15415 | *" binutils "*) ;; | |
15416 | *) ok=no ;; | |
15417 | esac | |
1c710c3c | 15418 | |
2abefe3d PB |
15419 | if test $ok = yes; then |
15420 | # An in-tree tool is available and we can use it | |
15421 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
15422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15423 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15424 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
15425 | # We already found the complete path | |
172e41aa | 15426 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
15427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15428 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15429 | elif test "x$target" = "x$host"; then |
15430 | # We can use an host tool | |
15431 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
15432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15433 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15434 | else |
15435 | # We need a cross tool | |
5213506e RW |
15436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15437 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15438 | fi |
15439 | fi | |
0b0dc272 | 15440 | |
9bccfdf5 AP |
15441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
15442 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
15443 | if test "x${build}" != "x${host}" ; then | |
15444 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
15445 | # We already found the complete path | |
15446 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
15447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15448 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15449 | else | |
15450 | # Canadian cross, just use what we found | |
15451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15452 | $as_echo "pre-installed" >&6; } | |
15453 | fi | |
15454 | else | |
15455 | ok=yes | |
15456 | case " ${configdirs} " in | |
15457 | *" binutils "*) ;; | |
15458 | *) ok=no ;; | |
15459 | esac | |
15460 | ||
15461 | if test $ok = yes; then | |
15462 | # An in-tree tool is available and we can use it | |
15463 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
15464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15465 | $as_echo "just compiled" >&6; } | |
15466 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
15467 | # We already found the complete path | |
15468 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
15469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15470 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15471 | elif test "x$target" = "x$host"; then | |
15472 | # We can use an host tool | |
ec8fd1c0 | 15473 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
15474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15475 | $as_echo "host tool" >&6; } | |
15476 | else | |
15477 | # We need a cross tool | |
15478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15479 | $as_echo "pre-installed" >&6; } | |
15480 | fi | |
15481 | fi | |
15482 | ||
5213506e RW |
15483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
15484 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 15485 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15486 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
15487 | # We already found the complete path | |
172e41aa | 15488 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
15489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15490 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15491 | else |
15492 | # Canadian cross, just use what we found | |
5213506e RW |
15493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15494 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15495 | fi |
2abefe3d PB |
15496 | else |
15497 | ok=yes | |
15498 | case " ${configdirs} " in | |
15499 | *" binutils "*) ;; | |
15500 | *) ok=no ;; | |
15501 | esac | |
1c710c3c | 15502 | |
2abefe3d PB |
15503 | if test $ok = yes; then |
15504 | # An in-tree tool is available and we can use it | |
15505 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
15506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15507 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15508 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
15509 | # We already found the complete path | |
172e41aa | 15510 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
15511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15512 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15513 | elif test "x$target" = "x$host"; then |
15514 | # We can use an host tool | |
15515 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
15516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15517 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15518 | else |
15519 | # We need a cross tool | |
5213506e RW |
15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15521 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15522 | fi |
15523 | fi | |
0b0dc272 | 15524 | |
e4a9a572 IS |
15525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
15526 | $as_echo_n "checking where to find the target otool... " >&6; } | |
15527 | if test "x${build}" != "x${host}" ; then | |
15528 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
15529 | # We already found the complete path | |
15530 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
15531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15532 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15533 | else | |
15534 | # Canadian cross, just use what we found | |
15535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15536 | $as_echo "pre-installed" >&6; } | |
15537 | fi | |
15538 | else | |
15539 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
15540 | # We already found the complete path | |
15541 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
15542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15543 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15544 | elif test "x$target" = "x$host"; then | |
15545 | # We can use an host tool | |
15546 | OTOOL_FOR_TARGET='$(OTOOL)' | |
15547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15548 | $as_echo "host tool" >&6; } | |
15549 | else | |
15550 | # We need a cross tool | |
15551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15552 | $as_echo "pre-installed" >&6; } | |
15553 | fi | |
15554 | fi | |
15555 | ||
5213506e RW |
15556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
15557 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 15558 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15559 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15560 | # We already found the complete path | |
172e41aa | 15561 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
15562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15563 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15564 | else |
15565 | # Canadian cross, just use what we found | |
5213506e RW |
15566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15567 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15568 | fi |
2abefe3d PB |
15569 | else |
15570 | ok=yes | |
15571 | case " ${configdirs} " in | |
15572 | *" binutils "*) ;; | |
15573 | *) ok=no ;; | |
15574 | esac | |
1c710c3c | 15575 | |
2abefe3d PB |
15576 | if test $ok = yes; then |
15577 | # An in-tree tool is available and we can use it | |
15578 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
15579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15580 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15581 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15582 | # We already found the complete path | |
172e41aa | 15583 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
15584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15585 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15586 | elif test "x$target" = "x$host"; then |
15587 | # We can use an host tool | |
15588 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
15589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15590 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15591 | else |
15592 | # We need a cross tool | |
5213506e RW |
15593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15594 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15595 | fi |
15596 | fi | |
0b0dc272 | 15597 | |
e7a82751 RM |
15598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
15599 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
15600 | if test "x${build}" != "x${host}" ; then | |
15601 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15602 | # We already found the complete path | |
15603 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15605 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15606 | else | |
15607 | # Canadian cross, just use what we found | |
15608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15609 | $as_echo "pre-installed" >&6; } | |
15610 | fi | |
15611 | else | |
15612 | ok=yes | |
15613 | case " ${configdirs} " in | |
15614 | *" binutils "*) ;; | |
15615 | *) ok=no ;; | |
15616 | esac | |
15617 | ||
15618 | if test $ok = yes; then | |
15619 | # An in-tree tool is available and we can use it | |
15620 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
15621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15622 | $as_echo "just compiled" >&6; } | |
15623 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15624 | # We already found the complete path | |
15625 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15627 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15628 | elif test "x$target" = "x$host"; then | |
15629 | # We can use an host tool | |
15630 | READELF_FOR_TARGET='$(READELF)' | |
15631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15632 | $as_echo "host tool" >&6; } | |
15633 | else | |
15634 | # We need a cross tool | |
15635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15636 | $as_echo "pre-installed" >&6; } | |
15637 | fi | |
15638 | fi | |
15639 | ||
5213506e RW |
15640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
15641 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 15642 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15643 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15644 | # We already found the complete path | |
172e41aa | 15645 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
15646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15647 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15648 | else |
15649 | # Canadian cross, just use what we found | |
5213506e RW |
15650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15651 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15652 | fi |
2abefe3d PB |
15653 | else |
15654 | ok=yes | |
15655 | case " ${configdirs} " in | |
15656 | *" binutils "*) ;; | |
15657 | *) ok=no ;; | |
15658 | esac | |
1c710c3c | 15659 | |
2abefe3d PB |
15660 | if test $ok = yes; then |
15661 | # An in-tree tool is available and we can use it | |
455c8f48 | 15662 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
15663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15664 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15665 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15666 | # We already found the complete path | |
172e41aa | 15667 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
15668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15669 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15670 | elif test "x$target" = "x$host"; then |
15671 | # We can use an host tool | |
15672 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
15673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15674 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15675 | else |
15676 | # We need a cross tool | |
5213506e RW |
15677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15678 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15679 | fi |
15680 | fi | |
0b0dc272 | 15681 | |
5213506e RW |
15682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
15683 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 15684 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15685 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15686 | # We already found the complete path | |
172e41aa | 15687 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
15688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15689 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15690 | else |
15691 | # Canadian cross, just use what we found | |
5213506e RW |
15692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15693 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15694 | fi |
2abefe3d PB |
15695 | else |
15696 | ok=yes | |
15697 | case " ${configdirs} " in | |
15698 | *" binutils "*) ;; | |
15699 | *) ok=no ;; | |
15700 | esac | |
1c710c3c | 15701 | |
2abefe3d PB |
15702 | if test $ok = yes; then |
15703 | # An in-tree tool is available and we can use it | |
15704 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
15705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15706 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15707 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15708 | # We already found the complete path | |
172e41aa | 15709 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
15710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15711 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15712 | elif test "x$target" = "x$host"; then |
15713 | # We can use an host tool | |
15714 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
15715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15716 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15717 | else |
15718 | # We need a cross tool | |
5213506e RW |
15719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15720 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 15721 | fi |
671aa708 | 15722 | fi |
be912515 | 15723 | |
5213506e RW |
15724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
15725 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
15726 | if test "x${build}" != "x${host}" ; then |
15727 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
15728 | # We already found the complete path | |
15729 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
15730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15731 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
15732 | else |
15733 | # Canadian cross, just use what we found | |
5213506e RW |
15734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15735 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
15736 | fi |
15737 | else | |
15738 | ok=yes | |
15739 | case " ${configdirs} " in | |
15740 | *" binutils "*) ;; | |
15741 | *) ok=no ;; | |
15742 | esac | |
15743 | ||
15744 | if test $ok = yes; then | |
15745 | # An in-tree tool is available and we can use it | |
15746 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
15747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15748 | $as_echo "just compiled" >&6; } | |
901119ae KT |
15749 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
15750 | # We already found the complete path | |
15751 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
15752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15753 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
15754 | elif test "x$target" = "x$host"; then |
15755 | # We can use an host tool | |
15756 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15758 | $as_echo "host tool" >&6; } | |
901119ae KT |
15759 | else |
15760 | # We need a cross tool | |
5213506e RW |
15761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15762 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
15763 | fi |
15764 | fi | |
15765 | ||
be912515 NN |
15766 | |
15767 | ||
2abefe3d | 15768 | |
0b0dc272 | 15769 | |
671aa708 NN |
15770 | # Certain tools may need extra flags. |
15771 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
15772 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
15773 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
15774 | ||
2abefe3d PB |
15775 | # When building target libraries, except in a Canadian cross, we use |
15776 | # the same toolchain as the compiler we just built. | |
15777 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
15778 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
15779 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
15780 | if test $host = $build; then | |
15781 | case " $configdirs " in | |
15782 | *" gcc "*) | |
15783 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
15784 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
15785 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
15786 | ;; | |
15787 | esac | |
15788 | fi | |
15789 | ||
15790 | ||
15791 | ||
15792 | ||
15793 | ||
5213506e RW |
15794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
15795 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
15796 | # Check whether --enable-maintainer-mode was given. | |
15797 | if test "${enable_maintainer_mode+set}" = set; then : | |
15798 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
15799 | else |
15800 | USE_MAINTAINER_MODE=no | |
5213506e RW |
15801 | fi |
15802 | ||
15803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
15804 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
15805 | |
15806 | ||
15807 | if test "$USE_MAINTAINER_MODE" = yes; then | |
15808 | MAINTAINER_MODE_TRUE= | |
15809 | MAINTAINER_MODE_FALSE='#' | |
15810 | else | |
15811 | MAINTAINER_MODE_TRUE='#' | |
15812 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 15813 | fi |
ee03dc5e AO |
15814 | MAINT=$MAINTAINER_MODE_TRUE |
15815 | ||
2805b53a NN |
15816 | # --------------------- |
15817 | # GCC bootstrap support | |
15818 | # --------------------- | |
15819 | ||
15820 | # Stage specific cflags for build. | |
15821 | stage1_cflags="-g" | |
15822 | case $build in | |
15823 | vax-*-*) | |
15824 | case ${GCC} in | |
15825 | yes) stage1_cflags="-g -Wa,-J" ;; | |
15826 | *) stage1_cflags="-g -J" ;; | |
15827 | esac ;; | |
2805b53a NN |
15828 | esac |
15829 | ||
0b50988a | 15830 | |
2805b53a | 15831 | |
8efea775 | 15832 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
15833 | # Check whether --enable-stage1-checking was given. |
15834 | if test "${enable_stage1_checking+set}" = set; then : | |
15835 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 15836 | else |
e643dc23 | 15837 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
15838 | # For --disable-checking or implicit --enable-checking=release, avoid |
15839 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
15840 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
15841 | case $BUILD_CONFIG in |
15842 | *lto*) | |
7db11a5a JJ |
15843 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
15844 | *) | |
15845 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 15846 | esac |
7db11a5a JJ |
15847 | if test "x$enable_checking" = x && \ |
15848 | test -d ${srcdir}/gcc && \ | |
15849 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 15850 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 15851 | fi |
8efea775 | 15852 | else |
e643dc23 | 15853 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 15854 | fi |
5213506e | 15855 | fi |
8efea775 PB |
15856 | |
15857 | ||
2aeb72e9 | 15858 | |
5213506e RW |
15859 | # Enable -Werror in bootstrap stage2 and later. |
15860 | # Check whether --enable-werror was given. | |
15861 | if test "${enable_werror+set}" = set; then : | |
15862 | enableval=$enable_werror; | |
09a9c095 NN |
15863 | case ${enable_werror} in |
15864 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
15865 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
15866 | esac |
15867 | ||
afd88efc ML |
15868 | else |
15869 | ||
01c712cb ML |
15870 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
15871 | case $BUILD_CONFIG in | |
15872 | bootstrap-debug) | |
15873 | stage2_werror_flag="--enable-werror-always" ;; | |
15874 | "") | |
15875 | stage2_werror_flag="--enable-werror-always" ;; | |
15876 | esac | |
15877 | fi | |
15878 | ||
afd88efc ML |
15879 | fi |
15880 | ||
15881 | ||
01c712cb | 15882 | |
2805b53a | 15883 | |
f2689b09 SE |
15884 | # Specify what files to not compare during bootstrap. |
15885 | ||
15886 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
15887 | case "$target" in | |
15888 | hppa*64*-*-hpux*) ;; | |
4f943869 MK |
15889 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
15890 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
f2689b09 SE |
15891 | esac |
15892 | ||
15893 | ||
5213506e RW |
15894 | ac_config_files="$ac_config_files Makefile" |
15895 | ||
1c710c3c | 15896 | cat >confcache <<\_ACEOF |
671aa708 NN |
15897 | # This file is a shell script that caches the results of configure |
15898 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
15899 | # scripts and configure runs, see configure's option --config-cache. |
15900 | # It is not useful on other systems. If it contains results you don't | |
15901 | # want to keep, you may remove or edit it. | |
671aa708 | 15902 | # |
1c710c3c DJ |
15903 | # config.status only pays attention to the cache file if you give it |
15904 | # the --recheck option to rerun configure. | |
671aa708 | 15905 | # |
1c710c3c DJ |
15906 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15907 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15908 | # following values. | |
15909 | ||
15910 | _ACEOF | |
15911 | ||
671aa708 NN |
15912 | # The following way of writing the cache mishandles newlines in values, |
15913 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 15914 | # So, we kill variables containing newlines. |
671aa708 NN |
15915 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15916 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
15917 | ( |
15918 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15919 | eval ac_val=\$$ac_var | |
15920 | case $ac_val in #( | |
15921 | *${as_nl}*) | |
15922 | case $ac_var in #( | |
15923 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15924 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15925 | esac | |
15926 | case $ac_var in #( | |
15927 | _ | IFS | as_nl) ;; #( | |
15928 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15929 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15930 | esac ;; | |
15931 | esac | |
15932 | done | |
15933 | ||
1c710c3c | 15934 | (set) 2>&1 | |
5213506e RW |
15935 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15936 | *${as_nl}ac_space=\ *) | |
15937 | # `set' does not quote correctly, so add quotes: double-quote | |
15938 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
15939 | sed -n \ |
15940 | "s/'/'\\\\''/g; | |
15941 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 15942 | ;; #( |
1c710c3c DJ |
15943 | *) |
15944 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 15945 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 15946 | ;; |
5213506e RW |
15947 | esac | |
15948 | sort | |
15949 | ) | | |
1c710c3c | 15950 | sed ' |
5213506e | 15951 | /^ac_cv_env_/b end |
1c710c3c | 15952 | t clear |
5213506e | 15953 | :clear |
1c710c3c DJ |
15954 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15955 | t end | |
5213506e RW |
15956 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15957 | :end' >>confcache | |
15958 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15959 | if test -w "$cache_file"; then | |
22e05272 | 15960 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
15961 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15962 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
15963 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15964 | cat confcache >"$cache_file" | |
15965 | else | |
15966 | case $cache_file in #( | |
15967 | */* | ?:*) | |
15968 | mv -f confcache "$cache_file"$$ && | |
15969 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15970 | *) | |
15971 | mv -f confcache "$cache_file" ;; | |
15972 | esac | |
15973 | fi | |
15974 | fi | |
671aa708 | 15975 | else |
5213506e RW |
15976 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15977 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 15978 | fi |
4977bab6 | 15979 | fi |
671aa708 | 15980 | rm -f confcache |
79c06341 | 15981 | |
671aa708 NN |
15982 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15983 | # Let make expand exec_prefix. | |
15984 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 15985 | |
671aa708 NN |
15986 | # Transform confdefs.h into DEFS. |
15987 | # Protect against shell expansion while executing Makefile rules. | |
15988 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
15989 | # |
15990 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 15991 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 15992 | # look for a macro that doesn't take arguments. |
5213506e RW |
15993 | ac_script=' |
15994 | :mline | |
15995 | /\\$/{ | |
15996 | N | |
15997 | s,\\\n,, | |
15998 | b mline | |
15999 | } | |
1c710c3c | 16000 | t clear |
5213506e RW |
16001 | :clear |
16002 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 16003 | t quote |
5213506e | 16004 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 16005 | t quote |
5213506e RW |
16006 | b any |
16007 | :quote | |
16008 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
16009 | s/\[/\\&/g | |
16010 | s/\]/\\&/g | |
16011 | s/\$/$$/g | |
16012 | H | |
16013 | :any | |
16014 | ${ | |
16015 | g | |
16016 | s/^\n// | |
16017 | s/\n/ /g | |
16018 | p | |
16019 | } | |
16020 | ' | |
16021 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
16022 | |
16023 | ||
16024 | ac_libobjs= | |
16025 | ac_ltlibobjs= | |
22e05272 | 16026 | U= |
1c710c3c DJ |
16027 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
16028 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
16029 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
16030 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16031 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16032 | # will be set to the directory where LIBOBJS objects are built. | |
16033 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16034 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
16035 | done |
16036 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 16037 | |
1c710c3c | 16038 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 16039 | |
af71363e | 16040 | |
1c710c3c | 16041 | |
22e05272 | 16042 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 16043 | ac_write_fail=0 |
1c710c3c DJ |
16044 | ac_clean_files_save=$ac_clean_files |
16045 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
16046 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
16047 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16048 | as_write_fail=0 | |
16049 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
16050 | #! $SHELL |
16051 | # Generated by $as_me. | |
671aa708 | 16052 | # Run this file to recreate the current configuration. |
671aa708 | 16053 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 16054 | # configure, is in config.log if it exists. |
0b0dc272 | 16055 | |
1c710c3c DJ |
16056 | debug=false |
16057 | ac_cs_recheck=false | |
16058 | ac_cs_silent=false | |
1c710c3c | 16059 | |
5213506e RW |
16060 | SHELL=\${CONFIG_SHELL-$SHELL} |
16061 | export SHELL | |
16062 | _ASEOF | |
16063 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16064 | ## -------------------- ## | |
16065 | ## M4sh Initialization. ## | |
16066 | ## -------------------- ## | |
16067 | ||
16068 | # Be more Bourne compatible | |
16069 | DUALCASE=1; export DUALCASE # for MKS sh | |
16070 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
16071 | emulate sh |
16072 | NULLCMD=: | |
5213506e | 16073 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
16074 | # is contrary to our usage. Disable this feature. |
16075 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
16076 | setopt NO_GLOB_SUBST |
16077 | else | |
16078 | case `(set -o) 2>/dev/null` in #( | |
16079 | *posix*) : | |
16080 | set -o posix ;; #( | |
16081 | *) : | |
16082 | ;; | |
16083 | esac | |
1c710c3c | 16084 | fi |
1c710c3c | 16085 | |
5213506e RW |
16086 | |
16087 | as_nl=' | |
16088 | ' | |
16089 | export as_nl | |
16090 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16091 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16092 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16093 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16094 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16095 | # but without wasting forks for bash or zsh. | |
16096 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16097 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16098 | as_echo='print -r --' | |
16099 | as_echo_n='print -rn --' | |
16100 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16101 | as_echo='printf %s\n' | |
16102 | as_echo_n='printf %s' | |
16103 | else | |
16104 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16105 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16106 | as_echo_n='/usr/ucb/echo -n' | |
16107 | else | |
16108 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16109 | as_echo_n_body='eval | |
16110 | arg=$1; | |
16111 | case $arg in #( | |
16112 | *"$as_nl"*) | |
16113 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16114 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16115 | esac; | |
16116 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16117 | ' | |
16118 | export as_echo_n_body | |
16119 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16120 | fi | |
16121 | export as_echo_body | |
16122 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
16123 | fi |
16124 | ||
5213506e RW |
16125 | # The user is always right. |
16126 | if test "${PATH_SEPARATOR+set}" != set; then | |
16127 | PATH_SEPARATOR=: | |
16128 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16129 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16130 | PATH_SEPARATOR=';' | |
16131 | } | |
16132 | fi | |
16133 | ||
16134 | ||
16135 | # IFS | |
16136 | # We need space, tab and new line, in precisely that order. Quoting is | |
16137 | # there to prevent editors from complaining about space-tab. | |
16138 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16139 | # splitting by setting IFS to empty value.) | |
16140 | IFS=" "" $as_nl" | |
16141 | ||
16142 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 16143 | as_myself= |
5213506e RW |
16144 | case $0 in #(( |
16145 | *[\\/]* ) as_myself=$0 ;; | |
16146 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16147 | for as_dir in $PATH | |
16148 | do | |
16149 | IFS=$as_save_IFS | |
16150 | test -z "$as_dir" && as_dir=. | |
16151 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16152 | done | |
16153 | IFS=$as_save_IFS | |
16154 | ||
16155 | ;; | |
16156 | esac | |
16157 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16158 | # in which case we are not to be found in the path. | |
16159 | if test "x$as_myself" = x; then | |
16160 | as_myself=$0 | |
16161 | fi | |
16162 | if test ! -f "$as_myself"; then | |
16163 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16164 | exit 1 | |
16165 | fi | |
1c710c3c | 16166 | |
5213506e RW |
16167 | # Unset variables that we do not need and which cause bugs (e.g. in |
16168 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16169 | # suppresses any "Segmentation fault" message there. '((' could | |
16170 | # trigger a bug in pdksh 5.2.14. | |
16171 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16172 | do eval test x\${$as_var+set} = xset \ | |
16173 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16174 | done | |
1c710c3c DJ |
16175 | PS1='$ ' |
16176 | PS2='> ' | |
16177 | PS4='+ ' | |
16178 | ||
16179 | # NLS nuisances. | |
5213506e RW |
16180 | LC_ALL=C |
16181 | export LC_ALL | |
16182 | LANGUAGE=C | |
16183 | export LANGUAGE | |
16184 | ||
16185 | # CDPATH. | |
16186 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16187 | ||
16188 | ||
22e05272 JM |
16189 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
16190 | # ---------------------------------------- | |
5213506e RW |
16191 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
16192 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 16193 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
16194 | as_fn_error () |
16195 | { | |
22e05272 JM |
16196 | as_status=$1; test $as_status -eq 0 && as_status=1 |
16197 | if test "$4"; then | |
16198 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16199 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 16200 | fi |
22e05272 | 16201 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
16202 | as_fn_exit $as_status |
16203 | } # as_fn_error | |
16204 | ||
16205 | ||
16206 | # as_fn_set_status STATUS | |
16207 | # ----------------------- | |
16208 | # Set $? to STATUS, without forking. | |
16209 | as_fn_set_status () | |
16210 | { | |
16211 | return $1 | |
16212 | } # as_fn_set_status | |
16213 | ||
16214 | # as_fn_exit STATUS | |
16215 | # ----------------- | |
16216 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16217 | as_fn_exit () | |
16218 | { | |
16219 | set +e | |
16220 | as_fn_set_status $1 | |
16221 | exit $1 | |
16222 | } # as_fn_exit | |
16223 | ||
16224 | # as_fn_unset VAR | |
16225 | # --------------- | |
16226 | # Portably unset VAR. | |
16227 | as_fn_unset () | |
16228 | { | |
16229 | { eval $1=; unset $1;} | |
16230 | } | |
16231 | as_unset=as_fn_unset | |
16232 | # as_fn_append VAR VALUE | |
16233 | # ---------------------- | |
16234 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16235 | # advantage of any shell optimizations that allow amortized linear growth over | |
16236 | # repeated appends, instead of the typical quadratic growth present in naive | |
16237 | # implementations. | |
16238 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16239 | eval 'as_fn_append () | |
16240 | { | |
16241 | eval $1+=\$2 | |
16242 | }' | |
16243 | else | |
16244 | as_fn_append () | |
16245 | { | |
16246 | eval $1=\$$1\$2 | |
16247 | } | |
16248 | fi # as_fn_append | |
16249 | ||
16250 | # as_fn_arith ARG... | |
16251 | # ------------------ | |
16252 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16253 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16254 | # must be portable across $(()) and expr. | |
16255 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16256 | eval 'as_fn_arith () | |
16257 | { | |
16258 | as_val=$(( $* )) | |
16259 | }' | |
16260 | else | |
16261 | as_fn_arith () | |
16262 | { | |
16263 | as_val=`expr "$@" || test $? -eq 1` | |
16264 | } | |
16265 | fi # as_fn_arith | |
16266 | ||
1c710c3c | 16267 | |
5213506e RW |
16268 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16269 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
16270 | as_expr=expr |
16271 | else | |
16272 | as_expr=false | |
16273 | fi | |
16274 | ||
5213506e | 16275 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
16276 | as_basename=basename |
16277 | else | |
16278 | as_basename=false | |
16279 | fi | |
16280 | ||
5213506e RW |
16281 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16282 | as_dirname=dirname | |
16283 | else | |
16284 | as_dirname=false | |
16285 | fi | |
1c710c3c | 16286 | |
5213506e | 16287 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
16288 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16289 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
16290 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
16291 | $as_echo X/"$0" | | |
16292 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16293 | s//\1/ | |
16294 | q | |
16295 | } | |
16296 | /^X\/\(\/\/\)$/{ | |
16297 | s//\1/ | |
16298 | q | |
16299 | } | |
16300 | /^X\/\(\/\).*/{ | |
16301 | s//\1/ | |
16302 | q | |
16303 | } | |
16304 | s/.*/./; q'` | |
2aeb72e9 | 16305 | |
2aeb72e9 DD |
16306 | # Avoid depending upon Character Ranges. |
16307 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16308 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16309 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16310 | as_cr_digits='0123456789' | |
16311 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16312 | ||
5213506e RW |
16313 | ECHO_C= ECHO_N= ECHO_T= |
16314 | case `echo -n x` in #((((( | |
16315 | -n*) | |
16316 | case `echo 'xy\c'` in | |
16317 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16318 | xy) ECHO_C='\c';; | |
16319 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16320 | ECHO_T=' ';; | |
16321 | esac;; | |
16322 | *) | |
16323 | ECHO_N='-n';; | |
1c710c3c DJ |
16324 | esac |
16325 | ||
5213506e RW |
16326 | rm -f conf$$ conf$$.exe conf$$.file |
16327 | if test -d conf$$.dir; then | |
16328 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 16329 | else |
5213506e RW |
16330 | rm -f conf$$.dir |
16331 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 16332 | fi |
5213506e RW |
16333 | if (echo >conf$$.file) 2>/dev/null; then |
16334 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 16335 | as_ln_s='ln -s' |
5213506e RW |
16336 | # ... but there are two gotchas: |
16337 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16338 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 16339 | # In both cases, we have to default to `cp -pR'. |
5213506e | 16340 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 16341 | as_ln_s='cp -pR' |
5213506e RW |
16342 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16343 | as_ln_s=ln | |
16344 | else | |
22e05272 | 16345 | as_ln_s='cp -pR' |
2aeb72e9 | 16346 | fi |
1c710c3c | 16347 | else |
22e05272 | 16348 | as_ln_s='cp -pR' |
1c710c3c | 16349 | fi |
5213506e RW |
16350 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
16351 | rmdir conf$$.dir 2>/dev/null | |
16352 | ||
16353 | ||
16354 | # as_fn_mkdir_p | |
16355 | # ------------- | |
16356 | # Create "$as_dir" as a directory, including parents if necessary. | |
16357 | as_fn_mkdir_p () | |
16358 | { | |
16359 | ||
16360 | case $as_dir in #( | |
16361 | -*) as_dir=./$as_dir;; | |
16362 | esac | |
16363 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16364 | as_dirs= | |
16365 | while :; do | |
16366 | case $as_dir in #( | |
16367 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16368 | *) as_qdir=$as_dir;; | |
16369 | esac | |
16370 | as_dirs="'$as_qdir' $as_dirs" | |
16371 | as_dir=`$as_dirname -- "$as_dir" || | |
16372 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16373 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16374 | X"$as_dir" : 'X\(//\)$' \| \ | |
16375 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16376 | $as_echo X"$as_dir" | | |
16377 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16378 | s//\1/ | |
16379 | q | |
16380 | } | |
16381 | /^X\(\/\/\)[^/].*/{ | |
16382 | s//\1/ | |
16383 | q | |
16384 | } | |
16385 | /^X\(\/\/\)$/{ | |
16386 | s//\1/ | |
16387 | q | |
16388 | } | |
16389 | /^X\(\/\).*/{ | |
16390 | s//\1/ | |
16391 | q | |
16392 | } | |
16393 | s/.*/./; q'` | |
16394 | test -d "$as_dir" && break | |
16395 | done | |
16396 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 16397 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 16398 | |
1c710c3c | 16399 | |
5213506e | 16400 | } # as_fn_mkdir_p |
1c710c3c | 16401 | if mkdir -p . 2>/dev/null; then |
5213506e | 16402 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
16403 | else |
16404 | test -d ./-p && rmdir ./-p | |
16405 | as_mkdir_p=false | |
16406 | fi | |
16407 | ||
22e05272 JM |
16408 | |
16409 | # as_fn_executable_p FILE | |
16410 | # ----------------------- | |
16411 | # Test if FILE is an executable regular file. | |
16412 | as_fn_executable_p () | |
16413 | { | |
16414 | test -f "$1" && test -x "$1" | |
16415 | } # as_fn_executable_p | |
16416 | as_test_x='test -x' | |
16417 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
16418 | |
16419 | # Sed expression to map a string onto a valid CPP name. | |
16420 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16421 | ||
16422 | # Sed expression to map a string onto a valid variable name. | |
16423 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16424 | ||
16425 | ||
1c710c3c | 16426 | exec 6>&1 |
5213506e RW |
16427 | ## ----------------------------------- ## |
16428 | ## Main body of $CONFIG_STATUS script. ## | |
16429 | ## ----------------------------------- ## | |
16430 | _ASEOF | |
16431 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16432 | ||
16433 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16434 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 16435 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
16436 | # values after options handling. |
16437 | ac_log=" | |
1c710c3c | 16438 | This file was extended by $as_me, which was |
22e05272 | 16439 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
16440 | |
16441 | CONFIG_FILES = $CONFIG_FILES | |
16442 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16443 | CONFIG_LINKS = $CONFIG_LINKS | |
16444 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16445 | $ $0 $@ | |
16446 | ||
5213506e RW |
16447 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16448 | " | |
16449 | ||
1c710c3c DJ |
16450 | _ACEOF |
16451 | ||
5213506e RW |
16452 | case $ac_config_files in *" |
16453 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16454 | esac | |
1c710c3c | 16455 | |
2aeb72e9 | 16456 | |
2aeb72e9 | 16457 | |
5213506e RW |
16458 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16459 | # Files that config.status was made for. | |
16460 | config_files="$ac_config_files" | |
1c710c3c | 16461 | |
5213506e | 16462 | _ACEOF |
2aeb72e9 | 16463 | |
5213506e | 16464 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 16465 | ac_cs_usage="\ |
5213506e RW |
16466 | \`$as_me' instantiates files and other configuration actions |
16467 | from templates according to the current configuration. Unless the files | |
16468 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 16469 | |
5213506e | 16470 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
16471 | |
16472 | -h, --help print this help, then exit | |
5213506e | 16473 | -V, --version print version number and configuration settings, then exit |
22e05272 | 16474 | --config print configuration, then exit |
5213506e RW |
16475 | -q, --quiet, --silent |
16476 | do not print progress messages | |
1c710c3c DJ |
16477 | -d, --debug don't remove temporary files |
16478 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
16479 | --file=FILE[:TEMPLATE] |
16480 | instantiate the configuration file FILE | |
1c710c3c DJ |
16481 | |
16482 | Configuration files: | |
16483 | $config_files | |
16484 | ||
5213506e | 16485 | Report bugs to the package provider." |
2aeb72e9 | 16486 | |
5213506e RW |
16487 | _ACEOF |
16488 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 16489 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
16490 | ac_cs_version="\\ |
16491 | config.status | |
22e05272 JM |
16492 | configured by $0, generated by GNU Autoconf 2.69, |
16493 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 16494 | |
22e05272 | 16495 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
16496 | This config.status script is free software; the Free Software Foundation |
16497 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
16498 | |
16499 | ac_pwd='$ac_pwd' | |
16500 | srcdir='$srcdir' | |
16501 | INSTALL='$INSTALL' | |
87264276 | 16502 | AWK='$AWK' |
5213506e | 16503 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
16504 | _ACEOF |
16505 | ||
5213506e RW |
16506 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16507 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
16508 | ac_need_defaults=: |
16509 | while test $# != 0 | |
a4b9e93e | 16510 | do |
1c710c3c | 16511 | case $1 in |
22e05272 | 16512 | --*=?*) |
5213506e RW |
16513 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16514 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
16515 | ac_shift=: |
16516 | ;; | |
22e05272 JM |
16517 | --*=) |
16518 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16519 | ac_optarg= | |
16520 | ac_shift=: | |
16521 | ;; | |
5213506e | 16522 | *) |
1c710c3c DJ |
16523 | ac_option=$1 |
16524 | ac_optarg=$2 | |
16525 | ac_shift=shift | |
16526 | ;; | |
1c710c3c DJ |
16527 | esac |
16528 | ||
16529 | case $ac_option in | |
16530 | # Handling of the options. | |
671aa708 | 16531 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 16532 | ac_cs_recheck=: ;; |
5213506e RW |
16533 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
16534 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
16535 | --config | --confi | --conf | --con | --co | --c ) |
16536 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 16537 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
16538 | debug=: ;; |
16539 | --file | --fil | --fi | --f ) | |
16540 | $ac_shift | |
5213506e RW |
16541 | case $ac_optarg in |
16542 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 16543 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
16544 | esac |
16545 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 16546 | ac_need_defaults=false;; |
5213506e RW |
16547 | --he | --h | --help | --hel | -h ) |
16548 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
16549 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16550 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16551 | ac_cs_silent=: ;; | |
16552 | ||
16553 | # This is an error. | |
22e05272 | 16554 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 16555 | Try \`$0 --help' for more information." ;; |
1c710c3c | 16556 | |
5213506e RW |
16557 | *) as_fn_append ac_config_targets " $1" |
16558 | ac_need_defaults=false ;; | |
1c710c3c | 16559 | |
0b0dc272 | 16560 | esac |
1c710c3c | 16561 | shift |
0b0dc272 AM |
16562 | done |
16563 | ||
1c710c3c | 16564 | ac_configure_extra_args= |
0b0dc272 | 16565 | |
1c710c3c DJ |
16566 | if $ac_cs_silent; then |
16567 | exec 6>/dev/null | |
16568 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16569 | fi | |
0b0dc272 | 16570 | |
1c710c3c | 16571 | _ACEOF |
5213506e | 16572 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 16573 | if \$ac_cs_recheck; then |
22e05272 | 16574 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
16575 | shift |
16576 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16577 | CONFIG_SHELL='$SHELL' | |
16578 | export CONFIG_SHELL | |
16579 | exec "\$@" | |
1c710c3c DJ |
16580 | fi |
16581 | ||
16582 | _ACEOF | |
5213506e RW |
16583 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16584 | exec 5>>config.log | |
16585 | { | |
16586 | echo | |
16587 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16588 | ## Running $as_me. ## | |
16589 | _ASBOX | |
16590 | $as_echo "$ac_log" | |
16591 | } >&5 | |
1c710c3c | 16592 | |
5213506e RW |
16593 | _ACEOF |
16594 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
16595 | # |
16596 | # INIT-COMMANDS | |
16597 | # | |
16598 | extrasub_build="$extrasub_build" | |
16599 | extrasub_host="$extrasub_host" | |
16600 | extrasub_target="$extrasub_target" | |
16601 | ||
5213506e | 16602 | _ACEOF |
1c710c3c | 16603 | |
5213506e | 16604 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 16605 | |
5213506e | 16606 | # Handling of arguments. |
1c710c3c DJ |
16607 | for ac_config_target in $ac_config_targets |
16608 | do | |
5213506e RW |
16609 | case $ac_config_target in |
16610 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16611 | ||
22e05272 | 16612 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
16613 | esac |
16614 | done | |
16615 | ||
5213506e | 16616 | |
1c710c3c DJ |
16617 | # If the user did not use the arguments to specify the items to instantiate, |
16618 | # then the envvar interface is used. Set only those that are not. | |
16619 | # We use the long form for the default assignment because of an extremely | |
16620 | # bizarre bug on SunOS 4.1.3. | |
16621 | if $ac_need_defaults; then | |
16622 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16623 | fi | |
16624 | ||
16625 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 16626 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 16627 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
16628 | # Hook for its removal unless debugging. |
16629 | # Note that there is a small window in which the directory will not be cleaned: | |
16630 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
16631 | $debug || |
16632 | { | |
22e05272 | 16633 | tmp= ac_tmp= |
5213506e | 16634 | trap 'exit_status=$? |
22e05272 JM |
16635 | : "${ac_tmp:=$tmp}" |
16636 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
16637 | ' 0 |
16638 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 16639 | } |
1c710c3c DJ |
16640 | # Create a (secure) tmp directory for tmp files. |
16641 | ||
16642 | { | |
5213506e | 16643 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 16644 | test -d "$tmp" |
1c710c3c DJ |
16645 | } || |
16646 | { | |
5213506e RW |
16647 | tmp=./conf$$-$RANDOM |
16648 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
16649 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16650 | ac_tmp=$tmp | |
5213506e RW |
16651 | |
16652 | # Set up the scripts for CONFIG_FILES section. | |
16653 | # No need to generate them if there are no CONFIG_FILES. | |
16654 | # This happens for instance with `./config.status config.h'. | |
16655 | if test -n "$CONFIG_FILES"; then | |
16656 | ||
16657 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
16658 | ac_cs_awk_getline=: | |
16659 | ac_cs_awk_pipe_init= | |
16660 | ac_cs_awk_read_file=' | |
16661 | while ((getline aline < (F[key])) > 0) | |
16662 | print(aline) | |
16663 | close(F[key])' | |
16664 | ac_cs_awk_pipe_fini= | |
16665 | else | |
16666 | ac_cs_awk_getline=false | |
16667 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16668 | ac_cs_awk_read_file=' | |
16669 | print "|#_!!_#|" | |
16670 | print "cat " F[key] " &&" | |
16671 | '$ac_cs_awk_pipe_init | |
16672 | # The final `:' finishes the AND list. | |
16673 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16674 | fi | |
16675 | ac_cr=`echo X | tr X '\015'` | |
16676 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16677 | # But we know of no other shell where ac_cr would be empty at this | |
16678 | # point, so we can use a bashism as a fallback. | |
16679 | if test "x$ac_cr" = x; then | |
16680 | eval ac_cr=\$\'\\r\' | |
16681 | fi | |
16682 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16683 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 16684 | ac_cs_awk_cr='\\r' |
5213506e RW |
16685 | else |
16686 | ac_cs_awk_cr=$ac_cr | |
16687 | fi | |
16688 | ||
22e05272 | 16689 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
16690 | _ACEOF |
16691 | ||
16692 | # Create commands to substitute file output variables. | |
1c710c3c | 16693 | { |
5213506e | 16694 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 16695 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
16696 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
16697 | echo "_ACAWK" && | |
16698 | echo "_ACEOF" | |
16699 | } >conf$$files.sh && | |
16700 | . ./conf$$files.sh || | |
22e05272 | 16701 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 16702 | rm -f conf$$files.sh |
1c710c3c | 16703 | |
5213506e RW |
16704 | { |
16705 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16706 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16707 | echo "_ACEOF" | |
16708 | } >conf$$subs.sh || | |
22e05272 JM |
16709 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16710 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
16711 | ac_delim='%!_!# ' |
16712 | for ac_last_try in false false false false false :; do | |
16713 | . ./conf$$subs.sh || | |
22e05272 | 16714 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
16715 | |
16716 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16717 | if test $ac_delim_n = $ac_delim_num; then | |
16718 | break | |
16719 | elif $ac_last_try; then | |
22e05272 | 16720 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
16721 | else |
16722 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16723 | fi | |
16724 | done | |
16725 | rm -f conf$$subs.sh | |
16726 | ||
16727 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 16728 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 16729 | _ACEOF |
5213506e RW |
16730 | sed -n ' |
16731 | h | |
16732 | s/^/S["/; s/!.*/"]=/ | |
16733 | p | |
16734 | g | |
16735 | s/^[^!]*!// | |
16736 | :repl | |
16737 | t repl | |
16738 | s/'"$ac_delim"'$// | |
16739 | t delim | |
16740 | :nl | |
16741 | h | |
22e05272 | 16742 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
16743 | t more1 |
16744 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16745 | p | |
16746 | n | |
16747 | b repl | |
16748 | :more1 | |
16749 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16750 | p | |
16751 | g | |
16752 | s/.\{148\}// | |
16753 | t nl | |
16754 | :delim | |
16755 | h | |
22e05272 | 16756 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
16757 | t more2 |
16758 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16759 | p | |
16760 | b | |
16761 | :more2 | |
16762 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16763 | p | |
16764 | g | |
16765 | s/.\{148\}// | |
16766 | t delim | |
16767 | ' <conf$$subs.awk | sed ' | |
16768 | /^[^""]/{ | |
16769 | N | |
16770 | s/\n// | |
16771 | } | |
16772 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16773 | rm -f conf$$subs.awk | |
16774 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16775 | _ACAWK | |
22e05272 | 16776 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
16777 | for (key in S) S_is_set[key] = 1 |
16778 | FS = "\a" | |
16779 | \$ac_cs_awk_pipe_init | |
16780 | } | |
16781 | { | |
16782 | line = $ 0 | |
16783 | nfields = split(line, field, "@") | |
16784 | substed = 0 | |
16785 | len = length(field[1]) | |
16786 | for (i = 2; i < nfields; i++) { | |
16787 | key = field[i] | |
16788 | keylen = length(key) | |
16789 | if (S_is_set[key]) { | |
16790 | value = S[key] | |
16791 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16792 | len += length(value) + length(field[++i]) | |
16793 | substed = 1 | |
16794 | } else | |
16795 | len += 1 + keylen | |
16796 | } | |
16797 | if (nfields == 3 && !substed) { | |
16798 | key = field[2] | |
16799 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16800 | \$ac_cs_awk_read_file | |
16801 | next | |
16802 | } | |
16803 | } | |
16804 | print line | |
16805 | } | |
16806 | \$ac_cs_awk_pipe_fini | |
16807 | _ACAWK | |
16808 | _ACEOF | |
16809 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16810 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16811 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16812 | else | |
16813 | cat | |
22e05272 JM |
16814 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16815 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
16816 | _ACEOF |
16817 | ||
22e05272 JM |
16818 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16819 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
16820 | # trailing colons and then remove the whole line if VPATH becomes empty |
16821 | # (actually we leave an empty line to preserve line numbers). | |
16822 | if test "x$srcdir" = x.; then | |
22e05272 JM |
16823 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16824 | h | |
16825 | s/// | |
16826 | s/^/:/ | |
16827 | s/[ ]*$/:/ | |
16828 | s/:\$(srcdir):/:/g | |
16829 | s/:\${srcdir}:/:/g | |
16830 | s/:@srcdir@:/:/g | |
16831 | s/^:*// | |
5213506e | 16832 | s/:*$// |
22e05272 JM |
16833 | x |
16834 | s/\(=[ ]*\).*/\1/ | |
16835 | G | |
16836 | s/\n// | |
5213506e RW |
16837 | s/^[^=]*=[ ]*$// |
16838 | }' | |
16839 | fi | |
2aeb72e9 | 16840 | |
5213506e RW |
16841 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16842 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 16843 | |
1c710c3c | 16844 | |
5213506e RW |
16845 | eval set X " :F $CONFIG_FILES " |
16846 | shift | |
16847 | for ac_tag | |
16848 | do | |
16849 | case $ac_tag in | |
16850 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16851 | esac | |
16852 | case $ac_mode$ac_tag in | |
16853 | :[FHL]*:*);; | |
22e05272 | 16854 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
16855 | :[FH]-) ac_tag=-:-;; |
16856 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16857 | esac | |
16858 | ac_save_IFS=$IFS | |
16859 | IFS=: | |
16860 | set x $ac_tag | |
16861 | IFS=$ac_save_IFS | |
16862 | shift | |
16863 | ac_file=$1 | |
16864 | shift | |
79c06341 | 16865 | |
5213506e RW |
16866 | case $ac_mode in |
16867 | :L) ac_source=$1;; | |
16868 | :[FH]) | |
16869 | ac_file_inputs= | |
16870 | for ac_f | |
16871 | do | |
16872 | case $ac_f in | |
22e05272 | 16873 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
16874 | *) # Look for the file first in the build tree, then in the source tree |
16875 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16876 | # because $ac_f cannot contain `:'. | |
16877 | test -f "$ac_f" || | |
16878 | case $ac_f in | |
16879 | [\\/$]*) false;; | |
16880 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16881 | esac || | |
22e05272 | 16882 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
16883 | esac |
16884 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16885 | as_fn_append ac_file_inputs " '$ac_f'" | |
16886 | done | |
1c710c3c | 16887 | |
5213506e RW |
16888 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16889 | # use $as_me), people would be surprised to read: | |
16890 | # /* config.h. Generated by config.status. */ | |
16891 | configure_input='Generated from '` | |
16892 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16893 | `' by configure.' | |
16894 | if test x"$ac_file" != x-; then | |
16895 | configure_input="$ac_file. $configure_input" | |
16896 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16897 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 16898 | fi |
5213506e RW |
16899 | # Neutralize special characters interpreted by sed in replacement strings. |
16900 | case $configure_input in #( | |
16901 | *\&* | *\|* | *\\* ) | |
16902 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16903 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16904 | *) ac_sed_conf_input=$configure_input;; | |
16905 | esac | |
11a67599 | 16906 | |
5213506e | 16907 | case $ac_tag in |
22e05272 JM |
16908 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16909 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
16910 | esac |
16911 | ;; | |
11a67599 ZW |
16912 | esac |
16913 | ||
5213506e | 16914 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
16915 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16916 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16917 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
16918 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16919 | $as_echo X"$ac_file" | | |
16920 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16921 | s//\1/ | |
16922 | q | |
16923 | } | |
16924 | /^X\(\/\/\)[^/].*/{ | |
16925 | s//\1/ | |
16926 | q | |
16927 | } | |
16928 | /^X\(\/\/\)$/{ | |
16929 | s//\1/ | |
16930 | q | |
16931 | } | |
16932 | /^X\(\/\).*/{ | |
16933 | s//\1/ | |
16934 | q | |
16935 | } | |
16936 | s/.*/./; q'` | |
16937 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 16938 | ac_builddir=. |
0b0dc272 | 16939 | |
5213506e RW |
16940 | case "$ac_dir" in |
16941 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16942 | *) | |
16943 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16944 | # A ".." for each directory in $ac_dir_suffix. | |
16945 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16946 | case $ac_top_builddir_sub in | |
16947 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16948 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16949 | esac ;; | |
16950 | esac | |
16951 | ac_abs_top_builddir=$ac_pwd | |
16952 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16953 | # for backward compatibility: | |
16954 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
16955 | |
16956 | case $srcdir in | |
5213506e | 16957 | .) # We are building in place. |
1c710c3c | 16958 | ac_srcdir=. |
5213506e RW |
16959 | ac_top_srcdir=$ac_top_builddir_sub |
16960 | ac_abs_top_srcdir=$ac_pwd ;; | |
16961 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 16962 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
16963 | ac_top_srcdir=$srcdir |
16964 | ac_abs_top_srcdir=$srcdir ;; | |
16965 | *) # Relative name. | |
16966 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16967 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16968 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 16969 | esac |
5213506e | 16970 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 16971 | |
0b0dc272 | 16972 | |
5213506e RW |
16973 | case $ac_mode in |
16974 | :F) | |
16975 | # | |
16976 | # CONFIG_FILE | |
16977 | # | |
1c710c3c DJ |
16978 | |
16979 | case $INSTALL in | |
16980 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 16981 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 16982 | esac |
5213506e | 16983 | _ACEOF |
11a67599 | 16984 | |
5213506e RW |
16985 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16986 | # If the template does not know about datarootdir, expand it. | |
16987 | # FIXME: This hack should be removed a few years after 2.60. | |
16988 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16989 | ac_sed_dataroot=' | |
16990 | /datarootdir/ { | |
16991 | p | |
16992 | q | |
16993 | } | |
16994 | /@datadir@/p | |
16995 | /@docdir@/p | |
16996 | /@infodir@/p | |
16997 | /@localedir@/p | |
16998 | /@mandir@/p' | |
16999 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17000 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17001 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17003 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 17004 | _ACEOF |
5213506e RW |
17005 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17006 | ac_datarootdir_hack=' | |
17007 | s&@datadir@&$datadir&g | |
17008 | s&@docdir@&$docdir&g | |
17009 | s&@infodir@&$infodir&g | |
17010 | s&@localedir@&$localedir&g | |
17011 | s&@mandir@&$mandir&g | |
17012 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17013 | esac | |
17014 | _ACEOF | |
17015 | ||
17016 | # Neutralize VPATH when `$srcdir' = `.'. | |
17017 | # Shell code in configure.ac might set extrasub. | |
17018 | # FIXME: do we really want to maintain this feature? | |
17019 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17020 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
17021 | $extrasub |
17022 | _ACEOF | |
5213506e | 17023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
17024 | :t |
17025 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
17026 | s|@configure_input@|$ac_sed_conf_input|;t t |
17027 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17028 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17029 | s&@srcdir@&$ac_srcdir&;t t | |
17030 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17031 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17032 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17033 | s&@builddir@&$ac_builddir&;t t | |
17034 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17035 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17036 | s&@INSTALL@&$ac_INSTALL&;t t | |
17037 | $ac_datarootdir_hack | |
17038 | " | |
17039 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
17040 | if $ac_cs_awk_getline; then | |
22e05272 | 17041 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 17042 | else |
22e05272 JM |
17043 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
17044 | fi \ | |
17045 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
17046 | |
17047 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
17048 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
17049 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17050 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 17051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 17052 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 17053 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 17054 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 17055 | |
22e05272 | 17056 | rm -f "$ac_tmp/stdin" |
5213506e | 17057 | case $ac_file in |
22e05272 JM |
17058 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
17059 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 17060 | esac \ |
22e05272 | 17061 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 17062 | ;; |
11a67599 | 17063 | |
11a67599 | 17064 | |
79c06341 | 17065 | |
5213506e RW |
17066 | esac |
17067 | ||
3e54529c RW |
17068 | |
17069 | case $ac_file$ac_mode in | |
17070 | "Makefile":F) sed "$extrasub_build" Makefile | | |
17071 | sed "$extrasub_host" | | |
17072 | sed "$extrasub_target" > mf$$ | |
17073 | mv -f mf$$ Makefile ;; | |
17074 | ||
17075 | esac | |
5213506e RW |
17076 | done # for ac_tag |
17077 | ||
17078 | ||
17079 | as_fn_exit 0 | |
1c710c3c | 17080 | _ACEOF |
1c710c3c DJ |
17081 | ac_clean_files=$ac_clean_files_save |
17082 | ||
5213506e | 17083 | test $ac_write_fail = 0 || |
22e05272 | 17084 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 17085 | |
1c710c3c DJ |
17086 | |
17087 | # configure is writing to config.log, and then calls config.status. | |
17088 | # config.status does its own redirection, appending to config.log. | |
17089 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17090 | # by configure, so config.status won't be able to write to it; its | |
17091 | # output is simply discarded. So we exec the FD to /dev/null, | |
17092 | # effectively closing config.log, so it can be properly (re)opened and | |
17093 | # appended to by config.status. When coming back to configure, we | |
17094 | # need to make the FD available again. | |
17095 | if test "$no_create" != yes; then | |
17096 | ac_cs_success=: | |
17097 | ac_config_status_args= | |
17098 | test "$silent" = yes && | |
17099 | ac_config_status_args="$ac_config_status_args --quiet" | |
17100 | exec 5>/dev/null | |
17101 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17102 | exec 5>>config.log | |
17103 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17104 | # would make configure fail if this is the last instruction. | |
22e05272 | 17105 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
17106 | fi |
17107 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17109 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 17110 | fi |
79c06341 | 17111 |