]>
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 | |
612 | DLLTOOL_FOR_TARGET | |
613 | AS_FOR_TARGET | |
614 | AR_FOR_TARGET | |
b4c522fa | 615 | GDC_FOR_TARGET |
632e2a07 | 616 | GOC_FOR_TARGET |
5213506e | 617 | GFORTRAN_FOR_TARGET |
5213506e RW |
618 | GCC_FOR_TARGET |
619 | CXX_FOR_TARGET | |
620 | CC_FOR_TARGET | |
e7a82751 | 621 | READELF |
e4a9a572 | 622 | OTOOL |
5213506e RW |
623 | OBJDUMP |
624 | OBJCOPY | |
625 | WINDMC | |
626 | WINDRES | |
627 | STRIP | |
628 | RANLIB | |
629 | NM | |
630 | LIPO | |
631 | LD | |
632 | DLLTOOL | |
633 | AS | |
634 | AR | |
635 | RUNTEST | |
636 | EXPECT | |
637 | MAKEINFO | |
638 | FLEX | |
639 | LEX | |
640 | M4 | |
641 | BISON | |
642 | YACC | |
5213506e RW |
643 | WINDRES_FOR_BUILD |
644 | WINDMC_FOR_BUILD | |
645 | RANLIB_FOR_BUILD | |
646 | NM_FOR_BUILD | |
647 | LD_FOR_BUILD | |
648 | LDFLAGS_FOR_BUILD | |
b4c522fa | 649 | GDC_FOR_BUILD |
632e2a07 | 650 | GOC_FOR_BUILD |
5213506e | 651 | GFORTRAN_FOR_BUILD |
5213506e RW |
652 | DLLTOOL_FOR_BUILD |
653 | CXX_FOR_BUILD | |
654 | CXXFLAGS_FOR_BUILD | |
655 | CFLAGS_FOR_BUILD | |
656 | CC_FOR_BUILD | |
657 | AS_FOR_BUILD | |
658 | AR_FOR_BUILD | |
aae29963 | 659 | target_configdirs |
5213506e | 660 | configdirs |
5213506e | 661 | build_configdirs |
5213506e RW |
662 | INSTALL_GDB_TK |
663 | GDB_TK | |
664 | CONFIGURE_GDB_TK | |
665 | build_tooldir | |
666 | tooldir | |
667 | GCC_SHLIB_SUBDIR | |
668 | RPATH_ENVVAR | |
ffedf511 RW |
669 | target_configargs |
670 | host_configargs | |
671 | build_configargs | |
e12c4094 | 672 | BUILD_CONFIG |
6f57bdf6 | 673 | LDFLAGS_FOR_TARGET |
5213506e RW |
674 | CXXFLAGS_FOR_TARGET |
675 | CFLAGS_FOR_TARGET | |
676 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
677 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 678 | get_gcc_base_ver |
1c01ebf6 | 679 | extra_host_zlib_configure_flags |
d7f09764 | 680 | extra_host_libiberty_configure_flags |
fca38047 | 681 | stage1_languages |
cdfee50a | 682 | host_shared |
45b3824d TS |
683 | extra_linker_plugin_flags |
684 | extra_linker_plugin_configure_flags | |
33ad93b9 | 685 | islinc |
eae1a5d4 | 686 | isllibs |
5213506e | 687 | poststage1_ldflags |
ed2eaa9f | 688 | poststage1_libs |
5213506e | 689 | stage1_ldflags |
0b21f5d3 | 690 | stage1_libs |
0ff2d841 | 691 | extra_isl_gmp_configure_flags |
5213506e RW |
692 | extra_mpc_mpfr_configure_flags |
693 | extra_mpc_gmp_configure_flags | |
694 | extra_mpfr_configure_flags | |
695 | gmpinc | |
696 | gmplibs | |
697 | do_compare | |
698 | GNATMAKE | |
699 | GNATBIND | |
700 | ac_ct_CXX | |
701 | CXXFLAGS | |
702 | CXX | |
703 | OBJEXT | |
704 | EXEEXT | |
705 | ac_ct_CC | |
706 | CPPFLAGS | |
707 | LDFLAGS | |
708 | CFLAGS | |
709 | CC | |
5f520819 | 710 | extra_liboffloadmic_configure_flags |
5213506e RW |
711 | target_subdir |
712 | host_subdir | |
713 | build_subdir | |
714 | build_libsubdir | |
87264276 PB |
715 | AWK |
716 | SED | |
5213506e RW |
717 | LN_S |
718 | LN | |
719 | INSTALL_DATA | |
720 | INSTALL_SCRIPT | |
721 | INSTALL_PROGRAM | |
722 | target_os | |
723 | target_vendor | |
724 | target_cpu | |
725 | target | |
726 | host_os | |
727 | host_vendor | |
728 | host_cpu | |
729 | host | |
730 | target_noncanonical | |
731 | host_noncanonical | |
732 | build_noncanonical | |
733 | build_os | |
734 | build_vendor | |
735 | build_cpu | |
736 | build | |
737 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
738 | target_alias | |
739 | host_alias | |
740 | build_alias | |
741 | LIBS | |
742 | ECHO_T | |
743 | ECHO_N | |
744 | ECHO_C | |
745 | DEFS | |
746 | mandir | |
747 | localedir | |
748 | libdir | |
749 | psdir | |
750 | pdfdir | |
751 | dvidir | |
752 | htmldir | |
753 | infodir | |
754 | docdir | |
755 | oldincludedir | |
756 | includedir | |
757 | localstatedir | |
758 | sharedstatedir | |
759 | sysconfdir | |
760 | datadir | |
761 | datarootdir | |
762 | libexecdir | |
763 | sbindir | |
764 | bindir | |
765 | program_transform_name | |
766 | prefix | |
767 | exec_prefix | |
768 | PACKAGE_URL | |
769 | PACKAGE_BUGREPORT | |
770 | PACKAGE_STRING | |
771 | PACKAGE_VERSION | |
772 | PACKAGE_TARNAME | |
773 | PACKAGE_NAME | |
774 | PATH_SEPARATOR | |
775 | SHELL' | |
776 | ac_subst_files='serialization_dependencies | |
777 | host_makefile_frag | |
778 | target_makefile_frag | |
779 | alphaieee_frag | |
780 | ospace_frag' | |
781 | ac_user_opts=' | |
782 | enable_option_checking | |
783 | with_build_libsubdir | |
a05c2c75 | 784 | with_system_zlib |
85c64bbe BS |
785 | enable_as_accelerator_for |
786 | enable_offload_targets | |
5213506e | 787 | enable_gold |
21539e2e | 788 | enable_ld |
78edb32f | 789 | enable_compressed_debug_sections |
87e6d9dc TB |
790 | enable_libquadmath |
791 | enable_libquadmath_support | |
5213506e RW |
792 | enable_libada |
793 | enable_libssp | |
1873ec0c | 794 | enable_libstdcxx |
5f520819 | 795 | enable_liboffloadmic |
ff3ac0f4 | 796 | enable_bootstrap |
5213506e RW |
797 | with_mpc |
798 | with_mpc_include | |
799 | with_mpc_lib | |
800 | with_mpfr_dir | |
801 | with_mpfr | |
802 | with_mpfr_include | |
803 | with_mpfr_lib | |
804 | with_gmp_dir | |
805 | with_gmp | |
806 | with_gmp_include | |
807 | with_gmp_lib | |
5213506e | 808 | with_stage1_libs |
0b21f5d3 | 809 | with_stage1_ldflags |
5213506e | 810 | with_boot_libs |
ed2eaa9f | 811 | with_boot_ldflags |
33ad93b9 RG |
812 | with_isl |
813 | with_isl_include | |
814 | with_isl_lib | |
815 | enable_isl_version_check | |
d7f09764 | 816 | enable_lto |
45b3824d TS |
817 | enable_linker_plugin_configure_flags |
818 | enable_linker_plugin_flags | |
cdfee50a | 819 | enable_host_shared |
5213506e | 820 | enable_stage1_languages |
43c40f3e | 821 | enable_objc_gc |
114bf3f1 MK |
822 | with_target_bdw_gc |
823 | with_target_bdw_gc_include | |
824 | with_target_bdw_gc_lib | |
3c36aa6b | 825 | with_gcc_major_version_only |
5213506e RW |
826 | with_build_sysroot |
827 | with_debug_prefix_map | |
5646b7b9 | 828 | with_build_config |
beeda1d9 | 829 | enable_vtable_verify |
5213506e RW |
830 | enable_serial_configure |
831 | with_build_time_tools | |
832 | enable_maintainer_mode | |
833 | enable_stage1_checking | |
834 | enable_werror | |
5213506e RW |
835 | ' |
836 | ac_precious_vars='build_alias | |
837 | host_alias | |
838 | target_alias | |
839 | CC | |
840 | CFLAGS | |
841 | LDFLAGS | |
842 | LIBS | |
843 | CPPFLAGS | |
844 | CXX | |
845 | CXXFLAGS | |
846 | CCC | |
ffedf511 RW |
847 | build_configargs |
848 | host_configargs | |
849 | target_configargs | |
5213506e RW |
850 | AR |
851 | AS | |
852 | DLLTOOL | |
853 | LD | |
854 | LIPO | |
855 | NM | |
856 | RANLIB | |
857 | STRIP | |
858 | WINDRES | |
859 | WINDMC | |
860 | OBJCOPY | |
861 | OBJDUMP | |
e4a9a572 | 862 | OTOOL |
e7a82751 | 863 | READELF |
5213506e RW |
864 | CC_FOR_TARGET |
865 | CXX_FOR_TARGET | |
866 | GCC_FOR_TARGET | |
5213506e | 867 | GFORTRAN_FOR_TARGET |
632e2a07 | 868 | GOC_FOR_TARGET |
b4c522fa | 869 | GDC_FOR_TARGET |
5213506e RW |
870 | AR_FOR_TARGET |
871 | AS_FOR_TARGET | |
872 | DLLTOOL_FOR_TARGET | |
873 | LD_FOR_TARGET | |
874 | LIPO_FOR_TARGET | |
875 | NM_FOR_TARGET | |
9bccfdf5 | 876 | OBJCOPY_FOR_TARGET |
5213506e | 877 | OBJDUMP_FOR_TARGET |
e4a9a572 | 878 | OTOOL_FOR_TARGET |
5213506e | 879 | RANLIB_FOR_TARGET |
e7a82751 | 880 | READELF_FOR_TARGET |
5213506e RW |
881 | STRIP_FOR_TARGET |
882 | WINDRES_FOR_TARGET | |
883 | WINDMC_FOR_TARGET' | |
884 | ||
671aa708 NN |
885 | |
886 | # Initialize some variables set by options. | |
1c710c3c DJ |
887 | ac_init_help= |
888 | ac_init_version=false | |
5213506e RW |
889 | ac_unrecognized_opts= |
890 | ac_unrecognized_sep= | |
671aa708 NN |
891 | # The variables have the same names as the options, with |
892 | # dashes changed to underlines. | |
1c710c3c | 893 | cache_file=/dev/null |
671aa708 | 894 | exec_prefix=NONE |
671aa708 | 895 | no_create= |
671aa708 NN |
896 | no_recursion= |
897 | prefix=NONE | |
898 | program_prefix=NONE | |
899 | program_suffix=NONE | |
900 | program_transform_name=s,x,x, | |
901 | silent= | |
902 | site= | |
903 | srcdir= | |
671aa708 NN |
904 | verbose= |
905 | x_includes=NONE | |
906 | x_libraries=NONE | |
1c710c3c DJ |
907 | |
908 | # Installation directory options. | |
909 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
910 | # and all the variables that are supposed to be based on exec_prefix | |
911 | # by default will actually change. | |
912 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 913 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
914 | bindir='${exec_prefix}/bin' |
915 | sbindir='${exec_prefix}/sbin' | |
916 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
917 | datarootdir='${prefix}/share' |
918 | datadir='${datarootdir}' | |
671aa708 NN |
919 | sysconfdir='${prefix}/etc' |
920 | sharedstatedir='${prefix}/com' | |
921 | localstatedir='${prefix}/var' | |
671aa708 NN |
922 | includedir='${prefix}/include' |
923 | oldincludedir='/usr/include' | |
5213506e RW |
924 | docdir='${datarootdir}/doc/${PACKAGE}' |
925 | infodir='${datarootdir}/info' | |
926 | htmldir='${docdir}' | |
927 | dvidir='${docdir}' | |
928 | pdfdir='${docdir}' | |
929 | psdir='${docdir}' | |
930 | libdir='${exec_prefix}/lib' | |
931 | localedir='${datarootdir}/locale' | |
932 | mandir='${datarootdir}/man' | |
79c06341 | 933 | |
671aa708 | 934 | ac_prev= |
5213506e | 935 | ac_dashdash= |
671aa708 NN |
936 | for ac_option |
937 | do | |
671aa708 NN |
938 | # If the previous option needs an argument, assign it. |
939 | if test -n "$ac_prev"; then | |
5213506e | 940 | eval $ac_prev=\$ac_option |
671aa708 NN |
941 | ac_prev= |
942 | continue | |
943 | fi | |
79c06341 | 944 | |
5213506e | 945 | case $ac_option in |
22e05272 JM |
946 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
947 | *=) ac_optarg= ;; | |
948 | *) ac_optarg=yes ;; | |
5213506e | 949 | esac |
671aa708 NN |
950 | |
951 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
952 | ||
5213506e RW |
953 | case $ac_dashdash$ac_option in |
954 | --) | |
955 | ac_dashdash=yes ;; | |
671aa708 NN |
956 | |
957 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
958 | ac_prev=bindir ;; | |
959 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 960 | bindir=$ac_optarg ;; |
671aa708 NN |
961 | |
962 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 963 | ac_prev=build_alias ;; |
671aa708 | 964 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 965 | build_alias=$ac_optarg ;; |
671aa708 NN |
966 | |
967 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
968 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
969 | ac_prev=cache_file ;; | |
970 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
971 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
972 | cache_file=$ac_optarg ;; |
973 | ||
974 | --config-cache | -C) | |
975 | cache_file=config.cache ;; | |
671aa708 | 976 | |
5213506e | 977 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 978 | ac_prev=datadir ;; |
5213506e | 979 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 980 | datadir=$ac_optarg ;; |
671aa708 | 981 | |
5213506e RW |
982 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
983 | | --dataroo | --dataro | --datar) | |
984 | ac_prev=datarootdir ;; | |
985 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
986 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
987 | datarootdir=$ac_optarg ;; | |
988 | ||
671aa708 | 989 | -disable-* | --disable-*) |
5213506e | 990 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 991 | # Reject names that are not valid shell variable names. |
5213506e | 992 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 993 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
994 | ac_useropt_orig=$ac_useropt |
995 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
996 | case $ac_user_opts in | |
997 | *" | |
998 | "enable_$ac_useropt" | |
999 | "*) ;; | |
1000 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1001 | ac_unrecognized_sep=', ';; | |
1002 | esac | |
1003 | eval enable_$ac_useropt=no ;; | |
1004 | ||
1005 | -docdir | --docdir | --docdi | --doc | --do) | |
1006 | ac_prev=docdir ;; | |
1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1008 | docdir=$ac_optarg ;; | |
1009 | ||
1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1011 | ac_prev=dvidir ;; | |
1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1013 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1014 | |
1015 | -enable-* | --enable-*) | |
5213506e | 1016 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1017 | # Reject names that are not valid shell variable names. |
5213506e | 1018 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1019 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1020 | ac_useropt_orig=$ac_useropt |
1021 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1022 | case $ac_user_opts in | |
1023 | *" | |
1024 | "enable_$ac_useropt" | |
1025 | "*) ;; | |
1026 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1027 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1028 | esac |
5213506e | 1029 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1030 | |
1031 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1032 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1033 | | --exec | --exe | --ex) | |
1034 | ac_prev=exec_prefix ;; | |
1035 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1036 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1037 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1038 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1039 | |
1040 | -gas | --gas | --ga | --g) | |
1041 | # Obsolete; use --with-gas. | |
1042 | with_gas=yes ;; | |
1043 | ||
1c710c3c DJ |
1044 | -help | --help | --hel | --he | -h) |
1045 | ac_init_help=long ;; | |
1046 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1047 | ac_init_help=recursive ;; | |
1048 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1049 | ac_init_help=short ;; | |
671aa708 NN |
1050 | |
1051 | -host | --host | --hos | --ho) | |
1c710c3c | 1052 | ac_prev=host_alias ;; |
671aa708 | 1053 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1054 | host_alias=$ac_optarg ;; |
671aa708 | 1055 | |
5213506e RW |
1056 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1057 | ac_prev=htmldir ;; | |
1058 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1059 | | --ht=*) | |
1060 | htmldir=$ac_optarg ;; | |
1061 | ||
671aa708 NN |
1062 | -includedir | --includedir | --includedi | --included | --include \ |
1063 | | --includ | --inclu | --incl | --inc) | |
1064 | ac_prev=includedir ;; | |
1065 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1066 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1067 | includedir=$ac_optarg ;; |
671aa708 NN |
1068 | |
1069 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1070 | ac_prev=infodir ;; | |
1071 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1072 | infodir=$ac_optarg ;; |
671aa708 NN |
1073 | |
1074 | -libdir | --libdir | --libdi | --libd) | |
1075 | ac_prev=libdir ;; | |
1076 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1077 | libdir=$ac_optarg ;; |
671aa708 NN |
1078 | |
1079 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1080 | | --libexe | --libex | --libe) | |
1081 | ac_prev=libexecdir ;; | |
1082 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1083 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1084 | libexecdir=$ac_optarg ;; |
671aa708 | 1085 | |
5213506e RW |
1086 | -localedir | --localedir | --localedi | --localed | --locale) |
1087 | ac_prev=localedir ;; | |
1088 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1089 | localedir=$ac_optarg ;; | |
1090 | ||
671aa708 | 1091 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1092 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1093 | ac_prev=localstatedir ;; |
1094 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1095 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1096 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1097 | |
1098 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1099 | ac_prev=mandir ;; | |
1100 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1101 | mandir=$ac_optarg ;; |
671aa708 NN |
1102 | |
1103 | -nfp | --nfp | --nf) | |
1104 | # Obsolete; use --without-fp. | |
1105 | with_fp=no ;; | |
1106 | ||
1107 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1108 | | --no-cr | --no-c | -n) |
671aa708 NN |
1109 | no_create=yes ;; |
1110 | ||
1111 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1112 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1113 | no_recursion=yes ;; | |
1114 | ||
1115 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1116 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1117 | | --oldin | --oldi | --old | --ol | --o) | |
1118 | ac_prev=oldincludedir ;; | |
1119 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1120 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1121 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1122 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1123 | |
1124 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1125 | ac_prev=prefix ;; | |
1126 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1127 | prefix=$ac_optarg ;; |
671aa708 NN |
1128 | |
1129 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1130 | | --program-pre | --program-pr | --program-p) | |
1131 | ac_prev=program_prefix ;; | |
1132 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1133 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1134 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1135 | |
1136 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1137 | | --program-suf | --program-su | --program-s) | |
1138 | ac_prev=program_suffix ;; | |
1139 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1140 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1141 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1142 | |
1143 | -program-transform-name | --program-transform-name \ | |
1144 | | --program-transform-nam | --program-transform-na \ | |
1145 | | --program-transform-n | --program-transform- \ | |
1146 | | --program-transform | --program-transfor \ | |
1147 | | --program-transfo | --program-transf \ | |
1148 | | --program-trans | --program-tran \ | |
1149 | | --progr-tra | --program-tr | --program-t) | |
1150 | ac_prev=program_transform_name ;; | |
1151 | -program-transform-name=* | --program-transform-name=* \ | |
1152 | | --program-transform-nam=* | --program-transform-na=* \ | |
1153 | | --program-transform-n=* | --program-transform-=* \ | |
1154 | | --program-transform=* | --program-transfor=* \ | |
1155 | | --program-transfo=* | --program-transf=* \ | |
1156 | | --program-trans=* | --program-tran=* \ | |
1157 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1158 | program_transform_name=$ac_optarg ;; |
671aa708 | 1159 | |
5213506e RW |
1160 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1161 | ac_prev=pdfdir ;; | |
1162 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1163 | pdfdir=$ac_optarg ;; | |
1164 | ||
1165 | -psdir | --psdir | --psdi | --psd | --ps) | |
1166 | ac_prev=psdir ;; | |
1167 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1168 | psdir=$ac_optarg ;; | |
1169 | ||
671aa708 NN |
1170 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1171 | | -silent | --silent | --silen | --sile | --sil) | |
1172 | silent=yes ;; | |
1173 | ||
1174 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1175 | ac_prev=sbindir ;; | |
1176 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1177 | | --sbi=* | --sb=*) | |
1c710c3c | 1178 | sbindir=$ac_optarg ;; |
671aa708 NN |
1179 | |
1180 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1181 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1182 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1183 | | --sha | --sh) | |
1184 | ac_prev=sharedstatedir ;; | |
1185 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1186 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1187 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1188 | | --sha=* | --sh=*) | |
1c710c3c | 1189 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1190 | |
1191 | -site | --site | --sit) | |
1192 | ac_prev=site ;; | |
1193 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1194 | site=$ac_optarg ;; |
671aa708 NN |
1195 | |
1196 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1197 | ac_prev=srcdir ;; | |
1198 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1199 | srcdir=$ac_optarg ;; |
671aa708 NN |
1200 | |
1201 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1202 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1203 | ac_prev=sysconfdir ;; | |
1204 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1205 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1206 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1207 | |
1208 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1209 | ac_prev=target_alias ;; |
671aa708 | 1210 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1211 | target_alias=$ac_optarg ;; |
671aa708 NN |
1212 | |
1213 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1214 | verbose=yes ;; | |
1215 | ||
1c710c3c DJ |
1216 | -version | --version | --versio | --versi | --vers | -V) |
1217 | ac_init_version=: ;; | |
671aa708 NN |
1218 | |
1219 | -with-* | --with-*) | |
5213506e | 1220 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1221 | # Reject names that are not valid shell variable names. |
5213506e | 1222 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1223 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1224 | ac_useropt_orig=$ac_useropt |
1225 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1226 | case $ac_user_opts in | |
1227 | *" | |
1228 | "with_$ac_useropt" | |
1229 | "*) ;; | |
1230 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1231 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1232 | esac |
5213506e | 1233 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1234 | |
1235 | -without-* | --without-*) | |
5213506e | 1236 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1237 | # Reject names that are not valid shell variable names. |
5213506e | 1238 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1239 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1240 | ac_useropt_orig=$ac_useropt |
1241 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1242 | case $ac_user_opts in | |
1243 | *" | |
1244 | "with_$ac_useropt" | |
1245 | "*) ;; | |
1246 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1247 | ac_unrecognized_sep=', ';; | |
1248 | esac | |
1249 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1250 | |
1251 | --x) | |
1252 | # Obsolete; use --with-x. | |
1253 | with_x=yes ;; | |
1254 | ||
1255 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1256 | | --x-incl | --x-inc | --x-in | --x-i) | |
1257 | ac_prev=x_includes ;; | |
1258 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1259 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1260 | x_includes=$ac_optarg ;; |
671aa708 NN |
1261 | |
1262 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1263 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1264 | ac_prev=x_libraries ;; | |
1265 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1266 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1267 | x_libraries=$ac_optarg ;; |
671aa708 | 1268 | |
22e05272 JM |
1269 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1270 | Try \`$0 --help' for more information" | |
671aa708 NN |
1271 | ;; |
1272 | ||
1c710c3c DJ |
1273 | *=*) |
1274 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1275 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1276 | case $ac_envvar in #( |
1277 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1278 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1279 | esac |
1280 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1281 | export $ac_envvar ;; |
1282 | ||
671aa708 | 1283 | *) |
1c710c3c | 1284 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1285 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1286 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1287 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1288 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1289 | ;; |
1290 | ||
1291 | esac | |
1292 | done | |
1293 | ||
1294 | if test -n "$ac_prev"; then | |
1c710c3c | 1295 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1296 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1297 | fi |
af71363e | 1298 | |
5213506e RW |
1299 | if test -n "$ac_unrecognized_opts"; then |
1300 | case $enable_option_checking in | |
1301 | no) ;; | |
22e05272 | 1302 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1303 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1304 | esac |
5213506e | 1305 | fi |
2aeb72e9 | 1306 | |
5213506e RW |
1307 | # Check all directory arguments for consistency. |
1308 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1309 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1310 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1311 | libdir localedir mandir | |
2aeb72e9 | 1312 | do |
5213506e RW |
1313 | eval ac_val=\$$ac_var |
1314 | # Remove trailing slashes. | |
1315 | case $ac_val in | |
1316 | */ ) | |
1317 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1318 | eval $ac_var=\$ac_val;; | |
1319 | esac | |
1320 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1321 | case $ac_val in |
5213506e RW |
1322 | [\\/$]* | ?:[\\/]* ) continue;; |
1323 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1324 | esac |
22e05272 | 1325 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1326 | done |
1327 | ||
1c710c3c DJ |
1328 | # There might be people who depend on the old broken behavior: `$host' |
1329 | # used to hold the argument of --host etc. | |
1330 | # FIXME: To remove some day. | |
1331 | build=$build_alias | |
1332 | host=$host_alias | |
1333 | target=$target_alias | |
0b0dc272 | 1334 | |
1c710c3c DJ |
1335 | # FIXME: To remove some day. |
1336 | if test "x$host_alias" != x; then | |
1337 | if test "x$build_alias" = x; then | |
1338 | cross_compiling=maybe | |
1c710c3c DJ |
1339 | elif test "x$build_alias" != "x$host_alias"; then |
1340 | cross_compiling=yes | |
1341 | fi | |
1342 | fi | |
1343 | ||
1344 | ac_tool_prefix= | |
1345 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1346 | ||
1347 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1348 | |
671aa708 | 1349 | |
5213506e RW |
1350 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1351 | ac_ls_di=`ls -di .` && | |
1352 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1353 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1354 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1355 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1356 | |
1357 | ||
671aa708 NN |
1358 | # Find the source files, if location was not specified. |
1359 | if test -z "$srcdir"; then | |
1360 | ac_srcdir_defaulted=yes | |
5213506e RW |
1361 | # Try the directory containing this script, then the parent directory. |
1362 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1363 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1364 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1365 | X"$as_myself" : 'X\(//\)$' \| \ | |
1366 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1367 | $as_echo X"$as_myself" | | |
1368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\/\)[^/].*/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\/\)$/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\).*/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | s/.*/./; q'` | |
671aa708 | 1385 | srcdir=$ac_confdir |
5213506e | 1386 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1387 | srcdir=.. |
1388 | fi | |
1389 | else | |
1390 | ac_srcdir_defaulted=no | |
1391 | fi | |
5213506e RW |
1392 | if test ! -r "$srcdir/$ac_unique_file"; then |
1393 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1394 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1395 | fi |
1396 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1397 | ac_abs_confdir=`( | |
22e05272 | 1398 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1399 | pwd)` |
1400 | # When building in place, set srcdir=. | |
1401 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1402 | srcdir=. | |
1403 | fi | |
1404 | # Remove unnecessary trailing slashes from srcdir. | |
1405 | # Double slashes in file names in object file debugging info | |
1406 | # mess up M-x gdb in Emacs. | |
1407 | case $srcdir in | |
1408 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1409 | esac | |
87841584 AM |
1410 | case $srcdir in |
1411 | *" "*) | |
22e05272 | 1412 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1413 | ;; |
1414 | esac | |
ac9e6043 RW |
1415 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1416 | ||
5213506e RW |
1417 | for ac_var in $ac_precious_vars; do |
1418 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1419 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1420 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1421 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1422 | done | |
1c710c3c DJ |
1423 | |
1424 | # | |
1425 | # Report the --help message. | |
1426 | # | |
1427 | if test "$ac_init_help" = "long"; then | |
1428 | # Omit some internal or obsolete options to make the list less imposing. | |
1429 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1430 | cat <<_ACEOF | |
1431 | \`configure' configures this package to adapt to many kinds of systems. | |
1432 | ||
1433 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1434 | ||
1435 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1436 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1437 | ||
1438 | Defaults for the options are specified in brackets. | |
1439 | ||
1440 | Configuration: | |
1441 | -h, --help display this help and exit | |
1442 | --help=short display options specific to this package | |
1443 | --help=recursive display the short help of all the included packages | |
1444 | -V, --version display version information and exit | |
22e05272 | 1445 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1446 | --cache-file=FILE cache test results in FILE [disabled] |
1447 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1448 | -n, --no-create do not create output files | |
1449 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1450 | ||
1c710c3c DJ |
1451 | Installation directories: |
1452 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1453 | [$ac_default_prefix] |
1c710c3c | 1454 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1455 | [PREFIX] |
1c710c3c DJ |
1456 | |
1457 | By default, \`make install' will install all the files in | |
1458 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1459 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1460 | for instance \`--prefix=\$HOME'. | |
1461 | ||
1462 | For better control, use the options below. | |
1463 | ||
1464 | Fine tuning of the installation directories: | |
5213506e RW |
1465 | --bindir=DIR user executables [EPREFIX/bin] |
1466 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1467 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1468 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1469 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1470 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1471 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1472 | --includedir=DIR C header files [PREFIX/include] | |
1473 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1474 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1475 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1476 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1477 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1478 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1479 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1480 | --htmldir=DIR html documentation [DOCDIR] | |
1481 | --dvidir=DIR dvi documentation [DOCDIR] | |
1482 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1483 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1484 | _ACEOF |
1485 | ||
1486 | cat <<\_ACEOF | |
1487 | ||
1488 | Program names: | |
1489 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1490 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1491 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1492 | ||
1493 | System types: | |
1494 | --build=BUILD configure for building on BUILD [guessed] | |
1495 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1496 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1497 | _ACEOF | |
1498 | fi | |
1499 | ||
1500 | if test -n "$ac_init_help"; then | |
1501 | ||
1502 | cat <<\_ACEOF | |
1503 | ||
1504 | Optional Features: | |
5213506e | 1505 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1506 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1507 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1508 | --enable-as-accelerator-for=ARG |
1509 | build as offload target compiler. Specify offload | |
1510 | host triple by ARG | |
1511 | --enable-offload-targets=LIST | |
1512 | enable offloading to devices from comma-separated | |
1513 | LIST of TARGET[=DIR]. Use optional path to find | |
1514 | offload target compiler during the build | |
21539e2e | 1515 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1516 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1517 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1518 | Enable compressed debug sections for gas, gold or ld |
1519 | by default | |
87e6d9dc TB |
1520 | --disable-libquadmath do not build libquadmath directory |
1521 | --disable-libquadmath-support | |
1522 | disable libquadmath support for Fortran | |
30b74385 RW |
1523 | --enable-libada build libada directory |
1524 | --enable-libssp build libssp directory | |
1873ec0c | 1525 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1526 | --enable-liboffloadmic=ARG |
1527 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1528 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1529 | --disable-isl-version-check |
560d18d3 | 1530 | disable check for isl version |
d7f09764 | 1531 | --enable-lto enable link time optimization support |
45b3824d TS |
1532 | --enable-linker-plugin-configure-flags=FLAGS |
1533 | additional flags for configuring linker plugins | |
1534 | [none] | |
1535 | --enable-linker-plugin-flags=FLAGS | |
1536 | additional flags for configuring and building linker | |
1537 | plugins [none] | |
cdfee50a | 1538 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1539 | --enable-stage1-languages[=all] |
1540 | choose additional languages to build during stage1. | |
1541 | Mostly useful for compiler development | |
43c40f3e RO |
1542 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1543 | Objective-C runtime | |
318a4e6d | 1544 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1545 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1546 | force sequential configuration of sub-packages for |
1547 | the host, target or build machine, or all | |
1548 | sub-packages | |
1549 | --enable-maintainer-mode | |
1550 | enable make rules and dependencies not useful (and | |
1551 | sometimes confusing) to the casual installer | |
1552 | --enable-stage1-checking[=all] | |
1553 | choose additional checking for stage1 of the | |
1554 | compiler | |
1c710c3c DJ |
1555 | --enable-werror enable -Werror in bootstrap stage2 and later |
1556 | ||
1557 | Optional Packages: | |
1558 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1559 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1560 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1561 | --with-system-zlib use installed libz |
33e39b66 AS |
1562 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1563 | Equivalent to --with-mpc-include=PATH/include plus | |
1564 | --with-mpc-lib=PATH/lib | |
1565 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1566 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1567 | --with-mpfr-dir=PATH this option has been REMOVED |
1568 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1569 | Equivalent to --with-mpfr-include=PATH/include plus |
1570 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1571 | --with-mpfr-include=PATH |
30b74385 RW |
1572 | specify directory for installed MPFR include files |
1573 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1574 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1575 | --with-gmp=PATH specify prefix directory for the installed GMP |
1576 | package. Equivalent to | |
1577 | --with-gmp-include=PATH/include plus | |
1578 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1579 | --with-gmp-include=PATH specify directory for installed GMP include files |
1580 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1581 | --with-stage1-libs=LIBS libraries for stage1 |
33e39b66 AS |
1582 | --with-stage1-ldflags=FLAGS |
1583 | linker flags for stage1 | |
33e39b66 AS |
1584 | --with-boot-libs=LIBS libraries for stage2 and later |
1585 | --with-boot-ldflags=FLAGS | |
1586 | linker flags for stage2 and later | |
e357a5e0 | 1587 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1588 | package. Equivalent to |
33ad93b9 RG |
1589 | --with-isl-include=PATH/include plus |
1590 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1591 | --with-isl-include=PATH Specify directory for installed isl include files |
1592 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1593 | --with-target-bdw-gc=PATHLIST |
1594 | specify prefix directory for installed bdw-gc | |
1595 | package. Equivalent to | |
1596 | --with-target-bdw-gc-include=PATH/include plus | |
1597 | --with-target-bdw-gc-lib=PATH/lib | |
1598 | --with-target-bdw-gc-include=PATHLIST | |
1599 | specify directories for installed bdw-gc include | |
1600 | files | |
1601 | --with-target-bdw-gc-lib=PATHLIST | |
1602 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1603 | --with-gcc-major-version-only |
1604 | use only GCC major number in filesystem paths | |
30b74385 | 1605 | --with-build-sysroot=SYSROOT |
1c710c3c | 1606 | use sysroot as the system root during the build |
c8aea42c | 1607 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1608 | map A to B, C to D ... in debug information |
1609 | --with-build-config='NAME NAME2...' | |
1610 | use config/NAME.mk build configuration | |
30b74385 | 1611 | --with-build-time-tools=PATH |
1c710c3c | 1612 | use given path to find target tools during the build |
1c710c3c DJ |
1613 | |
1614 | Some influential environment variables: | |
1615 | CC C compiler command | |
1616 | CFLAGS C compiler flags | |
1617 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1618 | nonstandard directory <lib dir> | |
5213506e | 1619 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1620 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1621 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1622 | CXX C++ compiler command |
1623 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1624 | build_configargs |
1625 | additional configure arguments for build directories | |
1626 | host_configargs | |
1627 | additional configure arguments for host directories | |
1628 | target_configargs | |
1629 | additional configure arguments for target directories | |
278a7a38 AO |
1630 | AR AR for the host |
1631 | AS AS for the host | |
1632 | DLLTOOL DLLTOOL for the host | |
1633 | LD LD for the host | |
1634 | LIPO LIPO for the host | |
1635 | NM NM for the host | |
1636 | RANLIB RANLIB for the host | |
1637 | STRIP STRIP for the host | |
1638 | WINDRES WINDRES for the host | |
901119ae | 1639 | WINDMC WINDMC for the host |
278a7a38 AO |
1640 | OBJCOPY OBJCOPY for the host |
1641 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1642 | OTOOL OTOOL for the host |
e7a82751 | 1643 | READELF READELF for the host |
278a7a38 AO |
1644 | CC_FOR_TARGET |
1645 | CC for the target | |
1646 | CXX_FOR_TARGET | |
1647 | CXX for the target | |
1648 | GCC_FOR_TARGET | |
1649 | GCC for the target | |
278a7a38 AO |
1650 | GFORTRAN_FOR_TARGET |
1651 | GFORTRAN for the target | |
632e2a07 ILT |
1652 | GOC_FOR_TARGET |
1653 | GOC for the target | |
b4c522fa IB |
1654 | GDC_FOR_TARGET |
1655 | GDC for the target | |
278a7a38 AO |
1656 | AR_FOR_TARGET |
1657 | AR for the target | |
1658 | AS_FOR_TARGET | |
1659 | AS for the target | |
1660 | DLLTOOL_FOR_TARGET | |
1661 | DLLTOOL for the target | |
1662 | LD_FOR_TARGET | |
1663 | LD for the target | |
1664 | LIPO_FOR_TARGET | |
1665 | LIPO for the target | |
1666 | NM_FOR_TARGET | |
1667 | NM for the target | |
9bccfdf5 AP |
1668 | OBJCOPY_FOR_TARGET |
1669 | OBJCOPY for the target | |
278a7a38 AO |
1670 | OBJDUMP_FOR_TARGET |
1671 | OBJDUMP for the target | |
e4a9a572 IS |
1672 | OTOOL_FOR_TARGET |
1673 | OTOOL for the target | |
278a7a38 AO |
1674 | RANLIB_FOR_TARGET |
1675 | RANLIB for the target | |
e7a82751 RM |
1676 | READELF_FOR_TARGET |
1677 | READELF for the target | |
278a7a38 AO |
1678 | STRIP_FOR_TARGET |
1679 | STRIP for the target | |
1680 | WINDRES_FOR_TARGET | |
1681 | WINDRES for the target | |
901119ae KT |
1682 | WINDMC_FOR_TARGET |
1683 | WINDMC for the target | |
1c710c3c DJ |
1684 | |
1685 | Use these variables to override the choices made by `configure' or to help | |
1686 | it to find libraries and programs with nonstandard names/locations. | |
1687 | ||
5213506e | 1688 | Report bugs to the package provider. |
1c710c3c | 1689 | _ACEOF |
5213506e | 1690 | ac_status=$? |
1c710c3c DJ |
1691 | fi |
1692 | ||
1693 | if test "$ac_init_help" = "recursive"; then | |
1694 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1695 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1696 | test -d "$ac_dir" || |
1697 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1698 | continue | |
1c710c3c DJ |
1699 | ac_builddir=. |
1700 | ||
5213506e RW |
1701 | case "$ac_dir" in |
1702 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1703 | *) | |
1704 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1705 | # A ".." for each directory in $ac_dir_suffix. | |
1706 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1707 | case $ac_top_builddir_sub in | |
1708 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1709 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1710 | esac ;; | |
1711 | esac | |
1712 | ac_abs_top_builddir=$ac_pwd | |
1713 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1714 | # for backward compatibility: | |
1715 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1716 | |
1717 | case $srcdir in | |
5213506e | 1718 | .) # We are building in place. |
1c710c3c | 1719 | ac_srcdir=. |
5213506e RW |
1720 | ac_top_srcdir=$ac_top_builddir_sub |
1721 | ac_abs_top_srcdir=$ac_pwd ;; | |
1722 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1723 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1724 | ac_top_srcdir=$srcdir |
1725 | ac_abs_top_srcdir=$srcdir ;; | |
1726 | *) # Relative name. | |
1727 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1728 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1729 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1730 | esac |
5213506e RW |
1731 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1732 | ||
1733 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1734 | # Check for guested configure. | |
1735 | if test -f "$ac_srcdir/configure.gnu"; then | |
1736 | echo && | |
1737 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1738 | elif test -f "$ac_srcdir/configure"; then | |
1739 | echo && | |
1740 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1741 | else |
5213506e RW |
1742 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1743 | fi || ac_status=$? | |
1744 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1745 | done |
1746 | fi | |
1747 | ||
5213506e | 1748 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1749 | if $ac_init_version; then |
1750 | cat <<\_ACEOF | |
5213506e | 1751 | configure |
22e05272 | 1752 | generated by GNU Autoconf 2.69 |
1c710c3c | 1753 | |
22e05272 | 1754 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1755 | This configure script is free software; the Free Software Foundation |
1756 | gives unlimited permission to copy, distribute and modify it. | |
1757 | _ACEOF | |
5213506e | 1758 | exit |
0b0dc272 | 1759 | fi |
5213506e RW |
1760 | |
1761 | ## ------------------------ ## | |
1762 | ## Autoconf initialization. ## | |
1763 | ## ------------------------ ## | |
1764 | ||
1765 | # ac_fn_c_try_compile LINENO | |
1766 | # -------------------------- | |
1767 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1768 | ac_fn_c_try_compile () | |
1769 | { | |
1770 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1771 | rm -f conftest.$ac_objext | |
1772 | if { { ac_try="$ac_compile" | |
1773 | case "(($ac_try" in | |
1774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1775 | *) ac_try_echo=$ac_try;; | |
1776 | esac | |
1777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1778 | $as_echo "$ac_try_echo"; } >&5 | |
1779 | (eval "$ac_compile") 2>conftest.err | |
1780 | ac_status=$? | |
1781 | if test -s conftest.err; then | |
1782 | grep -v '^ *+' conftest.err >conftest.er1 | |
1783 | cat conftest.er1 >&5 | |
1784 | mv -f conftest.er1 conftest.err | |
1785 | fi | |
1786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1787 | test $ac_status = 0; } && { | |
1788 | test -z "$ac_c_werror_flag" || | |
1789 | test ! -s conftest.err | |
1790 | } && test -s conftest.$ac_objext; then : | |
1791 | ac_retval=0 | |
1792 | else | |
1793 | $as_echo "$as_me: failed program was:" >&5 | |
1794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1795 | ||
1796 | ac_retval=1 | |
1797 | fi | |
22e05272 JM |
1798 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1799 | as_fn_set_status $ac_retval | |
5213506e RW |
1800 | |
1801 | } # ac_fn_c_try_compile | |
1802 | ||
1803 | # ac_fn_cxx_try_compile LINENO | |
1804 | # ---------------------------- | |
1805 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1806 | ac_fn_cxx_try_compile () | |
1807 | { | |
1808 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1809 | rm -f conftest.$ac_objext | |
1810 | if { { ac_try="$ac_compile" | |
1811 | case "(($ac_try" in | |
1812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1813 | *) ac_try_echo=$ac_try;; | |
1814 | esac | |
1815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1816 | $as_echo "$ac_try_echo"; } >&5 | |
1817 | (eval "$ac_compile") 2>conftest.err | |
1818 | ac_status=$? | |
1819 | if test -s conftest.err; then | |
1820 | grep -v '^ *+' conftest.err >conftest.er1 | |
1821 | cat conftest.er1 >&5 | |
1822 | mv -f conftest.er1 conftest.err | |
1823 | fi | |
1824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1825 | test $ac_status = 0; } && { | |
1826 | test -z "$ac_cxx_werror_flag" || | |
1827 | test ! -s conftest.err | |
1828 | } && test -s conftest.$ac_objext; then : | |
1829 | ac_retval=0 | |
1830 | else | |
1831 | $as_echo "$as_me: failed program was:" >&5 | |
1832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1833 | ||
1834 | ac_retval=1 | |
1835 | fi | |
22e05272 JM |
1836 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1837 | as_fn_set_status $ac_retval | |
5213506e RW |
1838 | |
1839 | } # ac_fn_cxx_try_compile | |
1840 | ||
0b21f5d3 EB |
1841 | # ac_fn_cxx_try_link LINENO |
1842 | # ------------------------- | |
1843 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1844 | ac_fn_cxx_try_link () | |
1845 | { | |
1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1848 | if { { ac_try="$ac_link" | |
1849 | case "(($ac_try" in | |
1850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1851 | *) ac_try_echo=$ac_try;; | |
1852 | esac | |
1853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1854 | $as_echo "$ac_try_echo"; } >&5 | |
1855 | (eval "$ac_link") 2>conftest.err | |
1856 | ac_status=$? | |
1857 | if test -s conftest.err; then | |
1858 | grep -v '^ *+' conftest.err >conftest.er1 | |
1859 | cat conftest.er1 >&5 | |
1860 | mv -f conftest.er1 conftest.err | |
1861 | fi | |
1862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1863 | test $ac_status = 0; } && { | |
1864 | test -z "$ac_cxx_werror_flag" || | |
1865 | test ! -s conftest.err | |
1866 | } && test -s conftest$ac_exeext && { | |
1867 | test "$cross_compiling" = yes || | |
22e05272 | 1868 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1869 | }; then : |
1870 | ac_retval=0 | |
1871 | else | |
1872 | $as_echo "$as_me: failed program was:" >&5 | |
1873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1874 | ||
1875 | ac_retval=1 | |
1876 | fi | |
1877 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1878 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1879 | # interfere with the next link command; also delete a directory that is | |
1880 | # left behind by Apple's compiler. We do this before executing the actions. | |
1881 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1883 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1884 | |
1885 | } # ac_fn_cxx_try_link | |
1886 | ||
5213506e RW |
1887 | # ac_fn_c_try_link LINENO |
1888 | # ----------------------- | |
1889 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1890 | ac_fn_c_try_link () | |
1891 | { | |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1894 | if { { ac_try="$ac_link" | |
1895 | case "(($ac_try" in | |
1896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1897 | *) ac_try_echo=$ac_try;; | |
1898 | esac | |
1899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1900 | $as_echo "$ac_try_echo"; } >&5 | |
1901 | (eval "$ac_link") 2>conftest.err | |
1902 | ac_status=$? | |
1903 | if test -s conftest.err; then | |
1904 | grep -v '^ *+' conftest.err >conftest.er1 | |
1905 | cat conftest.er1 >&5 | |
1906 | mv -f conftest.er1 conftest.err | |
1907 | fi | |
1908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1909 | test $ac_status = 0; } && { | |
1910 | test -z "$ac_c_werror_flag" || | |
1911 | test ! -s conftest.err | |
1912 | } && test -s conftest$ac_exeext && { | |
1913 | test "$cross_compiling" = yes || | |
22e05272 | 1914 | test -x conftest$ac_exeext |
5213506e RW |
1915 | }; then : |
1916 | ac_retval=0 | |
1917 | else | |
1918 | $as_echo "$as_me: failed program was:" >&5 | |
1919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1920 | ||
1921 | ac_retval=1 | |
1922 | fi | |
1923 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1924 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1925 | # interfere with the next link command; also delete a directory that is | |
1926 | # left behind by Apple's compiler. We do this before executing the actions. | |
1927 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1928 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1929 | as_fn_set_status $ac_retval | |
5213506e RW |
1930 | |
1931 | } # ac_fn_c_try_link | |
1932 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1933 | This file contains any messages produced by compilers while |
1934 | running configure, to aid debugging if configure makes a mistake. | |
1935 | ||
1936 | It was created by $as_me, which was | |
22e05272 | 1937 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1938 | |
1939 | $ $0 $@ | |
1940 | ||
1941 | _ACEOF | |
5213506e | 1942 | exec 5>>config.log |
1c710c3c DJ |
1943 | { |
1944 | cat <<_ASUNAME | |
1945 | ## --------- ## | |
1946 | ## Platform. ## | |
1947 | ## --------- ## | |
1948 | ||
1949 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1950 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1951 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1952 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1953 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1954 | ||
1955 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1956 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1957 | ||
1958 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1959 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1960 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1961 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1962 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1963 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1964 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1965 | ||
1966 | _ASUNAME | |
1967 | ||
1968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1969 | for as_dir in $PATH | |
1970 | do | |
1971 | IFS=$as_save_IFS | |
1972 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1973 | $as_echo "PATH: $as_dir" |
1974 | done | |
1975 | IFS=$as_save_IFS | |
1c710c3c DJ |
1976 | |
1977 | } >&5 | |
1978 | ||
1979 | cat >&5 <<_ACEOF | |
1980 | ||
1981 | ||
1982 | ## ----------- ## | |
1983 | ## Core tests. ## | |
1984 | ## ----------- ## | |
1985 | ||
1986 | _ACEOF | |
1987 | ||
1988 | ||
1989 | # Keep a trace of the command line. | |
1990 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1991 | # Strip out --silent because we don't want to record it for future runs. | |
1992 | # Also quote any args containing shell meta-characters. | |
1993 | # Make two passes to allow for proper duplicate-argument suppression. | |
1994 | ac_configure_args= | |
1995 | ac_configure_args0= | |
1996 | ac_configure_args1= | |
1c710c3c DJ |
1997 | ac_must_keep_next=false |
1998 | for ac_pass in 1 2 | |
1999 | do | |
2000 | for ac_arg | |
2001 | do | |
2002 | case $ac_arg in | |
2003 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2005 | | -silent | --silent | --silen | --sile | --sil) | |
2006 | continue ;; | |
5213506e RW |
2007 | *\'*) |
2008 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2009 | esac |
2010 | case $ac_pass in | |
5213506e | 2011 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2012 | 2) |
5213506e | 2013 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2014 | if test $ac_must_keep_next = true; then |
2015 | ac_must_keep_next=false # Got value, back to normal. | |
2016 | else | |
2017 | case $ac_arg in | |
2018 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2019 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2020 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2021 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2022 | case "$ac_configure_args0 " in | |
2023 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2024 | esac | |
2025 | ;; | |
2026 | -* ) ac_must_keep_next=true ;; | |
2027 | esac | |
2028 | fi | |
5213506e | 2029 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2030 | ;; |
2031 | esac | |
2032 | done | |
2033 | done | |
5213506e RW |
2034 | { ac_configure_args0=; unset ac_configure_args0;} |
2035 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2036 | |
2037 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2038 | # config.log. We remove comments because anyway the quotes in there | |
2039 | # would cause problems or look ugly. | |
5213506e RW |
2040 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2041 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2042 | trap 'exit_status=$? |
2043 | # Save into config.log some information that might help in debugging. | |
2044 | { | |
2045 | echo | |
2046 | ||
22e05272 | 2047 | $as_echo "## ---------------- ## |
1c710c3c | 2048 | ## Cache variables. ## |
22e05272 | 2049 | ## ---------------- ##" |
1c710c3c DJ |
2050 | echo |
2051 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2052 | ( |
2053 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2054 | eval ac_val=\$$ac_var | |
2055 | case $ac_val in #( | |
2056 | *${as_nl}*) | |
2057 | case $ac_var in #( | |
2058 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2059 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2060 | esac | |
2061 | case $ac_var in #( | |
2062 | _ | IFS | as_nl) ;; #( | |
2063 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2064 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2065 | esac ;; | |
2066 | esac | |
2067 | done | |
1c710c3c | 2068 | (set) 2>&1 | |
5213506e RW |
2069 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2070 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2071 | sed -n \ |
5213506e RW |
2072 | "s/'\''/'\''\\\\'\'''\''/g; |
2073 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2074 | ;; #( | |
1c710c3c | 2075 | *) |
5213506e | 2076 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2077 | ;; |
5213506e RW |
2078 | esac | |
2079 | sort | |
2080 | ) | |
1c710c3c DJ |
2081 | echo |
2082 | ||
22e05272 | 2083 | $as_echo "## ----------------- ## |
1c710c3c | 2084 | ## Output variables. ## |
22e05272 | 2085 | ## ----------------- ##" |
1c710c3c DJ |
2086 | echo |
2087 | for ac_var in $ac_subst_vars | |
2088 | do | |
5213506e RW |
2089 | eval ac_val=\$$ac_var |
2090 | case $ac_val in | |
2091 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2092 | esac | |
2093 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2094 | done | sort |
2095 | echo | |
2096 | ||
2097 | if test -n "$ac_subst_files"; then | |
22e05272 | 2098 | $as_echo "## ------------------- ## |
5213506e | 2099 | ## File substitutions. ## |
22e05272 | 2100 | ## ------------------- ##" |
1c710c3c DJ |
2101 | echo |
2102 | for ac_var in $ac_subst_files | |
2103 | do | |
5213506e RW |
2104 | eval ac_val=\$$ac_var |
2105 | case $ac_val in | |
2106 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2107 | esac | |
2108 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2109 | done | sort |
2110 | echo | |
2111 | fi | |
2112 | ||
2113 | if test -s confdefs.h; then | |
22e05272 | 2114 | $as_echo "## ----------- ## |
1c710c3c | 2115 | ## confdefs.h. ## |
22e05272 | 2116 | ## ----------- ##" |
1c710c3c | 2117 | echo |
5213506e | 2118 | cat confdefs.h |
1c710c3c DJ |
2119 | echo |
2120 | fi | |
2121 | test "$ac_signal" != 0 && | |
5213506e RW |
2122 | $as_echo "$as_me: caught signal $ac_signal" |
2123 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2124 | } >&5 |
5213506e RW |
2125 | rm -f core *.core core.conftest.* && |
2126 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2127 | exit $exit_status |
5213506e | 2128 | ' 0 |
1c710c3c | 2129 | for ac_signal in 1 2 13 15; do |
5213506e | 2130 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2131 | done |
2132 | ac_signal=0 | |
2133 | ||
2134 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2135 | rm -f -r conftest* confdefs.h |
2136 | ||
2137 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2138 | |
2139 | # Predefined preprocessor variables. | |
2140 | ||
2141 | cat >>confdefs.h <<_ACEOF | |
2142 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2143 | _ACEOF | |
2144 | ||
1c710c3c DJ |
2145 | cat >>confdefs.h <<_ACEOF |
2146 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2147 | _ACEOF | |
2148 | ||
1c710c3c DJ |
2149 | cat >>confdefs.h <<_ACEOF |
2150 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2151 | _ACEOF | |
0b0dc272 | 2152 | |
1c710c3c DJ |
2153 | cat >>confdefs.h <<_ACEOF |
2154 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2155 | _ACEOF | |
2156 | ||
1c710c3c DJ |
2157 | cat >>confdefs.h <<_ACEOF |
2158 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2159 | _ACEOF | |
2160 | ||
5213506e RW |
2161 | cat >>confdefs.h <<_ACEOF |
2162 | #define PACKAGE_URL "$PACKAGE_URL" | |
2163 | _ACEOF | |
2164 | ||
1c710c3c DJ |
2165 | |
2166 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2167 | # Prefer an explicitly selected file to automatically selected ones. |
2168 | ac_site_file1=NONE | |
2169 | ac_site_file2=NONE | |
2170 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2171 | # We do not want a PATH search for config.site. |
2172 | case $CONFIG_SITE in #(( | |
2173 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2174 | */*) ac_site_file1=$CONFIG_SITE;; | |
2175 | *) ac_site_file1=./$CONFIG_SITE;; | |
2176 | esac | |
5213506e RW |
2177 | elif test "x$prefix" != xNONE; then |
2178 | ac_site_file1=$prefix/share/config.site | |
2179 | ac_site_file2=$prefix/etc/config.site | |
2180 | else | |
2181 | ac_site_file1=$ac_default_prefix/share/config.site | |
2182 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2183 | fi |
5213506e RW |
2184 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2185 | do | |
2186 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2187 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2189 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2190 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2191 | . "$ac_site_file" \ |
2192 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2194 | as_fn_error $? "failed to load site script $ac_site_file | |
2195 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2196 | fi |
2197 | done | |
2198 | ||
2199 | if test -r "$cache_file"; then | |
22e05272 JM |
2200 | # Some versions of bash will fail to source /dev/null (special files |
2201 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2202 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2204 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2205 | case $cache_file in |
5213506e RW |
2206 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2207 | *) . "./$cache_file";; | |
1c710c3c DJ |
2208 | esac |
2209 | fi | |
671aa708 | 2210 | else |
5213506e RW |
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2212 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2213 | >$cache_file |
2214 | fi | |
2215 | ||
2216 | # Check that the precious variables saved in the cache have kept the same | |
2217 | # value. | |
2218 | ac_cache_corrupted=false | |
5213506e | 2219 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2220 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2221 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2222 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2223 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2224 | case $ac_old_set,$ac_new_set in |
2225 | set,) | |
5213506e RW |
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2227 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2228 | ac_cache_corrupted=: ;; |
2229 | ,set) | |
5213506e RW |
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2231 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2232 | ac_cache_corrupted=: ;; |
2233 | ,);; | |
2234 | *) | |
2235 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2236 | # differences in whitespace do not lead to failure. |
2237 | ac_old_val_w=`echo x $ac_old_val` | |
2238 | ac_new_val_w=`echo x $ac_new_val` | |
2239 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2241 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2242 | ac_cache_corrupted=: | |
2243 | else | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2245 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2246 | eval $ac_var=\$ac_old_val | |
2247 | fi | |
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2249 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2251 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2252 | fi;; |
2253 | esac | |
2254 | # Pass precious variables to config.status. | |
2255 | if test "$ac_new_set" = set; then | |
2256 | case $ac_new_val in | |
5213506e | 2257 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2258 | *) ac_arg=$ac_var=$ac_new_val ;; |
2259 | esac | |
2260 | case " $ac_configure_args " in | |
2261 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2262 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2263 | esac |
2264 | fi | |
2265 | done | |
2266 | if $ac_cache_corrupted; then | |
5213506e RW |
2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2270 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2271 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2272 | fi |
5213506e RW |
2273 | ## -------------------- ## |
2274 | ## Main body of script. ## | |
2275 | ## -------------------- ## | |
671aa708 | 2276 | |
2aeb72e9 DD |
2277 | ac_ext=c |
2278 | ac_cpp='$CPP $CPPFLAGS' | |
2279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2282 | ||
1c710c3c DJ |
2283 | |
2284 | ||
2285 | ||
1c710c3c DJ |
2286 | |
2287 | ||
0115d4a3 | 2288 | |
1c710c3c | 2289 | |
ad33ff57 RW |
2290 | progname=$0 |
2291 | # if PWD already has a value, it is probably wrong. | |
2292 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2293 | ||
2294 | # Export original configure arguments for use by sub-configures. | |
2295 | # Quote arguments with shell meta charatcers. | |
2296 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2297 | set -- "$progname" "$@" | |
2298 | for ac_arg | |
2299 | do | |
2300 | case "$ac_arg" in | |
2301 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2302 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2303 | # if the argument is of the form -foo=baz, quote the baz part only | |
2304 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2305 | *) ;; | |
2306 | esac | |
2307 | # Add the quoted argument to the list. | |
2308 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2309 | done | |
2310 | if test "$silent" = yes; then | |
2311 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2312 | fi | |
2313 | # Remove the initial space we just introduced and, as these will be | |
2314 | # expanded by make, quote '$'. | |
2315 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2316 | ||
1c710c3c DJ |
2317 | |
2318 | # Find the build, host, and target systems. | |
671aa708 | 2319 | ac_aux_dir= |
5213506e | 2320 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2321 | if test -f "$ac_dir/install-sh"; then |
2322 | ac_aux_dir=$ac_dir | |
2323 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2324 | break | |
2325 | elif test -f "$ac_dir/install.sh"; then | |
2326 | ac_aux_dir=$ac_dir | |
2327 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2328 | break | |
2329 | elif test -f "$ac_dir/shtool"; then | |
2330 | ac_aux_dir=$ac_dir | |
2331 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2332 | break | |
2333 | fi | |
671aa708 NN |
2334 | done |
2335 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2336 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2337 | fi |
5213506e RW |
2338 | |
2339 | # These three variables are undocumented and unsupported, | |
2340 | # and are intended to be withdrawn in a future Autoconf release. | |
2341 | # They can cause serious problems if a builder's source tree is in a directory | |
2342 | # whose full name contains unusual characters. | |
2343 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2344 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2345 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2346 | ||
671aa708 | 2347 | |
1c710c3c | 2348 | # Make sure we can run config.sub. |
5213506e | 2349 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2350 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2351 | |
2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2353 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2354 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2355 | $as_echo_n "(cached) " >&6 |
2356 | else | |
2357 | ac_build_alias=$build_alias | |
2358 | test "x$ac_build_alias" = x && | |
2359 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2360 | test "x$ac_build_alias" = x && | |
22e05272 | 2361 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2362 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2363 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2364 | |
2365 | fi | |
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2367 | $as_echo "$ac_cv_build" >&6; } | |
2368 | case $ac_cv_build in | |
2369 | *-*-*) ;; | |
22e05272 | 2370 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2371 | esac |
1c710c3c | 2372 | build=$ac_cv_build |
5213506e RW |
2373 | ac_save_IFS=$IFS; IFS='-' |
2374 | set x $ac_cv_build | |
2375 | shift | |
2376 | build_cpu=$1 | |
2377 | build_vendor=$2 | |
2378 | shift; shift | |
2379 | # Remember, the first character of IFS is used to create $*, | |
2380 | # except with old shells: | |
2381 | build_os=$* | |
2382 | IFS=$ac_save_IFS | |
2383 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2384 | |
671aa708 | 2385 | |
1c710c3c DJ |
2386 | case ${build_alias} in |
2387 | "") build_noncanonical=${build} ;; | |
2388 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2389 | esac |
2390 | ||
2391 | ||
af71363e | 2392 | |
1c710c3c DJ |
2393 | case ${host_alias} in |
2394 | "") host_noncanonical=${build_noncanonical} ;; | |
2395 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2396 | esac |
2397 | ||
af71363e | 2398 | |
1c710c3c DJ |
2399 | |
2400 | case ${target_alias} in | |
2401 | "") target_noncanonical=${host_noncanonical} ;; | |
2402 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2403 | esac |
2404 | ||
af71363e | 2405 | |
1c710c3c DJ |
2406 | |
2407 | ||
2408 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2409 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2410 | NONENONEs,x,x, && | |
1c710c3c | 2411 | program_transform_name=s,y,y, |
af71363e | 2412 | |
5213506e RW |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2414 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2415 | if ${ac_cv_host+:} false; then : |
5213506e | 2416 | $as_echo_n "(cached) " >&6 |
af71363e | 2417 | else |
5213506e RW |
2418 | if test "x$host_alias" = x; then |
2419 | ac_cv_host=$ac_cv_build | |
2420 | else | |
2421 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2422 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2423 | fi |
1c710c3c | 2424 | |
af71363e | 2425 | fi |
5213506e RW |
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2427 | $as_echo "$ac_cv_host" >&6; } | |
2428 | case $ac_cv_host in | |
2429 | *-*-*) ;; | |
22e05272 | 2430 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2431 | esac |
1c710c3c | 2432 | host=$ac_cv_host |
5213506e RW |
2433 | ac_save_IFS=$IFS; IFS='-' |
2434 | set x $ac_cv_host | |
2435 | shift | |
2436 | host_cpu=$1 | |
2437 | host_vendor=$2 | |
2438 | shift; shift | |
2439 | # Remember, the first character of IFS is used to create $*, | |
2440 | # except with old shells: | |
2441 | host_os=$* | |
2442 | IFS=$ac_save_IFS | |
2443 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2444 | |
2445 | ||
5213506e RW |
2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2447 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2448 | if ${ac_cv_target+:} false; then : |
5213506e | 2449 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2450 | else |
5213506e RW |
2451 | if test "x$target_alias" = x; then |
2452 | ac_cv_target=$ac_cv_host | |
2453 | else | |
2454 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2455 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2456 | fi |
1c710c3c DJ |
2457 | |
2458 | fi | |
5213506e RW |
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2460 | $as_echo "$ac_cv_target" >&6; } | |
2461 | case $ac_cv_target in | |
2462 | *-*-*) ;; | |
22e05272 | 2463 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2464 | esac |
1c710c3c | 2465 | target=$ac_cv_target |
5213506e RW |
2466 | ac_save_IFS=$IFS; IFS='-' |
2467 | set x $ac_cv_target | |
2468 | shift | |
2469 | target_cpu=$1 | |
2470 | target_vendor=$2 | |
2471 | shift; shift | |
2472 | # Remember, the first character of IFS is used to create $*, | |
2473 | # except with old shells: | |
2474 | target_os=$* | |
2475 | IFS=$ac_save_IFS | |
2476 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2477 | |
2478 | ||
2479 | # The aliases save the names the user supplied, while $host etc. | |
2480 | # will get canonicalized. | |
2481 | test -n "$target_alias" && | |
2482 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2483 | NONENONEs,x,x, && | |
2484 | program_prefix=${target_alias}- | |
5213506e | 2485 | |
671aa708 | 2486 | test "$program_prefix" != NONE && |
5213506e | 2487 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2488 | # Use a double $ so make ignores it. |
2489 | test "$program_suffix" != NONE && | |
5213506e RW |
2490 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2491 | # Double any \ or $. | |
1c710c3c | 2492 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2493 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2494 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2495 | |
671aa708 NN |
2496 | |
2497 | ||
775956d0 NN |
2498 | # Get 'install' or 'install-sh' and its variants. |
2499 | # Find a good install program. We prefer a C program (faster), | |
2500 | # so one script is as good as another. But avoid the broken or | |
2501 | # incompatible versions: | |
2502 | # SysV /etc/install, /usr/sbin/install | |
2503 | # SunOS /usr/etc/install | |
2504 | # IRIX /sbin/install | |
2505 | # AIX /bin/install | |
1c710c3c | 2506 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2507 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2508 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2509 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2510 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2511 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2512 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2514 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2515 | if test -z "$INSTALL"; then |
22e05272 | 2516 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2517 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2518 | else |
2519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2520 | for as_dir in $PATH | |
2521 | do | |
2522 | IFS=$as_save_IFS | |
2523 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2524 | # Account for people who put trailing slashes in PATH elements. |
2525 | case $as_dir/ in #(( | |
2526 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2527 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2528 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2529 | /usr/ucb/* ) ;; |
2530 | *) | |
2531 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2532 | # Don't use installbsd from OSF since it installs stuff as root | |
2533 | # by default. | |
2534 | for ac_prog in ginstall scoinst install; do | |
2535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2536 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2537 | if test $ac_prog = install && |
1c710c3c | 2538 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2539 | # AIX install. It has an incompatible calling convention. |
2540 | : | |
1c710c3c DJ |
2541 | elif test $ac_prog = install && |
2542 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2543 | # program-specific install script used by HP pwplus--don't use. | |
2544 | : | |
775956d0 | 2545 | else |
38d24731 RW |
2546 | rm -rf conftest.one conftest.two conftest.dir |
2547 | echo one > conftest.one | |
2548 | echo two > conftest.two | |
2549 | mkdir conftest.dir | |
2550 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2551 | test -s conftest.one && test -s conftest.two && | |
2552 | test -s conftest.dir/conftest.one && | |
2553 | test -s conftest.dir/conftest.two | |
2554 | then | |
2555 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2556 | break 3 | |
2557 | fi | |
775956d0 NN |
2558 | fi |
2559 | fi | |
2560 | done | |
1c710c3c DJ |
2561 | done |
2562 | ;; | |
2563 | esac | |
5213506e RW |
2564 | |
2565 | done | |
2566 | IFS=$as_save_IFS | |
1c710c3c | 2567 | |
38d24731 | 2568 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2569 | |
2570 | fi | |
2571 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2572 | INSTALL=$ac_cv_path_install |
775956d0 | 2573 | else |
38d24731 RW |
2574 | # As a last resort, use the slow shell script. Don't cache a |
2575 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2576 | # break other packages using the cache if that directory is |
38d24731 | 2577 | # removed, or if the value is a relative name. |
1c710c3c | 2578 | INSTALL=$ac_install_sh |
775956d0 NN |
2579 | fi |
2580 | fi | |
5213506e RW |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2582 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2583 | |
2584 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2585 | # It thinks the first close brace ends the variable substitution. | |
2586 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2587 | ||
1c710c3c | 2588 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2589 | |
2590 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2591 | ||
5213506e RW |
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2593 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2594 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2595 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2596 | else |
2597 | rm -f conftestdata_t | |
2598 | echo >conftestdata_f | |
2599 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2600 | then | |
2601 | acx_cv_prog_LN=ln | |
2602 | else | |
2603 | acx_cv_prog_LN=no | |
2604 | fi | |
2605 | rm -f conftestdata_f conftestdata_t | |
2606 | ||
2607 | fi | |
2608 | if test $acx_cv_prog_LN = no; then | |
2609 | LN="cp" | |
5213506e RW |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2611 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2612 | else |
2613 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2615 | $as_echo "yes" >&6; } | |
ad6717df PB |
2616 | fi |
2617 | ||
5213506e RW |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2619 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2620 | LN_S=$as_ln_s |
2621 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2623 | $as_echo "yes" >&6; } | |
fb0103e5 | 2624 | else |
5213506e RW |
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2626 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2627 | fi |
2628 | ||
87264276 PB |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2630 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2631 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2632 | $as_echo_n "(cached) " >&6 |
2633 | else | |
2634 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2635 | for ac_i in 1 2 3 4 5 6 7; do | |
2636 | ac_script="$ac_script$as_nl$ac_script" | |
2637 | done | |
2638 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2639 | { ac_script=; unset ac_script;} | |
2640 | if test -z "$SED"; then | |
2641 | ac_path_SED_found=false | |
2642 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2644 | for as_dir in $PATH | |
2645 | do | |
2646 | IFS=$as_save_IFS | |
2647 | test -z "$as_dir" && as_dir=. | |
2648 | for ac_prog in sed gsed; do | |
2649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2650 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2651 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2652 | # Check for GNU ac_path_SED and select it if it is found. |
2653 | # Check for GNU $ac_path_SED | |
2654 | case `"$ac_path_SED" --version 2>&1` in | |
2655 | *GNU*) | |
2656 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2657 | *) | |
2658 | ac_count=0 | |
2659 | $as_echo_n 0123456789 >"conftest.in" | |
2660 | while : | |
2661 | do | |
2662 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2663 | mv "conftest.tmp" "conftest.in" | |
2664 | cp "conftest.in" "conftest.nl" | |
2665 | $as_echo '' >> "conftest.nl" | |
2666 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2667 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2668 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2669 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2670 | # Best one so far, save it but keep looking for a better one | |
2671 | ac_cv_path_SED="$ac_path_SED" | |
2672 | ac_path_SED_max=$ac_count | |
2673 | fi | |
2674 | # 10*(2^10) chars as input seems more than enough | |
2675 | test $ac_count -gt 10 && break | |
2676 | done | |
2677 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2678 | esac | |
2679 | ||
2680 | $ac_path_SED_found && break 3 | |
2681 | done | |
2682 | done | |
2683 | done | |
2684 | IFS=$as_save_IFS | |
2685 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2686 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2687 | fi |
2688 | else | |
2689 | ac_cv_path_SED=$SED | |
2690 | fi | |
2691 | ||
2692 | fi | |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2694 | $as_echo "$ac_cv_path_SED" >&6; } | |
2695 | SED="$ac_cv_path_SED" | |
2696 | rm -f conftest.sed | |
2697 | ||
2698 | for ac_prog in gawk mawk nawk awk | |
2699 | do | |
2700 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2701 | set dummy $ac_prog; ac_word=$2 | |
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2703 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2704 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2705 | $as_echo_n "(cached) " >&6 |
2706 | else | |
2707 | if test -n "$AWK"; then | |
2708 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2709 | else | |
2710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2711 | for as_dir in $PATH | |
2712 | do | |
2713 | IFS=$as_save_IFS | |
2714 | test -z "$as_dir" && as_dir=. | |
2715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2717 | ac_cv_prog_AWK="$ac_prog" |
2718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2719 | break 2 | |
2720 | fi | |
2721 | done | |
2722 | done | |
2723 | IFS=$as_save_IFS | |
2724 | ||
2725 | fi | |
2726 | fi | |
2727 | AWK=$ac_cv_prog_AWK | |
2728 | if test -n "$AWK"; then | |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2730 | $as_echo "$AWK" >&6; } | |
2731 | else | |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2733 | $as_echo "no" >&6; } | |
2734 | fi | |
2735 | ||
2736 | ||
2737 | test -n "$AWK" && break | |
2738 | done | |
2739 | ||
775956d0 | 2740 | |
ee6a22df L |
2741 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2742 | ||
2743 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2744 | # a relative path. | |
2745 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2746 | INSTALL="${srcpwd}/install-sh -c" | |
2747 | fi | |
2748 | ||
671aa708 NN |
2749 | # Set srcdir to "." if that's what it is. |
2750 | # This is important for multilib support. | |
2751 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2752 | if test "${pwd}" = "${srcpwd}" ; then |
2753 | srcdir=. | |
79c06341 JL |
2754 | fi |
2755 | ||
671aa708 | 2756 | topsrcdir=$srcpwd |
5d4a5ee6 | 2757 | |
671aa708 | 2758 | extra_host_args= |
afabd8e6 | 2759 | |
671aa708 NN |
2760 | ### To add a new directory to the tree, first choose whether it is a target |
2761 | ### or a host dependent tool. Then put it into the appropriate list | |
2762 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2763 | |
1c710c3c | 2764 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2765 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2766 | |
1c710c3c DJ |
2767 | # Dependency sorting is only needed when *configuration* must be done in |
2768 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2769 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2770 | |
671aa708 NN |
2771 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2772 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2773 | |
23f6b2f9 PB |
2774 | # these library is used by various programs built for the build |
2775 | # environment | |
2776 | # | |
929315a9 | 2777 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2778 | |
2779 | # these tools are built for the build environment | |
85bfb75e | 2780 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2781 | |
671aa708 | 2782 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2783 | #f |
4a9bb2aa | 2784 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
671aa708 | 2785 | |
671aa708 NN |
2786 | # these tools are built for the host environment |
2787 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2788 | # know that we are building the simulator. | |
2789 | # binutils, gas and ld appear in that order because it makes sense to run | |
2790 | # "make check" in that particular order. | |
38e3d868 | 2791 | # If --enable-gold is used, "gold" may replace "ld". |
bf1de3f0 | 2792 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
671aa708 | 2793 | |
671aa708 NN |
2794 | # these libraries are built for the target environment, and are built after |
2795 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2796 | # Note that libiberty is not a target library. |
291f172e | 2797 | target_libraries="target-libgcc \ |
eff02e4f | 2798 | target-libbacktrace \ |
671aa708 NN |
2799 | target-libgloss \ |
2800 | target-newlib \ | |
6d3b5aea | 2801 | target-libgomp \ |
5f520819 | 2802 | target-liboffloadmic \ |
5fd1486c | 2803 | target-libhsail-rt \ |
48310492 | 2804 | target-libatomic \ |
0a35513e | 2805 | target-libitm \ |
cb543528 | 2806 | target-libstdc++-v3 \ |
f35db108 | 2807 | target-libsanitizer \ |
2077db1b | 2808 | target-libvtv \ |
77008252 | 2809 | target-libssp \ |
1ec601bf | 2810 | target-libquadmath \ |
6de9cd9a | 2811 | target-libgfortran \ |
012447ea | 2812 | target-libffi \ |
d9cdb878 | 2813 | target-libobjc \ |
632e2a07 | 2814 | target-libada \ |
b4c522fa IB |
2815 | target-libgo \ |
2816 | target-libphobos" | |
671aa708 | 2817 | |
4dbda6f0 NN |
2818 | # these tools are built using the target libraries, and are intended to |
2819 | # run only in the target environment | |
671aa708 | 2820 | # |
4dbda6f0 | 2821 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2822 | # list belongs in this list. |
671aa708 | 2823 | # |
85bfb75e | 2824 | target_tools="target-rda" |
79c06341 | 2825 | |
671aa708 | 2826 | ################################################################################ |
79c06341 | 2827 | |
671aa708 NN |
2828 | ## All tools belong in one of the four categories, and are assigned above |
2829 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2830 | ## is important because configure will choke if they ever get through. | |
2831 | ## ${configdirs} is directories we build using the host tools. | |
2832 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2833 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2834 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2835 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2836 | |
ac9e6043 RW |
2837 | |
2838 | ||
671aa708 | 2839 | ################################################################################ |
79c06341 | 2840 | |
671aa708 | 2841 | srcname="gnu development package" |
79c06341 | 2842 | |
671aa708 NN |
2843 | # This gets set non-empty for some net releases of packages. |
2844 | appdirs="" | |
79c06341 | 2845 | |
671aa708 NN |
2846 | # Define is_cross_compiler to save on calls to 'test'. |
2847 | is_cross_compiler= | |
2848 | if test x"${host}" = x"${target}" ; then | |
2849 | is_cross_compiler=no | |
79c06341 | 2850 | else |
671aa708 | 2851 | is_cross_compiler=yes |
1c710c3c | 2852 | fi |
79c06341 | 2853 | |
b4acb5ef | 2854 | # Find the build and target subdir names. |
8b87bb96 | 2855 | |
2e9e6f68 DJ |
2856 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2857 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2858 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2859 | # However, they still use the build modules, because the corresponding | |
2860 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2861 | # finishes. So: | |
2862 | # - build_subdir is where we find build modules, and never changes. | |
2863 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2864 | ||
2865 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2866 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2867 | |
5213506e RW |
2868 | # Check whether --with-build-libsubdir was given. |
2869 | if test "${with_build_libsubdir+set}" = set; then : | |
2870 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2871 | else |
2872 | build_libsubdir="$build_subdir" | |
5213506e RW |
2873 | fi |
2874 | ||
215c351a PB |
2875 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2876 | if ( test $srcdir = . && test -d gcc ) \ | |
2877 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2878 | host_subdir="host-${host_noncanonical}" | |
2879 | else | |
2880 | host_subdir=. | |
2881 | fi | |
8b87bb96 NN |
2882 | # No prefix. |
2883 | target_subdir=${target_noncanonical} | |
1c710c3c | 2884 | |
0db770bd RW |
2885 | # Be sure to cover against remnants of an in-tree build. |
2886 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2887 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2888 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2889 | fi | |
79c06341 | 2890 | |
671aa708 NN |
2891 | # Skipdirs are removed silently. |
2892 | skipdirs= | |
2893 | # Noconfigdirs are removed loudly. | |
2894 | noconfigdirs="" | |
79c06341 | 2895 | |
671aa708 NN |
2896 | use_gnu_ld= |
2897 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2898 | if test x$with_gnu_ld = xno ; then | |
2899 | use_gnu_ld=no | |
5afab7ad | 2900 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2901 | fi |
2902 | ||
671aa708 NN |
2903 | use_gnu_as= |
2904 | # Make sure we don't let GNU as be added if we didn't want it. | |
2905 | if test x$with_gnu_as = xno ; then | |
2906 | use_gnu_as=no | |
2907 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2908 | fi |
2909 | ||
d7f09764 | 2910 | use_included_zlib= |
a05c2c75 L |
2911 | |
2912 | # Check whether --with-system-zlib was given. | |
2913 | if test "${with_system_zlib+set}" = set; then : | |
2914 | withval=$with_system_zlib; | |
2915 | fi | |
2916 | ||
d7f09764 DN |
2917 | # Make sure we don't let ZLIB be added if we didn't want it. |
2918 | if test x$with_system_zlib = xyes ; then | |
2919 | use_included_zlib=no | |
2920 | noconfigdirs="$noconfigdirs zlib" | |
2921 | fi | |
2922 | ||
1c710c3c | 2923 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2924 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2925 | |
671aa708 NN |
2926 | case ${with_x} in |
2927 | yes | "") ;; # the default value for this tree is that X11 is available | |
2928 | no) | |
b4f96efe | 2929 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2930 | # We won't be able to build gdbtk without X. |
1c710c3c | 2931 | enable_gdbtk=no |
671aa708 NN |
2932 | ;; |
2933 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2934 | esac | |
79c06341 | 2935 | |
1bcce263 | 2936 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2937 | # Remove these if host=target. |
2938 | cross_only="target-libgloss target-newlib target-opcodes" | |
2939 | ||
2940 | case $is_cross_compiler in | |
2941 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2942 | esac |
79c06341 | 2943 | |
671aa708 NN |
2944 | # If both --with-headers and --with-libs are specified, default to |
2945 | # --without-newlib. | |
ee6a22df L |
2946 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2947 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2948 | if test x"${with_newlib}" = x ; then |
2949 | with_newlib=no | |
2950 | fi | |
79c06341 JL |
2951 | fi |
2952 | ||
671aa708 NN |
2953 | # Recognize --with-newlib/--without-newlib. |
2954 | case ${with_newlib} in | |
2955 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2956 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2957 | esac | |
79c06341 | 2958 | |
85c64bbe BS |
2959 | # Check whether --enable-as-accelerator-for was given. |
2960 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2961 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2962 | fi |
2963 | ||
2964 | ||
2965 | # Check whether --enable-offload-targets was given. | |
2966 | if test "${enable_offload_targets+set}" = set; then : | |
2967 | enableval=$enable_offload_targets; | |
2968 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 2969 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
2970 | fi |
2971 | ||
2972 | else | |
2973 | enable_offload_targets= | |
2974 | fi | |
2975 | ||
2976 | ||
21539e2e MK |
2977 | # Handle --enable-gold, --enable-ld. |
2978 | # --disable-gold [--enable-ld] | |
2979 | # Build only ld. Default option. | |
9580395f L |
2980 | # --enable-gold [--enable-ld] |
2981 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2982 | # as "ld.bfd" and "ld". | |
2983 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2984 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2985 | # install ld as "ld.bfd". | |
2986 | # --enable-gold[=default] --disable-ld | |
2987 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2988 | # --enable-gold --enable-ld=default | |
9580395f L |
2989 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2990 | # and ld.bfd). | |
21539e2e MK |
2991 | # In other words, ld is default |
2992 | # --enable-gold=default --enable-ld=default | |
2993 | # Error. | |
2994 | ||
2995 | default_ld= | |
5213506e RW |
2996 | # Check whether --enable-gold was given. |
2997 | if test "${enable_gold+set}" = set; then : | |
2998 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
2999 | else |
3000 | ENABLE_GOLD=no | |
5213506e RW |
3001 | fi |
3002 | ||
21539e2e MK |
3003 | case "${ENABLE_GOLD}" in |
3004 | yes|default) | |
38e3d868 RM |
3005 | # Check for ELF target. |
3006 | is_elf=no | |
3007 | case "${target}" in | |
3008 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3009 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3010 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3011 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3012 | case "${target}" in |
3013 | *-*-linux*aout* | *-*-linux*oldld*) | |
3014 | ;; | |
3015 | *) | |
3016 | is_elf=yes | |
3017 | ;; | |
3018 | esac | |
3019 | esac | |
3020 | ||
3021 | if test "$is_elf" = "yes"; then | |
3022 | # Check for target supported by gold. | |
5afab7ad | 3023 | case "${target}" in |
7705dfd1 | 3024 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 3025 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
3026 | configdirs="$configdirs gold" |
3027 | if test x${ENABLE_GOLD} = xdefault; then | |
3028 | default_ld=gold | |
3029 | fi | |
38e3d868 | 3030 | ENABLE_GOLD=yes |
5afab7ad ILT |
3031 | ;; |
3032 | esac | |
38e3d868 RM |
3033 | fi |
3034 | ;; | |
3035 | no) | |
3036 | ;; | |
3037 | *) | |
22e05272 | 3038 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3039 | ;; |
21539e2e MK |
3040 | esac |
3041 | ||
3042 | # Check whether --enable-ld was given. | |
3043 | if test "${enable_ld+set}" = set; then : | |
3044 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3045 | else | |
3046 | ENABLE_LD=yes | |
3047 | fi | |
3048 | ||
3049 | ||
3050 | case "${ENABLE_LD}" in | |
3051 | default) | |
9580395f | 3052 | if test x${default_ld} != x; then |
22e05272 | 3053 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3054 | fi |
3055 | ;; | |
3056 | yes) | |
3057 | ;; | |
3058 | no) | |
3059 | if test x${ENABLE_GOLD} != xyes; then | |
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3061 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3062 | fi | |
3063 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3064 | ;; | |
3065 | *) | |
22e05272 | 3066 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3067 | ;; |
3068 | esac | |
5afab7ad | 3069 | |
78edb32f L |
3070 | # PR gas/19109 |
3071 | # Decide the default method for compressing debug sections. | |
3072 | # Provide a configure time option to override our default. | |
3073 | # Check whether --enable-compressed_debug_sections was given. | |
3074 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3075 | enableval=$enable_compressed_debug_sections; | |
3076 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3077 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3078 | fi |
3079 | ||
3080 | else | |
3081 | enable_compressed_debug_sections= | |
3082 | fi | |
3083 | ||
3084 | ||
671aa708 | 3085 | # Configure extra directories which are host specific |
79c06341 | 3086 | |
671aa708 NN |
3087 | case "${host}" in |
3088 | *-cygwin*) | |
3089 | configdirs="$configdirs libtermcap" ;; | |
3090 | esac | |
79c06341 | 3091 | |
4fab7234 HPN |
3092 | # A target can indicate whether a language isn't supported for some reason. |
3093 | # Only spaces may be used in this macro; not newlines or tabs. | |
3094 | unsupported_languages= | |
3095 | ||
1c710c3c | 3096 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3097 | # target this usually means that a port of the program doesn't |
3098 | # exist yet. | |
ec8d6ddc | 3099 | |
671aa708 | 3100 | case "${host}" in |
111eeb6e | 3101 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3102 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3103 | ;; |
671aa708 | 3104 | esac |
ec8d6ddc | 3105 | |
6de9cd9a | 3106 | |
87e6d9dc TB |
3107 | # Check whether --enable-libquadmath was given. |
3108 | if test "${enable_libquadmath+set}" = set; then : | |
3109 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3110 | else | |
3111 | ENABLE_LIBQUADMATH=yes | |
3112 | fi | |
3113 | ||
3114 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3115 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3116 | fi | |
3117 | ||
3118 | ||
3119 | # Check whether --enable-libquadmath-support was given. | |
3120 | if test "${enable_libquadmath_support+set}" = set; then : | |
3121 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3122 | else | |
3123 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3124 | fi | |
3125 | ||
3126 | enable_libquadmath_support= | |
3127 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3128 | enable_libquadmath_support=no | |
3129 | fi | |
3130 | ||
3131 | ||
5213506e RW |
3132 | # Check whether --enable-libada was given. |
3133 | if test "${enable_libada+set}" = set; then : | |
3134 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3135 | else |
3136 | ENABLE_LIBADA=yes | |
5213506e RW |
3137 | fi |
3138 | ||
d9cdb878 | 3139 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3140 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3141 | fi |
3142 | ||
5213506e RW |
3143 | # Check whether --enable-libssp was given. |
3144 | if test "${enable_libssp+set}" = set; then : | |
3145 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3146 | else |
3147 | ENABLE_LIBSSP=yes | |
5213506e RW |
3148 | fi |
3149 | ||
ef0087a7 | 3150 | |
1873ec0c L |
3151 | # Check whether --enable-libstdcxx was given. |
3152 | if test "${enable_libstdcxx+set}" = set; then : | |
3153 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3154 | else | |
3155 | ENABLE_LIBSTDCXX=default | |
3156 | fi | |
3157 | ||
3158 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3159 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3160 | fi |
3161 | ||
5f520819 KY |
3162 | # If this is accelerator compiler and its target is intelmic we enable |
3163 | # target liboffloadmic by default. If this is compiler with offloading | |
3164 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3165 | # liboffloadmic is disabled by default. | |
3166 | # Check whether --enable-liboffloadmic was given. | |
3167 | if test "${enable_liboffloadmic+set}" = set; then : | |
3168 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3169 | no | host | target) | |
3170 | enable_liboffloadmic=$enableval ;; | |
3171 | *) | |
22e05272 | 3172 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
5f520819 KY |
3173 | esac |
3174 | else | |
4b4f2e35 | 3175 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3176 | case "${target}" in |
3177 | *-intelmic-* | *-intelmicemul-*) | |
3178 | enable_liboffloadmic=target | |
3179 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3180 | ;; | |
3181 | *) | |
3182 | enable_liboffloadmic=no | |
3183 | ;; | |
3184 | esac | |
3185 | else | |
3186 | case "${enable_offload_targets}" in | |
3187 | *-intelmic-* | *-intelmicemul-*) | |
3188 | enable_liboffloadmic=host | |
3189 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3190 | ;; | |
3191 | *) | |
3192 | enable_liboffloadmic=no | |
3193 | ;; | |
3194 | esac | |
3195 | fi | |
3196 | fi | |
3197 | ||
3198 | ||
3199 | ||
44a7d18d | 3200 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3201 | if test x$enable_libgomp = x ; then |
953ff289 | 3202 | case "${target}" in |
416ac4d4 | 3203 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3204 | ;; |
8c6d158a | 3205 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3206 | ;; |
b24513a1 | 3207 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3208 | ;; |
cac90078 | 3209 | *-*-darwin* | *-*-aix*) |
953ff289 | 3210 | ;; |
44a7d18d TS |
3211 | nvptx*-*-*) |
3212 | ;; | |
953ff289 DN |
3213 | *) |
3214 | noconfigdirs="$noconfigdirs target-libgomp" | |
3215 | ;; | |
3216 | esac | |
27079765 | 3217 | fi |
953ff289 | 3218 | |
48310492 RH |
3219 | # Disable libatomic on unsupported systems. |
3220 | if test -d ${srcdir}/libatomic; then | |
3221 | if test x$enable_libatomic = x; then | |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3223 | $as_echo_n "checking for libatomic support... " >&6; } | |
3224 | if (srcdir=${srcdir}/libatomic; \ | |
3225 | . ${srcdir}/configure.tgt; \ | |
3226 | test -n "$UNSUPPORTED") | |
3227 | then | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3229 | $as_echo "no" >&6; } | |
3230 | noconfigdirs="$noconfigdirs target-libatomic" | |
3231 | else | |
3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3233 | $as_echo "yes" >&6; } | |
3234 | fi | |
3235 | fi | |
3236 | fi | |
3237 | ||
5f520819 KY |
3238 | # Disable liboffloadmic on unsupported systems. |
3239 | if test -d ${srcdir}/liboffloadmic; then | |
3240 | if test x$enable_liboffloadmic != xno; then | |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3242 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3243 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3244 | . ${srcdir}/configure.tgt; \ | |
3245 | test -n "$UNSUPPORTED") | |
3246 | then | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3248 | $as_echo "no" >&6; } | |
3249 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3250 | else | |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3252 | $as_echo "yes" >&6; } | |
3253 | fi | |
3254 | fi | |
3255 | fi | |
3256 | ||
e948157d RH |
3257 | # Disable libitm on unsupported systems. |
3258 | if test -d ${srcdir}/libitm; then | |
3259 | if test x$enable_libitm = x; then | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3261 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3262 | if (srcdir=${srcdir}/libitm; \ |
3263 | . ${srcdir}/configure.tgt; \ | |
3264 | test -n "$UNSUPPORTED") | |
3265 | then | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3267 | $as_echo "no" >&6; } |
e948157d RH |
3268 | noconfigdirs="$noconfigdirs target-libitm" |
3269 | else | |
3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3271 | $as_echo "yes" >&6; } |
e948157d RH |
3272 | fi |
3273 | fi | |
0a35513e AH |
3274 | fi |
3275 | ||
93bf5390 RH |
3276 | # Disable libsanitizer on unsupported systems. |
3277 | if test -d ${srcdir}/libsanitizer; then | |
3278 | if test x$enable_libsanitizer = x; then | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3280 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3281 | if (srcdir=${srcdir}/libsanitizer; \ | |
3282 | . ${srcdir}/configure.tgt; \ | |
3283 | test -n "$UNSUPPORTED") | |
3284 | then | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3286 | $as_echo "no" >&6; } | |
3287 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3288 | else | |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3290 | $as_echo "yes" >&6; } | |
3291 | fi | |
3292 | fi | |
3293 | fi | |
3294 | ||
2077db1b CT |
3295 | # Disable libvtv on unsupported systems. |
3296 | if test -d ${srcdir}/libvtv; then | |
3297 | if test x$enable_libvtv = x; then | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3299 | $as_echo_n "checking for libvtv support... " >&6; } | |
3300 | if (srcdir=${srcdir}/libvtv; \ | |
3301 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3302 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3303 | then |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3305 | $as_echo "no" >&6; } | |
3306 | noconfigdirs="$noconfigdirs target-libvtv" | |
3307 | else | |
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3309 | $as_echo "yes" >&6; } | |
3310 | fi | |
3311 | fi | |
3312 | fi | |
3313 | ||
5373cd33 | 3314 | |
f6a24a94 MJ |
3315 | # Disable libhsail-rt on unsupported systems. |
3316 | if test -d ${srcdir}/libhsail-rt; then | |
3317 | if test x$enable_libhsail_rt = x; then | |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3319 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3320 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3321 | . ${srcdir}/configure.tgt; \ | |
3322 | test -n "$UNSUPPORTED") | |
3323 | then | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3325 | $as_echo "no" >&6; } | |
3326 | unsupported_languages="$unsupported_languages brig" | |
3327 | # This implicitly disables also target-libhsail-rt as it won't | |
3328 | # get added to the build without BRIG FE. | |
3329 | else | |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3331 | $as_echo "yes" >&6; } | |
3332 | fi | |
3333 | fi | |
3334 | fi | |
5373cd33 IE |
3335 | |
3336 | ||
d91491e5 SE |
3337 | # Disable libquadmath for some systems. |
3338 | case "${target}" in | |
e7fae550 DE |
3339 | avr-*-*) |
3340 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3341 | ;; | |
d91491e5 SE |
3342 | # libquadmath is unused on AIX and libquadmath build process use of |
3343 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3344 | powerpc-*-aix* | rs6000-*-aix*) | |
3345 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3346 | ;; | |
3347 | esac | |
3348 | ||
1e9e0e23 JM |
3349 | # Disable libssp for some systems. |
3350 | case "${target}" in | |
3351 | avr-*-*) | |
b318fb4b | 3352 | # No hosted I/O support. |
1e9e0e23 JM |
3353 | noconfigdirs="$noconfigdirs target-libssp" |
3354 | ;; | |
3355 | powerpc-*-aix* | rs6000-*-aix*) | |
3356 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e DD |
3357 | ;; |
3358 | rl78-*-*) | |
7cb62ef1 EB |
3359 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3360 | # doesn't fault for those - instead, it gives a build-time error | |
3361 | # for explicit misaligned loads. | |
85b8555e | 3362 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3363 | ;; |
0969ec7d EB |
3364 | visium-*-*) |
3365 | # No hosted I/O support. | |
3366 | noconfigdirs="$noconfigdirs target-libssp" | |
3367 | ;; | |
1e9e0e23 JM |
3368 | esac |
3369 | ||
1e9e0e23 | 3370 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3371 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3372 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3373 | case "${target}" in | |
3374 | *-*-vxworks*) | |
3375 | # VxWorks uses the Dinkumware C++ library. | |
3376 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3377 | ;; | |
3378 | arm*-wince-pe*) | |
3379 | # the C++ libraries don't build on top of CE's C libraries | |
3380 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3381 | ;; | |
3382 | avr-*-*) | |
3383 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3384 | ;; | |
fef939d6 JB |
3385 | ft32-*-*) |
3386 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3387 | ;; | |
1873ec0c L |
3388 | esac |
3389 | fi | |
1e9e0e23 | 3390 | |
260eedb9 IB |
3391 | # Disable D on systems where it is known to not work. |
3392 | # For testing, you can override this with --enable-languages=d. | |
3393 | case ,${enable_languages}, in | |
3394 | *,d,*) | |
3395 | ;; | |
3396 | *) | |
3397 | case "${target}" in | |
3398 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) | |
3399 | unsupported_languages="$unsupported_languages d" | |
3400 | ;; | |
3401 | esac | |
3402 | ;; | |
3403 | esac | |
3404 | ||
3405 | # Disable libphobos on unsupported systems. | |
3406 | # For testing, you can override this with --enable-libphobos. | |
3407 | if test -d ${srcdir}/libphobos; then | |
3408 | if test x$enable_libphobos = x; then | |
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3410 | $as_echo_n "checking for libphobos support... " >&6; } | |
3411 | if (srcdir=${srcdir}/libphobos; \ | |
3412 | . ${srcdir}/configure.tgt; \ | |
3413 | test -n "$UNSUPPORTED") | |
3414 | then | |
3415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3416 | $as_echo "no" >&6; } | |
3417 | noconfigdirs="$noconfigdirs target-libphobos" | |
3418 | else | |
3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3420 | $as_echo "yes" >&6; } | |
3421 | fi | |
3422 | fi | |
3423 | fi | |
3424 | ||
1e9e0e23 JM |
3425 | # Disable Fortran for some systems. |
3426 | case "${target}" in | |
3427 | mmix-*-*) | |
3428 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3429 | unsupported_languages="$unsupported_languages fortran" | |
3430 | ;; | |
3431 | esac | |
3432 | ||
012447ea JJ |
3433 | # Disable libffi for some systems. |
3434 | case "${target}" in | |
3435 | powerpc-*-darwin*) | |
3436 | ;; | |
3437 | i[3456789]86-*-darwin*) | |
3438 | ;; | |
3439 | x86_64-*-darwin[912]*) | |
3440 | ;; | |
3441 | *-*-darwin*) | |
3442 | noconfigdirs="$noconfigdirs target-libffi" | |
3443 | ;; | |
3444 | *-*-netware*) | |
3445 | noconfigdirs="$noconfigdirs target-libffi" | |
3446 | ;; | |
3447 | *-*-phoenix*) | |
3448 | noconfigdirs="$noconfigdirs target-libffi" | |
3449 | ;; | |
3450 | *-*-rtems*) | |
3451 | noconfigdirs="$noconfigdirs target-libffi" | |
3452 | ;; | |
3453 | *-*-tpf*) | |
3454 | noconfigdirs="$noconfigdirs target-libffi" | |
3455 | ;; | |
3456 | *-*-uclinux*) | |
3457 | noconfigdirs="$noconfigdirs target-libffi" | |
3458 | ;; | |
3459 | *-*-vxworks*) | |
3460 | noconfigdirs="$noconfigdirs target-libffi" | |
3461 | ;; | |
b20e7532 AT |
3462 | aarch64*-*-freebsd*) |
3463 | noconfigdirs="$noconfigdirs target-libffi" | |
3464 | ;; | |
012447ea JJ |
3465 | alpha*-*-*vms*) |
3466 | noconfigdirs="$noconfigdirs target-libffi" | |
3467 | ;; | |
3468 | arm*-*-freebsd*) | |
3469 | noconfigdirs="$noconfigdirs target-libffi" | |
3470 | ;; | |
3471 | arm-wince-pe) | |
3472 | noconfigdirs="$noconfigdirs target-libffi" | |
3473 | ;; | |
3474 | arm*-*-symbianelf*) | |
3475 | noconfigdirs="$noconfigdirs target-libffi" | |
3476 | ;; | |
3477 | cris-*-* | crisv32-*-*) | |
3478 | case "${target}" in | |
3479 | *-*-linux*) | |
3480 | ;; | |
3481 | *) # See PR46792 regarding target-libffi. | |
3482 | noconfigdirs="$noconfigdirs target-libffi";; | |
3483 | esac | |
3484 | ;; | |
3485 | hppa*64*-*-hpux*) | |
3486 | noconfigdirs="$noconfigdirs target-libffi" | |
3487 | ;; | |
3488 | hppa*-hp-hpux11*) | |
3489 | ;; | |
3490 | hppa*-*-hpux*) | |
3491 | noconfigdirs="$noconfigdirs target-libffi" | |
3492 | ;; | |
3493 | ia64*-*-*vms*) | |
3494 | noconfigdirs="$noconfigdirs target-libffi" | |
3495 | ;; | |
3496 | i[3456789]86-w64-mingw*) | |
3497 | noconfigdirs="$noconfigdirs target-libffi" | |
3498 | ;; | |
3499 | i[3456789]86-*-mingw*) | |
3500 | noconfigdirs="$noconfigdirs target-libffi" | |
3501 | ;; | |
3502 | x86_64-*-mingw*) | |
3503 | noconfigdirs="$noconfigdirs target-libffi" | |
3504 | ;; | |
3505 | mmix-*-*) | |
3506 | noconfigdirs="$noconfigdirs target-libffi" | |
3507 | ;; | |
3508 | powerpc-*-aix*) | |
012447ea JJ |
3509 | ;; |
3510 | rs6000-*-aix*) | |
012447ea JJ |
3511 | ;; |
3512 | ft32-*-*) | |
3513 | noconfigdirs="$noconfigdirs target-libffi" | |
3514 | ;; | |
3515 | *-*-lynxos*) | |
3516 | noconfigdirs="$noconfigdirs target-libffi" | |
3517 | ;; | |
3518 | esac | |
3519 | ||
3520 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3521 | # this in sync with contrib/config-list.mk. | |
3522 | case "${target}" in | |
5a427c63 | 3523 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
012447ea JJ |
3524 | unsupported_languages="$unsupported_languages go" |
3525 | ;; | |
3526 | esac | |
3527 | ||
cdbc9e92 ILT |
3528 | # Disable libgo for some systems where it is known to not work. |
3529 | # For testing, you can easily override this with --enable-libgo. | |
3530 | if test x$enable_libgo = x; then | |
3531 | case "${target}" in | |
3532 | *-*-darwin*) | |
3533 | # PR 46986 | |
3534 | noconfigdirs="$noconfigdirs target-libgo" | |
3535 | ;; | |
3536 | *-*-cygwin* | *-*-mingw*) | |
3537 | noconfigdirs="$noconfigdirs target-libgo" | |
3538 | ;; | |
cdbc9e92 ILT |
3539 | esac |
3540 | fi | |
3541 | ||
c03353e2 RIL |
3542 | # Default libgloss CPU subdirectory. |
3543 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3544 | |
fbcf0dca JM |
3545 | case "${target}" in |
3546 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3547 | libgloss_dir=wince | |
3548 | ;; | |
4dddfc74 YZ |
3549 | aarch64*-*-* ) |
3550 | libgloss_dir=aarch64 | |
3551 | ;; | |
fbcf0dca JM |
3552 | arm*-*-*) |
3553 | libgloss_dir=arm | |
3554 | ;; | |
3555 | cris-*-* | crisv32-*-*) | |
3556 | libgloss_dir=cris | |
3557 | ;; | |
3558 | hppa*-*-*) | |
3559 | libgloss_dir=pa | |
3560 | ;; | |
3561 | i[3456789]86-*-*) | |
3562 | libgloss_dir=i386 | |
3563 | ;; | |
3564 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3565 | libgloss_dir=m68hc11 | |
3566 | ;; | |
3567 | m68*-*-* | fido-*-*) | |
3568 | libgloss_dir=m68k | |
3569 | ;; | |
3570 | mips*-*-*) | |
3571 | libgloss_dir=mips | |
3572 | ;; | |
3573 | powerpc*-*-*) | |
3574 | libgloss_dir=rs6000 | |
3575 | ;; | |
3576 | sparc*-*-*) | |
3577 | libgloss_dir=sparc | |
3578 | ;; | |
3579 | esac | |
3580 | ||
6a789d5e | 3581 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3582 | case "${target}" in |
6a789d5e JM |
3583 | alpha*-dec-osf*) |
3584 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3585 | ;; | |
3586 | i[3456789]86-*-linux*) | |
3587 | # This section makes it possible to build newlib natively on linux. | |
3588 | # If we are using a cross compiler then don't configure newlib. | |
3589 | if test x${is_cross_compiler} != xno ; then | |
3590 | noconfigdirs="$noconfigdirs target-newlib" | |
3591 | fi | |
3592 | noconfigdirs="$noconfigdirs target-libgloss" | |
3593 | # If we are not using a cross compiler, do configure newlib. | |
3594 | # Note however, that newlib will only be configured in this situation | |
3595 | # if the --with-newlib option has been given, because otherwise | |
3596 | # 'target-newlib' will appear in skipdirs. | |
3597 | ;; | |
3598 | i[3456789]86-*-rdos*) | |
3599 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3600 | ;; | |
3601 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3602 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3603 | ;; | |
3604 | sparc-*-sunos4*) | |
3605 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3606 | ;; | |
3607 | *-*-aix*) | |
3608 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3609 | ;; | |
3610 | *-*-beos*) | |
3611 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3612 | ;; | |
671aa708 | 3613 | *-*-chorusos) |
0036370f | 3614 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3615 | ;; |
6a789d5e JM |
3616 | *-*-dragonfly*) |
3617 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3618 | ;; | |
3619 | *-*-freebsd*) | |
3620 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3621 | ;; | |
3622 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3623 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3624 | ;; | |
3625 | *-*-lynxos*) | |
3626 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3627 | ;; | |
3628 | *-*-mingw*) | |
3629 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3630 | ;; | |
3631 | *-*-netbsd*) | |
3632 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3633 | ;; | |
3634 | *-*-netware*) | |
3635 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3636 | ;; | |
3637 | *-*-tpf*) | |
3638 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3639 | ;; | |
3640 | *-*-uclinux*) | |
3641 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3642 | ;; | |
3643 | *-*-vxworks*) | |
3644 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3645 | ;; | |
3646 | esac | |
3647 | ||
3648 | case "${target}" in | |
3649 | *-*-chorusos) | |
3650 | ;; | |
3be96231 TG |
3651 | aarch64-*-darwin*) |
3652 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3653 | noconfigdirs="$noconfigdirs sim target-rda" | |
3654 | ;; | |
7431c1a1 AS |
3655 | amdgcn*-*-*) |
3656 | ;; | |
3be96231 TG |
3657 | arm-*-darwin*) |
3658 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3659 | noconfigdirs="$noconfigdirs sim target-rda" | |
3660 | ;; | |
75eeae1a | 3661 | powerpc-*-darwin*) |
e1514c3f | 3662 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3663 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3664 | ;; |
354ebf88 RW |
3665 | i[3456789]86-*-darwin*) |
3666 | noconfigdirs="$noconfigdirs ld gprof" | |
3667 | noconfigdirs="$noconfigdirs sim target-rda" | |
3668 | ;; | |
3669 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3670 | noconfigdirs="$noconfigdirs ld gas gprof" |
3671 | noconfigdirs="$noconfigdirs sim target-rda" | |
3672 | ;; | |
42c1cd8a AT |
3673 | *-*-darwin*) |
3674 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3675 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3676 | ;; |
8c6d158a | 3677 | *-*-dragonfly*) |
8c6d158a | 3678 | ;; |
c3f84f61 | 3679 | *-*-freebsd*) |
6de9cd9a DN |
3680 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3681 | && test -f /usr/local/include/gmp.h; then | |
3682 | with_gmp=/usr/local | |
3683 | fi | |
6de9cd9a | 3684 | ;; |
ef4e7569 US |
3685 | *-*-kaos*) |
3686 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3687 | noconfigdirs="$noconfigdirs target-libgloss" |
3688 | ;; | |
671aa708 | 3689 | *-*-netbsd*) |
671aa708 | 3690 | ;; |
61fec9ff | 3691 | *-*-netware*) |
671aa708 | 3692 | ;; |
fd6487af JS |
3693 | *-*-phoenix*) |
3694 | noconfigdirs="$noconfigdirs target-libgloss" | |
3695 | ;; | |
671aa708 | 3696 | *-*-rtems*) |
2909494b | 3697 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3698 | ;; |
a8ba31f2 EC |
3699 | # The tpf target doesn't support gdb yet. |
3700 | *-*-tpf*) | |
6a789d5e | 3701 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3702 | ;; |
5785c0ed | 3703 | *-*-uclinux*) |
6a789d5e | 3704 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3705 | ;; |
671aa708 | 3706 | *-*-vxworks*) |
671aa708 NN |
3707 | ;; |
3708 | alpha*-dec-osf*) | |
3709 | # ld works, but does not support shared libraries. | |
671aa708 | 3710 | # gas doesn't generate exception information. |
6a789d5e | 3711 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3712 | ;; |
3713 | alpha*-*-*vms*) | |
2909494b | 3714 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3715 | ;; |
671aa708 NN |
3716 | alpha*-*-*) |
3717 | # newlib is not 64 bit ready | |
2909494b | 3718 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3719 | ;; |
671aa708 | 3720 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3721 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3722 | ;; |
2fd88f4f AK |
3723 | arc*-*-*) |
3724 | noconfigdirs="$noconfigdirs sim" | |
3725 | ;; | |
671aa708 | 3726 | arm-*-pe*) |
2909494b | 3727 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3728 | ;; |
671aa708 | 3729 | arm-*-riscix*) |
0036370f | 3730 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3731 | ;; |
b588ae30 GJL |
3732 | avr-*-*) |
3733 | if test x${with_avrlibc} != xno; then | |
3734 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3735 | fi | |
3736 | ;; | |
671aa708 | 3737 | c4x-*-* | tic4x-*-*) |
0036370f | 3738 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3739 | ;; |
0036370f JM |
3740 | tic54x-*-*) |
3741 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3742 | ;; |
671aa708 | 3743 | d10v-*-*) |
0036370f | 3744 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3745 | ;; |
3746 | d30v-*-*) | |
0036370f | 3747 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3748 | ;; |
3749 | fr30-*-elf*) | |
2909494b | 3750 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3751 | ;; |
a05c2c75 L |
3752 | ft32-*-*) |
3753 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3754 | ;; | |
55f2d967 | 3755 | moxie-*-*) |
a05c2c75 | 3756 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3757 | ;; |
671aa708 | 3758 | h8300*-*-*) |
2909494b | 3759 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3760 | ;; |
3761 | h8500-*-*) | |
0036370f | 3762 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3763 | ;; |
ee6a22df | 3764 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3765 | ;; |
a05c2c75 L |
3766 | hppa*64*-*-hpux*) |
3767 | noconfigdirs="$noconfigdirs gdb" | |
3768 | ;; | |
3769 | hppa*-*-hpux11*) | |
3770 | noconfigdirs="$noconfigdirs gdb ld" | |
3771 | ;; | |
4569f85e | 3772 | hppa*64*-*-linux*) |
671aa708 | 3773 | ;; |
56f8587a | 3774 | hppa*-*-linux*) |
3e732ba0 | 3775 | ;; |
671aa708 | 3776 | hppa*-*-*elf* | \ |
671aa708 NN |
3777 | hppa*-*-lites* | \ |
3778 | hppa*-*-openbsd* | \ | |
3779 | hppa*64*-*-*) | |
671aa708 | 3780 | ;; |
c03353e2 | 3781 | hppa*-*-pro*) |
c03353e2 | 3782 | ;; |
671aa708 | 3783 | hppa*-*-*) |
2909494b | 3784 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3785 | ;; |
fb87ad5d | 3786 | i960-*-*) |
0036370f | 3787 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3788 | ;; |
671aa708 NN |
3789 | ia64*-*-elf*) |
3790 | # No gdb support yet. | |
1bcce263 | 3791 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3792 | ;; |
3793 | ia64*-**-hpux*) | |
5a2931d1 | 3794 | # No ld support yet. |
a05c2c75 | 3795 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3796 | ;; |
52535a64 | 3797 | ia64*-*-*vms*) |
091fe9ca TG |
3798 | # No ld support yet. |
3799 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3800 | ;; |
ef4c4300 | 3801 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3802 | ;; |
3803 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3804 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3805 | ;; |
671aa708 NN |
3806 | *-*-cygwin*) |
3807 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3808 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3809 | # always build newlib if winsup directory is present. |
b91f0a41 | 3810 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3811 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3812 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3813 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3814 | fi |
1c710c3c | 3815 | ;; |
f2a0e225 | 3816 | i[3456789]86-*-pe) |
ebb9f8b0 | 3817 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3818 | ;; |
f2a0e225 | 3819 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3820 | # The linker does not yet know about weak symbols in COFF, |
3821 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3822 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3823 | ;; |
f2a0e225 | 3824 | i[3456789]86-*-sco*) |
0036370f | 3825 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3826 | ;; |
fbdd5d87 | 3827 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3828 | noconfigdirs="$noconfigdirs target-libgloss" |
3829 | ;; | |
f2a0e225 | 3830 | i[3456789]86-*-sysv4*) |
0036370f | 3831 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3832 | ;; |
f2a0e225 | 3833 | i[3456789]86-*-beos*) |
6a789d5e | 3834 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3835 | ;; |
d1f8db0c | 3836 | i[3456789]86-*-rdos*) |
6a789d5e | 3837 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3838 | ;; |
671aa708 | 3839 | mmix-*-*) |
2909494b | 3840 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3841 | ;; |
ab34901f | 3842 | mt-*-*) |
79dd769c AH |
3843 | noconfigdirs="$noconfigdirs sim" |
3844 | ;; | |
58b40a67 FT |
3845 | nfp-*-*) |
3846 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3847 | noconfigdirs="$noconfigdirs $target_libraries" | |
3848 | ;; | |
671aa708 NN |
3849 | powerpc-*-aix*) |
3850 | # copied from rs6000-*-* entry | |
6a789d5e | 3851 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3852 | ;; |
4569f85e | 3853 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3854 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3855 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3856 | # always build newlib. |
3857 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3858 | ;; | |
3859 | # This is temporary until we can link against shared libraries | |
3860 | powerpcle-*-solaris*) | |
0036370f | 3861 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3862 | ;; |
3863 | powerpc-*-beos*) | |
6a789d5e | 3864 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3865 | ;; |
671aa708 | 3866 | rs6000-*-lynxos*) |
6a789d5e | 3867 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3868 | ;; |
3869 | rs6000-*-aix*) | |
6a789d5e | 3870 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3871 | ;; |
3872 | rs6000-*-*) | |
2909494b | 3873 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3874 | ;; |
3875 | m68k-apollo-*) | |
0036370f | 3876 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3877 | ;; |
ca9fe997 | 3878 | microblaze*) |
2909494b | 3879 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3880 | ;; |
d896cc4d | 3881 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3882 | if test x$with_newlib = xyes; then |
3883 | noconfigdirs="$noconfigdirs gprof" | |
3884 | fi | |
d9dced13 | 3885 | ;; |
671aa708 | 3886 | mips*-*-irix5*) |
0036370f | 3887 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3888 | ;; |
3889 | mips*-*-irix6*) | |
2909494b | 3890 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3891 | ;; |
671aa708 | 3892 | mips*-*-bsd*) |
bc98bcc4 | 3893 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3894 | ;; |
671aa708 | 3895 | mips*-*-linux*) |
671aa708 | 3896 | ;; |
bc98bcc4 JBG |
3897 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3898 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3899 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3900 | ;; | |
671aa708 | 3901 | mips*-*-*) |
2909494b | 3902 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3903 | ;; |
738f2522 | 3904 | nvptx*-*-*) |
738f2522 BS |
3905 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3906 | ;; | |
bc6d9014 | 3907 | sh-*-*) |
ea2002ba CB |
3908 | case "${target}" in |
3909 | sh*-*-elf) | |
2909494b | 3910 | ;; |
ea2002ba | 3911 | *) |
2909494b | 3912 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3913 | esac |
671aa708 | 3914 | ;; |
671aa708 | 3915 | sparc-*-sunos4*) |
6a789d5e | 3916 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3917 | use_gnu_ld=no |
3918 | fi | |
3919 | ;; | |
b42f0d7e | 3920 | tic6x-*-*) |
0d557ff8 | 3921 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 3922 | ;; |
341c653c | 3923 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
3924 | noconfigdirs="$noconfigdirs sim" |
3925 | ;; | |
671aa708 | 3926 | v810-*-*) |
0036370f | 3927 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
3928 | ;; |
3929 | vax-*-*) | |
2909494b | 3930 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3931 | ;; |
1fc1d82e MR |
3932 | wasm32-*-*) |
3933 | noconfigdirs="$noconfigdirs ld" | |
3934 | ;; | |
671aa708 | 3935 | esac |
79c06341 | 3936 | |
671aa708 NN |
3937 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3938 | # depends upon some newlib header files. | |
3939 | case "${noconfigdirs}" in | |
3940 | *target-libgloss*) ;; | |
3941 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3942 | esac | |
3943 | ||
671aa708 | 3944 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
3945 | host_makefile_frag=/dev/null |
3946 | if test -d ${srcdir}/config ; then | |
3947 | case "${host}" in | |
f2a0e225 | 3948 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3949 | host_makefile_frag="config/mh-djgpp" |
3950 | ;; | |
3951 | *-cygwin*) | |
2a79c47f | 3952 | |
5213506e RW |
3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3954 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 3955 | echo a >cygwin-cat-check |
e25a8c82 | 3956 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 3957 | rm cygwin-cat-check |
5213506e RW |
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3959 | $as_echo "yes" >&6; } | |
2a79c47f NC |
3960 | else |
3961 | rm cygwin-cat-check | |
5213506e RW |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3963 | $as_echo "no" >&6; } | |
22e05272 | 3964 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
3965 | Please either mount the build directory in binary mode or run the following |
3966 | commands before running any configure script: | |
3967 | set -o igncr | |
3968 | export SHELLOPTS | |
5213506e | 3969 | " "$LINENO" 5 |
2a79c47f NC |
3970 | fi |
3971 | ||
671aa708 NN |
3972 | host_makefile_frag="config/mh-cygwin" |
3973 | ;; | |
c53a18d3 | 3974 | *-mingw*) |
1f5a6b84 | 3975 | host_makefile_frag="config/mh-mingw" |
95af8923 | 3976 | ;; |
cabb9d59 | 3977 | alpha*-linux*) |
13be44ed UB |
3978 | host_makefile_frag="config/mh-alpha-linux" |
3979 | ;; | |
efd41714 | 3980 | hppa*-hp-hpux10*) |
efd41714 | 3981 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 3982 | ;; |
111eeb6e | 3983 | hppa*-hp-hpux*) |
efd41714 PB |
3984 | host_makefile_frag="config/mh-pa" |
3985 | ;; | |
3986 | hppa*-*) | |
3987 | host_makefile_frag="config/mh-pa" | |
3988 | ;; | |
d8ed14ce IS |
3989 | *-*-darwin*) |
3990 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 3991 | ;; |
d19bca38 PB |
3992 | powerpc-*-aix*) |
3993 | host_makefile_frag="config/mh-ppc-aix" | |
3994 | ;; | |
3995 | rs6000-*-aix*) | |
3996 | host_makefile_frag="config/mh-ppc-aix" | |
3997 | ;; | |
671aa708 NN |
3998 | esac |
3999 | fi | |
4000 | ||
55ffb5ed | 4001 | if test "${build}" != "${host}" ; then |
0999159b PB |
4002 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4003 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4004 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b | 4005 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
0999159b | 4006 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4007 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4008 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4009 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4010 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4011 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4012 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4013 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4014 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4015 | else | |
4016 | AR_FOR_BUILD="\$(AR)" | |
4017 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4018 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4019 | CXX_FOR_BUILD="\$(CXX)" |
0999159b | 4020 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4021 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4022 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4023 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4024 | LD_FOR_BUILD="\$(LD)" | |
4025 | NM_FOR_BUILD="\$(NM)" | |
4026 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4027 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4028 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4029 | fi |
4030 | ||
4031 | ac_ext=c | |
1c710c3c DJ |
4032 | ac_cpp='$CPP $CPPFLAGS' |
4033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4036 | if test -n "$ac_tool_prefix"; then | |
4037 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4038 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4040 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4041 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4042 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4043 | else |
4044 | if test -n "$CC"; then | |
4045 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4046 | else | |
4047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4048 | for as_dir in $PATH | |
4049 | do | |
4050 | IFS=$as_save_IFS | |
4051 | test -z "$as_dir" && as_dir=. | |
5213506e | 4052 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4054 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4056 | break 2 |
4057 | fi | |
4058 | done | |
5213506e RW |
4059 | done |
4060 | IFS=$as_save_IFS | |
1c710c3c DJ |
4061 | |
4062 | fi | |
4063 | fi | |
4064 | CC=$ac_cv_prog_CC | |
4065 | if test -n "$CC"; then | |
5213506e RW |
4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4067 | $as_echo "$CC" >&6; } | |
1c710c3c | 4068 | else |
5213506e RW |
4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4070 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4071 | fi |
4072 | ||
5213506e | 4073 | |
1c710c3c DJ |
4074 | fi |
4075 | if test -z "$ac_cv_prog_CC"; then | |
4076 | ac_ct_CC=$CC | |
fb0103e5 RG |
4077 | # Extract the first word of "gcc", so it can be a program name with args. |
4078 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4080 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4081 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4082 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4083 | else |
4084 | if test -n "$ac_ct_CC"; then | |
4085 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4086 | else | |
4087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4088 | for as_dir in $PATH | |
4089 | do | |
4090 | IFS=$as_save_IFS | |
4091 | test -z "$as_dir" && as_dir=. | |
5213506e | 4092 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4094 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4096 | break 2 |
4097 | fi | |
4098 | done | |
5213506e RW |
4099 | done |
4100 | IFS=$as_save_IFS | |
1c710c3c DJ |
4101 | |
4102 | fi | |
4103 | fi | |
4104 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4105 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4107 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4108 | else |
5213506e RW |
4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4110 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4111 | fi |
4112 | ||
5213506e RW |
4113 | if test "x$ac_ct_CC" = x; then |
4114 | CC="" | |
4115 | else | |
4116 | case $cross_compiling:$ac_tool_warned in | |
4117 | yes:) | |
4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4119 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4120 | ac_tool_warned=yes ;; | |
4121 | esac | |
4122 | CC=$ac_ct_CC | |
4123 | fi | |
1c710c3c DJ |
4124 | else |
4125 | CC="$ac_cv_prog_CC" | |
4126 | fi | |
4127 | ||
4128 | if test -z "$CC"; then | |
5213506e RW |
4129 | if test -n "$ac_tool_prefix"; then |
4130 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4131 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4133 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4134 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4135 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4136 | else |
4137 | if test -n "$CC"; then | |
4138 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4139 | else | |
1c710c3c DJ |
4140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4141 | for as_dir in $PATH | |
4142 | do | |
4143 | IFS=$as_save_IFS | |
4144 | test -z "$as_dir" && as_dir=. | |
5213506e | 4145 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4147 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4149 | break 2 |
4150 | fi | |
4151 | done | |
5213506e RW |
4152 | done |
4153 | IFS=$as_save_IFS | |
1c710c3c | 4154 | |
0b0dc272 | 4155 | fi |
0b0dc272 | 4156 | fi |
1c710c3c | 4157 | CC=$ac_cv_prog_CC |
af71363e | 4158 | if test -n "$CC"; then |
5213506e RW |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4160 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4161 | else |
5213506e RW |
4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4163 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4164 | fi |
4165 | ||
2aeb72e9 | 4166 | |
5213506e | 4167 | fi |
1c710c3c | 4168 | fi |
55ffb5ed NN |
4169 | if test -z "$CC"; then |
4170 | # Extract the first word of "cc", so it can be a program name with args. | |
4171 | set dummy cc; ac_word=$2 | |
5213506e RW |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4173 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4174 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4175 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4176 | else |
4177 | if test -n "$CC"; then | |
4178 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4179 | else | |
0b0dc272 | 4180 | ac_prog_rejected=no |
1c710c3c DJ |
4181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4182 | for as_dir in $PATH | |
4183 | do | |
4184 | IFS=$as_save_IFS | |
4185 | test -z "$as_dir" && as_dir=. | |
5213506e | 4186 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4188 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4189 | ac_prog_rejected=yes | |
4190 | continue | |
4191 | fi | |
4192 | ac_cv_prog_CC="cc" | |
5213506e | 4193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4194 | break 2 |
4195 | fi | |
4196 | done | |
5213506e RW |
4197 | done |
4198 | IFS=$as_save_IFS | |
1c710c3c | 4199 | |
55ffb5ed NN |
4200 | if test $ac_prog_rejected = yes; then |
4201 | # We found a bogon in the path, so make sure we never use it. | |
4202 | set dummy $ac_cv_prog_CC | |
4203 | shift | |
1c710c3c | 4204 | if test $# != 0; then |
55ffb5ed NN |
4205 | # We chose a different compiler from the bogus one. |
4206 | # However, it has the same basename, so the bogon will be chosen | |
4207 | # first if we set CC to just the basename; use the full file name. | |
4208 | shift | |
1c710c3c | 4209 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4210 | fi |
4211 | fi | |
4212 | fi | |
4213 | fi | |
1c710c3c | 4214 | CC=$ac_cv_prog_CC |
55ffb5ed | 4215 | if test -n "$CC"; then |
5213506e RW |
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4217 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4218 | else |
5213506e RW |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4220 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4221 | fi |
4222 | ||
5213506e | 4223 | |
1c710c3c DJ |
4224 | fi |
4225 | if test -z "$CC"; then | |
4226 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4227 | for ac_prog in cl.exe |
1c710c3c DJ |
4228 | do |
4229 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4230 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4232 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4233 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4234 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4235 | else |
4236 | if test -n "$CC"; then | |
4237 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4238 | else | |
1c710c3c DJ |
4239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4240 | for as_dir in $PATH | |
4241 | do | |
4242 | IFS=$as_save_IFS | |
4243 | test -z "$as_dir" && as_dir=. | |
5213506e | 4244 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4246 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4248 | break 2 |
4249 | fi | |
4250 | done | |
5213506e RW |
4251 | done |
4252 | IFS=$as_save_IFS | |
1c710c3c | 4253 | |
55ffb5ed NN |
4254 | fi |
4255 | fi | |
1c710c3c | 4256 | CC=$ac_cv_prog_CC |
55ffb5ed | 4257 | if test -n "$CC"; then |
5213506e RW |
4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4259 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4260 | else |
5213506e RW |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4262 | $as_echo "no" >&6; } | |
fb0103e5 | 4263 | fi |
af71363e | 4264 | |
5213506e | 4265 | |
1c710c3c DJ |
4266 | test -n "$CC" && break |
4267 | done | |
af71363e | 4268 | fi |
1c710c3c DJ |
4269 | if test -z "$CC"; then |
4270 | ac_ct_CC=$CC | |
5213506e | 4271 | for ac_prog in cl.exe |
1c710c3c DJ |
4272 | do |
4273 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4274 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4276 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4277 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4278 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4279 | else |
1c710c3c DJ |
4280 | if test -n "$ac_ct_CC"; then |
4281 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4282 | else |
1c710c3c DJ |
4283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4284 | for as_dir in $PATH | |
4285 | do | |
4286 | IFS=$as_save_IFS | |
4287 | test -z "$as_dir" && as_dir=. | |
5213506e | 4288 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4290 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4292 | break 2 |
4293 | fi | |
4294 | done | |
5213506e RW |
4295 | done |
4296 | IFS=$as_save_IFS | |
1c710c3c | 4297 | |
af71363e AS |
4298 | fi |
4299 | fi | |
1c710c3c DJ |
4300 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4301 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4303 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4304 | else |
5213506e RW |
4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4306 | $as_echo "no" >&6; } | |
af71363e | 4307 | fi |
0b0dc272 | 4308 | |
5213506e | 4309 | |
1c710c3c DJ |
4310 | test -n "$ac_ct_CC" && break |
4311 | done | |
4312 | ||
5213506e RW |
4313 | if test "x$ac_ct_CC" = x; then |
4314 | CC="" | |
4315 | else | |
4316 | case $cross_compiling:$ac_tool_warned in | |
4317 | yes:) | |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4319 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4320 | ac_tool_warned=yes ;; | |
4321 | esac | |
4322 | CC=$ac_ct_CC | |
4323 | fi | |
1c710c3c DJ |
4324 | fi |
4325 | ||
4326 | fi | |
4327 | ||
4328 | ||
5213506e RW |
4329 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4330 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4331 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4332 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4333 | |
4334 | # Provide some information about the compiler. | |
5213506e RW |
4335 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4336 | set X $ac_compile | |
4337 | ac_compiler=$2 | |
4338 | for ac_option in --version -v -V -qversion; do | |
4339 | { { ac_try="$ac_compiler $ac_option >&5" | |
4340 | case "(($ac_try" in | |
4341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4342 | *) ac_try_echo=$ac_try;; | |
4343 | esac | |
4344 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4345 | $as_echo "$ac_try_echo"; } >&5 | |
4346 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4347 | ac_status=$? |
5213506e RW |
4348 | if test -s conftest.err; then |
4349 | sed '10a\ | |
4350 | ... rest of stderr output deleted ... | |
4351 | 10q' conftest.err >conftest.er1 | |
4352 | cat conftest.er1 >&5 | |
5213506e | 4353 | fi |
22e05272 | 4354 | rm -f conftest.er1 conftest.err |
5213506e RW |
4355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4356 | test $ac_status = 0; } | |
4357 | done | |
1c710c3c | 4358 | |
5213506e | 4359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4360 | /* end confdefs.h. */ |
4361 | ||
4362 | int | |
4363 | main () | |
4364 | { | |
4365 | ||
4366 | ; | |
4367 | return 0; | |
4368 | } | |
4369 | _ACEOF | |
4370 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4371 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4372 | # Try to create an executable without -o first, disregard a.out. |
4373 | # It will help us diagnose broken compilers, and finding out an intuition | |
4374 | # of exeext. | |
22e05272 JM |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4376 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4377 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4378 | ||
4379 | # The possible output files: | |
4380 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4381 | ||
4382 | ac_rmfiles= | |
4383 | for ac_file in $ac_files | |
4384 | do | |
4385 | case $ac_file in | |
4386 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4387 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4388 | esac | |
4389 | done | |
4390 | rm -f $ac_rmfiles | |
4391 | ||
4392 | if { { ac_try="$ac_link_default" | |
4393 | case "(($ac_try" in | |
4394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4395 | *) ac_try_echo=$ac_try;; | |
4396 | esac | |
4397 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4398 | $as_echo "$ac_try_echo"; } >&5 | |
4399 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4400 | ac_status=$? |
5213506e RW |
4401 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4402 | test $ac_status = 0; }; then : | |
4403 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4404 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4405 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4406 | # so that the user can short-circuit this test for compilers unknown to | |
4407 | # Autoconf. | |
4408 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4409 | do |
4410 | test -f "$ac_file" || continue | |
4411 | case $ac_file in | |
5213506e | 4412 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4413 | ;; |
4414 | [ab].out ) | |
4415 | # We found the default executable, but exeext='' is most | |
4416 | # certainly right. | |
4417 | break;; | |
4418 | *.* ) | |
5213506e RW |
4419 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4420 | then :; else | |
4421 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4422 | fi | |
4423 | # We set ac_cv_exeext here because the later test for it is not | |
4424 | # safe: cross compilers may not add the suffix if given an `-o' | |
4425 | # argument, so we may need to know it at that point already. | |
4426 | # Even if this section looks crufty: it has the advantage of | |
4427 | # actually working. | |
1c710c3c DJ |
4428 | break;; |
4429 | * ) | |
4430 | break;; | |
4431 | esac | |
4432 | done | |
5213506e RW |
4433 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4434 | ||
1c710c3c | 4435 | else |
5213506e RW |
4436 | ac_file='' |
4437 | fi | |
5213506e | 4438 | if test -z "$ac_file"; then : |
22e05272 JM |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4440 | $as_echo "no" >&6; } | |
4441 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4442 | sed 's/^/| /' conftest.$ac_ext >&5 |
4443 | ||
5213506e RW |
4444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4446 | as_fn_error 77 "C compiler cannot create executables |
4447 | See \`config.log' for more details" "$LINENO" 5; } | |
4448 | else | |
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4450 | $as_echo "yes" >&6; } | |
1c710c3c | 4451 | fi |
22e05272 JM |
4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4453 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4455 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4456 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4457 | |
22e05272 | 4458 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4459 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4461 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4462 | if { { ac_try="$ac_link" | |
4463 | case "(($ac_try" in | |
4464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4465 | *) ac_try_echo=$ac_try;; | |
4466 | esac | |
4467 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4468 | $as_echo "$ac_try_echo"; } >&5 | |
4469 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4470 | ac_status=$? |
5213506e RW |
4471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4472 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4473 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4474 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4475 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4476 | # `rm'. | |
4477 | for ac_file in conftest.exe conftest conftest.*; do | |
4478 | test -f "$ac_file" || continue | |
4479 | case $ac_file in | |
5213506e | 4480 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4481 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4482 | break;; |
4483 | * ) break;; | |
4484 | esac | |
4485 | done | |
af71363e | 4486 | else |
5213506e RW |
4487 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4488 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4489 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4490 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4491 | fi |
22e05272 | 4492 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4494 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4495 | |
4496 | rm -f conftest.$ac_ext | |
4497 | EXEEXT=$ac_cv_exeext | |
4498 | ac_exeext=$EXEEXT | |
22e05272 JM |
4499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4500 | /* end confdefs.h. */ | |
4501 | #include <stdio.h> | |
4502 | int | |
4503 | main () | |
4504 | { | |
4505 | FILE *f = fopen ("conftest.out", "w"); | |
4506 | return ferror (f) || fclose (f) != 0; | |
4507 | ||
4508 | ; | |
4509 | return 0; | |
4510 | } | |
4511 | _ACEOF | |
4512 | ac_clean_files="$ac_clean_files conftest.out" | |
4513 | # Check that the compiler produces executables we can run. If not, either | |
4514 | # the compiler is broken, or we cross compile. | |
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4516 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4517 | if test "$cross_compiling" != yes; then | |
4518 | { { ac_try="$ac_link" | |
4519 | case "(($ac_try" in | |
4520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4521 | *) ac_try_echo=$ac_try;; | |
4522 | esac | |
4523 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4524 | $as_echo "$ac_try_echo"; } >&5 | |
4525 | (eval "$ac_link") 2>&5 | |
4526 | ac_status=$? | |
4527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4528 | test $ac_status = 0; } | |
4529 | if { ac_try='./conftest$ac_cv_exeext' | |
4530 | { { case "(($ac_try" in | |
4531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4532 | *) ac_try_echo=$ac_try;; | |
4533 | esac | |
4534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4535 | $as_echo "$ac_try_echo"; } >&5 | |
4536 | (eval "$ac_try") 2>&5 | |
4537 | ac_status=$? | |
4538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4539 | test $ac_status = 0; }; }; then | |
4540 | cross_compiling=no | |
4541 | else | |
4542 | if test "$cross_compiling" = maybe; then | |
4543 | cross_compiling=yes | |
4544 | else | |
4545 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4547 | as_fn_error $? "cannot run C compiled programs. | |
4548 | If you meant to cross compile, use \`--host'. | |
4549 | See \`config.log' for more details" "$LINENO" 5; } | |
4550 | fi | |
4551 | fi | |
4552 | fi | |
4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4554 | $as_echo "$cross_compiling" >&6; } | |
4555 | ||
4556 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4557 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4559 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4560 | if ${ac_cv_objext+:} false; then : |
5213506e | 4561 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4562 | else |
5213506e | 4563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4564 | /* end confdefs.h. */ |
4565 | ||
4566 | int | |
4567 | main () | |
4568 | { | |
4569 | ||
4570 | ; | |
4571 | return 0; | |
4572 | } | |
4573 | _ACEOF | |
4574 | rm -f conftest.o conftest.obj | |
5213506e RW |
4575 | if { { ac_try="$ac_compile" |
4576 | case "(($ac_try" in | |
4577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4578 | *) ac_try_echo=$ac_try;; | |
4579 | esac | |
4580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4581 | $as_echo "$ac_try_echo"; } >&5 | |
4582 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4583 | ac_status=$? |
5213506e RW |
4584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4585 | test $ac_status = 0; }; then : | |
4586 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4587 | test -f "$ac_file" || continue; | |
1c710c3c | 4588 | case $ac_file in |
5213506e | 4589 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4590 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4591 | break;; | |
4592 | esac | |
4593 | done | |
4594 | else | |
5213506e | 4595 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4596 | sed 's/^/| /' conftest.$ac_ext >&5 |
4597 | ||
5213506e RW |
4598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4599 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4600 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4601 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4602 | fi |
1c710c3c DJ |
4603 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4604 | fi | |
5213506e RW |
4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4606 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4607 | OBJEXT=$ac_cv_objext |
4608 | ac_objext=$OBJEXT | |
5213506e RW |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4610 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4611 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4612 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4613 | else |
5213506e | 4614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4615 | /* end confdefs.h. */ |
4616 | ||
4617 | int | |
4618 | main () | |
4619 | { | |
4620 | #ifndef __GNUC__ | |
4621 | choke me | |
4622 | #endif | |
4623 | ||
4624 | ; | |
4625 | return 0; | |
4626 | } | |
4627 | _ACEOF | |
5213506e | 4628 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4629 | ac_compiler_gnu=yes |
4630 | else | |
5213506e | 4631 | ac_compiler_gnu=no |
1c710c3c | 4632 | fi |
5213506e | 4633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4634 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4635 | ||
4636 | fi | |
5213506e RW |
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4638 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4639 | if test $ac_compiler_gnu = yes; then | |
4640 | GCC=yes | |
4641 | else | |
4642 | GCC= | |
4643 | fi | |
1c710c3c DJ |
4644 | ac_test_CFLAGS=${CFLAGS+set} |
4645 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4647 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4648 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4649 | $as_echo_n "(cached) " >&6 |
4650 | else | |
4651 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4652 | ac_c_werror_flag=yes | |
4653 | ac_cv_prog_cc_g=no | |
4654 | CFLAGS="-g" | |
4655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4656 | /* end confdefs.h. */ |
4657 | ||
4658 | int | |
4659 | main () | |
4660 | { | |
4661 | ||
4662 | ; | |
4663 | return 0; | |
4664 | } | |
4665 | _ACEOF | |
5213506e | 4666 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4667 | ac_cv_prog_cc_g=yes |
4668 | else | |
5213506e RW |
4669 | CFLAGS="" |
4670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4671 | /* end confdefs.h. */ | |
4672 | ||
4673 | int | |
4674 | main () | |
4675 | { | |
4676 | ||
4677 | ; | |
4678 | return 0; | |
4679 | } | |
4680 | _ACEOF | |
4681 | if ac_fn_c_try_compile "$LINENO"; then : | |
4682 | ||
4683 | else | |
4684 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4685 | CFLAGS="-g" | |
4686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4687 | /* end confdefs.h. */ | |
af71363e | 4688 | |
5213506e RW |
4689 | int |
4690 | main () | |
4691 | { | |
4692 | ||
4693 | ; | |
4694 | return 0; | |
4695 | } | |
4696 | _ACEOF | |
4697 | if ac_fn_c_try_compile "$LINENO"; then : | |
4698 | ac_cv_prog_cc_g=yes | |
4699 | fi | |
4700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4701 | fi |
5213506e | 4702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4703 | fi |
5213506e RW |
4704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4705 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4706 | fi | |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4708 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4709 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4710 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4711 | elif test $ac_cv_prog_cc_g = yes; then |
4712 | if test "$GCC" = yes; then | |
4713 | CFLAGS="-g -O2" | |
4714 | else | |
4715 | CFLAGS="-g" | |
4716 | fi | |
4717 | else | |
4718 | if test "$GCC" = yes; then | |
4719 | CFLAGS="-O2" | |
4720 | else | |
4721 | CFLAGS= | |
4722 | fi | |
4723 | fi | |
5213506e RW |
4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4725 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4726 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4727 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4728 | else |
5213506e | 4729 | ac_cv_prog_cc_c89=no |
1c710c3c | 4730 | ac_save_CC=$CC |
5213506e | 4731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4732 | /* end confdefs.h. */ |
4733 | #include <stdarg.h> | |
4734 | #include <stdio.h> | |
22e05272 | 4735 | struct stat; |
1c710c3c DJ |
4736 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4737 | struct buf { int x; }; | |
4738 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4739 | static char *e (p, i) | |
4740 | char **p; | |
4741 | int i; | |
4742 | { | |
4743 | return p[i]; | |
4744 | } | |
4745 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4746 | { | |
4747 | char *s; | |
4748 | va_list v; | |
4749 | va_start (v,p); | |
4750 | s = g (p, va_arg (v,int)); | |
4751 | va_end (v); | |
4752 | return s; | |
4753 | } | |
4754 | ||
4755 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4756 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4757 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4758 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4759 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4760 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4761 | that's true only with -std. */ |
1c710c3c DJ |
4762 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4763 | ||
5213506e RW |
4764 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4765 | inside strings and character constants. */ | |
4766 | #define FOO(x) 'x' | |
4767 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4768 | ||
1c710c3c DJ |
4769 | int test (int i, double x); |
4770 | struct s1 {int (*f) (int a);}; | |
4771 | struct s2 {int (*f) (double a);}; | |
4772 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4773 | int argc; | |
4774 | char **argv; | |
4775 | int | |
4776 | main () | |
4777 | { | |
4778 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4779 | ; | |
4780 | return 0; | |
4781 | } | |
4782 | _ACEOF | |
5213506e RW |
4783 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4784 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4785 | do |
4786 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4787 | if ac_fn_c_try_compile "$LINENO"; then : |
4788 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4789 | fi |
5213506e RW |
4790 | rm -f core conftest.err conftest.$ac_objext |
4791 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4792 | done |
5213506e | 4793 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4794 | CC=$ac_save_CC |
4795 | ||
4796 | fi | |
5213506e RW |
4797 | # AC_CACHE_VAL |
4798 | case "x$ac_cv_prog_cc_c89" in | |
4799 | x) | |
4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4801 | $as_echo "none needed" >&6; } ;; | |
4802 | xno) | |
4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4804 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4805 | *) |
5213506e RW |
4806 | CC="$CC $ac_cv_prog_cc_c89" |
4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4808 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4809 | esac |
5213506e | 4810 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4811 | |
2aeb72e9 DD |
4812 | fi |
4813 | ||
2aeb72e9 DD |
4814 | ac_ext=c |
4815 | ac_cpp='$CPP $CPPFLAGS' | |
4816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4819 | ||
5213506e | 4820 | ac_ext=cpp |
2aeb72e9 DD |
4821 | ac_cpp='$CXXCPP $CPPFLAGS' |
4822 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4823 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4824 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4825 | if test -z "$CXX"; then |
4826 | if test -n "$CCC"; then | |
4827 | CXX=$CCC | |
4828 | else | |
4829 | if test -n "$ac_tool_prefix"; then | |
4830 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4831 | do |
4832 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4833 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4835 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4836 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 4837 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
4838 | else |
4839 | if test -n "$CXX"; then | |
4840 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4841 | else | |
4842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4843 | for as_dir in $PATH | |
4844 | do | |
4845 | IFS=$as_save_IFS | |
4846 | test -z "$as_dir" && as_dir=. | |
5213506e | 4847 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 4849 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4851 | break 2 |
4852 | fi | |
4853 | done | |
5213506e RW |
4854 | done |
4855 | IFS=$as_save_IFS | |
55ffb5ed | 4856 | |
c3a86da9 DJ |
4857 | fi |
4858 | fi | |
4859 | CXX=$ac_cv_prog_CXX | |
4860 | if test -n "$CXX"; then | |
5213506e RW |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4862 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4863 | else |
5213506e RW |
4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4865 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4866 | fi |
4867 | ||
5213506e | 4868 | |
c3a86da9 DJ |
4869 | test -n "$CXX" && break |
4870 | done | |
4871 | fi | |
4872 | if test -z "$CXX"; then | |
4873 | ac_ct_CXX=$CXX | |
5213506e | 4874 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4875 | do |
4876 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4877 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4879 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4880 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 4881 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
4882 | else |
4883 | if test -n "$ac_ct_CXX"; then | |
4884 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4885 | else | |
4886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4887 | for as_dir in $PATH | |
4888 | do | |
4889 | IFS=$as_save_IFS | |
4890 | test -z "$as_dir" && as_dir=. | |
5213506e | 4891 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 4893 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4895 | break 2 |
4896 | fi | |
4897 | done | |
5213506e RW |
4898 | done |
4899 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4900 | |
4901 | fi | |
4902 | fi | |
4903 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4904 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4906 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4907 | else |
5213506e RW |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4909 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4910 | fi |
4911 | ||
5213506e | 4912 | |
c3a86da9 DJ |
4913 | test -n "$ac_ct_CXX" && break |
4914 | done | |
c3a86da9 | 4915 | |
5213506e RW |
4916 | if test "x$ac_ct_CXX" = x; then |
4917 | CXX="g++" | |
4918 | else | |
4919 | case $cross_compiling:$ac_tool_warned in | |
4920 | yes:) | |
4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4922 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4923 | ac_tool_warned=yes ;; | |
4924 | esac | |
4925 | CXX=$ac_ct_CXX | |
4926 | fi | |
c3a86da9 DJ |
4927 | fi |
4928 | ||
5213506e RW |
4929 | fi |
4930 | fi | |
c3a86da9 | 4931 | # Provide some information about the compiler. |
5213506e RW |
4932 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4933 | set X $ac_compile | |
4934 | ac_compiler=$2 | |
4935 | for ac_option in --version -v -V -qversion; do | |
4936 | { { ac_try="$ac_compiler $ac_option >&5" | |
4937 | case "(($ac_try" in | |
4938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4939 | *) ac_try_echo=$ac_try;; | |
4940 | esac | |
4941 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4942 | $as_echo "$ac_try_echo"; } >&5 | |
4943 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 4944 | ac_status=$? |
5213506e RW |
4945 | if test -s conftest.err; then |
4946 | sed '10a\ | |
4947 | ... rest of stderr output deleted ... | |
4948 | 10q' conftest.err >conftest.er1 | |
4949 | cat conftest.er1 >&5 | |
5213506e | 4950 | fi |
22e05272 | 4951 | rm -f conftest.er1 conftest.err |
5213506e RW |
4952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4953 | test $ac_status = 0; } | |
4954 | done | |
c3a86da9 | 4955 | |
5213506e RW |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4957 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 4958 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 4959 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 4960 | else |
5213506e | 4961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
4962 | /* end confdefs.h. */ |
4963 | ||
4964 | int | |
4965 | main () | |
4966 | { | |
4967 | #ifndef __GNUC__ | |
4968 | choke me | |
4969 | #endif | |
4970 | ||
4971 | ; | |
4972 | return 0; | |
4973 | } | |
4974 | _ACEOF | |
5213506e | 4975 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4976 | ac_compiler_gnu=yes |
4977 | else | |
5213506e | 4978 | ac_compiler_gnu=no |
c3a86da9 | 4979 | fi |
5213506e | 4980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
4981 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4982 | ||
4983 | fi | |
5213506e RW |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4985 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4986 | if test $ac_compiler_gnu = yes; then | |
4987 | GXX=yes | |
4988 | else | |
4989 | GXX= | |
4990 | fi | |
c3a86da9 DJ |
4991 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4992 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4994 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 4995 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
4996 | $as_echo_n "(cached) " >&6 |
4997 | else | |
4998 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4999 | ac_cxx_werror_flag=yes | |
5000 | ac_cv_prog_cxx_g=no | |
5001 | CXXFLAGS="-g" | |
5002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5003 | /* end confdefs.h. */ |
5004 | ||
5005 | int | |
5006 | main () | |
5007 | { | |
5008 | ||
5009 | ; | |
5010 | return 0; | |
5011 | } | |
5012 | _ACEOF | |
5213506e | 5013 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5014 | ac_cv_prog_cxx_g=yes |
5015 | else | |
5213506e RW |
5016 | CXXFLAGS="" |
5017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5018 | /* end confdefs.h. */ |
5213506e | 5019 | |
c3a86da9 DJ |
5020 | int |
5021 | main () | |
5022 | { | |
5213506e | 5023 | |
c3a86da9 DJ |
5024 | ; |
5025 | return 0; | |
5026 | } | |
5027 | _ACEOF | |
5213506e | 5028 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5029 | |
5213506e RW |
5030 | else |
5031 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5032 | CXXFLAGS="-g" | |
5033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5034 | /* end confdefs.h. */ |
5213506e | 5035 | |
c3a86da9 DJ |
5036 | int |
5037 | main () | |
5038 | { | |
5213506e | 5039 | |
c3a86da9 DJ |
5040 | ; |
5041 | return 0; | |
5042 | } | |
5043 | _ACEOF | |
5213506e RW |
5044 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5045 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5046 | fi |
5213506e RW |
5047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5048 | fi | |
5049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5050 | fi | |
5051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5052 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5053 | fi | |
5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5055 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5056 | if test "$ac_test_CXXFLAGS" = set; then | |
5057 | CXXFLAGS=$ac_save_CXXFLAGS | |
5058 | elif test $ac_cv_prog_cxx_g = yes; then | |
5059 | if test "$GXX" = yes; then | |
5060 | CXXFLAGS="-g -O2" | |
5061 | else | |
5062 | CXXFLAGS="-g" | |
5063 | fi | |
5064 | else | |
5065 | if test "$GXX" = yes; then | |
5066 | CXXFLAGS="-O2" | |
5067 | else | |
5068 | CXXFLAGS= | |
5069 | fi | |
c3a86da9 | 5070 | fi |
c3a86da9 DJ |
5071 | ac_ext=c |
5072 | ac_cpp='$CPP $CPPFLAGS' | |
5073 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5074 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5075 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5076 | ||
5077 | ||
5078 | # We must set the default linker to the linker used by gcc for the correct | |
5079 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5080 | # set the LD default to the ld used by gcc. | |
5081 | if test -z "$LD"; then | |
5082 | if test "$GCC" = yes; then | |
5083 | case $build in | |
5084 | *-*-mingw*) | |
5085 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5086 | *) | |
5087 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5088 | esac | |
5089 | case $gcc_prog_ld in | |
5090 | # Accept absolute paths. | |
5091 | [\\/]* | [A-Za-z]:[\\/]*) | |
5092 | LD="$gcc_prog_ld" ;; | |
5093 | esac | |
5094 | fi | |
23f6b2f9 PB |
5095 | fi |
5096 | ||
0b21f5d3 EB |
5097 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5098 | have_static_libs=no | |
5099 | if test "$GCC" = yes; then | |
5100 | saved_LDFLAGS="$LDFLAGS" | |
5101 | ||
5102 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5104 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5105 | ac_ext=cpp | |
5106 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5107 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5108 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5109 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5110 | ||
5111 | ||
5112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5113 | /* end confdefs.h. */ | |
0d6414b2 EB |
5114 | |
5115 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5116 | #error -static-libstdc++ not implemented | |
5117 | #endif | |
0b21f5d3 EB |
5118 | int main() {} |
5119 | _ACEOF | |
5120 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5122 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5123 | else | |
5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5125 | $as_echo "no" >&6; } | |
5126 | fi | |
5127 | rm -f core conftest.err conftest.$ac_objext \ | |
5128 | conftest$ac_exeext conftest.$ac_ext | |
5129 | ac_ext=c | |
5130 | ac_cpp='$CPP $CPPFLAGS' | |
5131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5134 | ||
5135 | ||
5136 | LDFLAGS="$saved_LDFLAGS" | |
5137 | fi | |
5138 | ||
23f6b2f9 PB |
5139 | |
5140 | ||
55ffb5ed | 5141 | |
1c710c3c DJ |
5142 | if test -n "$ac_tool_prefix"; then |
5143 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5144 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5146 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5147 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5148 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5149 | else |
5150 | if test -n "$GNATBIND"; then | |
5151 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5152 | else | |
1c710c3c DJ |
5153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5154 | for as_dir in $PATH | |
5155 | do | |
5156 | IFS=$as_save_IFS | |
5157 | test -z "$as_dir" && as_dir=. | |
5213506e | 5158 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5159 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5160 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5162 | break 2 |
5163 | fi | |
5164 | done | |
5213506e RW |
5165 | done |
5166 | IFS=$as_save_IFS | |
1c710c3c | 5167 | |
55ffb5ed NN |
5168 | fi |
5169 | fi | |
1c710c3c | 5170 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5171 | if test -n "$GNATBIND"; then |
5213506e RW |
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5173 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5174 | else |
5213506e RW |
5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5176 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5177 | fi |
5178 | ||
5213506e | 5179 | |
1c710c3c | 5180 | fi |
55ffb5ed | 5181 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5182 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5183 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5184 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5186 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5187 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5188 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5189 | else |
1c710c3c DJ |
5190 | if test -n "$ac_ct_GNATBIND"; then |
5191 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5192 | else |
1c710c3c DJ |
5193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5194 | for as_dir in $PATH | |
5195 | do | |
5196 | IFS=$as_save_IFS | |
5197 | test -z "$as_dir" && as_dir=. | |
5213506e | 5198 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5199 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5200 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5202 | break 2 |
5203 | fi | |
5204 | done | |
5213506e RW |
5205 | done |
5206 | IFS=$as_save_IFS | |
1c710c3c | 5207 | |
55ffb5ed NN |
5208 | fi |
5209 | fi | |
1c710c3c DJ |
5210 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5211 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5213 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5214 | else |
5213506e RW |
5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5216 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5217 | fi |
5218 | ||
5213506e RW |
5219 | if test "x$ac_ct_GNATBIND" = x; then |
5220 | GNATBIND="no" | |
5221 | else | |
5222 | case $cross_compiling:$ac_tool_warned in | |
5223 | yes:) | |
5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5225 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5226 | ac_tool_warned=yes ;; | |
5227 | esac | |
5228 | GNATBIND=$ac_ct_GNATBIND | |
5229 | fi | |
55ffb5ed | 5230 | else |
1c710c3c | 5231 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5232 | fi |
5233 | ||
1c710c3c DJ |
5234 | if test -n "$ac_tool_prefix"; then |
5235 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5236 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5238 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5239 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5240 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5241 | else |
5242 | if test -n "$GNATMAKE"; then | |
5243 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5244 | else | |
1c710c3c DJ |
5245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5246 | for as_dir in $PATH | |
5247 | do | |
5248 | IFS=$as_save_IFS | |
5249 | test -z "$as_dir" && as_dir=. | |
5213506e | 5250 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5252 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5254 | break 2 |
5255 | fi | |
5256 | done | |
5213506e RW |
5257 | done |
5258 | IFS=$as_save_IFS | |
1c710c3c | 5259 | |
5305be7e RG |
5260 | fi |
5261 | fi | |
1c710c3c | 5262 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5263 | if test -n "$GNATMAKE"; then |
5213506e RW |
5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5265 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5266 | else |
5213506e RW |
5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5268 | $as_echo "no" >&6; } | |
5305be7e RG |
5269 | fi |
5270 | ||
5213506e | 5271 | |
1c710c3c | 5272 | fi |
5305be7e | 5273 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5274 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5275 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5276 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5278 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5279 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5280 | $as_echo_n "(cached) " >&6 |
5305be7e | 5281 | else |
1c710c3c DJ |
5282 | if test -n "$ac_ct_GNATMAKE"; then |
5283 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5284 | else |
1c710c3c DJ |
5285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5286 | for as_dir in $PATH | |
5287 | do | |
5288 | IFS=$as_save_IFS | |
5289 | test -z "$as_dir" && as_dir=. | |
5213506e | 5290 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5291 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5292 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5294 | break 2 |
5295 | fi | |
5296 | done | |
5213506e RW |
5297 | done |
5298 | IFS=$as_save_IFS | |
1c710c3c | 5299 | |
5305be7e RG |
5300 | fi |
5301 | fi | |
1c710c3c DJ |
5302 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5303 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5305 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5306 | else |
5213506e RW |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5308 | $as_echo "no" >&6; } | |
5305be7e RG |
5309 | fi |
5310 | ||
5213506e RW |
5311 | if test "x$ac_ct_GNATMAKE" = x; then |
5312 | GNATMAKE="no" | |
5313 | else | |
5314 | case $cross_compiling:$ac_tool_warned in | |
5315 | yes:) | |
5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5317 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5318 | ac_tool_warned=yes ;; | |
5319 | esac | |
5320 | GNATMAKE=$ac_ct_GNATMAKE | |
5321 | fi | |
5305be7e | 5322 | else |
1c710c3c | 5323 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5324 | fi |
5325 | ||
5213506e RW |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5327 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
22e05272 | 5328 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5329 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5330 | else |
5331 | cat >conftest.adb <<EOF | |
5332 | procedure conftest is begin null; end conftest; | |
5333 | EOF | |
5334 | acx_cv_cc_gcc_supports_ada=no | |
5335 | # There is a bug in old released versions of GCC which causes the | |
5336 | # driver to exit successfully when the appropriate language module | |
5337 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5338 | # Therefore we must check for the error message as well as an | |
5339 | # unsuccessful exit. | |
1db673ca RO |
5340 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5341 | # given a .adb file, but produce no object file. So we must check | |
5342 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5343 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5344 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5345 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5346 | fi |
5347 | rm -f conftest.* | |
5348 | fi | |
5213506e RW |
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5350 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5351 | |
7cb62ef1 | 5352 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5353 | have_gnat=yes |
5354 | else | |
5355 | have_gnat=no | |
5356 | fi | |
5357 | ||
5213506e RW |
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5359 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5360 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5361 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5362 | else |
5363 | echo abfoo >t1 | |
5364 | echo cdfoo >t2 | |
b55e6680 | 5365 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5366 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5367 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5368 | : | |
5369 | else | |
5370 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5371 | fi | |
5372 | fi | |
a76494aa PB |
5373 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5374 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5375 | : |
a76494aa PB |
5376 | else |
5377 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5378 | fi | |
5379 | fi | |
5380 | rm t1 t2 | |
5381 | ||
5382 | fi | |
5213506e RW |
5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5384 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5385 | do_compare="$gcc_cv_prog_cmp_skip" |
5386 | ||
5387 | ||
55ffb5ed | 5388 | |
ff3ac0f4 ILT |
5389 | # Check whether --enable-bootstrap was given. |
5390 | if test "${enable_bootstrap+set}" = set; then : | |
5391 | enableval=$enable_bootstrap; | |
5392 | else | |
5393 | enable_bootstrap=default | |
5394 | fi | |
5395 | ||
5396 | ||
5397 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5398 | if test -r $srcdir/gcc/configure; then |
5399 | have_compiler=yes | |
5400 | else | |
5401 | have_compiler=no | |
5402 | fi | |
ff3ac0f4 ILT |
5403 | |
5404 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5405 | *:*:*:no) ;; | |
5406 | ||
5407 | # Default behavior. Enable bootstrap if we have a compiler | |
5408 | # and we are in a native configuration. | |
5409 | yes:$build:$build:default) | |
5410 | enable_bootstrap=yes ;; | |
5411 | ||
5412 | *:*:*:default) | |
5413 | enable_bootstrap=no ;; | |
5414 | ||
5415 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5416 | yes:$build:$build:yes) | |
5417 | ;; | |
5418 | ||
5419 | # Other configurations, but we have a compiler. Assume the user knows | |
5420 | # what he's doing. | |
5421 | yes:*:*:yes) | |
5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5423 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5424 | ;; | |
5425 | ||
5426 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5427 | no:*:*:yes) | |
22e05272 | 5428 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5429 | |
5430 | # Fail if wrong command line | |
5431 | *) | |
22e05272 | 5432 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5433 | ;; |
5434 | esac | |
5435 | ||
46070488 JM |
5436 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5437 | # C++98 compiler can still start the bootstrap. | |
5438 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
8ca528d9 | 5439 | CXX="$CXX -std=gnu++98" |
46070488 JM |
5440 | fi |
5441 | ||
592c90ff KG |
5442 | # Used for setting $lt_cv_objdir |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5444 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 5445 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
5446 | $as_echo_n "(cached) " >&6 |
5447 | else | |
5448 | rm -f .libs 2>/dev/null | |
5449 | mkdir .libs 2>/dev/null | |
5450 | if test -d .libs; then | |
5451 | lt_cv_objdir=.libs | |
5452 | else | |
5453 | # MS-DOS does not allow filenames that begin with a dot. | |
5454 | lt_cv_objdir=_libs | |
5455 | fi | |
5456 | rmdir .libs 2>/dev/null | |
5457 | fi | |
5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5459 | $as_echo "$lt_cv_objdir" >&6; } | |
5460 | objdir=$lt_cv_objdir | |
5461 | ||
5462 | ||
5463 | ||
5464 | ||
5465 | ||
5466 | cat >>confdefs.h <<_ACEOF | |
5467 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5468 | _ACEOF | |
5469 | ||
5470 | ||
5471 | ||
acd26225 | 5472 | # Check for GMP, MPFR and MPC |
3a5729ea | 5473 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5474 | gmpinc= |
e69bf64b | 5475 | have_gmp=no |
acd26225 KG |
5476 | |
5477 | # Specify a location for mpc | |
5478 | # check for this first so it ends up on the link line before mpfr. | |
5479 | ||
5213506e RW |
5480 | # Check whether --with-mpc was given. |
5481 | if test "${with_mpc+set}" = set; then : | |
5482 | withval=$with_mpc; | |
5483 | fi | |
acd26225 | 5484 | |
acd26225 | 5485 | |
9965e3cd | 5486 | # Check whether --with-mpc-include was given. |
5213506e RW |
5487 | if test "${with_mpc_include+set}" = set; then : |
5488 | withval=$with_mpc_include; | |
5489 | fi | |
acd26225 | 5490 | |
acd26225 | 5491 | |
9965e3cd | 5492 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5493 | if test "${with_mpc_lib+set}" = set; then : |
5494 | withval=$with_mpc_lib; | |
5495 | fi | |
acd26225 | 5496 | |
acd26225 KG |
5497 | |
5498 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5499 | gmplibs="-L$with_mpc/lib $gmplibs" |
5500 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5501 | fi |
5502 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5503 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5504 | fi |
5505 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5506 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5507 | fi |
5508 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5509 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5510 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5511 | # Do not test the mpc version. Assume that it is sufficient, since |
5512 | # it is in the source tree, and the library has not been built yet | |
5513 | # but it would be included on the link line in the version check below | |
5514 | # hence making the test fail. | |
3a5729ea | 5515 | have_gmp=yes |
acd26225 | 5516 | fi |
e69bf64b | 5517 | |
bebf829d PB |
5518 | # Specify a location for mpfr |
5519 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5520 | |
5213506e RW |
5521 | # Check whether --with-mpfr-dir was given. |
5522 | if test "${with_mpfr_dir+set}" = set; then : | |
22e05272 | 5523 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
5213506e RW |
5524 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5525 | fi | |
5526 | ||
bebf829d PB |
5527 | |
5528 | ||
5213506e RW |
5529 | # Check whether --with-mpfr was given. |
5530 | if test "${with_mpfr+set}" = set; then : | |
5531 | withval=$with_mpfr; | |
5532 | fi | |
1c710c3c | 5533 | |
bebf829d | 5534 | |
9965e3cd | 5535 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5536 | if test "${with_mpfr_include+set}" = set; then : |
5537 | withval=$with_mpfr_include; | |
5538 | fi | |
1c710c3c | 5539 | |
8a877c9c | 5540 | |
9965e3cd | 5541 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5542 | if test "${with_mpfr_lib+set}" = set; then : |
5543 | withval=$with_mpfr_lib; | |
5544 | fi | |
8a877c9c | 5545 | |
bebf829d PB |
5546 | |
5547 | if test "x$with_mpfr" != x; then | |
5548 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5549 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5550 | fi |
8a877c9c | 5551 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5552 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5553 | fi |
5554 | if test "x$with_mpfr_lib" != x; then | |
5555 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5556 | fi | |
e69bf64b | 5557 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
5558 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5559 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 5560 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 5561 | fi |
00f35794 BE |
5562 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5563 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5564 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
5565 | # Do not test the mpfr version. Assume that it is sufficient, since |
5566 | # it is in the source tree, and the library has not been built yet | |
5567 | # but it would be included on the link line in the version check below | |
5568 | # hence making the test fail. | |
5569 | have_gmp=yes | |
5570 | fi | |
bebf829d | 5571 | |
6de9cd9a | 5572 | # Specify a location for gmp |
1c710c3c | 5573 | |
5213506e RW |
5574 | # Check whether --with-gmp-dir was given. |
5575 | if test "${with_gmp_dir+set}" = set; then : | |
22e05272 | 5576 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
5213506e RW |
5577 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5578 | fi | |
5579 | ||
6de9cd9a | 5580 | |
6de9cd9a | 5581 | |
5213506e RW |
5582 | # Check whether --with-gmp was given. |
5583 | if test "${with_gmp+set}" = set; then : | |
5584 | withval=$with_gmp; | |
5585 | fi | |
1c710c3c | 5586 | |
6de9cd9a | 5587 | |
9965e3cd | 5588 | # Check whether --with-gmp-include was given. |
5213506e RW |
5589 | if test "${with_gmp_include+set}" = set; then : |
5590 | withval=$with_gmp_include; | |
5591 | fi | |
1c710c3c | 5592 | |
8a877c9c | 5593 | |
9965e3cd | 5594 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5595 | if test "${with_gmp_lib+set}" = set; then : |
5596 | withval=$with_gmp_lib; | |
5597 | fi | |
8a877c9c KG |
5598 | |
5599 | ||
6de9cd9a | 5600 | |
bebf829d PB |
5601 | if test "x$with_gmp" != x; then |
5602 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5603 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5604 | fi |
8a877c9c KG |
5605 | if test "x$with_gmp_include" != x; then |
5606 | gmpinc="-I$with_gmp_include $gmpinc" | |
5607 | fi | |
5608 | if test "x$with_gmp_lib" != x; then | |
5609 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5610 | fi | |
e69bf64b | 5611 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5612 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5613 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5614 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5615 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 5616 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
5617 | # Do not test the gmp version. Assume that it is sufficient, since |
5618 | # it is in the source tree, and the library has not been built yet | |
5619 | # but it would be included on the link line in the version check below | |
5620 | # hence making the test fail. | |
5621 | have_gmp=yes | |
5622 | fi | |
6de9cd9a | 5623 | |
d943d7c4 | 5624 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5625 | have_gmp=yes |
5626 | saved_CFLAGS="$CFLAGS" | |
5627 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5628 | # Check for the recommended and required versions of GMP. |
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5630 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5631 | |
5632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5633 | /* end confdefs.h. */ |
5634 | #include "gmp.h" | |
5635 | int | |
5636 | main () | |
5637 | { | |
5638 | ||
5639 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5640 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 5641 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
5642 | choke me |
5643 | #endif | |
5644 | ||
5645 | ; | |
5646 | return 0; | |
5647 | } | |
5648 | _ACEOF | |
5649 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5651 | /* end confdefs.h. */ |
362c6d2f | 5652 | #include <gmp.h> |
1c710c3c DJ |
5653 | int |
5654 | main () | |
5655 | { | |
6de9cd9a | 5656 | |
362c6d2f KG |
5657 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5658 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5659 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5660 | choke me |
5661 | #endif | |
1c710c3c DJ |
5662 | |
5663 | ; | |
5664 | return 0; | |
5665 | } | |
5666 | _ACEOF | |
5213506e RW |
5667 | if ac_fn_c_try_compile "$LINENO"; then : |
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5669 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5670 | else |
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5672 | $as_echo "buggy but acceptable" >&6; } | |
5673 | fi | |
5674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5675 | else |
5213506e RW |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5677 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5678 | fi |
5213506e | 5679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5680 | |
acd26225 | 5681 | # If we have GMP, check the MPFR version. |
e69bf64b | 5682 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5683 | # Check for the recommended and required versions of MPFR. |
5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5685 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5687 | /* end confdefs.h. */ |
70ec446f | 5688 | #include <gmp.h> |
e69bf64b | 5689 | #include <mpfr.h> |
1c710c3c DJ |
5690 | int |
5691 | main () | |
5692 | { | |
e48d66a9 | 5693 | |
f7d6bc01 | 5694 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
e69bf64b PB |
5695 | choke me |
5696 | #endif | |
1c710c3c DJ |
5697 | |
5698 | ; | |
5699 | return 0; | |
5700 | } | |
5701 | _ACEOF | |
5213506e RW |
5702 | if ac_fn_c_try_compile "$LINENO"; then : |
5703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5704 | /* end confdefs.h. */ |
a3993f33 | 5705 | #include <gmp.h> |
e69bf64b | 5706 | #include <mpfr.h> |
1c710c3c DJ |
5707 | int |
5708 | main () | |
5709 | { | |
a3993f33 | 5710 | |
362c6d2f | 5711 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
e69bf64b PB |
5712 | choke me |
5713 | #endif | |
acd26225 KG |
5714 | |
5715 | ; | |
5716 | return 0; | |
5717 | } | |
5718 | _ACEOF | |
5213506e RW |
5719 | if ac_fn_c_try_compile "$LINENO"; then : |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5721 | $as_echo "yes" >&6; } | |
acd26225 | 5722 | else |
5213506e RW |
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5724 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5725 | fi |
5213506e | 5726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5727 | else |
5213506e RW |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5729 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5730 | fi |
5213506e | 5731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5732 | fi |
5733 | ||
5734 | # Check for the MPC header version. | |
3a5729ea | 5735 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5736 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5738 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5740 | /* end confdefs.h. */ |
5741 | #include <mpc.h> | |
5742 | int | |
5743 | main () | |
5744 | { | |
5745 | ||
362c6d2f KG |
5746 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5747 | choke me | |
5748 | #endif | |
5749 | ||
5750 | ; | |
5751 | return 0; | |
5752 | } | |
5753 | _ACEOF | |
5754 | if ac_fn_c_try_compile "$LINENO"; then : | |
5755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5756 | /* end confdefs.h. */ | |
5757 | #include <mpc.h> | |
5758 | int | |
5759 | main () | |
5760 | { | |
5761 | ||
5762 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5763 | choke me |
5764 | #endif | |
5765 | ||
5766 | ; | |
5767 | return 0; | |
5768 | } | |
5769 | _ACEOF | |
5213506e RW |
5770 | if ac_fn_c_try_compile "$LINENO"; then : |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5772 | $as_echo "yes" >&6; } |
362c6d2f KG |
5773 | else |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5775 | $as_echo "buggy but acceptable" >&6; } | |
5776 | fi | |
5777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5778 | else |
5213506e | 5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5780 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5781 | fi |
5213506e | 5782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5783 | fi |
5784 | ||
5785 | # Now check the MPFR library. | |
5786 | if test x"$have_gmp" = xyes; then | |
5787 | saved_LIBS="$LIBS" | |
5788 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5790 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5792 | /* end confdefs.h. */ |
3a5729ea | 5793 | #include <mpc.h> |
acd26225 KG |
5794 | int |
5795 | main () | |
5796 | { | |
5797 | ||
5798 | mpfr_t n; | |
5799 | mpfr_t x; | |
3a5729ea | 5800 | mpc_t c; |
acd26225 KG |
5801 | int t; |
5802 | mpfr_init (n); | |
5803 | mpfr_init (x); | |
5804 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5805 | mpfr_erfc (n, x, GMP_RNDN); | |
5806 | mpfr_subnormalize (x, t, GMP_RNDN); | |
3a5729ea KG |
5807 | mpfr_clear(n); |
5808 | mpfr_clear(x); | |
5809 | mpc_init2 (c, 53); | |
5810 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5811 | mpc_cosh (c, c, MPC_RNDNN); | |
5812 | mpc_pow (c, c, c, MPC_RNDNN); | |
5813 | mpc_acosh (c, c, MPC_RNDNN); | |
5814 | mpc_clear (c); | |
1c710c3c DJ |
5815 | |
5816 | ; | |
5817 | return 0; | |
5818 | } | |
5819 | _ACEOF | |
5213506e RW |
5820 | if ac_fn_c_try_link "$LINENO"; then : |
5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5822 | $as_echo "yes" >&6; } | |
1c710c3c | 5823 | else |
5213506e RW |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5825 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5826 | fi |
5213506e RW |
5827 | rm -f core conftest.err conftest.$ac_objext \ |
5828 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5829 | LIBS="$saved_LIBS" |
5830 | fi | |
5831 | ||
e69bf64b | 5832 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5833 | |
362c6d2f KG |
5834 | # The library versions listed in the error message below should match |
5835 | # the HARD-minimums enforced above. | |
e69bf64b | 5836 | if test x$have_gmp != xyes; then |
22e05272 | 5837 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
3a5729ea KG |
5838 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5839 | their locations. Source code for these libraries can be found at | |
5840 | their respective hosting sites as well as at | |
5841 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5842 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5843 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5844 | make sure that you have installed both the libraries and the header | |
5845 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5846 | fi |
70ec446f KG |
5847 | fi |
5848 | ||
acd26225 KG |
5849 | # Flags needed for both GMP, MPFR and/or MPC. |
5850 | ||
5851 | ||
6de9cd9a DN |
5852 | |
5853 | ||
5854 | ||
9e3eba15 | 5855 | |
0ff2d841 | 5856 | |
0b21f5d3 | 5857 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 5858 | |
0b21f5d3 EB |
5859 | # Check whether --with-stage1-libs was given. |
5860 | if test "${with_stage1_libs+set}" = set; then : | |
5861 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5862 | stage1_libs= | |
00020c16 | 5863 | else |
0b21f5d3 | 5864 | stage1_libs=$withval |
00020c16 ILT |
5865 | fi |
5866 | else | |
5dc85f7e | 5867 | stage1_libs= |
5213506e RW |
5868 | fi |
5869 | ||
00020c16 ILT |
5870 | |
5871 | ||
0b21f5d3 | 5872 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 5873 | |
0b21f5d3 EB |
5874 | # Check whether --with-stage1-ldflags was given. |
5875 | if test "${with_stage1_ldflags+set}" = set; then : | |
5876 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5877 | stage1_ldflags= | |
00020c16 | 5878 | else |
0b21f5d3 | 5879 | stage1_ldflags=$withval |
00020c16 ILT |
5880 | fi |
5881 | else | |
0b21f5d3 EB |
5882 | stage1_ldflags= |
5883 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5884 | # if supported. But if the user explicitly specified the libraries to use, | |
5885 | # trust that they are doing what they want. | |
5886 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5887 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5888 | fi | |
5213506e RW |
5889 | fi |
5890 | ||
00020c16 ILT |
5891 | |
5892 | ||
5dc85f7e | 5893 | # Libraries to use for stage2 and later builds. |
00020c16 | 5894 | |
5213506e RW |
5895 | # Check whether --with-boot-libs was given. |
5896 | if test "${with_boot_libs+set}" = set; then : | |
5897 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
5898 | poststage1_libs= |
5899 | else | |
5900 | poststage1_libs=$withval | |
5901 | fi | |
5902 | else | |
5dc85f7e | 5903 | poststage1_libs= |
5213506e RW |
5904 | fi |
5905 | ||
00020c16 ILT |
5906 | |
5907 | ||
ed2eaa9f ILT |
5908 | # Linker flags to use for stage2 and later builds. |
5909 | ||
5910 | # Check whether --with-boot-ldflags was given. | |
5911 | if test "${with_boot_ldflags+set}" = set; then : | |
5912 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5913 | poststage1_ldflags= | |
5914 | else | |
5915 | poststage1_ldflags=$withval | |
5916 | fi | |
5917 | else | |
5918 | poststage1_ldflags= | |
bec93d73 ILT |
5919 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5920 | # statically. But if the user explicitly specified the libraries to | |
5921 | # use, trust that they are doing what they want. | |
5922 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
5923 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5924 | fi | |
5925 | fi | |
5926 | ||
5927 | ||
5928 | ||
e357a5e0 | 5929 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 5930 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
5931 | |
5932 | ||
33ad93b9 RG |
5933 | # Check whether --with-isl was given. |
5934 | if test "${with_isl+set}" = set; then : | |
5935 | withval=$with_isl; | |
5213506e | 5936 | fi |
f8bf9252 | 5937 | |
f8bf9252 | 5938 | |
eae1a5d4 | 5939 | # Treat --without-isl as a request to disable |
625afa23 | 5940 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 5941 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 5942 | # Check for isl |
625afa23 RG |
5943 | |
5944 | ||
33ad93b9 RG |
5945 | # Check whether --with-isl-include was given. |
5946 | if test "${with_isl_include+set}" = set; then : | |
5947 | withval=$with_isl_include; | |
5213506e RW |
5948 | fi |
5949 | ||
f8bf9252 | 5950 | |
33ad93b9 RG |
5951 | # Check whether --with-isl-lib was given. |
5952 | if test "${with_isl_lib+set}" = set; then : | |
5953 | withval=$with_isl_lib; | |
5213506e | 5954 | fi |
f8bf9252 | 5955 | |
f8bf9252 | 5956 | |
33ad93b9 RG |
5957 | # Check whether --enable-isl-version-check was given. |
5958 | if test "${enable_isl_version_check+set}" = set; then : | |
5959 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5960 | else | |
5961 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
5962 | fi |
5963 | ||
5964 | ||
33ad93b9 RG |
5965 | # Initialize isllibs and islinc. |
5966 | case $with_isl in | |
5967 | no) | |
5968 | isllibs= | |
5969 | islinc= | |
5970 | ;; | |
5971 | "" | yes) | |
5972 | ;; | |
5973 | *) | |
5974 | isllibs="-L$with_isl/lib" | |
5975 | islinc="-I$with_isl/include" | |
5976 | ;; | |
5977 | esac | |
5978 | if test "x${with_isl_include}" != x ; then | |
5979 | islinc="-I$with_isl_include" | |
5980 | fi | |
5981 | if test "x${with_isl_lib}" != x; then | |
5982 | isllibs="-L$with_isl_lib" | |
5983 | fi | |
5984 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5985 | && test -d ${srcdir}/isl; then | |
5986 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5987 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5988 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5990 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 5991 | fi |
7d32a440 | 5992 | |
eae1a5d4 RG |
5993 | isllibs="${isllibs} -lisl" |
5994 | ||
7d32a440 | 5995 | |
7d32a440 | 5996 | |
9847828b RB |
5997 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5998 | _isl_saved_CFLAGS=$CFLAGS | |
5999 | _isl_saved_LDFLAGS=$LDFLAGS | |
6000 | _isl_saved_LIBS=$LIBS | |
6001 | ||
6002 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
6003 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6004 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 6005 | |
f877b3ad RB |
6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
6007 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 6008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 6009 | /* end confdefs.h. */ |
f877b3ad | 6010 | #include <isl/schedule.h> |
622dbadf BC |
6011 | int |
6012 | main () | |
6013 | { | |
f877b3ad | 6014 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
6015 | ; |
6016 | return 0; | |
6017 | } | |
6018 | _ACEOF | |
6019 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 6020 | gcc_cv_isl=yes |
622dbadf BC |
6021 | else |
6022 | gcc_cv_isl=no | |
6023 | fi | |
6024 | rm -f core conftest.err conftest.$ac_objext \ | |
6025 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6027 | $as_echo "$gcc_cv_isl" >&6; } | |
6028 | ||
560d18d3 | 6029 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
6031 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
6032 | fi |
6033 | ||
9847828b RB |
6034 | CFLAGS=$_isl_saved_CFLAGS |
6035 | LDFLAGS=$_isl_saved_LDFLAGS | |
6036 | LIBS=$_isl_saved_LIBS | |
6037 | fi | |
6038 | ||
6039 | ||
f8bf9252 | 6040 | |
f8bf9252 | 6041 | |
33ad93b9 RG |
6042 | |
6043 | ||
33ad93b9 RG |
6044 | if test "x${with_isl}" = xno; then |
6045 | graphite_requested=no | |
6046 | elif test "x${with_isl}" != x \ | |
6047 | || test "x${with_isl_include}" != x \ | |
6048 | || test "x${with_isl_lib}" != x ; then | |
6049 | graphite_requested=yes | |
6050 | else | |
6051 | graphite_requested=no | |
7d32a440 | 6052 | fi |
d789184e | 6053 | |
d789184e SP |
6054 | |
6055 | ||
33ad93b9 RG |
6056 | if test "${gcc_cv_isl}" = no ; then |
6057 | isllibs= | |
6058 | islinc= | |
6059 | fi | |
6060 | ||
6061 | if test "${graphite_requested}" = yes \ | |
6062 | && test "x${isllibs}" = x \ | |
6063 | && test "x${islinc}" = x ; then | |
f8bf9252 | 6064 | |
22e05272 | 6065 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 6066 | fi |
f8bf9252 | 6067 | |
d32ef397 | 6068 | |
d32ef397 AS |
6069 | fi |
6070 | ||
e357a5e0 | 6071 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 6072 | if test "x$with_isl" = xno || |
625afa23 | 6073 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 6074 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 6075 | islinc= |
32d024bf RG |
6076 | fi |
6077 | ||
625afa23 RG |
6078 | |
6079 | ||
6080 | ||
d7f09764 DN |
6081 | # Check for LTO support. |
6082 | # Check whether --enable-lto was given. | |
6083 | if test "${enable_lto+set}" = set; then : | |
6084 | enableval=$enable_lto; enable_lto=$enableval | |
6085 | else | |
6086 | enable_lto=yes; default_enable_lto=yes | |
6087 | fi | |
6088 | ||
6089 | ||
7413962d | 6090 | |
9a02962b DK |
6091 | |
6092 | ||
6093 | target_elf=no | |
6094 | case $target in | |
6095 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 6096 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 6097 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 6098 | nvptx-*-none) |
9a02962b DK |
6099 | target_elf=no |
6100 | ;; | |
6101 | *) | |
6102 | target_elf=yes | |
6103 | ;; | |
6104 | esac | |
6105 | ||
6106 | if test $target_elf = yes; then : | |
48215350 DK |
6107 | # ELF platforms build the lto-plugin always. |
6108 | build_lto_plugin=yes | |
9a02962b | 6109 | |
9a02962b DK |
6110 | else |
6111 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 6112 | case $target in |
deeba76a | 6113 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 6114 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
6115 | *) enable_lto=no ;; |
6116 | esac | |
9a02962b | 6117 | else |
db50fe7d IS |
6118 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6119 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
6120 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6121 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6122 | # -flto it won't be needed until after installation anyway. | |
6123 | case $target in | |
9e530bcd | 6124 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 6125 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 6126 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
6127 | fi |
6128 | ;; | |
6129 | esac | |
6130 | fi | |
1cd0b716 | 6131 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 6132 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 6133 | case $target in |
48215350 | 6134 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
6135 | *) ;; |
6136 | esac | |
48215350 | 6137 | |
9a02962b DK |
6138 | fi |
6139 | ||
d7f09764 | 6140 | |
45b3824d TS |
6141 | # Check whether --enable-linker-plugin-configure-flags was given. |
6142 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6143 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6144 | else | |
6145 | extra_linker_plugin_configure_flags= | |
6146 | fi | |
6147 | ||
6148 | ||
6149 | # Check whether --enable-linker-plugin-flags was given. | |
6150 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6151 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6152 | else | |
6153 | extra_linker_plugin_flags= | |
6154 | fi | |
6155 | ||
6156 | ||
6157 | ||
cdfee50a NS |
6158 | # Enable --enable-host-shared. |
6159 | # Checked early to determine whether jit is an 'all' language | |
6160 | # Check whether --enable-host-shared was given. | |
6161 | if test "${enable_host_shared+set}" = set; then : | |
6162 | enableval=$enable_host_shared; host_shared=$enableval | |
6163 | else | |
6164 | host_shared=no | |
6165 | fi | |
6166 | ||
6167 | ||
f8bf9252 | 6168 | |
0823efed | 6169 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 6170 | stage1_languages=,c, |
2805b53a | 6171 | |
00020c16 | 6172 | # Target libraries that we bootstrap. |
ad1e5170 | 6173 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 6174 | |
55ffb5ed NN |
6175 | # Figure out what language subdirectories are present. |
6176 | # Look if the user specified --enable-languages="..."; if not, use | |
6177 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6178 | # go away some day. | |
6179 | # NB: embedded tabs in this IF block -- do not untabify | |
6180 | if test -d ${srcdir}/gcc; then | |
6181 | if test x"${enable_languages+set}" != xset; then | |
6182 | if test x"${LANGUAGES+set}" = xset; then | |
6183 | enable_languages="${LANGUAGES}" | |
6b1786aa | 6184 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 6185 | else |
cdfee50a | 6186 | enable_languages=default |
55ffb5ed NN |
6187 | fi |
6188 | else | |
6189 | if test x"${enable_languages}" = x || | |
6190 | test x"${enable_languages}" = xyes; | |
6191 | then | |
6b1786aa | 6192 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
6193 | exit 1 |
6194 | fi | |
6195 | fi | |
6196 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6197 | ||
7f26dfa3 FXC |
6198 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6199 | # and make the substitution. | |
6200 | case ,${enable_languages}, in | |
6201 | *,f95,*) | |
6b1786aa | 6202 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
6203 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6204 | ;; | |
6205 | esac | |
6206 | ||
0823efed DN |
6207 | # If bootstrapping, C++ must be enabled. |
6208 | case ",$enable_languages,:$enable_bootstrap" in | |
6209 | *,c++,*:*) ;; | |
6210 | *:yes) | |
ff3ac0f4 ILT |
6211 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6212 | enable_languages="${enable_languages},c++" | |
6213 | else | |
22e05272 | 6214 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
6215 | fi |
6216 | ;; | |
6217 | esac | |
6218 | ||
55ffb5ed NN |
6219 | # First scan to see if an enabled language requires some other language. |
6220 | # We assume that a given config-lang.in will list all the language | |
6221 | # front ends it requires, even if some are required indirectly. | |
6222 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6223 | case ${lang_frag} in | |
6224 | ..) ;; | |
6225 | # The odd quoting in the next line works around | |
6226 | # an apparent bug in bash 1.12 on linux. | |
6227 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6228 | *) | |
69ecd18f ILT |
6229 | # From the config-lang.in, get $language, $lang_requires, and |
6230 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6231 | language= |
6232 | lang_requires= | |
69ecd18f | 6233 | lang_requires_boot_languages= |
d4360477 NS |
6234 | # set srcdir during sourcing lang_frag to the gcc dir. |
6235 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6236 | # polutes this shell | |
6237 | saved_srcdir=${srcdir} | |
6238 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6239 | srcdir=${saved_srcdir} | |
69ecd18f | 6240 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6241 | case ,${enable_languages}, in |
6242 | *,$other,*) ;; | |
cdfee50a | 6243 | *,default,*) ;; |
55ffb5ed NN |
6244 | *,all,*) ;; |
6245 | *,$language,*) | |
6246 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6247 | enable_languages="${enable_languages},${other}" | |
6248 | ;; | |
6249 | esac | |
6250 | done | |
69ecd18f ILT |
6251 | for other in ${lang_requires_boot_languages} ; do |
6252 | if test "$other" != "c"; then | |
6253 | case ,${enable_stage1_languages}, in | |
6254 | *,$other,*) ;; | |
cdfee50a | 6255 | *,default,*) ;; |
69ecd18f ILT |
6256 | *,all,*) ;; |
6257 | *) | |
6258 | case ,${enable_languages}, in | |
6259 | *,$language,*) | |
6260 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6261 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6262 | ;; | |
6263 | esac | |
6264 | ;; | |
6265 | esac | |
6266 | fi | |
6267 | done | |
55ffb5ed NN |
6268 | ;; |
6269 | esac | |
6270 | done | |
6271 | ||
e1888513 | 6272 | new_enable_languages=,c, |
d7f09764 DN |
6273 | |
6274 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 6275 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
6276 | case ,${enable_languages}, in |
6277 | *,lto,*) ;; | |
6278 | *) enable_languages="${enable_languages},lto" ;; | |
6279 | esac | |
1cd0b716 | 6280 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 6281 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
6282 | fi |
6283 | fi | |
6284 | ||
426c1eb0 TS |
6285 | # If we're building an offloading compiler, add the LTO front end. |
6286 | if test x"$enable_as_accelerator_for" != x ; then | |
6287 | case ,${enable_languages}, in | |
6288 | *,lto,*) ;; | |
6289 | *) enable_languages="${enable_languages},lto" ;; | |
6290 | esac | |
6291 | fi | |
6292 | ||
cdfee50a | 6293 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6294 | potential_languages=,c, |
55ffb5ed | 6295 | |
4da3b0f8 ILT |
6296 | enabled_target_libs= |
6297 | disabled_target_libs= | |
6298 | ||
55ffb5ed NN |
6299 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6300 | case ${lang_frag} in | |
6301 | ..) ;; | |
6302 | # The odd quoting in the next line works around | |
6303 | # an apparent bug in bash 1.12 on linux. | |
6304 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6305 | *) | |
1c710c3c | 6306 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6307 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6308 | language= |
6309 | target_libs= | |
6310 | lang_dirs= | |
1546bb64 | 6311 | subdir_requires= |
e1888513 PB |
6312 | boot_language=no |
6313 | build_by_default=yes | |
d4360477 NS |
6314 | # set srcdir during sourcing. See above about save & restore |
6315 | saved_srcdir=${srcdir} | |
6316 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6317 | srcdir=${saved_srcdir} | |
e1888513 PB |
6318 | if test x${language} = x; then |
6319 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6320 | exit 1 | |
6321 | fi | |
6322 | ||
78767fd9 | 6323 | if test "$language" = "c++"; then |
0823efed | 6324 | boot_language=yes |
00020c16 ILT |
6325 | fi |
6326 | ||
178f875a | 6327 | add_this_lang=no |
cdfee50a NS |
6328 | # C is always enabled, so no need to add it again |
6329 | if test "$language" != "c"; then | |
6330 | case ,${enable_languages}, in | |
6331 | *,${language},*) | |
6332 | # Language was explicitly selected; include it | |
d4a10d0a | 6333 | add_this_lang=yes |
cdfee50a NS |
6334 | ;; |
6335 | *,all,*) | |
6336 | # All languages are enabled | |
6337 | add_this_lang=all | |
6338 | ;; | |
6339 | *,default,*) | |
6340 | # 'default' was selected, select it if it is a default language | |
178f875a | 6341 | add_this_lang=${build_by_default} |
cdfee50a NS |
6342 | ;; |
6343 | esac | |
6344 | fi | |
6de9cd9a | 6345 | |
1546bb64 | 6346 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6347 | for i in $subdir_requires; do |
b6348cb3 | 6348 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
6349 | case ${add_this_lang} in |
6350 | yes) | |
1546bb64 | 6351 | # Specifically requested language; tell them. |
22e05272 | 6352 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 6353 | ;; |
cdfee50a NS |
6354 | all) |
6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6356 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6357 | add_this_lang=unsupported | |
6358 | ;; | |
1546bb64 PB |
6359 | *) |
6360 | # Silently disable. | |
e1888513 | 6361 | add_this_lang=unsupported |
1546bb64 PB |
6362 | ;; |
6363 | esac | |
6364 | done | |
6365 | ||
e1888513 | 6366 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
6367 | case ${add_this_lang}:${language}:${have_gnat} in |
6368 | yes:ada:no) | |
e1888513 | 6369 | # Specifically requested language; tell them. |
22e05272 | 6370 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 6371 | ;; |
cdfee50a NS |
6372 | all:ada:no) |
6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6374 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6375 | add_this_lang=unsupported | |
6376 | ;; | |
e1888513 PB |
6377 | *:ada:no) |
6378 | # Silently disable. | |
6379 | add_this_lang=unsupported | |
6380 | ;; | |
6381 | esac | |
6382 | ||
cdfee50a NS |
6383 | # Disable jit if -enable-host-shared not specified |
6384 | case ${add_this_lang}:${language}:${host_shared} in | |
6385 | yes:jit:no) | |
6386 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 6387 | as_fn_error $? " |
cdfee50a NS |
6388 | Enabling language \"jit\" requires --enable-host-shared. |
6389 | ||
6390 | --enable-host-shared typically slows the rest of the compiler down by | |
6391 | a few %, so you must explicitly enable it. | |
6392 | ||
6393 | If you want to build both the jit and the regular compiler, it is often | |
6394 | best to do this via two separate configure/builds, in separate | |
6395 | directories, to avoid imposing the performance cost of | |
6396 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6397 | ;; | |
6398 | all:jit:no) | |
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6400 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6401 | add_this_lang=unsupported | |
6402 | ;; | |
6403 | *:jit:no) | |
6404 | # Silently disable. | |
6405 | add_this_lang=unsupported | |
6406 | ;; | |
6407 | esac | |
6408 | ||
6409 | # Disable a language that is unsupported by the target. | |
6410 | case "${add_this_lang}: $unsupported_languages " in | |
6411 | no:*) ;; | |
6412 | unsupported:*) ;; | |
6413 | *:*" $language "*) | |
6414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6415 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 6416 | add_this_lang=unsupported |
4fab7234 HPN |
6417 | ;; |
6418 | esac | |
6419 | ||
6de9cd9a | 6420 | case $add_this_lang in |
e1888513 | 6421 | unsupported) |
55ffb5ed | 6422 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6423 | disabled_target_libs="$disabled_target_libs $target_libs" |
6424 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6425 | ;; |
e1888513 PB |
6426 | no) |
6427 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6428 | disabled_target_libs="$disabled_target_libs $target_libs" |
6429 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6430 | potential_languages="${potential_languages}${language}," |
6431 | ;; | |
cdfee50a | 6432 | all|yes) |
e1888513 PB |
6433 | new_enable_languages="${new_enable_languages}${language}," |
6434 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6435 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6436 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6437 | case "${boot_language}:,$enable_stage1_languages," in |
6438 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6439 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6440 | case ",$stage1_languages," in |
6441 | *,$language,* | ,yes, | ,all,) ;; | |
6442 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6443 | esac | |
00020c16 ILT |
6444 | # We need to bootstrap any supporting libraries. |
6445 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6446 | ;; |
6447 | esac | |
6448 | ;; | |
55ffb5ed NN |
6449 | esac |
6450 | ;; | |
6451 | esac | |
6452 | done | |
6453 | ||
4da3b0f8 ILT |
6454 | # Add target libraries which are only needed for disabled languages |
6455 | # to noconfigdirs. | |
6456 | if test -n "$disabled_target_libs"; then | |
6457 | for dir in $disabled_target_libs; do | |
6458 | case " $enabled_target_libs " in | |
6459 | *" ${dir} "*) ;; | |
6460 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6461 | esac | |
6462 | done | |
6463 | fi | |
6464 | ||
5213506e RW |
6465 | # Check whether --enable-stage1-languages was given. |
6466 | if test "${enable_stage1_languages+set}" = set; then : | |
6467 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6468 | ,no,|,,) |
6469 | # Set it to something that will have no effect in the loop below | |
6470 | enable_stage1_languages=c ;; | |
6471 | ,yes,) | |
6472 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6473 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6474 | *,all,*) | |
6475 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6476 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6477 | esac | |
6478 | ||
6479 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6480 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6481 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6482 | case $potential_languages in | |
6483 | *,$i,*) | |
6484 | case $stage1_languages in | |
6485 | *,$i,*) ;; | |
6486 | *) stage1_languages="$stage1_languages$i," ;; | |
6487 | esac ;; | |
6488 | *) | |
6489 | case $missing_languages in | |
6490 | *,$i,*) ;; | |
6491 | *) missing_languages="$missing_languages$i," ;; | |
6492 | esac ;; | |
6493 | esac | |
6494 | done | |
5213506e RW |
6495 | fi |
6496 | ||
e1888513 PB |
6497 | |
6498 | # Remove leading/trailing commas that were added for simplicity | |
6499 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6500 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6501 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6502 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6503 | ||
55ffb5ed | 6504 | if test "x$missing_languages" != x; then |
22e05272 | 6505 | as_fn_error $? " |
0cf085e4 | 6506 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6507 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6508 | fi |
55ffb5ed NN |
6509 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6510 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6511 | enable_languages="$new_enable_languages" |
55ffb5ed | 6512 | fi |
e1888513 | 6513 | |
1c710c3c | 6514 | |
b2eaac4a | 6515 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6516 | fi |
6517 | ||
27079765 AH |
6518 | # Handle --disable-<component> generically. |
6519 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6520 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6521 | varname=`echo $dirname | sed -e s/+/_/g` |
6522 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6523 | noconfigdirs="$noconfigdirs $dir" |
6524 | fi | |
6525 | done | |
6526 | ||
43c40f3e RO |
6527 | # Check for Boehm's garbage collector |
6528 | # Check whether --enable-objc-gc was given. | |
6529 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
6530 | enableval=$enable_objc_gc; |
6531 | fi | |
6532 | ||
6533 | ||
6534 | # Check whether --with-target-bdw-gc was given. | |
6535 | if test "${with_target_bdw_gc+set}" = set; then : | |
6536 | withval=$with_target_bdw_gc; | |
6537 | fi | |
6538 | ||
6539 | ||
6540 | # Check whether --with-target-bdw-gc-include was given. | |
6541 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6542 | withval=$with_target_bdw_gc_include; | |
6543 | fi | |
6544 | ||
6545 | ||
6546 | # Check whether --with-target-bdw-gc-lib was given. | |
6547 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6548 | withval=$with_target_bdw_gc_lib; | |
6549 | fi | |
6550 | ||
6551 | ||
6552 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6554 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6555 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
6557 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
6558 | else |
6559 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 6560 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 6561 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 6562 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
6563 | else |
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6565 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
6566 | fi | |
6567 | fi | |
43c40f3e RO |
6568 | esac |
6569 | ||
5e9d6aa4 | 6570 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 6571 | case ,${enable_languages}, in |
1007a55c | 6572 | *,c++,*) |
5e9d6aa4 | 6573 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
6574 | case "${noconfigdirs}" in |
6575 | *target-libstdc++-v3*) | |
5e9d6aa4 | 6576 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
6577 | ;; |
6578 | *) ;; | |
6579 | esac | |
6580 | ;; | |
99776ebd | 6581 | *) |
5e9d6aa4 | 6582 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
6583 | ;; |
6584 | esac | |
6585 | ||
ee6a22df L |
6586 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6587 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6588 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6589 | ||
6590 | notsupp="" | |
6591 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6592 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6593 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6594 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6595 | if test -r $srcdir/$dirname/configure ; then | |
6596 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6597 | true | |
6598 | else | |
6599 | notsupp="$notsupp $dir" | |
6600 | fi | |
6601 | fi | |
6602 | fi | |
ee6a22df L |
6603 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6604 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6605 | if test -r $srcdir/$dirname/configure ; then | |
6606 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6607 | true | |
6608 | else | |
6609 | notsupp="$notsupp $dir" | |
6610 | fi | |
6611 | fi | |
6612 | fi | |
55ffb5ed NN |
6613 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6614 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6615 | if test -r $srcdir/$dirname/configure ; then | |
6616 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6617 | true | |
6618 | else | |
6619 | notsupp="$notsupp $dir" | |
6620 | fi | |
6621 | fi | |
6622 | fi | |
6623 | done | |
6624 | ||
55ffb5ed NN |
6625 | # Quietly strip out all directories which aren't configurable in this tree. |
6626 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6627 | # is now the case. | |
23f6b2f9 PB |
6628 | build_configdirs_all="$build_configdirs" |
6629 | build_configdirs= | |
6630 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6631 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6632 | if test -f ${srcdir}/$j/configure ; then |
6633 | build_configdirs="${build_configdirs} $i" | |
6634 | fi | |
6635 | done | |
6636 | ||
55ffb5ed NN |
6637 | configdirs_all="$configdirs" |
6638 | configdirs= | |
6639 | for i in ${configdirs_all} ; do | |
6640 | if test -f ${srcdir}/$i/configure ; then | |
6641 | configdirs="${configdirs} $i" | |
6642 | fi | |
6643 | done | |
23f6b2f9 | 6644 | |
55ffb5ed NN |
6645 | target_configdirs_all="$target_configdirs" |
6646 | target_configdirs= | |
6647 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6648 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6649 | if test -f ${srcdir}/$j/configure ; then |
6650 | target_configdirs="${target_configdirs} $i" | |
6651 | fi | |
6652 | done | |
6653 | ||
45b3824d TS |
6654 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6655 | # so we have to add it after the preceding checks. | |
6656 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6657 | then | |
6658 | case " $configdirs " in | |
6659 | *" libiberty "*) | |
6660 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6661 | configdirs="$configdirs libiberty-linker-plugin" | |
6662 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6663 | --with-libiberty=../libiberty-linker-plugin";; | |
6664 | *) | |
22e05272 | 6665 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
6666 | esac |
6667 | fi | |
6668 | ||
fca38047 TS |
6669 | # Sometimes we have special requirements for the host libiberty. |
6670 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 6671 | extra_host_zlib_configure_flags= |
fca38047 TS |
6672 | case " $configdirs " in |
6673 | *" lto-plugin "* | *" libcc1 "*) | |
6674 | # When these are to be built as shared libraries, the same applies to | |
6675 | # libiberty. | |
6676 | extra_host_libiberty_configure_flags=--enable-shared | |
6677 | ;; | |
1c01ebf6 L |
6678 | *" bfd "*) |
6679 | # When bfd is to be built as a shared library, the same applies to | |
6680 | # zlib. | |
6681 | if test "$enable_shared" = "yes"; then | |
6682 | extra_host_zlib_configure_flags=--enable-host-shared | |
6683 | fi | |
6684 | ;; | |
fca38047 TS |
6685 | esac |
6686 | ||
6687 | ||
1c01ebf6 | 6688 | |
55ffb5ed NN |
6689 | # Produce a warning message for the subdirs we can't configure. |
6690 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6691 | # FSF releases, it's important to let people know when their machine isn't | |
6692 | # supported by the one or two programs in a package. | |
6693 | ||
6694 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6695 | # If $appdirs is non-empty, at least one of those directories must still | |
6696 | # be configured, or we error out. (E.g., if the gas release supports a | |
6697 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6698 | # pretend that all is well.) | |
6699 | if test -n "$appdirs" ; then | |
6700 | for dir in $appdirs ; do | |
6701 | if test -r $dir/Makefile.in ; then | |
6702 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6703 | appdirs="" | |
6704 | break | |
6705 | fi | |
23f6b2f9 | 6706 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6707 | appdirs="" |
6708 | break | |
6709 | fi | |
6710 | fi | |
6711 | done | |
6712 | if test -n "$appdirs" ; then | |
6713 | echo "*** This configuration is not supported by this package." 1>&2 | |
6714 | exit 1 | |
6715 | fi | |
6716 | fi | |
6717 | # Okay, some application will build, or we don't care to check. Still | |
6718 | # notify of subdirs not getting built. | |
6719 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6720 | echo " ${notsupp}" 1>&2 | |
6721 | echo " (Any other directories should still work fine.)" 1>&2 | |
6722 | fi | |
6723 | ||
6724 | case "$host" in | |
6725 | *msdosdjgpp*) | |
6726 | enable_gdbtk=no ;; | |
6727 | esac | |
6728 | ||
c3a86da9 DJ |
6729 | # To find our prefix, in gcc_cv_tool_prefix. |
6730 | ||
6731 | # The user is always right. | |
6732 | if test "${PATH_SEPARATOR+set}" != set; then | |
6733 | echo "#! /bin/sh" >conf$$.sh | |
6734 | echo "exit 0" >>conf$$.sh | |
6735 | chmod +x conf$$.sh | |
6736 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6737 | PATH_SEPARATOR=';' | |
6738 | else | |
6739 | PATH_SEPARATOR=: | |
6740 | fi | |
6741 | rm -f conf$$.sh | |
6742 | fi | |
6743 | ||
6744 | ||
3c36aa6b JJ |
6745 | get_gcc_base_ver="cat" |
6746 | ||
6747 | # Check whether --with-gcc-major-version-only was given. | |
6748 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6749 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 6750 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
6751 | fi |
6752 | ||
6753 | fi | |
6754 | ||
6755 | ||
6756 | ||
6757 | ||
6758 | ||
c3a86da9 DJ |
6759 | |
6760 | if test "x$exec_prefix" = xNONE; then | |
6761 | if test "x$prefix" = xNONE; then | |
6762 | gcc_cv_tool_prefix=$ac_default_prefix | |
6763 | else | |
6764 | gcc_cv_tool_prefix=$prefix | |
6765 | fi | |
6766 | else | |
6767 | gcc_cv_tool_prefix=$exec_prefix | |
6768 | fi | |
6769 | ||
6770 | # If there is no compiler in the tree, use the PATH only. In any | |
6771 | # case, if there is no compiler in the tree nobody should use | |
6772 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6773 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
6774 | if test x$with_gcc_major_version_only = xyes ; then |
6775 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6776 | else | |
6777 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6778 | fi | |
c3a86da9 DJ |
6779 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6780 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6781 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6782 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6783 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6784 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6785 | else | |
6786 | gcc_cv_tool_dirs= | |
6787 | fi | |
6788 | ||
6789 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6790 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6791 | fi | |
6792 | ||
6793 | ||
6794 | ||
55ffb5ed NN |
6795 | copy_dirs= |
6796 | ||
1c710c3c | 6797 | |
5213506e RW |
6798 | # Check whether --with-build-sysroot was given. |
6799 | if test "${with_build_sysroot+set}" = set; then : | |
6800 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6801 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6802 | fi | |
6803 | else | |
6804 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6805 | fi |
526635cb MM |
6806 | |
6807 | ||
c8aea42c | 6808 | |
5213506e RW |
6809 | |
6810 | # Check whether --with-debug-prefix-map was given. | |
6811 | if test "${with_debug_prefix_map+set}" = set; then : | |
6812 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6813 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6814 | for debug_map in $withval; do | |
6815 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6816 | done | |
6817 | fi | |
6818 | else | |
6819 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6820 | fi |
6821 | ||
c8aea42c PB |
6822 | |
6823 | ||
1c8bd6a3 PB |
6824 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6825 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6826 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6827 | # We want to ensure that TARGET libraries (which we know are built with | |
6828 | # gcc) are built with "-O2 -g", so include those options when setting | |
6829 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6830 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6831 | if test "x${is_cross_compiler}" = xyes; then |
6832 | CFLAGS_FOR_TARGET="-g -O2" | |
6833 | else | |
6834 | CFLAGS_FOR_TARGET=$CFLAGS | |
6835 | case " $CFLAGS " in | |
6836 | *" -O2 "*) ;; | |
6837 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6838 | esac | |
6839 | case " $CFLAGS " in | |
6840 | *" -g "* | *" -g3 "*) ;; | |
6841 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6842 | esac | |
6843 | fi | |
1c8bd6a3 PB |
6844 | fi |
6845 | ||
6846 | ||
6847 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6848 | if test "x${is_cross_compiler}" = xyes; then |
6849 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6850 | else | |
6851 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6852 | case " $CXXFLAGS " in | |
6853 | *" -O2 "*) ;; | |
6854 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6855 | esac | |
6856 | case " $CXXFLAGS " in | |
6857 | *" -g "* | *" -g3 "*) ;; | |
6858 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6859 | esac | |
6860 | fi | |
1c8bd6a3 PB |
6861 | fi |
6862 | ||
6863 | ||
6f57bdf6 DK |
6864 | |
6865 | ||
55ffb5ed NN |
6866 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6867 | # the named directory are copied to $(tooldir)/sys-include. | |
6868 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6869 | if test x${is_cross_compiler} = xno ; then | |
6870 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6871 | exit 1 | |
6872 | fi | |
6873 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6874 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6875 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6876 | fi |
6877 | fi | |
6878 | ||
6879 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6880 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6881 | # are permitted. | |
6882 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6883 | if test x${is_cross_compiler} = xno ; then | |
6884 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6885 | exit 1 | |
6886 | fi | |
6887 | if test x"${with_libs}" != xyes ; then | |
6888 | # Copy the libraries in reverse order, so that files in the first named | |
6889 | # library override files in subsequent libraries. | |
c3a86da9 | 6890 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 6891 | for l in ${with_libs}; do |
1c710c3c | 6892 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
6893 | done |
6894 | fi | |
6895 | fi | |
6896 | ||
d7f09764 | 6897 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
6898 | # |
6899 | # This is done by determining whether or not the appropriate directory | |
6900 | # is available, and by checking whether or not specific configurations | |
6901 | # have requested that this magic not happen. | |
1c710c3c DJ |
6902 | # |
6903 | # The command line options always override the explicit settings in | |
6b1786aa | 6904 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 6905 | # |
1c710c3c | 6906 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 6907 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
6908 | # --without-gnu-ld options for the configure script. Similarly, if |
6909 | # the default is to use the included zlib and you don't want to do that, | |
6910 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
6911 | |
6912 | if test x${use_gnu_as} = x && | |
6913 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6914 | with_gnu_as=yes | |
6915 | extra_host_args="$extra_host_args --with-gnu-as" | |
6916 | fi | |
6917 | ||
6918 | if test x${use_gnu_ld} = x && | |
5afab7ad | 6919 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
6920 | with_gnu_ld=yes |
6921 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6922 | fi | |
6923 | ||
d7f09764 DN |
6924 | if test x${use_included_zlib} = x && |
6925 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6926 | : | |
6927 | else | |
6928 | with_system_zlib=yes | |
6929 | extra_host_args="$extra_host_args --with-system-zlib" | |
6930 | fi | |
6931 | ||
e8b05380 PB |
6932 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6933 | # can detect this case. | |
6934 | ||
6935 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6936 | with_newlib=yes | |
6937 | extra_host_args="$extra_host_args --with-newlib" | |
6938 | fi | |
6939 | ||
55ffb5ed NN |
6940 | # Handle ${copy_dirs} |
6941 | set fnord ${copy_dirs} | |
6942 | shift | |
6943 | while test $# != 0 ; do | |
6944 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6945 | : | |
6946 | else | |
6947 | echo Copying $1 to $2 | |
6948 | ||
6949 | # Use the install script to create the directory and all required | |
6950 | # parent directories. | |
6951 | if test -d $2 ; then | |
6952 | : | |
6953 | else | |
6954 | echo >config.temp | |
6955 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6956 | fi | |
6957 | ||
6958 | # Copy the directory, assuming we have tar. | |
6959 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6960 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6961 | ||
6962 | # It is the responsibility of the user to correctly adjust all | |
6963 | # symlinks. If somebody can figure out how to handle them correctly | |
6964 | # here, feel free to add the code. | |
6965 | ||
6966 | echo $1 > $2/COPIED | |
6967 | fi | |
6968 | shift; shift | |
6969 | done | |
6970 | ||
e8b05380 PB |
6971 | # Determine a target-dependent exec_prefix that the installed |
6972 | # gcc will search in. Keep this list sorted by triplet, with | |
6973 | # the *-*-osname triplets last. | |
6974 | md_exec_prefix= | |
6975 | case "${target}" in | |
30b74385 | 6976 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
6977 | md_exec_prefix=/dev/env/DJDIR/bin |
6978 | ;; | |
e8b05380 | 6979 | *-*-hpux* | \ |
e8b05380 | 6980 | *-*-nto-qnx* | \ |
6de66370 | 6981 | *-*-solaris2*) |
e8b05380 PB |
6982 | md_exec_prefix=/usr/ccs/bin |
6983 | ;; | |
6984 | esac | |
6985 | ||
671aa708 NN |
6986 | extra_arflags_for_target= |
6987 | extra_nmflags_for_target= | |
6988 | extra_ranlibflags_for_target= | |
6989 | target_makefile_frag=/dev/null | |
6990 | case "${target}" in | |
58e24147 AM |
6991 | spu-*-*) |
6992 | target_makefile_frag="config/mt-spu" | |
6993 | ;; | |
d896cc4d | 6994 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
6995 | target_makefile_frag="config/mt-sde" |
6996 | ;; | |
1ec3b87b RS |
6997 | mipsisa*-*-elfoabi*) |
6998 | target_makefile_frag="config/mt-mips-elfoabi" | |
6999 | ;; | |
08d0963a RS |
7000 | mips*-*-*linux* | mips*-*-gnu*) |
7001 | target_makefile_frag="config/mt-mips-gnu" | |
7002 | ;; | |
707f1839 SL |
7003 | nios2-*-elf*) |
7004 | target_makefile_frag="config/mt-nios2-elf" | |
7005 | ;; | |
76052545 EB |
7006 | *-*-linux-android*) |
7007 | target_makefile_frag="config/mt-android" | |
7008 | ;; | |
416ac4d4 | 7009 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 7010 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
7011 | ;; |
7012 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 7013 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
7014 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7015 | # harmless if we're using GNU nm or ar. | |
7016 | extra_arflags_for_target=" -X32_64" | |
7017 | extra_nmflags_for_target=" -B -X32_64" | |
7018 | ;; | |
671aa708 NN |
7019 | esac |
7020 | ||
7021 | alphaieee_frag=/dev/null | |
7022 | case $target in | |
7023 | alpha*-*-*) | |
7024 | # This just makes sure to use the -mieee option to build target libs. | |
7025 | # This should probably be set individually by each library. | |
7026 | alphaieee_frag="config/mt-alphaieee" | |
7027 | ;; | |
7028 | esac | |
7029 | ||
7030 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7031 | # the target libraries, similarly if it is not specified, use -Os | |
7032 | # on selected platforms. | |
7033 | ospace_frag=/dev/null | |
7034 | case "${enable_target_optspace}:${target}" in | |
7035 | yes:*) | |
7036 | ospace_frag="config/mt-ospace" | |
7037 | ;; | |
7038 | :d30v-*) | |
7039 | ospace_frag="config/mt-d30v" | |
7040 | ;; | |
d9063947 | 7041 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
7042 | ospace_frag="config/mt-ospace" |
7043 | ;; | |
7044 | no:* | :*) | |
7045 | ;; | |
7046 | *) | |
7047 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7048 | ;; | |
7049 | esac | |
7050 | ||
671aa708 NN |
7051 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7052 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 7053 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
7054 | build_tooldir=${tooldir} |
7055 | ||
671aa708 NN |
7056 | # Create a .gdbinit file which runs the one in srcdir |
7057 | # and tells GDB to look there for source files. | |
7058 | ||
7059 | if test -r ${srcdir}/.gdbinit ; then | |
7060 | case ${srcdir} in | |
7061 | .) ;; | |
7062 | *) cat > ./.gdbinit <<EOF | |
7063 | # ${NO_EDIT} | |
7064 | dir ${srcdir} | |
7065 | dir . | |
7066 | source ${srcdir}/.gdbinit | |
7067 | EOF | |
7068 | ;; | |
7069 | esac | |
7070 | fi | |
7071 | ||
671aa708 NN |
7072 | # Make sure that the compiler is able to generate an executable. If it |
7073 | # can't, we are probably in trouble. We don't care whether we can run the | |
7074 | # executable--we might be using a cross compiler--we only care whether it | |
7075 | # can be created. At this point the main configure script has set CC. | |
7076 | we_are_ok=no | |
7077 | echo "int main () { return 0; }" > conftest.c | |
7078 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7079 | if test $? = 0 ; then | |
7080 | if test -s conftest || test -s conftest.exe ; then | |
7081 | we_are_ok=yes | |
7082 | fi | |
1c710c3c | 7083 | fi |
671aa708 NN |
7084 | case $we_are_ok in |
7085 | no) | |
7086 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7087 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7088 | rm -f conftest* | |
7089 | exit 1 | |
7090 | ;; | |
7091 | esac | |
7092 | rm -f conftest* | |
7093 | ||
d89f0ad6 | 7094 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
7095 | case "${host}" in |
7096 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 7097 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 7098 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
7099 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7100 | esac | |
7101 | ||
d89f0ad6 AL |
7102 | # On systems where the dynamic library environment variable is PATH, |
7103 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
7104 | # built executables to PATH. | |
7105 | if test "$RPATH_ENVVAR" = PATH; then | |
7106 | GCC_SHLIB_SUBDIR=/shlib | |
7107 | else | |
7108 | GCC_SHLIB_SUBDIR= | |
7109 | fi | |
7110 | ||
beeda1d9 JJ |
7111 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7112 | case $enable_bootstrap in | |
7113 | yes) | |
7114 | bootstrap_suffix=bootstrap | |
7115 | BUILD_CONFIG=bootstrap-debug | |
7116 | ;; | |
7117 | no) | |
7118 | bootstrap_suffix=no-bootstrap | |
7119 | BUILD_CONFIG= | |
7120 | ;; | |
7121 | esac | |
7122 | ||
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7124 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7125 | ||
7126 | ||
7127 | # Check whether --with-build-config was given. | |
7128 | if test "${with_build_config+set}" = set; then : | |
7129 | withval=$with_build_config; case $with_build_config in | |
7130 | yes) with_build_config= ;; | |
7131 | no) with_build_config= BUILD_CONFIG= ;; | |
7132 | esac | |
7133 | fi | |
7134 | ||
7135 | ||
7136 | if test "x${with_build_config}" != x; then | |
7137 | BUILD_CONFIG=$with_build_config | |
7138 | else | |
7139 | case $BUILD_CONFIG in | |
7140 | bootstrap-debug) | |
7141 | if echo "int f (void) { return 0; }" > conftest.c && | |
7142 | ${CC} -c conftest.c && | |
7143 | mv conftest.o conftest.o.g0 && | |
7144 | ${CC} -c -g conftest.c && | |
7145 | mv conftest.o conftest.o.g && | |
7146 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7147 | : | |
7148 | else | |
7149 | BUILD_CONFIG= | |
7150 | fi | |
7151 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7152 | ;; | |
7153 | esac | |
7154 | fi | |
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7156 | $as_echo "$BUILD_CONFIG" >&6; } | |
7157 | ||
7158 | ||
7159 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7161 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7162 | # Check whether --enable-vtable-verify was given. | |
7163 | if test "${enable_vtable_verify+set}" = set; then : | |
7164 | enableval=$enable_vtable_verify; case "$enableval" in | |
7165 | yes) enable_vtable_verify=yes ;; | |
7166 | no) enable_vtable_verify=no ;; | |
7167 | *) enable_vtable_verify=no;; | |
7168 | esac | |
7169 | else | |
7170 | enable_vtable_verify=no | |
7171 | fi | |
7172 | ||
7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7174 | $as_echo "$enable_vtable_verify" >&6; } | |
7175 | ||
671aa708 NN |
7176 | # Record target_configdirs and the configure arguments for target and |
7177 | # build configuration in Makefile. | |
7178 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 7179 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 7180 | bootstrap_fixincludes=no |
671aa708 | 7181 | |
ad1e5170 JR |
7182 | # If we are building libgomp, bootstrap it. |
7183 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7184 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7185 | fi | |
7186 | ||
beeda1d9 JJ |
7187 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7188 | # or bootstrap-ubsan, bootstrap it. | |
7189 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7190 | case "$BUILD_CONFIG" in | |
7191 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7192 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
9e1c8fc1 | 7193 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
7194 | ;; |
7195 | esac | |
ac8701fe L |
7196 | fi |
7197 | ||
beeda1d9 JJ |
7198 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7199 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7200 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
7201 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7202 | fi | |
7203 | ||
671aa708 NN |
7204 | # Determine whether gdb needs tk/tcl or not. |
7205 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7206 | # and in that case we want gdb to be built without tk. Ugh! | |
7207 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7208 | # so we should be able to put the 'maybe's in unconditionally and | |
7209 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7210 | # 100% sure that that's safe though. | |
e914a571 | 7211 | |
b4f96efe | 7212 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
7213 | case "$enable_gdbtk" in |
7214 | no) | |
7215 | GDB_TK="" ;; | |
e914a571 AC |
7216 | yes) |
7217 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 7218 | *) |
e914a571 AC |
7219 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7220 | # distro. Eventually someone will fix this and move Insight, nee | |
7221 | # gdbtk to a separate directory. | |
7222 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7223 | GDB_TK="${gdb_tk}" | |
7224 | else | |
7225 | GDB_TK="" | |
7226 | fi | |
7227 | ;; | |
671aa708 | 7228 | esac |
ef9db8d5 DJ |
7229 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7230 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 7231 | |
60975492 | 7232 | # Strip out unwanted targets. |
8b87bb96 NN |
7233 | |
7234 | # While at that, we remove Makefiles if we were started for recursive | |
7235 | # configuration, so that the top-level Makefile reconfigures them, | |
7236 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 7237 | |
3e54529c RW |
7238 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7239 | # but now we're fixing up the Makefile ourselves with the additional | |
7240 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7241 | # extrasub-{build,host,target} not because there is any reason to split | |
7242 | # the substitutions up that way, but only to remain below the limit of | |
7243 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
7244 | |
7245 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7246 | # configure will not warn you at all. | |
8b87bb96 | 7247 | |
79cd2b23 RW |
7248 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7249 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7250 | yes:yes:*\ gold\ *:*) | |
22e05272 | 7251 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
7252 | ;; |
7253 | esac | |
7254 | ||
3e54529c | 7255 | extrasub_build= |
23f6b2f9 | 7256 | for module in ${build_configdirs} ; do |
5607edfd PB |
7257 | if test -z "${no_recursion}" \ |
7258 | && test -f ${build_subdir}/${module}/Makefile; then | |
7259 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7260 | rm -f ${build_subdir}/${module}/Makefile | |
7261 | fi | |
3e54529c | 7262 | extrasub_build="$extrasub_build |
5607edfd PB |
7263 | /^@if build-$module\$/d |
7264 | /^@endif build-$module\$/d | |
da34ca3f | 7265 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 7266 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
7267 | /^@endif build-$module-$bootstrap_suffix\$/d |
7268 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 7269 | done |
3e54529c | 7270 | extrasub_host= |
5607edfd | 7271 | for module in ${configdirs} ; do |
a6fbc1e2 | 7272 | if test -z "${no_recursion}"; then |
f063a9ed | 7273 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
7274 | if test -f ${file}; then |
7275 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7276 | rm -f ${file} | |
7277 | fi | |
7278 | done | |
5607edfd | 7279 | fi |
9e1c8fc1 JJ |
7280 | case ${module},${bootstrap_fixincludes} in |
7281 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7282 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7283 | esac | |
3e54529c | 7284 | extrasub_host="$extrasub_host |
5607edfd PB |
7285 | /^@if $module\$/d |
7286 | /^@endif $module\$/d | |
da34ca3f | 7287 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 7288 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
7289 | /^@endif $module-$host_bootstrap_suffix\$/d |
7290 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 7291 | done |
3e54529c | 7292 | extrasub_target= |
5607edfd PB |
7293 | for module in ${target_configdirs} ; do |
7294 | if test -z "${no_recursion}" \ | |
7295 | && test -f ${target_subdir}/${module}/Makefile; then | |
7296 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7297 | rm -f ${target_subdir}/${module}/Makefile | |
7298 | fi | |
00020c16 ILT |
7299 | |
7300 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7301 | case $bootstrap_target_libs in | |
7302 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7303 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7304 | esac | |
7305 | ||
3e54529c | 7306 | extrasub_target="$extrasub_target |
5607edfd PB |
7307 | /^@if target-$module\$/d |
7308 | /^@endif target-$module\$/d | |
da34ca3f | 7309 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 7310 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
7311 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7312 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
7313 | done |
7314 | ||
3e54529c RW |
7315 | # Do the final fixup along with target modules. |
7316 | extrasub_target="$extrasub_target | |
da34ca3f AO |
7317 | /^@if /,/^@endif /d |
7318 | /^@unless /d | |
7319 | /^@endunless /d" | |
671aa708 NN |
7320 | |
7321 | # Create the serialization dependencies. This uses a temporary file. | |
7322 | ||
5213506e RW |
7323 | # Check whether --enable-serial-configure was given. |
7324 | if test "${enable_serial_configure+set}" = set; then : | |
7325 | enableval=$enable_serial_configure; | |
7326 | fi | |
ade82b16 AO |
7327 | |
7328 | ||
bf1d3e81 NN |
7329 | case ${enable_serial_configure} in |
7330 | yes) | |
7331 | enable_serial_build_configure=yes | |
7332 | enable_serial_host_configure=yes | |
7333 | enable_serial_target_configure=yes | |
7334 | ;; | |
7335 | esac | |
7336 | ||
671aa708 NN |
7337 | # These force 'configure's to be done one at a time, to avoid problems |
7338 | # with contention over a shared config.cache. | |
7339 | rm -f serdep.tmp | |
ade82b16 | 7340 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 7341 | olditem= |
bf1d3e81 | 7342 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
7343 | for item in ${build_configdirs} ; do |
7344 | case ${olditem} in | |
7345 | "") ;; | |
ade82b16 | 7346 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7347 | esac |
7348 | olditem=${item} | |
7349 | done | |
7350 | olditem= | |
bf1d3e81 | 7351 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
7352 | for item in ${configdirs} ; do |
7353 | case ${olditem} in | |
7354 | "") ;; | |
ade82b16 | 7355 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7356 | esac |
7357 | olditem=${item} | |
7358 | done | |
7359 | olditem= | |
bf1d3e81 | 7360 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
7361 | for item in ${target_configdirs} ; do |
7362 | case ${olditem} in | |
7363 | "") ;; | |
ade82b16 | 7364 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7365 | esac |
7366 | olditem=${item} | |
7367 | done | |
7368 | serialization_dependencies=serdep.tmp | |
7369 | ||
7370 | ||
ade82b16 | 7371 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 7372 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
7373 | # might not want to pass down to subconfigures. The exception being |
7374 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7375 | # files altogether, and which should be passed on to subconfigures. | |
7376 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7377 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 7378 | baseargs= |
29a63921 | 7379 | tbaseargs= |
1c710c3c DJ |
7380 | keep_next=no |
7381 | skip_next=no | |
7382 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
7383 | for ac_arg |
7384 | do | |
1c710c3c DJ |
7385 | if test X"$skip_next" = X"yes"; then |
7386 | skip_next=no | |
7387 | continue | |
7388 | fi | |
7389 | if test X"$keep_next" = X"yes"; then | |
7390 | case $ac_arg in | |
7391 | *\'*) | |
7392 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7393 | esac | |
7394 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7395 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7396 | keep_next=no |
7397 | continue | |
7398 | fi | |
7399 | ||
7400 | # Handle separated arguments. Based on the logic generated by | |
7401 | # autoconf 2.59. | |
7402 | case $ac_arg in | |
7403 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7404 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7405 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7406 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7407 | separate_arg=no | |
7408 | ;; | |
7409 | -*) | |
7410 | separate_arg=yes | |
7411 | ;; | |
7412 | *) | |
7413 | separate_arg=no | |
7414 | ;; | |
7415 | esac | |
7416 | ||
29a63921 AO |
7417 | skip_targ=no |
7418 | case $ac_arg in | |
7419 | ||
7420 | --with-* | --without-*) | |
7421 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7422 | ||
7423 | case $libopt in | |
7424 | *[-_]include) | |
7425 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7426 | ;; | |
7427 | *[-_]lib) | |
7428 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7429 | ;; | |
7430 | *) | |
7431 | lib=$libopt | |
7432 | ;; | |
7433 | esac | |
7434 | ||
7435 | ||
7436 | case $lib in | |
4a9bb2aa | 7437 | mpc | mpfr | gmp | isl) |
29a63921 AO |
7438 | # If we're processing --with-$lib, --with-$lib-include or |
7439 | # --with-$lib-lib, for one of the libs above, and target is | |
7440 | # different from host, don't pass the current argument to any | |
7441 | # target library's configure. | |
7442 | if test x$is_cross_compiler = xyes; then | |
7443 | skip_targ=yes | |
7444 | fi | |
7445 | ;; | |
7446 | esac | |
7447 | ;; | |
7448 | esac | |
7449 | ||
1c710c3c | 7450 | case "$ac_arg" in |
f1a036e4 NC |
7451 | --cache-file=/dev/null | \ |
7452 | -cache-file=/dev/null ) | |
7453 | # Handled here to avoid the test to skip args below. | |
7454 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7455 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7456 | # Assert: $separate_arg should always be no. |
7457 | keep_next=$separate_arg | |
7458 | ;; | |
1c710c3c DJ |
7459 | --no*) |
7460 | continue | |
7461 | ;; | |
7462 | --c* | \ | |
7463 | --sr* | \ | |
7464 | --ho* | \ | |
7465 | --bu* | \ | |
7466 | --t* | \ | |
7467 | --program-* | \ | |
7468 | -cache_file* | \ | |
7469 | -srcdir* | \ | |
7470 | -host* | \ | |
7471 | -build* | \ | |
7472 | -target* | \ | |
7473 | -program-prefix* | \ | |
7474 | -program-suffix* | \ | |
7475 | -program-transform-name* ) | |
7476 | skip_next=$separate_arg | |
7477 | continue | |
7478 | ;; | |
7479 | -*) | |
7480 | # An option. Add it. | |
7481 | case $ac_arg in | |
7482 | *\'*) | |
7483 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7484 | esac | |
7485 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7486 | if test X"$skip_targ" = Xno; then |
7487 | tbaseargs="$tbaseargs '$ac_arg'" | |
7488 | fi | |
1c710c3c DJ |
7489 | keep_next=$separate_arg |
7490 | ;; | |
7491 | *) | |
7492 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7493 | # pass it down; let the Makefile handle this. | |
7494 | continue | |
7495 | ;; | |
7496 | esac | |
7497 | done | |
7498 | # Remove the initial space we just introduced and, as these will be | |
7499 | # expanded by make, quote '$'. | |
7500 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7501 | |
43bb47c2 DJ |
7502 | # Add in --program-transform-name, after --program-prefix and |
7503 | # --program-suffix have been applied to it. Autoconf has already | |
7504 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7505 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7506 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7507 | # Also, because we want to override the logic in subdir configure scripts to |
7508 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7509 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7510 | ${program_transform_name} | |
7511 | EOF_SED | |
7512 | gcc_transform_name=`cat conftestsed.out` | |
7513 | rm -f conftestsed.out | |
7514 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7515 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7516 | if test "$silent" = yes; then |
7517 | baseargs="$baseargs --silent" | |
29a63921 | 7518 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7519 | fi |
0115d4a3 | 7520 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7521 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7522 | |
ffedf511 RW |
7523 | # Record and document user additions to sub configure arguments. |
7524 | ||
7525 | ||
7526 | ||
7527 | ||
671aa708 NN |
7528 | # For the build-side libraries, we just need to pretend we're native, |
7529 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
7530 | # desired. We can't even use the same cache file for all build-side |
7531 | # libraries, as they're compiled differently; some with C, some with | |
7532 | # C++ or with different feature-enabling options. | |
7533 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
7534 | |
7535 | # For host modules, accept cache file option, or specification as blank. | |
7536 | case "${cache_file}" in | |
7537 | "") # empty | |
7538 | cache_file_option="" ;; | |
7539 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7540 | cache_file_option="--cache-file=${cache_file}" ;; | |
7541 | *) # relative path | |
7542 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7543 | esac | |
7544 | ||
09438bde NN |
7545 | # Host dirs don't like to share a cache file either, horribly enough. |
7546 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7547 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7548 | |
29a63921 | 7549 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7550 | |
7551 | # Passing a --with-cross-host argument lets the target libraries know | |
7552 | # whether they are being built with a cross-compiler or being built | |
7553 | # native. However, it would be better to use other mechanisms to make the | |
7554 | # sorts of decisions they want to make on this basis. Please consider | |
7555 | # this option to be deprecated. FIXME. | |
7556 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7557 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7558 | fi |
7559 | ||
79e0604d FXC |
7560 | # Special user-friendly check for native x86_64-linux build, if |
7561 | # multilib is not explicitly enabled. | |
7562 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7563 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 7564 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
7565 | dev64=no |
7566 | echo "int main () { return 0; }" > conftest.c | |
7567 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7568 | if test $? = 0 ; then | |
7569 | if test -s conftest || test -s conftest.exe ; then | |
7570 | dev64=yes | |
7571 | fi | |
7572 | fi | |
7573 | rm -f conftest* | |
7574 | if test x${dev64} != xyes ; then | |
22e05272 | 7575 | 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 |
7576 | fi |
7577 | ;; | |
7578 | esac | |
7579 | ||
dc683a3f RW |
7580 | # Default to --enable-multilib. |
7581 | if test x${enable_multilib} = x ; then | |
671aa708 | 7582 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7583 | fi |
671aa708 NN |
7584 | |
7585 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7586 | # changed from the earlier setting of with_newlib. | |
7587 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7588 | target_configargs="--with-newlib ${target_configargs}" | |
7589 | fi | |
7590 | ||
6b9eb62c NN |
7591 | # Different target subdirs use different values of certain variables |
7592 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7593 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7594 | # it doesn't automatically accept command-line overrides of them. | |
7595 | # This means it's not safe for target subdirs to share a cache file, | |
7596 | # which is disgusting, but there you have it. Hopefully this can be | |
7597 | # fixed in future. It's still worthwhile to use a cache file for each | |
7598 | # directory. I think. | |
7599 | ||
bebcd931 MS |
7600 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7601 | # We need to pass --target, as newer autoconf's requires consistency | |
7602 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7603 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7604 | |
671aa708 NN |
7605 | FLAGS_FOR_TARGET= |
7606 | case " $target_configdirs " in | |
7607 | *" newlib "*) | |
7608 | case " $target_configargs " in | |
7609 | *" --with-newlib "*) | |
7610 | case "$target" in | |
5d571eaa | 7611 | *-cygwin*) |
443e6238 | 7612 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 7613 | ;; |
671aa708 NN |
7614 | esac |
7615 | ||
7616 | # If we're not building GCC, don't discard standard headers. | |
7617 | if test -d ${srcdir}/gcc; then | |
7618 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7619 | ||
7620 | if test "${build}" != "${host}"; then | |
7621 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7622 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7623 | # to it. This is right: we don't want to search that directory | |
7624 | # for binaries, but we want the header files in there, so add | |
7625 | # them explicitly. | |
0463992b | 7626 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7627 | |
7628 | # Someone might think of using the pre-installed headers on | |
7629 | # Canadian crosses, in case the installed compiler is not fully | |
7630 | # compatible with the compiler being built. In this case, it | |
7631 | # would be better to flag an error than risking having | |
7632 | # incompatible object files being constructed. We can't | |
7633 | # guarantee that an error will be flagged, but let's hope the | |
7634 | # compiler will do it, when presented with incompatible header | |
7635 | # files. | |
7636 | fi | |
7637 | fi | |
7638 | ||
7639 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7640 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7641 | # Here host == target, so we don't need to build gcc, |
7642 | # so we don't want to discard standard headers. | |
7643 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7644 | ;; | |
7645 | *) | |
7646 | # If we're building newlib, use its generic headers last, but search | |
7647 | # for any libc-related directories first (so make it the last -B | |
7648 | # switch). | |
7649 | 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 |
7650 | |
7651 | # If we're building libgloss, find the startup file, simulator library | |
7652 | # and linker script. | |
7653 | case " $target_configdirs " in | |
7654 | *" libgloss "*) | |
7655 | # Look for startup file, simulator library and maybe linker script. | |
7656 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7657 | # Look for libnosys.a in case the target needs it. | |
7658 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7659 | # Most targets have the linker script in the source directory. | |
7660 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7661 | ;; | |
7662 | esac | |
671aa708 NN |
7663 | ;; |
7664 | esac | |
7665 | ;; | |
7666 | esac | |
7667 | ;; | |
7668 | esac | |
5d571eaa | 7669 | |
b91f0a41 | 7670 | case "$target" in |
5d571eaa OS |
7671 | x86_64-*mingw* | *-w64-mingw*) |
7672 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7673 | # however, use a symlink named 'mingw' in ${prefix} . | |
7674 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7675 | ;; | |
7676 | *-mingw*) | |
7677 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7678 | 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' | |
7679 | ;; | |
b91f0a41 | 7680 | esac |
671aa708 | 7681 | |
6691a79e ME |
7682 | # Allow the user to override the flags for |
7683 | # our build compiler if desired. | |
f019adc1 MF |
7684 | if test x"${build}" = x"${host}" ; then |
7685 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7686 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7687 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7688 | fi | |
6691a79e | 7689 | |
671aa708 NN |
7690 | # On Canadian crosses, we'll be searching the right directories for |
7691 | # the previously-installed cross compiler, so don't bother to add | |
7692 | # flags for directories within the install tree of the compiler | |
7693 | # being built; programs in there won't even run. | |
7694 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7695 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7696 | 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 |
7697 | fi |
7698 | ||
7699 | if test "x${use_gnu_ld}" = x && | |
7700 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7701 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7702 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7703 | fi |
7704 | ||
e88a2c09 DD |
7705 | # Search for other target-specific linker scripts and such. |
7706 | case "${target}" in | |
3e19841a PB |
7707 | mep*) |
7708 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7709 | ;; | |
e88a2c09 DD |
7710 | esac |
7711 | ||
671aa708 | 7712 | # Makefile fragments. |
7b61653a PE |
7713 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7714 | do | |
7715 | eval fragval=\$$frag | |
7716 | if test $fragval != /dev/null; then | |
7717 | eval $frag=${srcdir}/$fragval | |
7718 | fi | |
7719 | done | |
671aa708 NN |
7720 | |
7721 | ||
7722 | ||
7723 | ||
7724 | ||
7725 | # Miscellanea: directories, flags, etc. | |
7726 | ||
7727 | ||
7728 | ||
7729 | ||
7730 | ||
7731 | ||
7732 | ||
d89f0ad6 | 7733 | |
23f6b2f9 | 7734 | # Build module lists & subconfigure args. |
671aa708 NN |
7735 | |
7736 | ||
7737 | ||
2abefe3d PB |
7738 | # Host module lists & subconfigure args. |
7739 | ||
7740 | ||
7741 | ||
aae29963 | 7742 | |
2abefe3d PB |
7743 | # Target module lists & subconfigure args. |
7744 | ||
7745 | ||
7746 | ||
7747 | # Build tools. | |
7748 | ||
7749 | ||
7750 | ||
0999159b PB |
7751 | |
7752 | ||
7753 | ||
7754 | ||
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | ||
7760 | ||
7761 | ||
7762 | ||
7763 | ||
b4c522fa | 7764 | |
2abefe3d PB |
7765 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7766 | # on the build machine. These are used if the Makefile can't locate these | |
7767 | # programs in objdir. | |
7768 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7769 | ||
7770 | for ac_prog in 'bison -y' byacc yacc | |
7771 | do | |
1c710c3c | 7772 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7773 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7775 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7776 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 7777 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7778 | else |
7779 | if test -n "$YACC"; then | |
7780 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7781 | else | |
1c710c3c DJ |
7782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7783 | for as_dir in $PATH | |
7784 | do | |
7785 | IFS=$as_save_IFS | |
7786 | test -z "$as_dir" && as_dir=. | |
5213506e | 7787 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7788 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 7789 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7790 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7791 | break 2 |
7792 | fi | |
7793 | done | |
5213506e RW |
7794 | done |
7795 | IFS=$as_save_IFS | |
1c710c3c | 7796 | |
2abefe3d PB |
7797 | fi |
7798 | fi | |
1c710c3c | 7799 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7800 | if test -n "$YACC"; then |
5213506e RW |
7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7802 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7803 | else |
5213506e RW |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7805 | $as_echo "no" >&6; } | |
2abefe3d PB |
7806 | fi |
7807 | ||
5213506e | 7808 | |
1c710c3c | 7809 | test -n "$YACC" && break |
2abefe3d PB |
7810 | done |
7811 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7812 | ||
7813 | case " $build_configdirs " in | |
7814 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7815 | esac |
7816 | ||
7817 | for ac_prog in bison | |
7818 | do | |
1c710c3c | 7819 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7820 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7822 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7823 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 7824 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7825 | else |
7826 | if test -n "$BISON"; then | |
7827 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7828 | else | |
1c710c3c DJ |
7829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7830 | for as_dir in $PATH | |
7831 | do | |
7832 | IFS=$as_save_IFS | |
7833 | test -z "$as_dir" && as_dir=. | |
5213506e | 7834 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 7836 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7838 | break 2 |
7839 | fi | |
7840 | done | |
5213506e RW |
7841 | done |
7842 | IFS=$as_save_IFS | |
1c710c3c | 7843 | |
2abefe3d PB |
7844 | fi |
7845 | fi | |
1c710c3c | 7846 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7847 | if test -n "$BISON"; then |
5213506e RW |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7849 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7850 | else |
5213506e RW |
7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7852 | $as_echo "no" >&6; } | |
2abefe3d PB |
7853 | fi |
7854 | ||
5213506e | 7855 | |
1c710c3c | 7856 | test -n "$BISON" && break |
2abefe3d PB |
7857 | done |
7858 | test -n "$BISON" || BISON="$MISSING bison" | |
7859 | ||
7860 | case " $build_configdirs " in | |
7861 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7862 | esac | |
7863 | ||
7864 | for ac_prog in gm4 gnum4 m4 | |
7865 | do | |
1c710c3c | 7866 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7867 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7869 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7870 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 7871 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7872 | else |
7873 | if test -n "$M4"; then | |
7874 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7875 | else | |
1c710c3c DJ |
7876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7877 | for as_dir in $PATH | |
7878 | do | |
7879 | IFS=$as_save_IFS | |
7880 | test -z "$as_dir" && as_dir=. | |
5213506e | 7881 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7882 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 7883 | ac_cv_prog_M4="$ac_prog" |
5213506e | 7884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7885 | break 2 |
7886 | fi | |
7887 | done | |
5213506e RW |
7888 | done |
7889 | IFS=$as_save_IFS | |
1c710c3c | 7890 | |
2abefe3d PB |
7891 | fi |
7892 | fi | |
1c710c3c | 7893 | M4=$ac_cv_prog_M4 |
2abefe3d | 7894 | if test -n "$M4"; then |
5213506e RW |
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7896 | $as_echo "$M4" >&6; } | |
2abefe3d | 7897 | else |
5213506e RW |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7899 | $as_echo "no" >&6; } | |
2abefe3d PB |
7900 | fi |
7901 | ||
5213506e | 7902 | |
1c710c3c | 7903 | test -n "$M4" && break |
2abefe3d PB |
7904 | done |
7905 | test -n "$M4" || M4="$MISSING m4" | |
7906 | ||
7907 | case " $build_configdirs " in | |
7908 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7909 | esac | |
7910 | ||
7911 | for ac_prog in flex lex | |
7912 | do | |
1c710c3c | 7913 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7914 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7916 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7917 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 7918 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7919 | else |
7920 | if test -n "$LEX"; then | |
7921 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7922 | else | |
1c710c3c DJ |
7923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7924 | for as_dir in $PATH | |
7925 | do | |
7926 | IFS=$as_save_IFS | |
7927 | test -z "$as_dir" && as_dir=. | |
5213506e | 7928 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7929 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 7930 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 7931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7932 | break 2 |
7933 | fi | |
7934 | done | |
5213506e RW |
7935 | done |
7936 | IFS=$as_save_IFS | |
1c710c3c | 7937 | |
2abefe3d PB |
7938 | fi |
7939 | fi | |
1c710c3c | 7940 | LEX=$ac_cv_prog_LEX |
2abefe3d | 7941 | if test -n "$LEX"; then |
5213506e RW |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7943 | $as_echo "$LEX" >&6; } | |
2abefe3d | 7944 | else |
5213506e RW |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7946 | $as_echo "no" >&6; } | |
2abefe3d PB |
7947 | fi |
7948 | ||
5213506e | 7949 | |
1c710c3c | 7950 | test -n "$LEX" && break |
2abefe3d PB |
7951 | done |
7952 | test -n "$LEX" || LEX="$MISSING flex" | |
7953 | ||
7954 | case " $build_configdirs " in | |
7955 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7956 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7957 | esac | |
7958 | ||
7959 | for ac_prog in flex | |
7960 | do | |
1c710c3c | 7961 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7962 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7964 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7965 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 7966 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7967 | else |
7968 | if test -n "$FLEX"; then | |
7969 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7970 | else | |
1c710c3c DJ |
7971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7972 | for as_dir in $PATH | |
7973 | do | |
7974 | IFS=$as_save_IFS | |
7975 | test -z "$as_dir" && as_dir=. | |
5213506e | 7976 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 7978 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 7979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7980 | break 2 |
7981 | fi | |
7982 | done | |
5213506e RW |
7983 | done |
7984 | IFS=$as_save_IFS | |
1c710c3c | 7985 | |
2abefe3d PB |
7986 | fi |
7987 | fi | |
1c710c3c | 7988 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 7989 | if test -n "$FLEX"; then |
5213506e RW |
7990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7991 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 7992 | else |
5213506e RW |
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7994 | $as_echo "no" >&6; } | |
2abefe3d PB |
7995 | fi |
7996 | ||
5213506e | 7997 | |
1c710c3c | 7998 | test -n "$FLEX" && break |
2abefe3d PB |
7999 | done |
8000 | test -n "$FLEX" || FLEX="$MISSING flex" | |
8001 | ||
8002 | case " $build_configdirs " in | |
8003 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8004 | esac | |
8005 | ||
8006 | for ac_prog in makeinfo | |
8007 | do | |
1c710c3c | 8008 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8009 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8011 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8012 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 8013 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8014 | else |
8015 | if test -n "$MAKEINFO"; then | |
8016 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8017 | else | |
1c710c3c DJ |
8018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8019 | for as_dir in $PATH | |
8020 | do | |
8021 | IFS=$as_save_IFS | |
8022 | test -z "$as_dir" && as_dir=. | |
5213506e | 8023 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8025 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 8026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8027 | break 2 |
8028 | fi | |
8029 | done | |
5213506e RW |
8030 | done |
8031 | IFS=$as_save_IFS | |
1c710c3c | 8032 | |
2abefe3d PB |
8033 | fi |
8034 | fi | |
1c710c3c | 8035 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 8036 | if test -n "$MAKEINFO"; then |
5213506e RW |
8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8038 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 8039 | else |
5213506e RW |
8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8041 | $as_echo "no" >&6; } | |
2abefe3d PB |
8042 | fi |
8043 | ||
5213506e | 8044 | |
1c710c3c | 8045 | test -n "$MAKEINFO" && break |
2abefe3d PB |
8046 | done |
8047 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8048 | ||
8049 | case " $build_configdirs " in | |
8050 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8051 | *) | |
8052 | ||
d18ff35a | 8053 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
8054 | # higher, else we use the "missing" dummy. |
8055 | if ${MAKEINFO} --version \ | |
d18ff35a | 8056 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
8057 | : |
8058 | else | |
8059 | MAKEINFO="$MISSING makeinfo" | |
8060 | fi | |
8061 | ;; | |
8062 | ||
8063 | esac | |
671aa708 | 8064 | |
2abefe3d | 8065 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 8066 | |
2abefe3d PB |
8067 | for ac_prog in expect |
8068 | do | |
1c710c3c | 8069 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8070 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8072 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8073 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 8074 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8075 | else |
8076 | if test -n "$EXPECT"; then | |
8077 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8078 | else | |
1c710c3c DJ |
8079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8080 | for as_dir in $PATH | |
8081 | do | |
8082 | IFS=$as_save_IFS | |
8083 | test -z "$as_dir" && as_dir=. | |
5213506e | 8084 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8086 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 8087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8088 | break 2 |
8089 | fi | |
8090 | done | |
5213506e RW |
8091 | done |
8092 | IFS=$as_save_IFS | |
1c710c3c | 8093 | |
2abefe3d PB |
8094 | fi |
8095 | fi | |
1c710c3c | 8096 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 8097 | if test -n "$EXPECT"; then |
5213506e RW |
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8099 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 8100 | else |
5213506e RW |
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8102 | $as_echo "no" >&6; } | |
2abefe3d | 8103 | fi |
671aa708 | 8104 | |
5213506e | 8105 | |
1c710c3c | 8106 | test -n "$EXPECT" && break |
2abefe3d PB |
8107 | done |
8108 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 8109 | |
2abefe3d PB |
8110 | case " $configdirs " in |
8111 | *" expect "*) | |
8112 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8113 | ;; | |
8114 | esac | |
671aa708 | 8115 | |
2abefe3d PB |
8116 | for ac_prog in runtest |
8117 | do | |
1c710c3c | 8118 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8119 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8121 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8122 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 8123 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8124 | else |
8125 | if test -n "$RUNTEST"; then | |
8126 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 8127 | else |
1c710c3c DJ |
8128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8129 | for as_dir in $PATH | |
8130 | do | |
8131 | IFS=$as_save_IFS | |
8132 | test -z "$as_dir" && as_dir=. | |
5213506e | 8133 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8135 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 8136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8137 | break 2 |
8138 | fi | |
8139 | done | |
5213506e RW |
8140 | done |
8141 | IFS=$as_save_IFS | |
1c710c3c | 8142 | |
2abefe3d PB |
8143 | fi |
8144 | fi | |
1c710c3c | 8145 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 8146 | if test -n "$RUNTEST"; then |
5213506e RW |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8148 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 8149 | else |
5213506e RW |
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8151 | $as_echo "no" >&6; } | |
2abefe3d | 8152 | fi |
671aa708 | 8153 | |
5213506e | 8154 | |
1c710c3c | 8155 | test -n "$RUNTEST" && break |
2abefe3d PB |
8156 | done |
8157 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 8158 | |
2abefe3d PB |
8159 | case " $configdirs " in |
8160 | *" dejagnu "*) | |
c394e891 | 8161 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
8162 | ;; |
8163 | esac | |
671aa708 NN |
8164 | |
8165 | ||
671aa708 | 8166 | # Host tools. |
ca9f4b81 AO |
8167 | ncn_tool_prefix= |
8168 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8169 | ncn_target_tool_prefix= | |
8170 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8171 | ||
278a7a38 AO |
8172 | |
8173 | ||
8174 | if test -n "$AR"; then | |
8175 | ac_cv_prog_AR=$AR | |
8176 | elif test -n "$ac_cv_prog_AR"; then | |
8177 | AR=$ac_cv_prog_AR | |
8178 | fi | |
8179 | ||
8180 | if test -n "$ac_cv_prog_AR"; then | |
8181 | for ncn_progname in ar; do | |
8182 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8183 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8185 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8186 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 8187 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8188 | else |
8189 | if test -n "$AR"; then | |
8190 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8191 | else | |
8192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8193 | for as_dir in $PATH | |
8194 | do | |
8195 | IFS=$as_save_IFS | |
8196 | test -z "$as_dir" && as_dir=. | |
5213506e | 8197 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8198 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8199 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8201 | break 2 |
8202 | fi | |
8203 | done | |
5213506e RW |
8204 | done |
8205 | IFS=$as_save_IFS | |
278a7a38 AO |
8206 | |
8207 | fi | |
8208 | fi | |
8209 | AR=$ac_cv_prog_AR | |
8210 | if test -n "$AR"; then | |
5213506e RW |
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8212 | $as_echo "$AR" >&6; } | |
278a7a38 | 8213 | else |
5213506e RW |
8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8215 | $as_echo "no" >&6; } | |
278a7a38 AO |
8216 | fi |
8217 | ||
5213506e | 8218 | |
278a7a38 AO |
8219 | done |
8220 | fi | |
8221 | ||
8222 | for ncn_progname in ar; do | |
2693c0b0 PB |
8223 | if test -n "$ncn_tool_prefix"; then |
8224 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8225 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8227 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8228 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 8229 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8230 | else |
8231 | if test -n "$AR"; then | |
8232 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8233 | else | |
1c710c3c DJ |
8234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8235 | for as_dir in $PATH | |
8236 | do | |
8237 | IFS=$as_save_IFS | |
8238 | test -z "$as_dir" && as_dir=. | |
5213506e | 8239 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8241 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8243 | break 2 |
8244 | fi | |
8245 | done | |
5213506e RW |
8246 | done |
8247 | IFS=$as_save_IFS | |
1c710c3c | 8248 | |
ca9f4b81 AO |
8249 | fi |
8250 | fi | |
1c710c3c | 8251 | AR=$ac_cv_prog_AR |
ca9f4b81 | 8252 | if test -n "$AR"; then |
5213506e RW |
8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8254 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8255 | else |
5213506e RW |
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8257 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8258 | fi |
8259 | ||
5213506e | 8260 | |
2693c0b0 PB |
8261 | fi |
8262 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8263 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8264 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8266 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8267 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 8268 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8269 | else |
2693c0b0 | 8270 | if test -n "$AR"; then |
af71363e AS |
8271 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8272 | else | |
1c710c3c DJ |
8273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8274 | for as_dir in $PATH | |
8275 | do | |
8276 | IFS=$as_save_IFS | |
8277 | test -z "$as_dir" && as_dir=. | |
5213506e | 8278 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8280 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8282 | break 2 |
8283 | fi | |
8284 | done | |
5213506e RW |
8285 | done |
8286 | IFS=$as_save_IFS | |
1c710c3c | 8287 | |
ca9f4b81 AO |
8288 | fi |
8289 | fi | |
1c710c3c | 8290 | AR=$ac_cv_prog_AR |
2693c0b0 | 8291 | if test -n "$AR"; then |
5213506e RW |
8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8293 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8294 | else |
5213506e RW |
8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8296 | $as_echo "no" >&6; } | |
ca9f4b81 | 8297 | fi |
1c710c3c | 8298 | |
5213506e | 8299 | |
2693c0b0 PB |
8300 | fi |
8301 | test -n "$ac_cv_prog_AR" && break | |
8302 | done | |
8303 | ||
8304 | if test -z "$ac_cv_prog_AR" ; then | |
8305 | set dummy ar | |
8306 | if test $build = $host ; then | |
8307 | AR="$2" | |
ca9f4b81 | 8308 | else |
2693c0b0 | 8309 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 8310 | fi |
ca9f4b81 AO |
8311 | fi |
8312 | ||
278a7a38 AO |
8313 | |
8314 | ||
8315 | if test -n "$AS"; then | |
8316 | ac_cv_prog_AS=$AS | |
8317 | elif test -n "$ac_cv_prog_AS"; then | |
8318 | AS=$ac_cv_prog_AS | |
8319 | fi | |
8320 | ||
8321 | if test -n "$ac_cv_prog_AS"; then | |
8322 | for ncn_progname in as; do | |
8323 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8324 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8326 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8327 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 8328 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8329 | else |
8330 | if test -n "$AS"; then | |
8331 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8332 | else | |
8333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8334 | for as_dir in $PATH | |
8335 | do | |
8336 | IFS=$as_save_IFS | |
8337 | test -z "$as_dir" && as_dir=. | |
5213506e | 8338 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8339 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8340 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8342 | break 2 |
8343 | fi | |
8344 | done | |
5213506e RW |
8345 | done |
8346 | IFS=$as_save_IFS | |
278a7a38 AO |
8347 | |
8348 | fi | |
8349 | fi | |
8350 | AS=$ac_cv_prog_AS | |
8351 | if test -n "$AS"; then | |
5213506e RW |
8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8353 | $as_echo "$AS" >&6; } | |
278a7a38 | 8354 | else |
5213506e RW |
8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8356 | $as_echo "no" >&6; } | |
278a7a38 AO |
8357 | fi |
8358 | ||
5213506e | 8359 | |
278a7a38 AO |
8360 | done |
8361 | fi | |
8362 | ||
8363 | for ncn_progname in as; do | |
2693c0b0 PB |
8364 | if test -n "$ncn_tool_prefix"; then |
8365 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8366 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8368 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8369 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 8370 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8371 | else |
8372 | if test -n "$AS"; then | |
8373 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 8374 | else |
1c710c3c DJ |
8375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8376 | for as_dir in $PATH | |
8377 | do | |
8378 | IFS=$as_save_IFS | |
8379 | test -z "$as_dir" && as_dir=. | |
5213506e | 8380 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8382 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8384 | break 2 |
8385 | fi | |
8386 | done | |
5213506e RW |
8387 | done |
8388 | IFS=$as_save_IFS | |
1c710c3c | 8389 | |
ca9f4b81 AO |
8390 | fi |
8391 | fi | |
1c710c3c | 8392 | AS=$ac_cv_prog_AS |
ca9f4b81 | 8393 | if test -n "$AS"; then |
5213506e RW |
8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8395 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8396 | else |
5213506e RW |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8398 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8399 | fi |
8400 | ||
5213506e | 8401 | |
2693c0b0 PB |
8402 | fi |
8403 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8404 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8405 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8407 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8408 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 8409 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8410 | else |
2693c0b0 PB |
8411 | if test -n "$AS"; then |
8412 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8413 | else |
1c710c3c DJ |
8414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8415 | for as_dir in $PATH | |
8416 | do | |
8417 | IFS=$as_save_IFS | |
8418 | test -z "$as_dir" && as_dir=. | |
5213506e | 8419 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8421 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8423 | break 2 |
8424 | fi | |
8425 | done | |
5213506e RW |
8426 | done |
8427 | IFS=$as_save_IFS | |
1c710c3c | 8428 | |
ca9f4b81 AO |
8429 | fi |
8430 | fi | |
1c710c3c | 8431 | AS=$ac_cv_prog_AS |
2693c0b0 | 8432 | if test -n "$AS"; then |
5213506e RW |
8433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8434 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8435 | else |
5213506e RW |
8436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8437 | $as_echo "no" >&6; } | |
ca9f4b81 | 8438 | fi |
1c710c3c | 8439 | |
5213506e | 8440 | |
2693c0b0 PB |
8441 | fi |
8442 | test -n "$ac_cv_prog_AS" && break | |
8443 | done | |
8444 | ||
8445 | if test -z "$ac_cv_prog_AS" ; then | |
8446 | set dummy as | |
8447 | if test $build = $host ; then | |
8448 | AS="$2" | |
ca9f4b81 | 8449 | else |
2693c0b0 | 8450 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8451 | fi |
ca9f4b81 AO |
8452 | fi |
8453 | ||
278a7a38 AO |
8454 | |
8455 | ||
8456 | if test -n "$DLLTOOL"; then | |
8457 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8458 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8459 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8460 | fi | |
8461 | ||
8462 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8463 | for ncn_progname in dlltool; do | |
8464 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8465 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8467 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8468 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 8469 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8470 | else |
8471 | if test -n "$DLLTOOL"; then | |
8472 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8473 | else | |
8474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8475 | for as_dir in $PATH | |
8476 | do | |
8477 | IFS=$as_save_IFS | |
8478 | test -z "$as_dir" && as_dir=. | |
5213506e | 8479 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8480 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8481 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8483 | break 2 |
8484 | fi | |
8485 | done | |
5213506e RW |
8486 | done |
8487 | IFS=$as_save_IFS | |
278a7a38 AO |
8488 | |
8489 | fi | |
8490 | fi | |
8491 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8492 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8494 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8495 | else |
5213506e RW |
8496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8497 | $as_echo "no" >&6; } | |
278a7a38 AO |
8498 | fi |
8499 | ||
5213506e | 8500 | |
278a7a38 AO |
8501 | done |
8502 | fi | |
8503 | ||
8504 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8505 | if test -n "$ncn_tool_prefix"; then |
8506 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8507 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8509 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8510 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 8511 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8512 | else |
8513 | if test -n "$DLLTOOL"; then | |
8514 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8515 | else | |
1c710c3c DJ |
8516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8517 | for as_dir in $PATH | |
8518 | do | |
8519 | IFS=$as_save_IFS | |
8520 | test -z "$as_dir" && as_dir=. | |
5213506e | 8521 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8523 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8525 | break 2 |
8526 | fi | |
8527 | done | |
5213506e RW |
8528 | done |
8529 | IFS=$as_save_IFS | |
1c710c3c | 8530 | |
ca9f4b81 AO |
8531 | fi |
8532 | fi | |
1c710c3c | 8533 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8534 | if test -n "$DLLTOOL"; then |
5213506e RW |
8535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8536 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8537 | else |
5213506e RW |
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8539 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8540 | fi |
8541 | ||
5213506e | 8542 | |
2693c0b0 PB |
8543 | fi |
8544 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8546 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8548 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8549 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 8550 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8551 | else |
2693c0b0 PB |
8552 | if test -n "$DLLTOOL"; then |
8553 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8554 | else |
1c710c3c DJ |
8555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8556 | for as_dir in $PATH | |
8557 | do | |
8558 | IFS=$as_save_IFS | |
8559 | test -z "$as_dir" && as_dir=. | |
5213506e | 8560 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8562 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8564 | break 2 |
8565 | fi | |
8566 | done | |
5213506e RW |
8567 | done |
8568 | IFS=$as_save_IFS | |
1c710c3c | 8569 | |
ca9f4b81 AO |
8570 | fi |
8571 | fi | |
1c710c3c | 8572 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8573 | if test -n "$DLLTOOL"; then |
5213506e RW |
8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8575 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8576 | else |
5213506e RW |
8577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8578 | $as_echo "no" >&6; } | |
ca9f4b81 | 8579 | fi |
1c710c3c | 8580 | |
5213506e | 8581 | |
2693c0b0 PB |
8582 | fi |
8583 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8584 | done | |
8585 | ||
8586 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8587 | set dummy dlltool | |
8588 | if test $build = $host ; then | |
8589 | DLLTOOL="$2" | |
ca9f4b81 | 8590 | else |
2693c0b0 | 8591 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8592 | fi |
ca9f4b81 AO |
8593 | fi |
8594 | ||
278a7a38 AO |
8595 | |
8596 | ||
8597 | if test -n "$LD"; then | |
8598 | ac_cv_prog_LD=$LD | |
8599 | elif test -n "$ac_cv_prog_LD"; then | |
8600 | LD=$ac_cv_prog_LD | |
8601 | fi | |
8602 | ||
8603 | if test -n "$ac_cv_prog_LD"; then | |
8604 | for ncn_progname in ld; do | |
8605 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8606 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8608 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8609 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 8610 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8611 | else |
8612 | if test -n "$LD"; then | |
8613 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8614 | else | |
8615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8616 | for as_dir in $PATH | |
8617 | do | |
8618 | IFS=$as_save_IFS | |
8619 | test -z "$as_dir" && as_dir=. | |
5213506e | 8620 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8622 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8624 | break 2 |
8625 | fi | |
8626 | done | |
5213506e RW |
8627 | done |
8628 | IFS=$as_save_IFS | |
278a7a38 AO |
8629 | |
8630 | fi | |
8631 | fi | |
8632 | LD=$ac_cv_prog_LD | |
8633 | if test -n "$LD"; then | |
5213506e RW |
8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8635 | $as_echo "$LD" >&6; } | |
278a7a38 | 8636 | else |
5213506e RW |
8637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8638 | $as_echo "no" >&6; } | |
278a7a38 AO |
8639 | fi |
8640 | ||
5213506e | 8641 | |
278a7a38 AO |
8642 | done |
8643 | fi | |
8644 | ||
8645 | for ncn_progname in ld; do | |
2693c0b0 PB |
8646 | if test -n "$ncn_tool_prefix"; then |
8647 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8648 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8650 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8651 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 8652 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8653 | else |
8654 | if test -n "$LD"; then | |
8655 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8656 | else | |
1c710c3c DJ |
8657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8658 | for as_dir in $PATH | |
8659 | do | |
8660 | IFS=$as_save_IFS | |
8661 | test -z "$as_dir" && as_dir=. | |
5213506e | 8662 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8664 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8666 | break 2 |
8667 | fi | |
8668 | done | |
5213506e RW |
8669 | done |
8670 | IFS=$as_save_IFS | |
1c710c3c | 8671 | |
ca9f4b81 AO |
8672 | fi |
8673 | fi | |
1c710c3c | 8674 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8675 | if test -n "$LD"; then |
5213506e RW |
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8677 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8678 | else |
5213506e RW |
8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8680 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8681 | fi |
8682 | ||
5213506e | 8683 | |
2693c0b0 PB |
8684 | fi |
8685 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8686 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8687 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8689 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8690 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 8691 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8692 | else |
2693c0b0 PB |
8693 | if test -n "$LD"; then |
8694 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8695 | else |
1c710c3c DJ |
8696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8697 | for as_dir in $PATH | |
8698 | do | |
8699 | IFS=$as_save_IFS | |
8700 | test -z "$as_dir" && as_dir=. | |
5213506e | 8701 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8703 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8705 | break 2 |
8706 | fi | |
8707 | done | |
5213506e RW |
8708 | done |
8709 | IFS=$as_save_IFS | |
1c710c3c | 8710 | |
ca9f4b81 AO |
8711 | fi |
8712 | fi | |
1c710c3c | 8713 | LD=$ac_cv_prog_LD |
2693c0b0 | 8714 | if test -n "$LD"; then |
5213506e RW |
8715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8716 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8717 | else |
5213506e RW |
8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8719 | $as_echo "no" >&6; } | |
ca9f4b81 | 8720 | fi |
1c710c3c | 8721 | |
5213506e | 8722 | |
2693c0b0 PB |
8723 | fi |
8724 | test -n "$ac_cv_prog_LD" && break | |
8725 | done | |
8726 | ||
8727 | if test -z "$ac_cv_prog_LD" ; then | |
8728 | set dummy ld | |
8729 | if test $build = $host ; then | |
8730 | LD="$2" | |
ca9f4b81 | 8731 | else |
2693c0b0 | 8732 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 8733 | fi |
ca9f4b81 AO |
8734 | fi |
8735 | ||
278a7a38 AO |
8736 | |
8737 | ||
8738 | if test -n "$LIPO"; then | |
8739 | ac_cv_prog_LIPO=$LIPO | |
8740 | elif test -n "$ac_cv_prog_LIPO"; then | |
8741 | LIPO=$ac_cv_prog_LIPO | |
8742 | fi | |
8743 | ||
8744 | if test -n "$ac_cv_prog_LIPO"; then | |
8745 | for ncn_progname in lipo; do | |
8746 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8747 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8749 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8750 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8751 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8752 | else |
8753 | if test -n "$LIPO"; then | |
8754 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8755 | else | |
8756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8757 | for as_dir in $PATH | |
8758 | do | |
8759 | IFS=$as_save_IFS | |
8760 | test -z "$as_dir" && as_dir=. | |
5213506e | 8761 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8763 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8765 | break 2 |
8766 | fi | |
8767 | done | |
5213506e RW |
8768 | done |
8769 | IFS=$as_save_IFS | |
278a7a38 AO |
8770 | |
8771 | fi | |
8772 | fi | |
8773 | LIPO=$ac_cv_prog_LIPO | |
8774 | if test -n "$LIPO"; then | |
5213506e RW |
8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8776 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 8777 | else |
5213506e RW |
8778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8779 | $as_echo "no" >&6; } | |
278a7a38 AO |
8780 | fi |
8781 | ||
5213506e | 8782 | |
278a7a38 AO |
8783 | done |
8784 | fi | |
8785 | ||
8786 | for ncn_progname in lipo; do | |
2abefe3d PB |
8787 | if test -n "$ncn_tool_prefix"; then |
8788 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8789 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8791 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8792 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8793 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8794 | else |
8795 | if test -n "$LIPO"; then | |
8796 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8797 | else | |
1c710c3c DJ |
8798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8799 | for as_dir in $PATH | |
8800 | do | |
8801 | IFS=$as_save_IFS | |
8802 | test -z "$as_dir" && as_dir=. | |
5213506e | 8803 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8805 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8807 | break 2 |
8808 | fi | |
8809 | done | |
5213506e RW |
8810 | done |
8811 | IFS=$as_save_IFS | |
1c710c3c | 8812 | |
2abefe3d PB |
8813 | fi |
8814 | fi | |
1c710c3c | 8815 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8816 | if test -n "$LIPO"; then |
5213506e RW |
8817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8818 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8819 | else |
5213506e RW |
8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8821 | $as_echo "no" >&6; } | |
2abefe3d PB |
8822 | fi |
8823 | ||
5213506e | 8824 | |
2abefe3d PB |
8825 | fi |
8826 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8828 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8830 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8831 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8832 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8833 | else |
8834 | if test -n "$LIPO"; then | |
8835 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8836 | else | |
1c710c3c DJ |
8837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8838 | for as_dir in $PATH | |
8839 | do | |
8840 | IFS=$as_save_IFS | |
8841 | test -z "$as_dir" && as_dir=. | |
5213506e | 8842 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8844 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8846 | break 2 |
8847 | fi | |
8848 | done | |
5213506e RW |
8849 | done |
8850 | IFS=$as_save_IFS | |
1c710c3c | 8851 | |
2abefe3d PB |
8852 | fi |
8853 | fi | |
1c710c3c | 8854 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8855 | if test -n "$LIPO"; then |
5213506e RW |
8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8857 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8858 | else |
5213506e RW |
8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8860 | $as_echo "no" >&6; } | |
2abefe3d | 8861 | fi |
1c710c3c | 8862 | |
5213506e | 8863 | |
2abefe3d PB |
8864 | fi |
8865 | test -n "$ac_cv_prog_LIPO" && break | |
8866 | done | |
8867 | ||
8868 | if test -z "$ac_cv_prog_LIPO" ; then | |
8869 | set dummy lipo | |
8870 | if test $build = $host ; then | |
8871 | LIPO="$2" | |
8872 | else | |
8873 | LIPO="${ncn_tool_prefix}$2" | |
8874 | fi | |
8875 | fi | |
8876 | ||
278a7a38 AO |
8877 | |
8878 | ||
8879 | if test -n "$NM"; then | |
8880 | ac_cv_prog_NM=$NM | |
8881 | elif test -n "$ac_cv_prog_NM"; then | |
8882 | NM=$ac_cv_prog_NM | |
8883 | fi | |
8884 | ||
8885 | if test -n "$ac_cv_prog_NM"; then | |
8886 | for ncn_progname in nm; do | |
8887 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8888 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8890 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8891 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 8892 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8893 | else |
8894 | if test -n "$NM"; then | |
8895 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8896 | else | |
1c710c3c DJ |
8897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8898 | for as_dir in $PATH | |
8899 | do | |
8900 | IFS=$as_save_IFS | |
8901 | test -z "$as_dir" && as_dir=. | |
5213506e | 8902 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8904 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8906 | break 2 |
8907 | fi | |
8908 | done | |
5213506e RW |
8909 | done |
8910 | IFS=$as_save_IFS | |
1c710c3c | 8911 | |
ca9f4b81 AO |
8912 | fi |
8913 | fi | |
1c710c3c | 8914 | NM=$ac_cv_prog_NM |
ca9f4b81 | 8915 | if test -n "$NM"; then |
5213506e RW |
8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8917 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8918 | else |
5213506e RW |
8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8920 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8921 | fi |
8922 | ||
5213506e | 8923 | |
278a7a38 AO |
8924 | done |
8925 | fi | |
8926 | ||
8927 | for ncn_progname in nm; do | |
8928 | if test -n "$ncn_tool_prefix"; then | |
8929 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8930 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8932 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8933 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 8934 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8935 | else |
2693c0b0 PB |
8936 | if test -n "$NM"; then |
8937 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 8938 | else |
1c710c3c DJ |
8939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8940 | for as_dir in $PATH | |
8941 | do | |
8942 | IFS=$as_save_IFS | |
8943 | test -z "$as_dir" && as_dir=. | |
5213506e | 8944 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8946 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8948 | break 2 |
8949 | fi | |
8950 | done | |
5213506e RW |
8951 | done |
8952 | IFS=$as_save_IFS | |
1c710c3c | 8953 | |
ca9f4b81 AO |
8954 | fi |
8955 | fi | |
1c710c3c | 8956 | NM=$ac_cv_prog_NM |
2693c0b0 | 8957 | if test -n "$NM"; then |
5213506e RW |
8958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8959 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8960 | else |
5213506e RW |
8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8962 | $as_echo "no" >&6; } | |
ca9f4b81 | 8963 | fi |
1c710c3c | 8964 | |
5213506e | 8965 | |
2693c0b0 | 8966 | fi |
278a7a38 AO |
8967 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8968 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8969 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8971 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8972 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 8973 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8974 | else |
8975 | if test -n "$NM"; then | |
8976 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8977 | else | |
8978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8979 | for as_dir in $PATH | |
8980 | do | |
8981 | IFS=$as_save_IFS | |
8982 | test -z "$as_dir" && as_dir=. | |
5213506e | 8983 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8985 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8987 | break 2 |
8988 | fi | |
8989 | done | |
5213506e RW |
8990 | done |
8991 | IFS=$as_save_IFS | |
278a7a38 AO |
8992 | |
8993 | fi | |
8994 | fi | |
8995 | NM=$ac_cv_prog_NM | |
8996 | if test -n "$NM"; then | |
5213506e RW |
8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8998 | $as_echo "$NM" >&6; } | |
278a7a38 | 8999 | else |
5213506e RW |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9001 | $as_echo "no" >&6; } | |
278a7a38 AO |
9002 | fi |
9003 | ||
5213506e | 9004 | |
278a7a38 AO |
9005 | fi |
9006 | test -n "$ac_cv_prog_NM" && break | |
9007 | done | |
9008 | ||
9009 | if test -z "$ac_cv_prog_NM" ; then | |
9010 | set dummy nm | |
9011 | if test $build = $host ; then | |
9012 | NM="$2" | |
9013 | else | |
9014 | NM="${ncn_tool_prefix}$2" | |
9015 | fi | |
9016 | fi | |
9017 | ||
9018 | ||
9019 | ||
9020 | if test -n "$RANLIB"; then | |
9021 | ac_cv_prog_RANLIB=$RANLIB | |
9022 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9023 | RANLIB=$ac_cv_prog_RANLIB | |
9024 | fi | |
9025 | ||
9026 | if test -n "$ac_cv_prog_RANLIB"; then | |
9027 | for ncn_progname in ranlib; do | |
9028 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9029 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9031 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9032 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 9033 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9034 | else |
9035 | if test -n "$RANLIB"; then | |
9036 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9037 | else | |
9038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9039 | for as_dir in $PATH | |
9040 | do | |
9041 | IFS=$as_save_IFS | |
9042 | test -z "$as_dir" && as_dir=. | |
5213506e | 9043 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9045 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 9046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9047 | break 2 |
9048 | fi | |
9049 | done | |
5213506e RW |
9050 | done |
9051 | IFS=$as_save_IFS | |
278a7a38 AO |
9052 | |
9053 | fi | |
9054 | fi | |
9055 | RANLIB=$ac_cv_prog_RANLIB | |
9056 | if test -n "$RANLIB"; then | |
5213506e RW |
9057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9058 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 9059 | else |
5213506e RW |
9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9061 | $as_echo "no" >&6; } | |
278a7a38 AO |
9062 | fi |
9063 | ||
5213506e | 9064 | |
278a7a38 AO |
9065 | done |
9066 | fi | |
ca9f4b81 | 9067 | |
278a7a38 | 9068 | for ncn_progname in ranlib; do |
2693c0b0 PB |
9069 | if test -n "$ncn_tool_prefix"; then |
9070 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9071 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9073 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9074 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 9075 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9076 | else |
9077 | if test -n "$RANLIB"; then | |
9078 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9079 | else | |
1c710c3c DJ |
9080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9081 | for as_dir in $PATH | |
9082 | do | |
9083 | IFS=$as_save_IFS | |
9084 | test -z "$as_dir" && as_dir=. | |
5213506e | 9085 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9086 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9087 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9089 | break 2 |
9090 | fi | |
9091 | done | |
5213506e RW |
9092 | done |
9093 | IFS=$as_save_IFS | |
1c710c3c | 9094 | |
ca9f4b81 AO |
9095 | fi |
9096 | fi | |
1c710c3c | 9097 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 9098 | if test -n "$RANLIB"; then |
5213506e RW |
9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9100 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9101 | else |
5213506e RW |
9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9103 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9104 | fi |
9105 | ||
5213506e | 9106 | |
2693c0b0 PB |
9107 | fi |
9108 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9109 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9110 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9112 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9113 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 9114 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9115 | else |
2693c0b0 PB |
9116 | if test -n "$RANLIB"; then |
9117 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 9118 | else |
1c710c3c DJ |
9119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9120 | for as_dir in $PATH | |
9121 | do | |
9122 | IFS=$as_save_IFS | |
9123 | test -z "$as_dir" && as_dir=. | |
5213506e | 9124 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9126 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 9127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9128 | break 2 |
9129 | fi | |
9130 | done | |
5213506e RW |
9131 | done |
9132 | IFS=$as_save_IFS | |
1c710c3c | 9133 | |
ca9f4b81 AO |
9134 | fi |
9135 | fi | |
1c710c3c | 9136 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 9137 | if test -n "$RANLIB"; then |
5213506e RW |
9138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9139 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9140 | else |
5213506e RW |
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9142 | $as_echo "no" >&6; } | |
ca9f4b81 | 9143 | fi |
1c710c3c | 9144 | |
5213506e | 9145 | |
ca9f4b81 | 9146 | fi |
2693c0b0 PB |
9147 | test -n "$ac_cv_prog_RANLIB" && break |
9148 | done | |
9149 | ||
9150 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 9151 | RANLIB="true" |
ca9f4b81 AO |
9152 | fi |
9153 | ||
278a7a38 AO |
9154 | |
9155 | ||
9156 | if test -n "$STRIP"; then | |
9157 | ac_cv_prog_STRIP=$STRIP | |
9158 | elif test -n "$ac_cv_prog_STRIP"; then | |
9159 | STRIP=$ac_cv_prog_STRIP | |
9160 | fi | |
9161 | ||
9162 | if test -n "$ac_cv_prog_STRIP"; then | |
9163 | for ncn_progname in strip; do | |
9164 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9165 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9167 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9168 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 9169 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9170 | else |
9171 | if test -n "$STRIP"; then | |
9172 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9173 | else | |
9174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9175 | for as_dir in $PATH | |
9176 | do | |
9177 | IFS=$as_save_IFS | |
9178 | test -z "$as_dir" && as_dir=. | |
5213506e | 9179 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9181 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9183 | break 2 |
9184 | fi | |
9185 | done | |
5213506e RW |
9186 | done |
9187 | IFS=$as_save_IFS | |
278a7a38 AO |
9188 | |
9189 | fi | |
9190 | fi | |
9191 | STRIP=$ac_cv_prog_STRIP | |
9192 | if test -n "$STRIP"; then | |
5213506e RW |
9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9194 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 9195 | else |
5213506e RW |
9196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9197 | $as_echo "no" >&6; } | |
278a7a38 AO |
9198 | fi |
9199 | ||
5213506e | 9200 | |
278a7a38 AO |
9201 | done |
9202 | fi | |
9203 | ||
9204 | for ncn_progname in strip; do | |
2abefe3d PB |
9205 | if test -n "$ncn_tool_prefix"; then |
9206 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9207 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9209 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9210 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 9211 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9212 | else |
9213 | if test -n "$STRIP"; then | |
9214 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9215 | else | |
1c710c3c DJ |
9216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9217 | for as_dir in $PATH | |
9218 | do | |
9219 | IFS=$as_save_IFS | |
9220 | test -z "$as_dir" && as_dir=. | |
5213506e | 9221 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9222 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9223 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9225 | break 2 |
9226 | fi | |
9227 | done | |
5213506e RW |
9228 | done |
9229 | IFS=$as_save_IFS | |
1c710c3c | 9230 | |
2abefe3d PB |
9231 | fi |
9232 | fi | |
1c710c3c | 9233 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9234 | if test -n "$STRIP"; then |
5213506e RW |
9235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9236 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9237 | else |
5213506e RW |
9238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9239 | $as_echo "no" >&6; } | |
2abefe3d PB |
9240 | fi |
9241 | ||
5213506e | 9242 | |
2abefe3d PB |
9243 | fi |
9244 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9245 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9246 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9248 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9249 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 9250 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9251 | else |
9252 | if test -n "$STRIP"; then | |
9253 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9254 | else | |
1c710c3c DJ |
9255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9256 | for as_dir in $PATH | |
9257 | do | |
9258 | IFS=$as_save_IFS | |
9259 | test -z "$as_dir" && as_dir=. | |
5213506e | 9260 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9262 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9264 | break 2 |
9265 | fi | |
9266 | done | |
5213506e RW |
9267 | done |
9268 | IFS=$as_save_IFS | |
1c710c3c | 9269 | |
2abefe3d PB |
9270 | fi |
9271 | fi | |
1c710c3c | 9272 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9273 | if test -n "$STRIP"; then |
5213506e RW |
9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9275 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9276 | else |
5213506e RW |
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9278 | $as_echo "no" >&6; } | |
2abefe3d | 9279 | fi |
1c710c3c | 9280 | |
5213506e | 9281 | |
2abefe3d PB |
9282 | fi |
9283 | test -n "$ac_cv_prog_STRIP" && break | |
9284 | done | |
9285 | ||
9286 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 9287 | STRIP="true" |
2abefe3d PB |
9288 | fi |
9289 | ||
278a7a38 AO |
9290 | |
9291 | ||
9292 | if test -n "$WINDRES"; then | |
9293 | ac_cv_prog_WINDRES=$WINDRES | |
9294 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9295 | WINDRES=$ac_cv_prog_WINDRES | |
9296 | fi | |
9297 | ||
9298 | if test -n "$ac_cv_prog_WINDRES"; then | |
9299 | for ncn_progname in windres; do | |
9300 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9301 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9303 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9304 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 9305 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9306 | else |
9307 | if test -n "$WINDRES"; then | |
9308 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9309 | else | |
9310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9311 | for as_dir in $PATH | |
9312 | do | |
9313 | IFS=$as_save_IFS | |
9314 | test -z "$as_dir" && as_dir=. | |
5213506e | 9315 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9317 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9319 | break 2 |
9320 | fi | |
9321 | done | |
5213506e RW |
9322 | done |
9323 | IFS=$as_save_IFS | |
278a7a38 AO |
9324 | |
9325 | fi | |
9326 | fi | |
9327 | WINDRES=$ac_cv_prog_WINDRES | |
9328 | if test -n "$WINDRES"; then | |
5213506e RW |
9329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9330 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 9331 | else |
5213506e RW |
9332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9333 | $as_echo "no" >&6; } | |
278a7a38 AO |
9334 | fi |
9335 | ||
5213506e | 9336 | |
278a7a38 AO |
9337 | done |
9338 | fi | |
9339 | ||
9340 | for ncn_progname in windres; do | |
2693c0b0 PB |
9341 | if test -n "$ncn_tool_prefix"; then |
9342 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9343 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9345 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9346 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 9347 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9348 | else |
9349 | if test -n "$WINDRES"; then | |
9350 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9351 | else | |
1c710c3c DJ |
9352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9353 | for as_dir in $PATH | |
9354 | do | |
9355 | IFS=$as_save_IFS | |
9356 | test -z "$as_dir" && as_dir=. | |
5213506e | 9357 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9359 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9361 | break 2 |
9362 | fi | |
9363 | done | |
5213506e RW |
9364 | done |
9365 | IFS=$as_save_IFS | |
1c710c3c | 9366 | |
ca9f4b81 AO |
9367 | fi |
9368 | fi | |
1c710c3c | 9369 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 9370 | if test -n "$WINDRES"; then |
5213506e RW |
9371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9372 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9373 | else |
5213506e RW |
9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9375 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9376 | fi |
9377 | ||
5213506e | 9378 | |
2693c0b0 PB |
9379 | fi |
9380 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9381 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9382 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9384 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9385 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 9386 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9387 | else |
2693c0b0 PB |
9388 | if test -n "$WINDRES"; then |
9389 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 9390 | else |
1c710c3c DJ |
9391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9392 | for as_dir in $PATH | |
9393 | do | |
9394 | IFS=$as_save_IFS | |
9395 | test -z "$as_dir" && as_dir=. | |
5213506e | 9396 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9398 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9400 | break 2 |
9401 | fi | |
9402 | done | |
5213506e RW |
9403 | done |
9404 | IFS=$as_save_IFS | |
1c710c3c | 9405 | |
ca9f4b81 AO |
9406 | fi |
9407 | fi | |
1c710c3c | 9408 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9409 | if test -n "$WINDRES"; then |
5213506e RW |
9410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9411 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9412 | else |
5213506e RW |
9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9414 | $as_echo "no" >&6; } | |
ca9f4b81 | 9415 | fi |
1c710c3c | 9416 | |
5213506e | 9417 | |
2693c0b0 PB |
9418 | fi |
9419 | test -n "$ac_cv_prog_WINDRES" && break | |
9420 | done | |
9421 | ||
9422 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9423 | set dummy windres | |
9424 | if test $build = $host ; then | |
9425 | WINDRES="$2" | |
ca9f4b81 | 9426 | else |
2693c0b0 | 9427 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9428 | fi |
ca9f4b81 AO |
9429 | fi |
9430 | ||
278a7a38 AO |
9431 | |
9432 | ||
901119ae KT |
9433 | if test -n "$WINDMC"; then |
9434 | ac_cv_prog_WINDMC=$WINDMC | |
9435 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9436 | WINDMC=$ac_cv_prog_WINDMC | |
9437 | fi | |
9438 | ||
9439 | if test -n "$ac_cv_prog_WINDMC"; then | |
9440 | for ncn_progname in windmc; do | |
9441 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9442 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9444 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9445 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 9446 | $as_echo_n "(cached) " >&6 |
901119ae KT |
9447 | else |
9448 | if test -n "$WINDMC"; then | |
9449 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9450 | else | |
9451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9452 | for as_dir in $PATH | |
9453 | do | |
9454 | IFS=$as_save_IFS | |
9455 | test -z "$as_dir" && as_dir=. | |
5213506e | 9456 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 9458 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9460 | break 2 |
9461 | fi | |
9462 | done | |
5213506e RW |
9463 | done |
9464 | IFS=$as_save_IFS | |
901119ae KT |
9465 | |
9466 | fi | |
9467 | fi | |
9468 | WINDMC=$ac_cv_prog_WINDMC | |
9469 | if test -n "$WINDMC"; then | |
5213506e RW |
9470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9471 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9472 | else |
5213506e RW |
9473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9474 | $as_echo "no" >&6; } | |
901119ae KT |
9475 | fi |
9476 | ||
5213506e | 9477 | |
901119ae KT |
9478 | done |
9479 | fi | |
9480 | ||
9481 | for ncn_progname in windmc; do | |
9482 | if test -n "$ncn_tool_prefix"; then | |
9483 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9484 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9486 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9487 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 9488 | $as_echo_n "(cached) " >&6 |
901119ae KT |
9489 | else |
9490 | if test -n "$WINDMC"; then | |
9491 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9492 | else | |
9493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9494 | for as_dir in $PATH | |
9495 | do | |
9496 | IFS=$as_save_IFS | |
9497 | test -z "$as_dir" && as_dir=. | |
5213506e | 9498 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 9500 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9502 | break 2 |
9503 | fi | |
9504 | done | |
5213506e RW |
9505 | done |
9506 | IFS=$as_save_IFS | |
901119ae KT |
9507 | |
9508 | fi | |
9509 | fi | |
9510 | WINDMC=$ac_cv_prog_WINDMC | |
9511 | if test -n "$WINDMC"; then | |
5213506e RW |
9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9513 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9514 | else |
5213506e RW |
9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9516 | $as_echo "no" >&6; } | |
901119ae KT |
9517 | fi |
9518 | ||
5213506e | 9519 | |
901119ae KT |
9520 | fi |
9521 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9522 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9523 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9525 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9526 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 9527 | $as_echo_n "(cached) " >&6 |
901119ae KT |
9528 | else |
9529 | if test -n "$WINDMC"; then | |
9530 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9531 | else | |
9532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9533 | for as_dir in $PATH | |
9534 | do | |
9535 | IFS=$as_save_IFS | |
9536 | test -z "$as_dir" && as_dir=. | |
5213506e | 9537 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9538 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 9539 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9541 | break 2 |
9542 | fi | |
9543 | done | |
5213506e RW |
9544 | done |
9545 | IFS=$as_save_IFS | |
901119ae KT |
9546 | |
9547 | fi | |
9548 | fi | |
9549 | WINDMC=$ac_cv_prog_WINDMC | |
9550 | if test -n "$WINDMC"; then | |
5213506e RW |
9551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9552 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9553 | else |
5213506e RW |
9554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9555 | $as_echo "no" >&6; } | |
901119ae KT |
9556 | fi |
9557 | ||
5213506e | 9558 | |
901119ae KT |
9559 | fi |
9560 | test -n "$ac_cv_prog_WINDMC" && break | |
9561 | done | |
9562 | ||
9563 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9564 | set dummy windmc | |
9565 | if test $build = $host ; then | |
9566 | WINDMC="$2" | |
9567 | else | |
9568 | WINDMC="${ncn_tool_prefix}$2" | |
9569 | fi | |
9570 | fi | |
9571 | ||
9572 | ||
9573 | ||
278a7a38 AO |
9574 | if test -n "$OBJCOPY"; then |
9575 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9576 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9577 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9578 | fi | |
9579 | ||
9580 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9581 | for ncn_progname in objcopy; do | |
9582 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9583 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9585 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9586 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 9587 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9588 | else |
9589 | if test -n "$OBJCOPY"; then | |
9590 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9591 | else | |
9592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9593 | for as_dir in $PATH | |
9594 | do | |
9595 | IFS=$as_save_IFS | |
9596 | test -z "$as_dir" && as_dir=. | |
5213506e | 9597 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9599 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9601 | break 2 |
9602 | fi | |
9603 | done | |
5213506e RW |
9604 | done |
9605 | IFS=$as_save_IFS | |
278a7a38 AO |
9606 | |
9607 | fi | |
9608 | fi | |
9609 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9610 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9612 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9613 | else |
5213506e RW |
9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9615 | $as_echo "no" >&6; } | |
278a7a38 AO |
9616 | fi |
9617 | ||
5213506e | 9618 | |
278a7a38 AO |
9619 | done |
9620 | fi | |
9621 | ||
9622 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9623 | if test -n "$ncn_tool_prefix"; then |
9624 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9625 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9627 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9628 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 9629 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9630 | else |
9631 | if test -n "$OBJCOPY"; then | |
9632 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9633 | else | |
1c710c3c DJ |
9634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9635 | for as_dir in $PATH | |
9636 | do | |
9637 | IFS=$as_save_IFS | |
9638 | test -z "$as_dir" && as_dir=. | |
5213506e | 9639 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9640 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9641 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9643 | break 2 |
9644 | fi | |
9645 | done | |
5213506e RW |
9646 | done |
9647 | IFS=$as_save_IFS | |
1c710c3c | 9648 | |
ca9f4b81 AO |
9649 | fi |
9650 | fi | |
1c710c3c | 9651 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9652 | if test -n "$OBJCOPY"; then |
5213506e RW |
9653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9654 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9655 | else |
5213506e RW |
9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9657 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9658 | fi |
9659 | ||
5213506e | 9660 | |
2693c0b0 PB |
9661 | fi |
9662 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9663 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9664 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9666 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9667 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 9668 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9669 | else |
2693c0b0 PB |
9670 | if test -n "$OBJCOPY"; then |
9671 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9672 | else |
1c710c3c DJ |
9673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9674 | for as_dir in $PATH | |
9675 | do | |
9676 | IFS=$as_save_IFS | |
9677 | test -z "$as_dir" && as_dir=. | |
5213506e | 9678 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9680 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9682 | break 2 |
9683 | fi | |
9684 | done | |
5213506e RW |
9685 | done |
9686 | IFS=$as_save_IFS | |
1c710c3c | 9687 | |
ca9f4b81 AO |
9688 | fi |
9689 | fi | |
1c710c3c | 9690 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9691 | if test -n "$OBJCOPY"; then |
5213506e RW |
9692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9693 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9694 | else |
5213506e RW |
9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9696 | $as_echo "no" >&6; } | |
ca9f4b81 | 9697 | fi |
1c710c3c | 9698 | |
5213506e | 9699 | |
2693c0b0 PB |
9700 | fi |
9701 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9702 | done | |
9703 | ||
9704 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9705 | set dummy objcopy | |
9706 | if test $build = $host ; then | |
9707 | OBJCOPY="$2" | |
ca9f4b81 | 9708 | else |
2693c0b0 | 9709 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9710 | fi |
ca9f4b81 AO |
9711 | fi |
9712 | ||
278a7a38 AO |
9713 | |
9714 | ||
9715 | if test -n "$OBJDUMP"; then | |
9716 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9717 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9718 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9719 | fi | |
9720 | ||
9721 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9722 | for ncn_progname in objdump; do | |
9723 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9724 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9726 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9727 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 9728 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9729 | else |
9730 | if test -n "$OBJDUMP"; then | |
9731 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9732 | else | |
9733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9734 | for as_dir in $PATH | |
9735 | do | |
9736 | IFS=$as_save_IFS | |
9737 | test -z "$as_dir" && as_dir=. | |
5213506e | 9738 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9739 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9740 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9742 | break 2 |
9743 | fi | |
9744 | done | |
5213506e RW |
9745 | done |
9746 | IFS=$as_save_IFS | |
278a7a38 AO |
9747 | |
9748 | fi | |
9749 | fi | |
9750 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9751 | if test -n "$OBJDUMP"; then | |
5213506e RW |
9752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9753 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 9754 | else |
5213506e RW |
9755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9756 | $as_echo "no" >&6; } | |
278a7a38 AO |
9757 | fi |
9758 | ||
5213506e | 9759 | |
278a7a38 AO |
9760 | done |
9761 | fi | |
9762 | ||
9763 | for ncn_progname in objdump; do | |
2693c0b0 PB |
9764 | if test -n "$ncn_tool_prefix"; then |
9765 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9766 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9768 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9769 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 9770 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9771 | else |
9772 | if test -n "$OBJDUMP"; then | |
9773 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9774 | else | |
1c710c3c DJ |
9775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9776 | for as_dir in $PATH | |
9777 | do | |
9778 | IFS=$as_save_IFS | |
9779 | test -z "$as_dir" && as_dir=. | |
5213506e | 9780 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9782 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9784 | break 2 |
9785 | fi | |
9786 | done | |
5213506e RW |
9787 | done |
9788 | IFS=$as_save_IFS | |
1c710c3c | 9789 | |
ca9f4b81 AO |
9790 | fi |
9791 | fi | |
1c710c3c | 9792 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 9793 | if test -n "$OBJDUMP"; then |
5213506e RW |
9794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9795 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9796 | else |
5213506e RW |
9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9798 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9799 | fi |
9800 | ||
5213506e | 9801 | |
2693c0b0 PB |
9802 | fi |
9803 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9804 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9805 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9807 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9808 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 9809 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9810 | else |
2693c0b0 PB |
9811 | if test -n "$OBJDUMP"; then |
9812 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 9813 | else |
1c710c3c DJ |
9814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9815 | for as_dir in $PATH | |
9816 | do | |
9817 | IFS=$as_save_IFS | |
9818 | test -z "$as_dir" && as_dir=. | |
5213506e | 9819 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9821 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9823 | break 2 |
9824 | fi | |
9825 | done | |
5213506e RW |
9826 | done |
9827 | IFS=$as_save_IFS | |
1c710c3c | 9828 | |
ca9f4b81 AO |
9829 | fi |
9830 | fi | |
1c710c3c | 9831 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 9832 | if test -n "$OBJDUMP"; then |
5213506e RW |
9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9834 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9835 | else |
5213506e RW |
9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9837 | $as_echo "no" >&6; } | |
ca9f4b81 | 9838 | fi |
1c710c3c | 9839 | |
5213506e | 9840 | |
2693c0b0 PB |
9841 | fi |
9842 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9843 | done | |
9844 | ||
9845 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9846 | set dummy objdump | |
9847 | if test $build = $host ; then | |
9848 | OBJDUMP="$2" | |
ca9f4b81 | 9849 | else |
2693c0b0 | 9850 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 9851 | fi |
ca9f4b81 AO |
9852 | fi |
9853 | ||
671aa708 NN |
9854 | |
9855 | ||
e4a9a572 IS |
9856 | if test -n "$OTOOL"; then |
9857 | ac_cv_prog_OTOOL=$OTOOL | |
9858 | elif test -n "$ac_cv_prog_OTOOL"; then | |
9859 | OTOOL=$ac_cv_prog_OTOOL | |
9860 | fi | |
9861 | ||
9862 | if test -n "$ac_cv_prog_OTOOL"; then | |
9863 | for ncn_progname in otool; do | |
9864 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9865 | set dummy ${ncn_progname}; ac_word=$2 | |
9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9867 | $as_echo_n "checking for $ac_word... " >&6; } | |
9868 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9869 | $as_echo_n "(cached) " >&6 | |
9870 | else | |
9871 | if test -n "$OTOOL"; then | |
9872 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9873 | else | |
9874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9875 | for as_dir in $PATH | |
9876 | do | |
9877 | IFS=$as_save_IFS | |
9878 | test -z "$as_dir" && as_dir=. | |
9879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9880 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9881 | ac_cv_prog_OTOOL="${ncn_progname}" | |
9882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9883 | break 2 | |
9884 | fi | |
9885 | done | |
9886 | done | |
9887 | IFS=$as_save_IFS | |
9888 | ||
9889 | fi | |
9890 | fi | |
9891 | OTOOL=$ac_cv_prog_OTOOL | |
9892 | if test -n "$OTOOL"; then | |
9893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9894 | $as_echo "$OTOOL" >&6; } | |
9895 | else | |
9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9897 | $as_echo "no" >&6; } | |
9898 | fi | |
9899 | ||
9900 | ||
9901 | done | |
9902 | fi | |
9903 | ||
9904 | for ncn_progname in otool; do | |
9905 | if test -n "$ncn_tool_prefix"; then | |
9906 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9907 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9909 | $as_echo_n "checking for $ac_word... " >&6; } | |
9910 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9911 | $as_echo_n "(cached) " >&6 | |
9912 | else | |
9913 | if test -n "$OTOOL"; then | |
9914 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9915 | else | |
9916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9917 | for as_dir in $PATH | |
9918 | do | |
9919 | IFS=$as_save_IFS | |
9920 | test -z "$as_dir" && as_dir=. | |
9921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9923 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
9924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9925 | break 2 | |
9926 | fi | |
9927 | done | |
9928 | done | |
9929 | IFS=$as_save_IFS | |
9930 | ||
9931 | fi | |
9932 | fi | |
9933 | OTOOL=$ac_cv_prog_OTOOL | |
9934 | if test -n "$OTOOL"; then | |
9935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9936 | $as_echo "$OTOOL" >&6; } | |
9937 | else | |
9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9939 | $as_echo "no" >&6; } | |
9940 | fi | |
9941 | ||
9942 | ||
9943 | fi | |
9944 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
9945 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9946 | set dummy ${ncn_progname}; ac_word=$2 | |
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9948 | $as_echo_n "checking for $ac_word... " >&6; } | |
9949 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9950 | $as_echo_n "(cached) " >&6 | |
9951 | else | |
9952 | if test -n "$OTOOL"; then | |
9953 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9954 | else | |
9955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9956 | for as_dir in $PATH | |
9957 | do | |
9958 | IFS=$as_save_IFS | |
9959 | test -z "$as_dir" && as_dir=. | |
9960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9962 | ac_cv_prog_OTOOL="${ncn_progname}" | |
9963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9964 | break 2 | |
9965 | fi | |
9966 | done | |
9967 | done | |
9968 | IFS=$as_save_IFS | |
9969 | ||
9970 | fi | |
9971 | fi | |
9972 | OTOOL=$ac_cv_prog_OTOOL | |
9973 | if test -n "$OTOOL"; then | |
9974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9975 | $as_echo "$OTOOL" >&6; } | |
9976 | else | |
9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9978 | $as_echo "no" >&6; } | |
9979 | fi | |
9980 | ||
9981 | ||
9982 | fi | |
9983 | test -n "$ac_cv_prog_OTOOL" && break | |
9984 | done | |
9985 | ||
9986 | if test -z "$ac_cv_prog_OTOOL" ; then | |
9987 | set dummy otool | |
9988 | if test $build = $host ; then | |
9989 | OTOOL="$2" | |
9990 | else | |
9991 | OTOOL="${ncn_tool_prefix}$2" | |
9992 | fi | |
9993 | fi | |
9994 | ||
9995 | ||
9996 | ||
e7a82751 RM |
9997 | if test -n "$READELF"; then |
9998 | ac_cv_prog_READELF=$READELF | |
9999 | elif test -n "$ac_cv_prog_READELF"; then | |
10000 | READELF=$ac_cv_prog_READELF | |
10001 | fi | |
10002 | ||
10003 | if test -n "$ac_cv_prog_READELF"; then | |
10004 | for ncn_progname in readelf; do | |
10005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10006 | set dummy ${ncn_progname}; ac_word=$2 | |
10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10008 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10009 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
10010 | $as_echo_n "(cached) " >&6 |
10011 | else | |
10012 | if test -n "$READELF"; then | |
10013 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10014 | else | |
10015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10016 | for as_dir in $PATH | |
10017 | do | |
10018 | IFS=$as_save_IFS | |
10019 | test -z "$as_dir" && as_dir=. | |
10020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
10022 | ac_cv_prog_READELF="${ncn_progname}" |
10023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10024 | break 2 | |
10025 | fi | |
10026 | done | |
10027 | done | |
10028 | IFS=$as_save_IFS | |
10029 | ||
10030 | fi | |
10031 | fi | |
10032 | READELF=$ac_cv_prog_READELF | |
10033 | if test -n "$READELF"; then | |
10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10035 | $as_echo "$READELF" >&6; } | |
10036 | else | |
10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10038 | $as_echo "no" >&6; } | |
10039 | fi | |
10040 | ||
10041 | ||
10042 | done | |
10043 | fi | |
10044 | ||
10045 | for ncn_progname in readelf; do | |
10046 | if test -n "$ncn_tool_prefix"; then | |
10047 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10048 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10050 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10051 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
10052 | $as_echo_n "(cached) " >&6 |
10053 | else | |
10054 | if test -n "$READELF"; then | |
10055 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10056 | else | |
10057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10058 | for as_dir in $PATH | |
10059 | do | |
10060 | IFS=$as_save_IFS | |
10061 | test -z "$as_dir" && as_dir=. | |
10062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
10064 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
10065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10066 | break 2 | |
10067 | fi | |
10068 | done | |
10069 | done | |
10070 | IFS=$as_save_IFS | |
10071 | ||
10072 | fi | |
10073 | fi | |
10074 | READELF=$ac_cv_prog_READELF | |
10075 | if test -n "$READELF"; then | |
10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10077 | $as_echo "$READELF" >&6; } | |
10078 | else | |
10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10080 | $as_echo "no" >&6; } | |
10081 | fi | |
10082 | ||
10083 | ||
10084 | fi | |
10085 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
10086 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10087 | set dummy ${ncn_progname}; ac_word=$2 | |
10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10089 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10090 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
10091 | $as_echo_n "(cached) " >&6 |
10092 | else | |
10093 | if test -n "$READELF"; then | |
10094 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10095 | else | |
10096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10097 | for as_dir in $PATH | |
10098 | do | |
10099 | IFS=$as_save_IFS | |
10100 | test -z "$as_dir" && as_dir=. | |
10101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
10103 | ac_cv_prog_READELF="${ncn_progname}" |
10104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10105 | break 2 | |
10106 | fi | |
10107 | done | |
10108 | done | |
10109 | IFS=$as_save_IFS | |
10110 | ||
10111 | fi | |
10112 | fi | |
10113 | READELF=$ac_cv_prog_READELF | |
10114 | if test -n "$READELF"; then | |
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10116 | $as_echo "$READELF" >&6; } | |
10117 | else | |
10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10119 | $as_echo "no" >&6; } | |
10120 | fi | |
10121 | ||
10122 | ||
10123 | fi | |
10124 | test -n "$ac_cv_prog_READELF" && break | |
10125 | done | |
10126 | ||
10127 | if test -z "$ac_cv_prog_READELF" ; then | |
10128 | set dummy readelf | |
10129 | if test $build = $host ; then | |
10130 | READELF="$2" | |
10131 | else | |
10132 | READELF="${ncn_tool_prefix}$2" | |
10133 | fi | |
10134 | fi | |
10135 | ||
10136 | ||
10137 | ||
671aa708 NN |
10138 | |
10139 | ||
10140 | ||
2abefe3d | 10141 | # Target tools. |
1c710c3c | 10142 | |
5213506e RW |
10143 | # Check whether --with-build-time-tools was given. |
10144 | if test "${with_build_time_tools+set}" = set; then : | |
10145 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
10146 | x/*) ;; |
10147 | *) | |
10148 | with_build_time_tools= | |
5213506e RW |
10149 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10150 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
10151 | ;; |
10152 | esac | |
ca9f4b81 | 10153 | else |
e8b05380 | 10154 | with_build_time_tools= |
5213506e RW |
10155 | fi |
10156 | ||
ca9f4b81 | 10157 | |
278a7a38 AO |
10158 | |
10159 | ||
10160 | if test -n "$CC_FOR_TARGET"; then | |
10161 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10162 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10163 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10164 | fi | |
10165 | ||
10166 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10167 | for ncn_progname in cc gcc; do | |
10168 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10169 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10171 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10172 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 10173 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10174 | else |
10175 | if test -n "$CC_FOR_TARGET"; then | |
10176 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10177 | else | |
10178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10179 | for as_dir in $PATH | |
10180 | do | |
10181 | IFS=$as_save_IFS | |
10182 | test -z "$as_dir" && as_dir=. | |
5213506e | 10183 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10185 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 10186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10187 | break 2 |
10188 | fi | |
10189 | done | |
5213506e RW |
10190 | done |
10191 | IFS=$as_save_IFS | |
278a7a38 AO |
10192 | |
10193 | fi | |
10194 | fi | |
10195 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10196 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
10197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10198 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 10199 | else |
5213506e RW |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10201 | $as_echo "no" >&6; } | |
278a7a38 AO |
10202 | fi |
10203 | ||
5213506e | 10204 | |
278a7a38 AO |
10205 | done |
10206 | fi | |
10207 | ||
10208 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10209 | for ncn_progname in cc gcc; do |
5213506e RW |
10210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10211 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10212 | if test -x $with_build_time_tools/${ncn_progname}; then |
10213 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10215 | $as_echo "yes" >&6; } | |
72a7ab82 | 10216 | break |
e8b05380 | 10217 | else |
5213506e RW |
10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10219 | $as_echo "no" >&6; } | |
72a7ab82 AP |
10220 | fi |
10221 | done | |
4de997d1 PB |
10222 | fi |
10223 | ||
e8b05380 PB |
10224 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10225 | for ncn_progname in cc gcc; do | |
10226 | if test -n "$ncn_target_tool_prefix"; then | |
10227 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10228 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10230 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10231 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 10232 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
10233 | else |
10234 | if test -n "$CC_FOR_TARGET"; then | |
10235 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10236 | else | |
1c710c3c DJ |
10237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10238 | for as_dir in $PATH | |
10239 | do | |
10240 | IFS=$as_save_IFS | |
10241 | test -z "$as_dir" && as_dir=. | |
5213506e | 10242 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10244 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10246 | break 2 |
10247 | fi | |
10248 | done | |
5213506e RW |
10249 | done |
10250 | IFS=$as_save_IFS | |
1c710c3c | 10251 | |
4de997d1 PB |
10252 | fi |
10253 | fi | |
1c710c3c | 10254 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 10255 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10257 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10258 | else |
5213506e RW |
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10260 | $as_echo "no" >&6; } | |
4de997d1 PB |
10261 | fi |
10262 | ||
5213506e | 10263 | |
e8b05380 PB |
10264 | fi |
10265 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10266 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10267 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10269 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10270 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 10271 | $as_echo_n "(cached) " >&6 |
4de997d1 | 10272 | else |
2693c0b0 PB |
10273 | if test -n "$CC_FOR_TARGET"; then |
10274 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10275 | else |
1c710c3c DJ |
10276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10277 | for as_dir in $PATH | |
10278 | do | |
10279 | IFS=$as_save_IFS | |
10280 | test -z "$as_dir" && as_dir=. | |
5213506e | 10281 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10283 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 10284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10285 | break 2 |
10286 | fi | |
10287 | done | |
5213506e RW |
10288 | done |
10289 | IFS=$as_save_IFS | |
1c710c3c | 10290 | |
4de997d1 PB |
10291 | fi |
10292 | fi | |
1c710c3c | 10293 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 10294 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10296 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10297 | else |
5213506e RW |
10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10299 | $as_echo "no" >&6; } | |
4de997d1 | 10300 | fi |
1c710c3c | 10301 | |
5213506e | 10302 | |
e8b05380 PB |
10303 | fi |
10304 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10305 | done | |
10306 | fi | |
1c710c3c | 10307 | |
2693c0b0 PB |
10308 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10309 | set dummy cc gcc | |
10310 | if test $build = $target ; then | |
10311 | CC_FOR_TARGET="$2" | |
4de997d1 | 10312 | else |
2693c0b0 | 10313 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10314 | fi |
1c00b503 PB |
10315 | else |
10316 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
10317 | fi |
10318 | ||
278a7a38 AO |
10319 | |
10320 | ||
10321 | if test -n "$CXX_FOR_TARGET"; then | |
10322 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10323 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10324 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10325 | fi | |
10326 | ||
10327 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10328 | for ncn_progname in c++ g++ cxx gxx; do | |
10329 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10330 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10332 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10333 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 10334 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10335 | else |
10336 | if test -n "$CXX_FOR_TARGET"; then | |
10337 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10338 | else | |
10339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10340 | for as_dir in $PATH | |
10341 | do | |
10342 | IFS=$as_save_IFS | |
10343 | test -z "$as_dir" && as_dir=. | |
5213506e | 10344 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10346 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10348 | break 2 |
10349 | fi | |
10350 | done | |
5213506e RW |
10351 | done |
10352 | IFS=$as_save_IFS | |
278a7a38 AO |
10353 | |
10354 | fi | |
10355 | fi | |
10356 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10357 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
10358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10359 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 10360 | else |
5213506e RW |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10362 | $as_echo "no" >&6; } | |
278a7a38 AO |
10363 | fi |
10364 | ||
5213506e | 10365 | |
278a7a38 AO |
10366 | done |
10367 | fi | |
10368 | ||
10369 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10370 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10372 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10373 | if test -x $with_build_time_tools/${ncn_progname}; then |
10374 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10376 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10377 | break |
10378 | else | |
5213506e RW |
10379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10380 | $as_echo "no" >&6; } | |
e8b05380 PB |
10381 | fi |
10382 | done | |
10383 | fi | |
10384 | ||
10385 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10386 | for ncn_progname in c++ g++ cxx gxx; do | |
10387 | if test -n "$ncn_target_tool_prefix"; then | |
10388 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10389 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10391 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10392 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 10393 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
10394 | else |
10395 | if test -n "$CXX_FOR_TARGET"; then | |
10396 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10397 | else | |
1c710c3c DJ |
10398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10399 | for as_dir in $PATH | |
10400 | do | |
10401 | IFS=$as_save_IFS | |
10402 | test -z "$as_dir" && as_dir=. | |
5213506e | 10403 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10404 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10405 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10407 | break 2 |
10408 | fi | |
10409 | done | |
5213506e RW |
10410 | done |
10411 | IFS=$as_save_IFS | |
1c710c3c | 10412 | |
4de997d1 PB |
10413 | fi |
10414 | fi | |
1c710c3c | 10415 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 10416 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10418 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10419 | else |
5213506e RW |
10420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10421 | $as_echo "no" >&6; } | |
4de997d1 PB |
10422 | fi |
10423 | ||
5213506e | 10424 | |
e8b05380 PB |
10425 | fi |
10426 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10427 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10428 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10430 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10431 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 10432 | $as_echo_n "(cached) " >&6 |
4de997d1 | 10433 | else |
2693c0b0 PB |
10434 | if test -n "$CXX_FOR_TARGET"; then |
10435 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10436 | else |
1c710c3c DJ |
10437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10438 | for as_dir in $PATH | |
10439 | do | |
10440 | IFS=$as_save_IFS | |
10441 | test -z "$as_dir" && as_dir=. | |
5213506e | 10442 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10444 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10446 | break 2 |
10447 | fi | |
10448 | done | |
5213506e RW |
10449 | done |
10450 | IFS=$as_save_IFS | |
1c710c3c | 10451 | |
4de997d1 PB |
10452 | fi |
10453 | fi | |
1c710c3c | 10454 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 10455 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10457 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10458 | else |
5213506e RW |
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10460 | $as_echo "no" >&6; } | |
4de997d1 | 10461 | fi |
1c710c3c | 10462 | |
5213506e | 10463 | |
e8b05380 PB |
10464 | fi |
10465 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10466 | done | |
10467 | fi | |
1c710c3c | 10468 | |
2693c0b0 PB |
10469 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10470 | set dummy c++ g++ cxx gxx | |
10471 | if test $build = $target ; then | |
10472 | CXX_FOR_TARGET="$2" | |
4de997d1 | 10473 | else |
2693c0b0 | 10474 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10475 | fi |
1c00b503 PB |
10476 | else |
10477 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
10478 | fi |
10479 | ||
278a7a38 AO |
10480 | |
10481 | ||
10482 | if test -n "$GCC_FOR_TARGET"; then | |
10483 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10484 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10485 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10486 | fi | |
10487 | ||
10488 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10489 | for ncn_progname in gcc; do | |
10490 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10491 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10493 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10494 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 10495 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10496 | else |
10497 | if test -n "$GCC_FOR_TARGET"; then | |
10498 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10499 | else | |
10500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10501 | for as_dir in $PATH | |
10502 | do | |
10503 | IFS=$as_save_IFS | |
10504 | test -z "$as_dir" && as_dir=. | |
5213506e | 10505 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10507 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10509 | break 2 |
10510 | fi | |
10511 | done | |
5213506e RW |
10512 | done |
10513 | IFS=$as_save_IFS | |
278a7a38 AO |
10514 | |
10515 | fi | |
10516 | fi | |
10517 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10518 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
10519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10520 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 10521 | else |
5213506e RW |
10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10523 | $as_echo "no" >&6; } | |
278a7a38 AO |
10524 | fi |
10525 | ||
5213506e | 10526 | |
278a7a38 AO |
10527 | done |
10528 | fi | |
10529 | ||
10530 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10531 | for ncn_progname in gcc; do |
5213506e RW |
10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10533 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10534 | if test -x $with_build_time_tools/${ncn_progname}; then |
10535 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10537 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10538 | break |
10539 | else | |
5213506e RW |
10540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10541 | $as_echo "no" >&6; } | |
e8b05380 PB |
10542 | fi |
10543 | done | |
10544 | fi | |
10545 | ||
10546 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10547 | for ncn_progname in gcc; do | |
10548 | if test -n "$ncn_target_tool_prefix"; then | |
10549 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10550 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10552 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10553 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 10554 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10555 | else |
e8b05380 PB |
10556 | if test -n "$GCC_FOR_TARGET"; then |
10557 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10558 | else |
1c710c3c DJ |
10559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10560 | for as_dir in $PATH | |
10561 | do | |
10562 | IFS=$as_save_IFS | |
10563 | test -z "$as_dir" && as_dir=. | |
5213506e | 10564 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10565 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10566 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10568 | break 2 |
10569 | fi | |
10570 | done | |
5213506e RW |
10571 | done |
10572 | IFS=$as_save_IFS | |
1c710c3c | 10573 | |
ca9f4b81 AO |
10574 | fi |
10575 | fi | |
1c710c3c | 10576 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10577 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10579 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10580 | else |
5213506e RW |
10581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10582 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10583 | fi |
10584 | ||
5213506e | 10585 | |
e8b05380 PB |
10586 | fi |
10587 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10588 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10589 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10591 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10592 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 10593 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10594 | else |
e8b05380 PB |
10595 | if test -n "$GCC_FOR_TARGET"; then |
10596 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10597 | else |
1c710c3c DJ |
10598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10599 | for as_dir in $PATH | |
10600 | do | |
10601 | IFS=$as_save_IFS | |
10602 | test -z "$as_dir" && as_dir=. | |
5213506e | 10603 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10604 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10605 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10607 | break 2 |
10608 | fi | |
10609 | done | |
5213506e RW |
10610 | done |
10611 | IFS=$as_save_IFS | |
1c710c3c | 10612 | |
ca9f4b81 AO |
10613 | fi |
10614 | fi | |
1c710c3c | 10615 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10616 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10618 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10619 | else |
5213506e RW |
10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10621 | $as_echo "no" >&6; } | |
ca9f4b81 | 10622 | fi |
1c710c3c | 10623 | |
5213506e | 10624 | |
e8b05380 PB |
10625 | fi |
10626 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10627 | done | |
10628 | fi | |
1c710c3c | 10629 | |
e8b05380 PB |
10630 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10631 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10632 | else |
10633 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10634 | fi |
10635 | ||
278a7a38 AO |
10636 | |
10637 | ||
278a7a38 AO |
10638 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10639 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10640 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10641 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10642 | fi |
10643 | ||
278a7a38 AO |
10644 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10645 | for ncn_progname in gfortran; do | |
10646 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10647 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10649 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10650 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 10651 | $as_echo_n "(cached) " >&6 |
e8b05380 | 10652 | else |
278a7a38 AO |
10653 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10654 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10655 | else |
1c710c3c DJ |
10656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10657 | for as_dir in $PATH | |
10658 | do | |
10659 | IFS=$as_save_IFS | |
10660 | test -z "$as_dir" && as_dir=. | |
5213506e | 10661 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10663 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10665 | break 2 |
10666 | fi | |
10667 | done | |
5213506e RW |
10668 | done |
10669 | IFS=$as_save_IFS | |
1c710c3c | 10670 | |
e8b05380 PB |
10671 | fi |
10672 | fi | |
278a7a38 AO |
10673 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10674 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10676 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10677 | else |
5213506e RW |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10679 | $as_echo "no" >&6; } | |
e8b05380 | 10680 | fi |
1c710c3c | 10681 | |
5213506e | 10682 | |
e8b05380 PB |
10683 | done |
10684 | fi | |
1c710c3c | 10685 | |
278a7a38 | 10686 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10687 | for ncn_progname in gfortran; do |
5213506e RW |
10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10689 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10690 | if test -x $with_build_time_tools/${ncn_progname}; then |
10691 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10693 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10694 | break |
10695 | else | |
5213506e RW |
10696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10697 | $as_echo "no" >&6; } | |
e8b05380 PB |
10698 | fi |
10699 | done | |
10700 | fi | |
10701 | ||
10702 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10703 | for ncn_progname in gfortran; do | |
10704 | if test -n "$ncn_target_tool_prefix"; then | |
10705 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10706 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10708 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10709 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 10710 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
10711 | else |
10712 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10713 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10714 | else | |
10715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10716 | for as_dir in $PATH | |
10717 | do | |
10718 | IFS=$as_save_IFS | |
10719 | test -z "$as_dir" && as_dir=. | |
5213506e | 10720 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10722 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10724 | break 2 |
10725 | fi | |
10726 | done | |
5213506e RW |
10727 | done |
10728 | IFS=$as_save_IFS | |
1c710c3c | 10729 | |
e8b05380 PB |
10730 | fi |
10731 | fi | |
1c710c3c | 10732 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10733 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10735 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10736 | else |
5213506e RW |
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10738 | $as_echo "no" >&6; } | |
e8b05380 PB |
10739 | fi |
10740 | ||
5213506e | 10741 | |
e8b05380 PB |
10742 | fi |
10743 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10744 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10745 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10747 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10748 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 10749 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
10750 | else |
10751 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10752 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10753 | else | |
1c710c3c DJ |
10754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10755 | for as_dir in $PATH | |
10756 | do | |
10757 | IFS=$as_save_IFS | |
10758 | test -z "$as_dir" && as_dir=. | |
5213506e | 10759 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10760 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10761 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10763 | break 2 |
10764 | fi | |
10765 | done | |
5213506e RW |
10766 | done |
10767 | IFS=$as_save_IFS | |
1c710c3c | 10768 | |
e8b05380 PB |
10769 | fi |
10770 | fi | |
1c710c3c | 10771 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10772 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10774 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10775 | else |
5213506e RW |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10777 | $as_echo "no" >&6; } | |
e8b05380 | 10778 | fi |
1c710c3c | 10779 | |
5213506e | 10780 | |
e8b05380 PB |
10781 | fi |
10782 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10783 | done | |
10784 | fi | |
1c710c3c | 10785 | |
e8b05380 PB |
10786 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10787 | set dummy gfortran | |
2693c0b0 | 10788 | if test $build = $target ; then |
e8b05380 | 10789 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 10790 | else |
e8b05380 PB |
10791 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10792 | fi | |
1c00b503 PB |
10793 | else |
10794 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
10795 | fi |
10796 | ||
10797 | ||
10798 | ||
632e2a07 ILT |
10799 | if test -n "$GOC_FOR_TARGET"; then |
10800 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10801 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10802 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10803 | fi | |
10804 | ||
10805 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10806 | for ncn_progname in gccgo; do | |
10807 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10808 | set dummy ${ncn_progname}; ac_word=$2 | |
10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10810 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10811 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
10812 | $as_echo_n "(cached) " >&6 |
10813 | else | |
10814 | if test -n "$GOC_FOR_TARGET"; then | |
10815 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10816 | else | |
10817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10818 | for as_dir in $PATH | |
10819 | do | |
10820 | IFS=$as_save_IFS | |
10821 | test -z "$as_dir" && as_dir=. | |
10822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
10824 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10826 | break 2 | |
10827 | fi | |
10828 | done | |
10829 | done | |
10830 | IFS=$as_save_IFS | |
10831 | ||
10832 | fi | |
10833 | fi | |
10834 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10835 | if test -n "$GOC_FOR_TARGET"; then | |
10836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10837 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10838 | else | |
10839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10840 | $as_echo "no" >&6; } | |
10841 | fi | |
10842 | ||
10843 | ||
10844 | done | |
10845 | fi | |
10846 | ||
10847 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10848 | for ncn_progname in gccgo; do | |
10849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10850 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10851 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10852 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10854 | $as_echo "yes" >&6; } | |
10855 | break | |
10856 | else | |
10857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10858 | $as_echo "no" >&6; } | |
10859 | fi | |
10860 | done | |
10861 | fi | |
10862 | ||
10863 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10864 | for ncn_progname in gccgo; do | |
10865 | if test -n "$ncn_target_tool_prefix"; then | |
10866 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10867 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10869 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10870 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
10871 | $as_echo_n "(cached) " >&6 |
10872 | else | |
10873 | if test -n "$GOC_FOR_TARGET"; then | |
10874 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10875 | else | |
10876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10877 | for as_dir in $PATH | |
10878 | do | |
10879 | IFS=$as_save_IFS | |
10880 | test -z "$as_dir" && as_dir=. | |
10881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10882 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
10883 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10885 | break 2 | |
10886 | fi | |
10887 | done | |
10888 | done | |
10889 | IFS=$as_save_IFS | |
10890 | ||
10891 | fi | |
10892 | fi | |
10893 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10894 | if test -n "$GOC_FOR_TARGET"; then | |
10895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10896 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10897 | else | |
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10899 | $as_echo "no" >&6; } | |
10900 | fi | |
10901 | ||
10902 | ||
10903 | fi | |
10904 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10905 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10906 | set dummy ${ncn_progname}; ac_word=$2 | |
10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10908 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10909 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
10910 | $as_echo_n "(cached) " >&6 |
10911 | else | |
10912 | if test -n "$GOC_FOR_TARGET"; then | |
10913 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10914 | else | |
10915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10916 | for as_dir in $PATH | |
10917 | do | |
10918 | IFS=$as_save_IFS | |
10919 | test -z "$as_dir" && as_dir=. | |
10920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
10922 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10924 | break 2 | |
10925 | fi | |
10926 | done | |
10927 | done | |
10928 | IFS=$as_save_IFS | |
10929 | ||
10930 | fi | |
10931 | fi | |
10932 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10933 | if test -n "$GOC_FOR_TARGET"; then | |
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10935 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10936 | else | |
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10938 | $as_echo "no" >&6; } | |
10939 | fi | |
10940 | ||
10941 | ||
10942 | fi | |
10943 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10944 | done | |
10945 | fi | |
10946 | ||
10947 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10948 | set dummy gccgo | |
10949 | if test $build = $target ; then | |
10950 | GOC_FOR_TARGET="$2" | |
10951 | else | |
10952 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10953 | fi | |
10954 | else | |
10955 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10956 | fi | |
10957 | ||
10958 | ||
10959 | ||
b4c522fa IB |
10960 | if test -n "$GDC_FOR_TARGET"; then |
10961 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
10962 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
10963 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
10964 | fi | |
10965 | ||
10966 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
10967 | for ncn_progname in gdc; do | |
10968 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10969 | set dummy ${ncn_progname}; ac_word=$2 | |
10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10971 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10972 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
10973 | $as_echo_n "(cached) " >&6 |
10974 | else | |
10975 | if test -n "$GDC_FOR_TARGET"; then | |
10976 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
10977 | else | |
10978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10979 | for as_dir in $PATH | |
10980 | do | |
10981 | IFS=$as_save_IFS | |
10982 | test -z "$as_dir" && as_dir=. | |
10983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
10985 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
10986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10987 | break 2 | |
10988 | fi | |
10989 | done | |
10990 | done | |
10991 | IFS=$as_save_IFS | |
10992 | ||
10993 | fi | |
10994 | fi | |
10995 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
10996 | if test -n "$GDC_FOR_TARGET"; then | |
10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
10998 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
10999 | else | |
11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11001 | $as_echo "no" >&6; } | |
11002 | fi | |
11003 | ||
11004 | ||
11005 | done | |
11006 | fi | |
11007 | ||
11008 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11009 | for ncn_progname in gdc; do | |
11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11011 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11012 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11013 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11015 | $as_echo "yes" >&6; } | |
11016 | break | |
11017 | else | |
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11019 | $as_echo "no" >&6; } | |
11020 | fi | |
11021 | done | |
11022 | fi | |
11023 | ||
11024 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
11025 | for ncn_progname in gdc; do | |
11026 | if test -n "$ncn_target_tool_prefix"; then | |
11027 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11028 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11030 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11031 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
11032 | $as_echo_n "(cached) " >&6 |
11033 | else | |
11034 | if test -n "$GDC_FOR_TARGET"; then | |
11035 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11036 | else | |
11037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11038 | for as_dir in $PATH | |
11039 | do | |
11040 | IFS=$as_save_IFS | |
11041 | test -z "$as_dir" && as_dir=. | |
11042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11043 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
11044 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11046 | break 2 | |
11047 | fi | |
11048 | done | |
11049 | done | |
11050 | IFS=$as_save_IFS | |
11051 | ||
11052 | fi | |
11053 | fi | |
11054 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11055 | if test -n "$GDC_FOR_TARGET"; then | |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11057 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11058 | else | |
11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11060 | $as_echo "no" >&6; } | |
11061 | fi | |
11062 | ||
11063 | ||
11064 | fi | |
11065 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
11066 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11067 | set dummy ${ncn_progname}; ac_word=$2 | |
11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11069 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11070 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
11071 | $as_echo_n "(cached) " >&6 |
11072 | else | |
11073 | if test -n "$GDC_FOR_TARGET"; then | |
11074 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11075 | else | |
11076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11077 | for as_dir in $PATH | |
11078 | do | |
11079 | IFS=$as_save_IFS | |
11080 | test -z "$as_dir" && as_dir=. | |
11081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
11083 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
11084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11085 | break 2 | |
11086 | fi | |
11087 | done | |
11088 | done | |
11089 | IFS=$as_save_IFS | |
11090 | ||
11091 | fi | |
11092 | fi | |
11093 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11094 | if test -n "$GDC_FOR_TARGET"; then | |
11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11096 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11097 | else | |
11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11099 | $as_echo "no" >&6; } | |
11100 | fi | |
11101 | ||
11102 | ||
11103 | fi | |
11104 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
11105 | done | |
11106 | fi | |
11107 | ||
11108 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
11109 | set dummy gdc | |
11110 | if test $build = $target ; then | |
11111 | GDC_FOR_TARGET="$2" | |
11112 | else | |
11113 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11114 | fi | |
11115 | else | |
11116 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
11117 | fi | |
11118 | ||
11119 | ||
11120 | ||
e8b05380 PB |
11121 | cat > conftest.c << \EOF |
11122 | #ifdef __GNUC__ | |
11123 | gcc_yay; | |
11124 | #endif | |
11125 | EOF | |
11126 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
11127 | have_gcc_for_target=yes | |
11128 | else | |
11129 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
11130 | have_gcc_for_target=no | |
11131 | fi | |
11132 | rm conftest.c | |
11133 | ||
11134 | ||
11135 | ||
11136 | ||
11137 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
11138 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
11140 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11141 | if test -x $with_build_time_tools/ar; then |
11142 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
11143 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
11144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
11145 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 11146 | else |
5213506e RW |
11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11148 | $as_echo "no" >&6; } | |
d1f8db0c | 11149 | fi |
e8b05380 PB |
11150 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11151 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
11152 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
11153 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
11154 | fi |
11155 | fi | |
3e19841a | 11156 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11157 | # Extract the first word of "ar", so it can be a program name with args. |
11158 | set dummy ar; ac_word=$2 | |
5213506e RW |
11159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11160 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11161 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 11162 | $as_echo_n "(cached) " >&6 |
e8b05380 | 11163 | else |
1c710c3c DJ |
11164 | case $AR_FOR_TARGET in |
11165 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11166 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11167 | ;; | |
e8b05380 | 11168 | *) |
1c710c3c DJ |
11169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11170 | for as_dir in $gcc_cv_tool_dirs | |
11171 | do | |
11172 | IFS=$as_save_IFS | |
11173 | test -z "$as_dir" && as_dir=. | |
5213506e | 11174 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11176 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11178 | break 2 |
11179 | fi | |
11180 | done | |
5213506e RW |
11181 | done |
11182 | IFS=$as_save_IFS | |
1c710c3c | 11183 | |
e8b05380 PB |
11184 | ;; |
11185 | esac | |
11186 | fi | |
1c710c3c | 11187 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 11188 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11190 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 11191 | else |
5213506e RW |
11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11193 | $as_echo "no" >&6; } | |
4de997d1 PB |
11194 | fi |
11195 | ||
5213506e | 11196 | |
e8b05380 PB |
11197 | fi |
11198 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
11199 | |
11200 | ||
11201 | if test -n "$AR_FOR_TARGET"; then | |
11202 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11203 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11204 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11205 | fi | |
11206 | ||
11207 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11208 | for ncn_progname in ar; do | |
11209 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11210 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11212 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11213 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 11214 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11215 | else |
11216 | if test -n "$AR_FOR_TARGET"; then | |
11217 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11218 | else | |
11219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11220 | for as_dir in $PATH | |
11221 | do | |
11222 | IFS=$as_save_IFS | |
11223 | test -z "$as_dir" && as_dir=. | |
5213506e | 11224 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11225 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11226 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11228 | break 2 |
11229 | fi | |
11230 | done | |
5213506e RW |
11231 | done |
11232 | IFS=$as_save_IFS | |
278a7a38 AO |
11233 | |
11234 | fi | |
11235 | fi | |
11236 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11237 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
11238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11239 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 11240 | else |
5213506e RW |
11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11242 | $as_echo "no" >&6; } | |
278a7a38 AO |
11243 | fi |
11244 | ||
5213506e | 11245 | |
278a7a38 AO |
11246 | done |
11247 | fi | |
11248 | ||
11249 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11250 | for ncn_progname in ar; do |
5213506e RW |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11252 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11253 | if test -x $with_build_time_tools/${ncn_progname}; then |
11254 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11256 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11257 | break |
11258 | else | |
5213506e RW |
11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11260 | $as_echo "no" >&6; } | |
e8b05380 PB |
11261 | fi |
11262 | done | |
11263 | fi | |
11264 | ||
11265 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
11266 | for ncn_progname in ar; do | |
11267 | if test -n "$ncn_target_tool_prefix"; then | |
11268 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11269 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11271 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11272 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 11273 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11274 | else |
e8b05380 PB |
11275 | if test -n "$AR_FOR_TARGET"; then |
11276 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11277 | else |
1c710c3c DJ |
11278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11279 | for as_dir in $PATH | |
11280 | do | |
11281 | IFS=$as_save_IFS | |
11282 | test -z "$as_dir" && as_dir=. | |
5213506e | 11283 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11285 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11287 | break 2 |
11288 | fi | |
11289 | done | |
5213506e RW |
11290 | done |
11291 | IFS=$as_save_IFS | |
1c710c3c | 11292 | |
4de997d1 PB |
11293 | fi |
11294 | fi | |
1c710c3c | 11295 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11296 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11298 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 11299 | else |
5213506e RW |
11300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11301 | $as_echo "no" >&6; } | |
4de997d1 PB |
11302 | fi |
11303 | ||
5213506e | 11304 | |
e8b05380 PB |
11305 | fi |
11306 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11307 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11308 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11310 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11311 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 11312 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
11313 | else |
11314 | if test -n "$AR_FOR_TARGET"; then | |
11315 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11316 | else | |
1c710c3c DJ |
11317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11318 | for as_dir in $PATH | |
11319 | do | |
11320 | IFS=$as_save_IFS | |
11321 | test -z "$as_dir" && as_dir=. | |
5213506e | 11322 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11324 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11326 | break 2 |
11327 | fi | |
11328 | done | |
5213506e RW |
11329 | done |
11330 | IFS=$as_save_IFS | |
1c710c3c | 11331 | |
e8b05380 PB |
11332 | fi |
11333 | fi | |
1c710c3c | 11334 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11335 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11337 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 11338 | else |
5213506e RW |
11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11340 | $as_echo "no" >&6; } | |
e8b05380 | 11341 | fi |
1c710c3c | 11342 | |
5213506e | 11343 | |
e8b05380 PB |
11344 | fi |
11345 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11346 | done | |
11347 | fi | |
1c710c3c | 11348 | |
e8b05380 PB |
11349 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11350 | set dummy ar | |
11351 | if test $build = $target ; then | |
11352 | AR_FOR_TARGET="$2" | |
11353 | else | |
11354 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 11355 | fi |
1c00b503 PB |
11356 | else |
11357 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
11358 | fi |
11359 | ||
d1f8db0c PB |
11360 | else |
11361 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
11362 | fi |
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11368 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11370 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11371 | if test -x $with_build_time_tools/as; then |
11372 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11373 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11375 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 11376 | else |
5213506e RW |
11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11378 | $as_echo "no" >&6; } | |
d1f8db0c | 11379 | fi |
e8b05380 PB |
11380 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11381 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
11382 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11383 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
11384 | fi |
11385 | fi | |
3e19841a | 11386 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11387 | # Extract the first word of "as", so it can be a program name with args. |
11388 | set dummy as; ac_word=$2 | |
5213506e RW |
11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11390 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11391 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 11392 | $as_echo_n "(cached) " >&6 |
e8b05380 | 11393 | else |
1c710c3c DJ |
11394 | case $AS_FOR_TARGET in |
11395 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11396 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11397 | ;; | |
e8b05380 | 11398 | *) |
1c710c3c DJ |
11399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11400 | for as_dir in $gcc_cv_tool_dirs | |
11401 | do | |
11402 | IFS=$as_save_IFS | |
11403 | test -z "$as_dir" && as_dir=. | |
5213506e | 11404 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11405 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11406 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11408 | break 2 |
11409 | fi | |
11410 | done | |
5213506e RW |
11411 | done |
11412 | IFS=$as_save_IFS | |
1c710c3c | 11413 | |
e8b05380 PB |
11414 | ;; |
11415 | esac | |
11416 | fi | |
1c710c3c | 11417 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 11418 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11420 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11421 | else |
5213506e RW |
11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11423 | $as_echo "no" >&6; } | |
e8b05380 PB |
11424 | fi |
11425 | ||
5213506e | 11426 | |
e8b05380 PB |
11427 | fi |
11428 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
11429 | |
11430 | ||
11431 | if test -n "$AS_FOR_TARGET"; then | |
11432 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11433 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11434 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11435 | fi | |
11436 | ||
11437 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11438 | for ncn_progname in as; do | |
11439 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11440 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11442 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11443 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 11444 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11445 | else |
11446 | if test -n "$AS_FOR_TARGET"; then | |
11447 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11448 | else | |
11449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11450 | for as_dir in $PATH | |
11451 | do | |
11452 | IFS=$as_save_IFS | |
11453 | test -z "$as_dir" && as_dir=. | |
5213506e | 11454 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11456 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11458 | break 2 |
11459 | fi | |
11460 | done | |
5213506e RW |
11461 | done |
11462 | IFS=$as_save_IFS | |
278a7a38 AO |
11463 | |
11464 | fi | |
11465 | fi | |
11466 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11467 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11469 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 11470 | else |
5213506e RW |
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11472 | $as_echo "no" >&6; } | |
278a7a38 AO |
11473 | fi |
11474 | ||
5213506e | 11475 | |
278a7a38 AO |
11476 | done |
11477 | fi | |
11478 | ||
11479 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11480 | for ncn_progname in as; do |
5213506e RW |
11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11482 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11483 | if test -x $with_build_time_tools/${ncn_progname}; then |
11484 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11486 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11487 | break |
11488 | else | |
5213506e RW |
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11490 | $as_echo "no" >&6; } | |
e8b05380 PB |
11491 | fi |
11492 | done | |
11493 | fi | |
11494 | ||
11495 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11496 | for ncn_progname in as; do | |
11497 | if test -n "$ncn_target_tool_prefix"; then | |
11498 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11499 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11501 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11502 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 11503 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
11504 | else |
11505 | if test -n "$AS_FOR_TARGET"; then | |
11506 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11507 | else | |
1c710c3c DJ |
11508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11509 | for as_dir in $PATH | |
11510 | do | |
11511 | IFS=$as_save_IFS | |
11512 | test -z "$as_dir" && as_dir=. | |
5213506e | 11513 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11515 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11517 | break 2 |
11518 | fi | |
11519 | done | |
5213506e RW |
11520 | done |
11521 | IFS=$as_save_IFS | |
1c710c3c | 11522 | |
e8b05380 PB |
11523 | fi |
11524 | fi | |
1c710c3c | 11525 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11526 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11528 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11529 | else |
5213506e RW |
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11531 | $as_echo "no" >&6; } | |
e8b05380 PB |
11532 | fi |
11533 | ||
5213506e | 11534 | |
e8b05380 PB |
11535 | fi |
11536 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11537 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11538 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11540 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11541 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 11542 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11543 | else |
e8b05380 PB |
11544 | if test -n "$AS_FOR_TARGET"; then |
11545 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11546 | else |
1c710c3c DJ |
11547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11548 | for as_dir in $PATH | |
11549 | do | |
11550 | IFS=$as_save_IFS | |
11551 | test -z "$as_dir" && as_dir=. | |
5213506e | 11552 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11553 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11554 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11556 | break 2 |
11557 | fi | |
11558 | done | |
5213506e RW |
11559 | done |
11560 | IFS=$as_save_IFS | |
1c710c3c | 11561 | |
4de997d1 PB |
11562 | fi |
11563 | fi | |
1c710c3c | 11564 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11565 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11567 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11568 | else |
5213506e RW |
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11570 | $as_echo "no" >&6; } | |
4de997d1 | 11571 | fi |
1c710c3c | 11572 | |
5213506e | 11573 | |
e8b05380 PB |
11574 | fi |
11575 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11576 | done | |
11577 | fi | |
1c710c3c | 11578 | |
e8b05380 PB |
11579 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11580 | set dummy as | |
11581 | if test $build = $target ; then | |
11582 | AS_FOR_TARGET="$2" | |
11583 | else | |
11584 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11585 | fi |
1c00b503 PB |
11586 | else |
11587 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11588 | fi |
2693c0b0 | 11589 | |
d1f8db0c PB |
11590 | else |
11591 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11592 | fi |
11593 | ||
e8b05380 PB |
11594 | |
11595 | ||
11596 | ||
11597 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11598 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11600 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11601 | if test -x $with_build_time_tools/dlltool; then |
11602 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11603 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11605 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11606 | else |
5213506e RW |
11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11608 | $as_echo "no" >&6; } | |
d1f8db0c | 11609 | fi |
e8b05380 PB |
11610 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11611 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11612 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11613 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11614 | fi |
11615 | fi | |
3e19841a | 11616 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11617 | # Extract the first word of "dlltool", so it can be a program name with args. |
11618 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11620 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11621 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11622 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11623 | else |
1c710c3c DJ |
11624 | case $DLLTOOL_FOR_TARGET in |
11625 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11626 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11627 | ;; | |
e8b05380 | 11628 | *) |
1c710c3c DJ |
11629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11630 | for as_dir in $gcc_cv_tool_dirs | |
11631 | do | |
11632 | IFS=$as_save_IFS | |
11633 | test -z "$as_dir" && as_dir=. | |
5213506e | 11634 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11636 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11638 | break 2 |
11639 | fi | |
11640 | done | |
5213506e RW |
11641 | done |
11642 | IFS=$as_save_IFS | |
1c710c3c | 11643 | |
e8b05380 PB |
11644 | ;; |
11645 | esac | |
4de997d1 | 11646 | fi |
1c710c3c | 11647 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11648 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11650 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11651 | else |
5213506e RW |
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11653 | $as_echo "no" >&6; } | |
4de997d1 PB |
11654 | fi |
11655 | ||
5213506e | 11656 | |
e8b05380 PB |
11657 | fi |
11658 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11659 | |
11660 | ||
11661 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11662 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11663 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11664 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11665 | fi | |
11666 | ||
11667 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11668 | for ncn_progname in dlltool; do | |
11669 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11670 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11672 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11673 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11674 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11675 | else |
11676 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11677 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11678 | else | |
11679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11680 | for as_dir in $PATH | |
11681 | do | |
11682 | IFS=$as_save_IFS | |
11683 | test -z "$as_dir" && as_dir=. | |
5213506e | 11684 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11686 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11688 | break 2 |
11689 | fi | |
11690 | done | |
5213506e RW |
11691 | done |
11692 | IFS=$as_save_IFS | |
278a7a38 AO |
11693 | |
11694 | fi | |
11695 | fi | |
11696 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11697 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
11698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11699 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 11700 | else |
5213506e RW |
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11702 | $as_echo "no" >&6; } | |
278a7a38 AO |
11703 | fi |
11704 | ||
5213506e | 11705 | |
278a7a38 AO |
11706 | done |
11707 | fi | |
11708 | ||
11709 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11710 | for ncn_progname in dlltool; do |
5213506e RW |
11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11712 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11713 | if test -x $with_build_time_tools/${ncn_progname}; then |
11714 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11716 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11717 | break |
11718 | else | |
5213506e RW |
11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11720 | $as_echo "no" >&6; } | |
e8b05380 PB |
11721 | fi |
11722 | done | |
11723 | fi | |
11724 | ||
11725 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11726 | for ncn_progname in dlltool; do | |
11727 | if test -n "$ncn_target_tool_prefix"; then | |
11728 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11729 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11731 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11732 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11733 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11734 | else |
e8b05380 PB |
11735 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11736 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11737 | else |
1c710c3c DJ |
11738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11739 | for as_dir in $PATH | |
11740 | do | |
11741 | IFS=$as_save_IFS | |
11742 | test -z "$as_dir" && as_dir=. | |
5213506e | 11743 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11745 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11747 | break 2 |
11748 | fi | |
11749 | done | |
5213506e RW |
11750 | done |
11751 | IFS=$as_save_IFS | |
1c710c3c | 11752 | |
4de997d1 PB |
11753 | fi |
11754 | fi | |
1c710c3c | 11755 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11756 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11758 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11759 | else |
5213506e RW |
11760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11761 | $as_echo "no" >&6; } | |
4de997d1 | 11762 | fi |
4de997d1 | 11763 | |
5213506e | 11764 | |
e8b05380 PB |
11765 | fi |
11766 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11767 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11768 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11770 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11771 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11772 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11773 | else |
e8b05380 PB |
11774 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11775 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11776 | else |
1c710c3c DJ |
11777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11778 | for as_dir in $PATH | |
11779 | do | |
11780 | IFS=$as_save_IFS | |
11781 | test -z "$as_dir" && as_dir=. | |
5213506e | 11782 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11784 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11786 | break 2 |
11787 | fi | |
11788 | done | |
5213506e RW |
11789 | done |
11790 | IFS=$as_save_IFS | |
1c710c3c | 11791 | |
4de997d1 PB |
11792 | fi |
11793 | fi | |
1c710c3c | 11794 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11795 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11797 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11798 | else |
5213506e RW |
11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11800 | $as_echo "no" >&6; } | |
4de997d1 | 11801 | fi |
1c710c3c | 11802 | |
5213506e | 11803 | |
e8b05380 PB |
11804 | fi |
11805 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11806 | done | |
11807 | fi | |
1c710c3c | 11808 | |
e8b05380 PB |
11809 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11810 | set dummy dlltool | |
11811 | if test $build = $target ; then | |
11812 | DLLTOOL_FOR_TARGET="$2" | |
11813 | else | |
11814 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11815 | fi | |
1c00b503 PB |
11816 | else |
11817 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
11818 | fi |
11819 | ||
d1f8db0c PB |
11820 | else |
11821 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11822 | fi |
11823 | ||
4de997d1 | 11824 | |
e8b05380 PB |
11825 | |
11826 | ||
11827 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11828 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11830 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11831 | if test -x $with_build_time_tools/ld; then |
11832 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11833 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11835 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 11836 | else |
5213506e RW |
11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11838 | $as_echo "no" >&6; } | |
d1f8db0c | 11839 | fi |
e8b05380 PB |
11840 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11841 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
11842 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11843 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 11844 | fi |
e8b05380 | 11845 | fi |
3e19841a | 11846 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11847 | # Extract the first word of "ld", so it can be a program name with args. |
11848 | set dummy ld; ac_word=$2 | |
5213506e RW |
11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11850 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11851 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 11852 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11853 | else |
1c710c3c DJ |
11854 | case $LD_FOR_TARGET in |
11855 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11856 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11857 | ;; | |
e8b05380 | 11858 | *) |
1c710c3c DJ |
11859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11860 | for as_dir in $gcc_cv_tool_dirs | |
11861 | do | |
11862 | IFS=$as_save_IFS | |
11863 | test -z "$as_dir" && as_dir=. | |
5213506e | 11864 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11865 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11866 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11868 | break 2 |
11869 | fi | |
11870 | done | |
5213506e RW |
11871 | done |
11872 | IFS=$as_save_IFS | |
1c710c3c | 11873 | |
e8b05380 PB |
11874 | ;; |
11875 | esac | |
4de997d1 | 11876 | fi |
1c710c3c | 11877 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 11878 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11880 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 11881 | else |
5213506e RW |
11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11883 | $as_echo "no" >&6; } | |
4de997d1 | 11884 | fi |
2693c0b0 | 11885 | |
5213506e | 11886 | |
e8b05380 PB |
11887 | fi |
11888 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
11889 | |
11890 | ||
11891 | if test -n "$LD_FOR_TARGET"; then | |
11892 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11893 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11894 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11895 | fi | |
11896 | ||
11897 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11898 | for ncn_progname in ld; do | |
11899 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11900 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11902 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11903 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 11904 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11905 | else |
11906 | if test -n "$LD_FOR_TARGET"; then | |
11907 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11908 | else | |
11909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11910 | for as_dir in $PATH | |
11911 | do | |
11912 | IFS=$as_save_IFS | |
11913 | test -z "$as_dir" && as_dir=. | |
5213506e | 11914 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11916 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11918 | break 2 |
11919 | fi | |
11920 | done | |
5213506e RW |
11921 | done |
11922 | IFS=$as_save_IFS | |
278a7a38 AO |
11923 | |
11924 | fi | |
11925 | fi | |
11926 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11927 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11929 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 11930 | else |
5213506e RW |
11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11932 | $as_echo "no" >&6; } | |
278a7a38 AO |
11933 | fi |
11934 | ||
5213506e | 11935 | |
278a7a38 AO |
11936 | done |
11937 | fi | |
11938 | ||
11939 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11940 | for ncn_progname in ld; do |
5213506e RW |
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11942 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11943 | if test -x $with_build_time_tools/${ncn_progname}; then |
11944 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11946 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11947 | break |
11948 | else | |
5213506e RW |
11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11950 | $as_echo "no" >&6; } | |
e8b05380 PB |
11951 | fi |
11952 | done | |
ca9f4b81 AO |
11953 | fi |
11954 | ||
e8b05380 PB |
11955 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11956 | for ncn_progname in ld; do | |
11957 | if test -n "$ncn_target_tool_prefix"; then | |
11958 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11959 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11961 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11962 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 11963 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11964 | else |
4de997d1 PB |
11965 | if test -n "$LD_FOR_TARGET"; then |
11966 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11967 | else |
1c710c3c DJ |
11968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11969 | for as_dir in $PATH | |
11970 | do | |
11971 | IFS=$as_save_IFS | |
11972 | test -z "$as_dir" && as_dir=. | |
5213506e | 11973 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11975 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11977 | break 2 |
11978 | fi | |
11979 | done | |
5213506e RW |
11980 | done |
11981 | IFS=$as_save_IFS | |
1c710c3c | 11982 | |
ca9f4b81 AO |
11983 | fi |
11984 | fi | |
1c710c3c | 11985 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 11986 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11988 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11989 | else |
5213506e RW |
11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11991 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11992 | fi |
11993 | ||
5213506e | 11994 | |
e8b05380 PB |
11995 | fi |
11996 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11997 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11998 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12000 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12001 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 12002 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12003 | else |
2693c0b0 PB |
12004 | if test -n "$LD_FOR_TARGET"; then |
12005 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12006 | else |
1c710c3c DJ |
12007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12008 | for as_dir in $PATH | |
12009 | do | |
12010 | IFS=$as_save_IFS | |
12011 | test -z "$as_dir" && as_dir=. | |
5213506e | 12012 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12013 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12014 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 12015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12016 | break 2 |
12017 | fi | |
12018 | done | |
5213506e RW |
12019 | done |
12020 | IFS=$as_save_IFS | |
1c710c3c | 12021 | |
ca9f4b81 AO |
12022 | fi |
12023 | fi | |
1c710c3c | 12024 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 12025 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12027 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 12028 | else |
5213506e RW |
12029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12030 | $as_echo "no" >&6; } | |
ca9f4b81 | 12031 | fi |
1c710c3c | 12032 | |
5213506e | 12033 | |
e8b05380 PB |
12034 | fi |
12035 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
12036 | done | |
12037 | fi | |
1c710c3c | 12038 | |
2693c0b0 PB |
12039 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
12040 | set dummy ld | |
12041 | if test $build = $target ; then | |
12042 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 12043 | else |
2693c0b0 | 12044 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12045 | fi |
1c00b503 PB |
12046 | else |
12047 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
12048 | fi |
12049 | ||
d1f8db0c PB |
12050 | else |
12051 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
12052 | fi |
12053 | ||
12054 | ||
12055 | ||
12056 | ||
12057 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12058 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
12060 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12061 | if test -x $with_build_time_tools/lipo; then |
12062 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
12063 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
12065 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 12066 | else |
5213506e RW |
12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12068 | $as_echo "no" >&6; } | |
d1f8db0c | 12069 | fi |
e8b05380 PB |
12070 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12071 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
12072 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
12073 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
12074 | fi |
12075 | fi | |
278a7a38 AO |
12076 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
12077 | # Extract the first word of "lipo", so it can be a program name with args. | |
12078 | set dummy lipo; ac_word=$2 | |
5213506e RW |
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12080 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12081 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12082 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12083 | else |
12084 | case $LIPO_FOR_TARGET in | |
12085 | [\\/]* | ?:[\\/]*) | |
12086 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
12087 | ;; | |
12088 | *) | |
12089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12090 | for as_dir in $gcc_cv_tool_dirs | |
12091 | do | |
12092 | IFS=$as_save_IFS | |
12093 | test -z "$as_dir" && as_dir=. | |
5213506e | 12094 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12095 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12096 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12098 | break 2 |
12099 | fi | |
12100 | done | |
5213506e RW |
12101 | done |
12102 | IFS=$as_save_IFS | |
278a7a38 AO |
12103 | |
12104 | ;; | |
12105 | esac | |
12106 | fi | |
12107 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 12108 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12110 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 12111 | else |
5213506e RW |
12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12113 | $as_echo "no" >&6; } | |
278a7a38 AO |
12114 | fi |
12115 | ||
5213506e | 12116 | |
278a7a38 AO |
12117 | fi |
12118 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12119 | ||
12120 | ||
12121 | if test -n "$LIPO_FOR_TARGET"; then | |
12122 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
12123 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12124 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
12125 | fi | |
12126 | ||
12127 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12128 | for ncn_progname in lipo; do | |
12129 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12130 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12132 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12133 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12134 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12135 | else |
278a7a38 AO |
12136 | if test -n "$LIPO_FOR_TARGET"; then |
12137 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12138 | else | |
12139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12140 | for as_dir in $PATH | |
1c710c3c DJ |
12141 | do |
12142 | IFS=$as_save_IFS | |
12143 | test -z "$as_dir" && as_dir=. | |
5213506e | 12144 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12145 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12146 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 12147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12148 | break 2 |
12149 | fi | |
12150 | done | |
5213506e RW |
12151 | done |
12152 | IFS=$as_save_IFS | |
1c710c3c | 12153 | |
e8b05380 | 12154 | fi |
278a7a38 AO |
12155 | fi |
12156 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 12157 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12159 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 12160 | else |
5213506e RW |
12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12162 | $as_echo "no" >&6; } | |
e8b05380 PB |
12163 | fi |
12164 | ||
5213506e | 12165 | |
278a7a38 | 12166 | done |
e8b05380 | 12167 | fi |
278a7a38 AO |
12168 | |
12169 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12170 | for ncn_progname in lipo; do |
5213506e RW |
12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12172 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12173 | if test -x $with_build_time_tools/${ncn_progname}; then |
12174 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12176 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12177 | break |
12178 | else | |
5213506e RW |
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12180 | $as_echo "no" >&6; } | |
e8b05380 PB |
12181 | fi |
12182 | done | |
12183 | fi | |
12184 | ||
12185 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12186 | for ncn_progname in lipo; do | |
12187 | if test -n "$ncn_target_tool_prefix"; then | |
12188 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12189 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12191 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12192 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12193 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
12194 | else |
12195 | if test -n "$LIPO_FOR_TARGET"; then | |
12196 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12197 | else | |
1c710c3c DJ |
12198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12199 | for as_dir in $PATH | |
12200 | do | |
12201 | IFS=$as_save_IFS | |
12202 | test -z "$as_dir" && as_dir=. | |
5213506e | 12203 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12204 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12205 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12207 | break 2 |
12208 | fi | |
12209 | done | |
5213506e RW |
12210 | done |
12211 | IFS=$as_save_IFS | |
1c710c3c | 12212 | |
040b1c5a GK |
12213 | fi |
12214 | fi | |
1c710c3c | 12215 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 12216 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12218 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 12219 | else |
5213506e RW |
12220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12221 | $as_echo "no" >&6; } | |
040b1c5a GK |
12222 | fi |
12223 | ||
5213506e | 12224 | |
e8b05380 PB |
12225 | fi |
12226 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12227 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12228 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12230 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12231 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12232 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
12233 | else |
12234 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
12235 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
12236 | else | |
1c710c3c DJ |
12237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12238 | for as_dir in $PATH | |
12239 | do | |
12240 | IFS=$as_save_IFS | |
12241 | test -z "$as_dir" && as_dir=. | |
5213506e | 12242 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12244 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 12245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12246 | break 2 |
12247 | fi | |
12248 | done | |
5213506e RW |
12249 | done |
12250 | IFS=$as_save_IFS | |
1c710c3c | 12251 | |
040b1c5a GK |
12252 | fi |
12253 | fi | |
1c710c3c | 12254 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 12255 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12257 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 12258 | else |
5213506e RW |
12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12260 | $as_echo "no" >&6; } | |
040b1c5a | 12261 | fi |
1c710c3c | 12262 | |
5213506e | 12263 | |
e8b05380 PB |
12264 | fi |
12265 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12266 | done | |
12267 | fi | |
1c710c3c | 12268 | |
040b1c5a GK |
12269 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12270 | set dummy lipo | |
12271 | if test $build = $target ; then | |
12272 | LIPO_FOR_TARGET="$2" | |
12273 | else | |
12274 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12275 | fi | |
1c00b503 PB |
12276 | else |
12277 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
12278 | fi |
12279 | ||
d1f8db0c PB |
12280 | else |
12281 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
12282 | fi |
12283 | ||
12284 | ||
12285 | ||
12286 | ||
12287 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12288 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12290 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12291 | if test -x $with_build_time_tools/nm; then |
12292 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12293 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12295 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 12296 | else |
5213506e RW |
12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12298 | $as_echo "no" >&6; } | |
d1f8db0c | 12299 | fi |
e8b05380 PB |
12300 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12301 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
12302 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12303 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
12304 | fi |
12305 | fi | |
3e19841a | 12306 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12307 | # Extract the first word of "nm", so it can be a program name with args. |
12308 | set dummy nm; ac_word=$2 | |
5213506e RW |
12309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12310 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12311 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 12312 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12313 | else |
1c710c3c DJ |
12314 | case $NM_FOR_TARGET in |
12315 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12316 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12317 | ;; | |
e8b05380 | 12318 | *) |
1c710c3c DJ |
12319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12320 | for as_dir in $gcc_cv_tool_dirs | |
12321 | do | |
12322 | IFS=$as_save_IFS | |
12323 | test -z "$as_dir" && as_dir=. | |
5213506e | 12324 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12326 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12328 | break 2 |
12329 | fi | |
12330 | done | |
5213506e RW |
12331 | done |
12332 | IFS=$as_save_IFS | |
1c710c3c | 12333 | |
e8b05380 PB |
12334 | ;; |
12335 | esac | |
12336 | fi | |
1c710c3c | 12337 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 12338 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12340 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 12341 | else |
5213506e RW |
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12343 | $as_echo "no" >&6; } | |
e8b05380 PB |
12344 | fi |
12345 | ||
5213506e | 12346 | |
e8b05380 PB |
12347 | fi |
12348 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
12349 | |
12350 | ||
12351 | if test -n "$NM_FOR_TARGET"; then | |
12352 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12353 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12354 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12355 | fi | |
12356 | ||
12357 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12358 | for ncn_progname in nm; do | |
12359 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12360 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12362 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12363 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 12364 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12365 | else |
12366 | if test -n "$NM_FOR_TARGET"; then | |
12367 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12368 | else | |
12369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12370 | for as_dir in $PATH | |
12371 | do | |
12372 | IFS=$as_save_IFS | |
12373 | test -z "$as_dir" && as_dir=. | |
5213506e | 12374 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12376 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12378 | break 2 |
12379 | fi | |
12380 | done | |
5213506e RW |
12381 | done |
12382 | IFS=$as_save_IFS | |
278a7a38 AO |
12383 | |
12384 | fi | |
12385 | fi | |
12386 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12387 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12389 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 12390 | else |
5213506e RW |
12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12392 | $as_echo "no" >&6; } | |
278a7a38 AO |
12393 | fi |
12394 | ||
5213506e | 12395 | |
278a7a38 AO |
12396 | done |
12397 | fi | |
12398 | ||
12399 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12400 | for ncn_progname in nm; do |
5213506e RW |
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12402 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12403 | if test -x $with_build_time_tools/${ncn_progname}; then |
12404 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12406 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12407 | break |
12408 | else | |
5213506e RW |
12409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12410 | $as_echo "no" >&6; } | |
e8b05380 PB |
12411 | fi |
12412 | done | |
12413 | fi | |
12414 | ||
12415 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12416 | for ncn_progname in nm; do | |
12417 | if test -n "$ncn_target_tool_prefix"; then | |
12418 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12419 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12421 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12422 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 12423 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12424 | else |
4de997d1 PB |
12425 | if test -n "$NM_FOR_TARGET"; then |
12426 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12427 | else |
1c710c3c DJ |
12428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12429 | for as_dir in $PATH | |
12430 | do | |
12431 | IFS=$as_save_IFS | |
12432 | test -z "$as_dir" && as_dir=. | |
5213506e | 12433 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12434 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12435 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12437 | break 2 |
12438 | fi | |
12439 | done | |
5213506e RW |
12440 | done |
12441 | IFS=$as_save_IFS | |
1c710c3c | 12442 | |
ca9f4b81 AO |
12443 | fi |
12444 | fi | |
1c710c3c | 12445 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 12446 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12448 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12449 | else |
5213506e RW |
12450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12451 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12452 | fi |
12453 | ||
5213506e | 12454 | |
e8b05380 PB |
12455 | fi |
12456 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12457 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12458 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12460 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12461 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 12462 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12463 | else |
2693c0b0 PB |
12464 | if test -n "$NM_FOR_TARGET"; then |
12465 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12466 | else |
1c710c3c DJ |
12467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12468 | for as_dir in $PATH | |
12469 | do | |
12470 | IFS=$as_save_IFS | |
12471 | test -z "$as_dir" && as_dir=. | |
5213506e | 12472 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12474 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12476 | break 2 |
12477 | fi | |
12478 | done | |
5213506e RW |
12479 | done |
12480 | IFS=$as_save_IFS | |
1c710c3c | 12481 | |
ca9f4b81 AO |
12482 | fi |
12483 | fi | |
1c710c3c | 12484 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 12485 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12487 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12488 | else |
5213506e RW |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12490 | $as_echo "no" >&6; } | |
ca9f4b81 | 12491 | fi |
1c710c3c | 12492 | |
5213506e | 12493 | |
e8b05380 PB |
12494 | fi |
12495 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12496 | done | |
12497 | fi | |
1c710c3c | 12498 | |
2693c0b0 PB |
12499 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12500 | set dummy nm | |
12501 | if test $build = $target ; then | |
12502 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 12503 | else |
2693c0b0 | 12504 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12505 | fi |
1c00b503 PB |
12506 | else |
12507 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
12508 | fi |
12509 | ||
d1f8db0c PB |
12510 | else |
12511 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
12512 | fi |
12513 | ||
12514 | ||
12515 | ||
12516 | ||
9bccfdf5 AP |
12517 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12518 | if test -n "$with_build_time_tools"; then | |
12519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12520 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12521 | if test -x $with_build_time_tools/objcopy; then | |
12522 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12523 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12525 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12526 | else | |
12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12528 | $as_echo "no" >&6; } | |
12529 | fi | |
12530 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12531 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12532 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12533 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12534 | fi | |
12535 | fi | |
12536 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12537 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12538 | set dummy objcopy; ac_word=$2 | |
12539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12540 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12541 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
12542 | $as_echo_n "(cached) " >&6 |
12543 | else | |
12544 | case $OBJCOPY_FOR_TARGET in | |
12545 | [\\/]* | ?:[\\/]*) | |
12546 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12547 | ;; | |
12548 | *) | |
12549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12550 | for as_dir in $gcc_cv_tool_dirs | |
12551 | do | |
12552 | IFS=$as_save_IFS | |
12553 | test -z "$as_dir" && as_dir=. | |
12554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
12556 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12558 | break 2 | |
12559 | fi | |
12560 | done | |
12561 | done | |
12562 | IFS=$as_save_IFS | |
12563 | ||
12564 | ;; | |
12565 | esac | |
12566 | fi | |
12567 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12568 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12570 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12571 | else | |
12572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12573 | $as_echo "no" >&6; } | |
12574 | fi | |
12575 | ||
12576 | ||
12577 | fi | |
12578 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12579 | ||
12580 | ||
12581 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12582 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12583 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12584 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12585 | fi | |
12586 | ||
12587 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12588 | for ncn_progname in objcopy; do | |
12589 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12590 | set dummy ${ncn_progname}; ac_word=$2 | |
12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12592 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12593 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
12594 | $as_echo_n "(cached) " >&6 |
12595 | else | |
12596 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12597 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12598 | else | |
12599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12600 | for as_dir in $PATH | |
12601 | do | |
12602 | IFS=$as_save_IFS | |
12603 | test -z "$as_dir" && as_dir=. | |
12604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12605 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
12606 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12608 | break 2 | |
12609 | fi | |
12610 | done | |
12611 | done | |
12612 | IFS=$as_save_IFS | |
12613 | ||
12614 | fi | |
12615 | fi | |
12616 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12617 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12619 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12620 | else | |
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12622 | $as_echo "no" >&6; } | |
12623 | fi | |
12624 | ||
12625 | ||
12626 | done | |
12627 | fi | |
12628 | ||
12629 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12630 | for ncn_progname in objcopy; do | |
12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12632 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12633 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12634 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12636 | $as_echo "yes" >&6; } | |
12637 | break | |
12638 | else | |
12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12640 | $as_echo "no" >&6; } | |
12641 | fi | |
12642 | done | |
12643 | fi | |
12644 | ||
12645 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12646 | for ncn_progname in objcopy; do | |
12647 | if test -n "$ncn_target_tool_prefix"; then | |
12648 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12649 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12651 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12652 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
12653 | $as_echo_n "(cached) " >&6 |
12654 | else | |
12655 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12656 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12657 | else | |
12658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12659 | for as_dir in $PATH | |
12660 | do | |
12661 | IFS=$as_save_IFS | |
12662 | test -z "$as_dir" && as_dir=. | |
12663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
12665 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12667 | break 2 | |
12668 | fi | |
12669 | done | |
12670 | done | |
12671 | IFS=$as_save_IFS | |
12672 | ||
12673 | fi | |
12674 | fi | |
12675 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12676 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12678 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12679 | else | |
12680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12681 | $as_echo "no" >&6; } | |
12682 | fi | |
12683 | ||
12684 | ||
12685 | fi | |
12686 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12687 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12688 | set dummy ${ncn_progname}; ac_word=$2 | |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12690 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12691 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
12692 | $as_echo_n "(cached) " >&6 |
12693 | else | |
12694 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12695 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12696 | else | |
12697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12698 | for as_dir in $PATH | |
12699 | do | |
12700 | IFS=$as_save_IFS | |
12701 | test -z "$as_dir" && as_dir=. | |
12702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
12704 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12706 | break 2 | |
12707 | fi | |
12708 | done | |
12709 | done | |
12710 | IFS=$as_save_IFS | |
12711 | ||
12712 | fi | |
12713 | fi | |
12714 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12715 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12717 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12718 | else | |
12719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12720 | $as_echo "no" >&6; } | |
12721 | fi | |
12722 | ||
12723 | ||
12724 | fi | |
12725 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12726 | done | |
12727 | fi | |
12728 | ||
12729 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12730 | set dummy objcopy | |
12731 | if test $build = $target ; then | |
12732 | OBJCOPY_FOR_TARGET="$2" | |
12733 | else | |
12734 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12735 | fi | |
12736 | else | |
12737 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12738 | fi | |
12739 | ||
12740 | else | |
12741 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12742 | fi | |
12743 | ||
12744 | ||
12745 | ||
12746 | ||
e8b05380 PB |
12747 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12748 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12750 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12751 | if test -x $with_build_time_tools/objdump; then |
12752 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12753 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12755 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 12756 | else |
5213506e RW |
12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12758 | $as_echo "no" >&6; } | |
d1f8db0c | 12759 | fi |
e8b05380 PB |
12760 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12761 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
12762 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12763 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12764 | fi |
12765 | fi | |
3e19841a | 12766 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12767 | # Extract the first word of "objdump", so it can be a program name with args. |
12768 | set dummy objdump; ac_word=$2 | |
5213506e RW |
12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12770 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12771 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 12772 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12773 | else |
1c710c3c DJ |
12774 | case $OBJDUMP_FOR_TARGET in |
12775 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12776 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12777 | ;; | |
e8b05380 | 12778 | *) |
1c710c3c DJ |
12779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12780 | for as_dir in $gcc_cv_tool_dirs | |
12781 | do | |
12782 | IFS=$as_save_IFS | |
12783 | test -z "$as_dir" && as_dir=. | |
5213506e | 12784 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12786 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12788 | break 2 |
12789 | fi | |
12790 | done | |
5213506e RW |
12791 | done |
12792 | IFS=$as_save_IFS | |
1c710c3c | 12793 | |
e8b05380 PB |
12794 | ;; |
12795 | esac | |
12796 | fi | |
1c710c3c | 12797 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 12798 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12800 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 12801 | else |
5213506e RW |
12802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12803 | $as_echo "no" >&6; } | |
e8b05380 PB |
12804 | fi |
12805 | ||
5213506e | 12806 | |
e8b05380 PB |
12807 | fi |
12808 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
12809 | |
12810 | ||
12811 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12812 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12813 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12814 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12815 | fi | |
12816 | ||
12817 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12818 | for ncn_progname in objdump; do | |
12819 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12820 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12822 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12823 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 12824 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12825 | else |
12826 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12827 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12828 | else | |
12829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12830 | for as_dir in $PATH | |
12831 | do | |
12832 | IFS=$as_save_IFS | |
12833 | test -z "$as_dir" && as_dir=. | |
5213506e | 12834 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12836 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12838 | break 2 |
12839 | fi | |
12840 | done | |
5213506e RW |
12841 | done |
12842 | IFS=$as_save_IFS | |
278a7a38 AO |
12843 | |
12844 | fi | |
12845 | fi | |
12846 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12847 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
12848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12849 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 12850 | else |
5213506e RW |
12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12852 | $as_echo "no" >&6; } | |
278a7a38 AO |
12853 | fi |
12854 | ||
5213506e | 12855 | |
278a7a38 AO |
12856 | done |
12857 | fi | |
12858 | ||
12859 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12860 | for ncn_progname in objdump; do |
5213506e RW |
12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12862 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12863 | if test -x $with_build_time_tools/${ncn_progname}; then |
12864 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12866 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12867 | break |
12868 | else | |
5213506e RW |
12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12870 | $as_echo "no" >&6; } | |
e8b05380 PB |
12871 | fi |
12872 | done | |
12873 | fi | |
12874 | ||
12875 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12876 | for ncn_progname in objdump; do | |
12877 | if test -n "$ncn_target_tool_prefix"; then | |
12878 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12879 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12881 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12882 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 12883 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
12884 | else |
12885 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12886 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12887 | else | |
1c710c3c DJ |
12888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12889 | for as_dir in $PATH | |
12890 | do | |
12891 | IFS=$as_save_IFS | |
12892 | test -z "$as_dir" && as_dir=. | |
5213506e | 12893 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12895 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12897 | break 2 |
12898 | fi | |
12899 | done | |
5213506e RW |
12900 | done |
12901 | IFS=$as_save_IFS | |
1c710c3c | 12902 | |
d739199a DJ |
12903 | fi |
12904 | fi | |
1c710c3c | 12905 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12906 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12908 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12909 | else |
5213506e RW |
12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12911 | $as_echo "no" >&6; } | |
d739199a DJ |
12912 | fi |
12913 | ||
5213506e | 12914 | |
e8b05380 PB |
12915 | fi |
12916 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12917 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 12918 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12920 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12921 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 12922 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
12923 | else |
12924 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12925 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12926 | else | |
1c710c3c DJ |
12927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12928 | for as_dir in $PATH | |
12929 | do | |
12930 | IFS=$as_save_IFS | |
12931 | test -z "$as_dir" && as_dir=. | |
5213506e | 12932 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12934 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12936 | break 2 |
12937 | fi | |
12938 | done | |
5213506e RW |
12939 | done |
12940 | IFS=$as_save_IFS | |
1c710c3c | 12941 | |
d739199a DJ |
12942 | fi |
12943 | fi | |
1c710c3c | 12944 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12945 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12947 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12948 | else |
5213506e RW |
12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12950 | $as_echo "no" >&6; } | |
d739199a | 12951 | fi |
1c710c3c | 12952 | |
5213506e | 12953 | |
e8b05380 PB |
12954 | fi |
12955 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12956 | done | |
12957 | fi | |
1c710c3c | 12958 | |
d739199a DJ |
12959 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12960 | set dummy objdump | |
12961 | if test $build = $target ; then | |
12962 | OBJDUMP_FOR_TARGET="$2" | |
12963 | else | |
12964 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12965 | fi | |
1c00b503 PB |
12966 | else |
12967 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
12968 | fi |
12969 | ||
d1f8db0c PB |
12970 | else |
12971 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12972 | fi |
12973 | ||
12974 | ||
12975 | ||
12976 | ||
e4a9a572 IS |
12977 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
12978 | if test -n "$with_build_time_tools"; then | |
12979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
12980 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
12981 | if test -x $with_build_time_tools/otool; then | |
12982 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
12983 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
12985 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
12986 | else | |
12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12988 | $as_echo "no" >&6; } | |
12989 | fi | |
12990 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12991 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
12992 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
12993 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
12994 | fi | |
12995 | fi | |
12996 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12997 | # Extract the first word of "otool", so it can be a program name with args. | |
12998 | set dummy otool; ac_word=$2 | |
12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13000 | $as_echo_n "checking for $ac_word... " >&6; } | |
13001 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
13002 | $as_echo_n "(cached) " >&6 | |
13003 | else | |
13004 | case $OTOOL_FOR_TARGET in | |
13005 | [\\/]* | ?:[\\/]*) | |
13006 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
13007 | ;; | |
13008 | *) | |
13009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13010 | for as_dir in $gcc_cv_tool_dirs | |
13011 | do | |
13012 | IFS=$as_save_IFS | |
13013 | test -z "$as_dir" && as_dir=. | |
13014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13016 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13018 | break 2 | |
13019 | fi | |
13020 | done | |
13021 | done | |
13022 | IFS=$as_save_IFS | |
13023 | ||
13024 | ;; | |
13025 | esac | |
13026 | fi | |
13027 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13028 | if test -n "$OTOOL_FOR_TARGET"; then | |
13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13030 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13031 | else | |
13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13033 | $as_echo "no" >&6; } | |
13034 | fi | |
13035 | ||
13036 | ||
13037 | fi | |
13038 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
13039 | ||
13040 | ||
13041 | if test -n "$OTOOL_FOR_TARGET"; then | |
13042 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13043 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13044 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13045 | fi | |
13046 | ||
13047 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13048 | for ncn_progname in otool; do | |
13049 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13050 | set dummy ${ncn_progname}; ac_word=$2 | |
13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13052 | $as_echo_n "checking for $ac_word... " >&6; } | |
13053 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13054 | $as_echo_n "(cached) " >&6 | |
13055 | else | |
13056 | if test -n "$OTOOL_FOR_TARGET"; then | |
13057 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13058 | else | |
13059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13060 | for as_dir in $PATH | |
13061 | do | |
13062 | IFS=$as_save_IFS | |
13063 | test -z "$as_dir" && as_dir=. | |
13064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13066 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13068 | break 2 | |
13069 | fi | |
13070 | done | |
13071 | done | |
13072 | IFS=$as_save_IFS | |
13073 | ||
13074 | fi | |
13075 | fi | |
13076 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13077 | if test -n "$OTOOL_FOR_TARGET"; then | |
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13079 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13080 | else | |
13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13082 | $as_echo "no" >&6; } | |
13083 | fi | |
13084 | ||
13085 | ||
13086 | done | |
13087 | fi | |
13088 | ||
13089 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13090 | for ncn_progname in otool; do | |
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13092 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13093 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13094 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13096 | $as_echo "yes" >&6; } | |
13097 | break | |
13098 | else | |
13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13100 | $as_echo "no" >&6; } | |
13101 | fi | |
13102 | done | |
13103 | fi | |
13104 | ||
13105 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13106 | for ncn_progname in otool; do | |
13107 | if test -n "$ncn_target_tool_prefix"; then | |
13108 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13109 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13111 | $as_echo_n "checking for $ac_word... " >&6; } | |
13112 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13113 | $as_echo_n "(cached) " >&6 | |
13114 | else | |
13115 | if test -n "$OTOOL_FOR_TARGET"; then | |
13116 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13117 | else | |
13118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13119 | for as_dir in $PATH | |
13120 | do | |
13121 | IFS=$as_save_IFS | |
13122 | test -z "$as_dir" && as_dir=. | |
13123 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13124 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13125 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13127 | break 2 | |
13128 | fi | |
13129 | done | |
13130 | done | |
13131 | IFS=$as_save_IFS | |
13132 | ||
13133 | fi | |
13134 | fi | |
13135 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13136 | if test -n "$OTOOL_FOR_TARGET"; then | |
13137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13138 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13139 | else | |
13140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13141 | $as_echo "no" >&6; } | |
13142 | fi | |
13143 | ||
13144 | ||
13145 | fi | |
13146 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
13147 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13148 | set dummy ${ncn_progname}; ac_word=$2 | |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13150 | $as_echo_n "checking for $ac_word... " >&6; } | |
13151 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13152 | $as_echo_n "(cached) " >&6 | |
13153 | else | |
13154 | if test -n "$OTOOL_FOR_TARGET"; then | |
13155 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13156 | else | |
13157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13158 | for as_dir in $PATH | |
13159 | do | |
13160 | IFS=$as_save_IFS | |
13161 | test -z "$as_dir" && as_dir=. | |
13162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13164 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13166 | break 2 | |
13167 | fi | |
13168 | done | |
13169 | done | |
13170 | IFS=$as_save_IFS | |
13171 | ||
13172 | fi | |
13173 | fi | |
13174 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13175 | if test -n "$OTOOL_FOR_TARGET"; then | |
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13177 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13178 | else | |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13180 | $as_echo "no" >&6; } | |
13181 | fi | |
13182 | ||
13183 | ||
13184 | fi | |
13185 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
13186 | done | |
13187 | fi | |
13188 | ||
13189 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
13190 | set dummy otool | |
13191 | if test $build = $target ; then | |
13192 | OTOOL_FOR_TARGET="$2" | |
13193 | else | |
13194 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13195 | fi | |
13196 | else | |
13197 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
13198 | fi | |
13199 | ||
13200 | else | |
13201 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13202 | fi | |
13203 | ||
13204 | ||
13205 | ||
13206 | ||
e8b05380 PB |
13207 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
13208 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
13210 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13211 | if test -x $with_build_time_tools/ranlib; then |
13212 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
13213 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
13215 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 13216 | else |
5213506e RW |
13217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13218 | $as_echo "no" >&6; } | |
d1f8db0c | 13219 | fi |
e8b05380 PB |
13220 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13221 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
13222 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
13223 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
13224 | fi |
13225 | fi | |
3e19841a | 13226 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13227 | # Extract the first word of "ranlib", so it can be a program name with args. |
13228 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13230 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13231 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13232 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13233 | else |
1c710c3c DJ |
13234 | case $RANLIB_FOR_TARGET in |
13235 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13236 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
13237 | ;; | |
e8b05380 | 13238 | *) |
1c710c3c DJ |
13239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13240 | for as_dir in $gcc_cv_tool_dirs | |
13241 | do | |
13242 | IFS=$as_save_IFS | |
13243 | test -z "$as_dir" && as_dir=. | |
5213506e | 13244 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13246 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13248 | break 2 |
13249 | fi | |
13250 | done | |
5213506e RW |
13251 | done |
13252 | IFS=$as_save_IFS | |
1c710c3c | 13253 | |
e8b05380 PB |
13254 | ;; |
13255 | esac | |
13256 | fi | |
1c710c3c | 13257 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 13258 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
13259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13260 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 13261 | else |
5213506e RW |
13262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13263 | $as_echo "no" >&6; } | |
e8b05380 PB |
13264 | fi |
13265 | ||
5213506e | 13266 | |
e8b05380 PB |
13267 | fi |
13268 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
13269 | |
13270 | ||
13271 | if test -n "$RANLIB_FOR_TARGET"; then | |
13272 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
13273 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13274 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13275 | fi | |
13276 | ||
13277 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13278 | for ncn_progname in ranlib; do | |
13279 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13280 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13282 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13283 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13284 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13285 | else |
13286 | if test -n "$RANLIB_FOR_TARGET"; then | |
13287 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
13288 | else | |
13289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13290 | for as_dir in $PATH | |
13291 | do | |
13292 | IFS=$as_save_IFS | |
13293 | test -z "$as_dir" && as_dir=. | |
5213506e | 13294 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13295 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13296 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 13297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13298 | break 2 |
13299 | fi | |
13300 | done | |
5213506e RW |
13301 | done |
13302 | IFS=$as_save_IFS | |
278a7a38 AO |
13303 | |
13304 | fi | |
13305 | fi | |
13306 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13307 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
13308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13309 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 13310 | else |
5213506e RW |
13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13312 | $as_echo "no" >&6; } | |
278a7a38 AO |
13313 | fi |
13314 | ||
5213506e | 13315 | |
278a7a38 AO |
13316 | done |
13317 | fi | |
13318 | ||
13319 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13320 | for ncn_progname in ranlib; do |
5213506e RW |
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13322 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13323 | if test -x $with_build_time_tools/${ncn_progname}; then |
13324 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13326 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13327 | break |
13328 | else | |
5213506e RW |
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13330 | $as_echo "no" >&6; } | |
e8b05380 PB |
13331 | fi |
13332 | done | |
13333 | fi | |
13334 | ||
13335 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13336 | for ncn_progname in ranlib; do | |
13337 | if test -n "$ncn_target_tool_prefix"; then | |
13338 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 13339 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13341 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13342 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13343 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13344 | else |
4de997d1 PB |
13345 | if test -n "$RANLIB_FOR_TARGET"; then |
13346 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13347 | else |
1c710c3c DJ |
13348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13349 | for as_dir in $PATH | |
13350 | do | |
13351 | IFS=$as_save_IFS | |
13352 | test -z "$as_dir" && as_dir=. | |
5213506e | 13353 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13354 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13355 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13356 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13357 | break 2 |
13358 | fi | |
13359 | done | |
5213506e RW |
13360 | done |
13361 | IFS=$as_save_IFS | |
1c710c3c | 13362 | |
ca9f4b81 AO |
13363 | fi |
13364 | fi | |
1c710c3c | 13365 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 13366 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13368 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 13369 | else |
5213506e RW |
13370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13371 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13372 | fi |
13373 | ||
5213506e | 13374 | |
e8b05380 PB |
13375 | fi |
13376 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
13377 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13378 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13380 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13381 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13382 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13383 | else |
2693c0b0 PB |
13384 | if test -n "$RANLIB_FOR_TARGET"; then |
13385 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13386 | else |
1c710c3c DJ |
13387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13388 | for as_dir in $PATH | |
13389 | do | |
13390 | IFS=$as_save_IFS | |
13391 | test -z "$as_dir" && as_dir=. | |
5213506e | 13392 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13393 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13394 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 13395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13396 | break 2 |
13397 | fi | |
13398 | done | |
5213506e RW |
13399 | done |
13400 | IFS=$as_save_IFS | |
1c710c3c | 13401 | |
ca9f4b81 AO |
13402 | fi |
13403 | fi | |
1c710c3c | 13404 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 13405 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13407 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 13408 | else |
5213506e RW |
13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13410 | $as_echo "no" >&6; } | |
ca9f4b81 | 13411 | fi |
1c710c3c | 13412 | |
5213506e | 13413 | |
e8b05380 PB |
13414 | fi |
13415 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
13416 | done | |
13417 | fi | |
1c710c3c | 13418 | |
e8b05380 PB |
13419 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13420 | set dummy ranlib | |
13421 | if test $build = $target ; then | |
13422 | RANLIB_FOR_TARGET="$2" | |
13423 | else | |
13424 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 13425 | fi |
1c00b503 PB |
13426 | else |
13427 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 13428 | fi |
2693c0b0 | 13429 | |
d1f8db0c PB |
13430 | else |
13431 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
13432 | fi |
13433 | ||
e8b05380 PB |
13434 | |
13435 | ||
13436 | ||
e7a82751 RM |
13437 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13438 | if test -n "$with_build_time_tools"; then | |
13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13440 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13441 | if test -x $with_build_time_tools/readelf; then | |
13442 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13443 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13445 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13446 | else | |
13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13448 | $as_echo "no" >&6; } | |
13449 | fi | |
13450 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13451 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13452 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13453 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13454 | fi | |
13455 | fi | |
13456 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13457 | # Extract the first word of "readelf", so it can be a program name with args. | |
13458 | set dummy readelf; ac_word=$2 | |
13459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13460 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13461 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
13462 | $as_echo_n "(cached) " >&6 |
13463 | else | |
13464 | case $READELF_FOR_TARGET in | |
13465 | [\\/]* | ?:[\\/]*) | |
13466 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13467 | ;; | |
13468 | *) | |
13469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13470 | for as_dir in $gcc_cv_tool_dirs | |
13471 | do | |
13472 | IFS=$as_save_IFS | |
13473 | test -z "$as_dir" && as_dir=. | |
13474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13475 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13476 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13478 | break 2 | |
13479 | fi | |
13480 | done | |
13481 | done | |
13482 | IFS=$as_save_IFS | |
13483 | ||
13484 | ;; | |
13485 | esac | |
13486 | fi | |
13487 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13488 | if test -n "$READELF_FOR_TARGET"; then | |
13489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13490 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13491 | else | |
13492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13493 | $as_echo "no" >&6; } | |
13494 | fi | |
13495 | ||
13496 | ||
13497 | fi | |
13498 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13499 | ||
13500 | ||
13501 | if test -n "$READELF_FOR_TARGET"; then | |
13502 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13503 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13504 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13505 | fi | |
13506 | ||
13507 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13508 | for ncn_progname in readelf; do | |
13509 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13510 | set dummy ${ncn_progname}; ac_word=$2 | |
13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13512 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13513 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
13514 | $as_echo_n "(cached) " >&6 |
13515 | else | |
13516 | if test -n "$READELF_FOR_TARGET"; then | |
13517 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13518 | else | |
13519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13520 | for as_dir in $PATH | |
13521 | do | |
13522 | IFS=$as_save_IFS | |
13523 | test -z "$as_dir" && as_dir=. | |
13524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13526 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13528 | break 2 | |
13529 | fi | |
13530 | done | |
13531 | done | |
13532 | IFS=$as_save_IFS | |
13533 | ||
13534 | fi | |
13535 | fi | |
13536 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13537 | if test -n "$READELF_FOR_TARGET"; then | |
13538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13539 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13540 | else | |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13542 | $as_echo "no" >&6; } | |
13543 | fi | |
13544 | ||
13545 | ||
13546 | done | |
13547 | fi | |
13548 | ||
13549 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13550 | for ncn_progname in readelf; do | |
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13552 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13553 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13554 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13556 | $as_echo "yes" >&6; } | |
13557 | break | |
13558 | else | |
13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13560 | $as_echo "no" >&6; } | |
13561 | fi | |
13562 | done | |
13563 | fi | |
13564 | ||
13565 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13566 | for ncn_progname in readelf; do | |
13567 | if test -n "$ncn_target_tool_prefix"; then | |
13568 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13569 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13571 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13572 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
13573 | $as_echo_n "(cached) " >&6 |
13574 | else | |
13575 | if test -n "$READELF_FOR_TARGET"; then | |
13576 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13577 | else | |
13578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13579 | for as_dir in $PATH | |
13580 | do | |
13581 | IFS=$as_save_IFS | |
13582 | test -z "$as_dir" && as_dir=. | |
13583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13585 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13587 | break 2 | |
13588 | fi | |
13589 | done | |
13590 | done | |
13591 | IFS=$as_save_IFS | |
13592 | ||
13593 | fi | |
13594 | fi | |
13595 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13596 | if test -n "$READELF_FOR_TARGET"; then | |
13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13598 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13599 | else | |
13600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13601 | $as_echo "no" >&6; } | |
13602 | fi | |
13603 | ||
13604 | ||
13605 | fi | |
13606 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13607 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13608 | set dummy ${ncn_progname}; ac_word=$2 | |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13610 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13611 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
13612 | $as_echo_n "(cached) " >&6 |
13613 | else | |
13614 | if test -n "$READELF_FOR_TARGET"; then | |
13615 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13616 | else | |
13617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13618 | for as_dir in $PATH | |
13619 | do | |
13620 | IFS=$as_save_IFS | |
13621 | test -z "$as_dir" && as_dir=. | |
13622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13623 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13624 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13626 | break 2 | |
13627 | fi | |
13628 | done | |
13629 | done | |
13630 | IFS=$as_save_IFS | |
13631 | ||
13632 | fi | |
13633 | fi | |
13634 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13635 | if test -n "$READELF_FOR_TARGET"; then | |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13637 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13638 | else | |
13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13640 | $as_echo "no" >&6; } | |
13641 | fi | |
13642 | ||
13643 | ||
13644 | fi | |
13645 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13646 | done | |
13647 | fi | |
13648 | ||
13649 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13650 | set dummy readelf | |
13651 | if test $build = $target ; then | |
13652 | READELF_FOR_TARGET="$2" | |
13653 | else | |
13654 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13655 | fi | |
13656 | else | |
13657 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13658 | fi | |
13659 | ||
13660 | else | |
13661 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13662 | fi | |
13663 | ||
13664 | ||
13665 | ||
13666 | ||
e8b05380 PB |
13667 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13668 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13670 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13671 | if test -x $with_build_time_tools/strip; then |
13672 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13673 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13675 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 13676 | else |
5213506e RW |
13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13678 | $as_echo "no" >&6; } | |
d1f8db0c | 13679 | fi |
e8b05380 PB |
13680 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13681 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
13682 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13683 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
13684 | fi |
13685 | fi | |
3e19841a | 13686 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13687 | # Extract the first word of "strip", so it can be a program name with args. |
13688 | set dummy strip; ac_word=$2 | |
5213506e RW |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13690 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13691 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 13692 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13693 | else |
1c710c3c DJ |
13694 | case $STRIP_FOR_TARGET in |
13695 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13696 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13697 | ;; | |
e8b05380 | 13698 | *) |
1c710c3c DJ |
13699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13700 | for as_dir in $gcc_cv_tool_dirs | |
13701 | do | |
13702 | IFS=$as_save_IFS | |
13703 | test -z "$as_dir" && as_dir=. | |
5213506e | 13704 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13705 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13706 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13708 | break 2 |
13709 | fi | |
13710 | done | |
5213506e RW |
13711 | done |
13712 | IFS=$as_save_IFS | |
1c710c3c | 13713 | |
e8b05380 PB |
13714 | ;; |
13715 | esac | |
13716 | fi | |
1c710c3c | 13717 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 13718 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13720 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 13721 | else |
5213506e RW |
13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13723 | $as_echo "no" >&6; } | |
e8b05380 PB |
13724 | fi |
13725 | ||
5213506e | 13726 | |
e8b05380 PB |
13727 | fi |
13728 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
13729 | |
13730 | ||
13731 | if test -n "$STRIP_FOR_TARGET"; then | |
13732 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13733 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13734 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13735 | fi | |
13736 | ||
13737 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13738 | for ncn_progname in strip; do | |
13739 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13740 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13742 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13743 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 13744 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13745 | else |
13746 | if test -n "$STRIP_FOR_TARGET"; then | |
13747 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13748 | else | |
13749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13750 | for as_dir in $PATH | |
13751 | do | |
13752 | IFS=$as_save_IFS | |
13753 | test -z "$as_dir" && as_dir=. | |
5213506e | 13754 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13756 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13758 | break 2 |
13759 | fi | |
13760 | done | |
5213506e RW |
13761 | done |
13762 | IFS=$as_save_IFS | |
278a7a38 AO |
13763 | |
13764 | fi | |
13765 | fi | |
13766 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13767 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13769 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 13770 | else |
5213506e RW |
13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13772 | $as_echo "no" >&6; } | |
278a7a38 AO |
13773 | fi |
13774 | ||
5213506e | 13775 | |
278a7a38 AO |
13776 | done |
13777 | fi | |
13778 | ||
13779 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13780 | for ncn_progname in strip; do |
5213506e RW |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13782 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13783 | if test -x $with_build_time_tools/${ncn_progname}; then |
13784 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13786 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13787 | break |
13788 | else | |
5213506e RW |
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13790 | $as_echo "no" >&6; } | |
e8b05380 PB |
13791 | fi |
13792 | done | |
13793 | fi | |
13794 | ||
13795 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13796 | for ncn_progname in strip; do | |
13797 | if test -n "$ncn_target_tool_prefix"; then | |
13798 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13799 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13801 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13802 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 13803 | $as_echo_n "(cached) " >&6 |
af71363e AS |
13804 | else |
13805 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
13806 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13807 | else | |
13808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13809 | for as_dir in $PATH | |
13810 | do | |
13811 | IFS=$as_save_IFS | |
13812 | test -z "$as_dir" && as_dir=. | |
5213506e | 13813 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13815 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13817 | break 2 |
13818 | fi | |
13819 | done | |
5213506e RW |
13820 | done |
13821 | IFS=$as_save_IFS | |
1c710c3c | 13822 | |
040b1c5a GK |
13823 | fi |
13824 | fi | |
1c710c3c | 13825 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13826 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13828 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13829 | else |
5213506e RW |
13830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13831 | $as_echo "no" >&6; } | |
040b1c5a GK |
13832 | fi |
13833 | ||
5213506e | 13834 | |
e8b05380 PB |
13835 | fi |
13836 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13837 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13838 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13840 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13841 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 13842 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
13843 | else |
13844 | if test -n "$STRIP_FOR_TARGET"; then | |
13845 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13846 | else | |
1c710c3c DJ |
13847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13848 | for as_dir in $PATH | |
13849 | do | |
13850 | IFS=$as_save_IFS | |
13851 | test -z "$as_dir" && as_dir=. | |
5213506e | 13852 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13853 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13854 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13856 | break 2 |
13857 | fi | |
13858 | done | |
5213506e RW |
13859 | done |
13860 | IFS=$as_save_IFS | |
1c710c3c | 13861 | |
040b1c5a GK |
13862 | fi |
13863 | fi | |
1c710c3c | 13864 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13865 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13867 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13868 | else |
5213506e RW |
13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13870 | $as_echo "no" >&6; } | |
040b1c5a | 13871 | fi |
1c710c3c | 13872 | |
5213506e | 13873 | |
e8b05380 PB |
13874 | fi |
13875 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13876 | done | |
13877 | fi | |
1c710c3c | 13878 | |
040b1c5a GK |
13879 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13880 | set dummy strip | |
13881 | if test $build = $target ; then | |
13882 | STRIP_FOR_TARGET="$2" | |
13883 | else | |
13884 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13885 | fi | |
1c00b503 PB |
13886 | else |
13887 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
13888 | fi |
13889 | ||
d1f8db0c PB |
13890 | else |
13891 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
13892 | fi |
13893 | ||
13894 | ||
13895 | ||
13896 | ||
13897 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13898 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13900 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13901 | if test -x $with_build_time_tools/windres; then |
13902 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13903 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13905 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 13906 | else |
5213506e RW |
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13908 | $as_echo "no" >&6; } | |
d1f8db0c | 13909 | fi |
e8b05380 PB |
13910 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13911 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
13912 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13913 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
13914 | fi |
13915 | fi | |
3e19841a | 13916 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13917 | # Extract the first word of "windres", so it can be a program name with args. |
13918 | set dummy windres; ac_word=$2 | |
5213506e RW |
13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13920 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13921 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 13922 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13923 | else |
1c710c3c DJ |
13924 | case $WINDRES_FOR_TARGET in |
13925 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13926 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13927 | ;; | |
e8b05380 | 13928 | *) |
1c710c3c DJ |
13929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13930 | for as_dir in $gcc_cv_tool_dirs | |
13931 | do | |
13932 | IFS=$as_save_IFS | |
13933 | test -z "$as_dir" && as_dir=. | |
5213506e | 13934 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13935 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13936 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13938 | break 2 |
13939 | fi | |
13940 | done | |
5213506e RW |
13941 | done |
13942 | IFS=$as_save_IFS | |
1c710c3c | 13943 | |
e8b05380 PB |
13944 | ;; |
13945 | esac | |
13946 | fi | |
1c710c3c | 13947 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 13948 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13950 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 13951 | else |
5213506e RW |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13953 | $as_echo "no" >&6; } | |
e8b05380 PB |
13954 | fi |
13955 | ||
5213506e | 13956 | |
e8b05380 PB |
13957 | fi |
13958 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
13959 | |
13960 | ||
13961 | if test -n "$WINDRES_FOR_TARGET"; then | |
13962 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13963 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13964 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13965 | fi | |
13966 | ||
13967 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13968 | for ncn_progname in windres; do | |
13969 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13970 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13972 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13973 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 13974 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13975 | else |
13976 | if test -n "$WINDRES_FOR_TARGET"; then | |
13977 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13978 | else | |
13979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13980 | for as_dir in $PATH | |
13981 | do | |
13982 | IFS=$as_save_IFS | |
13983 | test -z "$as_dir" && as_dir=. | |
5213506e | 13984 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13986 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13988 | break 2 |
13989 | fi | |
13990 | done | |
5213506e RW |
13991 | done |
13992 | IFS=$as_save_IFS | |
278a7a38 AO |
13993 | |
13994 | fi | |
13995 | fi | |
13996 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13997 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13999 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 14000 | else |
5213506e RW |
14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14002 | $as_echo "no" >&6; } | |
278a7a38 AO |
14003 | fi |
14004 | ||
5213506e | 14005 | |
278a7a38 AO |
14006 | done |
14007 | fi | |
14008 | ||
14009 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14010 | for ncn_progname in windres; do |
5213506e RW |
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14012 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14013 | if test -x $with_build_time_tools/${ncn_progname}; then |
14014 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14016 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14017 | break |
14018 | else | |
5213506e RW |
14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14020 | $as_echo "no" >&6; } | |
e8b05380 PB |
14021 | fi |
14022 | done | |
14023 | fi | |
14024 | ||
14025 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
14026 | for ncn_progname in windres; do | |
14027 | if test -n "$ncn_target_tool_prefix"; then | |
14028 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14029 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14031 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14032 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14033 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14034 | else |
4de997d1 PB |
14035 | if test -n "$WINDRES_FOR_TARGET"; then |
14036 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14037 | else |
1c710c3c DJ |
14038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14039 | for as_dir in $PATH | |
14040 | do | |
14041 | IFS=$as_save_IFS | |
14042 | test -z "$as_dir" && as_dir=. | |
5213506e | 14043 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14045 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14047 | break 2 |
14048 | fi | |
14049 | done | |
5213506e RW |
14050 | done |
14051 | IFS=$as_save_IFS | |
1c710c3c | 14052 | |
ca9f4b81 AO |
14053 | fi |
14054 | fi | |
1c710c3c | 14055 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 14056 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14058 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 14059 | else |
5213506e RW |
14060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14061 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14062 | fi |
14063 | ||
5213506e | 14064 | |
e8b05380 PB |
14065 | fi |
14066 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
14067 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14068 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14070 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14071 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14072 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14073 | else |
2693c0b0 PB |
14074 | if test -n "$WINDRES_FOR_TARGET"; then |
14075 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14076 | else |
1c710c3c DJ |
14077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14078 | for as_dir in $PATH | |
14079 | do | |
14080 | IFS=$as_save_IFS | |
14081 | test -z "$as_dir" && as_dir=. | |
5213506e | 14082 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14084 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 14085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14086 | break 2 |
14087 | fi | |
14088 | done | |
5213506e RW |
14089 | done |
14090 | IFS=$as_save_IFS | |
1c710c3c | 14091 | |
ca9f4b81 AO |
14092 | fi |
14093 | fi | |
1c710c3c | 14094 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 14095 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14097 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 14098 | else |
5213506e RW |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14100 | $as_echo "no" >&6; } | |
ca9f4b81 | 14101 | fi |
1c710c3c | 14102 | |
5213506e | 14103 | |
e8b05380 PB |
14104 | fi |
14105 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
14106 | done | |
14107 | fi | |
1c710c3c | 14108 | |
2693c0b0 PB |
14109 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
14110 | set dummy windres | |
14111 | if test $build = $target ; then | |
14112 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 14113 | else |
2693c0b0 | 14114 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14115 | fi |
1c00b503 PB |
14116 | else |
14117 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
14118 | fi |
14119 | ||
d1f8db0c PB |
14120 | else |
14121 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
14122 | fi |
14123 | ||
4977bab6 | 14124 | |
901119ae KT |
14125 | |
14126 | ||
14127 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14128 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
14130 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
14131 | if test -x $with_build_time_tools/windmc; then |
14132 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
14133 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
14135 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14136 | else |
5213506e RW |
14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14138 | $as_echo "no" >&6; } | |
901119ae KT |
14139 | fi |
14140 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14141 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
14142 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
14143 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
14144 | fi |
14145 | fi | |
14146 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14147 | # Extract the first word of "windmc", so it can be a program name with args. | |
14148 | set dummy windmc; ac_word=$2 | |
5213506e RW |
14149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14150 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14151 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14152 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14153 | else |
14154 | case $WINDMC_FOR_TARGET in | |
14155 | [\\/]* | ?:[\\/]*) | |
14156 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
14157 | ;; | |
14158 | *) | |
14159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14160 | for as_dir in $gcc_cv_tool_dirs | |
14161 | do | |
14162 | IFS=$as_save_IFS | |
14163 | test -z "$as_dir" && as_dir=. | |
5213506e | 14164 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14165 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14166 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14168 | break 2 |
14169 | fi | |
14170 | done | |
5213506e RW |
14171 | done |
14172 | IFS=$as_save_IFS | |
901119ae KT |
14173 | |
14174 | ;; | |
14175 | esac | |
14176 | fi | |
14177 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 14178 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14180 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14181 | else |
5213506e RW |
14182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14183 | $as_echo "no" >&6; } | |
901119ae KT |
14184 | fi |
14185 | ||
5213506e | 14186 | |
901119ae KT |
14187 | fi |
14188 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14189 | ||
14190 | ||
14191 | if test -n "$WINDMC_FOR_TARGET"; then | |
14192 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
14193 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14194 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14195 | fi | |
14196 | ||
14197 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14198 | for ncn_progname in windmc; do | |
14199 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14200 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14202 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14203 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14204 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14205 | else |
14206 | if test -n "$WINDMC_FOR_TARGET"; then | |
14207 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14208 | else | |
14209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14210 | for as_dir in $PATH | |
14211 | do | |
14212 | IFS=$as_save_IFS | |
14213 | test -z "$as_dir" && as_dir=. | |
5213506e | 14214 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14216 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 14217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14218 | break 2 |
14219 | fi | |
14220 | done | |
5213506e RW |
14221 | done |
14222 | IFS=$as_save_IFS | |
901119ae KT |
14223 | |
14224 | fi | |
14225 | fi | |
14226 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14227 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
14228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14229 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14230 | else |
5213506e RW |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14232 | $as_echo "no" >&6; } | |
901119ae KT |
14233 | fi |
14234 | ||
5213506e | 14235 | |
901119ae KT |
14236 | done |
14237 | fi | |
14238 | ||
14239 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14240 | for ncn_progname in windmc; do | |
5213506e RW |
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14242 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
14243 | if test -x $with_build_time_tools/${ncn_progname}; then |
14244 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14246 | $as_echo "yes" >&6; } | |
901119ae KT |
14247 | break |
14248 | else | |
5213506e RW |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14250 | $as_echo "no" >&6; } | |
901119ae KT |
14251 | fi |
14252 | done | |
14253 | fi | |
14254 | ||
14255 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14256 | for ncn_progname in windmc; do | |
14257 | if test -n "$ncn_target_tool_prefix"; then | |
14258 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14259 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14261 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14262 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14263 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14264 | else |
14265 | if test -n "$WINDMC_FOR_TARGET"; then | |
14266 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14267 | else | |
14268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14269 | for as_dir in $PATH | |
14270 | do | |
14271 | IFS=$as_save_IFS | |
14272 | test -z "$as_dir" && as_dir=. | |
5213506e | 14273 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14274 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14275 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14277 | break 2 |
14278 | fi | |
14279 | done | |
5213506e RW |
14280 | done |
14281 | IFS=$as_save_IFS | |
901119ae KT |
14282 | |
14283 | fi | |
14284 | fi | |
14285 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14286 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14288 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14289 | else |
5213506e RW |
14290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14291 | $as_echo "no" >&6; } | |
901119ae KT |
14292 | fi |
14293 | ||
5213506e | 14294 | |
901119ae KT |
14295 | fi |
14296 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
14297 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14298 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14300 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14301 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14302 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14303 | else |
14304 | if test -n "$WINDMC_FOR_TARGET"; then | |
14305 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14306 | else | |
14307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14308 | for as_dir in $PATH | |
14309 | do | |
14310 | IFS=$as_save_IFS | |
14311 | test -z "$as_dir" && as_dir=. | |
5213506e | 14312 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14314 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 14315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14316 | break 2 |
14317 | fi | |
14318 | done | |
5213506e RW |
14319 | done |
14320 | IFS=$as_save_IFS | |
901119ae KT |
14321 | |
14322 | fi | |
14323 | fi | |
14324 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14325 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14327 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14328 | else |
5213506e RW |
14329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14330 | $as_echo "no" >&6; } | |
901119ae KT |
14331 | fi |
14332 | ||
5213506e | 14333 | |
901119ae KT |
14334 | fi |
14335 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
14336 | done | |
14337 | fi | |
14338 | ||
14339 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
14340 | set dummy windmc | |
14341 | if test $build = $target ; then | |
14342 | WINDMC_FOR_TARGET="$2" | |
14343 | else | |
14344 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14345 | fi | |
1c00b503 PB |
14346 | else |
14347 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
14348 | fi |
14349 | ||
14350 | else | |
14351 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
14352 | fi | |
14353 | ||
14354 | ||
2abefe3d PB |
14355 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
14356 | ||
5213506e RW |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
14358 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 14359 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14360 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14361 | # We already found the complete path | |
172e41aa | 14362 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14364 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14365 | else |
14366 | # Canadian cross, just use what we found | |
5213506e RW |
14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14368 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14369 | fi |
2abefe3d PB |
14370 | else |
14371 | ok=yes | |
14372 | case " ${configdirs} " in | |
14373 | *" binutils "*) ;; | |
14374 | *) ok=no ;; | |
14375 | esac | |
1c710c3c | 14376 | |
2abefe3d PB |
14377 | if test $ok = yes; then |
14378 | # An in-tree tool is available and we can use it | |
14379 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14381 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14382 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14383 | # We already found the complete path | |
172e41aa | 14384 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14386 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14387 | elif test "x$target" = "x$host"; then |
14388 | # We can use an host tool | |
14389 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14391 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14392 | else |
14393 | # We need a cross tool | |
5213506e RW |
14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14395 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14396 | fi |
14397 | fi | |
0b0dc272 | 14398 | |
5213506e RW |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
14400 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 14401 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14402 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14403 | # We already found the complete path | |
172e41aa | 14404 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14406 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14407 | else |
14408 | # Canadian cross, just use what we found | |
5213506e RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14410 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14411 | fi |
2abefe3d PB |
14412 | else |
14413 | ok=yes | |
14414 | case " ${configdirs} " in | |
14415 | *" gas "*) ;; | |
14416 | *) ok=no ;; | |
14417 | esac | |
1c710c3c | 14418 | |
2abefe3d PB |
14419 | if test $ok = yes; then |
14420 | # An in-tree tool is available and we can use it | |
14421 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14423 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14424 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14425 | # We already found the complete path | |
172e41aa | 14426 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14428 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14429 | elif test "x$target" = "x$host"; then |
14430 | # We can use an host tool | |
14431 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14433 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14434 | else |
14435 | # We need a cross tool | |
5213506e RW |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14437 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14438 | fi |
14439 | fi | |
0b0dc272 | 14440 | |
5213506e RW |
14441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14442 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 14443 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14444 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14445 | # We already found the complete path | |
172e41aa | 14446 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14448 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14449 | else |
14450 | # Canadian cross, just use what we found | |
5213506e RW |
14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14452 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14453 | fi |
2abefe3d PB |
14454 | else |
14455 | ok=yes | |
14456 | case " ${configdirs} " in | |
14457 | *" gcc "*) ;; | |
14458 | *) ok=no ;; | |
14459 | esac | |
1c710c3c | 14460 | |
2abefe3d PB |
14461 | if test $ok = yes; then |
14462 | # An in-tree tool is available and we can use it | |
14463 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14465 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14466 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14467 | # We already found the complete path | |
172e41aa | 14468 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14470 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14471 | elif test "x$target" = "x$host"; then |
14472 | # We can use an host tool | |
14473 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
14474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14475 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14476 | else |
14477 | # We need a cross tool | |
5213506e RW |
14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14479 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14480 | fi |
14481 | fi | |
0b0dc272 | 14482 | |
5213506e RW |
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14484 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 14485 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14486 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14487 | # We already found the complete path | |
172e41aa | 14488 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14490 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14491 | else |
14492 | # Canadian cross, just use what we found | |
5213506e RW |
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14494 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14495 | fi |
2abefe3d PB |
14496 | else |
14497 | ok=yes | |
14498 | case " ${configdirs} " in | |
14499 | *" gcc "*) ;; | |
14500 | *) ok=no ;; | |
14501 | esac | |
14502 | case ,${enable_languages}, in | |
14503 | *,c++,*) ;; | |
14504 | *) ok=no ;; | |
14505 | esac | |
14506 | if test $ok = yes; then | |
14507 | # An in-tree tool is available and we can use it | |
2077db1b | 14508 | 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 |
14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14510 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14511 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14512 | # We already found the complete path | |
172e41aa | 14513 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
14514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14515 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14516 | elif test "x$target" = "x$host"; then |
14517 | # We can use an host tool | |
14518 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14520 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14521 | else |
14522 | # We need a cross tool | |
5213506e RW |
14523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14524 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14525 | fi |
14526 | fi | |
0b0dc272 | 14527 | |
5213506e RW |
14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14529 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 14530 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14531 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14532 | # We already found the complete path | |
172e41aa | 14533 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
14534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14535 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14536 | else |
14537 | # Canadian cross, just use what we found | |
5213506e RW |
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14539 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14540 | fi |
2abefe3d PB |
14541 | else |
14542 | ok=yes | |
14543 | case " ${configdirs} " in | |
14544 | *" gcc "*) ;; | |
14545 | *) ok=no ;; | |
14546 | esac | |
14547 | case ,${enable_languages}, in | |
14548 | *,c++,*) ;; | |
14549 | *) ok=no ;; | |
14550 | esac | |
14551 | if test $ok = yes; then | |
14552 | # An in-tree tool is available and we can use it | |
2077db1b | 14553 | 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 |
14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14555 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14556 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14557 | # We already found the complete path | |
172e41aa | 14558 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
14559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14560 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14561 | elif test "x$target" = "x$host"; then |
14562 | # We can use an host tool | |
14563 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
14564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14565 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14566 | else |
14567 | # We need a cross tool | |
5213506e RW |
14568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14569 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14570 | fi |
14571 | fi | |
0b0dc272 | 14572 | |
5213506e RW |
14573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14574 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 14575 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14576 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14577 | # We already found the complete path | |
172e41aa | 14578 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14580 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14581 | else |
14582 | # Canadian cross, just use what we found | |
5213506e RW |
14583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14584 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14585 | fi |
2abefe3d PB |
14586 | else |
14587 | ok=yes | |
14588 | case " ${configdirs} " in | |
14589 | *" binutils "*) ;; | |
14590 | *) ok=no ;; | |
14591 | esac | |
1c710c3c | 14592 | |
2abefe3d PB |
14593 | if test $ok = yes; then |
14594 | # An in-tree tool is available and we can use it | |
14595 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14597 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14598 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14599 | # We already found the complete path | |
172e41aa | 14600 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14602 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14603 | elif test "x$target" = "x$host"; then |
14604 | # We can use an host tool | |
14605 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14607 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14608 | else |
14609 | # We need a cross tool | |
5213506e RW |
14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14611 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14612 | fi |
14613 | fi | |
0b0dc272 | 14614 | |
5213506e RW |
14615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14616 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 14617 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14618 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14619 | # We already found the complete path | |
172e41aa | 14620 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14622 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14623 | else |
14624 | # Canadian cross, just use what we found | |
5213506e RW |
14625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14626 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14627 | fi |
2abefe3d PB |
14628 | else |
14629 | ok=yes | |
14630 | case " ${configdirs} " in | |
14631 | *" gcc "*) ;; | |
14632 | *) ok=no ;; | |
14633 | esac | |
1c710c3c | 14634 | |
2abefe3d PB |
14635 | if test $ok = yes; then |
14636 | # An in-tree tool is available and we can use it | |
14637 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14639 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14640 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14641 | # We already found the complete path | |
172e41aa | 14642 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14644 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14645 | elif test "x$target" = "x$host"; then |
14646 | # We can use an host tool | |
14647 | GCC_FOR_TARGET='$()' | |
5213506e RW |
14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14649 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14650 | else |
14651 | # We need a cross tool | |
5213506e RW |
14652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14653 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14654 | fi |
14655 | fi | |
0b0dc272 | 14656 | |
5213506e RW |
14657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14658 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 14659 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14660 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14661 | # We already found the complete path | |
172e41aa | 14662 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14664 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14665 | else |
14666 | # Canadian cross, just use what we found | |
5213506e RW |
14667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14668 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14669 | fi |
2abefe3d PB |
14670 | else |
14671 | ok=yes | |
14672 | case " ${configdirs} " in | |
14673 | *" gcc "*) ;; | |
14674 | *) ok=no ;; | |
14675 | esac | |
14676 | case ,${enable_languages}, in | |
14677 | *,fortran,*) ;; | |
14678 | *) ok=no ;; | |
14679 | esac | |
14680 | if test $ok = yes; then | |
14681 | # An in-tree tool is available and we can use it | |
14682 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14684 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14685 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14686 | # We already found the complete path | |
172e41aa | 14687 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14689 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14690 | elif test "x$target" = "x$host"; then |
14691 | # We can use an host tool | |
14692 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14694 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14695 | else |
14696 | # We need a cross tool | |
5213506e RW |
14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14698 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14699 | fi |
14700 | fi | |
0b0dc272 | 14701 | |
632e2a07 ILT |
14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14703 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14704 | if test "x${build}" != "x${host}" ; then | |
14705 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14706 | # We already found the complete path | |
14707 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14709 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14710 | else | |
14711 | # Canadian cross, just use what we found | |
14712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14713 | $as_echo "pre-installed" >&6; } | |
14714 | fi | |
14715 | else | |
14716 | ok=yes | |
14717 | case " ${configdirs} " in | |
14718 | *" gcc "*) ;; | |
14719 | *) ok=no ;; | |
14720 | esac | |
14721 | case ,${enable_languages}, in | |
14722 | *,go,*) ;; | |
14723 | *) ok=no ;; | |
14724 | esac | |
14725 | if test $ok = yes; then | |
14726 | # An in-tree tool is available and we can use it | |
14727 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14729 | $as_echo "just compiled" >&6; } | |
14730 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14731 | # We already found the complete path | |
14732 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14734 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14735 | elif test "x$target" = "x$host"; then | |
14736 | # We can use an host tool | |
14737 | GOC_FOR_TARGET='$(GOC)' | |
14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14739 | $as_echo "host tool" >&6; } | |
14740 | else | |
14741 | # We need a cross tool | |
14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14743 | $as_echo "pre-installed" >&6; } | |
14744 | fi | |
14745 | fi | |
14746 | ||
b4c522fa IB |
14747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
14748 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
14749 | if test "x${build}" != "x${host}" ; then | |
14750 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14751 | # We already found the complete path | |
14752 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14754 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14755 | else | |
14756 | # Canadian cross, just use what we found | |
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14758 | $as_echo "pre-installed" >&6; } | |
14759 | fi | |
14760 | else | |
14761 | ok=yes | |
14762 | case " ${configdirs} " in | |
14763 | *" gcc "*) ;; | |
14764 | *) ok=no ;; | |
14765 | esac | |
14766 | case ,${enable_languages}, in | |
14767 | *,d,*) ;; | |
14768 | *) ok=no ;; | |
14769 | esac | |
14770 | if test $ok = yes; then | |
14771 | # An in-tree tool is available and we can use it | |
14772 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14774 | $as_echo "just compiled" >&6; } | |
14775 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14776 | # We already found the complete path | |
14777 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14779 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14780 | elif test "x$target" = "x$host"; then | |
14781 | # We can use an host tool | |
14782 | GDC_FOR_TARGET='$(GDC)' | |
14783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14784 | $as_echo "host tool" >&6; } | |
14785 | else | |
14786 | # We need a cross tool | |
14787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14788 | $as_echo "pre-installed" >&6; } | |
14789 | fi | |
14790 | fi | |
14791 | ||
5213506e RW |
14792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14793 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 14794 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14795 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14796 | # We already found the complete path | |
172e41aa | 14797 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14799 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14800 | else |
14801 | # Canadian cross, just use what we found | |
5213506e RW |
14802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14803 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14804 | fi |
2abefe3d PB |
14805 | else |
14806 | ok=yes | |
14807 | case " ${configdirs} " in | |
14808 | *" ld "*) ;; | |
14809 | *) ok=no ;; | |
14810 | esac | |
1c710c3c | 14811 | |
2abefe3d PB |
14812 | if test $ok = yes; then |
14813 | # An in-tree tool is available and we can use it | |
14814 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
14815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14816 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14817 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14818 | # We already found the complete path | |
172e41aa | 14819 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14821 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14822 | elif test "x$target" = "x$host"; then |
14823 | # We can use an host tool | |
14824 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
14825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14826 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14827 | else |
14828 | # We need a cross tool | |
5213506e RW |
14829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14830 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14831 | fi |
14832 | fi | |
0b0dc272 | 14833 | |
5213506e RW |
14834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14835 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 14836 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14837 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14838 | # We already found the complete path | |
172e41aa | 14839 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14841 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14842 | else |
14843 | # Canadian cross, just use what we found | |
5213506e RW |
14844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14845 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14846 | fi |
2abefe3d | 14847 | else |
e8b05380 PB |
14848 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14849 | # We already found the complete path | |
172e41aa | 14850 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14852 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 14853 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
14854 | # We can use an host tool |
14855 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
14856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14857 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14858 | else |
14859 | # We need a cross tool | |
5213506e RW |
14860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14861 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14862 | fi |
14863 | fi | |
0b0dc272 | 14864 | |
5213506e RW |
14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14866 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 14867 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14868 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14869 | # We already found the complete path | |
172e41aa | 14870 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14872 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14873 | else |
14874 | # Canadian cross, just use what we found | |
5213506e RW |
14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14876 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14877 | fi |
2abefe3d PB |
14878 | else |
14879 | ok=yes | |
14880 | case " ${configdirs} " in | |
14881 | *" binutils "*) ;; | |
14882 | *) ok=no ;; | |
14883 | esac | |
1c710c3c | 14884 | |
2abefe3d PB |
14885 | if test $ok = yes; then |
14886 | # An in-tree tool is available and we can use it | |
14887 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
14888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14889 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14890 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14891 | # We already found the complete path | |
172e41aa | 14892 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14894 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14895 | elif test "x$target" = "x$host"; then |
14896 | # We can use an host tool | |
14897 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
14898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14899 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14900 | else |
14901 | # We need a cross tool | |
5213506e RW |
14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14903 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14904 | fi |
14905 | fi | |
0b0dc272 | 14906 | |
9bccfdf5 AP |
14907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14908 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14909 | if test "x${build}" != "x${host}" ; then | |
14910 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14911 | # We already found the complete path | |
14912 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14914 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14915 | else | |
14916 | # Canadian cross, just use what we found | |
14917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14918 | $as_echo "pre-installed" >&6; } | |
14919 | fi | |
14920 | else | |
14921 | ok=yes | |
14922 | case " ${configdirs} " in | |
14923 | *" binutils "*) ;; | |
14924 | *) ok=no ;; | |
14925 | esac | |
14926 | ||
14927 | if test $ok = yes; then | |
14928 | # An in-tree tool is available and we can use it | |
14929 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14931 | $as_echo "just compiled" >&6; } | |
14932 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14933 | # We already found the complete path | |
14934 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14936 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14937 | elif test "x$target" = "x$host"; then | |
14938 | # We can use an host tool | |
ec8fd1c0 | 14939 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
14940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14941 | $as_echo "host tool" >&6; } | |
14942 | else | |
14943 | # We need a cross tool | |
14944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14945 | $as_echo "pre-installed" >&6; } | |
14946 | fi | |
14947 | fi | |
14948 | ||
5213506e RW |
14949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14950 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 14951 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14952 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14953 | # We already found the complete path | |
172e41aa | 14954 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14956 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14957 | else |
14958 | # Canadian cross, just use what we found | |
5213506e RW |
14959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14960 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14961 | fi |
2abefe3d PB |
14962 | else |
14963 | ok=yes | |
14964 | case " ${configdirs} " in | |
14965 | *" binutils "*) ;; | |
14966 | *) ok=no ;; | |
14967 | esac | |
1c710c3c | 14968 | |
2abefe3d PB |
14969 | if test $ok = yes; then |
14970 | # An in-tree tool is available and we can use it | |
14971 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
14972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14973 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14974 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14975 | # We already found the complete path | |
172e41aa | 14976 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14978 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14979 | elif test "x$target" = "x$host"; then |
14980 | # We can use an host tool | |
14981 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
14982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14983 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14984 | else |
14985 | # We need a cross tool | |
5213506e RW |
14986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14987 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14988 | fi |
14989 | fi | |
0b0dc272 | 14990 | |
e4a9a572 IS |
14991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
14992 | $as_echo_n "checking where to find the target otool... " >&6; } | |
14993 | if test "x${build}" != "x${host}" ; then | |
14994 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
14995 | # We already found the complete path | |
14996 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
14997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14998 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14999 | else | |
15000 | # Canadian cross, just use what we found | |
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15002 | $as_echo "pre-installed" >&6; } | |
15003 | fi | |
15004 | else | |
15005 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
15006 | # We already found the complete path | |
15007 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
15008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15009 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15010 | elif test "x$target" = "x$host"; then | |
15011 | # We can use an host tool | |
15012 | OTOOL_FOR_TARGET='$(OTOOL)' | |
15013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15014 | $as_echo "host tool" >&6; } | |
15015 | else | |
15016 | # We need a cross tool | |
15017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15018 | $as_echo "pre-installed" >&6; } | |
15019 | fi | |
15020 | fi | |
15021 | ||
5213506e RW |
15022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
15023 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 15024 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15025 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15026 | # We already found the complete path | |
172e41aa | 15027 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
15028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15029 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15030 | else |
15031 | # Canadian cross, just use what we found | |
5213506e RW |
15032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15033 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15034 | fi |
2abefe3d PB |
15035 | else |
15036 | ok=yes | |
15037 | case " ${configdirs} " in | |
15038 | *" binutils "*) ;; | |
15039 | *) ok=no ;; | |
15040 | esac | |
1c710c3c | 15041 | |
2abefe3d PB |
15042 | if test $ok = yes; then |
15043 | # An in-tree tool is available and we can use it | |
15044 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
15045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15046 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15047 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15048 | # We already found the complete path | |
172e41aa | 15049 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
15050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15051 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15052 | elif test "x$target" = "x$host"; then |
15053 | # We can use an host tool | |
15054 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
15055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15056 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15057 | else |
15058 | # We need a cross tool | |
5213506e RW |
15059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15060 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15061 | fi |
15062 | fi | |
0b0dc272 | 15063 | |
e7a82751 RM |
15064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
15065 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
15066 | if test "x${build}" != "x${host}" ; then | |
15067 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15068 | # We already found the complete path | |
15069 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15071 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15072 | else | |
15073 | # Canadian cross, just use what we found | |
15074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15075 | $as_echo "pre-installed" >&6; } | |
15076 | fi | |
15077 | else | |
15078 | ok=yes | |
15079 | case " ${configdirs} " in | |
15080 | *" binutils "*) ;; | |
15081 | *) ok=no ;; | |
15082 | esac | |
15083 | ||
15084 | if test $ok = yes; then | |
15085 | # An in-tree tool is available and we can use it | |
15086 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
15087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15088 | $as_echo "just compiled" >&6; } | |
15089 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15090 | # We already found the complete path | |
15091 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15093 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15094 | elif test "x$target" = "x$host"; then | |
15095 | # We can use an host tool | |
15096 | READELF_FOR_TARGET='$(READELF)' | |
15097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15098 | $as_echo "host tool" >&6; } | |
15099 | else | |
15100 | # We need a cross tool | |
15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15102 | $as_echo "pre-installed" >&6; } | |
15103 | fi | |
15104 | fi | |
15105 | ||
5213506e RW |
15106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
15107 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 15108 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15109 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15110 | # We already found the complete path | |
172e41aa | 15111 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
15112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15113 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15114 | else |
15115 | # Canadian cross, just use what we found | |
5213506e RW |
15116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15117 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15118 | fi |
2abefe3d PB |
15119 | else |
15120 | ok=yes | |
15121 | case " ${configdirs} " in | |
15122 | *" binutils "*) ;; | |
15123 | *) ok=no ;; | |
15124 | esac | |
1c710c3c | 15125 | |
2abefe3d PB |
15126 | if test $ok = yes; then |
15127 | # An in-tree tool is available and we can use it | |
455c8f48 | 15128 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15130 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15131 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15132 | # We already found the complete path | |
172e41aa | 15133 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15135 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15136 | elif test "x$target" = "x$host"; then |
15137 | # We can use an host tool | |
15138 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15140 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15141 | else |
15142 | # We need a cross tool | |
5213506e RW |
15143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15144 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15145 | fi |
15146 | fi | |
0b0dc272 | 15147 | |
5213506e RW |
15148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
15149 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 15150 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15151 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15152 | # We already found the complete path | |
172e41aa | 15153 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
15154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15155 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15156 | else |
15157 | # Canadian cross, just use what we found | |
5213506e RW |
15158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15159 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15160 | fi |
2abefe3d PB |
15161 | else |
15162 | ok=yes | |
15163 | case " ${configdirs} " in | |
15164 | *" binutils "*) ;; | |
15165 | *) ok=no ;; | |
15166 | esac | |
1c710c3c | 15167 | |
2abefe3d PB |
15168 | if test $ok = yes; then |
15169 | # An in-tree tool is available and we can use it | |
15170 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15172 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15173 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15174 | # We already found the complete path | |
172e41aa | 15175 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
15176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15177 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15178 | elif test "x$target" = "x$host"; then |
15179 | # We can use an host tool | |
15180 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
15181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15182 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15183 | else |
15184 | # We need a cross tool | |
5213506e RW |
15185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15186 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 15187 | fi |
671aa708 | 15188 | fi |
be912515 | 15189 | |
5213506e RW |
15190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
15191 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
15192 | if test "x${build}" != "x${host}" ; then |
15193 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
15194 | # We already found the complete path | |
15195 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
15196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15197 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
15198 | else |
15199 | # Canadian cross, just use what we found | |
5213506e RW |
15200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15201 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
15202 | fi |
15203 | else | |
15204 | ok=yes | |
15205 | case " ${configdirs} " in | |
15206 | *" binutils "*) ;; | |
15207 | *) ok=no ;; | |
15208 | esac | |
15209 | ||
15210 | if test $ok = yes; then | |
15211 | # An in-tree tool is available and we can use it | |
15212 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
15213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15214 | $as_echo "just compiled" >&6; } | |
901119ae KT |
15215 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
15216 | # We already found the complete path | |
15217 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
15218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15219 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
15220 | elif test "x$target" = "x$host"; then |
15221 | # We can use an host tool | |
15222 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
15223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15224 | $as_echo "host tool" >&6; } | |
901119ae KT |
15225 | else |
15226 | # We need a cross tool | |
5213506e RW |
15227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15228 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
15229 | fi |
15230 | fi | |
15231 | ||
be912515 NN |
15232 | |
15233 | ||
2abefe3d | 15234 | |
0b0dc272 | 15235 | |
671aa708 NN |
15236 | # Certain tools may need extra flags. |
15237 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
15238 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
15239 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
15240 | ||
2abefe3d PB |
15241 | # When building target libraries, except in a Canadian cross, we use |
15242 | # the same toolchain as the compiler we just built. | |
15243 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
15244 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
15245 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
15246 | if test $host = $build; then | |
15247 | case " $configdirs " in | |
15248 | *" gcc "*) | |
15249 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
15250 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
15251 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
15252 | ;; | |
15253 | esac | |
15254 | fi | |
15255 | ||
15256 | ||
15257 | ||
15258 | ||
15259 | ||
5213506e RW |
15260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
15261 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
15262 | # Check whether --enable-maintainer-mode was given. | |
15263 | if test "${enable_maintainer_mode+set}" = set; then : | |
15264 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
15265 | else |
15266 | USE_MAINTAINER_MODE=no | |
5213506e RW |
15267 | fi |
15268 | ||
15269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
15270 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
15271 | |
15272 | ||
15273 | if test "$USE_MAINTAINER_MODE" = yes; then | |
15274 | MAINTAINER_MODE_TRUE= | |
15275 | MAINTAINER_MODE_FALSE='#' | |
15276 | else | |
15277 | MAINTAINER_MODE_TRUE='#' | |
15278 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 15279 | fi |
ee03dc5e AO |
15280 | MAINT=$MAINTAINER_MODE_TRUE |
15281 | ||
2805b53a NN |
15282 | # --------------------- |
15283 | # GCC bootstrap support | |
15284 | # --------------------- | |
15285 | ||
15286 | # Stage specific cflags for build. | |
15287 | stage1_cflags="-g" | |
15288 | case $build in | |
15289 | vax-*-*) | |
15290 | case ${GCC} in | |
15291 | yes) stage1_cflags="-g -Wa,-J" ;; | |
15292 | *) stage1_cflags="-g -J" ;; | |
15293 | esac ;; | |
2805b53a NN |
15294 | esac |
15295 | ||
0b50988a | 15296 | |
2805b53a | 15297 | |
8efea775 | 15298 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
15299 | # Check whether --enable-stage1-checking was given. |
15300 | if test "${enable_stage1_checking+set}" = set; then : | |
15301 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 15302 | else |
e643dc23 | 15303 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
15304 | # For --disable-checking or implicit --enable-checking=release, avoid |
15305 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
15306 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
15307 | case $BUILD_CONFIG in |
15308 | *lto*) | |
7db11a5a JJ |
15309 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
15310 | *) | |
15311 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 15312 | esac |
7db11a5a JJ |
15313 | if test "x$enable_checking" = x && \ |
15314 | test -d ${srcdir}/gcc && \ | |
15315 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 15316 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 15317 | fi |
8efea775 | 15318 | else |
e643dc23 | 15319 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 15320 | fi |
5213506e | 15321 | fi |
8efea775 PB |
15322 | |
15323 | ||
2aeb72e9 | 15324 | |
5213506e RW |
15325 | # Enable -Werror in bootstrap stage2 and later. |
15326 | # Check whether --enable-werror was given. | |
15327 | if test "${enable_werror+set}" = set; then : | |
15328 | enableval=$enable_werror; | |
09a9c095 NN |
15329 | case ${enable_werror} in |
15330 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
15331 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
15332 | esac |
15333 | ||
afd88efc ML |
15334 | else |
15335 | ||
01c712cb ML |
15336 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
15337 | case $BUILD_CONFIG in | |
15338 | bootstrap-debug) | |
15339 | stage2_werror_flag="--enable-werror-always" ;; | |
15340 | "") | |
15341 | stage2_werror_flag="--enable-werror-always" ;; | |
15342 | esac | |
15343 | fi | |
15344 | ||
afd88efc ML |
15345 | fi |
15346 | ||
15347 | ||
01c712cb | 15348 | |
2805b53a | 15349 | |
f2689b09 SE |
15350 | # Specify what files to not compare during bootstrap. |
15351 | ||
15352 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
15353 | case "$target" in | |
15354 | hppa*64*-*-hpux*) ;; | |
510555e0 | 15355 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
d91491e5 | 15356 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
f2689b09 SE |
15357 | esac |
15358 | ||
15359 | ||
5213506e RW |
15360 | ac_config_files="$ac_config_files Makefile" |
15361 | ||
1c710c3c | 15362 | cat >confcache <<\_ACEOF |
671aa708 NN |
15363 | # This file is a shell script that caches the results of configure |
15364 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
15365 | # scripts and configure runs, see configure's option --config-cache. |
15366 | # It is not useful on other systems. If it contains results you don't | |
15367 | # want to keep, you may remove or edit it. | |
671aa708 | 15368 | # |
1c710c3c DJ |
15369 | # config.status only pays attention to the cache file if you give it |
15370 | # the --recheck option to rerun configure. | |
671aa708 | 15371 | # |
1c710c3c DJ |
15372 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15373 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15374 | # following values. | |
15375 | ||
15376 | _ACEOF | |
15377 | ||
671aa708 NN |
15378 | # The following way of writing the cache mishandles newlines in values, |
15379 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 15380 | # So, we kill variables containing newlines. |
671aa708 NN |
15381 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15382 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
15383 | ( |
15384 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15385 | eval ac_val=\$$ac_var | |
15386 | case $ac_val in #( | |
15387 | *${as_nl}*) | |
15388 | case $ac_var in #( | |
15389 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15390 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15391 | esac | |
15392 | case $ac_var in #( | |
15393 | _ | IFS | as_nl) ;; #( | |
15394 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15395 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15396 | esac ;; | |
15397 | esac | |
15398 | done | |
15399 | ||
1c710c3c | 15400 | (set) 2>&1 | |
5213506e RW |
15401 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15402 | *${as_nl}ac_space=\ *) | |
15403 | # `set' does not quote correctly, so add quotes: double-quote | |
15404 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
15405 | sed -n \ |
15406 | "s/'/'\\\\''/g; | |
15407 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 15408 | ;; #( |
1c710c3c DJ |
15409 | *) |
15410 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 15411 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 15412 | ;; |
5213506e RW |
15413 | esac | |
15414 | sort | |
15415 | ) | | |
1c710c3c | 15416 | sed ' |
5213506e | 15417 | /^ac_cv_env_/b end |
1c710c3c | 15418 | t clear |
5213506e | 15419 | :clear |
1c710c3c DJ |
15420 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15421 | t end | |
5213506e RW |
15422 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15423 | :end' >>confcache | |
15424 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15425 | if test -w "$cache_file"; then | |
22e05272 | 15426 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
15427 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15428 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
15429 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15430 | cat confcache >"$cache_file" | |
15431 | else | |
15432 | case $cache_file in #( | |
15433 | */* | ?:*) | |
15434 | mv -f confcache "$cache_file"$$ && | |
15435 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15436 | *) | |
15437 | mv -f confcache "$cache_file" ;; | |
15438 | esac | |
15439 | fi | |
15440 | fi | |
671aa708 | 15441 | else |
5213506e RW |
15442 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15443 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 15444 | fi |
4977bab6 | 15445 | fi |
671aa708 | 15446 | rm -f confcache |
79c06341 | 15447 | |
671aa708 NN |
15448 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15449 | # Let make expand exec_prefix. | |
15450 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 15451 | |
671aa708 NN |
15452 | # Transform confdefs.h into DEFS. |
15453 | # Protect against shell expansion while executing Makefile rules. | |
15454 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
15455 | # |
15456 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 15457 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 15458 | # look for a macro that doesn't take arguments. |
5213506e RW |
15459 | ac_script=' |
15460 | :mline | |
15461 | /\\$/{ | |
15462 | N | |
15463 | s,\\\n,, | |
15464 | b mline | |
15465 | } | |
1c710c3c | 15466 | t clear |
5213506e RW |
15467 | :clear |
15468 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 15469 | t quote |
5213506e | 15470 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 15471 | t quote |
5213506e RW |
15472 | b any |
15473 | :quote | |
15474 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15475 | s/\[/\\&/g | |
15476 | s/\]/\\&/g | |
15477 | s/\$/$$/g | |
15478 | H | |
15479 | :any | |
15480 | ${ | |
15481 | g | |
15482 | s/^\n// | |
15483 | s/\n/ /g | |
15484 | p | |
15485 | } | |
15486 | ' | |
15487 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
15488 | |
15489 | ||
15490 | ac_libobjs= | |
15491 | ac_ltlibobjs= | |
22e05272 | 15492 | U= |
1c710c3c DJ |
15493 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15494 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
15495 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15496 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15497 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15498 | # will be set to the directory where LIBOBJS objects are built. | |
15499 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15500 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
15501 | done |
15502 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 15503 | |
1c710c3c | 15504 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 15505 | |
af71363e | 15506 | |
1c710c3c | 15507 | |
22e05272 | 15508 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 15509 | ac_write_fail=0 |
1c710c3c DJ |
15510 | ac_clean_files_save=$ac_clean_files |
15511 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
15512 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15513 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15514 | as_write_fail=0 | |
15515 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
15516 | #! $SHELL |
15517 | # Generated by $as_me. | |
671aa708 | 15518 | # Run this file to recreate the current configuration. |
671aa708 | 15519 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 15520 | # configure, is in config.log if it exists. |
0b0dc272 | 15521 | |
1c710c3c DJ |
15522 | debug=false |
15523 | ac_cs_recheck=false | |
15524 | ac_cs_silent=false | |
1c710c3c | 15525 | |
5213506e RW |
15526 | SHELL=\${CONFIG_SHELL-$SHELL} |
15527 | export SHELL | |
15528 | _ASEOF | |
15529 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15530 | ## -------------------- ## | |
15531 | ## M4sh Initialization. ## | |
15532 | ## -------------------- ## | |
15533 | ||
15534 | # Be more Bourne compatible | |
15535 | DUALCASE=1; export DUALCASE # for MKS sh | |
15536 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
15537 | emulate sh |
15538 | NULLCMD=: | |
5213506e | 15539 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
15540 | # is contrary to our usage. Disable this feature. |
15541 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
15542 | setopt NO_GLOB_SUBST |
15543 | else | |
15544 | case `(set -o) 2>/dev/null` in #( | |
15545 | *posix*) : | |
15546 | set -o posix ;; #( | |
15547 | *) : | |
15548 | ;; | |
15549 | esac | |
1c710c3c | 15550 | fi |
1c710c3c | 15551 | |
5213506e RW |
15552 | |
15553 | as_nl=' | |
15554 | ' | |
15555 | export as_nl | |
15556 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15557 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15558 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15559 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15560 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15561 | # but without wasting forks for bash or zsh. | |
15562 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15563 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15564 | as_echo='print -r --' | |
15565 | as_echo_n='print -rn --' | |
15566 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15567 | as_echo='printf %s\n' | |
15568 | as_echo_n='printf %s' | |
15569 | else | |
15570 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15571 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15572 | as_echo_n='/usr/ucb/echo -n' | |
15573 | else | |
15574 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15575 | as_echo_n_body='eval | |
15576 | arg=$1; | |
15577 | case $arg in #( | |
15578 | *"$as_nl"*) | |
15579 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15580 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15581 | esac; | |
15582 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15583 | ' | |
15584 | export as_echo_n_body | |
15585 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15586 | fi | |
15587 | export as_echo_body | |
15588 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
15589 | fi |
15590 | ||
5213506e RW |
15591 | # The user is always right. |
15592 | if test "${PATH_SEPARATOR+set}" != set; then | |
15593 | PATH_SEPARATOR=: | |
15594 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15595 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15596 | PATH_SEPARATOR=';' | |
15597 | } | |
15598 | fi | |
15599 | ||
15600 | ||
15601 | # IFS | |
15602 | # We need space, tab and new line, in precisely that order. Quoting is | |
15603 | # there to prevent editors from complaining about space-tab. | |
15604 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15605 | # splitting by setting IFS to empty value.) | |
15606 | IFS=" "" $as_nl" | |
15607 | ||
15608 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 15609 | as_myself= |
5213506e RW |
15610 | case $0 in #(( |
15611 | *[\\/]* ) as_myself=$0 ;; | |
15612 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15613 | for as_dir in $PATH | |
15614 | do | |
15615 | IFS=$as_save_IFS | |
15616 | test -z "$as_dir" && as_dir=. | |
15617 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15618 | done | |
15619 | IFS=$as_save_IFS | |
15620 | ||
15621 | ;; | |
15622 | esac | |
15623 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15624 | # in which case we are not to be found in the path. | |
15625 | if test "x$as_myself" = x; then | |
15626 | as_myself=$0 | |
15627 | fi | |
15628 | if test ! -f "$as_myself"; then | |
15629 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15630 | exit 1 | |
15631 | fi | |
1c710c3c | 15632 | |
5213506e RW |
15633 | # Unset variables that we do not need and which cause bugs (e.g. in |
15634 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15635 | # suppresses any "Segmentation fault" message there. '((' could | |
15636 | # trigger a bug in pdksh 5.2.14. | |
15637 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15638 | do eval test x\${$as_var+set} = xset \ | |
15639 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15640 | done | |
1c710c3c DJ |
15641 | PS1='$ ' |
15642 | PS2='> ' | |
15643 | PS4='+ ' | |
15644 | ||
15645 | # NLS nuisances. | |
5213506e RW |
15646 | LC_ALL=C |
15647 | export LC_ALL | |
15648 | LANGUAGE=C | |
15649 | export LANGUAGE | |
15650 | ||
15651 | # CDPATH. | |
15652 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15653 | ||
15654 | ||
22e05272 JM |
15655 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15656 | # ---------------------------------------- | |
5213506e RW |
15657 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15658 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 15659 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
15660 | as_fn_error () |
15661 | { | |
22e05272 JM |
15662 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15663 | if test "$4"; then | |
15664 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15665 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 15666 | fi |
22e05272 | 15667 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
15668 | as_fn_exit $as_status |
15669 | } # as_fn_error | |
15670 | ||
15671 | ||
15672 | # as_fn_set_status STATUS | |
15673 | # ----------------------- | |
15674 | # Set $? to STATUS, without forking. | |
15675 | as_fn_set_status () | |
15676 | { | |
15677 | return $1 | |
15678 | } # as_fn_set_status | |
15679 | ||
15680 | # as_fn_exit STATUS | |
15681 | # ----------------- | |
15682 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15683 | as_fn_exit () | |
15684 | { | |
15685 | set +e | |
15686 | as_fn_set_status $1 | |
15687 | exit $1 | |
15688 | } # as_fn_exit | |
15689 | ||
15690 | # as_fn_unset VAR | |
15691 | # --------------- | |
15692 | # Portably unset VAR. | |
15693 | as_fn_unset () | |
15694 | { | |
15695 | { eval $1=; unset $1;} | |
15696 | } | |
15697 | as_unset=as_fn_unset | |
15698 | # as_fn_append VAR VALUE | |
15699 | # ---------------------- | |
15700 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15701 | # advantage of any shell optimizations that allow amortized linear growth over | |
15702 | # repeated appends, instead of the typical quadratic growth present in naive | |
15703 | # implementations. | |
15704 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15705 | eval 'as_fn_append () | |
15706 | { | |
15707 | eval $1+=\$2 | |
15708 | }' | |
15709 | else | |
15710 | as_fn_append () | |
15711 | { | |
15712 | eval $1=\$$1\$2 | |
15713 | } | |
15714 | fi # as_fn_append | |
15715 | ||
15716 | # as_fn_arith ARG... | |
15717 | # ------------------ | |
15718 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15719 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15720 | # must be portable across $(()) and expr. | |
15721 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15722 | eval 'as_fn_arith () | |
15723 | { | |
15724 | as_val=$(( $* )) | |
15725 | }' | |
15726 | else | |
15727 | as_fn_arith () | |
15728 | { | |
15729 | as_val=`expr "$@" || test $? -eq 1` | |
15730 | } | |
15731 | fi # as_fn_arith | |
15732 | ||
1c710c3c | 15733 | |
5213506e RW |
15734 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15735 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
15736 | as_expr=expr |
15737 | else | |
15738 | as_expr=false | |
15739 | fi | |
15740 | ||
5213506e | 15741 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
15742 | as_basename=basename |
15743 | else | |
15744 | as_basename=false | |
15745 | fi | |
15746 | ||
5213506e RW |
15747 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15748 | as_dirname=dirname | |
15749 | else | |
15750 | as_dirname=false | |
15751 | fi | |
1c710c3c | 15752 | |
5213506e | 15753 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
15754 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15755 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
15756 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15757 | $as_echo X/"$0" | | |
15758 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15759 | s//\1/ | |
15760 | q | |
15761 | } | |
15762 | /^X\/\(\/\/\)$/{ | |
15763 | s//\1/ | |
15764 | q | |
15765 | } | |
15766 | /^X\/\(\/\).*/{ | |
15767 | s//\1/ | |
15768 | q | |
15769 | } | |
15770 | s/.*/./; q'` | |
2aeb72e9 | 15771 | |
2aeb72e9 DD |
15772 | # Avoid depending upon Character Ranges. |
15773 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15774 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15775 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15776 | as_cr_digits='0123456789' | |
15777 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15778 | ||
5213506e RW |
15779 | ECHO_C= ECHO_N= ECHO_T= |
15780 | case `echo -n x` in #((((( | |
15781 | -n*) | |
15782 | case `echo 'xy\c'` in | |
15783 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15784 | xy) ECHO_C='\c';; | |
15785 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15786 | ECHO_T=' ';; | |
15787 | esac;; | |
15788 | *) | |
15789 | ECHO_N='-n';; | |
1c710c3c DJ |
15790 | esac |
15791 | ||
5213506e RW |
15792 | rm -f conf$$ conf$$.exe conf$$.file |
15793 | if test -d conf$$.dir; then | |
15794 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 15795 | else |
5213506e RW |
15796 | rm -f conf$$.dir |
15797 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 15798 | fi |
5213506e RW |
15799 | if (echo >conf$$.file) 2>/dev/null; then |
15800 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 15801 | as_ln_s='ln -s' |
5213506e RW |
15802 | # ... but there are two gotchas: |
15803 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15804 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 15805 | # In both cases, we have to default to `cp -pR'. |
5213506e | 15806 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 15807 | as_ln_s='cp -pR' |
5213506e RW |
15808 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15809 | as_ln_s=ln | |
15810 | else | |
22e05272 | 15811 | as_ln_s='cp -pR' |
2aeb72e9 | 15812 | fi |
1c710c3c | 15813 | else |
22e05272 | 15814 | as_ln_s='cp -pR' |
1c710c3c | 15815 | fi |
5213506e RW |
15816 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15817 | rmdir conf$$.dir 2>/dev/null | |
15818 | ||
15819 | ||
15820 | # as_fn_mkdir_p | |
15821 | # ------------- | |
15822 | # Create "$as_dir" as a directory, including parents if necessary. | |
15823 | as_fn_mkdir_p () | |
15824 | { | |
15825 | ||
15826 | case $as_dir in #( | |
15827 | -*) as_dir=./$as_dir;; | |
15828 | esac | |
15829 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15830 | as_dirs= | |
15831 | while :; do | |
15832 | case $as_dir in #( | |
15833 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15834 | *) as_qdir=$as_dir;; | |
15835 | esac | |
15836 | as_dirs="'$as_qdir' $as_dirs" | |
15837 | as_dir=`$as_dirname -- "$as_dir" || | |
15838 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15839 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15840 | X"$as_dir" : 'X\(//\)$' \| \ | |
15841 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15842 | $as_echo X"$as_dir" | | |
15843 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15844 | s//\1/ | |
15845 | q | |
15846 | } | |
15847 | /^X\(\/\/\)[^/].*/{ | |
15848 | s//\1/ | |
15849 | q | |
15850 | } | |
15851 | /^X\(\/\/\)$/{ | |
15852 | s//\1/ | |
15853 | q | |
15854 | } | |
15855 | /^X\(\/\).*/{ | |
15856 | s//\1/ | |
15857 | q | |
15858 | } | |
15859 | s/.*/./; q'` | |
15860 | test -d "$as_dir" && break | |
15861 | done | |
15862 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 15863 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 15864 | |
1c710c3c | 15865 | |
5213506e | 15866 | } # as_fn_mkdir_p |
1c710c3c | 15867 | if mkdir -p . 2>/dev/null; then |
5213506e | 15868 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
15869 | else |
15870 | test -d ./-p && rmdir ./-p | |
15871 | as_mkdir_p=false | |
15872 | fi | |
15873 | ||
22e05272 JM |
15874 | |
15875 | # as_fn_executable_p FILE | |
15876 | # ----------------------- | |
15877 | # Test if FILE is an executable regular file. | |
15878 | as_fn_executable_p () | |
15879 | { | |
15880 | test -f "$1" && test -x "$1" | |
15881 | } # as_fn_executable_p | |
15882 | as_test_x='test -x' | |
15883 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
15884 | |
15885 | # Sed expression to map a string onto a valid CPP name. | |
15886 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15887 | ||
15888 | # Sed expression to map a string onto a valid variable name. | |
15889 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15890 | ||
15891 | ||
1c710c3c | 15892 | exec 6>&1 |
5213506e RW |
15893 | ## ----------------------------------- ## |
15894 | ## Main body of $CONFIG_STATUS script. ## | |
15895 | ## ----------------------------------- ## | |
15896 | _ASEOF | |
15897 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15898 | ||
15899 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15900 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 15901 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
15902 | # values after options handling. |
15903 | ac_log=" | |
1c710c3c | 15904 | This file was extended by $as_me, which was |
22e05272 | 15905 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
15906 | |
15907 | CONFIG_FILES = $CONFIG_FILES | |
15908 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15909 | CONFIG_LINKS = $CONFIG_LINKS | |
15910 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15911 | $ $0 $@ | |
15912 | ||
5213506e RW |
15913 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15914 | " | |
15915 | ||
1c710c3c DJ |
15916 | _ACEOF |
15917 | ||
5213506e RW |
15918 | case $ac_config_files in *" |
15919 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15920 | esac | |
1c710c3c | 15921 | |
2aeb72e9 | 15922 | |
2aeb72e9 | 15923 | |
5213506e RW |
15924 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15925 | # Files that config.status was made for. | |
15926 | config_files="$ac_config_files" | |
1c710c3c | 15927 | |
5213506e | 15928 | _ACEOF |
2aeb72e9 | 15929 | |
5213506e | 15930 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 15931 | ac_cs_usage="\ |
5213506e RW |
15932 | \`$as_me' instantiates files and other configuration actions |
15933 | from templates according to the current configuration. Unless the files | |
15934 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 15935 | |
5213506e | 15936 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
15937 | |
15938 | -h, --help print this help, then exit | |
5213506e | 15939 | -V, --version print version number and configuration settings, then exit |
22e05272 | 15940 | --config print configuration, then exit |
5213506e RW |
15941 | -q, --quiet, --silent |
15942 | do not print progress messages | |
1c710c3c DJ |
15943 | -d, --debug don't remove temporary files |
15944 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
15945 | --file=FILE[:TEMPLATE] |
15946 | instantiate the configuration file FILE | |
1c710c3c DJ |
15947 | |
15948 | Configuration files: | |
15949 | $config_files | |
15950 | ||
5213506e | 15951 | Report bugs to the package provider." |
2aeb72e9 | 15952 | |
5213506e RW |
15953 | _ACEOF |
15954 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 15955 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
15956 | ac_cs_version="\\ |
15957 | config.status | |
22e05272 JM |
15958 | configured by $0, generated by GNU Autoconf 2.69, |
15959 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 15960 | |
22e05272 | 15961 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
15962 | This config.status script is free software; the Free Software Foundation |
15963 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
15964 | |
15965 | ac_pwd='$ac_pwd' | |
15966 | srcdir='$srcdir' | |
15967 | INSTALL='$INSTALL' | |
87264276 | 15968 | AWK='$AWK' |
5213506e | 15969 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
15970 | _ACEOF |
15971 | ||
5213506e RW |
15972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15973 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
15974 | ac_need_defaults=: |
15975 | while test $# != 0 | |
a4b9e93e | 15976 | do |
1c710c3c | 15977 | case $1 in |
22e05272 | 15978 | --*=?*) |
5213506e RW |
15979 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15980 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
15981 | ac_shift=: |
15982 | ;; | |
22e05272 JM |
15983 | --*=) |
15984 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15985 | ac_optarg= | |
15986 | ac_shift=: | |
15987 | ;; | |
5213506e | 15988 | *) |
1c710c3c DJ |
15989 | ac_option=$1 |
15990 | ac_optarg=$2 | |
15991 | ac_shift=shift | |
15992 | ;; | |
1c710c3c DJ |
15993 | esac |
15994 | ||
15995 | case $ac_option in | |
15996 | # Handling of the options. | |
671aa708 | 15997 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 15998 | ac_cs_recheck=: ;; |
5213506e RW |
15999 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
16000 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
16001 | --config | --confi | --conf | --con | --co | --c ) |
16002 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 16003 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
16004 | debug=: ;; |
16005 | --file | --fil | --fi | --f ) | |
16006 | $ac_shift | |
5213506e RW |
16007 | case $ac_optarg in |
16008 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 16009 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
16010 | esac |
16011 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 16012 | ac_need_defaults=false;; |
5213506e RW |
16013 | --he | --h | --help | --hel | -h ) |
16014 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
16015 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16016 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16017 | ac_cs_silent=: ;; | |
16018 | ||
16019 | # This is an error. | |
22e05272 | 16020 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 16021 | Try \`$0 --help' for more information." ;; |
1c710c3c | 16022 | |
5213506e RW |
16023 | *) as_fn_append ac_config_targets " $1" |
16024 | ac_need_defaults=false ;; | |
1c710c3c | 16025 | |
0b0dc272 | 16026 | esac |
1c710c3c | 16027 | shift |
0b0dc272 AM |
16028 | done |
16029 | ||
1c710c3c | 16030 | ac_configure_extra_args= |
0b0dc272 | 16031 | |
1c710c3c DJ |
16032 | if $ac_cs_silent; then |
16033 | exec 6>/dev/null | |
16034 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16035 | fi | |
0b0dc272 | 16036 | |
1c710c3c | 16037 | _ACEOF |
5213506e | 16038 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 16039 | if \$ac_cs_recheck; then |
22e05272 | 16040 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
16041 | shift |
16042 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16043 | CONFIG_SHELL='$SHELL' | |
16044 | export CONFIG_SHELL | |
16045 | exec "\$@" | |
1c710c3c DJ |
16046 | fi |
16047 | ||
16048 | _ACEOF | |
5213506e RW |
16049 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16050 | exec 5>>config.log | |
16051 | { | |
16052 | echo | |
16053 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16054 | ## Running $as_me. ## | |
16055 | _ASBOX | |
16056 | $as_echo "$ac_log" | |
16057 | } >&5 | |
1c710c3c | 16058 | |
5213506e RW |
16059 | _ACEOF |
16060 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
16061 | # |
16062 | # INIT-COMMANDS | |
16063 | # | |
16064 | extrasub_build="$extrasub_build" | |
16065 | extrasub_host="$extrasub_host" | |
16066 | extrasub_target="$extrasub_target" | |
16067 | ||
5213506e | 16068 | _ACEOF |
1c710c3c | 16069 | |
5213506e | 16070 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 16071 | |
5213506e | 16072 | # Handling of arguments. |
1c710c3c DJ |
16073 | for ac_config_target in $ac_config_targets |
16074 | do | |
5213506e RW |
16075 | case $ac_config_target in |
16076 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16077 | ||
22e05272 | 16078 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
16079 | esac |
16080 | done | |
16081 | ||
5213506e | 16082 | |
1c710c3c DJ |
16083 | # If the user did not use the arguments to specify the items to instantiate, |
16084 | # then the envvar interface is used. Set only those that are not. | |
16085 | # We use the long form for the default assignment because of an extremely | |
16086 | # bizarre bug on SunOS 4.1.3. | |
16087 | if $ac_need_defaults; then | |
16088 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16089 | fi | |
16090 | ||
16091 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 16092 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 16093 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
16094 | # Hook for its removal unless debugging. |
16095 | # Note that there is a small window in which the directory will not be cleaned: | |
16096 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
16097 | $debug || |
16098 | { | |
22e05272 | 16099 | tmp= ac_tmp= |
5213506e | 16100 | trap 'exit_status=$? |
22e05272 JM |
16101 | : "${ac_tmp:=$tmp}" |
16102 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
16103 | ' 0 |
16104 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 16105 | } |
1c710c3c DJ |
16106 | # Create a (secure) tmp directory for tmp files. |
16107 | ||
16108 | { | |
5213506e | 16109 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 16110 | test -d "$tmp" |
1c710c3c DJ |
16111 | } || |
16112 | { | |
5213506e RW |
16113 | tmp=./conf$$-$RANDOM |
16114 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
16115 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16116 | ac_tmp=$tmp | |
5213506e RW |
16117 | |
16118 | # Set up the scripts for CONFIG_FILES section. | |
16119 | # No need to generate them if there are no CONFIG_FILES. | |
16120 | # This happens for instance with `./config.status config.h'. | |
16121 | if test -n "$CONFIG_FILES"; then | |
16122 | ||
16123 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
16124 | ac_cs_awk_getline=: | |
16125 | ac_cs_awk_pipe_init= | |
16126 | ac_cs_awk_read_file=' | |
16127 | while ((getline aline < (F[key])) > 0) | |
16128 | print(aline) | |
16129 | close(F[key])' | |
16130 | ac_cs_awk_pipe_fini= | |
16131 | else | |
16132 | ac_cs_awk_getline=false | |
16133 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16134 | ac_cs_awk_read_file=' | |
16135 | print "|#_!!_#|" | |
16136 | print "cat " F[key] " &&" | |
16137 | '$ac_cs_awk_pipe_init | |
16138 | # The final `:' finishes the AND list. | |
16139 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16140 | fi | |
16141 | ac_cr=`echo X | tr X '\015'` | |
16142 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16143 | # But we know of no other shell where ac_cr would be empty at this | |
16144 | # point, so we can use a bashism as a fallback. | |
16145 | if test "x$ac_cr" = x; then | |
16146 | eval ac_cr=\$\'\\r\' | |
16147 | fi | |
16148 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16149 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 16150 | ac_cs_awk_cr='\\r' |
5213506e RW |
16151 | else |
16152 | ac_cs_awk_cr=$ac_cr | |
16153 | fi | |
16154 | ||
22e05272 | 16155 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
16156 | _ACEOF |
16157 | ||
16158 | # Create commands to substitute file output variables. | |
1c710c3c | 16159 | { |
5213506e | 16160 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 16161 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
16162 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
16163 | echo "_ACAWK" && | |
16164 | echo "_ACEOF" | |
16165 | } >conf$$files.sh && | |
16166 | . ./conf$$files.sh || | |
22e05272 | 16167 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 16168 | rm -f conf$$files.sh |
1c710c3c | 16169 | |
5213506e RW |
16170 | { |
16171 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16172 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16173 | echo "_ACEOF" | |
16174 | } >conf$$subs.sh || | |
22e05272 JM |
16175 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16176 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
16177 | ac_delim='%!_!# ' |
16178 | for ac_last_try in false false false false false :; do | |
16179 | . ./conf$$subs.sh || | |
22e05272 | 16180 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
16181 | |
16182 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16183 | if test $ac_delim_n = $ac_delim_num; then | |
16184 | break | |
16185 | elif $ac_last_try; then | |
22e05272 | 16186 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
16187 | else |
16188 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16189 | fi | |
16190 | done | |
16191 | rm -f conf$$subs.sh | |
16192 | ||
16193 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 16194 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 16195 | _ACEOF |
5213506e RW |
16196 | sed -n ' |
16197 | h | |
16198 | s/^/S["/; s/!.*/"]=/ | |
16199 | p | |
16200 | g | |
16201 | s/^[^!]*!// | |
16202 | :repl | |
16203 | t repl | |
16204 | s/'"$ac_delim"'$// | |
16205 | t delim | |
16206 | :nl | |
16207 | h | |
22e05272 | 16208 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
16209 | t more1 |
16210 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16211 | p | |
16212 | n | |
16213 | b repl | |
16214 | :more1 | |
16215 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16216 | p | |
16217 | g | |
16218 | s/.\{148\}// | |
16219 | t nl | |
16220 | :delim | |
16221 | h | |
22e05272 | 16222 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
16223 | t more2 |
16224 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16225 | p | |
16226 | b | |
16227 | :more2 | |
16228 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16229 | p | |
16230 | g | |
16231 | s/.\{148\}// | |
16232 | t delim | |
16233 | ' <conf$$subs.awk | sed ' | |
16234 | /^[^""]/{ | |
16235 | N | |
16236 | s/\n// | |
16237 | } | |
16238 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16239 | rm -f conf$$subs.awk | |
16240 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16241 | _ACAWK | |
22e05272 | 16242 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
16243 | for (key in S) S_is_set[key] = 1 |
16244 | FS = "\a" | |
16245 | \$ac_cs_awk_pipe_init | |
16246 | } | |
16247 | { | |
16248 | line = $ 0 | |
16249 | nfields = split(line, field, "@") | |
16250 | substed = 0 | |
16251 | len = length(field[1]) | |
16252 | for (i = 2; i < nfields; i++) { | |
16253 | key = field[i] | |
16254 | keylen = length(key) | |
16255 | if (S_is_set[key]) { | |
16256 | value = S[key] | |
16257 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16258 | len += length(value) + length(field[++i]) | |
16259 | substed = 1 | |
16260 | } else | |
16261 | len += 1 + keylen | |
16262 | } | |
16263 | if (nfields == 3 && !substed) { | |
16264 | key = field[2] | |
16265 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16266 | \$ac_cs_awk_read_file | |
16267 | next | |
16268 | } | |
16269 | } | |
16270 | print line | |
16271 | } | |
16272 | \$ac_cs_awk_pipe_fini | |
16273 | _ACAWK | |
16274 | _ACEOF | |
16275 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16276 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16277 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16278 | else | |
16279 | cat | |
22e05272 JM |
16280 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16281 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
16282 | _ACEOF |
16283 | ||
22e05272 JM |
16284 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16285 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
16286 | # trailing colons and then remove the whole line if VPATH becomes empty |
16287 | # (actually we leave an empty line to preserve line numbers). | |
16288 | if test "x$srcdir" = x.; then | |
22e05272 JM |
16289 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16290 | h | |
16291 | s/// | |
16292 | s/^/:/ | |
16293 | s/[ ]*$/:/ | |
16294 | s/:\$(srcdir):/:/g | |
16295 | s/:\${srcdir}:/:/g | |
16296 | s/:@srcdir@:/:/g | |
16297 | s/^:*// | |
5213506e | 16298 | s/:*$// |
22e05272 JM |
16299 | x |
16300 | s/\(=[ ]*\).*/\1/ | |
16301 | G | |
16302 | s/\n// | |
5213506e RW |
16303 | s/^[^=]*=[ ]*$// |
16304 | }' | |
16305 | fi | |
2aeb72e9 | 16306 | |
5213506e RW |
16307 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16308 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 16309 | |
1c710c3c | 16310 | |
5213506e RW |
16311 | eval set X " :F $CONFIG_FILES " |
16312 | shift | |
16313 | for ac_tag | |
16314 | do | |
16315 | case $ac_tag in | |
16316 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16317 | esac | |
16318 | case $ac_mode$ac_tag in | |
16319 | :[FHL]*:*);; | |
22e05272 | 16320 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
16321 | :[FH]-) ac_tag=-:-;; |
16322 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16323 | esac | |
16324 | ac_save_IFS=$IFS | |
16325 | IFS=: | |
16326 | set x $ac_tag | |
16327 | IFS=$ac_save_IFS | |
16328 | shift | |
16329 | ac_file=$1 | |
16330 | shift | |
79c06341 | 16331 | |
5213506e RW |
16332 | case $ac_mode in |
16333 | :L) ac_source=$1;; | |
16334 | :[FH]) | |
16335 | ac_file_inputs= | |
16336 | for ac_f | |
16337 | do | |
16338 | case $ac_f in | |
22e05272 | 16339 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
16340 | *) # Look for the file first in the build tree, then in the source tree |
16341 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16342 | # because $ac_f cannot contain `:'. | |
16343 | test -f "$ac_f" || | |
16344 | case $ac_f in | |
16345 | [\\/$]*) false;; | |
16346 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16347 | esac || | |
22e05272 | 16348 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
16349 | esac |
16350 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16351 | as_fn_append ac_file_inputs " '$ac_f'" | |
16352 | done | |
1c710c3c | 16353 | |
5213506e RW |
16354 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16355 | # use $as_me), people would be surprised to read: | |
16356 | # /* config.h. Generated by config.status. */ | |
16357 | configure_input='Generated from '` | |
16358 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16359 | `' by configure.' | |
16360 | if test x"$ac_file" != x-; then | |
16361 | configure_input="$ac_file. $configure_input" | |
16362 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16363 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 16364 | fi |
5213506e RW |
16365 | # Neutralize special characters interpreted by sed in replacement strings. |
16366 | case $configure_input in #( | |
16367 | *\&* | *\|* | *\\* ) | |
16368 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16369 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16370 | *) ac_sed_conf_input=$configure_input;; | |
16371 | esac | |
11a67599 | 16372 | |
5213506e | 16373 | case $ac_tag in |
22e05272 JM |
16374 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16375 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
16376 | esac |
16377 | ;; | |
11a67599 ZW |
16378 | esac |
16379 | ||
5213506e | 16380 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
16381 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16382 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16383 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
16384 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16385 | $as_echo X"$ac_file" | | |
16386 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16387 | s//\1/ | |
16388 | q | |
16389 | } | |
16390 | /^X\(\/\/\)[^/].*/{ | |
16391 | s//\1/ | |
16392 | q | |
16393 | } | |
16394 | /^X\(\/\/\)$/{ | |
16395 | s//\1/ | |
16396 | q | |
16397 | } | |
16398 | /^X\(\/\).*/{ | |
16399 | s//\1/ | |
16400 | q | |
16401 | } | |
16402 | s/.*/./; q'` | |
16403 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 16404 | ac_builddir=. |
0b0dc272 | 16405 | |
5213506e RW |
16406 | case "$ac_dir" in |
16407 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16408 | *) | |
16409 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16410 | # A ".." for each directory in $ac_dir_suffix. | |
16411 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16412 | case $ac_top_builddir_sub in | |
16413 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16414 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16415 | esac ;; | |
16416 | esac | |
16417 | ac_abs_top_builddir=$ac_pwd | |
16418 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16419 | # for backward compatibility: | |
16420 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
16421 | |
16422 | case $srcdir in | |
5213506e | 16423 | .) # We are building in place. |
1c710c3c | 16424 | ac_srcdir=. |
5213506e RW |
16425 | ac_top_srcdir=$ac_top_builddir_sub |
16426 | ac_abs_top_srcdir=$ac_pwd ;; | |
16427 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 16428 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
16429 | ac_top_srcdir=$srcdir |
16430 | ac_abs_top_srcdir=$srcdir ;; | |
16431 | *) # Relative name. | |
16432 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16433 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16434 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 16435 | esac |
5213506e | 16436 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 16437 | |
0b0dc272 | 16438 | |
5213506e RW |
16439 | case $ac_mode in |
16440 | :F) | |
16441 | # | |
16442 | # CONFIG_FILE | |
16443 | # | |
1c710c3c DJ |
16444 | |
16445 | case $INSTALL in | |
16446 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 16447 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 16448 | esac |
5213506e | 16449 | _ACEOF |
11a67599 | 16450 | |
5213506e RW |
16451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16452 | # If the template does not know about datarootdir, expand it. | |
16453 | # FIXME: This hack should be removed a few years after 2.60. | |
16454 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16455 | ac_sed_dataroot=' | |
16456 | /datarootdir/ { | |
16457 | p | |
16458 | q | |
16459 | } | |
16460 | /@datadir@/p | |
16461 | /@docdir@/p | |
16462 | /@infodir@/p | |
16463 | /@localedir@/p | |
16464 | /@mandir@/p' | |
16465 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16466 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16467 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16469 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 16470 | _ACEOF |
5213506e RW |
16471 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16472 | ac_datarootdir_hack=' | |
16473 | s&@datadir@&$datadir&g | |
16474 | s&@docdir@&$docdir&g | |
16475 | s&@infodir@&$infodir&g | |
16476 | s&@localedir@&$localedir&g | |
16477 | s&@mandir@&$mandir&g | |
16478 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16479 | esac | |
16480 | _ACEOF | |
16481 | ||
16482 | # Neutralize VPATH when `$srcdir' = `.'. | |
16483 | # Shell code in configure.ac might set extrasub. | |
16484 | # FIXME: do we really want to maintain this feature? | |
16485 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16486 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
16487 | $extrasub |
16488 | _ACEOF | |
5213506e | 16489 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
16490 | :t |
16491 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
16492 | s|@configure_input@|$ac_sed_conf_input|;t t |
16493 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16494 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16495 | s&@srcdir@&$ac_srcdir&;t t | |
16496 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16497 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16498 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16499 | s&@builddir@&$ac_builddir&;t t | |
16500 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16501 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16502 | s&@INSTALL@&$ac_INSTALL&;t t | |
16503 | $ac_datarootdir_hack | |
16504 | " | |
16505 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16506 | if $ac_cs_awk_getline; then | |
22e05272 | 16507 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 16508 | else |
22e05272 JM |
16509 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
16510 | fi \ | |
16511 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
16512 | |
16513 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
16514 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16515 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16516 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 16517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 16518 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 16519 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 16520 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 16521 | |
22e05272 | 16522 | rm -f "$ac_tmp/stdin" |
5213506e | 16523 | case $ac_file in |
22e05272 JM |
16524 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16525 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 16526 | esac \ |
22e05272 | 16527 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 16528 | ;; |
11a67599 | 16529 | |
11a67599 | 16530 | |
79c06341 | 16531 | |
5213506e RW |
16532 | esac |
16533 | ||
3e54529c RW |
16534 | |
16535 | case $ac_file$ac_mode in | |
16536 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16537 | sed "$extrasub_host" | | |
16538 | sed "$extrasub_target" > mf$$ | |
16539 | mv -f mf$$ Makefile ;; | |
16540 | ||
16541 | esac | |
5213506e RW |
16542 | done # for ac_tag |
16543 | ||
16544 | ||
16545 | as_fn_exit 0 | |
1c710c3c | 16546 | _ACEOF |
1c710c3c DJ |
16547 | ac_clean_files=$ac_clean_files_save |
16548 | ||
5213506e | 16549 | test $ac_write_fail = 0 || |
22e05272 | 16550 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 16551 | |
1c710c3c DJ |
16552 | |
16553 | # configure is writing to config.log, and then calls config.status. | |
16554 | # config.status does its own redirection, appending to config.log. | |
16555 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16556 | # by configure, so config.status won't be able to write to it; its | |
16557 | # output is simply discarded. So we exec the FD to /dev/null, | |
16558 | # effectively closing config.log, so it can be properly (re)opened and | |
16559 | # appended to by config.status. When coming back to configure, we | |
16560 | # need to make the FD available again. | |
16561 | if test "$no_create" != yes; then | |
16562 | ac_cs_success=: | |
16563 | ac_config_status_args= | |
16564 | test "$silent" = yes && | |
16565 | ac_config_status_args="$ac_config_status_args --quiet" | |
16566 | exec 5>/dev/null | |
16567 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16568 | exec 5>>config.log | |
16569 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16570 | # would make configure fail if this is the last instruction. | |
22e05272 | 16571 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
16572 | fi |
16573 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16575 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 16576 | fi |
79c06341 | 16577 |