Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
d0ac1c44 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
c6b750e1 DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 211 | do |
81ecdfbb RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
81ecdfbb RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 266 | else |
81ecdfbb RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 271 | fi |
81ecdfbb RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
c6b750e1 | 301 | |
81ecdfbb RW |
302 | # as_fn_exit STATUS |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
81ecdfbb RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
d0ac1c44 SM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
81ecdfbb RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 407 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
408 | as_fn_error () |
409 | { | |
d0ac1c44 SM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 414 | fi |
d0ac1c44 | 415 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
81ecdfbb | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
81ecdfbb RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
c6b750e1 | 437 | |
81ecdfbb | 438 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
c6b750e1 | 456 | |
c6b750e1 DJ |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
c6b750e1 | 464 | |
81ecdfbb RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
c6b750e1 | 474 | sed ' |
81ecdfbb RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
c6b750e1 | 479 | N |
81ecdfbb RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 482 | t loop |
81ecdfbb | 483 | s/-\n.*// |
c6b750e1 | 484 | ' >$as_me.lineno && |
81ecdfbb RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 | 487 | |
d0ac1c44 SM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
c6b750e1 DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
c6b750e1 DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
81ecdfbb RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
c6b750e1 DJ |
511 | esac |
512 | ||
81ecdfbb RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 516 | else |
81ecdfbb RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 519 | fi |
81ecdfbb RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 522 | as_ln_s='ln -s' |
81ecdfbb RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 526 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 528 | as_ln_s='cp -pR' |
81ecdfbb RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
c6b750e1 | 533 | fi |
c6b750e1 | 534 | else |
d0ac1c44 | 535 | as_ln_s='cp -pR' |
c6b750e1 | 536 | fi |
81ecdfbb RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
d0ac1c44 SM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
549 | |
550 | # Sed expression to map a string onto a valid CPP name. | |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
d0ac1c44 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
a0da8069 | 559 | |
c6b750e1 | 560 | # Name of the host. |
d0ac1c44 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
c6b750e1 DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
c6b750e1 DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
a0da8069 | 568 | ac_default_prefix=/usr/local |
81ecdfbb | 569 | ac_clean_files= |
c6b750e1 | 570 | ac_config_libobj_dir=. |
81ecdfbb | 571 | LIBOBJS= |
c6b750e1 DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
c6b750e1 DJ |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
81ecdfbb | 583 | PACKAGE_URL= |
c6b750e1 DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
590 | stage2_werror_flag | |
591 | stage1_checking | |
592 | stage1_cflags | |
593 | MAINT | |
594 | MAINTAINER_MODE_FALSE | |
595 | MAINTAINER_MODE_TRUE | |
596 | COMPILER_NM_FOR_TARGET | |
597 | COMPILER_LD_FOR_TARGET | |
598 | COMPILER_AS_FOR_TARGET | |
599 | FLAGS_FOR_TARGET | |
600 | RAW_CXX_FOR_TARGET | |
601 | WINDMC_FOR_TARGET | |
602 | WINDRES_FOR_TARGET | |
603 | STRIP_FOR_TARGET | |
b121d7d4 | 604 | READELF_FOR_TARGET |
81ecdfbb RW |
605 | RANLIB_FOR_TARGET |
606 | OBJDUMP_FOR_TARGET | |
6b91c541 | 607 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
608 | NM_FOR_TARGET |
609 | LIPO_FOR_TARGET | |
610 | LD_FOR_TARGET | |
611 | DLLTOOL_FOR_TARGET | |
612 | AS_FOR_TARGET | |
613 | AR_FOR_TARGET | |
e552509b | 614 | GOC_FOR_TARGET |
81ecdfbb | 615 | GFORTRAN_FOR_TARGET |
81ecdfbb RW |
616 | GCC_FOR_TARGET |
617 | CXX_FOR_TARGET | |
618 | CC_FOR_TARGET | |
b121d7d4 | 619 | READELF |
81ecdfbb RW |
620 | OBJDUMP |
621 | OBJCOPY | |
622 | WINDMC | |
623 | WINDRES | |
624 | STRIP | |
625 | RANLIB | |
626 | NM | |
627 | LIPO | |
628 | LD | |
629 | DLLTOOL | |
630 | AS | |
631 | AR | |
632 | RUNTEST | |
633 | EXPECT | |
634 | MAKEINFO | |
635 | FLEX | |
636 | LEX | |
637 | M4 | |
638 | BISON | |
639 | YACC | |
81ecdfbb RW |
640 | WINDRES_FOR_BUILD |
641 | WINDMC_FOR_BUILD | |
642 | RANLIB_FOR_BUILD | |
643 | NM_FOR_BUILD | |
644 | LD_FOR_BUILD | |
645 | LDFLAGS_FOR_BUILD | |
e552509b | 646 | GOC_FOR_BUILD |
81ecdfbb | 647 | GFORTRAN_FOR_BUILD |
81ecdfbb RW |
648 | DLLTOOL_FOR_BUILD |
649 | CXX_FOR_BUILD | |
650 | CXXFLAGS_FOR_BUILD | |
651 | CFLAGS_FOR_BUILD | |
652 | CC_FOR_BUILD | |
653 | AS_FOR_BUILD | |
654 | AR_FOR_BUILD | |
911e63d0 | 655 | target_configdirs |
81ecdfbb | 656 | configdirs |
81ecdfbb | 657 | build_configdirs |
81ecdfbb RW |
658 | INSTALL_GDB_TK |
659 | GDB_TK | |
660 | CONFIGURE_GDB_TK | |
661 | build_tooldir | |
662 | tooldir | |
663 | GCC_SHLIB_SUBDIR | |
664 | RPATH_ENVVAR | |
4074d5f2 RW |
665 | target_configargs |
666 | host_configargs | |
667 | build_configargs | |
96655cc4 | 668 | BUILD_CONFIG |
91c1f14c | 669 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
670 | CXXFLAGS_FOR_TARGET |
671 | CFLAGS_FOR_TARGET | |
672 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
673 | SYSROOT_CFLAGS_FOR_TARGET | |
bf41f30d | 674 | get_gcc_base_ver |
e81d5d05 | 675 | extra_host_zlib_configure_flags |
700d40ca | 676 | extra_host_libiberty_configure_flags |
1b6c0831 | 677 | stage1_languages |
bf41f30d | 678 | host_shared |
1b6c0831 L |
679 | extra_linker_plugin_flags |
680 | extra_linker_plugin_configure_flags | |
7ec59b9e | 681 | islinc |
1b6c0831 | 682 | isllibs |
81ecdfbb | 683 | poststage1_ldflags |
143754cd | 684 | poststage1_libs |
81ecdfbb | 685 | stage1_ldflags |
b3676d82 | 686 | stage1_libs |
7ec59b9e | 687 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
688 | extra_mpc_mpfr_configure_flags |
689 | extra_mpc_gmp_configure_flags | |
690 | extra_mpfr_configure_flags | |
691 | gmpinc | |
692 | gmplibs | |
693 | do_compare | |
694 | GNATMAKE | |
695 | GNATBIND | |
696 | ac_ct_CXX | |
697 | CXXFLAGS | |
698 | CXX | |
699 | OBJEXT | |
700 | EXEEXT | |
701 | ac_ct_CC | |
702 | CPPFLAGS | |
703 | LDFLAGS | |
704 | CFLAGS | |
705 | CC | |
1b6c0831 | 706 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
707 | target_subdir |
708 | host_subdir | |
709 | build_subdir | |
710 | build_libsubdir | |
8e957354 PB |
711 | AWK |
712 | SED | |
81ecdfbb RW |
713 | LN_S |
714 | LN | |
715 | INSTALL_DATA | |
716 | INSTALL_SCRIPT | |
717 | INSTALL_PROGRAM | |
718 | target_os | |
719 | target_vendor | |
720 | target_cpu | |
721 | target | |
722 | host_os | |
723 | host_vendor | |
724 | host_cpu | |
725 | host | |
726 | target_noncanonical | |
727 | host_noncanonical | |
728 | build_noncanonical | |
729 | build_os | |
730 | build_vendor | |
731 | build_cpu | |
732 | build | |
733 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
734 | target_alias | |
735 | host_alias | |
736 | build_alias | |
737 | LIBS | |
738 | ECHO_T | |
739 | ECHO_N | |
740 | ECHO_C | |
741 | DEFS | |
742 | mandir | |
743 | localedir | |
744 | libdir | |
745 | psdir | |
746 | pdfdir | |
747 | dvidir | |
748 | htmldir | |
749 | infodir | |
750 | docdir | |
751 | oldincludedir | |
752 | includedir | |
753 | localstatedir | |
754 | sharedstatedir | |
755 | sysconfdir | |
756 | datadir | |
757 | datarootdir | |
758 | libexecdir | |
759 | sbindir | |
760 | bindir | |
761 | program_transform_name | |
762 | prefix | |
763 | exec_prefix | |
764 | PACKAGE_URL | |
765 | PACKAGE_BUGREPORT | |
766 | PACKAGE_STRING | |
767 | PACKAGE_VERSION | |
768 | PACKAGE_TARNAME | |
769 | PACKAGE_NAME | |
770 | PATH_SEPARATOR | |
771 | SHELL' | |
772 | ac_subst_files='serialization_dependencies | |
773 | host_makefile_frag | |
774 | target_makefile_frag | |
775 | alphaieee_frag | |
776 | ospace_frag' | |
777 | ac_user_opts=' | |
778 | enable_option_checking | |
779 | with_build_libsubdir | |
cf39cfc5 | 780 | with_system_zlib |
1b6c0831 L |
781 | enable_as_accelerator_for |
782 | enable_offload_targets | |
81ecdfbb | 783 | enable_gold |
c7791212 | 784 | enable_ld |
edeefb67 | 785 | enable_compressed_debug_sections |
89a1e9c3 PB |
786 | enable_libquadmath |
787 | enable_libquadmath_support | |
81ecdfbb RW |
788 | enable_libada |
789 | enable_libssp | |
f66a9a70 | 790 | enable_libstdcxx |
1b6c0831 | 791 | enable_liboffloadmic |
ffdd6afc | 792 | enable_bootstrap |
81ecdfbb RW |
793 | with_mpc |
794 | with_mpc_include | |
795 | with_mpc_lib | |
796 | with_mpfr_dir | |
797 | with_mpfr | |
798 | with_mpfr_include | |
799 | with_mpfr_lib | |
800 | with_gmp_dir | |
801 | with_gmp | |
802 | with_gmp_include | |
803 | with_gmp_lib | |
81ecdfbb | 804 | with_stage1_libs |
c1a5d03a | 805 | with_static_standard_libraries |
b3676d82 | 806 | with_stage1_ldflags |
81ecdfbb | 807 | with_boot_libs |
143754cd | 808 | with_boot_ldflags |
7ec59b9e L |
809 | with_isl |
810 | with_isl_include | |
811 | with_isl_lib | |
812 | enable_isl_version_check | |
700d40ca | 813 | enable_lto |
1b6c0831 L |
814 | enable_linker_plugin_configure_flags |
815 | enable_linker_plugin_flags | |
bf41f30d | 816 | enable_host_shared |
81ecdfbb RW |
817 | enable_stage1_languages |
818 | enable_objc_gc | |
05a13254 NC |
819 | with_target_bdw_gc |
820 | with_target_bdw_gc_include | |
821 | with_target_bdw_gc_lib | |
bf41f30d | 822 | with_gcc_major_version_only |
81ecdfbb RW |
823 | with_build_sysroot |
824 | with_debug_prefix_map | |
96655cc4 | 825 | with_build_config |
730af8ee | 826 | enable_vtable_verify |
81ecdfbb RW |
827 | enable_serial_configure |
828 | with_build_time_tools | |
829 | enable_maintainer_mode | |
830 | enable_stage1_checking | |
831 | enable_werror | |
81ecdfbb RW |
832 | ' |
833 | ac_precious_vars='build_alias | |
834 | host_alias | |
835 | target_alias | |
836 | CC | |
837 | CFLAGS | |
838 | LDFLAGS | |
839 | LIBS | |
840 | CPPFLAGS | |
841 | CXX | |
842 | CXXFLAGS | |
843 | CCC | |
4074d5f2 RW |
844 | build_configargs |
845 | host_configargs | |
846 | target_configargs | |
81ecdfbb RW |
847 | AR |
848 | AS | |
849 | DLLTOOL | |
850 | LD | |
851 | LIPO | |
852 | NM | |
853 | RANLIB | |
854 | STRIP | |
855 | WINDRES | |
856 | WINDMC | |
857 | OBJCOPY | |
858 | OBJDUMP | |
b121d7d4 | 859 | READELF |
81ecdfbb RW |
860 | CC_FOR_TARGET |
861 | CXX_FOR_TARGET | |
862 | GCC_FOR_TARGET | |
81ecdfbb | 863 | GFORTRAN_FOR_TARGET |
e552509b | 864 | GOC_FOR_TARGET |
81ecdfbb RW |
865 | AR_FOR_TARGET |
866 | AS_FOR_TARGET | |
867 | DLLTOOL_FOR_TARGET | |
868 | LD_FOR_TARGET | |
869 | LIPO_FOR_TARGET | |
870 | NM_FOR_TARGET | |
6b91c541 | 871 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
872 | OBJDUMP_FOR_TARGET |
873 | RANLIB_FOR_TARGET | |
b121d7d4 | 874 | READELF_FOR_TARGET |
81ecdfbb RW |
875 | STRIP_FOR_TARGET |
876 | WINDRES_FOR_TARGET | |
877 | WINDMC_FOR_TARGET' | |
878 | ||
a0da8069 NN |
879 | |
880 | # Initialize some variables set by options. | |
c6b750e1 DJ |
881 | ac_init_help= |
882 | ac_init_version=false | |
81ecdfbb RW |
883 | ac_unrecognized_opts= |
884 | ac_unrecognized_sep= | |
a0da8069 NN |
885 | # The variables have the same names as the options, with |
886 | # dashes changed to underlines. | |
c6b750e1 | 887 | cache_file=/dev/null |
a0da8069 | 888 | exec_prefix=NONE |
a0da8069 | 889 | no_create= |
a0da8069 NN |
890 | no_recursion= |
891 | prefix=NONE | |
892 | program_prefix=NONE | |
893 | program_suffix=NONE | |
894 | program_transform_name=s,x,x, | |
895 | silent= | |
896 | site= | |
897 | srcdir= | |
a0da8069 NN |
898 | verbose= |
899 | x_includes=NONE | |
900 | x_libraries=NONE | |
c6b750e1 DJ |
901 | |
902 | # Installation directory options. | |
903 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
904 | # and all the variables that are supposed to be based on exec_prefix | |
905 | # by default will actually change. | |
906 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 907 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
908 | bindir='${exec_prefix}/bin' |
909 | sbindir='${exec_prefix}/sbin' | |
910 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
911 | datarootdir='${prefix}/share' |
912 | datadir='${datarootdir}' | |
a0da8069 NN |
913 | sysconfdir='${prefix}/etc' |
914 | sharedstatedir='${prefix}/com' | |
915 | localstatedir='${prefix}/var' | |
a0da8069 NN |
916 | includedir='${prefix}/include' |
917 | oldincludedir='/usr/include' | |
81ecdfbb RW |
918 | docdir='${datarootdir}/doc/${PACKAGE}' |
919 | infodir='${datarootdir}/info' | |
920 | htmldir='${docdir}' | |
921 | dvidir='${docdir}' | |
922 | pdfdir='${docdir}' | |
923 | psdir='${docdir}' | |
924 | libdir='${exec_prefix}/lib' | |
925 | localedir='${datarootdir}/locale' | |
926 | mandir='${datarootdir}/man' | |
252b5132 | 927 | |
a0da8069 | 928 | ac_prev= |
81ecdfbb | 929 | ac_dashdash= |
a0da8069 NN |
930 | for ac_option |
931 | do | |
a0da8069 NN |
932 | # If the previous option needs an argument, assign it. |
933 | if test -n "$ac_prev"; then | |
81ecdfbb | 934 | eval $ac_prev=\$ac_option |
a0da8069 NN |
935 | ac_prev= |
936 | continue | |
937 | fi | |
252b5132 | 938 | |
81ecdfbb | 939 | case $ac_option in |
d0ac1c44 SM |
940 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
941 | *=) ac_optarg= ;; | |
942 | *) ac_optarg=yes ;; | |
81ecdfbb | 943 | esac |
a0da8069 NN |
944 | |
945 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
946 | ||
81ecdfbb RW |
947 | case $ac_dashdash$ac_option in |
948 | --) | |
949 | ac_dashdash=yes ;; | |
a0da8069 NN |
950 | |
951 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
952 | ac_prev=bindir ;; | |
953 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 954 | bindir=$ac_optarg ;; |
a0da8069 NN |
955 | |
956 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 957 | ac_prev=build_alias ;; |
a0da8069 | 958 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 959 | build_alias=$ac_optarg ;; |
a0da8069 NN |
960 | |
961 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
962 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
963 | ac_prev=cache_file ;; | |
964 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
965 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
966 | cache_file=$ac_optarg ;; |
967 | ||
968 | --config-cache | -C) | |
969 | cache_file=config.cache ;; | |
a0da8069 | 970 | |
81ecdfbb | 971 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 972 | ac_prev=datadir ;; |
81ecdfbb | 973 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 974 | datadir=$ac_optarg ;; |
a0da8069 | 975 | |
81ecdfbb RW |
976 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
977 | | --dataroo | --dataro | --datar) | |
978 | ac_prev=datarootdir ;; | |
979 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
980 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
981 | datarootdir=$ac_optarg ;; | |
982 | ||
a0da8069 | 983 | -disable-* | --disable-*) |
81ecdfbb | 984 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 985 | # Reject names that are not valid shell variable names. |
81ecdfbb | 986 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 987 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
988 | ac_useropt_orig=$ac_useropt |
989 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
990 | case $ac_user_opts in | |
991 | *" | |
992 | "enable_$ac_useropt" | |
993 | "*) ;; | |
994 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
995 | ac_unrecognized_sep=', ';; | |
996 | esac | |
997 | eval enable_$ac_useropt=no ;; | |
998 | ||
999 | -docdir | --docdir | --docdi | --doc | --do) | |
1000 | ac_prev=docdir ;; | |
1001 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1002 | docdir=$ac_optarg ;; | |
1003 | ||
1004 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1005 | ac_prev=dvidir ;; | |
1006 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1007 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
1008 | |
1009 | -enable-* | --enable-*) | |
81ecdfbb | 1010 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 1011 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1012 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1013 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1014 | ac_useropt_orig=$ac_useropt |
1015 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1016 | case $ac_user_opts in | |
1017 | *" | |
1018 | "enable_$ac_useropt" | |
1019 | "*) ;; | |
1020 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1021 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1022 | esac |
81ecdfbb | 1023 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1024 | |
1025 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1026 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1027 | | --exec | --exe | --ex) | |
1028 | ac_prev=exec_prefix ;; | |
1029 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1030 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1031 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1032 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1033 | |
1034 | -gas | --gas | --ga | --g) | |
1035 | # Obsolete; use --with-gas. | |
1036 | with_gas=yes ;; | |
1037 | ||
c6b750e1 DJ |
1038 | -help | --help | --hel | --he | -h) |
1039 | ac_init_help=long ;; | |
1040 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1041 | ac_init_help=recursive ;; | |
1042 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1043 | ac_init_help=short ;; | |
a0da8069 NN |
1044 | |
1045 | -host | --host | --hos | --ho) | |
c6b750e1 | 1046 | ac_prev=host_alias ;; |
a0da8069 | 1047 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1048 | host_alias=$ac_optarg ;; |
a0da8069 | 1049 | |
81ecdfbb RW |
1050 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1051 | ac_prev=htmldir ;; | |
1052 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1053 | | --ht=*) | |
1054 | htmldir=$ac_optarg ;; | |
1055 | ||
a0da8069 NN |
1056 | -includedir | --includedir | --includedi | --included | --include \ |
1057 | | --includ | --inclu | --incl | --inc) | |
1058 | ac_prev=includedir ;; | |
1059 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1060 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1061 | includedir=$ac_optarg ;; |
a0da8069 NN |
1062 | |
1063 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1064 | ac_prev=infodir ;; | |
1065 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1066 | infodir=$ac_optarg ;; |
a0da8069 NN |
1067 | |
1068 | -libdir | --libdir | --libdi | --libd) | |
1069 | ac_prev=libdir ;; | |
1070 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1071 | libdir=$ac_optarg ;; |
a0da8069 NN |
1072 | |
1073 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1074 | | --libexe | --libex | --libe) | |
1075 | ac_prev=libexecdir ;; | |
1076 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1077 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1078 | libexecdir=$ac_optarg ;; |
a0da8069 | 1079 | |
81ecdfbb RW |
1080 | -localedir | --localedir | --localedi | --localed | --locale) |
1081 | ac_prev=localedir ;; | |
1082 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1083 | localedir=$ac_optarg ;; | |
1084 | ||
a0da8069 | 1085 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1086 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1087 | ac_prev=localstatedir ;; |
1088 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1089 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1090 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1091 | |
1092 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1093 | ac_prev=mandir ;; | |
1094 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1095 | mandir=$ac_optarg ;; |
a0da8069 NN |
1096 | |
1097 | -nfp | --nfp | --nf) | |
1098 | # Obsolete; use --without-fp. | |
1099 | with_fp=no ;; | |
1100 | ||
1101 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1102 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1103 | no_create=yes ;; |
1104 | ||
1105 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1106 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1107 | no_recursion=yes ;; | |
1108 | ||
1109 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1110 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1111 | | --oldin | --oldi | --old | --ol | --o) | |
1112 | ac_prev=oldincludedir ;; | |
1113 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1114 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1115 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1116 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1117 | |
1118 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1119 | ac_prev=prefix ;; | |
1120 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1121 | prefix=$ac_optarg ;; |
a0da8069 NN |
1122 | |
1123 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1124 | | --program-pre | --program-pr | --program-p) | |
1125 | ac_prev=program_prefix ;; | |
1126 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1127 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1128 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1129 | |
1130 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1131 | | --program-suf | --program-su | --program-s) | |
1132 | ac_prev=program_suffix ;; | |
1133 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1134 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1135 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1136 | |
1137 | -program-transform-name | --program-transform-name \ | |
1138 | | --program-transform-nam | --program-transform-na \ | |
1139 | | --program-transform-n | --program-transform- \ | |
1140 | | --program-transform | --program-transfor \ | |
1141 | | --program-transfo | --program-transf \ | |
1142 | | --program-trans | --program-tran \ | |
1143 | | --progr-tra | --program-tr | --program-t) | |
1144 | ac_prev=program_transform_name ;; | |
1145 | -program-transform-name=* | --program-transform-name=* \ | |
1146 | | --program-transform-nam=* | --program-transform-na=* \ | |
1147 | | --program-transform-n=* | --program-transform-=* \ | |
1148 | | --program-transform=* | --program-transfor=* \ | |
1149 | | --program-transfo=* | --program-transf=* \ | |
1150 | | --program-trans=* | --program-tran=* \ | |
1151 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1152 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1153 | |
81ecdfbb RW |
1154 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1155 | ac_prev=pdfdir ;; | |
1156 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1157 | pdfdir=$ac_optarg ;; | |
1158 | ||
1159 | -psdir | --psdir | --psdi | --psd | --ps) | |
1160 | ac_prev=psdir ;; | |
1161 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1162 | psdir=$ac_optarg ;; | |
1163 | ||
a0da8069 NN |
1164 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1165 | | -silent | --silent | --silen | --sile | --sil) | |
1166 | silent=yes ;; | |
1167 | ||
1168 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1169 | ac_prev=sbindir ;; | |
1170 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1171 | | --sbi=* | --sb=*) | |
c6b750e1 | 1172 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1173 | |
1174 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1175 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1176 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1177 | | --sha | --sh) | |
1178 | ac_prev=sharedstatedir ;; | |
1179 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1180 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1181 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1182 | | --sha=* | --sh=*) | |
c6b750e1 | 1183 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1184 | |
1185 | -site | --site | --sit) | |
1186 | ac_prev=site ;; | |
1187 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1188 | site=$ac_optarg ;; |
a0da8069 NN |
1189 | |
1190 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1191 | ac_prev=srcdir ;; | |
1192 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1193 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1194 | |
1195 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1196 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1197 | ac_prev=sysconfdir ;; | |
1198 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1199 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1200 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1201 | |
1202 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1203 | ac_prev=target_alias ;; |
a0da8069 | 1204 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1205 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1206 | |
1207 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1208 | verbose=yes ;; | |
1209 | ||
c6b750e1 DJ |
1210 | -version | --version | --versio | --versi | --vers | -V) |
1211 | ac_init_version=: ;; | |
a0da8069 NN |
1212 | |
1213 | -with-* | --with-*) | |
81ecdfbb | 1214 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1215 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1216 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1217 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1218 | ac_useropt_orig=$ac_useropt |
1219 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1220 | case $ac_user_opts in | |
1221 | *" | |
1222 | "with_$ac_useropt" | |
1223 | "*) ;; | |
1224 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1225 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1226 | esac |
81ecdfbb | 1227 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1228 | |
1229 | -without-* | --without-*) | |
81ecdfbb | 1230 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1231 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1232 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1233 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1234 | ac_useropt_orig=$ac_useropt |
1235 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1236 | case $ac_user_opts in | |
1237 | *" | |
1238 | "with_$ac_useropt" | |
1239 | "*) ;; | |
1240 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1241 | ac_unrecognized_sep=', ';; | |
1242 | esac | |
1243 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1244 | |
1245 | --x) | |
1246 | # Obsolete; use --with-x. | |
1247 | with_x=yes ;; | |
1248 | ||
1249 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1250 | | --x-incl | --x-inc | --x-in | --x-i) | |
1251 | ac_prev=x_includes ;; | |
1252 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1253 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1254 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1255 | |
1256 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1257 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1258 | ac_prev=x_libraries ;; | |
1259 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1260 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1261 | x_libraries=$ac_optarg ;; |
a0da8069 | 1262 | |
d0ac1c44 SM |
1263 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1264 | Try \`$0 --help' for more information" | |
a0da8069 NN |
1265 | ;; |
1266 | ||
c6b750e1 DJ |
1267 | *=*) |
1268 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1269 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1270 | case $ac_envvar in #( |
1271 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1272 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1273 | esac |
1274 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1275 | export $ac_envvar ;; |
1276 | ||
a0da8069 | 1277 | *) |
c6b750e1 | 1278 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1279 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1280 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1281 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1282 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
a0da8069 NN |
1283 | ;; |
1284 | ||
1285 | esac | |
1286 | done | |
1287 | ||
1288 | if test -n "$ac_prev"; then | |
c6b750e1 | 1289 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1290 | as_fn_error $? "missing argument to $ac_option" |
a0da8069 | 1291 | fi |
a0da8069 | 1292 | |
81ecdfbb RW |
1293 | if test -n "$ac_unrecognized_opts"; then |
1294 | case $enable_option_checking in | |
1295 | no) ;; | |
d0ac1c44 | 1296 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1297 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
c6b750e1 | 1298 | esac |
81ecdfbb | 1299 | fi |
a0da8069 | 1300 | |
81ecdfbb RW |
1301 | # Check all directory arguments for consistency. |
1302 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1303 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1304 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1305 | libdir localedir mandir | |
a0da8069 | 1306 | do |
81ecdfbb RW |
1307 | eval ac_val=\$$ac_var |
1308 | # Remove trailing slashes. | |
1309 | case $ac_val in | |
1310 | */ ) | |
1311 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1312 | eval $ac_var=\$ac_val;; | |
1313 | esac | |
1314 | # Be sure to have absolute directory names. | |
c6b750e1 | 1315 | case $ac_val in |
81ecdfbb RW |
1316 | [\\/$]* | ?:[\\/]* ) continue;; |
1317 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1318 | esac |
d0ac1c44 | 1319 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1320 | done |
1321 | ||
c6b750e1 DJ |
1322 | # There might be people who depend on the old broken behavior: `$host' |
1323 | # used to hold the argument of --host etc. | |
1324 | # FIXME: To remove some day. | |
1325 | build=$build_alias | |
1326 | host=$host_alias | |
1327 | target=$target_alias | |
376a0e54 | 1328 | |
c6b750e1 DJ |
1329 | # FIXME: To remove some day. |
1330 | if test "x$host_alias" != x; then | |
1331 | if test "x$build_alias" = x; then | |
1332 | cross_compiling=maybe | |
c6b750e1 DJ |
1333 | elif test "x$build_alias" != "x$host_alias"; then |
1334 | cross_compiling=yes | |
1335 | fi | |
1336 | fi | |
1337 | ||
1338 | ac_tool_prefix= | |
1339 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1340 | ||
1341 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1342 | |
a0da8069 | 1343 | |
81ecdfbb RW |
1344 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1345 | ac_ls_di=`ls -di .` && | |
1346 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1347 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1348 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1349 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1350 | |
1351 | ||
a0da8069 NN |
1352 | # Find the source files, if location was not specified. |
1353 | if test -z "$srcdir"; then | |
1354 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1355 | # Try the directory containing this script, then the parent directory. |
1356 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1357 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1358 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1359 | X"$as_myself" : 'X\(//\)$' \| \ | |
1360 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1361 | $as_echo X"$as_myself" | | |
1362 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1363 | s//\1/ | |
1364 | q | |
1365 | } | |
1366 | /^X\(\/\/\)[^/].*/{ | |
1367 | s//\1/ | |
1368 | q | |
1369 | } | |
1370 | /^X\(\/\/\)$/{ | |
1371 | s//\1/ | |
1372 | q | |
1373 | } | |
1374 | /^X\(\/\).*/{ | |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | s/.*/./; q'` | |
a0da8069 | 1379 | srcdir=$ac_confdir |
81ecdfbb | 1380 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1381 | srcdir=.. |
1382 | fi | |
1383 | else | |
1384 | ac_srcdir_defaulted=no | |
1385 | fi | |
81ecdfbb RW |
1386 | if test ! -r "$srcdir/$ac_unique_file"; then |
1387 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1388 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1389 | fi |
1390 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1391 | ac_abs_confdir=`( | |
d0ac1c44 | 1392 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1393 | pwd)` |
1394 | # When building in place, set srcdir=. | |
1395 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1396 | srcdir=. | |
1397 | fi | |
1398 | # Remove unnecessary trailing slashes from srcdir. | |
1399 | # Double slashes in file names in object file debugging info | |
1400 | # mess up M-x gdb in Emacs. | |
1401 | case $srcdir in | |
1402 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1403 | esac | |
6d0cd39e AM |
1404 | case $srcdir in |
1405 | *" "*) | |
d0ac1c44 | 1406 | as_fn_error $? "path to source, $srcdir, contains spaces" |
6d0cd39e AM |
1407 | ;; |
1408 | esac | |
9cc8ae67 PB |
1409 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1410 | ||
81ecdfbb RW |
1411 | for ac_var in $ac_precious_vars; do |
1412 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1413 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1414 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1415 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1416 | done | |
c6b750e1 DJ |
1417 | |
1418 | # | |
1419 | # Report the --help message. | |
1420 | # | |
1421 | if test "$ac_init_help" = "long"; then | |
1422 | # Omit some internal or obsolete options to make the list less imposing. | |
1423 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1424 | cat <<_ACEOF | |
1425 | \`configure' configures this package to adapt to many kinds of systems. | |
1426 | ||
1427 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1428 | ||
1429 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1430 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1431 | ||
1432 | Defaults for the options are specified in brackets. | |
1433 | ||
1434 | Configuration: | |
1435 | -h, --help display this help and exit | |
1436 | --help=short display options specific to this package | |
1437 | --help=recursive display the short help of all the included packages | |
1438 | -V, --version display version information and exit | |
d0ac1c44 | 1439 | -q, --quiet, --silent do not print \`checking ...' messages |
c6b750e1 DJ |
1440 | --cache-file=FILE cache test results in FILE [disabled] |
1441 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1442 | -n, --no-create do not create output files | |
1443 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1444 | ||
c6b750e1 DJ |
1445 | Installation directories: |
1446 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1447 | [$ac_default_prefix] |
c6b750e1 | 1448 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1449 | [PREFIX] |
c6b750e1 DJ |
1450 | |
1451 | By default, \`make install' will install all the files in | |
1452 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1453 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1454 | for instance \`--prefix=\$HOME'. | |
1455 | ||
1456 | For better control, use the options below. | |
1457 | ||
1458 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1459 | --bindir=DIR user executables [EPREFIX/bin] |
1460 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1461 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1462 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1463 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1464 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1465 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1466 | --includedir=DIR C header files [PREFIX/include] | |
1467 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1468 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1469 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1470 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1471 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1472 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1473 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1474 | --htmldir=DIR html documentation [DOCDIR] | |
1475 | --dvidir=DIR dvi documentation [DOCDIR] | |
1476 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1477 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1478 | _ACEOF |
1479 | ||
1480 | cat <<\_ACEOF | |
1481 | ||
1482 | Program names: | |
1483 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1484 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1485 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1486 | ||
1487 | System types: | |
1488 | --build=BUILD configure for building on BUILD [guessed] | |
1489 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1490 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1491 | _ACEOF | |
a0da8069 | 1492 | fi |
a0da8069 | 1493 | |
c6b750e1 DJ |
1494 | if test -n "$ac_init_help"; then |
1495 | ||
1496 | cat <<\_ACEOF | |
1497 | ||
1498 | Optional Features: | |
81ecdfbb | 1499 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1500 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1501 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1502 | --enable-as-accelerator-for=ARG |
1503 | build as offload target compiler. Specify offload | |
1504 | host triple by ARG | |
1505 | --enable-offload-targets=LIST | |
1506 | enable offloading to devices from comma-separated | |
1507 | LIST of TARGET[=DIR]. Use optional path to find | |
1508 | offload target compiler during the build | |
c7791212 | 1509 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1510 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
6c3bc0f8 | 1511 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1512 | Enable compressed debug sections for gas, gold or ld |
1513 | by default | |
89a1e9c3 PB |
1514 | --disable-libquadmath do not build libquadmath directory |
1515 | --disable-libquadmath-support | |
1516 | disable libquadmath support for Fortran | |
521ec477 DD |
1517 | --enable-libada build libada directory |
1518 | --enable-libssp build libssp directory | |
f66a9a70 | 1519 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1520 | --enable-liboffloadmic=ARG |
1521 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1522 | --enable-bootstrap enable bootstrapping [yes if native build] |
7ec59b9e | 1523 | --disable-isl-version-check |
4849dfd8 | 1524 | disable check for isl version |
700d40ca | 1525 | --enable-lto enable link time optimization support |
1b6c0831 L |
1526 | --enable-linker-plugin-configure-flags=FLAGS |
1527 | additional flags for configuring linker plugins | |
1528 | [none] | |
1529 | --enable-linker-plugin-flags=FLAGS | |
1530 | additional flags for configuring and building linker | |
1531 | plugins [none] | |
bf41f30d | 1532 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1533 | --enable-stage1-languages[=all] |
1534 | choose additional languages to build during stage1. | |
1535 | Mostly useful for compiler development | |
1536 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1537 | Objective-C runtime | |
ce6c656d | 1538 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1539 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1540 | force sequential configuration of sub-packages for |
1541 | the host, target or build machine, or all | |
1542 | sub-packages | |
1543 | --enable-maintainer-mode | |
1544 | enable make rules and dependencies not useful (and | |
1545 | sometimes confusing) to the casual installer | |
1546 | --enable-stage1-checking[=all] | |
1547 | choose additional checking for stage1 of the | |
1548 | compiler | |
c6b750e1 DJ |
1549 | --enable-werror enable -Werror in bootstrap stage2 and later |
1550 | ||
1551 | Optional Packages: | |
1552 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1553 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1554 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1555 | --with-system-zlib use installed libz |
7837304f AS |
1556 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1557 | Equivalent to --with-mpc-include=PATH/include plus | |
1558 | --with-mpc-lib=PATH/lib | |
1559 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1560 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1561 | --with-mpfr-dir=PATH this option has been REMOVED |
1562 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1563 | Equivalent to --with-mpfr-include=PATH/include plus |
1564 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1565 | --with-mpfr-include=PATH |
521ec477 DD |
1566 | specify directory for installed MPFR include files |
1567 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1568 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1569 | --with-gmp=PATH specify prefix directory for the installed GMP |
1570 | package. Equivalent to | |
1571 | --with-gmp-include=PATH/include plus | |
1572 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1573 | --with-gmp-include=PATH specify directory for installed GMP include files |
1574 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1575 | --with-stage1-libs=LIBS libraries for stage1 |
c1a5d03a TT |
1576 | --with-static-standard-libraries |
1577 | use -static-libstdc++ and -static-libgcc | |
1578 | (default=auto) | |
7837304f AS |
1579 | --with-stage1-ldflags=FLAGS |
1580 | linker flags for stage1 | |
7837304f AS |
1581 | --with-boot-libs=LIBS libraries for stage2 and later |
1582 | --with-boot-ldflags=FLAGS | |
1583 | linker flags for stage2 and later | |
4849dfd8 | 1584 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1585 | package. Equivalent to |
7ec59b9e L |
1586 | --with-isl-include=PATH/include plus |
1587 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1588 | --with-isl-include=PATH Specify directory for installed isl include files |
1589 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1590 | --with-target-bdw-gc=PATHLIST |
1591 | specify prefix directory for installed bdw-gc | |
1592 | package. Equivalent to | |
1593 | --with-target-bdw-gc-include=PATH/include plus | |
1594 | --with-target-bdw-gc-lib=PATH/lib | |
1595 | --with-target-bdw-gc-include=PATHLIST | |
1596 | specify directories for installed bdw-gc include | |
1597 | files | |
1598 | --with-target-bdw-gc-lib=PATHLIST | |
1599 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1600 | --with-gcc-major-version-only |
1601 | use only GCC major number in filesystem paths | |
521ec477 | 1602 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1603 | use sysroot as the system root during the build |
8a6ee3ab | 1604 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1605 | map A to B, C to D ... in debug information |
1606 | --with-build-config='NAME NAME2...' | |
1607 | use config/NAME.mk build configuration | |
521ec477 | 1608 | --with-build-time-tools=PATH |
c6b750e1 | 1609 | use given path to find target tools during the build |
c6b750e1 DJ |
1610 | |
1611 | Some influential environment variables: | |
1612 | CC C compiler command | |
1613 | CFLAGS C compiler flags | |
1614 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1615 | nonstandard directory <lib dir> | |
81ecdfbb | 1616 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1617 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1618 | you have headers in a nonstandard directory <include dir> |
18f6b6ee PB |
1619 | CXX C++ compiler command |
1620 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1621 | build_configargs |
1622 | additional configure arguments for build directories | |
1623 | host_configargs | |
1624 | additional configure arguments for host directories | |
1625 | target_configargs | |
1626 | additional configure arguments for target directories | |
9a819804 AO |
1627 | AR AR for the host |
1628 | AS AS for the host | |
1629 | DLLTOOL DLLTOOL for the host | |
1630 | LD LD for the host | |
1631 | LIPO LIPO for the host | |
1632 | NM NM for the host | |
1633 | RANLIB RANLIB for the host | |
1634 | STRIP STRIP for the host | |
1635 | WINDRES WINDRES for the host | |
0c24b341 | 1636 | WINDMC WINDMC for the host |
9a819804 AO |
1637 | OBJCOPY OBJCOPY for the host |
1638 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1639 | READELF READELF for the host |
9a819804 AO |
1640 | CC_FOR_TARGET |
1641 | CC for the target | |
1642 | CXX_FOR_TARGET | |
1643 | CXX for the target | |
1644 | GCC_FOR_TARGET | |
1645 | GCC for the target | |
9a819804 AO |
1646 | GFORTRAN_FOR_TARGET |
1647 | GFORTRAN for the target | |
e552509b ILT |
1648 | GOC_FOR_TARGET |
1649 | GOC for the target | |
9a819804 AO |
1650 | AR_FOR_TARGET |
1651 | AR for the target | |
1652 | AS_FOR_TARGET | |
1653 | AS for the target | |
1654 | DLLTOOL_FOR_TARGET | |
1655 | DLLTOOL for the target | |
1656 | LD_FOR_TARGET | |
1657 | LD for the target | |
1658 | LIPO_FOR_TARGET | |
1659 | LIPO for the target | |
1660 | NM_FOR_TARGET | |
1661 | NM for the target | |
6b91c541 AP |
1662 | OBJCOPY_FOR_TARGET |
1663 | OBJCOPY for the target | |
9a819804 AO |
1664 | OBJDUMP_FOR_TARGET |
1665 | OBJDUMP for the target | |
1666 | RANLIB_FOR_TARGET | |
1667 | RANLIB for the target | |
b121d7d4 DD |
1668 | READELF_FOR_TARGET |
1669 | READELF for the target | |
9a819804 AO |
1670 | STRIP_FOR_TARGET |
1671 | STRIP for the target | |
1672 | WINDRES_FOR_TARGET | |
1673 | WINDRES for the target | |
0c24b341 NC |
1674 | WINDMC_FOR_TARGET |
1675 | WINDMC for the target | |
c6b750e1 DJ |
1676 | |
1677 | Use these variables to override the choices made by `configure' or to help | |
1678 | it to find libraries and programs with nonstandard names/locations. | |
1679 | ||
81ecdfbb | 1680 | Report bugs to the package provider. |
c6b750e1 | 1681 | _ACEOF |
81ecdfbb | 1682 | ac_status=$? |
c6b750e1 DJ |
1683 | fi |
1684 | ||
1685 | if test "$ac_init_help" = "recursive"; then | |
1686 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1687 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1688 | test -d "$ac_dir" || |
1689 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1690 | continue | |
c6b750e1 DJ |
1691 | ac_builddir=. |
1692 | ||
81ecdfbb RW |
1693 | case "$ac_dir" in |
1694 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1695 | *) | |
1696 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1697 | # A ".." for each directory in $ac_dir_suffix. | |
1698 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1699 | case $ac_top_builddir_sub in | |
1700 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1701 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1702 | esac ;; | |
1703 | esac | |
1704 | ac_abs_top_builddir=$ac_pwd | |
1705 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1706 | # for backward compatibility: | |
1707 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1708 | |
1709 | case $srcdir in | |
81ecdfbb | 1710 | .) # We are building in place. |
c6b750e1 | 1711 | ac_srcdir=. |
81ecdfbb RW |
1712 | ac_top_srcdir=$ac_top_builddir_sub |
1713 | ac_abs_top_srcdir=$ac_pwd ;; | |
1714 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1715 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1716 | ac_top_srcdir=$srcdir |
1717 | ac_abs_top_srcdir=$srcdir ;; | |
1718 | *) # Relative name. | |
1719 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1720 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1721 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1722 | esac |
81ecdfbb RW |
1723 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1724 | ||
1725 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1726 | # Check for guested configure. | |
1727 | if test -f "$ac_srcdir/configure.gnu"; then | |
1728 | echo && | |
1729 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1730 | elif test -f "$ac_srcdir/configure"; then | |
1731 | echo && | |
1732 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1733 | else |
81ecdfbb RW |
1734 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1735 | fi || ac_status=$? | |
1736 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1737 | done |
1738 | fi | |
1739 | ||
81ecdfbb | 1740 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1741 | if $ac_init_version; then |
1742 | cat <<\_ACEOF | |
81ecdfbb | 1743 | configure |
d0ac1c44 | 1744 | generated by GNU Autoconf 2.69 |
c6b750e1 | 1745 | |
d0ac1c44 | 1746 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
1747 | This configure script is free software; the Free Software Foundation |
1748 | gives unlimited permission to copy, distribute and modify it. | |
1749 | _ACEOF | |
81ecdfbb | 1750 | exit |
c6b750e1 | 1751 | fi |
81ecdfbb RW |
1752 | |
1753 | ## ------------------------ ## | |
1754 | ## Autoconf initialization. ## | |
1755 | ## ------------------------ ## | |
1756 | ||
1757 | # ac_fn_c_try_compile LINENO | |
1758 | # -------------------------- | |
1759 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1760 | ac_fn_c_try_compile () | |
1761 | { | |
1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1763 | rm -f conftest.$ac_objext | |
1764 | if { { ac_try="$ac_compile" | |
1765 | case "(($ac_try" in | |
1766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1767 | *) ac_try_echo=$ac_try;; | |
1768 | esac | |
1769 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1770 | $as_echo "$ac_try_echo"; } >&5 | |
1771 | (eval "$ac_compile") 2>conftest.err | |
1772 | ac_status=$? | |
1773 | if test -s conftest.err; then | |
1774 | grep -v '^ *+' conftest.err >conftest.er1 | |
1775 | cat conftest.er1 >&5 | |
1776 | mv -f conftest.er1 conftest.err | |
1777 | fi | |
1778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1779 | test $ac_status = 0; } && { | |
1780 | test -z "$ac_c_werror_flag" || | |
1781 | test ! -s conftest.err | |
1782 | } && test -s conftest.$ac_objext; then : | |
1783 | ac_retval=0 | |
1784 | else | |
1785 | $as_echo "$as_me: failed program was:" >&5 | |
1786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1787 | ||
1788 | ac_retval=1 | |
1789 | fi | |
d0ac1c44 SM |
1790 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1791 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1792 | |
1793 | } # ac_fn_c_try_compile | |
1794 | ||
1795 | # ac_fn_cxx_try_compile LINENO | |
1796 | # ---------------------------- | |
1797 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1798 | ac_fn_cxx_try_compile () | |
1799 | { | |
1800 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1801 | rm -f conftest.$ac_objext | |
1802 | if { { ac_try="$ac_compile" | |
1803 | case "(($ac_try" in | |
1804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1805 | *) ac_try_echo=$ac_try;; | |
1806 | esac | |
1807 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1808 | $as_echo "$ac_try_echo"; } >&5 | |
1809 | (eval "$ac_compile") 2>conftest.err | |
1810 | ac_status=$? | |
1811 | if test -s conftest.err; then | |
1812 | grep -v '^ *+' conftest.err >conftest.er1 | |
1813 | cat conftest.er1 >&5 | |
1814 | mv -f conftest.er1 conftest.err | |
1815 | fi | |
1816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1817 | test $ac_status = 0; } && { | |
1818 | test -z "$ac_cxx_werror_flag" || | |
1819 | test ! -s conftest.err | |
1820 | } && test -s conftest.$ac_objext; then : | |
1821 | ac_retval=0 | |
1822 | else | |
1823 | $as_echo "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | ac_retval=1 | |
1827 | fi | |
d0ac1c44 SM |
1828 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1829 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1830 | |
1831 | } # ac_fn_cxx_try_compile | |
1832 | ||
b3676d82 EB |
1833 | # ac_fn_cxx_try_link LINENO |
1834 | # ------------------------- | |
1835 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1836 | ac_fn_cxx_try_link () | |
1837 | { | |
1838 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1840 | if { { ac_try="$ac_link" | |
1841 | case "(($ac_try" in | |
1842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1843 | *) ac_try_echo=$ac_try;; | |
1844 | esac | |
1845 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1846 | $as_echo "$ac_try_echo"; } >&5 | |
1847 | (eval "$ac_link") 2>conftest.err | |
1848 | ac_status=$? | |
1849 | if test -s conftest.err; then | |
1850 | grep -v '^ *+' conftest.err >conftest.er1 | |
1851 | cat conftest.er1 >&5 | |
1852 | mv -f conftest.er1 conftest.err | |
1853 | fi | |
1854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1855 | test $ac_status = 0; } && { | |
1856 | test -z "$ac_cxx_werror_flag" || | |
1857 | test ! -s conftest.err | |
1858 | } && test -s conftest$ac_exeext && { | |
1859 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1860 | test -x conftest$ac_exeext |
b3676d82 EB |
1861 | }; then : |
1862 | ac_retval=0 | |
1863 | else | |
1864 | $as_echo "$as_me: failed program was:" >&5 | |
1865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1866 | ||
1867 | ac_retval=1 | |
1868 | fi | |
1869 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1870 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1871 | # interfere with the next link command; also delete a directory that is | |
1872 | # left behind by Apple's compiler. We do this before executing the actions. | |
1873 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1874 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1875 | as_fn_set_status $ac_retval | |
b3676d82 EB |
1876 | |
1877 | } # ac_fn_cxx_try_link | |
1878 | ||
81ecdfbb RW |
1879 | # ac_fn_c_try_link LINENO |
1880 | # ----------------------- | |
1881 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1882 | ac_fn_c_try_link () | |
1883 | { | |
1884 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1886 | if { { ac_try="$ac_link" | |
1887 | case "(($ac_try" in | |
1888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1889 | *) ac_try_echo=$ac_try;; | |
1890 | esac | |
1891 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1892 | $as_echo "$ac_try_echo"; } >&5 | |
1893 | (eval "$ac_link") 2>conftest.err | |
1894 | ac_status=$? | |
1895 | if test -s conftest.err; then | |
1896 | grep -v '^ *+' conftest.err >conftest.er1 | |
1897 | cat conftest.er1 >&5 | |
1898 | mv -f conftest.er1 conftest.err | |
1899 | fi | |
1900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1901 | test $ac_status = 0; } && { | |
1902 | test -z "$ac_c_werror_flag" || | |
1903 | test ! -s conftest.err | |
1904 | } && test -s conftest$ac_exeext && { | |
1905 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1906 | test -x conftest$ac_exeext |
81ecdfbb RW |
1907 | }; then : |
1908 | ac_retval=0 | |
1909 | else | |
1910 | $as_echo "$as_me: failed program was:" >&5 | |
1911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1912 | ||
1913 | ac_retval=1 | |
1914 | fi | |
1915 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1916 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1917 | # interfere with the next link command; also delete a directory that is | |
1918 | # left behind by Apple's compiler. We do this before executing the actions. | |
1919 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1920 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1921 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1922 | |
1923 | } # ac_fn_c_try_link | |
1924 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1925 | This file contains any messages produced by compilers while |
1926 | running configure, to aid debugging if configure makes a mistake. | |
1927 | ||
1928 | It was created by $as_me, which was | |
d0ac1c44 | 1929 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
1930 | |
1931 | $ $0 $@ | |
1932 | ||
1933 | _ACEOF | |
81ecdfbb | 1934 | exec 5>>config.log |
c6b750e1 DJ |
1935 | { |
1936 | cat <<_ASUNAME | |
1937 | ## --------- ## | |
1938 | ## Platform. ## | |
1939 | ## --------- ## | |
1940 | ||
1941 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1942 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1943 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1944 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1945 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1946 | ||
1947 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1948 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1949 | ||
1950 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1951 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1952 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1953 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1954 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1955 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1956 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1957 | ||
1958 | _ASUNAME | |
1959 | ||
1960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1961 | for as_dir in $PATH | |
1962 | do | |
1963 | IFS=$as_save_IFS | |
1964 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1965 | $as_echo "PATH: $as_dir" |
1966 | done | |
1967 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1968 | |
1969 | } >&5 | |
1970 | ||
1971 | cat >&5 <<_ACEOF | |
1972 | ||
1973 | ||
1974 | ## ----------- ## | |
1975 | ## Core tests. ## | |
1976 | ## ----------- ## | |
1977 | ||
1978 | _ACEOF | |
1979 | ||
1980 | ||
1981 | # Keep a trace of the command line. | |
1982 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1983 | # Strip out --silent because we don't want to record it for future runs. | |
1984 | # Also quote any args containing shell meta-characters. | |
1985 | # Make two passes to allow for proper duplicate-argument suppression. | |
1986 | ac_configure_args= | |
1987 | ac_configure_args0= | |
1988 | ac_configure_args1= | |
c6b750e1 DJ |
1989 | ac_must_keep_next=false |
1990 | for ac_pass in 1 2 | |
1991 | do | |
1992 | for ac_arg | |
1993 | do | |
1994 | case $ac_arg in | |
1995 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1996 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1997 | | -silent | --silent | --silen | --sile | --sil) | |
1998 | continue ;; | |
81ecdfbb RW |
1999 | *\'*) |
2000 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
2001 | esac |
2002 | case $ac_pass in | |
81ecdfbb | 2003 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 2004 | 2) |
81ecdfbb | 2005 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
2006 | if test $ac_must_keep_next = true; then |
2007 | ac_must_keep_next=false # Got value, back to normal. | |
2008 | else | |
2009 | case $ac_arg in | |
2010 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2011 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2012 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2013 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2014 | case "$ac_configure_args0 " in | |
2015 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2016 | esac | |
2017 | ;; | |
2018 | -* ) ac_must_keep_next=true ;; | |
2019 | esac | |
2020 | fi | |
81ecdfbb | 2021 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2022 | ;; |
2023 | esac | |
2024 | done | |
2025 | done | |
81ecdfbb RW |
2026 | { ac_configure_args0=; unset ac_configure_args0;} |
2027 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2028 | |
2029 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2030 | # config.log. We remove comments because anyway the quotes in there | |
2031 | # would cause problems or look ugly. | |
81ecdfbb RW |
2032 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2033 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2034 | trap 'exit_status=$? |
2035 | # Save into config.log some information that might help in debugging. | |
2036 | { | |
2037 | echo | |
2038 | ||
d0ac1c44 | 2039 | $as_echo "## ---------------- ## |
c6b750e1 | 2040 | ## Cache variables. ## |
d0ac1c44 | 2041 | ## ---------------- ##" |
c6b750e1 DJ |
2042 | echo |
2043 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2044 | ( |
2045 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2046 | eval ac_val=\$$ac_var | |
2047 | case $ac_val in #( | |
2048 | *${as_nl}*) | |
2049 | case $ac_var in #( | |
2050 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2051 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2052 | esac | |
2053 | case $ac_var in #( | |
2054 | _ | IFS | as_nl) ;; #( | |
2055 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2056 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2057 | esac ;; | |
2058 | esac | |
2059 | done | |
c6b750e1 | 2060 | (set) 2>&1 | |
81ecdfbb RW |
2061 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2062 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2063 | sed -n \ |
81ecdfbb RW |
2064 | "s/'\''/'\''\\\\'\'''\''/g; |
2065 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2066 | ;; #( | |
c6b750e1 | 2067 | *) |
81ecdfbb | 2068 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2069 | ;; |
81ecdfbb RW |
2070 | esac | |
2071 | sort | |
2072 | ) | |
c6b750e1 DJ |
2073 | echo |
2074 | ||
d0ac1c44 | 2075 | $as_echo "## ----------------- ## |
c6b750e1 | 2076 | ## Output variables. ## |
d0ac1c44 | 2077 | ## ----------------- ##" |
c6b750e1 DJ |
2078 | echo |
2079 | for ac_var in $ac_subst_vars | |
2080 | do | |
81ecdfbb RW |
2081 | eval ac_val=\$$ac_var |
2082 | case $ac_val in | |
2083 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2084 | esac | |
2085 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2086 | done | sort |
2087 | echo | |
2088 | ||
2089 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2090 | $as_echo "## ------------------- ## |
81ecdfbb | 2091 | ## File substitutions. ## |
d0ac1c44 | 2092 | ## ------------------- ##" |
c6b750e1 DJ |
2093 | echo |
2094 | for ac_var in $ac_subst_files | |
2095 | do | |
81ecdfbb RW |
2096 | eval ac_val=\$$ac_var |
2097 | case $ac_val in | |
2098 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2099 | esac | |
2100 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2101 | done | sort |
2102 | echo | |
2103 | fi | |
2104 | ||
2105 | if test -s confdefs.h; then | |
d0ac1c44 | 2106 | $as_echo "## ----------- ## |
c6b750e1 | 2107 | ## confdefs.h. ## |
d0ac1c44 | 2108 | ## ----------- ##" |
c6b750e1 | 2109 | echo |
81ecdfbb | 2110 | cat confdefs.h |
c6b750e1 DJ |
2111 | echo |
2112 | fi | |
2113 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2114 | $as_echo "$as_me: caught signal $ac_signal" |
2115 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2116 | } >&5 |
81ecdfbb RW |
2117 | rm -f core *.core core.conftest.* && |
2118 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2119 | exit $exit_status |
81ecdfbb | 2120 | ' 0 |
c6b750e1 | 2121 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2122 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2123 | done |
2124 | ac_signal=0 | |
2125 | ||
2126 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2127 | rm -f -r conftest* confdefs.h |
2128 | ||
2129 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2130 | |
2131 | # Predefined preprocessor variables. | |
2132 | ||
2133 | cat >>confdefs.h <<_ACEOF | |
2134 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2135 | _ACEOF | |
2136 | ||
c6b750e1 DJ |
2137 | cat >>confdefs.h <<_ACEOF |
2138 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2139 | _ACEOF | |
2140 | ||
c6b750e1 DJ |
2141 | cat >>confdefs.h <<_ACEOF |
2142 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2143 | _ACEOF | |
2144 | ||
c6b750e1 DJ |
2145 | cat >>confdefs.h <<_ACEOF |
2146 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2147 | _ACEOF | |
2148 | ||
c6b750e1 DJ |
2149 | cat >>confdefs.h <<_ACEOF |
2150 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2151 | _ACEOF | |
2152 | ||
81ecdfbb RW |
2153 | cat >>confdefs.h <<_ACEOF |
2154 | #define PACKAGE_URL "$PACKAGE_URL" | |
2155 | _ACEOF | |
2156 | ||
c6b750e1 DJ |
2157 | |
2158 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2159 | # Prefer an explicitly selected file to automatically selected ones. |
2160 | ac_site_file1=NONE | |
2161 | ac_site_file2=NONE | |
2162 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2163 | # We do not want a PATH search for config.site. |
2164 | case $CONFIG_SITE in #(( | |
2165 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2166 | */*) ac_site_file1=$CONFIG_SITE;; | |
2167 | *) ac_site_file1=./$CONFIG_SITE;; | |
2168 | esac | |
81ecdfbb RW |
2169 | elif test "x$prefix" != xNONE; then |
2170 | ac_site_file1=$prefix/share/config.site | |
2171 | ac_site_file2=$prefix/etc/config.site | |
2172 | else | |
2173 | ac_site_file1=$ac_default_prefix/share/config.site | |
2174 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2175 | fi |
81ecdfbb RW |
2176 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2177 | do | |
2178 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2179 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2181 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2182 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2183 | . "$ac_site_file" \ |
2184 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2185 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2186 | as_fn_error $? "failed to load site script $ac_site_file | |
2187 | See \`config.log' for more details" "$LINENO" 5; } | |
a0da8069 NN |
2188 | fi |
2189 | done | |
2190 | ||
2191 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2192 | # Some versions of bash will fail to source /dev/null (special files |
2193 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2194 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2196 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2197 | case $cache_file in |
81ecdfbb RW |
2198 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2199 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2200 | esac |
2201 | fi | |
a0da8069 | 2202 | else |
81ecdfbb RW |
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2204 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2205 | >$cache_file |
2206 | fi | |
2207 | ||
2208 | # Check that the precious variables saved in the cache have kept the same | |
2209 | # value. | |
2210 | ac_cache_corrupted=false | |
81ecdfbb | 2211 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2212 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2213 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2214 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2215 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2216 | case $ac_old_set,$ac_new_set in |
2217 | set,) | |
81ecdfbb RW |
2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2219 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2220 | ac_cache_corrupted=: ;; |
2221 | ,set) | |
81ecdfbb RW |
2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2223 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2224 | ac_cache_corrupted=: ;; |
2225 | ,);; | |
2226 | *) | |
2227 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2228 | # differences in whitespace do not lead to failure. |
2229 | ac_old_val_w=`echo x $ac_old_val` | |
2230 | ac_new_val_w=`echo x $ac_new_val` | |
2231 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2233 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2234 | ac_cache_corrupted=: | |
2235 | else | |
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2237 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2238 | eval $ac_var=\$ac_old_val | |
2239 | fi | |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2241 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2243 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2244 | fi;; |
2245 | esac | |
2246 | # Pass precious variables to config.status. | |
2247 | if test "$ac_new_set" = set; then | |
2248 | case $ac_new_val in | |
81ecdfbb | 2249 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2250 | *) ac_arg=$ac_var=$ac_new_val ;; |
2251 | esac | |
2252 | case " $ac_configure_args " in | |
2253 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2254 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2255 | esac |
2256 | fi | |
2257 | done | |
2258 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2260 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2262 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2263 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
a0da8069 | 2264 | fi |
81ecdfbb RW |
2265 | ## -------------------- ## |
2266 | ## Main body of script. ## | |
2267 | ## -------------------- ## | |
a0da8069 NN |
2268 | |
2269 | ac_ext=c | |
a0da8069 | 2270 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2274 | ||
2275 | ||
2276 | ||
2277 | ||
c6b750e1 DJ |
2278 | |
2279 | ||
34a0f3cf | 2280 | |
c6b750e1 | 2281 | |
5b553f7e RW |
2282 | progname=$0 |
2283 | # if PWD already has a value, it is probably wrong. | |
2284 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2285 | ||
2286 | # Export original configure arguments for use by sub-configures. | |
2287 | # Quote arguments with shell meta charatcers. | |
2288 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2289 | set -- "$progname" "$@" | |
2290 | for ac_arg | |
2291 | do | |
2292 | case "$ac_arg" in | |
2293 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2294 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2295 | # if the argument is of the form -foo=baz, quote the baz part only | |
2296 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2297 | *) ;; | |
2298 | esac | |
2299 | # Add the quoted argument to the list. | |
2300 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2301 | done | |
2302 | if test "$silent" = yes; then | |
2303 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2304 | fi | |
2305 | # Remove the initial space we just introduced and, as these will be | |
2306 | # expanded by make, quote '$'. | |
2307 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2308 | ||
c6b750e1 DJ |
2309 | |
2310 | # Find the build, host, and target systems. | |
a0da8069 | 2311 | ac_aux_dir= |
81ecdfbb | 2312 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2313 | if test -f "$ac_dir/install-sh"; then |
2314 | ac_aux_dir=$ac_dir | |
2315 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2316 | break | |
2317 | elif test -f "$ac_dir/install.sh"; then | |
2318 | ac_aux_dir=$ac_dir | |
2319 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2320 | break | |
2321 | elif test -f "$ac_dir/shtool"; then | |
2322 | ac_aux_dir=$ac_dir | |
2323 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2324 | break | |
2325 | fi | |
a0da8069 NN |
2326 | done |
2327 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2328 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2329 | fi |
81ecdfbb RW |
2330 | |
2331 | # These three variables are undocumented and unsupported, | |
2332 | # and are intended to be withdrawn in a future Autoconf release. | |
2333 | # They can cause serious problems if a builder's source tree is in a directory | |
2334 | # whose full name contains unusual characters. | |
2335 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2336 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2337 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2338 | ||
a0da8069 | 2339 | |
c6b750e1 | 2340 | # Make sure we can run config.sub. |
81ecdfbb | 2341 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2342 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2343 | |
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2345 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2346 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2347 | $as_echo_n "(cached) " >&6 |
2348 | else | |
2349 | ac_build_alias=$build_alias | |
2350 | test "x$ac_build_alias" = x && | |
2351 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2352 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2353 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2354 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2355 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2356 | |
2357 | fi | |
2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2359 | $as_echo "$ac_cv_build" >&6; } | |
2360 | case $ac_cv_build in | |
2361 | *-*-*) ;; | |
d0ac1c44 | 2362 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2363 | esac |
c6b750e1 | 2364 | build=$ac_cv_build |
81ecdfbb RW |
2365 | ac_save_IFS=$IFS; IFS='-' |
2366 | set x $ac_cv_build | |
2367 | shift | |
2368 | build_cpu=$1 | |
2369 | build_vendor=$2 | |
2370 | shift; shift | |
2371 | # Remember, the first character of IFS is used to create $*, | |
2372 | # except with old shells: | |
2373 | build_os=$* | |
2374 | IFS=$ac_save_IFS | |
2375 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2376 | |
a0da8069 | 2377 | |
c6b750e1 DJ |
2378 | case ${build_alias} in |
2379 | "") build_noncanonical=${build} ;; | |
2380 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2381 | esac |
2382 | ||
2383 | ||
cac3d6c4 | 2384 | |
c6b750e1 DJ |
2385 | case ${host_alias} in |
2386 | "") host_noncanonical=${build_noncanonical} ;; | |
2387 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2388 | esac |
2389 | ||
cac3d6c4 | 2390 | |
c6b750e1 DJ |
2391 | |
2392 | case ${target_alias} in | |
2393 | "") target_noncanonical=${host_noncanonical} ;; | |
2394 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2395 | esac |
2396 | ||
cac3d6c4 | 2397 | |
c6b750e1 DJ |
2398 | |
2399 | ||
2400 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2401 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2402 | NONENONEs,x,x, && | |
c6b750e1 | 2403 | program_transform_name=s,y,y, |
cac3d6c4 | 2404 | |
81ecdfbb RW |
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2406 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2407 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2408 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 2409 | else |
81ecdfbb RW |
2410 | if test "x$host_alias" = x; then |
2411 | ac_cv_host=$ac_cv_build | |
2412 | else | |
2413 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2414 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2415 | fi |
c6b750e1 DJ |
2416 | |
2417 | fi | |
81ecdfbb RW |
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2419 | $as_echo "$ac_cv_host" >&6; } | |
2420 | case $ac_cv_host in | |
2421 | *-*-*) ;; | |
d0ac1c44 | 2422 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2423 | esac |
c6b750e1 | 2424 | host=$ac_cv_host |
81ecdfbb RW |
2425 | ac_save_IFS=$IFS; IFS='-' |
2426 | set x $ac_cv_host | |
2427 | shift | |
2428 | host_cpu=$1 | |
2429 | host_vendor=$2 | |
2430 | shift; shift | |
2431 | # Remember, the first character of IFS is used to create $*, | |
2432 | # except with old shells: | |
2433 | host_os=$* | |
2434 | IFS=$ac_save_IFS | |
2435 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2436 | |
2437 | ||
81ecdfbb RW |
2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2439 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2440 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2441 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 2442 | else |
81ecdfbb RW |
2443 | if test "x$target_alias" = x; then |
2444 | ac_cv_target=$ac_cv_host | |
2445 | else | |
2446 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2447 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2448 | fi |
c6b750e1 | 2449 | |
cac3d6c4 | 2450 | fi |
81ecdfbb RW |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2452 | $as_echo "$ac_cv_target" >&6; } | |
2453 | case $ac_cv_target in | |
2454 | *-*-*) ;; | |
d0ac1c44 | 2455 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2456 | esac |
c6b750e1 | 2457 | target=$ac_cv_target |
81ecdfbb RW |
2458 | ac_save_IFS=$IFS; IFS='-' |
2459 | set x $ac_cv_target | |
2460 | shift | |
2461 | target_cpu=$1 | |
2462 | target_vendor=$2 | |
2463 | shift; shift | |
2464 | # Remember, the first character of IFS is used to create $*, | |
2465 | # except with old shells: | |
2466 | target_os=$* | |
2467 | IFS=$ac_save_IFS | |
2468 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2469 | |
2470 | ||
2471 | # The aliases save the names the user supplied, while $host etc. | |
2472 | # will get canonicalized. | |
2473 | test -n "$target_alias" && | |
2474 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2475 | NONENONEs,x,x, && | |
2476 | program_prefix=${target_alias}- | |
81ecdfbb | 2477 | |
a0da8069 | 2478 | test "$program_prefix" != NONE && |
81ecdfbb | 2479 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2480 | # Use a double $ so make ignores it. |
2481 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2482 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2483 | # Double any \ or $. | |
c6b750e1 | 2484 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2485 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2486 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2487 | |
a0da8069 NN |
2488 | |
2489 | ||
e5c3f801 NN |
2490 | # Get 'install' or 'install-sh' and its variants. |
2491 | # Find a good install program. We prefer a C program (faster), | |
2492 | # so one script is as good as another. But avoid the broken or | |
2493 | # incompatible versions: | |
2494 | # SysV /etc/install, /usr/sbin/install | |
2495 | # SunOS /usr/etc/install | |
2496 | # IRIX /sbin/install | |
2497 | # AIX /bin/install | |
c6b750e1 | 2498 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2499 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2500 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2501 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2502 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2503 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2504 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2506 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2507 | if test -z "$INSTALL"; then |
d0ac1c44 | 2508 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2509 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
2510 | else |
2511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2512 | for as_dir in $PATH | |
2513 | do | |
2514 | IFS=$as_save_IFS | |
2515 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2516 | # Account for people who put trailing slashes in PATH elements. |
2517 | case $as_dir/ in #(( | |
2518 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2519 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2520 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2521 | /usr/ucb/* ) ;; |
2522 | *) | |
2523 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2524 | # Don't use installbsd from OSF since it installs stuff as root | |
2525 | # by default. | |
2526 | for ac_prog in ginstall scoinst install; do | |
2527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2528 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
e5c3f801 | 2529 | if test $ac_prog = install && |
c6b750e1 | 2530 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2531 | # AIX install. It has an incompatible calling convention. |
2532 | : | |
c6b750e1 DJ |
2533 | elif test $ac_prog = install && |
2534 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2535 | # program-specific install script used by HP pwplus--don't use. | |
2536 | : | |
e5c3f801 | 2537 | else |
58c85be7 RW |
2538 | rm -rf conftest.one conftest.two conftest.dir |
2539 | echo one > conftest.one | |
2540 | echo two > conftest.two | |
2541 | mkdir conftest.dir | |
2542 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2543 | test -s conftest.one && test -s conftest.two && | |
2544 | test -s conftest.dir/conftest.one && | |
2545 | test -s conftest.dir/conftest.two | |
2546 | then | |
2547 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2548 | break 3 | |
2549 | fi | |
e5c3f801 NN |
2550 | fi |
2551 | fi | |
2552 | done | |
c6b750e1 DJ |
2553 | done |
2554 | ;; | |
2555 | esac | |
81ecdfbb RW |
2556 | |
2557 | done | |
2558 | IFS=$as_save_IFS | |
c6b750e1 | 2559 | |
58c85be7 | 2560 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2561 | |
2562 | fi | |
2563 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2564 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2565 | else |
58c85be7 RW |
2566 | # As a last resort, use the slow shell script. Don't cache a |
2567 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2568 | # break other packages using the cache if that directory is |
58c85be7 | 2569 | # removed, or if the value is a relative name. |
c6b750e1 | 2570 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2571 | fi |
2572 | fi | |
81ecdfbb RW |
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2574 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2575 | |
2576 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2577 | # It thinks the first close brace ends the variable substitution. | |
2578 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2579 | ||
c6b750e1 | 2580 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2581 | |
2582 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2583 | ||
81ecdfbb RW |
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2585 | $as_echo_n "checking whether ln works... " >&6; } | |
d0ac1c44 | 2586 | if ${acx_cv_prog_LN+:} false; then : |
81ecdfbb | 2587 | $as_echo_n "(cached) " >&6 |
656fdd47 PB |
2588 | else |
2589 | rm -f conftestdata_t | |
2590 | echo >conftestdata_f | |
2591 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2592 | then | |
2593 | acx_cv_prog_LN=ln | |
2594 | else | |
2595 | acx_cv_prog_LN=no | |
2596 | fi | |
2597 | rm -f conftestdata_f conftestdata_t | |
2598 | ||
2599 | fi | |
2600 | if test $acx_cv_prog_LN = no; then | |
2601 | LN="cp" | |
81ecdfbb RW |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2603 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2604 | else |
2605 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2607 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2608 | fi |
2609 | ||
81ecdfbb RW |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2611 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2612 | LN_S=$as_ln_s |
2613 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2615 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2616 | else |
81ecdfbb RW |
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2618 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2619 | fi |
2620 | ||
8e957354 PB |
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2622 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 2623 | if ${ac_cv_path_SED+:} false; then : |
8e957354 PB |
2624 | $as_echo_n "(cached) " >&6 |
2625 | else | |
2626 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2627 | for ac_i in 1 2 3 4 5 6 7; do | |
2628 | ac_script="$ac_script$as_nl$ac_script" | |
2629 | done | |
2630 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2631 | { ac_script=; unset ac_script;} | |
2632 | if test -z "$SED"; then | |
2633 | ac_path_SED_found=false | |
2634 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2636 | for as_dir in $PATH | |
2637 | do | |
2638 | IFS=$as_save_IFS | |
2639 | test -z "$as_dir" && as_dir=. | |
2640 | for ac_prog in sed gsed; do | |
2641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2642 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 2643 | as_fn_executable_p "$ac_path_SED" || continue |
8e957354 PB |
2644 | # Check for GNU ac_path_SED and select it if it is found. |
2645 | # Check for GNU $ac_path_SED | |
2646 | case `"$ac_path_SED" --version 2>&1` in | |
2647 | *GNU*) | |
2648 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2649 | *) | |
2650 | ac_count=0 | |
2651 | $as_echo_n 0123456789 >"conftest.in" | |
2652 | while : | |
2653 | do | |
2654 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2655 | mv "conftest.tmp" "conftest.in" | |
2656 | cp "conftest.in" "conftest.nl" | |
2657 | $as_echo '' >> "conftest.nl" | |
2658 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2659 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2660 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2661 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2662 | # Best one so far, save it but keep looking for a better one | |
2663 | ac_cv_path_SED="$ac_path_SED" | |
2664 | ac_path_SED_max=$ac_count | |
2665 | fi | |
2666 | # 10*(2^10) chars as input seems more than enough | |
2667 | test $ac_count -gt 10 && break | |
2668 | done | |
2669 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2670 | esac | |
2671 | ||
2672 | $ac_path_SED_found && break 3 | |
2673 | done | |
2674 | done | |
2675 | done | |
2676 | IFS=$as_save_IFS | |
2677 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 2678 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8e957354 PB |
2679 | fi |
2680 | else | |
2681 | ac_cv_path_SED=$SED | |
2682 | fi | |
2683 | ||
2684 | fi | |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2686 | $as_echo "$ac_cv_path_SED" >&6; } | |
2687 | SED="$ac_cv_path_SED" | |
2688 | rm -f conftest.sed | |
2689 | ||
2690 | for ac_prog in gawk mawk nawk awk | |
2691 | do | |
2692 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2693 | set dummy $ac_prog; ac_word=$2 | |
2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2695 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2696 | if ${ac_cv_prog_AWK+:} false; then : |
8e957354 PB |
2697 | $as_echo_n "(cached) " >&6 |
2698 | else | |
2699 | if test -n "$AWK"; then | |
2700 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2701 | else | |
2702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2703 | for as_dir in $PATH | |
2704 | do | |
2705 | IFS=$as_save_IFS | |
2706 | test -z "$as_dir" && as_dir=. | |
2707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2708 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8e957354 PB |
2709 | ac_cv_prog_AWK="$ac_prog" |
2710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2711 | break 2 | |
2712 | fi | |
2713 | done | |
2714 | done | |
2715 | IFS=$as_save_IFS | |
2716 | ||
2717 | fi | |
2718 | fi | |
2719 | AWK=$ac_cv_prog_AWK | |
2720 | if test -n "$AWK"; then | |
2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2722 | $as_echo "$AWK" >&6; } | |
2723 | else | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2725 | $as_echo "no" >&6; } | |
2726 | fi | |
2727 | ||
2728 | ||
2729 | test -n "$AWK" && break | |
2730 | done | |
2731 | ||
e5c3f801 | 2732 | |
0fdbe983 DJ |
2733 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2734 | ||
2735 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2736 | # a relative path. | |
2737 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2738 | INSTALL="${srcpwd}/install-sh -c" | |
2739 | fi | |
2740 | ||
a0da8069 NN |
2741 | # Set srcdir to "." if that's what it is. |
2742 | # This is important for multilib support. | |
2743 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2744 | if test "${pwd}" = "${srcpwd}" ; then |
2745 | srcdir=. | |
252b5132 RH |
2746 | fi |
2747 | ||
a0da8069 | 2748 | topsrcdir=$srcpwd |
252b5132 | 2749 | |
a0da8069 | 2750 | extra_host_args= |
afefada0 | 2751 | |
a0da8069 NN |
2752 | ### To add a new directory to the tree, first choose whether it is a target |
2753 | ### or a host dependent tool. Then put it into the appropriate list | |
2754 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2755 | |
c6b750e1 | 2756 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2757 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2758 | |
c6b750e1 DJ |
2759 | # Dependency sorting is only needed when *configuration* must be done in |
2760 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2761 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2762 | |
a0da8069 NN |
2763 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2764 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2765 | |
6a9cf61e PB |
2766 | # these library is used by various programs built for the build |
2767 | # environment | |
2768 | # | |
1b6c0831 | 2769 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2770 | |
2771 | # these tools are built for the build environment | |
a90ef4bf | 2772 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2773 | |
a0da8069 | 2774 | # these libraries are used by various programs built for the host environment |
1b6c0831 | 2775 | #f |
0e65dfba | 2776 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
a0da8069 | 2777 | |
a0da8069 NN |
2778 | # these tools are built for the host environment |
2779 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2780 | # know that we are building the simulator. | |
2781 | # binutils, gas and ld appear in that order because it makes sense to run | |
2782 | # "make check" in that particular order. | |
e6de499b | 2783 | # If --enable-gold is used, "gold" may replace "ld". |
919adfe8 | 2784 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
a0da8069 | 2785 | |
a0da8069 NN |
2786 | # these libraries are built for the target environment, and are built after |
2787 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2788 | # Note that libiberty is not a target library. |
b1299c4e | 2789 | target_libraries="target-libgcc \ |
2bf680c4 | 2790 | target-libbacktrace \ |
a0da8069 NN |
2791 | target-libgloss \ |
2792 | target-newlib \ | |
cff87f51 | 2793 | target-libgomp \ |
1b6c0831 | 2794 | target-liboffloadmic \ |
bf41f30d | 2795 | target-libhsail-rt \ |
7ec59b9e | 2796 | target-libatomic \ |
d32e2926 | 2797 | target-libitm \ |
b9459e83 | 2798 | target-libstdc++-v3 \ |
5286fdef | 2799 | target-libsanitizer \ |
95e43135 | 2800 | target-libvtv \ |
bb780410 | 2801 | target-libssp \ |
e552509b | 2802 | target-libquadmath \ |
4b1cb4fe | 2803 | target-libgfortran \ |
05a13254 | 2804 | target-libffi \ |
a2592b1b | 2805 | target-libobjc \ |
e552509b | 2806 | target-libada \ |
e3f56a99 | 2807 | target-libgo" |
a0da8069 | 2808 | |
9c14acb8 NN |
2809 | # these tools are built using the target libraries, and are intended to |
2810 | # run only in the target environment | |
a0da8069 | 2811 | # |
9c14acb8 | 2812 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2813 | # list belongs in this list. |
a0da8069 | 2814 | # |
a90ef4bf | 2815 | target_tools="target-rda" |
252b5132 | 2816 | |
a0da8069 | 2817 | ################################################################################ |
252b5132 | 2818 | |
a0da8069 NN |
2819 | ## All tools belong in one of the four categories, and are assigned above |
2820 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2821 | ## is important because configure will choke if they ever get through. | |
2822 | ## ${configdirs} is directories we build using the host tools. | |
2823 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2824 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2825 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2826 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2827 | |
9cc8ae67 PB |
2828 | |
2829 | ||
a0da8069 | 2830 | ################################################################################ |
252b5132 | 2831 | |
a0da8069 | 2832 | srcname="gnu development package" |
252b5132 | 2833 | |
a0da8069 NN |
2834 | # This gets set non-empty for some net releases of packages. |
2835 | appdirs="" | |
252b5132 | 2836 | |
a0da8069 NN |
2837 | # Define is_cross_compiler to save on calls to 'test'. |
2838 | is_cross_compiler= | |
2839 | if test x"${host}" = x"${target}" ; then | |
2840 | is_cross_compiler=no | |
252b5132 | 2841 | else |
a0da8069 | 2842 | is_cross_compiler=yes |
c6b750e1 | 2843 | fi |
252b5132 | 2844 | |
9175bfc0 | 2845 | # Find the build and target subdir names. |
dd12c3a8 | 2846 | |
66a79c16 DJ |
2847 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2848 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2849 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2850 | # However, they still use the build modules, because the corresponding | |
2851 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2852 | # finishes. So: | |
2853 | # - build_subdir is where we find build modules, and never changes. | |
2854 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2855 | ||
2856 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2857 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2858 | |
81ecdfbb RW |
2859 | # Check whether --with-build-libsubdir was given. |
2860 | if test "${with_build_libsubdir+set}" = set; then : | |
2861 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2862 | else |
2863 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2864 | fi |
2865 | ||
b00612cc PB |
2866 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2867 | if ( test $srcdir = . && test -d gcc ) \ | |
2868 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2869 | host_subdir="host-${host_noncanonical}" | |
2870 | else | |
2871 | host_subdir=. | |
2872 | fi | |
dd12c3a8 NN |
2873 | # No prefix. |
2874 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2875 | |
2fd0b40b RW |
2876 | # Be sure to cover against remnants of an in-tree build. |
2877 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
d0ac1c44 | 2878 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
2fd0b40b RW |
2879 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2880 | fi | |
252b5132 | 2881 | |
a0da8069 NN |
2882 | # Skipdirs are removed silently. |
2883 | skipdirs= | |
2884 | # Noconfigdirs are removed loudly. | |
2885 | noconfigdirs="" | |
252b5132 | 2886 | |
a0da8069 NN |
2887 | use_gnu_ld= |
2888 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2889 | if test x$with_gnu_ld = xno ; then | |
2890 | use_gnu_ld=no | |
93f9b408 | 2891 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2892 | fi |
2893 | ||
a0da8069 NN |
2894 | use_gnu_as= |
2895 | # Make sure we don't let GNU as be added if we didn't want it. | |
2896 | if test x$with_gnu_as = xno ; then | |
2897 | use_gnu_as=no | |
2898 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2899 | fi |
2900 | ||
700d40ca | 2901 | use_included_zlib= |
cf39cfc5 L |
2902 | |
2903 | # Check whether --with-system-zlib was given. | |
2904 | if test "${with_system_zlib+set}" = set; then : | |
2905 | withval=$with_system_zlib; | |
2906 | fi | |
2907 | ||
700d40ca ILT |
2908 | # Make sure we don't let ZLIB be added if we didn't want it. |
2909 | if test x$with_system_zlib = xyes ; then | |
2910 | use_included_zlib=no | |
2911 | noconfigdirs="$noconfigdirs zlib" | |
2912 | fi | |
2913 | ||
69961a84 ДП |
2914 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2915 | # is provided. | |
2916 | if test x$with_system_readline = xyes ; then | |
2917 | noconfigdirs="$noconfigdirs readline" | |
2918 | fi | |
2919 | ||
c6b750e1 | 2920 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2921 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2922 | |
a0da8069 NN |
2923 | case ${with_x} in |
2924 | yes | "") ;; # the default value for this tree is that X11 is available | |
2925 | no) | |
675c6968 | 2926 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2927 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2928 | enable_gdbtk=no |
a0da8069 NN |
2929 | ;; |
2930 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2931 | esac | |
252b5132 | 2932 | |
0377a422 | 2933 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2934 | # Remove these if host=target. |
2935 | cross_only="target-libgloss target-newlib target-opcodes" | |
2936 | ||
2937 | case $is_cross_compiler in | |
2938 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2939 | esac |
252b5132 | 2940 | |
a0da8069 NN |
2941 | # If both --with-headers and --with-libs are specified, default to |
2942 | # --without-newlib. | |
32be62b5 RS |
2943 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2944 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2945 | if test x"${with_newlib}" = x ; then |
2946 | with_newlib=no | |
2947 | fi | |
252b5132 RH |
2948 | fi |
2949 | ||
a0da8069 NN |
2950 | # Recognize --with-newlib/--without-newlib. |
2951 | case ${with_newlib} in | |
2952 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2953 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2954 | esac | |
252b5132 | 2955 | |
1b6c0831 L |
2956 | # Check whether --enable-as-accelerator-for was given. |
2957 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2958 | enableval=$enable_as_accelerator_for; | |
2959 | fi | |
2960 | ||
2961 | ||
2962 | # Check whether --enable-offload-targets was given. | |
2963 | if test "${enable_offload_targets+set}" = set; then : | |
2964 | enableval=$enable_offload_targets; | |
2965 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 2966 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
2967 | fi |
2968 | ||
2969 | else | |
2970 | enable_offload_targets= | |
2971 | fi | |
2972 | ||
2973 | ||
c7791212 NC |
2974 | # Handle --enable-gold, --enable-ld. |
2975 | # --disable-gold [--enable-ld] | |
2976 | # Build only ld. Default option. | |
d3b50760 L |
2977 | # --enable-gold [--enable-ld] |
2978 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2979 | # as "ld.bfd" and "ld". | |
2980 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2981 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2982 | # install ld as "ld.bfd". | |
2983 | # --enable-gold[=default] --disable-ld | |
2984 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2985 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2986 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2987 | # and ld.bfd). | |
c7791212 NC |
2988 | # In other words, ld is default |
2989 | # --enable-gold=default --enable-ld=default | |
2990 | # Error. | |
2991 | ||
2992 | default_ld= | |
81ecdfbb RW |
2993 | # Check whether --enable-gold was given. |
2994 | if test "${enable_gold+set}" = set; then : | |
2995 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2996 | else |
2997 | ENABLE_GOLD=no | |
81ecdfbb RW |
2998 | fi |
2999 | ||
c7791212 NC |
3000 | case "${ENABLE_GOLD}" in |
3001 | yes|default) | |
e6de499b NC |
3002 | # Check for ELF target. |
3003 | is_elf=no | |
3004 | case "${target}" in | |
3005 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 3006 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 3007 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
bf41f30d | 3008 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
3009 | case "${target}" in |
3010 | *-*-linux*aout* | *-*-linux*oldld*) | |
3011 | ;; | |
3012 | *) | |
3013 | is_elf=yes | |
3014 | ;; | |
3015 | esac | |
3016 | esac | |
3017 | ||
3018 | if test "$is_elf" = "yes"; then | |
3019 | # Check for target supported by gold. | |
93f9b408 | 3020 | case "${target}" in |
6d26190c | 3021 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 3022 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
3023 | configdirs="$configdirs gold" |
3024 | if test x${ENABLE_GOLD} = xdefault; then | |
3025 | default_ld=gold | |
3026 | fi | |
e6de499b | 3027 | ENABLE_GOLD=yes |
93f9b408 ILT |
3028 | ;; |
3029 | esac | |
e6de499b NC |
3030 | fi |
3031 | ;; | |
3032 | no) | |
3033 | ;; | |
3034 | *) | |
d0ac1c44 | 3035 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3036 | ;; |
c7791212 NC |
3037 | esac |
3038 | ||
3039 | # Check whether --enable-ld was given. | |
3040 | if test "${enable_ld+set}" = set; then : | |
3041 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3042 | else | |
3043 | ENABLE_LD=yes | |
3044 | fi | |
3045 | ||
3046 | ||
3047 | case "${ENABLE_LD}" in | |
3048 | default) | |
d3b50760 | 3049 | if test x${default_ld} != x; then |
d0ac1c44 | 3050 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3051 | fi |
3052 | ;; | |
3053 | yes) | |
3054 | ;; | |
3055 | no) | |
3056 | if test x${ENABLE_GOLD} != xyes; then | |
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3058 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3059 | fi | |
3060 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3061 | ;; | |
3062 | *) | |
d0ac1c44 | 3063 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3064 | ;; |
3065 | esac | |
93f9b408 | 3066 | |
edeefb67 L |
3067 | # PR gas/19109 |
3068 | # Decide the default method for compressing debug sections. | |
3069 | # Provide a configure time option to override our default. | |
3070 | # Check whether --enable-compressed_debug_sections was given. | |
3071 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3072 | enableval=$enable_compressed_debug_sections; | |
3073 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3074 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3075 | fi |
3076 | ||
3077 | else | |
3078 | enable_compressed_debug_sections= | |
3079 | fi | |
3080 | ||
3081 | ||
a0da8069 | 3082 | # Configure extra directories which are host specific |
252b5132 | 3083 | |
a0da8069 NN |
3084 | case "${host}" in |
3085 | *-cygwin*) | |
3086 | configdirs="$configdirs libtermcap" ;; | |
3087 | esac | |
252b5132 | 3088 | |
59f7ec45 HPN |
3089 | # A target can indicate whether a language isn't supported for some reason. |
3090 | # Only spaces may be used in this macro; not newlines or tabs. | |
3091 | unsupported_languages= | |
3092 | ||
c6b750e1 | 3093 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3094 | # target this usually means that a port of the program doesn't |
3095 | # exist yet. | |
252b5132 | 3096 | |
a0da8069 | 3097 | case "${host}" in |
3516a403 | 3098 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3099 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3100 | ;; |
a0da8069 | 3101 | esac |
252b5132 | 3102 | |
4b1cb4fe | 3103 | |
89a1e9c3 PB |
3104 | # Check whether --enable-libquadmath was given. |
3105 | if test "${enable_libquadmath+set}" = set; then : | |
3106 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3107 | else | |
3108 | ENABLE_LIBQUADMATH=yes | |
3109 | fi | |
3110 | ||
3111 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3112 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3113 | fi | |
3114 | ||
3115 | ||
3116 | # Check whether --enable-libquadmath-support was given. | |
3117 | if test "${enable_libquadmath_support+set}" = set; then : | |
3118 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3119 | else | |
3120 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3121 | fi | |
3122 | ||
3123 | enable_libquadmath_support= | |
3124 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3125 | enable_libquadmath_support=no | |
3126 | fi | |
3127 | ||
3128 | ||
81ecdfbb RW |
3129 | # Check whether --enable-libada was given. |
3130 | if test "${enable_libada+set}" = set; then : | |
3131 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3132 | else |
3133 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3134 | fi |
3135 | ||
a2592b1b | 3136 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3137 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3138 | fi |
3139 | ||
81ecdfbb RW |
3140 | # Check whether --enable-libssp was given. |
3141 | if test "${enable_libssp+set}" = set; then : | |
3142 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3143 | else |
3144 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3145 | fi |
3146 | ||
5f128533 | 3147 | |
f66a9a70 L |
3148 | # Check whether --enable-libstdcxx was given. |
3149 | if test "${enable_libstdcxx+set}" = set; then : | |
3150 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3151 | else | |
3152 | ENABLE_LIBSTDCXX=default | |
3153 | fi | |
3154 | ||
3155 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3156 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3157 | fi | |
3158 | ||
3159 | # If this is accelerator compiler and its target is intelmic we enable | |
3160 | # target liboffloadmic by default. If this is compiler with offloading | |
3161 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3162 | # liboffloadmic is disabled by default. | |
3163 | # Check whether --enable-liboffloadmic was given. | |
3164 | if test "${enable_liboffloadmic+set}" = set; then : | |
3165 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3166 | no | host | target) | |
3167 | enable_liboffloadmic=$enableval ;; | |
3168 | *) | |
d0ac1c44 | 3169 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3170 | esac |
3171 | else | |
3172 | if test x"$enable_as_accelerator_for" != x; then | |
3173 | case "${target}" in | |
3174 | *-intelmic-* | *-intelmicemul-*) | |
3175 | enable_liboffloadmic=target | |
3176 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3177 | ;; | |
3178 | *) | |
3179 | enable_liboffloadmic=no | |
3180 | ;; | |
3181 | esac | |
3182 | else | |
3183 | case "${enable_offload_targets}" in | |
3184 | *-intelmic-* | *-intelmicemul-*) | |
3185 | enable_liboffloadmic=host | |
3186 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3187 | ;; | |
3188 | *) | |
3189 | enable_liboffloadmic=no | |
3190 | ;; | |
3191 | esac | |
3192 | fi | |
f66a9a70 L |
3193 | fi |
3194 | ||
1b6c0831 L |
3195 | |
3196 | ||
68996839 | 3197 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3198 | if test x$enable_libgomp = x ; then |
b3ded179 | 3199 | case "${target}" in |
29383458 | 3200 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3201 | ;; |
5b806d27 | 3202 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3203 | ;; |
2479f722 | 3204 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3205 | ;; |
3206 | *-*-darwin* | *-*-aix*) | |
3207 | ;; | |
68996839 NC |
3208 | nvptx*-*-*) |
3209 | ;; | |
b3ded179 PB |
3210 | *) |
3211 | noconfigdirs="$noconfigdirs target-libgomp" | |
3212 | ;; | |
3213 | esac | |
a6df5a19 | 3214 | fi |
b3ded179 | 3215 | |
7ec59b9e L |
3216 | # Disable libatomic on unsupported systems. |
3217 | if test -d ${srcdir}/libatomic; then | |
3218 | if test x$enable_libatomic = x; then | |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3220 | $as_echo_n "checking for libatomic support... " >&6; } | |
3221 | if (srcdir=${srcdir}/libatomic; \ | |
3222 | . ${srcdir}/configure.tgt; \ | |
3223 | test -n "$UNSUPPORTED") | |
3224 | then | |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3226 | $as_echo "no" >&6; } | |
3227 | noconfigdirs="$noconfigdirs target-libatomic" | |
3228 | else | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3230 | $as_echo "yes" >&6; } | |
3231 | fi | |
3232 | fi | |
3233 | fi | |
3234 | ||
1b6c0831 L |
3235 | # Disable liboffloadmic on unsupported systems. |
3236 | if test -d ${srcdir}/liboffloadmic; then | |
3237 | if test x$enable_liboffloadmic != xno; then | |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3239 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3240 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3241 | . ${srcdir}/configure.tgt; \ | |
3242 | test -n "$UNSUPPORTED") | |
3243 | then | |
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3245 | $as_echo "no" >&6; } | |
3246 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3247 | else | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3249 | $as_echo "yes" >&6; } | |
3250 | fi | |
3251 | fi | |
3252 | fi | |
3253 | ||
d32e2926 RH |
3254 | # Disable libitm on unsupported systems. |
3255 | if test -d ${srcdir}/libitm; then | |
3256 | if test x$enable_libitm = x; then | |
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3258 | $as_echo_n "checking for libitm support... " >&6; } | |
3259 | if (srcdir=${srcdir}/libitm; \ | |
3260 | . ${srcdir}/configure.tgt; \ | |
3261 | test -n "$UNSUPPORTED") | |
3262 | then | |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3264 | $as_echo "no" >&6; } | |
3265 | noconfigdirs="$noconfigdirs target-libitm" | |
3266 | else | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3268 | $as_echo "yes" >&6; } | |
3269 | fi | |
3270 | fi | |
3271 | fi | |
3272 | ||
5286fdef L |
3273 | # Disable libsanitizer on unsupported systems. |
3274 | if test -d ${srcdir}/libsanitizer; then | |
3275 | if test x$enable_libsanitizer = x; then | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3277 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3278 | if (srcdir=${srcdir}/libsanitizer; \ | |
3279 | . ${srcdir}/configure.tgt; \ | |
3280 | test -n "$UNSUPPORTED") | |
3281 | then | |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3283 | $as_echo "no" >&6; } | |
3284 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3285 | else | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3287 | $as_echo "yes" >&6; } | |
3288 | fi | |
3289 | fi | |
3290 | fi | |
3291 | ||
95e43135 JBG |
3292 | # Disable libvtv on unsupported systems. |
3293 | if test -d ${srcdir}/libvtv; then | |
3294 | if test x$enable_libvtv = x; then | |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3296 | $as_echo_n "checking for libvtv support... " >&6; } | |
3297 | if (srcdir=${srcdir}/libvtv; \ | |
3298 | . ${srcdir}/configure.tgt; \ | |
3299 | test "$VTV_SUPPORTED" != "yes") | |
3300 | then | |
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3302 | $as_echo "no" >&6; } | |
3303 | noconfigdirs="$noconfigdirs target-libvtv" | |
3304 | else | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3306 | $as_echo "yes" >&6; } | |
3307 | fi | |
3308 | fi | |
3309 | fi | |
3310 | ||
1b6c0831 | 3311 | |
bf41f30d NC |
3312 | # Disable libhsail-rt on unsupported systems. |
3313 | if test -d ${srcdir}/libhsail-rt; then | |
3314 | if test x$enable_libhsail_rt = x; then | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3316 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3317 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3318 | . ${srcdir}/configure.tgt; \ | |
3319 | test -n "$UNSUPPORTED") | |
3320 | then | |
3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3322 | $as_echo "no" >&6; } | |
3323 | unsupported_languages="$unsupported_languages brig" | |
3324 | # This implicitly disables also target-libhsail-rt as it won't | |
3325 | # get added to the build without BRIG FE. | |
3326 | else | |
3327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3328 | $as_echo "yes" >&6; } | |
3329 | fi | |
3330 | fi | |
3331 | fi | |
1b6c0831 L |
3332 | |
3333 | ||
1488e230 DE |
3334 | # Disable libquadmath for some systems. |
3335 | case "${target}" in | |
5286fdef L |
3336 | avr-*-*) |
3337 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3338 | ;; | |
1488e230 DE |
3339 | # libquadmath is unused on AIX and libquadmath build process use of |
3340 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3341 | powerpc-*-aix* | rs6000-*-aix*) | |
3342 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3343 | ;; | |
3344 | esac | |
3345 | ||
065a5627 JM |
3346 | # Disable libssp for some systems. |
3347 | case "${target}" in | |
3348 | avr-*-*) | |
c5f5c3c2 | 3349 | # No hosted I/O support. |
065a5627 JM |
3350 | noconfigdirs="$noconfigdirs target-libssp" |
3351 | ;; | |
3352 | powerpc-*-aix* | rs6000-*-aix*) | |
3353 | noconfigdirs="$noconfigdirs target-libssp" | |
3354 | ;; | |
99c513f6 | 3355 | rl78-*-*) |
202e2356 NC |
3356 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3357 | # doesn't fault for those - instead, it gives a build-time error | |
3358 | # for explicit misaligned loads. | |
99c513f6 DD |
3359 | noconfigdirs="$noconfigdirs target-libssp" |
3360 | ;; | |
1b6c0831 L |
3361 | visium-*-*) |
3362 | # No hosted I/O support. | |
3363 | noconfigdirs="$noconfigdirs target-libssp" | |
3364 | ;; | |
065a5627 JM |
3365 | esac |
3366 | ||
065a5627 | 3367 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3368 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3369 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3370 | case "${target}" in | |
3371 | *-*-vxworks*) | |
3372 | # VxWorks uses the Dinkumware C++ library. | |
3373 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3374 | ;; | |
3375 | arm*-wince-pe*) | |
3376 | # the C++ libraries don't build on top of CE's C libraries | |
3377 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3378 | ;; | |
3379 | avr-*-*) | |
3380 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3381 | ;; | |
969b1713 L |
3382 | ft32-*-*) |
3383 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3384 | ;; | |
f66a9a70 L |
3385 | esac |
3386 | fi | |
065a5627 JM |
3387 | |
3388 | # Disable Fortran for some systems. | |
3389 | case "${target}" in | |
3390 | mmix-*-*) | |
3391 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3392 | unsupported_languages="$unsupported_languages fortran" | |
3393 | ;; | |
3394 | esac | |
3395 | ||
05a13254 | 3396 | # Disable libffi for some systems. |
0827f9a6 | 3397 | case "${target}" in |
9863d716 JM |
3398 | powerpc-*-darwin*) |
3399 | ;; | |
3400 | i[3456789]86-*-darwin*) | |
3401 | ;; | |
3402 | x86_64-*-darwin[912]*) | |
3403 | ;; | |
3404 | *-*-darwin*) | |
05a13254 | 3405 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3406 | ;; |
9863d716 | 3407 | *-*-netware*) |
05a13254 NC |
3408 | noconfigdirs="$noconfigdirs target-libffi" |
3409 | ;; | |
3410 | *-*-phoenix*) | |
3411 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3412 | ;; |
3413 | *-*-rtems*) | |
05a13254 | 3414 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3415 | ;; |
3416 | *-*-tpf*) | |
05a13254 | 3417 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3418 | ;; |
3419 | *-*-uclinux*) | |
05a13254 | 3420 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3421 | ;; |
3422 | *-*-vxworks*) | |
05a13254 NC |
3423 | noconfigdirs="$noconfigdirs target-libffi" |
3424 | ;; | |
3425 | aarch64*-*-freebsd*) | |
3426 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3427 | ;; |
9863d716 | 3428 | alpha*-*-*vms*) |
05a13254 | 3429 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3430 | ;; |
1b6c0831 | 3431 | arm*-*-freebsd*) |
05a13254 | 3432 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3433 | ;; |
0827f9a6 | 3434 | arm-wince-pe) |
05a13254 | 3435 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3436 | ;; |
9863d716 | 3437 | arm*-*-symbianelf*) |
05a13254 | 3438 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3439 | ;; |
9863d716 | 3440 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3441 | case "${target}" in |
3442 | *-*-linux*) | |
3443 | ;; | |
3444 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3445 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3446 | esac |
3447 | ;; | |
82ae827f | 3448 | hppa*64*-*-hpux*) |
05a13254 | 3449 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3450 | ;; |
3451 | hppa*-hp-hpux11*) | |
3452 | ;; | |
82ae827f | 3453 | hppa*-*-hpux*) |
05a13254 | 3454 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3455 | ;; |
9863d716 | 3456 | ia64*-*-*vms*) |
05a13254 | 3457 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3458 | ;; |
9863d716 | 3459 | i[3456789]86-w64-mingw*) |
05a13254 | 3460 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3461 | ;; |
3462 | i[3456789]86-*-mingw*) | |
05a13254 | 3463 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3464 | ;; |
3465 | x86_64-*-mingw*) | |
05a13254 | 3466 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3467 | ;; |
9863d716 | 3468 | mmix-*-*) |
05a13254 | 3469 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3470 | ;; |
3471 | powerpc-*-aix*) | |
9863d716 | 3472 | ;; |
9863d716 | 3473 | rs6000-*-aix*) |
9863d716 | 3474 | ;; |
3f8107ab | 3475 | ft32-*-*) |
05a13254 | 3476 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3477 | ;; |
9863d716 | 3478 | *-*-lynxos*) |
05a13254 | 3479 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3480 | ;; |
9863d716 JM |
3481 | esac |
3482 | ||
1b6c0831 L |
3483 | # Disable the go frontend on systems where it is known to not work. Please keep |
3484 | # this in sync with contrib/config-list.mk. | |
3485 | case "${target}" in | |
bf41f30d | 3486 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
1b6c0831 L |
3487 | unsupported_languages="$unsupported_languages go" |
3488 | ;; | |
3489 | esac | |
3490 | ||
919adfe8 TT |
3491 | # Only allow gdbserver on some systems. |
3492 | if test -d ${srcdir}/gdbserver; then | |
3493 | if test x$enable_gdbserver = x; then | |
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3495 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3496 | if (srcdir=${srcdir}/gdbserver; \ | |
3497 | . ${srcdir}/configure.srv; \ | |
3498 | test -n "$UNSUPPORTED") | |
3499 | then | |
3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3501 | $as_echo "no" >&6; } | |
3502 | noconfigdirs="$noconfigdirs gdbserver" | |
3503 | else | |
3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3505 | $as_echo "yes" >&6; } | |
3506 | fi | |
3507 | fi | |
3508 | fi | |
3509 | ||
a413f71a ILT |
3510 | # Disable libgo for some systems where it is known to not work. |
3511 | # For testing, you can easily override this with --enable-libgo. | |
3512 | if test x$enable_libgo = x; then | |
3513 | case "${target}" in | |
3514 | *-*-darwin*) | |
3515 | # PR 46986 | |
3516 | noconfigdirs="$noconfigdirs target-libgo" | |
3517 | ;; | |
3518 | *-*-cygwin* | *-*-mingw*) | |
3519 | noconfigdirs="$noconfigdirs target-libgo" | |
3520 | ;; | |
a413f71a ILT |
3521 | esac |
3522 | fi | |
3523 | ||
691bb5a1 DD |
3524 | # Default libgloss CPU subdirectory. |
3525 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3526 | |
ff46fb8f JM |
3527 | case "${target}" in |
3528 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3529 | libgloss_dir=wince | |
3530 | ;; | |
f1dd87fc YZ |
3531 | aarch64*-*-* ) |
3532 | libgloss_dir=aarch64 | |
3533 | ;; | |
ff46fb8f JM |
3534 | arm*-*-*) |
3535 | libgloss_dir=arm | |
3536 | ;; | |
3537 | cris-*-* | crisv32-*-*) | |
3538 | libgloss_dir=cris | |
3539 | ;; | |
3540 | hppa*-*-*) | |
3541 | libgloss_dir=pa | |
3542 | ;; | |
3543 | i[3456789]86-*-*) | |
3544 | libgloss_dir=i386 | |
3545 | ;; | |
3546 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3547 | libgloss_dir=m68hc11 | |
3548 | ;; | |
3549 | m68*-*-* | fido-*-*) | |
3550 | libgloss_dir=m68k | |
3551 | ;; | |
3552 | mips*-*-*) | |
3553 | libgloss_dir=mips | |
3554 | ;; | |
3555 | powerpc*-*-*) | |
3556 | libgloss_dir=rs6000 | |
3557 | ;; | |
3558 | sparc*-*-*) | |
3559 | libgloss_dir=sparc | |
3560 | ;; | |
3561 | esac | |
3562 | ||
c7e4b184 | 3563 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3564 | case "${target}" in |
c7e4b184 JM |
3565 | alpha*-dec-osf*) |
3566 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3567 | ;; | |
3568 | i[3456789]86-*-linux*) | |
3569 | # This section makes it possible to build newlib natively on linux. | |
3570 | # If we are using a cross compiler then don't configure newlib. | |
3571 | if test x${is_cross_compiler} != xno ; then | |
3572 | noconfigdirs="$noconfigdirs target-newlib" | |
3573 | fi | |
3574 | noconfigdirs="$noconfigdirs target-libgloss" | |
3575 | # If we are not using a cross compiler, do configure newlib. | |
3576 | # Note however, that newlib will only be configured in this situation | |
3577 | # if the --with-newlib option has been given, because otherwise | |
3578 | # 'target-newlib' will appear in skipdirs. | |
3579 | ;; | |
3580 | i[3456789]86-*-rdos*) | |
3581 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3582 | ;; | |
3583 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3584 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3585 | ;; | |
3586 | sparc-*-sunos4*) | |
3587 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3588 | ;; | |
3589 | *-*-aix*) | |
3590 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3591 | ;; | |
3592 | *-*-beos*) | |
3593 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3594 | ;; | |
a0da8069 | 3595 | *-*-chorusos) |
b2f14e4a | 3596 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3597 | ;; |
c7e4b184 JM |
3598 | *-*-dragonfly*) |
3599 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3600 | ;; | |
3601 | *-*-freebsd*) | |
3602 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3603 | ;; | |
3604 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3605 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3606 | ;; | |
3607 | *-*-lynxos*) | |
3608 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3609 | ;; | |
3610 | *-*-mingw*) | |
3611 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3612 | ;; | |
3613 | *-*-netbsd*) | |
3614 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3615 | ;; | |
3616 | *-*-netware*) | |
3617 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3618 | ;; | |
3619 | *-*-tpf*) | |
3620 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3621 | ;; | |
3622 | *-*-uclinux*) | |
3623 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3624 | ;; | |
3625 | *-*-vxworks*) | |
3626 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3627 | ;; | |
3628 | esac | |
3629 | ||
3630 | case "${target}" in | |
3631 | *-*-chorusos) | |
3632 | ;; | |
f075eb5e TG |
3633 | aarch64-*-darwin*) |
3634 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3635 | noconfigdirs="$noconfigdirs sim target-rda" | |
3636 | ;; | |
3637 | arm-*-darwin*) | |
3638 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3639 | noconfigdirs="$noconfigdirs sim target-rda" | |
3640 | ;; | |
24741ab2 | 3641 | powerpc-*-darwin*) |
9d39db92 | 3642 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3643 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3644 | ;; |
85bd1942 TG |
3645 | i[3456789]86-*-darwin*) |
3646 | noconfigdirs="$noconfigdirs ld gprof" | |
3647 | noconfigdirs="$noconfigdirs sim target-rda" | |
3648 | ;; | |
e8a5fa9c | 3649 | x86_64-*-darwin[912]*) |
652dec25 TG |
3650 | noconfigdirs="$noconfigdirs ld gas gprof" |
3651 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3652 | ;; |
04d1ab34 | 3653 | *-*-darwin*) |
d320aacb | 3654 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3655 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3656 | ;; |
5b806d27 | 3657 | *-*-dragonfly*) |
5b806d27 | 3658 | ;; |
de0b4a87 | 3659 | *-*-freebsd*) |
4b1cb4fe DD |
3660 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3661 | && test -f /usr/local/include/gmp.h; then | |
3662 | with_gmp=/usr/local | |
3663 | fi | |
4b1cb4fe | 3664 | ;; |
f8a495c8 NC |
3665 | *-*-kaos*) |
3666 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3667 | noconfigdirs="$noconfigdirs target-libgloss" |
3668 | ;; | |
a0da8069 | 3669 | *-*-netbsd*) |
a0da8069 | 3670 | ;; |
2a3124ca | 3671 | *-*-netware*) |
a0da8069 | 3672 | ;; |
05a13254 NC |
3673 | *-*-phoenix*) |
3674 | noconfigdirs="$noconfigdirs target-libgloss" | |
3675 | ;; | |
a0da8069 | 3676 | *-*-rtems*) |
9863d716 | 3677 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3678 | ;; |
1587117a EC |
3679 | # The tpf target doesn't support gdb yet. |
3680 | *-*-tpf*) | |
c7e4b184 | 3681 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3682 | ;; |
c1968181 | 3683 | *-*-uclinux*) |
c7e4b184 | 3684 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3685 | ;; |
a0da8069 | 3686 | *-*-vxworks*) |
a0da8069 NN |
3687 | ;; |
3688 | alpha*-dec-osf*) | |
3689 | # ld works, but does not support shared libraries. | |
a0da8069 | 3690 | # gas doesn't generate exception information. |
c7e4b184 | 3691 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3692 | ;; |
3693 | alpha*-*-*vms*) | |
9863d716 | 3694 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3695 | ;; |
a0da8069 NN |
3696 | alpha*-*-*) |
3697 | # newlib is not 64 bit ready | |
9863d716 | 3698 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3699 | ;; |
a0da8069 | 3700 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3701 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3702 | ;; |
05a13254 NC |
3703 | arc*-*-*) |
3704 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3705 | ;; |
a0da8069 | 3706 | arm-*-pe*) |
9863d716 | 3707 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3708 | ;; |
a0da8069 | 3709 | arm-*-riscix*) |
b2f14e4a | 3710 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3711 | ;; |
8e71395b L |
3712 | avr-*-*) |
3713 | if test x${with_avrlibc} != xno; then | |
3714 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3715 | fi | |
3716 | ;; | |
a0da8069 | 3717 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3718 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3719 | ;; |
b2f14e4a JM |
3720 | tic54x-*-*) |
3721 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3722 | ;; |
a0da8069 | 3723 | d10v-*-*) |
b2f14e4a | 3724 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3725 | ;; |
3726 | d30v-*-*) | |
b2f14e4a | 3727 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3728 | ;; |
3729 | fr30-*-elf*) | |
9863d716 | 3730 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3731 | ;; |
3f8107ab AM |
3732 | ft32-*-*) |
3733 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3734 | ;; | |
20135e4c | 3735 | moxie-*-*) |
10b8fe5e | 3736 | noconfigdirs="$noconfigdirs" |
20135e4c | 3737 | ;; |
a0da8069 | 3738 | h8300*-*-*) |
9863d716 | 3739 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3740 | ;; |
3741 | h8500-*-*) | |
b2f14e4a | 3742 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3743 | ;; |
caeba88f | 3744 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3745 | ;; |
5569a85f JDA |
3746 | hppa*64*-*-hpux*) |
3747 | noconfigdirs="$noconfigdirs gdb" | |
3748 | ;; | |
3749 | hppa*-*-hpux11*) | |
3750 | noconfigdirs="$noconfigdirs gdb ld" | |
3751 | ;; | |
93cc359e | 3752 | hppa*64*-*-linux*) |
a0da8069 | 3753 | ;; |
f0ff0f90 | 3754 | hppa*-*-linux*) |
5dcac624 | 3755 | ;; |
a0da8069 | 3756 | hppa*-*-*elf* | \ |
a0da8069 NN |
3757 | hppa*-*-lites* | \ |
3758 | hppa*-*-openbsd* | \ | |
3759 | hppa*64*-*-*) | |
4f0ef2d8 | 3760 | ;; |
691bb5a1 | 3761 | hppa*-*-pro*) |
691bb5a1 | 3762 | ;; |
a0da8069 | 3763 | hppa*-*-*) |
9863d716 | 3764 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3765 | ;; |
b07c2aad | 3766 | i960-*-*) |
b2f14e4a | 3767 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3768 | ;; |
a0da8069 NN |
3769 | ia64*-*-elf*) |
3770 | # No gdb support yet. | |
0377a422 | 3771 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3772 | ;; |
3773 | ia64*-**-hpux*) | |
92c9a463 | 3774 | # No ld support yet. |
5569a85f | 3775 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3776 | ;; |
19e99079 | 3777 | ia64*-*-*vms*) |
7ec59b9e L |
3778 | # No ld support yet. |
3779 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3780 | ;; |
1f53ca9a | 3781 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3782 | ;; |
3783 | i[3456789]86-*-mingw*) | |
45055374 | 3784 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3785 | ;; |
a0da8069 NN |
3786 | *-*-cygwin*) |
3787 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3788 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3789 | # always build newlib if winsup directory is present. |
45055374 | 3790 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3791 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3792 | elif test -d "$srcdir/newlib"; then |
45055374 | 3793 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3794 | fi |
c6b750e1 | 3795 | ;; |
ec11bdc6 | 3796 | i[3456789]86-*-pe) |
782cb41f | 3797 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3798 | ;; |
ec11bdc6 | 3799 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3800 | # The linker does not yet know about weak symbols in COFF, |
3801 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3802 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3803 | ;; |
ec11bdc6 | 3804 | i[3456789]86-*-sco*) |
b2f14e4a | 3805 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3806 | ;; |
cff32a7c | 3807 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3808 | noconfigdirs="$noconfigdirs target-libgloss" |
3809 | ;; | |
ec11bdc6 | 3810 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3811 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3812 | ;; |
ec11bdc6 | 3813 | i[3456789]86-*-beos*) |
c7e4b184 | 3814 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3815 | ;; |
b59bea8a | 3816 | i[3456789]86-*-rdos*) |
c7e4b184 | 3817 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3818 | ;; |
a0da8069 | 3819 | mmix-*-*) |
9863d716 | 3820 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3821 | ;; |
4970f871 | 3822 | mt-*-*) |
cdb9b172 AH |
3823 | noconfigdirs="$noconfigdirs sim" |
3824 | ;; | |
1063beb5 FT |
3825 | nfp-*-*) |
3826 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3827 | noconfigdirs="$noconfigdirs $target_libraries" | |
3828 | ;; | |
11104e42 SC |
3829 | pdp11-*-*) |
3830 | noconfigdirs="$noconfigdirs gdb gprof" | |
3831 | ;; | |
a0da8069 NN |
3832 | powerpc-*-aix*) |
3833 | # copied from rs6000-*-* entry | |
c7e4b184 | 3834 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3835 | ;; |
93cc359e | 3836 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3837 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3838 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3839 | # always build newlib. |
3840 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3841 | ;; | |
3842 | # This is temporary until we can link against shared libraries | |
3843 | powerpcle-*-solaris*) | |
b2f14e4a | 3844 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3845 | ;; |
3846 | powerpc-*-beos*) | |
c7e4b184 | 3847 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3848 | ;; |
a0da8069 | 3849 | rs6000-*-lynxos*) |
c7e4b184 | 3850 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3851 | ;; |
3852 | rs6000-*-aix*) | |
c7e4b184 | 3853 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3854 | ;; |
3855 | rs6000-*-*) | |
9863d716 | 3856 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3857 | ;; |
3858 | m68k-apollo-*) | |
b2f14e4a | 3859 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3860 | ;; |
25a07265 | 3861 | microblaze*) |
9863d716 | 3862 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3863 | ;; |
a9d58c06 | 3864 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3865 | if test x$with_newlib = xyes; then |
3866 | noconfigdirs="$noconfigdirs gprof" | |
3867 | fi | |
5bd8be13 | 3868 | ;; |
a0da8069 | 3869 | mips*-*-irix5*) |
b2f14e4a | 3870 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3871 | ;; |
3872 | mips*-*-irix6*) | |
9863d716 | 3873 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3874 | ;; |
a0da8069 | 3875 | mips*-*-bsd*) |
e8044f35 | 3876 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3877 | ;; |
a0da8069 | 3878 | mips*-*-linux*) |
a0da8069 | 3879 | ;; |
e8044f35 RS |
3880 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3881 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3882 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3883 | ;; | |
a0da8069 | 3884 | mips*-*-*) |
9863d716 | 3885 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3886 | ;; |
1b6c0831 | 3887 | nvptx*-*-*) |
1b6c0831 L |
3888 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3889 | ;; | |
05a13254 | 3890 | sh-*-*) |
e8a5fa9c RW |
3891 | case "${target}" in |
3892 | sh*-*-elf) | |
9863d716 | 3893 | ;; |
e8a5fa9c | 3894 | *) |
9863d716 | 3895 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3896 | esac |
a0da8069 | 3897 | ;; |
a0da8069 | 3898 | sparc-*-sunos4*) |
c7e4b184 | 3899 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3900 | use_gnu_ld=no |
3901 | fi | |
3902 | ;; | |
619a3713 | 3903 | tic6x-*-*) |
40ae9136 | 3904 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3905 | ;; |
05a13254 | 3906 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3907 | noconfigdirs="$noconfigdirs sim" |
3908 | ;; | |
a0da8069 | 3909 | v810-*-*) |
b2f14e4a | 3910 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3911 | ;; |
3912 | vax-*-*) | |
9863d716 | 3913 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3914 | ;; |
b29d2641 MR |
3915 | wasm32-*-*) |
3916 | noconfigdirs="$noconfigdirs ld" | |
3917 | ;; | |
a0da8069 | 3918 | esac |
252b5132 | 3919 | |
a0da8069 NN |
3920 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3921 | # depends upon some newlib header files. | |
3922 | case "${noconfigdirs}" in | |
3923 | *target-libgloss*) ;; | |
3924 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3925 | esac | |
3926 | ||
a0da8069 | 3927 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3928 | host_makefile_frag=/dev/null |
3929 | if test -d ${srcdir}/config ; then | |
3930 | case "${host}" in | |
ec11bdc6 | 3931 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3932 | host_makefile_frag="config/mh-djgpp" |
3933 | ;; | |
3934 | *-cygwin*) | |
e33b51a6 | 3935 | |
81ecdfbb RW |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3937 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3938 | echo a >cygwin-cat-check |
1f53ca9a | 3939 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3940 | rm cygwin-cat-check |
81ecdfbb RW |
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3942 | $as_echo "yes" >&6; } | |
e33b51a6 | 3943 | else |
8ade07e9 | 3944 | rm cygwin-cat-check |
81ecdfbb RW |
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3946 | $as_echo "no" >&6; } | |
d0ac1c44 | 3947 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
3948 | Please either mount the build directory in binary mode or run the following |
3949 | commands before running any configure script: | |
3950 | set -o igncr | |
3951 | export SHELLOPTS | |
81ecdfbb | 3952 | " "$LINENO" 5 |
e33b51a6 | 3953 | fi |
e33b51a6 | 3954 | |
a0da8069 NN |
3955 | host_makefile_frag="config/mh-cygwin" |
3956 | ;; | |
8a1599ab | 3957 | *-mingw*) |
84e7906e | 3958 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3959 | ;; |
ce6c656d L |
3960 | alpha*-linux*) |
3961 | host_makefile_frag="config/mh-alpha-linux" | |
3962 | ;; | |
da888c87 | 3963 | hppa*-hp-hpux10*) |
da888c87 | 3964 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3965 | ;; |
3516a403 | 3966 | hppa*-hp-hpux*) |
da888c87 PB |
3967 | host_makefile_frag="config/mh-pa" |
3968 | ;; | |
3969 | hppa*-*) | |
3970 | host_makefile_frag="config/mh-pa" | |
3971 | ;; | |
e552509b ILT |
3972 | *-*-darwin*) |
3973 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3974 | ;; |
f6d183c0 PB |
3975 | powerpc-*-aix*) |
3976 | host_makefile_frag="config/mh-ppc-aix" | |
3977 | ;; | |
3978 | rs6000-*-aix*) | |
3979 | host_makefile_frag="config/mh-ppc-aix" | |
3980 | ;; | |
a0da8069 NN |
3981 | esac |
3982 | fi | |
3983 | ||
9e07f89d | 3984 | if test "${build}" != "${host}" ; then |
1576798e PB |
3985 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3986 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3987 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e | 3988 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
1576798e | 3989 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 3990 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3991 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3992 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3993 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3994 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3995 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3996 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3997 | else | |
3998 | AR_FOR_BUILD="\$(AR)" | |
3999 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4000 | CC_FOR_BUILD="\$(CC)" |
1576798e | 4001 | CXX_FOR_BUILD="\$(CXX)" |
1576798e | 4002 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 4003 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
4004 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4005 | LD_FOR_BUILD="\$(LD)" | |
4006 | NM_FOR_BUILD="\$(NM)" | |
4007 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4008 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4009 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4010 | fi |
4011 | ||
4012 | ac_ext=c | |
c6b750e1 DJ |
4013 | ac_cpp='$CPP $CPPFLAGS' |
4014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4017 | if test -n "$ac_tool_prefix"; then | |
4018 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4019 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4021 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4022 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4023 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4024 | else |
4025 | if test -n "$CC"; then | |
4026 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4027 | else | |
4028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4029 | for as_dir in $PATH | |
4030 | do | |
4031 | IFS=$as_save_IFS | |
4032 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4033 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4035 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4037 | break 2 |
4038 | fi | |
4039 | done | |
81ecdfbb RW |
4040 | done |
4041 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4042 | |
4043 | fi | |
4044 | fi | |
4045 | CC=$ac_cv_prog_CC | |
4046 | if test -n "$CC"; then | |
81ecdfbb RW |
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4048 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4049 | else |
81ecdfbb RW |
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4051 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4052 | fi |
4053 | ||
81ecdfbb | 4054 | |
c6b750e1 DJ |
4055 | fi |
4056 | if test -z "$ac_cv_prog_CC"; then | |
4057 | ac_ct_CC=$CC | |
6a9cf61e | 4058 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4059 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4061 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4062 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4063 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4064 | else |
4065 | if test -n "$ac_ct_CC"; then | |
4066 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4067 | else | |
4068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4069 | for as_dir in $PATH | |
4070 | do | |
4071 | IFS=$as_save_IFS | |
4072 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4073 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4075 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4077 | break 2 |
4078 | fi | |
4079 | done | |
81ecdfbb RW |
4080 | done |
4081 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4082 | |
4083 | fi | |
4084 | fi | |
4085 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4086 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4088 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4089 | else |
81ecdfbb RW |
4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4091 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4092 | fi |
4093 | ||
81ecdfbb RW |
4094 | if test "x$ac_ct_CC" = x; then |
4095 | CC="" | |
4096 | else | |
4097 | case $cross_compiling:$ac_tool_warned in | |
4098 | yes:) | |
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4100 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4101 | ac_tool_warned=yes ;; | |
4102 | esac | |
4103 | CC=$ac_ct_CC | |
4104 | fi | |
c6b750e1 DJ |
4105 | else |
4106 | CC="$ac_cv_prog_CC" | |
4107 | fi | |
4108 | ||
4109 | if test -z "$CC"; then | |
81ecdfbb RW |
4110 | if test -n "$ac_tool_prefix"; then |
4111 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4112 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4114 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4115 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4116 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4117 | else |
4118 | if test -n "$CC"; then | |
4119 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4120 | else | |
c6b750e1 DJ |
4121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4122 | for as_dir in $PATH | |
4123 | do | |
4124 | IFS=$as_save_IFS | |
4125 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4126 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4128 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4130 | break 2 |
4131 | fi | |
4132 | done | |
81ecdfbb RW |
4133 | done |
4134 | IFS=$as_save_IFS | |
c6b750e1 | 4135 | |
9e07f89d NN |
4136 | fi |
4137 | fi | |
c6b750e1 | 4138 | CC=$ac_cv_prog_CC |
9e07f89d | 4139 | if test -n "$CC"; then |
81ecdfbb RW |
4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4141 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4142 | else |
81ecdfbb RW |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4144 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4145 | fi |
4146 | ||
c6b750e1 | 4147 | |
81ecdfbb | 4148 | fi |
c6b750e1 | 4149 | fi |
9e07f89d NN |
4150 | if test -z "$CC"; then |
4151 | # Extract the first word of "cc", so it can be a program name with args. | |
4152 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4154 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4155 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4156 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4157 | else |
4158 | if test -n "$CC"; then | |
4159 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4160 | else | |
9e07f89d | 4161 | ac_prog_rejected=no |
c6b750e1 DJ |
4162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4163 | for as_dir in $PATH | |
4164 | do | |
4165 | IFS=$as_save_IFS | |
4166 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4167 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4169 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4170 | ac_prog_rejected=yes | |
4171 | continue | |
4172 | fi | |
4173 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4175 | break 2 |
4176 | fi | |
4177 | done | |
81ecdfbb RW |
4178 | done |
4179 | IFS=$as_save_IFS | |
c6b750e1 | 4180 | |
9e07f89d NN |
4181 | if test $ac_prog_rejected = yes; then |
4182 | # We found a bogon in the path, so make sure we never use it. | |
4183 | set dummy $ac_cv_prog_CC | |
4184 | shift | |
c6b750e1 | 4185 | if test $# != 0; then |
9e07f89d NN |
4186 | # We chose a different compiler from the bogus one. |
4187 | # However, it has the same basename, so the bogon will be chosen | |
4188 | # first if we set CC to just the basename; use the full file name. | |
4189 | shift | |
c6b750e1 | 4190 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4191 | fi |
4192 | fi | |
4193 | fi | |
4194 | fi | |
c6b750e1 | 4195 | CC=$ac_cv_prog_CC |
9e07f89d | 4196 | if test -n "$CC"; then |
81ecdfbb RW |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4198 | $as_echo "$CC" >&6; } | |
9e07f89d | 4199 | else |
81ecdfbb RW |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4201 | $as_echo "no" >&6; } | |
9e07f89d NN |
4202 | fi |
4203 | ||
81ecdfbb | 4204 | |
c6b750e1 DJ |
4205 | fi |
4206 | if test -z "$CC"; then | |
4207 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4208 | for ac_prog in cl.exe |
c6b750e1 DJ |
4209 | do |
4210 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4211 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4213 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4214 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4215 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4216 | else |
4217 | if test -n "$CC"; then | |
4218 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4219 | else | |
c6b750e1 DJ |
4220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4221 | for as_dir in $PATH | |
4222 | do | |
4223 | IFS=$as_save_IFS | |
4224 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4225 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4227 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4229 | break 2 |
376a0e54 | 4230 | fi |
c6b750e1 | 4231 | done |
81ecdfbb RW |
4232 | done |
4233 | IFS=$as_save_IFS | |
cac3d6c4 | 4234 | |
c6b750e1 DJ |
4235 | fi |
4236 | fi | |
4237 | CC=$ac_cv_prog_CC | |
4238 | if test -n "$CC"; then | |
81ecdfbb RW |
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4240 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4241 | else |
81ecdfbb RW |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4243 | $as_echo "no" >&6; } | |
9e07f89d | 4244 | fi |
cac3d6c4 | 4245 | |
81ecdfbb | 4246 | |
c6b750e1 DJ |
4247 | test -n "$CC" && break |
4248 | done | |
cac3d6c4 | 4249 | fi |
c6b750e1 DJ |
4250 | if test -z "$CC"; then |
4251 | ac_ct_CC=$CC | |
81ecdfbb | 4252 | for ac_prog in cl.exe |
c6b750e1 DJ |
4253 | do |
4254 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4255 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4257 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4258 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4259 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4260 | else |
c6b750e1 DJ |
4261 | if test -n "$ac_ct_CC"; then |
4262 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4263 | else |
c6b750e1 DJ |
4264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4265 | for as_dir in $PATH | |
4266 | do | |
4267 | IFS=$as_save_IFS | |
4268 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4269 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4271 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4273 | break 2 |
4274 | fi | |
4275 | done | |
81ecdfbb RW |
4276 | done |
4277 | IFS=$as_save_IFS | |
c6b750e1 | 4278 | |
cac3d6c4 CM |
4279 | fi |
4280 | fi | |
c6b750e1 DJ |
4281 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4282 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4284 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4285 | else |
81ecdfbb RW |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4287 | $as_echo "no" >&6; } | |
cac3d6c4 | 4288 | fi |
376a0e54 | 4289 | |
81ecdfbb | 4290 | |
c6b750e1 DJ |
4291 | test -n "$ac_ct_CC" && break |
4292 | done | |
4293 | ||
81ecdfbb RW |
4294 | if test "x$ac_ct_CC" = x; then |
4295 | CC="" | |
4296 | else | |
4297 | case $cross_compiling:$ac_tool_warned in | |
4298 | yes:) | |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4300 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4301 | ac_tool_warned=yes ;; | |
4302 | esac | |
4303 | CC=$ac_ct_CC | |
4304 | fi | |
c6b750e1 DJ |
4305 | fi |
4306 | ||
4307 | fi | |
4308 | ||
4309 | ||
81ecdfbb RW |
4310 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4311 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4312 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4313 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4314 | |
4315 | # Provide some information about the compiler. | |
81ecdfbb RW |
4316 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4317 | set X $ac_compile | |
4318 | ac_compiler=$2 | |
4319 | for ac_option in --version -v -V -qversion; do | |
4320 | { { ac_try="$ac_compiler $ac_option >&5" | |
4321 | case "(($ac_try" in | |
4322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4323 | *) ac_try_echo=$ac_try;; | |
4324 | esac | |
4325 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4326 | $as_echo "$ac_try_echo"; } >&5 | |
4327 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4328 | ac_status=$? |
81ecdfbb RW |
4329 | if test -s conftest.err; then |
4330 | sed '10a\ | |
4331 | ... rest of stderr output deleted ... | |
4332 | 10q' conftest.err >conftest.er1 | |
4333 | cat conftest.er1 >&5 | |
81ecdfbb | 4334 | fi |
d0ac1c44 | 4335 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4337 | test $ac_status = 0; } | |
4338 | done | |
c6b750e1 | 4339 | |
81ecdfbb | 4340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4341 | /* end confdefs.h. */ |
4342 | ||
4343 | int | |
4344 | main () | |
4345 | { | |
4346 | ||
4347 | ; | |
4348 | return 0; | |
4349 | } | |
4350 | _ACEOF | |
4351 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4352 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4353 | # Try to create an executable without -o first, disregard a.out. |
4354 | # It will help us diagnose broken compilers, and finding out an intuition | |
4355 | # of exeext. | |
d0ac1c44 SM |
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4357 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4358 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4359 | ||
4360 | # The possible output files: | |
4361 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4362 | ||
4363 | ac_rmfiles= | |
4364 | for ac_file in $ac_files | |
4365 | do | |
4366 | case $ac_file in | |
4367 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4368 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4369 | esac | |
4370 | done | |
4371 | rm -f $ac_rmfiles | |
4372 | ||
4373 | if { { ac_try="$ac_link_default" | |
4374 | case "(($ac_try" in | |
4375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4376 | *) ac_try_echo=$ac_try;; | |
4377 | esac | |
4378 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4379 | $as_echo "$ac_try_echo"; } >&5 | |
4380 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4381 | ac_status=$? |
81ecdfbb RW |
4382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4383 | test $ac_status = 0; }; then : | |
4384 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4385 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4386 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4387 | # so that the user can short-circuit this test for compilers unknown to | |
4388 | # Autoconf. | |
4389 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4390 | do |
4391 | test -f "$ac_file" || continue | |
4392 | case $ac_file in | |
81ecdfbb | 4393 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4394 | ;; |
4395 | [ab].out ) | |
4396 | # We found the default executable, but exeext='' is most | |
4397 | # certainly right. | |
4398 | break;; | |
4399 | *.* ) | |
81ecdfbb RW |
4400 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4401 | then :; else | |
4402 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4403 | fi | |
4404 | # We set ac_cv_exeext here because the later test for it is not | |
4405 | # safe: cross compilers may not add the suffix if given an `-o' | |
4406 | # argument, so we may need to know it at that point already. | |
4407 | # Even if this section looks crufty: it has the advantage of | |
4408 | # actually working. | |
c6b750e1 DJ |
4409 | break;; |
4410 | * ) | |
4411 | break;; | |
4412 | esac | |
4413 | done | |
81ecdfbb RW |
4414 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4415 | ||
c6b750e1 | 4416 | else |
81ecdfbb RW |
4417 | ac_file='' |
4418 | fi | |
81ecdfbb | 4419 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4421 | $as_echo "no" >&6; } | |
4422 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4423 | sed 's/^/| /' conftest.$ac_ext >&5 |
4424 | ||
81ecdfbb RW |
4425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4426 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4427 | as_fn_error 77 "C compiler cannot create executables |
4428 | See \`config.log' for more details" "$LINENO" 5; } | |
4429 | else | |
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4431 | $as_echo "yes" >&6; } | |
c6b750e1 | 4432 | fi |
d0ac1c44 SM |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4434 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4436 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4437 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4438 | |
d0ac1c44 | 4439 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4440 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4442 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4443 | if { { ac_try="$ac_link" | |
4444 | case "(($ac_try" in | |
4445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4446 | *) ac_try_echo=$ac_try;; | |
4447 | esac | |
4448 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4449 | $as_echo "$ac_try_echo"; } >&5 | |
4450 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4451 | ac_status=$? |
81ecdfbb RW |
4452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4453 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4454 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4455 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4456 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4457 | # `rm'. | |
4458 | for ac_file in conftest.exe conftest conftest.*; do | |
4459 | test -f "$ac_file" || continue | |
4460 | case $ac_file in | |
81ecdfbb | 4461 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4462 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4463 | break;; |
4464 | * ) break;; | |
4465 | esac | |
4466 | done | |
4467 | else | |
81ecdfbb RW |
4468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4469 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4470 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4471 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4472 | fi |
d0ac1c44 | 4473 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4475 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4476 | |
4477 | rm -f conftest.$ac_ext | |
4478 | EXEEXT=$ac_cv_exeext | |
4479 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4481 | /* end confdefs.h. */ | |
4482 | #include <stdio.h> | |
4483 | int | |
4484 | main () | |
4485 | { | |
4486 | FILE *f = fopen ("conftest.out", "w"); | |
4487 | return ferror (f) || fclose (f) != 0; | |
4488 | ||
4489 | ; | |
4490 | return 0; | |
4491 | } | |
4492 | _ACEOF | |
4493 | ac_clean_files="$ac_clean_files conftest.out" | |
4494 | # Check that the compiler produces executables we can run. If not, either | |
4495 | # the compiler is broken, or we cross compile. | |
4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4497 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4498 | if test "$cross_compiling" != yes; then | |
4499 | { { ac_try="$ac_link" | |
4500 | case "(($ac_try" in | |
4501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4502 | *) ac_try_echo=$ac_try;; | |
4503 | esac | |
4504 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4505 | $as_echo "$ac_try_echo"; } >&5 | |
4506 | (eval "$ac_link") 2>&5 | |
4507 | ac_status=$? | |
4508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4509 | test $ac_status = 0; } | |
4510 | if { ac_try='./conftest$ac_cv_exeext' | |
4511 | { { case "(($ac_try" in | |
4512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4513 | *) ac_try_echo=$ac_try;; | |
4514 | esac | |
4515 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4516 | $as_echo "$ac_try_echo"; } >&5 | |
4517 | (eval "$ac_try") 2>&5 | |
4518 | ac_status=$? | |
4519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4520 | test $ac_status = 0; }; }; then | |
4521 | cross_compiling=no | |
4522 | else | |
4523 | if test "$cross_compiling" = maybe; then | |
4524 | cross_compiling=yes | |
4525 | else | |
4526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4528 | as_fn_error $? "cannot run C compiled programs. | |
4529 | If you meant to cross compile, use \`--host'. | |
4530 | See \`config.log' for more details" "$LINENO" 5; } | |
4531 | fi | |
4532 | fi | |
4533 | fi | |
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4535 | $as_echo "$cross_compiling" >&6; } | |
4536 | ||
4537 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4538 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4540 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4541 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4542 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4543 | else |
81ecdfbb | 4544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4545 | /* end confdefs.h. */ |
4546 | ||
4547 | int | |
4548 | main () | |
4549 | { | |
4550 | ||
4551 | ; | |
4552 | return 0; | |
4553 | } | |
4554 | _ACEOF | |
4555 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4556 | if { { ac_try="$ac_compile" |
4557 | case "(($ac_try" in | |
4558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4559 | *) ac_try_echo=$ac_try;; | |
4560 | esac | |
4561 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4562 | $as_echo "$ac_try_echo"; } >&5 | |
4563 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4564 | ac_status=$? |
81ecdfbb RW |
4565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4566 | test $ac_status = 0; }; then : | |
4567 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4568 | test -f "$ac_file" || continue; | |
c6b750e1 | 4569 | case $ac_file in |
81ecdfbb | 4570 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4571 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4572 | break;; | |
4573 | esac | |
4574 | done | |
cac3d6c4 | 4575 | else |
81ecdfbb | 4576 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4577 | sed 's/^/| /' conftest.$ac_ext >&5 |
4578 | ||
81ecdfbb RW |
4579 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4580 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4581 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4582 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4583 | fi |
c6b750e1 DJ |
4584 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4585 | fi | |
81ecdfbb RW |
4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4587 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4588 | OBJEXT=$ac_cv_objext |
4589 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4591 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4592 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4593 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4594 | else |
81ecdfbb | 4595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4596 | /* end confdefs.h. */ |
4597 | ||
4598 | int | |
4599 | main () | |
4600 | { | |
4601 | #ifndef __GNUC__ | |
4602 | choke me | |
4603 | #endif | |
4604 | ||
4605 | ; | |
4606 | return 0; | |
4607 | } | |
4608 | _ACEOF | |
81ecdfbb | 4609 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4610 | ac_compiler_gnu=yes |
4611 | else | |
81ecdfbb | 4612 | ac_compiler_gnu=no |
c6b750e1 | 4613 | fi |
81ecdfbb | 4614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4615 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4616 | ||
4617 | fi | |
81ecdfbb RW |
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4619 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4620 | if test $ac_compiler_gnu = yes; then | |
4621 | GCC=yes | |
4622 | else | |
4623 | GCC= | |
4624 | fi | |
c6b750e1 DJ |
4625 | ac_test_CFLAGS=${CFLAGS+set} |
4626 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4628 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4629 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4630 | $as_echo_n "(cached) " >&6 |
4631 | else | |
4632 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4633 | ac_c_werror_flag=yes | |
4634 | ac_cv_prog_cc_g=no | |
4635 | CFLAGS="-g" | |
4636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4637 | /* end confdefs.h. */ |
4638 | ||
4639 | int | |
4640 | main () | |
4641 | { | |
4642 | ||
4643 | ; | |
4644 | return 0; | |
4645 | } | |
4646 | _ACEOF | |
81ecdfbb | 4647 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4648 | ac_cv_prog_cc_g=yes |
4649 | else | |
81ecdfbb RW |
4650 | CFLAGS="" |
4651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4652 | /* end confdefs.h. */ | |
4653 | ||
4654 | int | |
4655 | main () | |
4656 | { | |
4657 | ||
4658 | ; | |
4659 | return 0; | |
4660 | } | |
4661 | _ACEOF | |
4662 | if ac_fn_c_try_compile "$LINENO"; then : | |
4663 | ||
4664 | else | |
4665 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4666 | CFLAGS="-g" | |
4667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4668 | /* end confdefs.h. */ | |
cac3d6c4 | 4669 | |
81ecdfbb RW |
4670 | int |
4671 | main () | |
4672 | { | |
4673 | ||
4674 | ; | |
4675 | return 0; | |
4676 | } | |
4677 | _ACEOF | |
4678 | if ac_fn_c_try_compile "$LINENO"; then : | |
4679 | ac_cv_prog_cc_g=yes | |
4680 | fi | |
4681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4682 | fi |
81ecdfbb | 4683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4684 | fi |
81ecdfbb RW |
4685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4686 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4687 | fi | |
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4689 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4690 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4691 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4692 | elif test $ac_cv_prog_cc_g = yes; then |
4693 | if test "$GCC" = yes; then | |
4694 | CFLAGS="-g -O2" | |
4695 | else | |
4696 | CFLAGS="-g" | |
4697 | fi | |
4698 | else | |
4699 | if test "$GCC" = yes; then | |
4700 | CFLAGS="-O2" | |
4701 | else | |
4702 | CFLAGS= | |
4703 | fi | |
4704 | fi | |
81ecdfbb RW |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4706 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4707 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4708 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4709 | else |
81ecdfbb | 4710 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4711 | ac_save_CC=$CC |
81ecdfbb | 4712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4713 | /* end confdefs.h. */ |
4714 | #include <stdarg.h> | |
4715 | #include <stdio.h> | |
d0ac1c44 | 4716 | struct stat; |
c6b750e1 DJ |
4717 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4718 | struct buf { int x; }; | |
4719 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4720 | static char *e (p, i) | |
4721 | char **p; | |
4722 | int i; | |
4723 | { | |
4724 | return p[i]; | |
4725 | } | |
4726 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4727 | { | |
4728 | char *s; | |
4729 | va_list v; | |
4730 | va_start (v,p); | |
4731 | s = g (p, va_arg (v,int)); | |
4732 | va_end (v); | |
4733 | return s; | |
4734 | } | |
4735 | ||
4736 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4737 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4738 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4739 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4740 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4741 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4742 | that's true only with -std. */ |
c6b750e1 DJ |
4743 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4744 | ||
81ecdfbb RW |
4745 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4746 | inside strings and character constants. */ | |
4747 | #define FOO(x) 'x' | |
4748 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4749 | ||
c6b750e1 DJ |
4750 | int test (int i, double x); |
4751 | struct s1 {int (*f) (int a);}; | |
4752 | struct s2 {int (*f) (double a);}; | |
4753 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4754 | int argc; | |
4755 | char **argv; | |
4756 | int | |
4757 | main () | |
4758 | { | |
4759 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4760 | ; | |
4761 | return 0; | |
4762 | } | |
4763 | _ACEOF | |
81ecdfbb RW |
4764 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4765 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4766 | do |
4767 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4768 | if ac_fn_c_try_compile "$LINENO"; then : |
4769 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4770 | fi |
81ecdfbb RW |
4771 | rm -f core conftest.err conftest.$ac_objext |
4772 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4773 | done |
81ecdfbb | 4774 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4775 | CC=$ac_save_CC |
4776 | ||
4777 | fi | |
81ecdfbb RW |
4778 | # AC_CACHE_VAL |
4779 | case "x$ac_cv_prog_cc_c89" in | |
4780 | x) | |
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4782 | $as_echo "none needed" >&6; } ;; | |
4783 | xno) | |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4785 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4786 | *) |
81ecdfbb RW |
4787 | CC="$CC $ac_cv_prog_cc_c89" |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4789 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4790 | esac |
81ecdfbb | 4791 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4792 | |
c6b750e1 DJ |
4793 | fi |
4794 | ||
c6b750e1 DJ |
4795 | ac_ext=c |
4796 | ac_cpp='$CPP $CPPFLAGS' | |
4797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4800 | |
81ecdfbb | 4801 | ac_ext=cpp |
18f6b6ee PB |
4802 | ac_cpp='$CXXCPP $CPPFLAGS' |
4803 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4804 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4805 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4806 | if test -z "$CXX"; then |
4807 | if test -n "$CCC"; then | |
4808 | CXX=$CCC | |
4809 | else | |
4810 | if test -n "$ac_tool_prefix"; then | |
4811 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4812 | do |
4813 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4814 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4816 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4817 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 4818 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4819 | else |
4820 | if test -n "$CXX"; then | |
4821 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4822 | else | |
4823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4824 | for as_dir in $PATH | |
4825 | do | |
4826 | IFS=$as_save_IFS | |
4827 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4828 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4830 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4832 | break 2 |
4833 | fi | |
4834 | done | |
81ecdfbb RW |
4835 | done |
4836 | IFS=$as_save_IFS | |
512b7dfb | 4837 | |
18f6b6ee PB |
4838 | fi |
4839 | fi | |
4840 | CXX=$ac_cv_prog_CXX | |
4841 | if test -n "$CXX"; then | |
81ecdfbb RW |
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4843 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4844 | else |
81ecdfbb RW |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4846 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4847 | fi |
4848 | ||
81ecdfbb | 4849 | |
18f6b6ee PB |
4850 | test -n "$CXX" && break |
4851 | done | |
4852 | fi | |
4853 | if test -z "$CXX"; then | |
4854 | ac_ct_CXX=$CXX | |
81ecdfbb | 4855 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4856 | do |
4857 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4858 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4860 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4861 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 4862 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4863 | else |
4864 | if test -n "$ac_ct_CXX"; then | |
4865 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4866 | else | |
4867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4868 | for as_dir in $PATH | |
4869 | do | |
4870 | IFS=$as_save_IFS | |
4871 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4872 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4874 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4876 | break 2 |
512b7dfb | 4877 | fi |
18f6b6ee | 4878 | done |
81ecdfbb RW |
4879 | done |
4880 | IFS=$as_save_IFS | |
512b7dfb | 4881 | |
18f6b6ee PB |
4882 | fi |
4883 | fi | |
4884 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4885 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4887 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4888 | else |
81ecdfbb RW |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4890 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4891 | fi |
4892 | ||
81ecdfbb | 4893 | |
18f6b6ee PB |
4894 | test -n "$ac_ct_CXX" && break |
4895 | done | |
18f6b6ee | 4896 | |
81ecdfbb RW |
4897 | if test "x$ac_ct_CXX" = x; then |
4898 | CXX="g++" | |
4899 | else | |
4900 | case $cross_compiling:$ac_tool_warned in | |
4901 | yes:) | |
4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4904 | ac_tool_warned=yes ;; | |
4905 | esac | |
4906 | CXX=$ac_ct_CXX | |
4907 | fi | |
18f6b6ee PB |
4908 | fi |
4909 | ||
81ecdfbb RW |
4910 | fi |
4911 | fi | |
18f6b6ee | 4912 | # Provide some information about the compiler. |
81ecdfbb RW |
4913 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4914 | set X $ac_compile | |
4915 | ac_compiler=$2 | |
4916 | for ac_option in --version -v -V -qversion; do | |
4917 | { { ac_try="$ac_compiler $ac_option >&5" | |
4918 | case "(($ac_try" in | |
4919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4920 | *) ac_try_echo=$ac_try;; | |
4921 | esac | |
4922 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4923 | $as_echo "$ac_try_echo"; } >&5 | |
4924 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4925 | ac_status=$? |
81ecdfbb RW |
4926 | if test -s conftest.err; then |
4927 | sed '10a\ | |
4928 | ... rest of stderr output deleted ... | |
4929 | 10q' conftest.err >conftest.er1 | |
4930 | cat conftest.er1 >&5 | |
81ecdfbb | 4931 | fi |
d0ac1c44 | 4932 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4934 | test $ac_status = 0; } | |
4935 | done | |
18f6b6ee | 4936 | |
81ecdfbb RW |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4938 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 4939 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 4940 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 4941 | else |
81ecdfbb | 4942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4943 | /* end confdefs.h. */ |
4944 | ||
4945 | int | |
4946 | main () | |
4947 | { | |
4948 | #ifndef __GNUC__ | |
4949 | choke me | |
4950 | #endif | |
4951 | ||
4952 | ; | |
4953 | return 0; | |
4954 | } | |
4955 | _ACEOF | |
81ecdfbb | 4956 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4957 | ac_compiler_gnu=yes |
4958 | else | |
81ecdfbb | 4959 | ac_compiler_gnu=no |
18f6b6ee | 4960 | fi |
81ecdfbb | 4961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4962 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4963 | ||
4964 | fi | |
81ecdfbb RW |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4966 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4967 | if test $ac_compiler_gnu = yes; then | |
4968 | GXX=yes | |
4969 | else | |
4970 | GXX= | |
4971 | fi | |
18f6b6ee PB |
4972 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4973 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4975 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 4976 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
4977 | $as_echo_n "(cached) " >&6 |
4978 | else | |
4979 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4980 | ac_cxx_werror_flag=yes | |
4981 | ac_cv_prog_cxx_g=no | |
4982 | CXXFLAGS="-g" | |
4983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4984 | /* end confdefs.h. */ |
4985 | ||
4986 | int | |
4987 | main () | |
4988 | { | |
4989 | ||
4990 | ; | |
4991 | return 0; | |
4992 | } | |
4993 | _ACEOF | |
81ecdfbb | 4994 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4995 | ac_cv_prog_cxx_g=yes |
4996 | else | |
81ecdfbb RW |
4997 | CXXFLAGS="" |
4998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4999 | /* end confdefs.h. */ |
81ecdfbb | 5000 | |
18f6b6ee PB |
5001 | int |
5002 | main () | |
5003 | { | |
81ecdfbb | 5004 | |
18f6b6ee PB |
5005 | ; |
5006 | return 0; | |
5007 | } | |
5008 | _ACEOF | |
81ecdfbb | 5009 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5010 | |
81ecdfbb RW |
5011 | else |
5012 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5013 | CXXFLAGS="-g" | |
5014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5015 | /* end confdefs.h. */ |
81ecdfbb | 5016 | |
18f6b6ee PB |
5017 | int |
5018 | main () | |
5019 | { | |
81ecdfbb | 5020 | |
18f6b6ee PB |
5021 | ; |
5022 | return 0; | |
5023 | } | |
5024 | _ACEOF | |
81ecdfbb RW |
5025 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5026 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5027 | fi |
81ecdfbb RW |
5028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5029 | fi | |
5030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5031 | fi | |
5032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5033 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5034 | fi | |
5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5036 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5037 | if test "$ac_test_CXXFLAGS" = set; then | |
5038 | CXXFLAGS=$ac_save_CXXFLAGS | |
5039 | elif test $ac_cv_prog_cxx_g = yes; then | |
5040 | if test "$GXX" = yes; then | |
5041 | CXXFLAGS="-g -O2" | |
5042 | else | |
5043 | CXXFLAGS="-g" | |
5044 | fi | |
5045 | else | |
5046 | if test "$GXX" = yes; then | |
5047 | CXXFLAGS="-O2" | |
5048 | else | |
5049 | CXXFLAGS= | |
5050 | fi | |
18f6b6ee | 5051 | fi |
18f6b6ee PB |
5052 | ac_ext=c |
5053 | ac_cpp='$CPP $CPPFLAGS' | |
5054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5057 | ||
5058 | ||
5059 | # We must set the default linker to the linker used by gcc for the correct | |
5060 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5061 | # set the LD default to the ld used by gcc. | |
5062 | if test -z "$LD"; then | |
5063 | if test "$GCC" = yes; then | |
5064 | case $build in | |
5065 | *-*-mingw*) | |
5066 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5067 | *) | |
5068 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5069 | esac | |
5070 | case $gcc_prog_ld in | |
5071 | # Accept absolute paths. | |
5072 | [\\/]* | [A-Za-z]:[\\/]*) | |
5073 | LD="$gcc_prog_ld" ;; | |
5074 | esac | |
5075 | fi | |
512b7dfb PB |
5076 | fi |
5077 | ||
b3676d82 EB |
5078 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5079 | have_static_libs=no | |
5080 | if test "$GCC" = yes; then | |
5081 | saved_LDFLAGS="$LDFLAGS" | |
5082 | ||
5083 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5085 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5086 | ac_ext=cpp | |
5087 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5088 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5089 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5090 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5091 | ||
5092 | ||
5093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5094 | /* end confdefs.h. */ | |
a882be68 EB |
5095 | |
5096 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5097 | #error -static-libstdc++ not implemented | |
5098 | #endif | |
b3676d82 EB |
5099 | int main() {} |
5100 | _ACEOF | |
5101 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5103 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5104 | else | |
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5106 | $as_echo "no" >&6; } | |
5107 | fi | |
5108 | rm -f core conftest.err conftest.$ac_objext \ | |
5109 | conftest$ac_exeext conftest.$ac_ext | |
5110 | ac_ext=c | |
5111 | ac_cpp='$CPP $CPPFLAGS' | |
5112 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5113 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5114 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5115 | ||
5116 | ||
5117 | LDFLAGS="$saved_LDFLAGS" | |
5118 | fi | |
5119 | ||
512b7dfb PB |
5120 | |
5121 | ||
5122 | ||
c6b750e1 | 5123 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5124 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5125 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5127 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5128 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5129 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5130 | else |
512b7dfb PB |
5131 | if test -n "$GNATBIND"; then |
5132 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5133 | else |
c6b750e1 DJ |
5134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5135 | for as_dir in $PATH | |
5136 | do | |
5137 | IFS=$as_save_IFS | |
5138 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5139 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5140 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5141 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5143 | break 2 |
5144 | fi | |
5145 | done | |
81ecdfbb RW |
5146 | done |
5147 | IFS=$as_save_IFS | |
c6b750e1 | 5148 | |
9e07f89d NN |
5149 | fi |
5150 | fi | |
512b7dfb PB |
5151 | GNATBIND=$ac_cv_prog_GNATBIND |
5152 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5154 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5155 | else |
81ecdfbb RW |
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5157 | $as_echo "no" >&6; } | |
9e07f89d NN |
5158 | fi |
5159 | ||
81ecdfbb | 5160 | |
c6b750e1 | 5161 | fi |
512b7dfb PB |
5162 | if test -z "$ac_cv_prog_GNATBIND"; then |
5163 | ac_ct_GNATBIND=$GNATBIND | |
5164 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5165 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5167 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5168 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5169 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5170 | else |
512b7dfb PB |
5171 | if test -n "$ac_ct_GNATBIND"; then |
5172 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5173 | else |
c6b750e1 DJ |
5174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5175 | for as_dir in $PATH | |
5176 | do | |
5177 | IFS=$as_save_IFS | |
5178 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5179 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5181 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5183 | break 2 |
5184 | fi | |
5185 | done | |
81ecdfbb RW |
5186 | done |
5187 | IFS=$as_save_IFS | |
c6b750e1 | 5188 | |
9e07f89d NN |
5189 | fi |
5190 | fi | |
512b7dfb PB |
5191 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5192 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5194 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5195 | else |
81ecdfbb RW |
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5197 | $as_echo "no" >&6; } | |
9e07f89d NN |
5198 | fi |
5199 | ||
81ecdfbb RW |
5200 | if test "x$ac_ct_GNATBIND" = x; then |
5201 | GNATBIND="no" | |
5202 | else | |
5203 | case $cross_compiling:$ac_tool_warned in | |
5204 | yes:) | |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5206 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5207 | ac_tool_warned=yes ;; | |
5208 | esac | |
5209 | GNATBIND=$ac_ct_GNATBIND | |
5210 | fi | |
24ff9987 | 5211 | else |
512b7dfb | 5212 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5213 | fi |
5214 | ||
7df2cd5d | 5215 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5216 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5217 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5219 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5220 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5221 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5222 | else |
512b7dfb PB |
5223 | if test -n "$GNATMAKE"; then |
5224 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5225 | else |
5226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5227 | for as_dir in $PATH | |
5228 | do | |
5229 | IFS=$as_save_IFS | |
5230 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5231 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5233 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5235 | break 2 |
5236 | fi | |
5237 | done | |
81ecdfbb RW |
5238 | done |
5239 | IFS=$as_save_IFS | |
7df2cd5d PB |
5240 | |
5241 | fi | |
5242 | fi | |
512b7dfb PB |
5243 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5244 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5246 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5247 | else |
81ecdfbb RW |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5249 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5250 | fi |
5251 | ||
81ecdfbb | 5252 | |
7df2cd5d | 5253 | fi |
512b7dfb PB |
5254 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5255 | ac_ct_GNATMAKE=$GNATMAKE | |
5256 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5257 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5259 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5260 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5261 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5262 | else |
512b7dfb PB |
5263 | if test -n "$ac_ct_GNATMAKE"; then |
5264 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5265 | else |
5266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5267 | for as_dir in $PATH | |
5268 | do | |
5269 | IFS=$as_save_IFS | |
5270 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5271 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5272 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5273 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5275 | break 2 |
5276 | fi | |
5277 | done | |
81ecdfbb RW |
5278 | done |
5279 | IFS=$as_save_IFS | |
7df2cd5d | 5280 | |
7df2cd5d PB |
5281 | fi |
5282 | fi | |
512b7dfb PB |
5283 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5284 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5286 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5287 | else |
81ecdfbb RW |
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5289 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5290 | fi |
5291 | ||
81ecdfbb RW |
5292 | if test "x$ac_ct_GNATMAKE" = x; then |
5293 | GNATMAKE="no" | |
5294 | else | |
5295 | case $cross_compiling:$ac_tool_warned in | |
5296 | yes:) | |
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5298 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5299 | ac_tool_warned=yes ;; | |
5300 | esac | |
5301 | GNATMAKE=$ac_ct_GNATMAKE | |
5302 | fi | |
7df2cd5d | 5303 | else |
512b7dfb | 5304 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5305 | fi |
5306 | ||
81ecdfbb RW |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5308 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
d0ac1c44 | 5309 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5310 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5311 | else |
5312 | cat >conftest.adb <<EOF | |
5313 | procedure conftest is begin null; end conftest; | |
5314 | EOF | |
5315 | acx_cv_cc_gcc_supports_ada=no | |
5316 | # There is a bug in old released versions of GCC which causes the | |
5317 | # driver to exit successfully when the appropriate language module | |
5318 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5319 | # Therefore we must check for the error message as well as an | |
5320 | # unsuccessful exit. | |
b8908782 DD |
5321 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5322 | # given a .adb file, but produce no object file. So we must check | |
5323 | # if an object file was really produced to guard against this. | |
9e07f89d | 5324 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5325 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5326 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5327 | fi |
5328 | rm -f conftest.* | |
5329 | fi | |
81ecdfbb RW |
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5331 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5332 | |
64b986c0 | 5333 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5334 | have_gnat=yes |
5335 | else | |
5336 | have_gnat=no | |
5337 | fi | |
5338 | ||
81ecdfbb RW |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5340 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5341 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5342 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5343 | else |
5344 | echo abfoo >t1 | |
5345 | echo cdfoo >t2 | |
da17fe9d | 5346 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5347 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5348 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5349 | : | |
5350 | else | |
5351 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5352 | fi | |
5353 | fi | |
b8908782 DD |
5354 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5355 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5356 | : |
b8908782 DD |
5357 | else |
5358 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5359 | fi | |
5360 | fi | |
5361 | rm t1 t2 | |
5362 | ||
5363 | fi | |
81ecdfbb RW |
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5365 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5366 | do_compare="$gcc_cv_prog_cmp_skip" |
5367 | ||
5368 | ||
9e07f89d | 5369 | |
ffdd6afc ILT |
5370 | # Check whether --enable-bootstrap was given. |
5371 | if test "${enable_bootstrap+set}" = set; then : | |
5372 | enableval=$enable_bootstrap; | |
5373 | else | |
5374 | enable_bootstrap=default | |
5375 | fi | |
5376 | ||
5377 | ||
5378 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5379 | if test -r $srcdir/gcc/configure; then | |
5380 | have_compiler=yes | |
5381 | else | |
5382 | have_compiler=no | |
5383 | fi | |
5384 | ||
5385 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5386 | *:*:*:no) ;; | |
5387 | ||
5388 | # Default behavior. Enable bootstrap if we have a compiler | |
5389 | # and we are in a native configuration. | |
5390 | yes:$build:$build:default) | |
5391 | enable_bootstrap=yes ;; | |
5392 | ||
5393 | *:*:*:default) | |
5394 | enable_bootstrap=no ;; | |
5395 | ||
5396 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5397 | yes:$build:$build:yes) | |
5398 | ;; | |
5399 | ||
5400 | # Other configurations, but we have a compiler. Assume the user knows | |
5401 | # what he's doing. | |
5402 | yes:*:*:yes) | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5404 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5405 | ;; | |
5406 | ||
5407 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5408 | no:*:*:yes) | |
d0ac1c44 | 5409 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5410 | |
5411 | # Fail if wrong command line | |
5412 | *) | |
d0ac1c44 | 5413 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5414 | ;; |
5415 | esac | |
5416 | ||
ce6c656d L |
5417 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5418 | # C++98 compiler can still start the bootstrap. | |
5419 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5420 | CXX="$CXX -std=gnu++98" | |
5421 | fi | |
5422 | ||
d5f2ee2e KG |
5423 | # Used for setting $lt_cv_objdir |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5425 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 5426 | if ${lt_cv_objdir+:} false; then : |
d5f2ee2e KG |
5427 | $as_echo_n "(cached) " >&6 |
5428 | else | |
5429 | rm -f .libs 2>/dev/null | |
5430 | mkdir .libs 2>/dev/null | |
5431 | if test -d .libs; then | |
5432 | lt_cv_objdir=.libs | |
5433 | else | |
5434 | # MS-DOS does not allow filenames that begin with a dot. | |
5435 | lt_cv_objdir=_libs | |
5436 | fi | |
5437 | rmdir .libs 2>/dev/null | |
5438 | fi | |
5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5440 | $as_echo "$lt_cv_objdir" >&6; } | |
5441 | objdir=$lt_cv_objdir | |
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | cat >>confdefs.h <<_ACEOF | |
5448 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5449 | _ACEOF | |
5450 | ||
5451 | ||
5452 | ||
e8a5fa9c | 5453 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5454 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5455 | gmpinc= |
4b900473 | 5456 | have_gmp=no |
e8a5fa9c RW |
5457 | |
5458 | # Specify a location for mpc | |
5459 | # check for this first so it ends up on the link line before mpfr. | |
5460 | ||
81ecdfbb RW |
5461 | # Check whether --with-mpc was given. |
5462 | if test "${with_mpc+set}" = set; then : | |
5463 | withval=$with_mpc; | |
5464 | fi | |
e8a5fa9c | 5465 | |
e8a5fa9c | 5466 | |
e552509b | 5467 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5468 | if test "${with_mpc_include+set}" = set; then : |
5469 | withval=$with_mpc_include; | |
5470 | fi | |
e8a5fa9c | 5471 | |
e8a5fa9c | 5472 | |
e552509b | 5473 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5474 | if test "${with_mpc_lib+set}" = set; then : |
5475 | withval=$with_mpc_lib; | |
5476 | fi | |
e8a5fa9c | 5477 | |
e8a5fa9c RW |
5478 | |
5479 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5480 | gmplibs="-L$with_mpc/lib $gmplibs" |
5481 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5482 | fi |
5483 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5484 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5485 | fi |
5486 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5487 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5488 | fi |
5489 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5490 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5491 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5492 | # Do not test the mpc version. Assume that it is sufficient, since |
5493 | # it is in the source tree, and the library has not been built yet | |
5494 | # but it would be included on the link line in the version check below | |
5495 | # hence making the test fail. | |
d9b76ff9 | 5496 | have_gmp=yes |
e8a5fa9c | 5497 | fi |
4b900473 | 5498 | |
11b04d1f DD |
5499 | # Specify a location for mpfr |
5500 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5501 | |
81ecdfbb RW |
5502 | # Check whether --with-mpfr-dir was given. |
5503 | if test "${with_mpfr_dir+set}" = set; then : | |
d0ac1c44 | 5504 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
81ecdfbb RW |
5505 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5506 | fi | |
5507 | ||
11b04d1f DD |
5508 | |
5509 | ||
81ecdfbb RW |
5510 | # Check whether --with-mpfr was given. |
5511 | if test "${with_mpfr+set}" = set; then : | |
5512 | withval=$with_mpfr; | |
5513 | fi | |
c6b750e1 | 5514 | |
11b04d1f | 5515 | |
e552509b | 5516 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5517 | if test "${with_mpfr_include+set}" = set; then : |
5518 | withval=$with_mpfr_include; | |
5519 | fi | |
c6b750e1 | 5520 | |
8a0d8a5c | 5521 | |
e552509b | 5522 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5523 | if test "${with_mpfr_lib+set}" = set; then : |
5524 | withval=$with_mpfr_lib; | |
5525 | fi | |
8a0d8a5c | 5526 | |
11b04d1f DD |
5527 | |
5528 | if test "x$with_mpfr" != x; then | |
5529 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5530 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5531 | fi |
8a0d8a5c | 5532 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5533 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5534 | fi |
5535 | if test "x$with_mpfr_lib" != x; then | |
5536 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5537 | fi | |
4b900473 | 5538 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 5539 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 5540 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 5541 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 5542 | fi |
05a13254 NC |
5543 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5544 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5545 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
5546 | # Do not test the mpfr version. Assume that it is sufficient, since |
5547 | # it is in the source tree, and the library has not been built yet | |
5548 | # but it would be included on the link line in the version check below | |
5549 | # hence making the test fail. | |
5550 | have_gmp=yes | |
5551 | fi | |
11b04d1f | 5552 | |
4b1cb4fe | 5553 | # Specify a location for gmp |
c6b750e1 | 5554 | |
81ecdfbb RW |
5555 | # Check whether --with-gmp-dir was given. |
5556 | if test "${with_gmp_dir+set}" = set; then : | |
d0ac1c44 | 5557 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
81ecdfbb RW |
5558 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5559 | fi | |
5560 | ||
4b1cb4fe DD |
5561 | |
5562 | ||
81ecdfbb RW |
5563 | # Check whether --with-gmp was given. |
5564 | if test "${with_gmp+set}" = set; then : | |
5565 | withval=$with_gmp; | |
5566 | fi | |
c6b750e1 | 5567 | |
4b1cb4fe | 5568 | |
e552509b | 5569 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5570 | if test "${with_gmp_include+set}" = set; then : |
5571 | withval=$with_gmp_include; | |
5572 | fi | |
c6b750e1 | 5573 | |
8a0d8a5c | 5574 | |
e552509b | 5575 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5576 | if test "${with_gmp_lib+set}" = set; then : |
5577 | withval=$with_gmp_lib; | |
5578 | fi | |
8a0d8a5c PB |
5579 | |
5580 | ||
4b1cb4fe | 5581 | |
11b04d1f DD |
5582 | if test "x$with_gmp" != x; then |
5583 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5584 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5585 | fi |
8a0d8a5c PB |
5586 | if test "x$with_gmp_include" != x; then |
5587 | gmpinc="-I$with_gmp_include $gmpinc" | |
5588 | fi | |
5589 | if test "x$with_gmp_lib" != x; then | |
5590 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5591 | fi | |
4b900473 | 5592 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5593 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5594 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5595 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5596 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5597 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5598 | # Do not test the gmp version. Assume that it is sufficient, since |
5599 | # it is in the source tree, and the library has not been built yet | |
5600 | # but it would be included on the link line in the version check below | |
5601 | # hence making the test fail. | |
5602 | have_gmp=yes | |
5603 | fi | |
4b1cb4fe | 5604 | |
ceb92e78 | 5605 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5606 | have_gmp=yes |
5607 | saved_CFLAGS="$CFLAGS" | |
5608 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5609 | # Check for the recommended and required versions of GMP. |
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5611 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
f6720b1c AM |
5612 | |
5613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5614 | /* end confdefs.h. */ |
5615 | #include "gmp.h" | |
5616 | int | |
5617 | main () | |
5618 | { | |
5619 | ||
5620 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5621 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5622 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5623 | choke me |
5624 | #endif | |
5625 | ||
5626 | ; | |
5627 | return 0; | |
5628 | } | |
5629 | _ACEOF | |
5630 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5632 | /* end confdefs.h. */ |
a6b5846e | 5633 | #include <gmp.h> |
c6b750e1 DJ |
5634 | int |
5635 | main () | |
5636 | { | |
4b1cb4fe | 5637 | |
a6b5846e KG |
5638 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5639 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5640 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5641 | choke me |
5642 | #endif | |
c6b750e1 DJ |
5643 | |
5644 | ; | |
5645 | return 0; | |
5646 | } | |
5647 | _ACEOF | |
81ecdfbb RW |
5648 | if ac_fn_c_try_compile "$LINENO"; then : |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5650 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5651 | else |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5653 | $as_echo "buggy but acceptable" >&6; } | |
5654 | fi | |
5655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5656 | else |
81ecdfbb RW |
5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5658 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5659 | fi |
81ecdfbb | 5660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5661 | |
e8a5fa9c | 5662 | # If we have GMP, check the MPFR version. |
4b900473 | 5663 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5664 | # Check for the recommended and required versions of MPFR. |
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5666 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5668 | /* end confdefs.h. */ |
9b134994 | 5669 | #include <gmp.h> |
4b900473 | 5670 | #include <mpfr.h> |
c6b750e1 DJ |
5671 | int |
5672 | main () | |
5673 | { | |
9b134994 | 5674 | |
7ec59b9e | 5675 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5676 | choke me |
5677 | #endif | |
c6b750e1 DJ |
5678 | |
5679 | ; | |
5680 | return 0; | |
5681 | } | |
5682 | _ACEOF | |
81ecdfbb RW |
5683 | if ac_fn_c_try_compile "$LINENO"; then : |
5684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5685 | /* end confdefs.h. */ |
4b1cb4fe | 5686 | #include <gmp.h> |
4b900473 | 5687 | #include <mpfr.h> |
c6b750e1 DJ |
5688 | int |
5689 | main () | |
5690 | { | |
9dbaa842 | 5691 | |
a6b5846e | 5692 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5693 | choke me |
5694 | #endif | |
e8a5fa9c RW |
5695 | |
5696 | ; | |
5697 | return 0; | |
5698 | } | |
5699 | _ACEOF | |
81ecdfbb RW |
5700 | if ac_fn_c_try_compile "$LINENO"; then : |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5702 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5703 | else |
81ecdfbb RW |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5705 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5706 | fi |
81ecdfbb | 5707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5708 | else |
81ecdfbb RW |
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5710 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5711 | fi |
81ecdfbb | 5712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5713 | fi |
5714 | ||
5715 | # Check for the MPC header version. | |
d9b76ff9 | 5716 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5717 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5719 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5721 | /* end confdefs.h. */ |
5722 | #include <mpc.h> | |
5723 | int | |
5724 | main () | |
5725 | { | |
5726 | ||
a6b5846e KG |
5727 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5728 | choke me | |
5729 | #endif | |
5730 | ||
5731 | ; | |
5732 | return 0; | |
5733 | } | |
5734 | _ACEOF | |
5735 | if ac_fn_c_try_compile "$LINENO"; then : | |
5736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5737 | /* end confdefs.h. */ | |
5738 | #include <mpc.h> | |
5739 | int | |
5740 | main () | |
5741 | { | |
5742 | ||
5743 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5744 | choke me |
5745 | #endif | |
5746 | ||
5747 | ; | |
5748 | return 0; | |
5749 | } | |
5750 | _ACEOF | |
81ecdfbb RW |
5751 | if ac_fn_c_try_compile "$LINENO"; then : |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5753 | $as_echo "yes" >&6; } |
a6b5846e KG |
5754 | else |
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5756 | $as_echo "buggy but acceptable" >&6; } | |
5757 | fi | |
5758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5759 | else |
81ecdfbb | 5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5761 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5762 | fi |
81ecdfbb | 5763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5764 | fi |
5765 | ||
5766 | # Now check the MPFR library. | |
5767 | if test x"$have_gmp" = xyes; then | |
5768 | saved_LIBS="$LIBS" | |
5769 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5771 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5773 | /* end confdefs.h. */ |
d9b76ff9 | 5774 | #include <mpc.h> |
e8a5fa9c RW |
5775 | int |
5776 | main () | |
5777 | { | |
5778 | ||
5779 | mpfr_t n; | |
5780 | mpfr_t x; | |
d9b76ff9 | 5781 | mpc_t c; |
e8a5fa9c RW |
5782 | int t; |
5783 | mpfr_init (n); | |
5784 | mpfr_init (x); | |
5785 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5786 | mpfr_erfc (n, x, GMP_RNDN); | |
5787 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5788 | mpfr_clear(n); |
5789 | mpfr_clear(x); | |
5790 | mpc_init2 (c, 53); | |
5791 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5792 | mpc_cosh (c, c, MPC_RNDNN); | |
5793 | mpc_pow (c, c, c, MPC_RNDNN); | |
5794 | mpc_acosh (c, c, MPC_RNDNN); | |
5795 | mpc_clear (c); | |
c6b750e1 DJ |
5796 | |
5797 | ; | |
5798 | return 0; | |
5799 | } | |
5800 | _ACEOF | |
81ecdfbb RW |
5801 | if ac_fn_c_try_link "$LINENO"; then : |
5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5803 | $as_echo "yes" >&6; } | |
c6b750e1 | 5804 | else |
81ecdfbb RW |
5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5806 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5807 | fi |
81ecdfbb RW |
5808 | rm -f core conftest.err conftest.$ac_objext \ |
5809 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5810 | LIBS="$saved_LIBS" |
5811 | fi | |
5812 | ||
4b900473 | 5813 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5814 | |
a6b5846e KG |
5815 | # The library versions listed in the error message below should match |
5816 | # the HARD-minimums enforced above. | |
4b900473 | 5817 | if test x$have_gmp != xyes; then |
d0ac1c44 | 5818 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5819 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5820 | their locations. Source code for these libraries can be found at | |
5821 | their respective hosting sites as well as at | |
5822 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5823 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5824 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5825 | make sure that you have installed both the libraries and the header | |
5826 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5827 | fi |
9dbaa842 DD |
5828 | fi |
5829 | ||
e8a5fa9c RW |
5830 | # Flags needed for both GMP, MPFR and/or MPC. |
5831 | ||
5832 | ||
5833 | ||
4b1cb4fe DD |
5834 | |
5835 | ||
5836 | ||
7ec59b9e | 5837 | |
b3676d82 | 5838 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5839 | |
b3676d82 EB |
5840 | # Check whether --with-stage1-libs was given. |
5841 | if test "${with_stage1_libs+set}" = set; then : | |
5842 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5843 | stage1_libs= | |
e8a5fa9c | 5844 | else |
b3676d82 | 5845 | stage1_libs=$withval |
e8a5fa9c RW |
5846 | fi |
5847 | else | |
68996839 | 5848 | stage1_libs= |
81ecdfbb RW |
5849 | fi |
5850 | ||
e8a5fa9c RW |
5851 | |
5852 | ||
c1a5d03a TT |
5853 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
5854 | # default is yes if gcc is being built; no otherwise. The reason for | |
5855 | # this default is that gdb is sometimes linked against GNU Source | |
5856 | # Highlight, which is a shared library that uses C++ exceptions. In | |
5857 | # this case, -static-libstdc++ will cause crashes. | |
5858 | ||
5859 | # Check whether --with-static-standard-libraries was given. | |
5860 | if test "${with_static_standard_libraries+set}" = set; then : | |
5861 | withval=$with_static_standard_libraries; | |
5862 | else | |
5863 | with_static_standard_libraries=auto | |
5864 | fi | |
5865 | ||
5866 | if test "$with_static_standard_libraries" = auto; then | |
5867 | with_static_standard_libraries=$have_compiler | |
5868 | fi | |
5869 | ||
b3676d82 | 5870 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5871 | |
b3676d82 EB |
5872 | # Check whether --with-stage1-ldflags was given. |
5873 | if test "${with_stage1_ldflags+set}" = set; then : | |
5874 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5875 | stage1_ldflags= | |
e8a5fa9c | 5876 | else |
b3676d82 | 5877 | stage1_ldflags=$withval |
e8a5fa9c RW |
5878 | fi |
5879 | else | |
b3676d82 EB |
5880 | stage1_ldflags= |
5881 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5882 | # if supported. But if the user explicitly specified the libraries to use, | |
5883 | # trust that they are doing what they want. | |
c1a5d03a TT |
5884 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
5885 | -a "$have_static_libs" = yes; then | |
b3676d82 EB |
5886 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
5887 | fi | |
81ecdfbb RW |
5888 | fi |
5889 | ||
e8a5fa9c RW |
5890 | |
5891 | ||
68996839 | 5892 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 5893 | |
81ecdfbb RW |
5894 | # Check whether --with-boot-libs was given. |
5895 | if test "${with_boot_libs+set}" = set; then : | |
5896 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5897 | poststage1_libs= |
5898 | else | |
5899 | poststage1_libs=$withval | |
5900 | fi | |
5901 | else | |
68996839 | 5902 | poststage1_libs= |
81ecdfbb RW |
5903 | fi |
5904 | ||
e8a5fa9c RW |
5905 | |
5906 | ||
143754cd NC |
5907 | # Linker flags to use for stage2 and later builds. |
5908 | ||
5909 | # Check whether --with-boot-ldflags was given. | |
5910 | if test "${with_boot_ldflags+set}" = set; then : | |
5911 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5912 | poststage1_ldflags= | |
5913 | else | |
5914 | poststage1_ldflags=$withval | |
5915 | fi | |
5916 | else | |
5917 | poststage1_ldflags= | |
4f11b223 ILT |
5918 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5919 | # statically. But if the user explicitly specified the libraries to | |
5920 | # use, trust that they are doing what they want. | |
5921 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5922 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5923 | fi | |
5924 | fi | |
5925 | ||
5926 | ||
5927 | ||
4849dfd8 | 5928 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 5929 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
5930 | |
5931 | ||
7ec59b9e L |
5932 | # Check whether --with-isl was given. |
5933 | if test "${with_isl+set}" = set; then : | |
5934 | withval=$with_isl; | |
81ecdfbb | 5935 | fi |
e28c595f | 5936 | |
e28c595f | 5937 | |
1b6c0831 | 5938 | # Treat --without-isl as a request to disable |
8e71395b | 5939 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5940 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 5941 | # Check for isl |
8e71395b L |
5942 | |
5943 | ||
7ec59b9e L |
5944 | # Check whether --with-isl-include was given. |
5945 | if test "${with_isl_include+set}" = set; then : | |
5946 | withval=$with_isl_include; | |
81ecdfbb RW |
5947 | fi |
5948 | ||
e28c595f | 5949 | |
7ec59b9e L |
5950 | # Check whether --with-isl-lib was given. |
5951 | if test "${with_isl_lib+set}" = set; then : | |
5952 | withval=$with_isl_lib; | |
81ecdfbb | 5953 | fi |
e28c595f | 5954 | |
e28c595f | 5955 | |
7ec59b9e L |
5956 | # Check whether --enable-isl-version-check was given. |
5957 | if test "${enable_isl_version_check+set}" = set; then : | |
5958 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5959 | else | |
5960 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5961 | fi |
5962 | ||
5963 | ||
7ec59b9e L |
5964 | # Initialize isllibs and islinc. |
5965 | case $with_isl in | |
5966 | no) | |
5967 | isllibs= | |
5968 | islinc= | |
5969 | ;; | |
5970 | "" | yes) | |
5971 | ;; | |
5972 | *) | |
5973 | isllibs="-L$with_isl/lib" | |
5974 | islinc="-I$with_isl/include" | |
5975 | ;; | |
5976 | esac | |
5977 | if test "x${with_isl_include}" != x ; then | |
5978 | islinc="-I$with_isl_include" | |
5979 | fi | |
5980 | if test "x${with_isl_lib}" != x; then | |
5981 | isllibs="-L$with_isl_lib" | |
5982 | fi | |
5983 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5984 | && test -d ${srcdir}/isl; then | |
5985 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5986 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5987 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5989 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 5990 | fi |
b123da99 | 5991 | |
1b6c0831 | 5992 | isllibs="${isllibs} -lisl" |
b123da99 | 5993 | |
e28c595f | 5994 | |
b3fc79f8 JBG |
5995 | |
5996 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5997 | _isl_saved_CFLAGS=$CFLAGS | |
5998 | _isl_saved_LDFLAGS=$LDFLAGS | |
5999 | _isl_saved_LIBS=$LIBS | |
6000 | ||
6001 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
6002 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6003 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 6004 | |
bf41f30d NC |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
6006 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 6007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 6008 | /* end confdefs.h. */ |
bf41f30d | 6009 | #include <isl/schedule.h> |
b3fc79f8 JBG |
6010 | int |
6011 | main () | |
6012 | { | |
bf41f30d | 6013 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
6014 | ; |
6015 | return 0; | |
6016 | } | |
6017 | _ACEOF | |
1b6c0831 | 6018 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
6019 | gcc_cv_isl=yes |
6020 | else | |
6021 | gcc_cv_isl=no | |
6022 | fi | |
1b6c0831 L |
6023 | rm -f core conftest.err conftest.$ac_objext \ |
6024 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6026 | $as_echo "$gcc_cv_isl" >&6; } | |
6027 | ||
4849dfd8 | 6028 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
6030 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
6031 | fi |
6032 | ||
b3fc79f8 JBG |
6033 | CFLAGS=$_isl_saved_CFLAGS |
6034 | LDFLAGS=$_isl_saved_LDFLAGS | |
6035 | LIBS=$_isl_saved_LIBS | |
6036 | fi | |
6037 | ||
6038 | ||
e28c595f | 6039 | |
e28c595f | 6040 | |
7ec59b9e L |
6041 | |
6042 | ||
7ec59b9e L |
6043 | if test "x${with_isl}" = xno; then |
6044 | graphite_requested=no | |
6045 | elif test "x${with_isl}" != x \ | |
6046 | || test "x${with_isl_include}" != x \ | |
6047 | || test "x${with_isl_lib}" != x ; then | |
6048 | graphite_requested=yes | |
6049 | else | |
6050 | graphite_requested=no | |
b123da99 | 6051 | fi |
e28c595f | 6052 | |
e28c595f JM |
6053 | |
6054 | ||
7ec59b9e L |
6055 | if test "${gcc_cv_isl}" = no ; then |
6056 | isllibs= | |
6057 | islinc= | |
6058 | fi | |
e28c595f | 6059 | |
7ec59b9e L |
6060 | if test "${graphite_requested}" = yes \ |
6061 | && test "x${isllibs}" = x \ | |
6062 | && test "x${islinc}" = x ; then | |
e28c595f | 6063 | |
d0ac1c44 | 6064 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 6065 | fi |
e552509b | 6066 | |
e28c595f | 6067 | |
e552509b ILT |
6068 | fi |
6069 | ||
4849dfd8 | 6070 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 6071 | if test "x$with_isl" = xno || |
8e71395b | 6072 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6073 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6074 | islinc= |
7ec59b9e L |
6075 | fi |
6076 | ||
8e71395b L |
6077 | |
6078 | ||
6079 | ||
700d40ca ILT |
6080 | # Check for LTO support. |
6081 | # Check whether --enable-lto was given. | |
6082 | if test "${enable_lto+set}" = set; then : | |
6083 | enableval=$enable_lto; enable_lto=$enableval | |
6084 | else | |
6085 | enable_lto=yes; default_enable_lto=yes | |
6086 | fi | |
6087 | ||
6088 | ||
143754cd | 6089 | |
e49e5c92 DK |
6090 | |
6091 | ||
6092 | target_elf=no | |
6093 | case $target in | |
6094 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6095 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6096 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6097 | nvptx-*-none) | |
e49e5c92 DK |
6098 | target_elf=no |
6099 | ;; | |
6100 | *) | |
6101 | target_elf=yes | |
6102 | ;; | |
6103 | esac | |
6104 | ||
6105 | if test $target_elf = yes; then : | |
74cea91b DK |
6106 | # ELF platforms build the lto-plugin always. |
6107 | build_lto_plugin=yes | |
e49e5c92 | 6108 | |
e49e5c92 DK |
6109 | else |
6110 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6111 | case $target in |
bf41f30d | 6112 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6113 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6114 | *) enable_lto=no ;; |
6115 | esac | |
e49e5c92 | 6116 | else |
29821356 RW |
6117 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6118 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6119 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6120 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6121 | # -flto it won't be needed until after installation anyway. | |
6122 | case $target in | |
52cf9762 | 6123 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 6124 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 6125 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
6126 | fi |
6127 | ;; | |
6128 | esac | |
6129 | fi | |
a8eb3f0a | 6130 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6131 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6132 | case $target in |
74cea91b | 6133 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6134 | *) ;; |
6135 | esac | |
74cea91b | 6136 | |
e49e5c92 DK |
6137 | fi |
6138 | ||
700d40ca | 6139 | |
1b6c0831 L |
6140 | # Check whether --enable-linker-plugin-configure-flags was given. |
6141 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6142 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6143 | else | |
6144 | extra_linker_plugin_configure_flags= | |
6145 | fi | |
6146 | ||
6147 | ||
6148 | # Check whether --enable-linker-plugin-flags was given. | |
6149 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6150 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6151 | else | |
6152 | extra_linker_plugin_flags= | |
6153 | fi | |
6154 | ||
6155 | ||
6156 | ||
bf41f30d NC |
6157 | # Enable --enable-host-shared. |
6158 | # Checked early to determine whether jit is an 'all' language | |
6159 | # Check whether --enable-host-shared was given. | |
6160 | if test "${enable_host_shared+set}" = set; then : | |
6161 | enableval=$enable_host_shared; host_shared=$enableval | |
6162 | else | |
6163 | host_shared=no | |
6164 | fi | |
6165 | ||
6166 | ||
e28c595f | 6167 | |
7ec59b9e | 6168 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6169 | stage1_languages=,c, |
1d39f329 | 6170 | |
e8a5fa9c | 6171 | # Target libraries that we bootstrap. |
2aa2364a | 6172 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6173 | |
9e07f89d NN |
6174 | # Figure out what language subdirectories are present. |
6175 | # Look if the user specified --enable-languages="..."; if not, use | |
6176 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6177 | # go away some day. | |
6178 | # NB: embedded tabs in this IF block -- do not untabify | |
6179 | if test -d ${srcdir}/gcc; then | |
6180 | if test x"${enable_languages+set}" != xset; then | |
6181 | if test x"${LANGUAGES+set}" = xset; then | |
6182 | enable_languages="${LANGUAGES}" | |
136bb21f | 6183 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 6184 | else |
bf41f30d | 6185 | enable_languages=default |
9e07f89d NN |
6186 | fi |
6187 | else | |
6188 | if test x"${enable_languages}" = x || | |
6189 | test x"${enable_languages}" = xyes; | |
6190 | then | |
136bb21f | 6191 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6192 | exit 1 |
6193 | fi | |
6194 | fi | |
6195 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6196 | ||
096f7d00 DE |
6197 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6198 | # and make the substitution. | |
6199 | case ,${enable_languages}, in | |
6200 | *,f95,*) | |
136bb21f | 6201 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6202 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6203 | ;; | |
6204 | esac | |
6205 | ||
7ec59b9e L |
6206 | # If bootstrapping, C++ must be enabled. |
6207 | case ",$enable_languages,:$enable_bootstrap" in | |
6208 | *,c++,*:*) ;; | |
6209 | *:yes) | |
ffdd6afc ILT |
6210 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6211 | enable_languages="${enable_languages},c++" | |
6212 | else | |
d0ac1c44 | 6213 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6214 | fi |
6215 | ;; | |
6216 | esac | |
6217 | ||
9e07f89d NN |
6218 | # First scan to see if an enabled language requires some other language. |
6219 | # We assume that a given config-lang.in will list all the language | |
6220 | # front ends it requires, even if some are required indirectly. | |
6221 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6222 | case ${lang_frag} in | |
6223 | ..) ;; | |
6224 | # The odd quoting in the next line works around | |
6225 | # an apparent bug in bash 1.12 on linux. | |
6226 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6227 | *) | |
e552509b ILT |
6228 | # From the config-lang.in, get $language, $lang_requires, and |
6229 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6230 | language= |
6231 | lang_requires= | |
e552509b | 6232 | lang_requires_boot_languages= |
bf41f30d NC |
6233 | # set srcdir during sourcing lang_frag to the gcc dir. |
6234 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6235 | # polutes this shell | |
6236 | saved_srcdir=${srcdir} | |
6237 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6238 | srcdir=${saved_srcdir} | |
e552509b | 6239 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6240 | case ,${enable_languages}, in |
6241 | *,$other,*) ;; | |
bf41f30d | 6242 | *,default,*) ;; |
9e07f89d NN |
6243 | *,all,*) ;; |
6244 | *,$language,*) | |
6245 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6246 | enable_languages="${enable_languages},${other}" | |
6247 | ;; | |
6248 | esac | |
6249 | done | |
e552509b ILT |
6250 | for other in ${lang_requires_boot_languages} ; do |
6251 | if test "$other" != "c"; then | |
6252 | case ,${enable_stage1_languages}, in | |
6253 | *,$other,*) ;; | |
bf41f30d | 6254 | *,default,*) ;; |
e552509b ILT |
6255 | *,all,*) ;; |
6256 | *) | |
6257 | case ,${enable_languages}, in | |
6258 | *,$language,*) | |
6259 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6260 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6261 | ;; | |
6262 | esac | |
6263 | ;; | |
6264 | esac | |
6265 | fi | |
6266 | done | |
9e07f89d NN |
6267 | ;; |
6268 | esac | |
6269 | done | |
6270 | ||
9b134994 | 6271 | new_enable_languages=,c, |
700d40ca ILT |
6272 | |
6273 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6274 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6275 | case ,${enable_languages}, in |
6276 | *,lto,*) ;; | |
6277 | *) enable_languages="${enable_languages},lto" ;; | |
6278 | esac | |
a8eb3f0a | 6279 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6280 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6281 | fi |
6282 | fi | |
6283 | ||
1b6c0831 L |
6284 | # If we're building an offloading compiler, add the LTO front end. |
6285 | if test x"$enable_as_accelerator_for" != x ; then | |
6286 | case ,${enable_languages}, in | |
6287 | *,lto,*) ;; | |
6288 | *) enable_languages="${enable_languages},lto" ;; | |
6289 | esac | |
6290 | fi | |
700d40ca | 6291 | |
bf41f30d | 6292 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6293 | potential_languages=,c, |
9e07f89d | 6294 | |
9e1a94f4 ILT |
6295 | enabled_target_libs= |
6296 | disabled_target_libs= | |
6297 | ||
9e07f89d NN |
6298 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6299 | case ${lang_frag} in | |
6300 | ..) ;; | |
6301 | # The odd quoting in the next line works around | |
6302 | # an apparent bug in bash 1.12 on linux. | |
6303 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6304 | *) | |
c6b750e1 | 6305 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6306 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6307 | language= |
6308 | target_libs= | |
6309 | lang_dirs= | |
64ce424c | 6310 | subdir_requires= |
9b134994 PB |
6311 | boot_language=no |
6312 | build_by_default=yes | |
bf41f30d NC |
6313 | # set srcdir during sourcing. See above about save & restore |
6314 | saved_srcdir=${srcdir} | |
6315 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6316 | srcdir=${saved_srcdir} | |
9b134994 PB |
6317 | if test x${language} = x; then |
6318 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6319 | exit 1 | |
6320 | fi | |
6321 | ||
ffdd6afc | 6322 | if test "$language" = "c++"; then |
7ec59b9e | 6323 | boot_language=yes |
e8a5fa9c RW |
6324 | fi |
6325 | ||
8e71395b | 6326 | add_this_lang=no |
bf41f30d NC |
6327 | # C is always enabled, so no need to add it again |
6328 | if test "$language" != "c"; then | |
6329 | case ,${enable_languages}, in | |
6330 | *,${language},*) | |
6331 | # Language was explicitly selected; include it | |
7ec59b9e | 6332 | add_this_lang=yes |
bf41f30d NC |
6333 | ;; |
6334 | *,all,*) | |
6335 | # All languages are enabled | |
6336 | add_this_lang=all | |
6337 | ;; | |
6338 | *,default,*) | |
6339 | # 'default' was selected, select it if it is a default language | |
8e71395b | 6340 | add_this_lang=${build_by_default} |
bf41f30d NC |
6341 | ;; |
6342 | esac | |
6343 | fi | |
4b1cb4fe | 6344 | |
64ce424c | 6345 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6346 | for i in $subdir_requires; do |
3d3adb43 | 6347 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
6348 | case ${add_this_lang} in |
6349 | yes) | |
64ce424c | 6350 | # Specifically requested language; tell them. |
d0ac1c44 | 6351 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 6352 | ;; |
bf41f30d NC |
6353 | all) |
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6355 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6356 | add_this_lang=unsupported | |
6357 | ;; | |
64ce424c PB |
6358 | *) |
6359 | # Silently disable. | |
9b134994 | 6360 | add_this_lang=unsupported |
64ce424c PB |
6361 | ;; |
6362 | esac | |
6363 | done | |
6364 | ||
9b134994 | 6365 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
6366 | case ${add_this_lang}:${language}:${have_gnat} in |
6367 | yes:ada:no) | |
9b134994 | 6368 | # Specifically requested language; tell them. |
d0ac1c44 | 6369 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 6370 | ;; |
bf41f30d NC |
6371 | all:ada:no) |
6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6373 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6374 | add_this_lang=unsupported | |
6375 | ;; | |
9b134994 PB |
6376 | *:ada:no) |
6377 | # Silently disable. | |
6378 | add_this_lang=unsupported | |
6379 | ;; | |
6380 | esac | |
6381 | ||
bf41f30d NC |
6382 | # Disable jit if -enable-host-shared not specified |
6383 | case ${add_this_lang}:${language}:${host_shared} in | |
6384 | yes:jit:no) | |
6385 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 6386 | as_fn_error $? " |
bf41f30d NC |
6387 | Enabling language \"jit\" requires --enable-host-shared. |
6388 | ||
6389 | --enable-host-shared typically slows the rest of the compiler down by | |
6390 | a few %, so you must explicitly enable it. | |
6391 | ||
6392 | If you want to build both the jit and the regular compiler, it is often | |
6393 | best to do this via two separate configure/builds, in separate | |
6394 | directories, to avoid imposing the performance cost of | |
6395 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6396 | ;; | |
6397 | all:jit:no) | |
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6399 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6400 | add_this_lang=unsupported | |
6401 | ;; | |
6402 | *:jit:no) | |
6403 | # Silently disable. | |
6404 | add_this_lang=unsupported | |
6405 | ;; | |
6406 | esac | |
6407 | ||
6408 | # Disable a language that is unsupported by the target. | |
6409 | case "${add_this_lang}: $unsupported_languages " in | |
6410 | no:*) ;; | |
6411 | unsupported:*) ;; | |
6412 | *:*" $language "*) | |
6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6414 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 6415 | add_this_lang=unsupported |
59f7ec45 HPN |
6416 | ;; |
6417 | esac | |
6418 | ||
4b1cb4fe | 6419 | case $add_this_lang in |
9b134994 | 6420 | unsupported) |
9e07f89d | 6421 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6422 | disabled_target_libs="$disabled_target_libs $target_libs" |
6423 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6424 | ;; |
9b134994 PB |
6425 | no) |
6426 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6427 | disabled_target_libs="$disabled_target_libs $target_libs" |
6428 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6429 | potential_languages="${potential_languages}${language}," |
6430 | ;; | |
bf41f30d | 6431 | all|yes) |
9b134994 PB |
6432 | new_enable_languages="${new_enable_languages}${language}," |
6433 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6434 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6435 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6436 | case "${boot_language}:,$enable_stage1_languages," in |
6437 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6438 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6439 | case ",$stage1_languages," in |
6440 | *,$language,* | ,yes, | ,all,) ;; | |
6441 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6442 | esac | |
e8a5fa9c RW |
6443 | # We need to bootstrap any supporting libraries. |
6444 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6445 | ;; |
6446 | esac | |
6447 | ;; | |
9e07f89d NN |
6448 | esac |
6449 | ;; | |
6450 | esac | |
6451 | done | |
6452 | ||
9e1a94f4 ILT |
6453 | # Add target libraries which are only needed for disabled languages |
6454 | # to noconfigdirs. | |
6455 | if test -n "$disabled_target_libs"; then | |
6456 | for dir in $disabled_target_libs; do | |
6457 | case " $enabled_target_libs " in | |
6458 | *" ${dir} "*) ;; | |
6459 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6460 | esac | |
6461 | done | |
6462 | fi | |
6463 | ||
81ecdfbb RW |
6464 | # Check whether --enable-stage1-languages was given. |
6465 | if test "${enable_stage1_languages+set}" = set; then : | |
6466 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6467 | ,no,|,,) |
6468 | # Set it to something that will have no effect in the loop below | |
6469 | enable_stage1_languages=c ;; | |
6470 | ,yes,) | |
6471 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6472 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6473 | *,all,*) | |
6474 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6475 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6476 | esac | |
6477 | ||
6478 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6479 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6480 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6481 | case $potential_languages in | |
6482 | *,$i,*) | |
6483 | case $stage1_languages in | |
6484 | *,$i,*) ;; | |
6485 | *) stage1_languages="$stage1_languages$i," ;; | |
6486 | esac ;; | |
6487 | *) | |
6488 | case $missing_languages in | |
6489 | *,$i,*) ;; | |
6490 | *) missing_languages="$missing_languages$i," ;; | |
6491 | esac ;; | |
6492 | esac | |
6493 | done | |
81ecdfbb RW |
6494 | fi |
6495 | ||
9b134994 PB |
6496 | |
6497 | # Remove leading/trailing commas that were added for simplicity | |
6498 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6499 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6500 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6501 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6502 | ||
9e07f89d | 6503 | if test "x$missing_languages" != x; then |
d0ac1c44 | 6504 | as_fn_error $? " |
27258dd4 | 6505 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6506 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6507 | fi |
9e07f89d NN |
6508 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6509 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6510 | enable_languages="$new_enable_languages" |
9e07f89d | 6511 | fi |
9b134994 | 6512 | |
c6b750e1 | 6513 | |
81ec575a | 6514 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6515 | fi |
6516 | ||
a6df5a19 PB |
6517 | # Handle --disable-<component> generically. |
6518 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6519 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6520 | varname=`echo $dirname | sed -e s/+/_/g` |
6521 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6522 | noconfigdirs="$noconfigdirs $dir" |
6523 | fi | |
6524 | done | |
6525 | ||
4f0ef2d8 | 6526 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6527 | # Check whether --enable-objc-gc was given. |
6528 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 6529 | enableval=$enable_objc_gc; |
81ecdfbb RW |
6530 | fi |
6531 | ||
4f0ef2d8 | 6532 | |
05a13254 NC |
6533 | # Check whether --with-target-bdw-gc was given. |
6534 | if test "${with_target_bdw_gc+set}" = set; then : | |
6535 | withval=$with_target_bdw_gc; | |
6536 | fi | |
6537 | ||
6538 | ||
6539 | # Check whether --with-target-bdw-gc-include was given. | |
6540 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6541 | withval=$with_target_bdw_gc_include; | |
6542 | fi | |
6543 | ||
6544 | ||
6545 | # Check whether --with-target-bdw-gc-lib was given. | |
6546 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6547 | withval=$with_target_bdw_gc_lib; | |
6548 | fi | |
6549 | ||
6550 | ||
6551 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6553 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6554 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
6556 | $as_echo "using bdw-gc in default locations" >&6; } | |
6557 | else | |
6558 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 6559 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 6560 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 6561 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
6562 | else |
6563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6564 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 6565 | fi |
05a13254 | 6566 | fi |
4f0ef2d8 CD |
6567 | esac |
6568 | ||
bf41f30d | 6569 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6570 | case ,${enable_languages}, in |
1b6c0831 | 6571 | *,c++,*) |
bf41f30d | 6572 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
6573 | case "${noconfigdirs}" in |
6574 | *target-libstdc++-v3*) | |
bf41f30d | 6575 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
6576 | ;; |
6577 | *) ;; | |
6578 | esac | |
6579 | ;; | |
7ec59b9e | 6580 | *) |
bf41f30d | 6581 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6582 | ;; |
6583 | esac | |
6584 | ||
caeba88f AL |
6585 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6586 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6587 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6588 | ||
6589 | notsupp="" | |
6590 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6591 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6592 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6593 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6594 | if test -r $srcdir/$dirname/configure ; then | |
6595 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6596 | true | |
6597 | else | |
6598 | notsupp="$notsupp $dir" | |
6599 | fi | |
6600 | fi | |
6601 | fi | |
caeba88f AL |
6602 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6603 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6604 | if test -r $srcdir/$dirname/configure ; then | |
6605 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6606 | true | |
6607 | else | |
6608 | notsupp="$notsupp $dir" | |
6609 | fi | |
6610 | fi | |
6611 | fi | |
9e07f89d NN |
6612 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6613 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6614 | if test -r $srcdir/$dirname/configure ; then | |
6615 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6616 | true | |
6617 | else | |
6618 | notsupp="$notsupp $dir" | |
6619 | fi | |
6620 | fi | |
6621 | fi | |
6622 | done | |
6623 | ||
9e07f89d NN |
6624 | # Quietly strip out all directories which aren't configurable in this tree. |
6625 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6626 | # is now the case. | |
6a9cf61e PB |
6627 | build_configdirs_all="$build_configdirs" |
6628 | build_configdirs= | |
6629 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6630 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6631 | if test -f ${srcdir}/$j/configure ; then |
6632 | build_configdirs="${build_configdirs} $i" | |
6633 | fi | |
6634 | done | |
6635 | ||
9e07f89d NN |
6636 | configdirs_all="$configdirs" |
6637 | configdirs= | |
6638 | for i in ${configdirs_all} ; do | |
6639 | if test -f ${srcdir}/$i/configure ; then | |
6640 | configdirs="${configdirs} $i" | |
6641 | fi | |
6642 | done | |
6a9cf61e | 6643 | |
9e07f89d NN |
6644 | target_configdirs_all="$target_configdirs" |
6645 | target_configdirs= | |
6646 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6647 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6648 | if test -f ${srcdir}/$j/configure ; then |
6649 | target_configdirs="${target_configdirs} $i" | |
6650 | fi | |
6651 | done | |
6652 | ||
1b6c0831 L |
6653 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6654 | # so we have to add it after the preceding checks. | |
6655 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6656 | then | |
6657 | case " $configdirs " in | |
6658 | *" libiberty "*) | |
6659 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6660 | configdirs="$configdirs libiberty-linker-plugin" | |
6661 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6662 | --with-libiberty=../libiberty-linker-plugin";; | |
6663 | *) | |
d0ac1c44 | 6664 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
6665 | esac |
6666 | fi | |
6667 | ||
6668 | # Sometimes we have special requirements for the host libiberty. | |
6669 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6670 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6671 | case " $configdirs " in |
6672 | *" lto-plugin "* | *" libcc1 "*) | |
6673 | # When these are to be built as shared libraries, the same applies to | |
6674 | # libiberty. | |
6675 | extra_host_libiberty_configure_flags=--enable-shared | |
6676 | ;; | |
e81d5d05 L |
6677 | *" bfd "*) |
6678 | # When bfd is to be built as a shared library, the same applies to | |
6679 | # zlib. | |
6680 | if test "$enable_shared" = "yes"; then | |
6681 | extra_host_zlib_configure_flags=--enable-host-shared | |
6682 | fi | |
6683 | ;; | |
1b6c0831 L |
6684 | esac |
6685 | ||
6686 | ||
e81d5d05 | 6687 | |
9e07f89d NN |
6688 | # Produce a warning message for the subdirs we can't configure. |
6689 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6690 | # FSF releases, it's important to let people know when their machine isn't | |
6691 | # supported by the one or two programs in a package. | |
6692 | ||
6693 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6694 | # If $appdirs is non-empty, at least one of those directories must still | |
6695 | # be configured, or we error out. (E.g., if the gas release supports a | |
6696 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6697 | # pretend that all is well.) | |
6698 | if test -n "$appdirs" ; then | |
6699 | for dir in $appdirs ; do | |
6700 | if test -r $dir/Makefile.in ; then | |
6701 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6702 | appdirs="" | |
6703 | break | |
6704 | fi | |
6a9cf61e | 6705 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6706 | appdirs="" |
6707 | break | |
6708 | fi | |
6709 | fi | |
6710 | done | |
6711 | if test -n "$appdirs" ; then | |
6712 | echo "*** This configuration is not supported by this package." 1>&2 | |
6713 | exit 1 | |
6714 | fi | |
6715 | fi | |
6716 | # Okay, some application will build, or we don't care to check. Still | |
6717 | # notify of subdirs not getting built. | |
6718 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6719 | echo " ${notsupp}" 1>&2 | |
6720 | echo " (Any other directories should still work fine.)" 1>&2 | |
6721 | fi | |
6722 | ||
6723 | case "$host" in | |
6724 | *msdosdjgpp*) | |
6725 | enable_gdbtk=no ;; | |
6726 | esac | |
6727 | ||
18f6b6ee PB |
6728 | # To find our prefix, in gcc_cv_tool_prefix. |
6729 | ||
6730 | # The user is always right. | |
6731 | if test "${PATH_SEPARATOR+set}" != set; then | |
6732 | echo "#! /bin/sh" >conf$$.sh | |
6733 | echo "exit 0" >>conf$$.sh | |
6734 | chmod +x conf$$.sh | |
6735 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6736 | PATH_SEPARATOR=';' | |
6737 | else | |
6738 | PATH_SEPARATOR=: | |
6739 | fi | |
6740 | rm -f conf$$.sh | |
6741 | fi | |
6742 | ||
6743 | ||
bf41f30d NC |
6744 | get_gcc_base_ver="cat" |
6745 | ||
6746 | # Check whether --with-gcc-major-version-only was given. | |
6747 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6748 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 6749 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
6750 | fi |
6751 | ||
6752 | fi | |
6753 | ||
6754 | ||
6755 | ||
6756 | ||
6757 | ||
18f6b6ee PB |
6758 | |
6759 | if test "x$exec_prefix" = xNONE; then | |
6760 | if test "x$prefix" = xNONE; then | |
6761 | gcc_cv_tool_prefix=$ac_default_prefix | |
6762 | else | |
6763 | gcc_cv_tool_prefix=$prefix | |
6764 | fi | |
6765 | else | |
6766 | gcc_cv_tool_prefix=$exec_prefix | |
6767 | fi | |
6768 | ||
6769 | # If there is no compiler in the tree, use the PATH only. In any | |
6770 | # case, if there is no compiler in the tree nobody should use | |
6771 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6772 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
6773 | if test x$with_gcc_major_version_only = xyes ; then |
6774 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6775 | else | |
6776 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6777 | fi | |
18f6b6ee PB |
6778 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6779 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6780 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6781 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6782 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6783 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6784 | else | |
6785 | gcc_cv_tool_dirs= | |
6786 | fi | |
6787 | ||
6788 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6789 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6790 | fi | |
6791 | ||
6792 | ||
6793 | ||
9e07f89d NN |
6794 | copy_dirs= |
6795 | ||
c6b750e1 | 6796 | |
81ecdfbb RW |
6797 | # Check whether --with-build-sysroot was given. |
6798 | if test "${with_build_sysroot+set}" = set; then : | |
6799 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6800 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6801 | fi | |
6802 | else | |
6803 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6804 | fi |
a19b6204 MM |
6805 | |
6806 | ||
8a6ee3ab | 6807 | |
81ecdfbb RW |
6808 | |
6809 | # Check whether --with-debug-prefix-map was given. | |
6810 | if test "${with_debug_prefix_map+set}" = set; then : | |
6811 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6812 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6813 | for debug_map in $withval; do | |
6814 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6815 | done | |
6816 | fi | |
6817 | else | |
6818 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6819 | fi |
6820 | ||
8a6ee3ab JM |
6821 | |
6822 | ||
7f6ef0c0 PB |
6823 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6824 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6825 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6826 | # We want to ensure that TARGET libraries (which we know are built with | |
6827 | # gcc) are built with "-O2 -g", so include those options when setting | |
6828 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6829 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6830 | if test "x${is_cross_compiler}" = xyes; then |
6831 | CFLAGS_FOR_TARGET="-g -O2" | |
6832 | else | |
6833 | CFLAGS_FOR_TARGET=$CFLAGS | |
6834 | case " $CFLAGS " in | |
6835 | *" -O2 "*) ;; | |
6836 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6837 | esac | |
6838 | case " $CFLAGS " in | |
6839 | *" -g "* | *" -g3 "*) ;; | |
6840 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6841 | esac | |
6842 | fi | |
7f6ef0c0 PB |
6843 | fi |
6844 | ||
6845 | ||
6846 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6847 | if test "x${is_cross_compiler}" = xyes; then |
6848 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6849 | else | |
6850 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6851 | case " $CXXFLAGS " in | |
6852 | *" -O2 "*) ;; | |
6853 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6854 | esac | |
6855 | case " $CXXFLAGS " in | |
6856 | *" -g "* | *" -g3 "*) ;; | |
6857 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6858 | esac | |
6859 | fi | |
7f6ef0c0 PB |
6860 | fi |
6861 | ||
6862 | ||
91c1f14c DK |
6863 | |
6864 | ||
9e07f89d NN |
6865 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6866 | # the named directory are copied to $(tooldir)/sys-include. | |
6867 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6868 | if test x${is_cross_compiler} = xno ; then | |
6869 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6870 | exit 1 | |
6871 | fi | |
6872 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6873 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6874 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6875 | fi |
6876 | fi | |
6877 | ||
6878 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6879 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6880 | # are permitted. | |
6881 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6882 | if test x${is_cross_compiler} = xno ; then | |
6883 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6884 | exit 1 | |
6885 | fi | |
6886 | if test x"${with_libs}" != xyes ; then | |
6887 | # Copy the libraries in reverse order, so that files in the first named | |
6888 | # library override files in subsequent libraries. | |
18f6b6ee | 6889 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6890 | for l in ${with_libs}; do |
c6b750e1 | 6891 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6892 | done |
6893 | fi | |
6894 | fi | |
6895 | ||
700d40ca | 6896 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6897 | # |
6898 | # This is done by determining whether or not the appropriate directory | |
6899 | # is available, and by checking whether or not specific configurations | |
6900 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6901 | # |
6902 | # The command line options always override the explicit settings in | |
136bb21f | 6903 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 6904 | # |
c6b750e1 | 6905 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6906 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6907 | # --without-gnu-ld options for the configure script. Similarly, if |
6908 | # the default is to use the included zlib and you don't want to do that, | |
6909 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6910 | |
6911 | if test x${use_gnu_as} = x && | |
6912 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6913 | with_gnu_as=yes | |
6914 | extra_host_args="$extra_host_args --with-gnu-as" | |
6915 | fi | |
6916 | ||
6917 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6918 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6919 | with_gnu_ld=yes |
6920 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6921 | fi | |
6922 | ||
700d40ca ILT |
6923 | if test x${use_included_zlib} = x && |
6924 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6925 | : | |
6926 | else | |
6927 | with_system_zlib=yes | |
6928 | extra_host_args="$extra_host_args --with-system-zlib" | |
6929 | fi | |
6930 | ||
2429c060 PB |
6931 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6932 | # can detect this case. | |
6933 | ||
6934 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6935 | with_newlib=yes | |
6936 | extra_host_args="$extra_host_args --with-newlib" | |
6937 | fi | |
6938 | ||
9e07f89d NN |
6939 | # Handle ${copy_dirs} |
6940 | set fnord ${copy_dirs} | |
6941 | shift | |
6942 | while test $# != 0 ; do | |
6943 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6944 | : | |
6945 | else | |
6946 | echo Copying $1 to $2 | |
6947 | ||
6948 | # Use the install script to create the directory and all required | |
6949 | # parent directories. | |
6950 | if test -d $2 ; then | |
6951 | : | |
6952 | else | |
6953 | echo >config.temp | |
6954 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6955 | fi | |
6956 | ||
6957 | # Copy the directory, assuming we have tar. | |
6958 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6959 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6960 | ||
6961 | # It is the responsibility of the user to correctly adjust all | |
6962 | # symlinks. If somebody can figure out how to handle them correctly | |
6963 | # here, feel free to add the code. | |
6964 | ||
6965 | echo $1 > $2/COPIED | |
6966 | fi | |
6967 | shift; shift | |
6968 | done | |
6969 | ||
2429c060 PB |
6970 | # Determine a target-dependent exec_prefix that the installed |
6971 | # gcc will search in. Keep this list sorted by triplet, with | |
6972 | # the *-*-osname triplets last. | |
6973 | md_exec_prefix= | |
6974 | case "${target}" in | |
521ec477 | 6975 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6976 | md_exec_prefix=/dev/env/DJDIR/bin |
6977 | ;; | |
2429c060 | 6978 | *-*-hpux* | \ |
2429c060 | 6979 | *-*-nto-qnx* | \ |
1f111696 | 6980 | *-*-solaris2*) |
2429c060 PB |
6981 | md_exec_prefix=/usr/ccs/bin |
6982 | ;; | |
6983 | esac | |
6984 | ||
a0da8069 NN |
6985 | extra_arflags_for_target= |
6986 | extra_nmflags_for_target= | |
6987 | extra_ranlibflags_for_target= | |
6988 | target_makefile_frag=/dev/null | |
6989 | case "${target}" in | |
77d7106f AM |
6990 | spu-*-*) |
6991 | target_makefile_frag="config/mt-spu" | |
6992 | ;; | |
a9d58c06 | 6993 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
6994 | target_makefile_frag="config/mt-sde" |
6995 | ;; | |
f3b1e08e RS |
6996 | mipsisa*-*-elfoabi*) |
6997 | target_makefile_frag="config/mt-mips-elfoabi" | |
6998 | ;; | |
e7c8859c RS |
6999 | mips*-*-*linux* | mips*-*-gnu*) |
7000 | target_makefile_frag="config/mt-mips-gnu" | |
7001 | ;; | |
d9e042ac SL |
7002 | nios2-*-elf*) |
7003 | target_makefile_frag="config/mt-nios2-elf" | |
7004 | ;; | |
bf41f30d NC |
7005 | *-*-linux-android*) |
7006 | target_makefile_frag="config/mt-android" | |
7007 | ;; | |
29383458 | 7008 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 7009 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
7010 | ;; |
7011 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 7012 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
7013 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7014 | # harmless if we're using GNU nm or ar. | |
7015 | extra_arflags_for_target=" -X32_64" | |
7016 | extra_nmflags_for_target=" -B -X32_64" | |
7017 | ;; | |
a0da8069 NN |
7018 | esac |
7019 | ||
7020 | alphaieee_frag=/dev/null | |
7021 | case $target in | |
7022 | alpha*-*-*) | |
7023 | # This just makes sure to use the -mieee option to build target libs. | |
7024 | # This should probably be set individually by each library. | |
7025 | alphaieee_frag="config/mt-alphaieee" | |
7026 | ;; | |
7027 | esac | |
7028 | ||
7029 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7030 | # the target libraries, similarly if it is not specified, use -Os | |
7031 | # on selected platforms. | |
7032 | ospace_frag=/dev/null | |
7033 | case "${enable_target_optspace}:${target}" in | |
7034 | yes:*) | |
7035 | ospace_frag="config/mt-ospace" | |
7036 | ;; | |
7037 | :d30v-*) | |
7038 | ospace_frag="config/mt-d30v" | |
7039 | ;; | |
16beab3d | 7040 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
7041 | ospace_frag="config/mt-ospace" |
7042 | ;; | |
7043 | no:* | :*) | |
7044 | ;; | |
7045 | *) | |
7046 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7047 | ;; | |
7048 | esac | |
7049 | ||
a0da8069 NN |
7050 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7051 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7052 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7053 | build_tooldir=${tooldir} |
7054 | ||
a0da8069 NN |
7055 | # Create a .gdbinit file which runs the one in srcdir |
7056 | # and tells GDB to look there for source files. | |
7057 | ||
7058 | if test -r ${srcdir}/.gdbinit ; then | |
7059 | case ${srcdir} in | |
7060 | .) ;; | |
7061 | *) cat > ./.gdbinit <<EOF | |
7062 | # ${NO_EDIT} | |
7063 | dir ${srcdir} | |
7064 | dir . | |
7065 | source ${srcdir}/.gdbinit | |
7066 | EOF | |
7067 | ;; | |
7068 | esac | |
7069 | fi | |
7070 | ||
a0da8069 NN |
7071 | # Make sure that the compiler is able to generate an executable. If it |
7072 | # can't, we are probably in trouble. We don't care whether we can run the | |
7073 | # executable--we might be using a cross compiler--we only care whether it | |
7074 | # can be created. At this point the main configure script has set CC. | |
7075 | we_are_ok=no | |
7076 | echo "int main () { return 0; }" > conftest.c | |
7077 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7078 | if test $? = 0 ; then | |
7079 | if test -s conftest || test -s conftest.exe ; then | |
7080 | we_are_ok=yes | |
7081 | fi | |
c6b750e1 | 7082 | fi |
a0da8069 NN |
7083 | case $we_are_ok in |
7084 | no) | |
7085 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7086 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7087 | rm -f conftest* | |
7088 | exit 1 | |
7089 | ;; | |
7090 | esac | |
7091 | rm -f conftest* | |
7092 | ||
3bbd2f8f | 7093 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7094 | case "${host}" in |
7095 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7096 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7097 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7098 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7099 | esac | |
7100 | ||
3bbd2f8f | 7101 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7102 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7103 | # built executables to PATH. | |
3bbd2f8f AL |
7104 | if test "$RPATH_ENVVAR" = PATH; then |
7105 | GCC_SHLIB_SUBDIR=/shlib | |
7106 | else | |
7107 | GCC_SHLIB_SUBDIR= | |
7108 | fi | |
7109 | ||
730af8ee | 7110 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7111 | case $enable_bootstrap in | |
7112 | yes) | |
7113 | bootstrap_suffix=bootstrap | |
7114 | BUILD_CONFIG=bootstrap-debug | |
7115 | ;; | |
7116 | no) | |
7117 | bootstrap_suffix=no-bootstrap | |
7118 | BUILD_CONFIG= | |
7119 | ;; | |
7120 | esac | |
7121 | ||
7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7123 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7124 | ||
7125 | ||
7126 | # Check whether --with-build-config was given. | |
7127 | if test "${with_build_config+set}" = set; then : | |
7128 | withval=$with_build_config; case $with_build_config in | |
7129 | yes) with_build_config= ;; | |
7130 | no) with_build_config= BUILD_CONFIG= ;; | |
7131 | esac | |
7132 | fi | |
7133 | ||
7134 | ||
7135 | if test "x${with_build_config}" != x; then | |
7136 | BUILD_CONFIG=$with_build_config | |
7137 | else | |
7138 | case $BUILD_CONFIG in | |
7139 | bootstrap-debug) | |
7140 | if echo "int f (void) { return 0; }" > conftest.c && | |
7141 | ${CC} -c conftest.c && | |
7142 | mv conftest.o conftest.o.g0 && | |
7143 | ${CC} -c -g conftest.c && | |
7144 | mv conftest.o conftest.o.g && | |
7145 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7146 | : | |
7147 | else | |
7148 | BUILD_CONFIG= | |
7149 | fi | |
7150 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7151 | ;; | |
7152 | esac | |
7153 | fi | |
7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7155 | $as_echo "$BUILD_CONFIG" >&6; } | |
7156 | ||
7157 | ||
7158 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7160 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7161 | # Check whether --enable-vtable-verify was given. | |
7162 | if test "${enable_vtable_verify+set}" = set; then : | |
7163 | enableval=$enable_vtable_verify; case "$enableval" in | |
7164 | yes) enable_vtable_verify=yes ;; | |
7165 | no) enable_vtable_verify=no ;; | |
7166 | *) enable_vtable_verify=no;; | |
7167 | esac | |
7168 | else | |
7169 | enable_vtable_verify=no | |
7170 | fi | |
7171 | ||
7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7173 | $as_echo "$enable_vtable_verify" >&6; } | |
7174 | ||
a0da8069 NN |
7175 | # Record target_configdirs and the configure arguments for target and |
7176 | # build configuration in Makefile. | |
7177 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7178 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7179 | bootstrap_fixincludes=no |
a0da8069 | 7180 | |
2aa2364a JR |
7181 | # If we are building libgomp, bootstrap it. |
7182 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7183 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7184 | fi | |
7185 | ||
730af8ee | 7186 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7187 | # or bootstrap-ubsan, bootstrap it. | |
7188 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7189 | case "$BUILD_CONFIG" in | |
7190 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7191 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7192 | bootstrap_fixincludes=yes |
730af8ee | 7193 | ;; |
7194 | esac | |
5eb08693 L |
7195 | fi |
7196 | ||
730af8ee | 7197 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7198 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7199 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7200 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7201 | fi | |
7202 | ||
a0da8069 NN |
7203 | # Determine whether gdb needs tk/tcl or not. |
7204 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7205 | # and in that case we want gdb to be built without tk. Ugh! | |
7206 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7207 | # so we should be able to put the 'maybe's in unconditionally and | |
7208 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7209 | # 100% sure that that's safe though. | |
c180f501 | 7210 | |
675c6968 | 7211 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7212 | case "$enable_gdbtk" in |
7213 | no) | |
7214 | GDB_TK="" ;; | |
c180f501 AC |
7215 | yes) |
7216 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7217 | *) |
c180f501 AC |
7218 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7219 | # distro. Eventually someone will fix this and move Insight, nee | |
7220 | # gdbtk to a separate directory. | |
7221 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7222 | GDB_TK="${gdb_tk}" | |
7223 | else | |
7224 | GDB_TK="" | |
7225 | fi | |
7226 | ;; | |
a0da8069 | 7227 | esac |
907be67c DJ |
7228 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7229 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7230 | |
b6f9caee TT |
7231 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
7232 | # else does, only include them if one of these is built. The Makefile | |
7233 | # provides the ordering, so it's enough here to add to the list. | |
7234 | case " ${configdirs} " in | |
7235 | *\ gdb\ *) | |
7236 | configdirs="${configdirs} gnulib gdbsupport" | |
7237 | ;; | |
7238 | *\ gdbserver\ *) | |
7239 | configdirs="${configdirs} gnulib gdbsupport" | |
7240 | ;; | |
7241 | esac | |
73cc7272 | 7242 | |
6bd3dfaa | 7243 | # Strip out unwanted targets. |
dd12c3a8 NN |
7244 | |
7245 | # While at that, we remove Makefiles if we were started for recursive | |
7246 | # configuration, so that the top-level Makefile reconfigures them, | |
7247 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7248 | |
06a51eac RW |
7249 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7250 | # but now we're fixing up the Makefile ourselves with the additional | |
7251 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7252 | # extrasub-{build,host,target} not because there is any reason to split | |
7253 | # the substitutions up that way, but only to remain below the limit of | |
7254 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
7255 | |
7256 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7257 | # configure will not warn you at all. | |
dd12c3a8 | 7258 | |
16b1ad29 RW |
7259 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7260 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7261 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 7262 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
7263 | ;; |
7264 | esac | |
7265 | ||
06a51eac | 7266 | extrasub_build= |
6a9cf61e | 7267 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7268 | if test -z "${no_recursion}" \ |
7269 | && test -f ${build_subdir}/${module}/Makefile; then | |
7270 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7271 | rm -f ${build_subdir}/${module}/Makefile | |
7272 | fi | |
06a51eac | 7273 | extrasub_build="$extrasub_build |
498d4a71 CF |
7274 | /^@if build-$module\$/d |
7275 | /^@endif build-$module\$/d | |
4119873a | 7276 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 7277 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
7278 | /^@endif build-$module-$bootstrap_suffix\$/d |
7279 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 7280 | done |
06a51eac | 7281 | extrasub_host= |
498d4a71 | 7282 | for module in ${configdirs} ; do |
80911fe1 | 7283 | if test -z "${no_recursion}"; then |
8cf39b1b | 7284 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7285 | if test -f ${file}; then |
7286 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7287 | rm -f ${file} | |
7288 | fi | |
7289 | done | |
498d4a71 | 7290 | fi |
201f096f | 7291 | case ${module},${bootstrap_fixincludes} in |
7292 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7293 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7294 | esac | |
06a51eac | 7295 | extrasub_host="$extrasub_host |
498d4a71 CF |
7296 | /^@if $module\$/d |
7297 | /^@endif $module\$/d | |
4119873a | 7298 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 7299 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
7300 | /^@endif $module-$host_bootstrap_suffix\$/d |
7301 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7302 | done |
06a51eac | 7303 | extrasub_target= |
498d4a71 CF |
7304 | for module in ${target_configdirs} ; do |
7305 | if test -z "${no_recursion}" \ | |
7306 | && test -f ${target_subdir}/${module}/Makefile; then | |
7307 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7308 | rm -f ${target_subdir}/${module}/Makefile | |
7309 | fi | |
e8a5fa9c RW |
7310 | |
7311 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7312 | case $bootstrap_target_libs in | |
7313 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7314 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7315 | esac | |
7316 | ||
06a51eac | 7317 | extrasub_target="$extrasub_target |
498d4a71 CF |
7318 | /^@if target-$module\$/d |
7319 | /^@endif target-$module\$/d | |
4119873a | 7320 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 7321 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
7322 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7323 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7324 | done |
7325 | ||
06a51eac RW |
7326 | # Do the final fixup along with target modules. |
7327 | extrasub_target="$extrasub_target | |
4119873a AO |
7328 | /^@if /,/^@endif /d |
7329 | /^@unless /d | |
7330 | /^@endunless /d" | |
a0da8069 NN |
7331 | |
7332 | # Create the serialization dependencies. This uses a temporary file. | |
7333 | ||
81ecdfbb RW |
7334 | # Check whether --enable-serial-configure was given. |
7335 | if test "${enable_serial_configure+set}" = set; then : | |
7336 | enableval=$enable_serial_configure; | |
7337 | fi | |
e6bfb94a AO |
7338 | |
7339 | ||
1047cb91 DD |
7340 | case ${enable_serial_configure} in |
7341 | yes) | |
7342 | enable_serial_build_configure=yes | |
7343 | enable_serial_host_configure=yes | |
7344 | enable_serial_target_configure=yes | |
7345 | ;; | |
7346 | esac | |
7347 | ||
a0da8069 NN |
7348 | # These force 'configure's to be done one at a time, to avoid problems |
7349 | # with contention over a shared config.cache. | |
7350 | rm -f serdep.tmp | |
e6bfb94a | 7351 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7352 | olditem= |
1047cb91 | 7353 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7354 | for item in ${build_configdirs} ; do |
7355 | case ${olditem} in | |
7356 | "") ;; | |
e6bfb94a | 7357 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7358 | esac |
7359 | olditem=${item} | |
7360 | done | |
7361 | olditem= | |
1047cb91 | 7362 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7363 | for item in ${configdirs} ; do |
7364 | case ${olditem} in | |
7365 | "") ;; | |
e6bfb94a | 7366 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7367 | esac |
7368 | olditem=${item} | |
7369 | done | |
7370 | olditem= | |
1047cb91 | 7371 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7372 | for item in ${target_configdirs} ; do |
7373 | case ${olditem} in | |
7374 | "") ;; | |
e6bfb94a | 7375 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7376 | esac |
7377 | olditem=${item} | |
7378 | done | |
7379 | serialization_dependencies=serdep.tmp | |
7380 | ||
7381 | ||
e6bfb94a | 7382 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7383 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7384 | # might not want to pass down to subconfigures. The exception being |
7385 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7386 | # files altogether, and which should be passed on to subconfigures. | |
7387 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7388 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7389 | baseargs= |
65b4571a | 7390 | tbaseargs= |
c6b750e1 DJ |
7391 | keep_next=no |
7392 | skip_next=no | |
7393 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7394 | for ac_arg |
7395 | do | |
c6b750e1 DJ |
7396 | if test X"$skip_next" = X"yes"; then |
7397 | skip_next=no | |
7398 | continue | |
7399 | fi | |
7400 | if test X"$keep_next" = X"yes"; then | |
7401 | case $ac_arg in | |
7402 | *\'*) | |
7403 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7404 | esac | |
7405 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7406 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7407 | keep_next=no |
7408 | continue | |
7409 | fi | |
7410 | ||
7411 | # Handle separated arguments. Based on the logic generated by | |
7412 | # autoconf 2.59. | |
7413 | case $ac_arg in | |
7414 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7415 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7416 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7417 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7418 | separate_arg=no | |
7419 | ;; | |
7420 | -*) | |
7421 | separate_arg=yes | |
7422 | ;; | |
7423 | *) | |
7424 | separate_arg=no | |
7425 | ;; | |
7426 | esac | |
7427 | ||
65b4571a AO |
7428 | skip_targ=no |
7429 | case $ac_arg in | |
7430 | ||
7431 | --with-* | --without-*) | |
7432 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7433 | ||
7434 | case $libopt in | |
7435 | *[-_]include) | |
7436 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7437 | ;; | |
7438 | *[-_]lib) | |
7439 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7440 | ;; | |
7441 | *) | |
7442 | lib=$libopt | |
7443 | ;; | |
7444 | esac | |
7445 | ||
7446 | ||
7447 | case $lib in | |
1b6c0831 | 7448 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7449 | # If we're processing --with-$lib, --with-$lib-include or |
7450 | # --with-$lib-lib, for one of the libs above, and target is | |
7451 | # different from host, don't pass the current argument to any | |
7452 | # target library's configure. | |
7453 | if test x$is_cross_compiler = xyes; then | |
7454 | skip_targ=yes | |
7455 | fi | |
7456 | ;; | |
7457 | esac | |
7458 | ;; | |
7459 | esac | |
7460 | ||
c6b750e1 | 7461 | case "$ac_arg" in |
30167e0a NC |
7462 | --cache-file=/dev/null | \ |
7463 | -cache-file=/dev/null ) | |
7464 | # Handled here to avoid the test to skip args below. | |
7465 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7466 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7467 | # Assert: $separate_arg should always be no. |
7468 | keep_next=$separate_arg | |
7469 | ;; | |
c6b750e1 DJ |
7470 | --no*) |
7471 | continue | |
7472 | ;; | |
7473 | --c* | \ | |
7474 | --sr* | \ | |
7475 | --ho* | \ | |
7476 | --bu* | \ | |
7477 | --t* | \ | |
7478 | --program-* | \ | |
7479 | -cache_file* | \ | |
7480 | -srcdir* | \ | |
7481 | -host* | \ | |
7482 | -build* | \ | |
7483 | -target* | \ | |
7484 | -program-prefix* | \ | |
7485 | -program-suffix* | \ | |
7486 | -program-transform-name* ) | |
7487 | skip_next=$separate_arg | |
7488 | continue | |
7489 | ;; | |
7490 | -*) | |
7491 | # An option. Add it. | |
7492 | case $ac_arg in | |
7493 | *\'*) | |
7494 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7495 | esac | |
7496 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7497 | if test X"$skip_targ" = Xno; then |
7498 | tbaseargs="$tbaseargs '$ac_arg'" | |
7499 | fi | |
c6b750e1 DJ |
7500 | keep_next=$separate_arg |
7501 | ;; | |
7502 | *) | |
7503 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7504 | # pass it down; let the Makefile handle this. | |
7505 | continue | |
7506 | ;; | |
7507 | esac | |
7508 | done | |
7509 | # Remove the initial space we just introduced and, as these will be | |
7510 | # expanded by make, quote '$'. | |
7511 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7512 | |
f27d4f92 DJ |
7513 | # Add in --program-transform-name, after --program-prefix and |
7514 | # --program-suffix have been applied to it. Autoconf has already | |
7515 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7516 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7517 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7518 | # Also, because we want to override the logic in subdir configure scripts to |
7519 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7520 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7521 | ${program_transform_name} | |
7522 | EOF_SED | |
7523 | gcc_transform_name=`cat conftestsed.out` | |
7524 | rm -f conftestsed.out | |
7525 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7526 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7527 | if test "$silent" = yes; then |
7528 | baseargs="$baseargs --silent" | |
65b4571a | 7529 | tbaseargs="$tbaseargs --silent" |
2444379b | 7530 | fi |
34a0f3cf | 7531 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7532 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7533 | |
4074d5f2 RW |
7534 | # Record and document user additions to sub configure arguments. |
7535 | ||
7536 | ||
7537 | ||
7538 | ||
a0da8069 NN |
7539 | # For the build-side libraries, we just need to pretend we're native, |
7540 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7541 | # desired. We can't even use the same cache file for all build-side |
7542 | # libraries, as they're compiled differently; some with C, some with | |
7543 | # C++ or with different feature-enabling options. | |
7544 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7545 | |
7546 | # For host modules, accept cache file option, or specification as blank. | |
7547 | case "${cache_file}" in | |
7548 | "") # empty | |
7549 | cache_file_option="" ;; | |
7550 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7551 | cache_file_option="--cache-file=${cache_file}" ;; | |
7552 | *) # relative path | |
7553 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7554 | esac | |
7555 | ||
82252c06 NN |
7556 | # Host dirs don't like to share a cache file either, horribly enough. |
7557 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7558 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7559 | |
65b4571a | 7560 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7561 | |
7562 | # Passing a --with-cross-host argument lets the target libraries know | |
7563 | # whether they are being built with a cross-compiler or being built | |
7564 | # native. However, it would be better to use other mechanisms to make the | |
7565 | # sorts of decisions they want to make on this basis. Please consider | |
7566 | # this option to be deprecated. FIXME. | |
7567 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7568 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7569 | fi |
7570 | ||
afc0578d | 7571 | # Special user-friendly check for native x86_64-linux build, if |
7572 | # multilib is not explicitly enabled. | |
7573 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7574 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7575 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7576 | dev64=no |
7577 | echo "int main () { return 0; }" > conftest.c | |
7578 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7579 | if test $? = 0 ; then | |
7580 | if test -s conftest || test -s conftest.exe ; then | |
7581 | dev64=yes | |
7582 | fi | |
7583 | fi | |
7584 | rm -f conftest* | |
7585 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 7586 | as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
afc0578d | 7587 | fi |
7588 | ;; | |
7589 | esac | |
7590 | ||
938d2b74 RW |
7591 | # Default to --enable-multilib. |
7592 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7593 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7594 | fi |
a0da8069 NN |
7595 | |
7596 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7597 | # changed from the earlier setting of with_newlib. | |
7598 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7599 | target_configargs="--with-newlib ${target_configargs}" | |
7600 | fi | |
7601 | ||
95036d20 NN |
7602 | # Different target subdirs use different values of certain variables |
7603 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7604 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7605 | # it doesn't automatically accept command-line overrides of them. | |
7606 | # This means it's not safe for target subdirs to share a cache file, | |
7607 | # which is disgusting, but there you have it. Hopefully this can be | |
7608 | # fixed in future. It's still worthwhile to use a cache file for each | |
7609 | # directory. I think. | |
7610 | ||
ae380b45 MS |
7611 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7612 | # We need to pass --target, as newer autoconf's requires consistency | |
7613 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7614 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7615 | |
a0da8069 NN |
7616 | FLAGS_FOR_TARGET= |
7617 | case " $target_configdirs " in | |
7618 | *" newlib "*) | |
7619 | case " $target_configargs " in | |
7620 | *" --with-newlib "*) | |
7621 | case "$target" in | |
1f53ca9a | 7622 | *-cygwin*) |
6d94c122 | 7623 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7624 | ;; |
a0da8069 NN |
7625 | esac |
7626 | ||
7627 | # If we're not building GCC, don't discard standard headers. | |
7628 | if test -d ${srcdir}/gcc; then | |
7629 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7630 | ||
7631 | if test "${build}" != "${host}"; then | |
7632 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7633 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7634 | # to it. This is right: we don't want to search that directory | |
7635 | # for binaries, but we want the header files in there, so add | |
7636 | # them explicitly. | |
e552509b | 7637 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7638 | |
7639 | # Someone might think of using the pre-installed headers on | |
7640 | # Canadian crosses, in case the installed compiler is not fully | |
7641 | # compatible with the compiler being built. In this case, it | |
7642 | # would be better to flag an error than risking having | |
7643 | # incompatible object files being constructed. We can't | |
7644 | # guarantee that an error will be flagged, but let's hope the | |
7645 | # compiler will do it, when presented with incompatible header | |
7646 | # files. | |
7647 | fi | |
7648 | fi | |
7649 | ||
7650 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7651 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7652 | # Here host == target, so we don't need to build gcc, |
7653 | # so we don't want to discard standard headers. | |
7654 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7655 | ;; | |
7656 | *) | |
7657 | # If we're building newlib, use its generic headers last, but search | |
7658 | # for any libc-related directories first (so make it the last -B | |
7659 | # switch). | |
7660 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
691bb5a1 DD |
7661 | |
7662 | # If we're building libgloss, find the startup file, simulator library | |
7663 | # and linker script. | |
7664 | case " $target_configdirs " in | |
7665 | *" libgloss "*) | |
7666 | # Look for startup file, simulator library and maybe linker script. | |
7667 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7668 | # Look for libnosys.a in case the target needs it. | |
7669 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7670 | # Most targets have the linker script in the source directory. | |
7671 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7672 | ;; | |
7673 | esac | |
a0da8069 NN |
7674 | ;; |
7675 | esac | |
7676 | ;; | |
7677 | esac | |
7678 | ;; | |
7679 | esac | |
1f53ca9a | 7680 | |
45055374 | 7681 | case "$target" in |
1f53ca9a AO |
7682 | x86_64-*mingw* | *-w64-mingw*) |
7683 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7684 | # however, use a symlink named 'mingw' in ${prefix} . | |
7685 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7686 | ;; | |
7687 | *-mingw*) | |
7688 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7689 | 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' | |
7690 | ;; | |
45055374 | 7691 | esac |
a0da8069 | 7692 | |
5fbad20a DD |
7693 | # Allow the user to override the flags for |
7694 | # our build compiler if desired. | |
c66487f8 NC |
7695 | if test x"${build}" = x"${host}" ; then |
7696 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7697 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7698 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7699 | fi | |
5fbad20a | 7700 | |
a0da8069 NN |
7701 | # On Canadian crosses, we'll be searching the right directories for |
7702 | # the previously-installed cross compiler, so don't bother to add | |
7703 | # flags for directories within the install tree of the compiler | |
7704 | # being built; programs in there won't even run. | |
7705 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7706 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7707 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
a0da8069 NN |
7708 | fi |
7709 | ||
7710 | if test "x${use_gnu_ld}" = x && | |
7711 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7712 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7713 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7714 | fi |
7715 | ||
a481dbb7 DD |
7716 | # Search for other target-specific linker scripts and such. |
7717 | case "${target}" in | |
4e206d7e DB |
7718 | mep*) |
7719 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7720 | ;; | |
7721 | esac | |
7722 | ||
a0da8069 | 7723 | # Makefile fragments. |
3e707e94 PB |
7724 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7725 | do | |
7726 | eval fragval=\$$frag | |
7727 | if test $fragval != /dev/null; then | |
7728 | eval $frag=${srcdir}/$fragval | |
7729 | fi | |
7730 | done | |
a0da8069 NN |
7731 | |
7732 | ||
7733 | ||
7734 | ||
7735 | ||
7736 | # Miscellanea: directories, flags, etc. | |
7737 | ||
7738 | ||
7739 | ||
7740 | ||
7741 | ||
7742 | ||
7743 | ||
3bbd2f8f | 7744 | |
6a9cf61e | 7745 | # Build module lists & subconfigure args. |
a0da8069 NN |
7746 | |
7747 | ||
7748 | ||
be01d343 PB |
7749 | # Host module lists & subconfigure args. |
7750 | ||
7751 | ||
7752 | ||
911e63d0 | 7753 | |
be01d343 PB |
7754 | # Target module lists & subconfigure args. |
7755 | ||
7756 | ||
7757 | ||
7758 | # Build tools. | |
7759 | ||
7760 | ||
7761 | ||
1576798e PB |
7762 | |
7763 | ||
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | ||
7772 | ||
7773 | ||
7774 | ||
be01d343 PB |
7775 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7776 | # on the build machine. These are used if the Makefile can't locate these | |
7777 | # programs in objdir. | |
7778 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7779 | ||
7780 | for ac_prog in 'bison -y' byacc yacc | |
7781 | do | |
c6b750e1 | 7782 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7783 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7785 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7786 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 7787 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7788 | else |
7789 | if test -n "$YACC"; then | |
7790 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7791 | else | |
c6b750e1 DJ |
7792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7793 | for as_dir in $PATH | |
7794 | do | |
7795 | IFS=$as_save_IFS | |
7796 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7797 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7799 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7801 | break 2 |
7802 | fi | |
7803 | done | |
81ecdfbb RW |
7804 | done |
7805 | IFS=$as_save_IFS | |
c6b750e1 | 7806 | |
be01d343 PB |
7807 | fi |
7808 | fi | |
c6b750e1 | 7809 | YACC=$ac_cv_prog_YACC |
be01d343 | 7810 | if test -n "$YACC"; then |
81ecdfbb RW |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7812 | $as_echo "$YACC" >&6; } | |
be01d343 | 7813 | else |
81ecdfbb RW |
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7815 | $as_echo "no" >&6; } | |
be01d343 PB |
7816 | fi |
7817 | ||
81ecdfbb | 7818 | |
c6b750e1 | 7819 | test -n "$YACC" && break |
be01d343 PB |
7820 | done |
7821 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7822 | ||
7823 | case " $build_configdirs " in | |
7824 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7825 | esac |
7826 | ||
7827 | for ac_prog in bison | |
7828 | do | |
c6b750e1 | 7829 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7830 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7832 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7833 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 7834 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7835 | else |
7836 | if test -n "$BISON"; then | |
7837 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7838 | else | |
c6b750e1 DJ |
7839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7840 | for as_dir in $PATH | |
7841 | do | |
7842 | IFS=$as_save_IFS | |
7843 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7844 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7846 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7848 | break 2 |
7849 | fi | |
7850 | done | |
81ecdfbb RW |
7851 | done |
7852 | IFS=$as_save_IFS | |
c6b750e1 | 7853 | |
be01d343 PB |
7854 | fi |
7855 | fi | |
c6b750e1 | 7856 | BISON=$ac_cv_prog_BISON |
be01d343 | 7857 | if test -n "$BISON"; then |
81ecdfbb RW |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7859 | $as_echo "$BISON" >&6; } | |
be01d343 | 7860 | else |
81ecdfbb RW |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7862 | $as_echo "no" >&6; } | |
be01d343 PB |
7863 | fi |
7864 | ||
81ecdfbb | 7865 | |
c6b750e1 | 7866 | test -n "$BISON" && break |
be01d343 PB |
7867 | done |
7868 | test -n "$BISON" || BISON="$MISSING bison" | |
7869 | ||
7870 | case " $build_configdirs " in | |
7871 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7872 | esac | |
7873 | ||
7874 | for ac_prog in gm4 gnum4 m4 | |
7875 | do | |
c6b750e1 | 7876 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7877 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7879 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7880 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 7881 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7882 | else |
7883 | if test -n "$M4"; then | |
7884 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7885 | else | |
c6b750e1 DJ |
7886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7887 | for as_dir in $PATH | |
7888 | do | |
7889 | IFS=$as_save_IFS | |
7890 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7891 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7893 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7895 | break 2 |
7896 | fi | |
7897 | done | |
81ecdfbb RW |
7898 | done |
7899 | IFS=$as_save_IFS | |
c6b750e1 | 7900 | |
be01d343 PB |
7901 | fi |
7902 | fi | |
c6b750e1 | 7903 | M4=$ac_cv_prog_M4 |
be01d343 | 7904 | if test -n "$M4"; then |
81ecdfbb RW |
7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7906 | $as_echo "$M4" >&6; } | |
be01d343 | 7907 | else |
81ecdfbb RW |
7908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7909 | $as_echo "no" >&6; } | |
be01d343 PB |
7910 | fi |
7911 | ||
81ecdfbb | 7912 | |
c6b750e1 | 7913 | test -n "$M4" && break |
be01d343 PB |
7914 | done |
7915 | test -n "$M4" || M4="$MISSING m4" | |
7916 | ||
7917 | case " $build_configdirs " in | |
7918 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7919 | esac | |
7920 | ||
7921 | for ac_prog in flex lex | |
7922 | do | |
c6b750e1 | 7923 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7924 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7926 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7927 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 7928 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7929 | else |
7930 | if test -n "$LEX"; then | |
7931 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7932 | else | |
c6b750e1 DJ |
7933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7934 | for as_dir in $PATH | |
7935 | do | |
7936 | IFS=$as_save_IFS | |
7937 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7938 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7940 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7942 | break 2 |
7943 | fi | |
7944 | done | |
81ecdfbb RW |
7945 | done |
7946 | IFS=$as_save_IFS | |
c6b750e1 | 7947 | |
be01d343 PB |
7948 | fi |
7949 | fi | |
c6b750e1 | 7950 | LEX=$ac_cv_prog_LEX |
be01d343 | 7951 | if test -n "$LEX"; then |
81ecdfbb RW |
7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7953 | $as_echo "$LEX" >&6; } | |
be01d343 | 7954 | else |
81ecdfbb RW |
7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7956 | $as_echo "no" >&6; } | |
be01d343 PB |
7957 | fi |
7958 | ||
81ecdfbb | 7959 | |
c6b750e1 | 7960 | test -n "$LEX" && break |
be01d343 PB |
7961 | done |
7962 | test -n "$LEX" || LEX="$MISSING flex" | |
7963 | ||
7964 | case " $build_configdirs " in | |
7965 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7966 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7967 | esac | |
7968 | ||
7969 | for ac_prog in flex | |
7970 | do | |
c6b750e1 | 7971 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7972 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7974 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7975 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 7976 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7977 | else |
7978 | if test -n "$FLEX"; then | |
7979 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7980 | else | |
c6b750e1 DJ |
7981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7982 | for as_dir in $PATH | |
7983 | do | |
7984 | IFS=$as_save_IFS | |
7985 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7986 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7988 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7990 | break 2 |
7991 | fi | |
7992 | done | |
81ecdfbb RW |
7993 | done |
7994 | IFS=$as_save_IFS | |
c6b750e1 | 7995 | |
be01d343 PB |
7996 | fi |
7997 | fi | |
c6b750e1 | 7998 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7999 | if test -n "$FLEX"; then |
81ecdfbb RW |
8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
8001 | $as_echo "$FLEX" >&6; } | |
be01d343 | 8002 | else |
81ecdfbb RW |
8003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8004 | $as_echo "no" >&6; } | |
be01d343 PB |
8005 | fi |
8006 | ||
81ecdfbb | 8007 | |
c6b750e1 | 8008 | test -n "$FLEX" && break |
be01d343 PB |
8009 | done |
8010 | test -n "$FLEX" || FLEX="$MISSING flex" | |
8011 | ||
8012 | case " $build_configdirs " in | |
8013 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8014 | esac | |
8015 | ||
8016 | for ac_prog in makeinfo | |
8017 | do | |
c6b750e1 | 8018 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8019 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8021 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8022 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 8023 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8024 | else |
8025 | if test -n "$MAKEINFO"; then | |
8026 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8027 | else | |
c6b750e1 DJ |
8028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8029 | for as_dir in $PATH | |
8030 | do | |
8031 | IFS=$as_save_IFS | |
8032 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8033 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8035 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 8036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8037 | break 2 |
8038 | fi | |
8039 | done | |
81ecdfbb RW |
8040 | done |
8041 | IFS=$as_save_IFS | |
c6b750e1 | 8042 | |
be01d343 PB |
8043 | fi |
8044 | fi | |
c6b750e1 | 8045 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 8046 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8048 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 8049 | else |
81ecdfbb RW |
8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8051 | $as_echo "no" >&6; } | |
be01d343 PB |
8052 | fi |
8053 | ||
81ecdfbb | 8054 | |
c6b750e1 | 8055 | test -n "$MAKEINFO" && break |
be01d343 PB |
8056 | done |
8057 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8058 | ||
8059 | case " $build_configdirs " in | |
8060 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8061 | *) | |
8062 | ||
10ad8ef3 | 8063 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
8064 | # higher, else we use the "missing" dummy. |
8065 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 8066 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
8067 | : |
8068 | else | |
8069 | MAKEINFO="$MISSING makeinfo" | |
8070 | fi | |
8071 | ;; | |
8072 | ||
8073 | esac | |
a0da8069 | 8074 | |
be01d343 | 8075 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8076 | |
be01d343 PB |
8077 | for ac_prog in expect |
8078 | do | |
c6b750e1 | 8079 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8080 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8082 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8083 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 8084 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8085 | else |
8086 | if test -n "$EXPECT"; then | |
8087 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8088 | else | |
c6b750e1 DJ |
8089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8090 | for as_dir in $PATH | |
8091 | do | |
8092 | IFS=$as_save_IFS | |
8093 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8094 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8095 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8096 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8098 | break 2 |
8099 | fi | |
8100 | done | |
81ecdfbb RW |
8101 | done |
8102 | IFS=$as_save_IFS | |
c6b750e1 | 8103 | |
be01d343 PB |
8104 | fi |
8105 | fi | |
c6b750e1 | 8106 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8107 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8109 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8110 | else |
81ecdfbb RW |
8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8112 | $as_echo "no" >&6; } | |
be01d343 | 8113 | fi |
a0da8069 | 8114 | |
81ecdfbb | 8115 | |
c6b750e1 | 8116 | test -n "$EXPECT" && break |
be01d343 PB |
8117 | done |
8118 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8119 | |
be01d343 PB |
8120 | case " $configdirs " in |
8121 | *" expect "*) | |
8122 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8123 | ;; | |
8124 | esac | |
a0da8069 | 8125 | |
be01d343 PB |
8126 | for ac_prog in runtest |
8127 | do | |
c6b750e1 | 8128 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8129 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8131 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8132 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 8133 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8134 | else |
8135 | if test -n "$RUNTEST"; then | |
8136 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8137 | else | |
c6b750e1 DJ |
8138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8139 | for as_dir in $PATH | |
8140 | do | |
8141 | IFS=$as_save_IFS | |
8142 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8143 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8144 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8145 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8147 | break 2 |
8148 | fi | |
8149 | done | |
81ecdfbb RW |
8150 | done |
8151 | IFS=$as_save_IFS | |
c6b750e1 | 8152 | |
be01d343 PB |
8153 | fi |
8154 | fi | |
c6b750e1 | 8155 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8156 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8158 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8159 | else |
81ecdfbb RW |
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8161 | $as_echo "no" >&6; } | |
be01d343 | 8162 | fi |
a0da8069 | 8163 | |
81ecdfbb | 8164 | |
c6b750e1 | 8165 | test -n "$RUNTEST" && break |
be01d343 PB |
8166 | done |
8167 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8168 | |
be01d343 PB |
8169 | case " $configdirs " in |
8170 | *" dejagnu "*) | |
6b89cc21 | 8171 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8172 | ;; |
8173 | esac | |
a0da8069 NN |
8174 | |
8175 | ||
a0da8069 | 8176 | # Host tools. |
859789af AC |
8177 | ncn_tool_prefix= |
8178 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8179 | ncn_target_tool_prefix= | |
8180 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8181 | ||
9a819804 AO |
8182 | |
8183 | ||
8184 | if test -n "$AR"; then | |
8185 | ac_cv_prog_AR=$AR | |
8186 | elif test -n "$ac_cv_prog_AR"; then | |
8187 | AR=$ac_cv_prog_AR | |
8188 | fi | |
8189 | ||
8190 | if test -n "$ac_cv_prog_AR"; then | |
8191 | for ncn_progname in ar; do | |
8192 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8193 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8195 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8196 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8197 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8198 | else |
8199 | if test -n "$AR"; then | |
8200 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8201 | else | |
8202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8203 | for as_dir in $PATH | |
8204 | do | |
8205 | IFS=$as_save_IFS | |
8206 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8207 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8209 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8211 | break 2 |
8212 | fi | |
8213 | done | |
81ecdfbb RW |
8214 | done |
8215 | IFS=$as_save_IFS | |
9a819804 AO |
8216 | |
8217 | fi | |
8218 | fi | |
8219 | AR=$ac_cv_prog_AR | |
8220 | if test -n "$AR"; then | |
81ecdfbb RW |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8222 | $as_echo "$AR" >&6; } | |
9a819804 | 8223 | else |
81ecdfbb RW |
8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8225 | $as_echo "no" >&6; } | |
9a819804 AO |
8226 | fi |
8227 | ||
81ecdfbb | 8228 | |
9a819804 AO |
8229 | done |
8230 | fi | |
8231 | ||
8232 | for ncn_progname in ar; do | |
05cbd757 PB |
8233 | if test -n "$ncn_tool_prefix"; then |
8234 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8235 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8237 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8238 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8239 | $as_echo_n "(cached) " >&6 |
859789af AC |
8240 | else |
8241 | if test -n "$AR"; then | |
8242 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8243 | else | |
c6b750e1 DJ |
8244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8245 | for as_dir in $PATH | |
8246 | do | |
8247 | IFS=$as_save_IFS | |
8248 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8249 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8251 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8253 | break 2 |
8254 | fi | |
8255 | done | |
81ecdfbb RW |
8256 | done |
8257 | IFS=$as_save_IFS | |
c6b750e1 | 8258 | |
859789af AC |
8259 | fi |
8260 | fi | |
c6b750e1 | 8261 | AR=$ac_cv_prog_AR |
859789af | 8262 | if test -n "$AR"; then |
81ecdfbb RW |
8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8264 | $as_echo "$AR" >&6; } | |
859789af | 8265 | else |
81ecdfbb RW |
8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8267 | $as_echo "no" >&6; } | |
859789af AC |
8268 | fi |
8269 | ||
81ecdfbb | 8270 | |
05cbd757 PB |
8271 | fi |
8272 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8273 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8274 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8276 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8277 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8278 | $as_echo_n "(cached) " >&6 |
859789af | 8279 | else |
05cbd757 PB |
8280 | if test -n "$AR"; then |
8281 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8282 | else |
c6b750e1 DJ |
8283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8284 | for as_dir in $PATH | |
8285 | do | |
8286 | IFS=$as_save_IFS | |
8287 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8288 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8290 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8292 | break 2 |
8293 | fi | |
8294 | done | |
81ecdfbb RW |
8295 | done |
8296 | IFS=$as_save_IFS | |
c6b750e1 | 8297 | |
859789af AC |
8298 | fi |
8299 | fi | |
c6b750e1 | 8300 | AR=$ac_cv_prog_AR |
05cbd757 | 8301 | if test -n "$AR"; then |
81ecdfbb RW |
8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8303 | $as_echo "$AR" >&6; } | |
859789af | 8304 | else |
81ecdfbb RW |
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8306 | $as_echo "no" >&6; } | |
859789af | 8307 | fi |
c6b750e1 | 8308 | |
81ecdfbb | 8309 | |
05cbd757 PB |
8310 | fi |
8311 | test -n "$ac_cv_prog_AR" && break | |
8312 | done | |
8313 | ||
8314 | if test -z "$ac_cv_prog_AR" ; then | |
8315 | set dummy ar | |
8316 | if test $build = $host ; then | |
8317 | AR="$2" | |
859789af | 8318 | else |
05cbd757 | 8319 | AR="${ncn_tool_prefix}$2" |
859789af | 8320 | fi |
859789af AC |
8321 | fi |
8322 | ||
9a819804 AO |
8323 | |
8324 | ||
8325 | if test -n "$AS"; then | |
8326 | ac_cv_prog_AS=$AS | |
8327 | elif test -n "$ac_cv_prog_AS"; then | |
8328 | AS=$ac_cv_prog_AS | |
8329 | fi | |
8330 | ||
8331 | if test -n "$ac_cv_prog_AS"; then | |
8332 | for ncn_progname in as; do | |
8333 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8334 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8336 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8337 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8338 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8339 | else |
8340 | if test -n "$AS"; then | |
8341 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8342 | else | |
8343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8344 | for as_dir in $PATH | |
8345 | do | |
8346 | IFS=$as_save_IFS | |
8347 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8348 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8350 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8352 | break 2 |
8353 | fi | |
8354 | done | |
81ecdfbb RW |
8355 | done |
8356 | IFS=$as_save_IFS | |
9a819804 AO |
8357 | |
8358 | fi | |
8359 | fi | |
8360 | AS=$ac_cv_prog_AS | |
8361 | if test -n "$AS"; then | |
81ecdfbb RW |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8363 | $as_echo "$AS" >&6; } | |
9a819804 | 8364 | else |
81ecdfbb RW |
8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8366 | $as_echo "no" >&6; } | |
9a819804 AO |
8367 | fi |
8368 | ||
81ecdfbb | 8369 | |
9a819804 AO |
8370 | done |
8371 | fi | |
8372 | ||
8373 | for ncn_progname in as; do | |
05cbd757 PB |
8374 | if test -n "$ncn_tool_prefix"; then |
8375 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8376 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8378 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8379 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8380 | $as_echo_n "(cached) " >&6 |
859789af AC |
8381 | else |
8382 | if test -n "$AS"; then | |
8383 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8384 | else |
8385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8386 | for as_dir in $PATH | |
8387 | do | |
8388 | IFS=$as_save_IFS | |
8389 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8390 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8392 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8394 | break 2 |
8395 | fi | |
8396 | done | |
81ecdfbb RW |
8397 | done |
8398 | IFS=$as_save_IFS | |
c6b750e1 | 8399 | |
859789af AC |
8400 | fi |
8401 | fi | |
c6b750e1 | 8402 | AS=$ac_cv_prog_AS |
859789af | 8403 | if test -n "$AS"; then |
81ecdfbb RW |
8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8405 | $as_echo "$AS" >&6; } | |
859789af | 8406 | else |
81ecdfbb RW |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8408 | $as_echo "no" >&6; } | |
859789af AC |
8409 | fi |
8410 | ||
81ecdfbb | 8411 | |
05cbd757 PB |
8412 | fi |
8413 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8414 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8415 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8417 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8418 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8419 | $as_echo_n "(cached) " >&6 |
859789af | 8420 | else |
05cbd757 PB |
8421 | if test -n "$AS"; then |
8422 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8423 | else |
c6b750e1 DJ |
8424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8425 | for as_dir in $PATH | |
8426 | do | |
8427 | IFS=$as_save_IFS | |
8428 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8429 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8430 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8431 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8433 | break 2 |
8434 | fi | |
8435 | done | |
81ecdfbb RW |
8436 | done |
8437 | IFS=$as_save_IFS | |
c6b750e1 | 8438 | |
859789af AC |
8439 | fi |
8440 | fi | |
c6b750e1 | 8441 | AS=$ac_cv_prog_AS |
05cbd757 | 8442 | if test -n "$AS"; then |
81ecdfbb RW |
8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8444 | $as_echo "$AS" >&6; } | |
859789af | 8445 | else |
81ecdfbb RW |
8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8447 | $as_echo "no" >&6; } | |
859789af | 8448 | fi |
c6b750e1 | 8449 | |
81ecdfbb | 8450 | |
05cbd757 PB |
8451 | fi |
8452 | test -n "$ac_cv_prog_AS" && break | |
8453 | done | |
8454 | ||
8455 | if test -z "$ac_cv_prog_AS" ; then | |
8456 | set dummy as | |
8457 | if test $build = $host ; then | |
8458 | AS="$2" | |
859789af | 8459 | else |
05cbd757 | 8460 | AS="${ncn_tool_prefix}$2" |
859789af | 8461 | fi |
859789af AC |
8462 | fi |
8463 | ||
9a819804 AO |
8464 | |
8465 | ||
8466 | if test -n "$DLLTOOL"; then | |
8467 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8468 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8469 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8470 | fi | |
8471 | ||
8472 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8473 | for ncn_progname in dlltool; do | |
8474 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8475 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8477 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8478 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8479 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8480 | else |
8481 | if test -n "$DLLTOOL"; then | |
8482 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8483 | else | |
8484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8485 | for as_dir in $PATH | |
8486 | do | |
8487 | IFS=$as_save_IFS | |
8488 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8489 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8491 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8493 | break 2 |
8494 | fi | |
8495 | done | |
81ecdfbb RW |
8496 | done |
8497 | IFS=$as_save_IFS | |
9a819804 AO |
8498 | |
8499 | fi | |
8500 | fi | |
8501 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8502 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8504 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8505 | else |
81ecdfbb RW |
8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8507 | $as_echo "no" >&6; } | |
9a819804 AO |
8508 | fi |
8509 | ||
81ecdfbb | 8510 | |
9a819804 AO |
8511 | done |
8512 | fi | |
8513 | ||
8514 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8515 | if test -n "$ncn_tool_prefix"; then |
8516 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8517 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8519 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8520 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8521 | $as_echo_n "(cached) " >&6 |
859789af AC |
8522 | else |
8523 | if test -n "$DLLTOOL"; then | |
8524 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8525 | else | |
c6b750e1 DJ |
8526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8527 | for as_dir in $PATH | |
8528 | do | |
8529 | IFS=$as_save_IFS | |
8530 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8531 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8533 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8535 | break 2 |
8536 | fi | |
8537 | done | |
81ecdfbb RW |
8538 | done |
8539 | IFS=$as_save_IFS | |
c6b750e1 | 8540 | |
859789af AC |
8541 | fi |
8542 | fi | |
c6b750e1 | 8543 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8544 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8546 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8547 | else |
81ecdfbb RW |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8549 | $as_echo "no" >&6; } | |
859789af AC |
8550 | fi |
8551 | ||
81ecdfbb | 8552 | |
05cbd757 PB |
8553 | fi |
8554 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8555 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8556 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8558 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8559 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8560 | $as_echo_n "(cached) " >&6 |
859789af | 8561 | else |
05cbd757 PB |
8562 | if test -n "$DLLTOOL"; then |
8563 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8564 | else |
c6b750e1 DJ |
8565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8566 | for as_dir in $PATH | |
8567 | do | |
8568 | IFS=$as_save_IFS | |
8569 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8570 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8572 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8574 | break 2 |
8575 | fi | |
8576 | done | |
81ecdfbb RW |
8577 | done |
8578 | IFS=$as_save_IFS | |
c6b750e1 | 8579 | |
859789af AC |
8580 | fi |
8581 | fi | |
c6b750e1 | 8582 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8583 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8585 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8586 | else |
81ecdfbb RW |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8588 | $as_echo "no" >&6; } | |
859789af | 8589 | fi |
c6b750e1 | 8590 | |
81ecdfbb | 8591 | |
05cbd757 PB |
8592 | fi |
8593 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8594 | done | |
8595 | ||
8596 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8597 | set dummy dlltool | |
8598 | if test $build = $host ; then | |
8599 | DLLTOOL="$2" | |
859789af | 8600 | else |
05cbd757 | 8601 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8602 | fi |
859789af AC |
8603 | fi |
8604 | ||
9a819804 AO |
8605 | |
8606 | ||
8607 | if test -n "$LD"; then | |
8608 | ac_cv_prog_LD=$LD | |
8609 | elif test -n "$ac_cv_prog_LD"; then | |
8610 | LD=$ac_cv_prog_LD | |
8611 | fi | |
8612 | ||
8613 | if test -n "$ac_cv_prog_LD"; then | |
8614 | for ncn_progname in ld; do | |
8615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8616 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8618 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8619 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8620 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8621 | else |
8622 | if test -n "$LD"; then | |
8623 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8624 | else | |
8625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8626 | for as_dir in $PATH | |
8627 | do | |
8628 | IFS=$as_save_IFS | |
8629 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8630 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8632 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8634 | break 2 |
8635 | fi | |
8636 | done | |
81ecdfbb RW |
8637 | done |
8638 | IFS=$as_save_IFS | |
9a819804 AO |
8639 | |
8640 | fi | |
8641 | fi | |
8642 | LD=$ac_cv_prog_LD | |
8643 | if test -n "$LD"; then | |
81ecdfbb RW |
8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8645 | $as_echo "$LD" >&6; } | |
9a819804 | 8646 | else |
81ecdfbb RW |
8647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8648 | $as_echo "no" >&6; } | |
9a819804 AO |
8649 | fi |
8650 | ||
81ecdfbb | 8651 | |
9a819804 AO |
8652 | done |
8653 | fi | |
8654 | ||
8655 | for ncn_progname in ld; do | |
05cbd757 PB |
8656 | if test -n "$ncn_tool_prefix"; then |
8657 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8658 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8660 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8661 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8662 | $as_echo_n "(cached) " >&6 |
859789af AC |
8663 | else |
8664 | if test -n "$LD"; then | |
8665 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8666 | else | |
c6b750e1 DJ |
8667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8668 | for as_dir in $PATH | |
8669 | do | |
8670 | IFS=$as_save_IFS | |
8671 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8672 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8674 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8676 | break 2 |
8677 | fi | |
8678 | done | |
81ecdfbb RW |
8679 | done |
8680 | IFS=$as_save_IFS | |
c6b750e1 | 8681 | |
859789af AC |
8682 | fi |
8683 | fi | |
c6b750e1 | 8684 | LD=$ac_cv_prog_LD |
859789af | 8685 | if test -n "$LD"; then |
81ecdfbb RW |
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8687 | $as_echo "$LD" >&6; } | |
859789af | 8688 | else |
81ecdfbb RW |
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8690 | $as_echo "no" >&6; } | |
859789af AC |
8691 | fi |
8692 | ||
81ecdfbb | 8693 | |
05cbd757 PB |
8694 | fi |
8695 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8696 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8697 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8699 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8700 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8701 | $as_echo_n "(cached) " >&6 |
859789af | 8702 | else |
05cbd757 PB |
8703 | if test -n "$LD"; then |
8704 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8705 | else |
c6b750e1 DJ |
8706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8707 | for as_dir in $PATH | |
8708 | do | |
8709 | IFS=$as_save_IFS | |
8710 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8711 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8713 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8715 | break 2 |
8716 | fi | |
8717 | done | |
81ecdfbb RW |
8718 | done |
8719 | IFS=$as_save_IFS | |
c6b750e1 | 8720 | |
859789af AC |
8721 | fi |
8722 | fi | |
c6b750e1 | 8723 | LD=$ac_cv_prog_LD |
05cbd757 | 8724 | if test -n "$LD"; then |
81ecdfbb RW |
8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8726 | $as_echo "$LD" >&6; } | |
859789af | 8727 | else |
81ecdfbb RW |
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8729 | $as_echo "no" >&6; } | |
859789af | 8730 | fi |
c6b750e1 | 8731 | |
81ecdfbb | 8732 | |
05cbd757 PB |
8733 | fi |
8734 | test -n "$ac_cv_prog_LD" && break | |
8735 | done | |
8736 | ||
8737 | if test -z "$ac_cv_prog_LD" ; then | |
8738 | set dummy ld | |
8739 | if test $build = $host ; then | |
8740 | LD="$2" | |
859789af | 8741 | else |
05cbd757 | 8742 | LD="${ncn_tool_prefix}$2" |
859789af | 8743 | fi |
859789af AC |
8744 | fi |
8745 | ||
9a819804 AO |
8746 | |
8747 | ||
8748 | if test -n "$LIPO"; then | |
8749 | ac_cv_prog_LIPO=$LIPO | |
8750 | elif test -n "$ac_cv_prog_LIPO"; then | |
8751 | LIPO=$ac_cv_prog_LIPO | |
8752 | fi | |
8753 | ||
8754 | if test -n "$ac_cv_prog_LIPO"; then | |
8755 | for ncn_progname in lipo; do | |
8756 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8757 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8759 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8760 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8761 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8762 | else |
8763 | if test -n "$LIPO"; then | |
8764 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8765 | else | |
8766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8767 | for as_dir in $PATH | |
8768 | do | |
8769 | IFS=$as_save_IFS | |
8770 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8771 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8773 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8775 | break 2 |
8776 | fi | |
8777 | done | |
81ecdfbb RW |
8778 | done |
8779 | IFS=$as_save_IFS | |
9a819804 AO |
8780 | |
8781 | fi | |
8782 | fi | |
8783 | LIPO=$ac_cv_prog_LIPO | |
8784 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8786 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8787 | else |
81ecdfbb RW |
8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8789 | $as_echo "no" >&6; } | |
9a819804 AO |
8790 | fi |
8791 | ||
81ecdfbb | 8792 | |
9a819804 AO |
8793 | done |
8794 | fi | |
8795 | ||
8796 | for ncn_progname in lipo; do | |
be01d343 PB |
8797 | if test -n "$ncn_tool_prefix"; then |
8798 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8799 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8801 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8802 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8803 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8804 | else |
8805 | if test -n "$LIPO"; then | |
8806 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8807 | else | |
c6b750e1 DJ |
8808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8809 | for as_dir in $PATH | |
8810 | do | |
8811 | IFS=$as_save_IFS | |
8812 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8813 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8815 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8817 | break 2 |
8818 | fi | |
8819 | done | |
81ecdfbb RW |
8820 | done |
8821 | IFS=$as_save_IFS | |
c6b750e1 | 8822 | |
be01d343 PB |
8823 | fi |
8824 | fi | |
c6b750e1 | 8825 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8826 | if test -n "$LIPO"; then |
81ecdfbb RW |
8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8828 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8829 | else |
81ecdfbb RW |
8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8831 | $as_echo "no" >&6; } | |
be01d343 PB |
8832 | fi |
8833 | ||
81ecdfbb | 8834 | |
be01d343 PB |
8835 | fi |
8836 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8837 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8838 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8840 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8841 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8842 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8843 | else |
8844 | if test -n "$LIPO"; then | |
8845 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8846 | else | |
c6b750e1 DJ |
8847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8848 | for as_dir in $PATH | |
8849 | do | |
8850 | IFS=$as_save_IFS | |
8851 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8852 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8853 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8854 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8856 | break 2 |
8857 | fi | |
8858 | done | |
81ecdfbb RW |
8859 | done |
8860 | IFS=$as_save_IFS | |
c6b750e1 | 8861 | |
be01d343 PB |
8862 | fi |
8863 | fi | |
c6b750e1 | 8864 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8865 | if test -n "$LIPO"; then |
81ecdfbb RW |
8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8867 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8868 | else |
81ecdfbb RW |
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8870 | $as_echo "no" >&6; } | |
be01d343 | 8871 | fi |
c6b750e1 | 8872 | |
81ecdfbb | 8873 | |
be01d343 PB |
8874 | fi |
8875 | test -n "$ac_cv_prog_LIPO" && break | |
8876 | done | |
8877 | ||
8878 | if test -z "$ac_cv_prog_LIPO" ; then | |
8879 | set dummy lipo | |
8880 | if test $build = $host ; then | |
8881 | LIPO="$2" | |
8882 | else | |
8883 | LIPO="${ncn_tool_prefix}$2" | |
8884 | fi | |
8885 | fi | |
8886 | ||
9a819804 AO |
8887 | |
8888 | ||
8889 | if test -n "$NM"; then | |
8890 | ac_cv_prog_NM=$NM | |
8891 | elif test -n "$ac_cv_prog_NM"; then | |
8892 | NM=$ac_cv_prog_NM | |
8893 | fi | |
8894 | ||
8895 | if test -n "$ac_cv_prog_NM"; then | |
8896 | for ncn_progname in nm; do | |
8897 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8898 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8900 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8901 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8902 | $as_echo_n "(cached) " >&6 |
859789af AC |
8903 | else |
8904 | if test -n "$NM"; then | |
8905 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8906 | else | |
c6b750e1 DJ |
8907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8908 | for as_dir in $PATH | |
8909 | do | |
8910 | IFS=$as_save_IFS | |
8911 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8912 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8914 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8916 | break 2 |
8917 | fi | |
8918 | done | |
81ecdfbb RW |
8919 | done |
8920 | IFS=$as_save_IFS | |
c6b750e1 | 8921 | |
859789af AC |
8922 | fi |
8923 | fi | |
c6b750e1 | 8924 | NM=$ac_cv_prog_NM |
859789af | 8925 | if test -n "$NM"; then |
81ecdfbb RW |
8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8927 | $as_echo "$NM" >&6; } | |
859789af | 8928 | else |
81ecdfbb RW |
8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8930 | $as_echo "no" >&6; } | |
859789af AC |
8931 | fi |
8932 | ||
81ecdfbb | 8933 | |
9a819804 AO |
8934 | done |
8935 | fi | |
8936 | ||
8937 | for ncn_progname in nm; do | |
8938 | if test -n "$ncn_tool_prefix"; then | |
8939 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8940 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8942 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8943 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8944 | $as_echo_n "(cached) " >&6 |
859789af | 8945 | else |
05cbd757 PB |
8946 | if test -n "$NM"; then |
8947 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8948 | else |
c6b750e1 DJ |
8949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8950 | for as_dir in $PATH | |
8951 | do | |
8952 | IFS=$as_save_IFS | |
8953 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8954 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8956 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8958 | break 2 |
8959 | fi | |
8960 | done | |
81ecdfbb RW |
8961 | done |
8962 | IFS=$as_save_IFS | |
c6b750e1 | 8963 | |
859789af AC |
8964 | fi |
8965 | fi | |
c6b750e1 | 8966 | NM=$ac_cv_prog_NM |
05cbd757 | 8967 | if test -n "$NM"; then |
81ecdfbb RW |
8968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8969 | $as_echo "$NM" >&6; } | |
859789af | 8970 | else |
81ecdfbb RW |
8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8972 | $as_echo "no" >&6; } | |
859789af | 8973 | fi |
c6b750e1 | 8974 | |
81ecdfbb | 8975 | |
05cbd757 | 8976 | fi |
9a819804 AO |
8977 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8978 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8979 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8981 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8982 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8983 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8984 | else |
8985 | if test -n "$NM"; then | |
8986 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8987 | else | |
8988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8989 | for as_dir in $PATH | |
8990 | do | |
8991 | IFS=$as_save_IFS | |
8992 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8993 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8994 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8995 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8997 | break 2 |
8998 | fi | |
8999 | done | |
81ecdfbb RW |
9000 | done |
9001 | IFS=$as_save_IFS | |
9a819804 AO |
9002 | |
9003 | fi | |
9004 | fi | |
9005 | NM=$ac_cv_prog_NM | |
9006 | if test -n "$NM"; then | |
81ecdfbb RW |
9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9008 | $as_echo "$NM" >&6; } | |
9a819804 | 9009 | else |
81ecdfbb RW |
9010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9011 | $as_echo "no" >&6; } | |
9a819804 AO |
9012 | fi |
9013 | ||
81ecdfbb | 9014 | |
9a819804 AO |
9015 | fi |
9016 | test -n "$ac_cv_prog_NM" && break | |
9017 | done | |
9018 | ||
9019 | if test -z "$ac_cv_prog_NM" ; then | |
9020 | set dummy nm | |
9021 | if test $build = $host ; then | |
9022 | NM="$2" | |
9023 | else | |
9024 | NM="${ncn_tool_prefix}$2" | |
9025 | fi | |
9026 | fi | |
9027 | ||
9028 | ||
9029 | ||
9030 | if test -n "$RANLIB"; then | |
9031 | ac_cv_prog_RANLIB=$RANLIB | |
9032 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9033 | RANLIB=$ac_cv_prog_RANLIB | |
9034 | fi | |
9035 | ||
9036 | if test -n "$ac_cv_prog_RANLIB"; then | |
9037 | for ncn_progname in ranlib; do | |
9038 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9039 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9041 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9042 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9043 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9044 | else |
9045 | if test -n "$RANLIB"; then | |
9046 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9047 | else | |
9048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9049 | for as_dir in $PATH | |
9050 | do | |
9051 | IFS=$as_save_IFS | |
9052 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9053 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9055 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9057 | break 2 |
9058 | fi | |
9059 | done | |
81ecdfbb RW |
9060 | done |
9061 | IFS=$as_save_IFS | |
9a819804 AO |
9062 | |
9063 | fi | |
9064 | fi | |
9065 | RANLIB=$ac_cv_prog_RANLIB | |
9066 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9068 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 9069 | else |
81ecdfbb RW |
9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9071 | $as_echo "no" >&6; } | |
9a819804 AO |
9072 | fi |
9073 | ||
81ecdfbb | 9074 | |
9a819804 AO |
9075 | done |
9076 | fi | |
859789af | 9077 | |
9a819804 | 9078 | for ncn_progname in ranlib; do |
05cbd757 PB |
9079 | if test -n "$ncn_tool_prefix"; then |
9080 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9081 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9083 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9084 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9085 | $as_echo_n "(cached) " >&6 |
859789af AC |
9086 | else |
9087 | if test -n "$RANLIB"; then | |
9088 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9089 | else | |
c6b750e1 DJ |
9090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9091 | for as_dir in $PATH | |
9092 | do | |
9093 | IFS=$as_save_IFS | |
9094 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9095 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9097 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9099 | break 2 |
9100 | fi | |
9101 | done | |
81ecdfbb RW |
9102 | done |
9103 | IFS=$as_save_IFS | |
c6b750e1 | 9104 | |
859789af AC |
9105 | fi |
9106 | fi | |
c6b750e1 | 9107 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9108 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9110 | $as_echo "$RANLIB" >&6; } | |
859789af | 9111 | else |
81ecdfbb RW |
9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9113 | $as_echo "no" >&6; } | |
859789af AC |
9114 | fi |
9115 | ||
81ecdfbb | 9116 | |
05cbd757 PB |
9117 | fi |
9118 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9119 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9120 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9122 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9123 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9124 | $as_echo_n "(cached) " >&6 |
859789af | 9125 | else |
05cbd757 PB |
9126 | if test -n "$RANLIB"; then |
9127 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9128 | else |
c6b750e1 DJ |
9129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9130 | for as_dir in $PATH | |
9131 | do | |
9132 | IFS=$as_save_IFS | |
9133 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9134 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9135 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9136 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9138 | break 2 |
9139 | fi | |
9140 | done | |
81ecdfbb RW |
9141 | done |
9142 | IFS=$as_save_IFS | |
c6b750e1 | 9143 | |
859789af AC |
9144 | fi |
9145 | fi | |
c6b750e1 | 9146 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9147 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9149 | $as_echo "$RANLIB" >&6; } | |
859789af | 9150 | else |
81ecdfbb RW |
9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9152 | $as_echo "no" >&6; } | |
859789af | 9153 | fi |
c6b750e1 | 9154 | |
81ecdfbb | 9155 | |
859789af | 9156 | fi |
05cbd757 PB |
9157 | test -n "$ac_cv_prog_RANLIB" && break |
9158 | done | |
9159 | ||
9160 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9161 | RANLIB="true" |
859789af AC |
9162 | fi |
9163 | ||
9a819804 AO |
9164 | |
9165 | ||
9166 | if test -n "$STRIP"; then | |
9167 | ac_cv_prog_STRIP=$STRIP | |
9168 | elif test -n "$ac_cv_prog_STRIP"; then | |
9169 | STRIP=$ac_cv_prog_STRIP | |
9170 | fi | |
9171 | ||
9172 | if test -n "$ac_cv_prog_STRIP"; then | |
9173 | for ncn_progname in strip; do | |
9174 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9175 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9177 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9178 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9179 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9180 | else |
9181 | if test -n "$STRIP"; then | |
9182 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9183 | else | |
9184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9185 | for as_dir in $PATH | |
9186 | do | |
9187 | IFS=$as_save_IFS | |
9188 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9189 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9191 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9193 | break 2 |
9194 | fi | |
9195 | done | |
81ecdfbb RW |
9196 | done |
9197 | IFS=$as_save_IFS | |
9a819804 AO |
9198 | |
9199 | fi | |
9200 | fi | |
9201 | STRIP=$ac_cv_prog_STRIP | |
9202 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9204 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9205 | else |
81ecdfbb RW |
9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9207 | $as_echo "no" >&6; } | |
9a819804 AO |
9208 | fi |
9209 | ||
81ecdfbb | 9210 | |
9a819804 AO |
9211 | done |
9212 | fi | |
9213 | ||
9214 | for ncn_progname in strip; do | |
be01d343 PB |
9215 | if test -n "$ncn_tool_prefix"; then |
9216 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9217 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9219 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9220 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9221 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9222 | else |
9223 | if test -n "$STRIP"; then | |
9224 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9225 | else | |
c6b750e1 DJ |
9226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9227 | for as_dir in $PATH | |
9228 | do | |
9229 | IFS=$as_save_IFS | |
9230 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9231 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9233 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9235 | break 2 |
9236 | fi | |
9237 | done | |
81ecdfbb RW |
9238 | done |
9239 | IFS=$as_save_IFS | |
c6b750e1 | 9240 | |
be01d343 PB |
9241 | fi |
9242 | fi | |
c6b750e1 | 9243 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9244 | if test -n "$STRIP"; then |
81ecdfbb RW |
9245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9246 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9247 | else |
81ecdfbb RW |
9248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9249 | $as_echo "no" >&6; } | |
be01d343 PB |
9250 | fi |
9251 | ||
81ecdfbb | 9252 | |
be01d343 PB |
9253 | fi |
9254 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9255 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9256 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9258 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9259 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9260 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9261 | else |
9262 | if test -n "$STRIP"; then | |
9263 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9264 | else | |
c6b750e1 DJ |
9265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9266 | for as_dir in $PATH | |
9267 | do | |
9268 | IFS=$as_save_IFS | |
9269 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9270 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9272 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9274 | break 2 |
9275 | fi | |
9276 | done | |
81ecdfbb RW |
9277 | done |
9278 | IFS=$as_save_IFS | |
c6b750e1 | 9279 | |
be01d343 PB |
9280 | fi |
9281 | fi | |
c6b750e1 | 9282 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9283 | if test -n "$STRIP"; then |
81ecdfbb RW |
9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9285 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9286 | else |
81ecdfbb RW |
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9288 | $as_echo "no" >&6; } | |
be01d343 | 9289 | fi |
c6b750e1 | 9290 | |
81ecdfbb | 9291 | |
be01d343 PB |
9292 | fi |
9293 | test -n "$ac_cv_prog_STRIP" && break | |
9294 | done | |
9295 | ||
9296 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9297 | STRIP="true" |
be01d343 PB |
9298 | fi |
9299 | ||
9a819804 AO |
9300 | |
9301 | ||
9302 | if test -n "$WINDRES"; then | |
9303 | ac_cv_prog_WINDRES=$WINDRES | |
9304 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9305 | WINDRES=$ac_cv_prog_WINDRES | |
9306 | fi | |
9307 | ||
9308 | if test -n "$ac_cv_prog_WINDRES"; then | |
9309 | for ncn_progname in windres; do | |
9310 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9311 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9313 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9314 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9315 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9316 | else |
9317 | if test -n "$WINDRES"; then | |
9318 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9319 | else | |
9320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9321 | for as_dir in $PATH | |
9322 | do | |
9323 | IFS=$as_save_IFS | |
9324 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9325 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9326 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9327 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9329 | break 2 |
9330 | fi | |
9331 | done | |
81ecdfbb RW |
9332 | done |
9333 | IFS=$as_save_IFS | |
9a819804 AO |
9334 | |
9335 | fi | |
9336 | fi | |
9337 | WINDRES=$ac_cv_prog_WINDRES | |
9338 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9340 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9341 | else |
81ecdfbb RW |
9342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9343 | $as_echo "no" >&6; } | |
9a819804 AO |
9344 | fi |
9345 | ||
81ecdfbb | 9346 | |
9a819804 AO |
9347 | done |
9348 | fi | |
9349 | ||
9350 | for ncn_progname in windres; do | |
05cbd757 PB |
9351 | if test -n "$ncn_tool_prefix"; then |
9352 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9353 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9355 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9356 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9357 | $as_echo_n "(cached) " >&6 |
859789af AC |
9358 | else |
9359 | if test -n "$WINDRES"; then | |
9360 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9361 | else | |
c6b750e1 DJ |
9362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9363 | for as_dir in $PATH | |
9364 | do | |
9365 | IFS=$as_save_IFS | |
9366 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9367 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9369 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9371 | break 2 |
9372 | fi | |
9373 | done | |
81ecdfbb RW |
9374 | done |
9375 | IFS=$as_save_IFS | |
c6b750e1 | 9376 | |
859789af AC |
9377 | fi |
9378 | fi | |
c6b750e1 | 9379 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9380 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9382 | $as_echo "$WINDRES" >&6; } | |
859789af | 9383 | else |
81ecdfbb RW |
9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9385 | $as_echo "no" >&6; } | |
859789af AC |
9386 | fi |
9387 | ||
81ecdfbb | 9388 | |
05cbd757 PB |
9389 | fi |
9390 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9391 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9392 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9394 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9395 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9396 | $as_echo_n "(cached) " >&6 |
859789af | 9397 | else |
05cbd757 PB |
9398 | if test -n "$WINDRES"; then |
9399 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9400 | else |
c6b750e1 DJ |
9401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9402 | for as_dir in $PATH | |
9403 | do | |
9404 | IFS=$as_save_IFS | |
9405 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9406 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9408 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9410 | break 2 |
9411 | fi | |
9412 | done | |
81ecdfbb RW |
9413 | done |
9414 | IFS=$as_save_IFS | |
c6b750e1 | 9415 | |
859789af AC |
9416 | fi |
9417 | fi | |
c6b750e1 | 9418 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9419 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9421 | $as_echo "$WINDRES" >&6; } | |
859789af | 9422 | else |
81ecdfbb RW |
9423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9424 | $as_echo "no" >&6; } | |
859789af | 9425 | fi |
c6b750e1 | 9426 | |
81ecdfbb | 9427 | |
05cbd757 PB |
9428 | fi |
9429 | test -n "$ac_cv_prog_WINDRES" && break | |
9430 | done | |
9431 | ||
9432 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9433 | set dummy windres | |
9434 | if test $build = $host ; then | |
9435 | WINDRES="$2" | |
859789af | 9436 | else |
05cbd757 | 9437 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9438 | fi |
859789af AC |
9439 | fi |
9440 | ||
9a819804 AO |
9441 | |
9442 | ||
0c24b341 NC |
9443 | if test -n "$WINDMC"; then |
9444 | ac_cv_prog_WINDMC=$WINDMC | |
9445 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9446 | WINDMC=$ac_cv_prog_WINDMC | |
9447 | fi | |
9448 | ||
9449 | if test -n "$ac_cv_prog_WINDMC"; then | |
9450 | for ncn_progname in windmc; do | |
9451 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9452 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9454 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9455 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9456 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9457 | else |
9458 | if test -n "$WINDMC"; then | |
9459 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9460 | else | |
9461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9462 | for as_dir in $PATH | |
9463 | do | |
9464 | IFS=$as_save_IFS | |
9465 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9466 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9468 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9470 | break 2 |
9471 | fi | |
9472 | done | |
81ecdfbb RW |
9473 | done |
9474 | IFS=$as_save_IFS | |
0c24b341 NC |
9475 | |
9476 | fi | |
9477 | fi | |
9478 | WINDMC=$ac_cv_prog_WINDMC | |
9479 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9481 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9482 | else |
81ecdfbb RW |
9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9484 | $as_echo "no" >&6; } | |
0c24b341 NC |
9485 | fi |
9486 | ||
81ecdfbb | 9487 | |
0c24b341 NC |
9488 | done |
9489 | fi | |
9490 | ||
9491 | for ncn_progname in windmc; do | |
9492 | if test -n "$ncn_tool_prefix"; then | |
9493 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9494 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9496 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9497 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9498 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9499 | else |
9500 | if test -n "$WINDMC"; then | |
9501 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9502 | else | |
9503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9504 | for as_dir in $PATH | |
9505 | do | |
9506 | IFS=$as_save_IFS | |
9507 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9508 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9509 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9510 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9512 | break 2 |
9513 | fi | |
9514 | done | |
81ecdfbb RW |
9515 | done |
9516 | IFS=$as_save_IFS | |
0c24b341 NC |
9517 | |
9518 | fi | |
9519 | fi | |
9520 | WINDMC=$ac_cv_prog_WINDMC | |
9521 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9523 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9524 | else |
81ecdfbb RW |
9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9526 | $as_echo "no" >&6; } | |
0c24b341 NC |
9527 | fi |
9528 | ||
81ecdfbb | 9529 | |
0c24b341 NC |
9530 | fi |
9531 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9532 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9533 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9535 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9536 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9537 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9538 | else |
9539 | if test -n "$WINDMC"; then | |
9540 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9541 | else | |
9542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9543 | for as_dir in $PATH | |
9544 | do | |
9545 | IFS=$as_save_IFS | |
9546 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9547 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9549 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9551 | break 2 |
9552 | fi | |
9553 | done | |
81ecdfbb RW |
9554 | done |
9555 | IFS=$as_save_IFS | |
0c24b341 NC |
9556 | |
9557 | fi | |
9558 | fi | |
9559 | WINDMC=$ac_cv_prog_WINDMC | |
9560 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9562 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9563 | else |
81ecdfbb RW |
9564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9565 | $as_echo "no" >&6; } | |
0c24b341 NC |
9566 | fi |
9567 | ||
81ecdfbb | 9568 | |
0c24b341 NC |
9569 | fi |
9570 | test -n "$ac_cv_prog_WINDMC" && break | |
9571 | done | |
9572 | ||
9573 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9574 | set dummy windmc | |
9575 | if test $build = $host ; then | |
9576 | WINDMC="$2" | |
9577 | else | |
9578 | WINDMC="${ncn_tool_prefix}$2" | |
9579 | fi | |
9580 | fi | |
9581 | ||
9582 | ||
9583 | ||
9a819804 AO |
9584 | if test -n "$OBJCOPY"; then |
9585 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9586 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9587 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9588 | fi | |
9589 | ||
9590 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9591 | for ncn_progname in objcopy; do | |
9592 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9593 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9595 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9596 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9597 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9598 | else |
9599 | if test -n "$OBJCOPY"; then | |
9600 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9601 | else | |
9602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9603 | for as_dir in $PATH | |
9604 | do | |
9605 | IFS=$as_save_IFS | |
9606 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9607 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9608 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9609 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9611 | break 2 |
9612 | fi | |
9613 | done | |
81ecdfbb RW |
9614 | done |
9615 | IFS=$as_save_IFS | |
9a819804 AO |
9616 | |
9617 | fi | |
9618 | fi | |
9619 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9620 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9622 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9623 | else |
81ecdfbb RW |
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9625 | $as_echo "no" >&6; } | |
9a819804 AO |
9626 | fi |
9627 | ||
81ecdfbb | 9628 | |
9a819804 AO |
9629 | done |
9630 | fi | |
9631 | ||
9632 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9633 | if test -n "$ncn_tool_prefix"; then |
9634 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9635 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9637 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9638 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9639 | $as_echo_n "(cached) " >&6 |
859789af AC |
9640 | else |
9641 | if test -n "$OBJCOPY"; then | |
9642 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9643 | else | |
c6b750e1 DJ |
9644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9645 | for as_dir in $PATH | |
9646 | do | |
9647 | IFS=$as_save_IFS | |
9648 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9649 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9651 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9653 | break 2 |
9654 | fi | |
9655 | done | |
81ecdfbb RW |
9656 | done |
9657 | IFS=$as_save_IFS | |
c6b750e1 | 9658 | |
859789af AC |
9659 | fi |
9660 | fi | |
c6b750e1 | 9661 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9662 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9664 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9665 | else |
81ecdfbb RW |
9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9667 | $as_echo "no" >&6; } | |
859789af AC |
9668 | fi |
9669 | ||
81ecdfbb | 9670 | |
05cbd757 PB |
9671 | fi |
9672 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9674 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9676 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9677 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9678 | $as_echo_n "(cached) " >&6 |
859789af | 9679 | else |
05cbd757 PB |
9680 | if test -n "$OBJCOPY"; then |
9681 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9682 | else |
c6b750e1 DJ |
9683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9684 | for as_dir in $PATH | |
9685 | do | |
9686 | IFS=$as_save_IFS | |
9687 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9688 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9690 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9692 | break 2 |
9693 | fi | |
9694 | done | |
81ecdfbb RW |
9695 | done |
9696 | IFS=$as_save_IFS | |
c6b750e1 | 9697 | |
859789af AC |
9698 | fi |
9699 | fi | |
c6b750e1 | 9700 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9701 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9703 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9704 | else |
81ecdfbb RW |
9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9706 | $as_echo "no" >&6; } | |
859789af | 9707 | fi |
c6b750e1 | 9708 | |
81ecdfbb | 9709 | |
05cbd757 PB |
9710 | fi |
9711 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9712 | done | |
9713 | ||
9714 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9715 | set dummy objcopy | |
9716 | if test $build = $host ; then | |
9717 | OBJCOPY="$2" | |
859789af | 9718 | else |
05cbd757 | 9719 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9720 | fi |
859789af AC |
9721 | fi |
9722 | ||
9a819804 AO |
9723 | |
9724 | ||
9725 | if test -n "$OBJDUMP"; then | |
9726 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9727 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9728 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9729 | fi | |
9730 | ||
9731 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9732 | for ncn_progname in objdump; do | |
9733 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9734 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9736 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9737 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9738 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9739 | else |
9740 | if test -n "$OBJDUMP"; then | |
9741 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9742 | else | |
9743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9744 | for as_dir in $PATH | |
9745 | do | |
9746 | IFS=$as_save_IFS | |
9747 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9748 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9749 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9750 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9752 | break 2 |
9753 | fi | |
9754 | done | |
81ecdfbb RW |
9755 | done |
9756 | IFS=$as_save_IFS | |
9a819804 AO |
9757 | |
9758 | fi | |
9759 | fi | |
9760 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9761 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9763 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9764 | else |
81ecdfbb RW |
9765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9766 | $as_echo "no" >&6; } | |
9a819804 AO |
9767 | fi |
9768 | ||
81ecdfbb | 9769 | |
9a819804 AO |
9770 | done |
9771 | fi | |
9772 | ||
9773 | for ncn_progname in objdump; do | |
05cbd757 PB |
9774 | if test -n "$ncn_tool_prefix"; then |
9775 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9776 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9778 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9779 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9780 | $as_echo_n "(cached) " >&6 |
859789af AC |
9781 | else |
9782 | if test -n "$OBJDUMP"; then | |
9783 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9784 | else | |
c6b750e1 DJ |
9785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9786 | for as_dir in $PATH | |
9787 | do | |
9788 | IFS=$as_save_IFS | |
9789 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9790 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9792 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9794 | break 2 |
9795 | fi | |
9796 | done | |
81ecdfbb RW |
9797 | done |
9798 | IFS=$as_save_IFS | |
c6b750e1 | 9799 | |
859789af AC |
9800 | fi |
9801 | fi | |
c6b750e1 | 9802 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9803 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9805 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9806 | else |
81ecdfbb RW |
9807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9808 | $as_echo "no" >&6; } | |
859789af AC |
9809 | fi |
9810 | ||
81ecdfbb | 9811 | |
05cbd757 PB |
9812 | fi |
9813 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9814 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9815 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9817 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9818 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9819 | $as_echo_n "(cached) " >&6 |
859789af | 9820 | else |
05cbd757 PB |
9821 | if test -n "$OBJDUMP"; then |
9822 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9823 | else |
c6b750e1 DJ |
9824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9825 | for as_dir in $PATH | |
9826 | do | |
9827 | IFS=$as_save_IFS | |
9828 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9829 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9831 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9833 | break 2 |
9834 | fi | |
9835 | done | |
81ecdfbb RW |
9836 | done |
9837 | IFS=$as_save_IFS | |
c6b750e1 | 9838 | |
859789af AC |
9839 | fi |
9840 | fi | |
c6b750e1 | 9841 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9842 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9844 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9845 | else |
81ecdfbb RW |
9846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9847 | $as_echo "no" >&6; } | |
859789af | 9848 | fi |
c6b750e1 | 9849 | |
81ecdfbb | 9850 | |
05cbd757 PB |
9851 | fi |
9852 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9853 | done | |
9854 | ||
9855 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9856 | set dummy objdump | |
9857 | if test $build = $host ; then | |
9858 | OBJDUMP="$2" | |
859789af | 9859 | else |
05cbd757 | 9860 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9861 | fi |
859789af AC |
9862 | fi |
9863 | ||
a0da8069 NN |
9864 | |
9865 | ||
b121d7d4 DD |
9866 | if test -n "$READELF"; then |
9867 | ac_cv_prog_READELF=$READELF | |
9868 | elif test -n "$ac_cv_prog_READELF"; then | |
9869 | READELF=$ac_cv_prog_READELF | |
9870 | fi | |
9871 | ||
9872 | if test -n "$ac_cv_prog_READELF"; then | |
9873 | for ncn_progname in readelf; do | |
9874 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9875 | set dummy ${ncn_progname}; ac_word=$2 | |
9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9877 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9878 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9879 | $as_echo_n "(cached) " >&6 |
9880 | else | |
9881 | if test -n "$READELF"; then | |
9882 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9883 | else | |
9884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9885 | for as_dir in $PATH | |
9886 | do | |
9887 | IFS=$as_save_IFS | |
9888 | test -z "$as_dir" && as_dir=. | |
9889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9891 | ac_cv_prog_READELF="${ncn_progname}" |
9892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9893 | break 2 | |
9894 | fi | |
9895 | done | |
9896 | done | |
9897 | IFS=$as_save_IFS | |
9898 | ||
9899 | fi | |
9900 | fi | |
9901 | READELF=$ac_cv_prog_READELF | |
9902 | if test -n "$READELF"; then | |
9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9904 | $as_echo "$READELF" >&6; } | |
9905 | else | |
9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9907 | $as_echo "no" >&6; } | |
9908 | fi | |
9909 | ||
9910 | ||
9911 | done | |
9912 | fi | |
9913 | ||
9914 | for ncn_progname in readelf; do | |
9915 | if test -n "$ncn_tool_prefix"; then | |
9916 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9917 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9919 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9920 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9921 | $as_echo_n "(cached) " >&6 |
9922 | else | |
9923 | if test -n "$READELF"; then | |
9924 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9925 | else | |
9926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9927 | for as_dir in $PATH | |
9928 | do | |
9929 | IFS=$as_save_IFS | |
9930 | test -z "$as_dir" && as_dir=. | |
9931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9932 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9933 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
9934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9935 | break 2 | |
9936 | fi | |
9937 | done | |
9938 | done | |
9939 | IFS=$as_save_IFS | |
9940 | ||
9941 | fi | |
9942 | fi | |
9943 | READELF=$ac_cv_prog_READELF | |
9944 | if test -n "$READELF"; then | |
9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9946 | $as_echo "$READELF" >&6; } | |
9947 | else | |
9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9949 | $as_echo "no" >&6; } | |
9950 | fi | |
9951 | ||
9952 | ||
9953 | fi | |
9954 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9955 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9956 | set dummy ${ncn_progname}; ac_word=$2 | |
9957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9958 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9959 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9960 | $as_echo_n "(cached) " >&6 |
9961 | else | |
9962 | if test -n "$READELF"; then | |
9963 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9964 | else | |
9965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9966 | for as_dir in $PATH | |
9967 | do | |
9968 | IFS=$as_save_IFS | |
9969 | test -z "$as_dir" && as_dir=. | |
9970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9972 | ac_cv_prog_READELF="${ncn_progname}" |
9973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9974 | break 2 | |
9975 | fi | |
9976 | done | |
9977 | done | |
9978 | IFS=$as_save_IFS | |
9979 | ||
9980 | fi | |
9981 | fi | |
9982 | READELF=$ac_cv_prog_READELF | |
9983 | if test -n "$READELF"; then | |
9984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9985 | $as_echo "$READELF" >&6; } | |
9986 | else | |
9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9988 | $as_echo "no" >&6; } | |
9989 | fi | |
9990 | ||
9991 | ||
9992 | fi | |
9993 | test -n "$ac_cv_prog_READELF" && break | |
9994 | done | |
9995 | ||
9996 | if test -z "$ac_cv_prog_READELF" ; then | |
9997 | set dummy readelf | |
9998 | if test $build = $host ; then | |
9999 | READELF="$2" | |
10000 | else | |
10001 | READELF="${ncn_tool_prefix}$2" | |
10002 | fi | |
10003 | fi | |
10004 | ||
10005 | ||
10006 | ||
a0da8069 NN |
10007 | |
10008 | ||
10009 | ||
be01d343 | 10010 | # Target tools. |
c6b750e1 | 10011 | |
81ecdfbb RW |
10012 | # Check whether --with-build-time-tools was given. |
10013 | if test "${with_build_time_tools+set}" = set; then : | |
10014 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
10015 | x/*) ;; |
10016 | *) | |
10017 | with_build_time_tools= | |
81ecdfbb RW |
10018 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10019 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
10020 | ;; |
10021 | esac | |
859789af | 10022 | else |
2429c060 | 10023 | with_build_time_tools= |
81ecdfbb RW |
10024 | fi |
10025 | ||
859789af | 10026 | |
9a819804 AO |
10027 | |
10028 | ||
10029 | if test -n "$CC_FOR_TARGET"; then | |
10030 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10031 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10032 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10033 | fi | |
10034 | ||
10035 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10036 | for ncn_progname in cc gcc; do | |
10037 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10038 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10040 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10041 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10042 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10043 | else |
10044 | if test -n "$CC_FOR_TARGET"; then | |
10045 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10046 | else | |
10047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10048 | for as_dir in $PATH | |
10049 | do | |
10050 | IFS=$as_save_IFS | |
10051 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10052 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10054 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10056 | break 2 |
10057 | fi | |
10058 | done | |
81ecdfbb RW |
10059 | done |
10060 | IFS=$as_save_IFS | |
9a819804 AO |
10061 | |
10062 | fi | |
10063 | fi | |
10064 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10065 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10067 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 10068 | else |
81ecdfbb RW |
10069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10070 | $as_echo "no" >&6; } | |
9a819804 AO |
10071 | fi |
10072 | ||
81ecdfbb | 10073 | |
9a819804 AO |
10074 | done |
10075 | fi | |
10076 | ||
10077 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10078 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10080 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10081 | if test -x $with_build_time_tools/${ncn_progname}; then |
10082 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10084 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10085 | break |
2429c060 | 10086 | else |
81ecdfbb RW |
10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10088 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10089 | fi |
10090 | done | |
55db4b87 PB |
10091 | fi |
10092 | ||
2429c060 PB |
10093 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10094 | for ncn_progname in cc gcc; do | |
10095 | if test -n "$ncn_target_tool_prefix"; then | |
10096 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10097 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10099 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10100 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10101 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10102 | else |
10103 | if test -n "$CC_FOR_TARGET"; then | |
10104 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10105 | else | |
c6b750e1 DJ |
10106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10107 | for as_dir in $PATH | |
10108 | do | |
10109 | IFS=$as_save_IFS | |
10110 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10111 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10113 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10115 | break 2 |
10116 | fi | |
10117 | done | |
81ecdfbb RW |
10118 | done |
10119 | IFS=$as_save_IFS | |
c6b750e1 | 10120 | |
55db4b87 PB |
10121 | fi |
10122 | fi | |
c6b750e1 | 10123 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10124 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10126 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10127 | else |
81ecdfbb RW |
10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10129 | $as_echo "no" >&6; } | |
55db4b87 PB |
10130 | fi |
10131 | ||
81ecdfbb | 10132 | |
2429c060 PB |
10133 | fi |
10134 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10135 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10136 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10138 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10139 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10140 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10141 | else |
05cbd757 PB |
10142 | if test -n "$CC_FOR_TARGET"; then |
10143 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10144 | else |
c6b750e1 DJ |
10145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10146 | for as_dir in $PATH | |
10147 | do | |
10148 | IFS=$as_save_IFS | |
10149 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10150 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10151 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10152 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10154 | break 2 |
10155 | fi | |
10156 | done | |
81ecdfbb RW |
10157 | done |
10158 | IFS=$as_save_IFS | |
c6b750e1 | 10159 | |
55db4b87 PB |
10160 | fi |
10161 | fi | |
c6b750e1 | 10162 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10163 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10165 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10166 | else |
81ecdfbb RW |
10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10168 | $as_echo "no" >&6; } | |
55db4b87 | 10169 | fi |
c6b750e1 | 10170 | |
81ecdfbb | 10171 | |
2429c060 PB |
10172 | fi |
10173 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10174 | done | |
10175 | fi | |
c6b750e1 | 10176 | |
05cbd757 PB |
10177 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10178 | set dummy cc gcc | |
10179 | if test $build = $target ; then | |
10180 | CC_FOR_TARGET="$2" | |
55db4b87 | 10181 | else |
05cbd757 | 10182 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10183 | fi |
d3f5afc4 MS |
10184 | else |
10185 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10186 | fi |
10187 | ||
9a819804 AO |
10188 | |
10189 | ||
10190 | if test -n "$CXX_FOR_TARGET"; then | |
10191 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10192 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10193 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10194 | fi | |
10195 | ||
10196 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10197 | for ncn_progname in c++ g++ cxx gxx; do | |
10198 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10199 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10201 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10202 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10203 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10204 | else |
10205 | if test -n "$CXX_FOR_TARGET"; then | |
10206 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10207 | else | |
10208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10209 | for as_dir in $PATH | |
10210 | do | |
10211 | IFS=$as_save_IFS | |
10212 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10213 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10215 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10217 | break 2 |
10218 | fi | |
10219 | done | |
81ecdfbb RW |
10220 | done |
10221 | IFS=$as_save_IFS | |
9a819804 AO |
10222 | |
10223 | fi | |
10224 | fi | |
10225 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10226 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10228 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10229 | else |
81ecdfbb RW |
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10231 | $as_echo "no" >&6; } | |
9a819804 AO |
10232 | fi |
10233 | ||
81ecdfbb | 10234 | |
9a819804 AO |
10235 | done |
10236 | fi | |
10237 | ||
10238 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10239 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10241 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10242 | if test -x $with_build_time_tools/${ncn_progname}; then |
10243 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10245 | $as_echo "yes" >&6; } | |
2429c060 PB |
10246 | break |
10247 | else | |
81ecdfbb RW |
10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10249 | $as_echo "no" >&6; } | |
2429c060 PB |
10250 | fi |
10251 | done | |
10252 | fi | |
10253 | ||
10254 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10255 | for ncn_progname in c++ g++ cxx gxx; do | |
10256 | if test -n "$ncn_target_tool_prefix"; then | |
10257 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10258 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10260 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10261 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10262 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10263 | else |
10264 | if test -n "$CXX_FOR_TARGET"; then | |
10265 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10266 | else | |
c6b750e1 DJ |
10267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10268 | for as_dir in $PATH | |
10269 | do | |
10270 | IFS=$as_save_IFS | |
10271 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10272 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10273 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10274 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10276 | break 2 |
10277 | fi | |
10278 | done | |
81ecdfbb RW |
10279 | done |
10280 | IFS=$as_save_IFS | |
c6b750e1 | 10281 | |
55db4b87 PB |
10282 | fi |
10283 | fi | |
c6b750e1 | 10284 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10285 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10287 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10288 | else |
81ecdfbb RW |
10289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10290 | $as_echo "no" >&6; } | |
55db4b87 PB |
10291 | fi |
10292 | ||
81ecdfbb | 10293 | |
2429c060 PB |
10294 | fi |
10295 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10296 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10297 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10299 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10300 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10301 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10302 | else |
05cbd757 PB |
10303 | if test -n "$CXX_FOR_TARGET"; then |
10304 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10305 | else |
c6b750e1 DJ |
10306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10307 | for as_dir in $PATH | |
10308 | do | |
10309 | IFS=$as_save_IFS | |
10310 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10311 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10312 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10313 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10315 | break 2 |
10316 | fi | |
10317 | done | |
81ecdfbb RW |
10318 | done |
10319 | IFS=$as_save_IFS | |
c6b750e1 | 10320 | |
55db4b87 PB |
10321 | fi |
10322 | fi | |
c6b750e1 | 10323 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10324 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10326 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10327 | else |
81ecdfbb RW |
10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10329 | $as_echo "no" >&6; } | |
55db4b87 | 10330 | fi |
c6b750e1 | 10331 | |
81ecdfbb | 10332 | |
2429c060 PB |
10333 | fi |
10334 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10335 | done | |
10336 | fi | |
c6b750e1 | 10337 | |
05cbd757 PB |
10338 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10339 | set dummy c++ g++ cxx gxx | |
10340 | if test $build = $target ; then | |
10341 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10342 | else |
05cbd757 | 10343 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10344 | fi |
d3f5afc4 MS |
10345 | else |
10346 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10347 | fi |
10348 | ||
9a819804 AO |
10349 | |
10350 | ||
10351 | if test -n "$GCC_FOR_TARGET"; then | |
10352 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10353 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10354 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10355 | fi | |
10356 | ||
10357 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10358 | for ncn_progname in gcc; do | |
10359 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10360 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10362 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10363 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10364 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10365 | else |
10366 | if test -n "$GCC_FOR_TARGET"; then | |
10367 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10368 | else | |
10369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10370 | for as_dir in $PATH | |
10371 | do | |
10372 | IFS=$as_save_IFS | |
10373 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10374 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10376 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10378 | break 2 |
10379 | fi | |
10380 | done | |
81ecdfbb RW |
10381 | done |
10382 | IFS=$as_save_IFS | |
9a819804 AO |
10383 | |
10384 | fi | |
10385 | fi | |
10386 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10387 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10389 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10390 | else |
81ecdfbb RW |
10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10392 | $as_echo "no" >&6; } | |
9a819804 AO |
10393 | fi |
10394 | ||
81ecdfbb | 10395 | |
9a819804 AO |
10396 | done |
10397 | fi | |
10398 | ||
10399 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10400 | for ncn_progname in gcc; do |
81ecdfbb RW |
10401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10402 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10403 | if test -x $with_build_time_tools/${ncn_progname}; then |
10404 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10406 | $as_echo "yes" >&6; } | |
2429c060 PB |
10407 | break |
10408 | else | |
81ecdfbb RW |
10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10410 | $as_echo "no" >&6; } | |
2429c060 PB |
10411 | fi |
10412 | done | |
10413 | fi | |
10414 | ||
10415 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10416 | for ncn_progname in gcc; do | |
10417 | if test -n "$ncn_target_tool_prefix"; then | |
10418 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10419 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10421 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10422 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10423 | $as_echo_n "(cached) " >&6 |
859789af | 10424 | else |
2429c060 PB |
10425 | if test -n "$GCC_FOR_TARGET"; then |
10426 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10427 | else |
c6b750e1 DJ |
10428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10429 | for as_dir in $PATH | |
10430 | do | |
10431 | IFS=$as_save_IFS | |
10432 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10433 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10434 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10435 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10437 | break 2 |
10438 | fi | |
10439 | done | |
81ecdfbb RW |
10440 | done |
10441 | IFS=$as_save_IFS | |
c6b750e1 | 10442 | |
55db4b87 PB |
10443 | fi |
10444 | fi | |
c6b750e1 | 10445 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10446 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10448 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10449 | else |
81ecdfbb RW |
10450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10451 | $as_echo "no" >&6; } | |
55db4b87 PB |
10452 | fi |
10453 | ||
81ecdfbb | 10454 | |
2429c060 PB |
10455 | fi |
10456 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10457 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10458 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10460 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10461 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10462 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10463 | else |
05cbd757 PB |
10464 | if test -n "$GCC_FOR_TARGET"; then |
10465 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10466 | else |
c6b750e1 DJ |
10467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10468 | for as_dir in $PATH | |
10469 | do | |
10470 | IFS=$as_save_IFS | |
10471 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10472 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10474 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10476 | break 2 |
10477 | fi | |
10478 | done | |
81ecdfbb RW |
10479 | done |
10480 | IFS=$as_save_IFS | |
c6b750e1 | 10481 | |
55db4b87 PB |
10482 | fi |
10483 | fi | |
c6b750e1 | 10484 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10485 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10487 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10488 | else |
81ecdfbb RW |
10489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10490 | $as_echo "no" >&6; } | |
55db4b87 | 10491 | fi |
c6b750e1 | 10492 | |
81ecdfbb | 10493 | |
2429c060 PB |
10494 | fi |
10495 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10496 | done | |
10497 | fi | |
c6b750e1 | 10498 | |
05cbd757 PB |
10499 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10500 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10501 | else |
10502 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10503 | fi |
10504 | ||
9a819804 AO |
10505 | |
10506 | ||
9a819804 AO |
10507 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10508 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10509 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10510 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10511 | fi |
10512 | ||
9a819804 AO |
10513 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10514 | for ncn_progname in gfortran; do | |
10515 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10516 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10518 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10519 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10520 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10521 | else |
9a819804 AO |
10522 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10523 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10524 | else |
c6b750e1 DJ |
10525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10526 | for as_dir in $PATH | |
10527 | do | |
10528 | IFS=$as_save_IFS | |
10529 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10530 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10531 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10532 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10534 | break 2 |
10535 | fi | |
10536 | done | |
81ecdfbb RW |
10537 | done |
10538 | IFS=$as_save_IFS | |
c6b750e1 | 10539 | |
55db4b87 PB |
10540 | fi |
10541 | fi | |
9a819804 AO |
10542 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10543 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10545 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10546 | else |
81ecdfbb RW |
10547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10548 | $as_echo "no" >&6; } | |
55db4b87 | 10549 | fi |
c6b750e1 | 10550 | |
81ecdfbb | 10551 | |
2429c060 PB |
10552 | done |
10553 | fi | |
c6b750e1 | 10554 | |
9a819804 | 10555 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10556 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10558 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10559 | if test -x $with_build_time_tools/${ncn_progname}; then |
10560 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10562 | $as_echo "yes" >&6; } | |
2429c060 PB |
10563 | break |
10564 | else | |
81ecdfbb RW |
10565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10566 | $as_echo "no" >&6; } | |
2429c060 PB |
10567 | fi |
10568 | done | |
10569 | fi | |
10570 | ||
10571 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10572 | for ncn_progname in gfortran; do | |
10573 | if test -n "$ncn_target_tool_prefix"; then | |
10574 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10575 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10577 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10578 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10579 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10580 | else |
10581 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10582 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10583 | else | |
c6b750e1 DJ |
10584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10585 | for as_dir in $PATH | |
10586 | do | |
10587 | IFS=$as_save_IFS | |
10588 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10589 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10590 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10591 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10593 | break 2 |
10594 | fi | |
10595 | done | |
81ecdfbb RW |
10596 | done |
10597 | IFS=$as_save_IFS | |
c6b750e1 | 10598 | |
55db4b87 PB |
10599 | fi |
10600 | fi | |
c6b750e1 | 10601 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10602 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10604 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10605 | else |
81ecdfbb RW |
10606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10607 | $as_echo "no" >&6; } | |
55db4b87 PB |
10608 | fi |
10609 | ||
81ecdfbb | 10610 | |
2429c060 PB |
10611 | fi |
10612 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10613 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10614 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10616 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10617 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10618 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10619 | else |
05cbd757 | 10620 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10621 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10622 | else | |
10623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10624 | for as_dir in $PATH | |
10625 | do | |
10626 | IFS=$as_save_IFS | |
10627 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10628 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10629 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10630 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10632 | break 2 |
10633 | fi | |
10634 | done | |
81ecdfbb RW |
10635 | done |
10636 | IFS=$as_save_IFS | |
c6b750e1 | 10637 | |
55db4b87 PB |
10638 | fi |
10639 | fi | |
c6b750e1 | 10640 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10641 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10643 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10644 | else |
81ecdfbb RW |
10645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10646 | $as_echo "no" >&6; } | |
55db4b87 | 10647 | fi |
c6b750e1 | 10648 | |
81ecdfbb | 10649 | |
2429c060 PB |
10650 | fi |
10651 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10652 | done | |
10653 | fi | |
c6b750e1 | 10654 | |
05cbd757 PB |
10655 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10656 | set dummy gfortran | |
10657 | if test $build = $target ; then | |
10658 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10659 | else |
05cbd757 | 10660 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10661 | fi |
d3f5afc4 MS |
10662 | else |
10663 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10664 | fi |
10665 | ||
2429c060 PB |
10666 | |
10667 | ||
e552509b ILT |
10668 | if test -n "$GOC_FOR_TARGET"; then |
10669 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10670 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10671 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10672 | fi | |
10673 | ||
10674 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10675 | for ncn_progname in gccgo; do | |
10676 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10677 | set dummy ${ncn_progname}; ac_word=$2 | |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10679 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10680 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10681 | $as_echo_n "(cached) " >&6 |
10682 | else | |
10683 | if test -n "$GOC_FOR_TARGET"; then | |
10684 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10685 | else | |
10686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10687 | for as_dir in $PATH | |
10688 | do | |
10689 | IFS=$as_save_IFS | |
10690 | test -z "$as_dir" && as_dir=. | |
10691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10693 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10695 | break 2 | |
10696 | fi | |
10697 | done | |
10698 | done | |
10699 | IFS=$as_save_IFS | |
10700 | ||
10701 | fi | |
10702 | fi | |
10703 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10704 | if test -n "$GOC_FOR_TARGET"; then | |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10706 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10707 | else | |
10708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10709 | $as_echo "no" >&6; } | |
10710 | fi | |
10711 | ||
10712 | ||
10713 | done | |
10714 | fi | |
10715 | ||
10716 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10717 | for ncn_progname in gccgo; do | |
10718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10719 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10720 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10721 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10723 | $as_echo "yes" >&6; } | |
10724 | break | |
10725 | else | |
10726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10727 | $as_echo "no" >&6; } | |
10728 | fi | |
10729 | done | |
10730 | fi | |
10731 | ||
10732 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10733 | for ncn_progname in gccgo; do | |
10734 | if test -n "$ncn_target_tool_prefix"; then | |
10735 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10736 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10738 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10739 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10740 | $as_echo_n "(cached) " >&6 |
10741 | else | |
10742 | if test -n "$GOC_FOR_TARGET"; then | |
10743 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10744 | else | |
10745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10746 | for as_dir in $PATH | |
10747 | do | |
10748 | IFS=$as_save_IFS | |
10749 | test -z "$as_dir" && as_dir=. | |
10750 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10751 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10752 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10754 | break 2 | |
10755 | fi | |
10756 | done | |
10757 | done | |
10758 | IFS=$as_save_IFS | |
10759 | ||
10760 | fi | |
10761 | fi | |
10762 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10763 | if test -n "$GOC_FOR_TARGET"; then | |
10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10765 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10766 | else | |
10767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10768 | $as_echo "no" >&6; } | |
10769 | fi | |
10770 | ||
10771 | ||
10772 | fi | |
10773 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10774 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10775 | set dummy ${ncn_progname}; ac_word=$2 | |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10777 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10778 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10779 | $as_echo_n "(cached) " >&6 |
10780 | else | |
10781 | if test -n "$GOC_FOR_TARGET"; then | |
10782 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10783 | else | |
10784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10785 | for as_dir in $PATH | |
10786 | do | |
10787 | IFS=$as_save_IFS | |
10788 | test -z "$as_dir" && as_dir=. | |
10789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10791 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10793 | break 2 | |
10794 | fi | |
10795 | done | |
10796 | done | |
10797 | IFS=$as_save_IFS | |
10798 | ||
10799 | fi | |
10800 | fi | |
10801 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10802 | if test -n "$GOC_FOR_TARGET"; then | |
10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10804 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10805 | else | |
10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10807 | $as_echo "no" >&6; } | |
10808 | fi | |
10809 | ||
10810 | ||
10811 | fi | |
10812 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10813 | done | |
10814 | fi | |
10815 | ||
10816 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10817 | set dummy gccgo | |
10818 | if test $build = $target ; then | |
10819 | GOC_FOR_TARGET="$2" | |
10820 | else | |
10821 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10822 | fi | |
10823 | else | |
10824 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10825 | fi | |
10826 | ||
10827 | ||
10828 | ||
2429c060 PB |
10829 | cat > conftest.c << \EOF |
10830 | #ifdef __GNUC__ | |
10831 | gcc_yay; | |
10832 | #endif | |
10833 | EOF | |
10834 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10835 | have_gcc_for_target=yes | |
859789af | 10836 | else |
2429c060 PB |
10837 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10838 | have_gcc_for_target=no | |
859789af | 10839 | fi |
2429c060 PB |
10840 | rm conftest.c |
10841 | ||
10842 | ||
10843 | ||
859789af | 10844 | |
2429c060 PB |
10845 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10846 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10848 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10849 | if test -x $with_build_time_tools/ar; then |
10850 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10851 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10853 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10854 | else |
81ecdfbb RW |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10856 | $as_echo "no" >&6; } | |
3a35eeb3 | 10857 | fi |
2429c060 PB |
10858 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10859 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10860 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10861 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10862 | fi |
2429c060 | 10863 | fi |
c6b750e1 | 10864 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10865 | # Extract the first word of "ar", so it can be a program name with args. |
10866 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10868 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10869 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10870 | $as_echo_n "(cached) " >&6 |
859789af | 10871 | else |
c6b750e1 DJ |
10872 | case $AR_FOR_TARGET in |
10873 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10874 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10875 | ;; | |
2429c060 | 10876 | *) |
c6b750e1 DJ |
10877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10878 | for as_dir in $gcc_cv_tool_dirs | |
10879 | do | |
10880 | IFS=$as_save_IFS | |
10881 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10882 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10884 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10886 | break 2 |
10887 | fi | |
10888 | done | |
81ecdfbb RW |
10889 | done |
10890 | IFS=$as_save_IFS | |
c6b750e1 | 10891 | |
2429c060 PB |
10892 | ;; |
10893 | esac | |
859789af | 10894 | fi |
c6b750e1 | 10895 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10896 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10898 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10899 | else |
81ecdfbb RW |
10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10901 | $as_echo "no" >&6; } | |
859789af | 10902 | fi |
05cbd757 | 10903 | |
81ecdfbb | 10904 | |
2429c060 PB |
10905 | fi |
10906 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10907 | |
10908 | ||
10909 | if test -n "$AR_FOR_TARGET"; then | |
10910 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10911 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10912 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10913 | fi | |
10914 | ||
10915 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10916 | for ncn_progname in ar; do | |
10917 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10918 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10920 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10921 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10922 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10923 | else |
10924 | if test -n "$AR_FOR_TARGET"; then | |
10925 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10926 | else | |
10927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10928 | for as_dir in $PATH | |
10929 | do | |
10930 | IFS=$as_save_IFS | |
10931 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10932 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10934 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10936 | break 2 |
10937 | fi | |
10938 | done | |
81ecdfbb RW |
10939 | done |
10940 | IFS=$as_save_IFS | |
9a819804 AO |
10941 | |
10942 | fi | |
10943 | fi | |
10944 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10945 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10947 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10948 | else |
81ecdfbb RW |
10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10950 | $as_echo "no" >&6; } | |
9a819804 AO |
10951 | fi |
10952 | ||
81ecdfbb | 10953 | |
9a819804 AO |
10954 | done |
10955 | fi | |
10956 | ||
10957 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10958 | for ncn_progname in ar; do |
81ecdfbb RW |
10959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10960 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10961 | if test -x $with_build_time_tools/${ncn_progname}; then |
10962 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10964 | $as_echo "yes" >&6; } | |
2429c060 PB |
10965 | break |
10966 | else | |
81ecdfbb RW |
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10968 | $as_echo "no" >&6; } | |
2429c060 PB |
10969 | fi |
10970 | done | |
859789af AC |
10971 | fi |
10972 | ||
2429c060 PB |
10973 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10974 | for ncn_progname in ar; do | |
10975 | if test -n "$ncn_target_tool_prefix"; then | |
10976 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10977 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10979 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10980 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10981 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 10982 | else |
2429c060 PB |
10983 | if test -n "$AR_FOR_TARGET"; then |
10984 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10985 | else |
c6b750e1 DJ |
10986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10987 | for as_dir in $PATH | |
10988 | do | |
10989 | IFS=$as_save_IFS | |
10990 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10991 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10993 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10995 | break 2 |
10996 | fi | |
10997 | done | |
81ecdfbb RW |
10998 | done |
10999 | IFS=$as_save_IFS | |
c6b750e1 | 11000 | |
7e0f7140 GK |
11001 | fi |
11002 | fi | |
c6b750e1 | 11003 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11004 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11006 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11007 | else |
81ecdfbb RW |
11008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11009 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11010 | fi |
11011 | ||
81ecdfbb | 11012 | |
2429c060 PB |
11013 | fi |
11014 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11015 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11016 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11018 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11019 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11020 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 11021 | else |
2429c060 PB |
11022 | if test -n "$AR_FOR_TARGET"; then |
11023 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11024 | else |
c6b750e1 DJ |
11025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11026 | for as_dir in $PATH | |
11027 | do | |
11028 | IFS=$as_save_IFS | |
11029 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11030 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11032 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11034 | break 2 |
11035 | fi | |
11036 | done | |
81ecdfbb RW |
11037 | done |
11038 | IFS=$as_save_IFS | |
c6b750e1 | 11039 | |
7e0f7140 GK |
11040 | fi |
11041 | fi | |
c6b750e1 | 11042 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11043 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11045 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11046 | else |
81ecdfbb RW |
11047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11048 | $as_echo "no" >&6; } | |
7e0f7140 | 11049 | fi |
c6b750e1 | 11050 | |
81ecdfbb | 11051 | |
2429c060 PB |
11052 | fi |
11053 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11054 | done | |
11055 | fi | |
c6b750e1 | 11056 | |
2429c060 PB |
11057 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11058 | set dummy ar | |
7e0f7140 | 11059 | if test $build = $target ; then |
2429c060 | 11060 | AR_FOR_TARGET="$2" |
7e0f7140 | 11061 | else |
2429c060 | 11062 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11063 | fi |
d3f5afc4 MS |
11064 | else |
11065 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11066 | fi |
11067 | ||
3a35eeb3 PB |
11068 | else |
11069 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11070 | fi |
11071 | ||
11072 | ||
11073 | ||
11074 | ||
11075 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11076 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11078 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11079 | if test -x $with_build_time_tools/as; then |
11080 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11081 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11083 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11084 | else |
81ecdfbb RW |
11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11086 | $as_echo "no" >&6; } | |
3a35eeb3 | 11087 | fi |
2429c060 PB |
11088 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11089 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11090 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11091 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11092 | fi |
11093 | fi | |
c6b750e1 | 11094 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11095 | # Extract the first word of "as", so it can be a program name with args. |
11096 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11098 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11099 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11100 | $as_echo_n "(cached) " >&6 |
2429c060 | 11101 | else |
c6b750e1 DJ |
11102 | case $AS_FOR_TARGET in |
11103 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11104 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11105 | ;; | |
2429c060 | 11106 | *) |
c6b750e1 DJ |
11107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11108 | for as_dir in $gcc_cv_tool_dirs | |
11109 | do | |
11110 | IFS=$as_save_IFS | |
11111 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11112 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11114 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11116 | break 2 |
11117 | fi | |
11118 | done | |
81ecdfbb RW |
11119 | done |
11120 | IFS=$as_save_IFS | |
c6b750e1 | 11121 | |
2429c060 PB |
11122 | ;; |
11123 | esac | |
11124 | fi | |
c6b750e1 | 11125 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11126 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11128 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11129 | else |
81ecdfbb RW |
11130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11131 | $as_echo "no" >&6; } | |
2429c060 PB |
11132 | fi |
11133 | ||
81ecdfbb | 11134 | |
2429c060 PB |
11135 | fi |
11136 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11137 | |
11138 | ||
11139 | if test -n "$AS_FOR_TARGET"; then | |
11140 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11141 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11142 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11143 | fi | |
11144 | ||
11145 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11146 | for ncn_progname in as; do | |
11147 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11148 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11150 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11151 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11152 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11153 | else |
11154 | if test -n "$AS_FOR_TARGET"; then | |
11155 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11156 | else | |
11157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11158 | for as_dir in $PATH | |
11159 | do | |
11160 | IFS=$as_save_IFS | |
11161 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11162 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11164 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11166 | break 2 |
11167 | fi | |
11168 | done | |
81ecdfbb RW |
11169 | done |
11170 | IFS=$as_save_IFS | |
9a819804 AO |
11171 | |
11172 | fi | |
11173 | fi | |
11174 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11175 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11177 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11178 | else |
81ecdfbb RW |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11180 | $as_echo "no" >&6; } | |
9a819804 AO |
11181 | fi |
11182 | ||
81ecdfbb | 11183 | |
9a819804 AO |
11184 | done |
11185 | fi | |
11186 | ||
11187 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11188 | for ncn_progname in as; do |
81ecdfbb RW |
11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11190 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11191 | if test -x $with_build_time_tools/${ncn_progname}; then |
11192 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11194 | $as_echo "yes" >&6; } | |
2429c060 PB |
11195 | break |
11196 | else | |
81ecdfbb RW |
11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11198 | $as_echo "no" >&6; } | |
2429c060 PB |
11199 | fi |
11200 | done | |
11201 | fi | |
11202 | ||
11203 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11204 | for ncn_progname in as; do | |
11205 | if test -n "$ncn_target_tool_prefix"; then | |
11206 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11207 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11209 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11210 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11211 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11212 | else |
11213 | if test -n "$AS_FOR_TARGET"; then | |
11214 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11215 | else | |
c6b750e1 DJ |
11216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11217 | for as_dir in $PATH | |
11218 | do | |
11219 | IFS=$as_save_IFS | |
11220 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11221 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11222 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11223 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11225 | break 2 |
11226 | fi | |
11227 | done | |
81ecdfbb RW |
11228 | done |
11229 | IFS=$as_save_IFS | |
c6b750e1 | 11230 | |
2429c060 PB |
11231 | fi |
11232 | fi | |
c6b750e1 | 11233 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11234 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11236 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11237 | else |
81ecdfbb RW |
11238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11239 | $as_echo "no" >&6; } | |
2429c060 PB |
11240 | fi |
11241 | ||
81ecdfbb | 11242 | |
2429c060 PB |
11243 | fi |
11244 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11245 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11246 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11248 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11249 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11250 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11251 | else |
11252 | if test -n "$AS_FOR_TARGET"; then | |
11253 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11254 | else | |
c6b750e1 DJ |
11255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11256 | for as_dir in $PATH | |
11257 | do | |
11258 | IFS=$as_save_IFS | |
11259 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11260 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11262 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11264 | break 2 |
11265 | fi | |
11266 | done | |
81ecdfbb RW |
11267 | done |
11268 | IFS=$as_save_IFS | |
c6b750e1 | 11269 | |
2429c060 PB |
11270 | fi |
11271 | fi | |
c6b750e1 | 11272 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11273 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11275 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11276 | else |
81ecdfbb RW |
11277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11278 | $as_echo "no" >&6; } | |
2429c060 | 11279 | fi |
c6b750e1 | 11280 | |
81ecdfbb | 11281 | |
2429c060 PB |
11282 | fi |
11283 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11284 | done | |
11285 | fi | |
c6b750e1 | 11286 | |
2429c060 PB |
11287 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11288 | set dummy as | |
11289 | if test $build = $target ; then | |
11290 | AS_FOR_TARGET="$2" | |
11291 | else | |
11292 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11293 | fi | |
d3f5afc4 MS |
11294 | else |
11295 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11296 | fi |
11297 | ||
3a35eeb3 PB |
11298 | else |
11299 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11300 | fi |
11301 | ||
11302 | ||
11303 | ||
11304 | ||
11305 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11306 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11308 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11309 | if test -x $with_build_time_tools/dlltool; then |
11310 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11311 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11313 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11314 | else |
81ecdfbb RW |
11315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11316 | $as_echo "no" >&6; } | |
3a35eeb3 | 11317 | fi |
2429c060 PB |
11318 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11319 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11320 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11321 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11322 | fi |
11323 | fi | |
c6b750e1 | 11324 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11325 | # Extract the first word of "dlltool", so it can be a program name with args. |
11326 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11328 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11329 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11330 | $as_echo_n "(cached) " >&6 |
2429c060 | 11331 | else |
c6b750e1 DJ |
11332 | case $DLLTOOL_FOR_TARGET in |
11333 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11334 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11335 | ;; | |
2429c060 | 11336 | *) |
c6b750e1 DJ |
11337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11338 | for as_dir in $gcc_cv_tool_dirs | |
11339 | do | |
11340 | IFS=$as_save_IFS | |
11341 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11342 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11343 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11344 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11346 | break 2 |
11347 | fi | |
11348 | done | |
81ecdfbb RW |
11349 | done |
11350 | IFS=$as_save_IFS | |
c6b750e1 | 11351 | |
2429c060 PB |
11352 | ;; |
11353 | esac | |
11354 | fi | |
c6b750e1 | 11355 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11356 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11358 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11359 | else |
81ecdfbb RW |
11360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11361 | $as_echo "no" >&6; } | |
2429c060 PB |
11362 | fi |
11363 | ||
81ecdfbb | 11364 | |
2429c060 PB |
11365 | fi |
11366 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11367 | |
11368 | ||
11369 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11370 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11371 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11372 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11373 | fi | |
11374 | ||
11375 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11376 | for ncn_progname in dlltool; do | |
11377 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11378 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11380 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11381 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11382 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11383 | else |
11384 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11385 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11386 | else | |
11387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11388 | for as_dir in $PATH | |
11389 | do | |
11390 | IFS=$as_save_IFS | |
11391 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11392 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11393 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11394 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11396 | break 2 |
11397 | fi | |
11398 | done | |
81ecdfbb RW |
11399 | done |
11400 | IFS=$as_save_IFS | |
9a819804 AO |
11401 | |
11402 | fi | |
11403 | fi | |
11404 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11405 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11407 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11408 | else |
81ecdfbb RW |
11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11410 | $as_echo "no" >&6; } | |
9a819804 AO |
11411 | fi |
11412 | ||
81ecdfbb | 11413 | |
9a819804 AO |
11414 | done |
11415 | fi | |
11416 | ||
11417 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11418 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11420 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11421 | if test -x $with_build_time_tools/${ncn_progname}; then |
11422 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11424 | $as_echo "yes" >&6; } | |
2429c060 PB |
11425 | break |
11426 | else | |
81ecdfbb RW |
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11428 | $as_echo "no" >&6; } | |
2429c060 PB |
11429 | fi |
11430 | done | |
11431 | fi | |
11432 | ||
11433 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11434 | for ncn_progname in dlltool; do | |
11435 | if test -n "$ncn_target_tool_prefix"; then | |
11436 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11437 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11439 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11440 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11441 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11442 | else |
11443 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11444 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11445 | else | |
c6b750e1 DJ |
11446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11447 | for as_dir in $PATH | |
11448 | do | |
11449 | IFS=$as_save_IFS | |
11450 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11451 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11452 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11453 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11455 | break 2 |
11456 | fi | |
11457 | done | |
81ecdfbb RW |
11458 | done |
11459 | IFS=$as_save_IFS | |
c6b750e1 | 11460 | |
2429c060 PB |
11461 | fi |
11462 | fi | |
c6b750e1 | 11463 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11464 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11466 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11467 | else |
81ecdfbb RW |
11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11469 | $as_echo "no" >&6; } | |
2429c060 PB |
11470 | fi |
11471 | ||
81ecdfbb | 11472 | |
2429c060 PB |
11473 | fi |
11474 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11475 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11476 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11478 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11479 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11480 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11481 | else |
11482 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11483 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11484 | else | |
c6b750e1 DJ |
11485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11486 | for as_dir in $PATH | |
11487 | do | |
11488 | IFS=$as_save_IFS | |
11489 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11490 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11491 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11492 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11494 | break 2 |
11495 | fi | |
11496 | done | |
81ecdfbb RW |
11497 | done |
11498 | IFS=$as_save_IFS | |
c6b750e1 | 11499 | |
2429c060 PB |
11500 | fi |
11501 | fi | |
c6b750e1 | 11502 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11503 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11505 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11506 | else |
81ecdfbb RW |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11508 | $as_echo "no" >&6; } | |
2429c060 | 11509 | fi |
c6b750e1 | 11510 | |
81ecdfbb | 11511 | |
2429c060 PB |
11512 | fi |
11513 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11514 | done | |
11515 | fi | |
c6b750e1 | 11516 | |
2429c060 PB |
11517 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11518 | set dummy dlltool | |
11519 | if test $build = $target ; then | |
11520 | DLLTOOL_FOR_TARGET="$2" | |
11521 | else | |
11522 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11523 | fi | |
d3f5afc4 MS |
11524 | else |
11525 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11526 | fi |
11527 | ||
3a35eeb3 PB |
11528 | else |
11529 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11530 | fi |
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11536 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11538 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11539 | if test -x $with_build_time_tools/ld; then |
11540 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11541 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11543 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11544 | else |
81ecdfbb RW |
11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11546 | $as_echo "no" >&6; } | |
3a35eeb3 | 11547 | fi |
2429c060 PB |
11548 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11549 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11550 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11551 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11552 | fi |
11553 | fi | |
c6b750e1 | 11554 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11555 | # Extract the first word of "ld", so it can be a program name with args. |
11556 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11558 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11559 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11560 | $as_echo_n "(cached) " >&6 |
2429c060 | 11561 | else |
c6b750e1 DJ |
11562 | case $LD_FOR_TARGET in |
11563 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11564 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11565 | ;; | |
2429c060 | 11566 | *) |
c6b750e1 DJ |
11567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11568 | for as_dir in $gcc_cv_tool_dirs | |
11569 | do | |
11570 | IFS=$as_save_IFS | |
11571 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11572 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11573 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11574 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11576 | break 2 |
11577 | fi | |
11578 | done | |
81ecdfbb RW |
11579 | done |
11580 | IFS=$as_save_IFS | |
c6b750e1 | 11581 | |
2429c060 PB |
11582 | ;; |
11583 | esac | |
11584 | fi | |
c6b750e1 | 11585 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11586 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11588 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11589 | else |
81ecdfbb RW |
11590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11591 | $as_echo "no" >&6; } | |
2429c060 PB |
11592 | fi |
11593 | ||
81ecdfbb | 11594 | |
2429c060 PB |
11595 | fi |
11596 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11597 | |
11598 | ||
11599 | if test -n "$LD_FOR_TARGET"; then | |
11600 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11601 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11602 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11603 | fi | |
11604 | ||
11605 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11606 | for ncn_progname in ld; do | |
11607 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11608 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11610 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11611 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11612 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11613 | else |
11614 | if test -n "$LD_FOR_TARGET"; then | |
11615 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11616 | else | |
11617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11618 | for as_dir in $PATH | |
11619 | do | |
11620 | IFS=$as_save_IFS | |
11621 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11622 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11623 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11624 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11626 | break 2 |
11627 | fi | |
11628 | done | |
81ecdfbb RW |
11629 | done |
11630 | IFS=$as_save_IFS | |
9a819804 AO |
11631 | |
11632 | fi | |
11633 | fi | |
11634 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11635 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11637 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11638 | else |
81ecdfbb RW |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11640 | $as_echo "no" >&6; } | |
9a819804 AO |
11641 | fi |
11642 | ||
81ecdfbb | 11643 | |
9a819804 AO |
11644 | done |
11645 | fi | |
11646 | ||
11647 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11648 | for ncn_progname in ld; do |
81ecdfbb RW |
11649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11650 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11651 | if test -x $with_build_time_tools/${ncn_progname}; then |
11652 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11654 | $as_echo "yes" >&6; } | |
2429c060 PB |
11655 | break |
11656 | else | |
81ecdfbb RW |
11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11658 | $as_echo "no" >&6; } | |
2429c060 PB |
11659 | fi |
11660 | done | |
11661 | fi | |
11662 | ||
11663 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11664 | for ncn_progname in ld; do | |
11665 | if test -n "$ncn_target_tool_prefix"; then | |
11666 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11667 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11669 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11670 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11671 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11672 | else |
11673 | if test -n "$LD_FOR_TARGET"; then | |
11674 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11675 | else | |
c6b750e1 DJ |
11676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11677 | for as_dir in $PATH | |
11678 | do | |
11679 | IFS=$as_save_IFS | |
11680 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11681 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11683 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11685 | break 2 |
11686 | fi | |
11687 | done | |
81ecdfbb RW |
11688 | done |
11689 | IFS=$as_save_IFS | |
c6b750e1 | 11690 | |
2429c060 PB |
11691 | fi |
11692 | fi | |
c6b750e1 | 11693 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11694 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11696 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11697 | else |
81ecdfbb RW |
11698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11699 | $as_echo "no" >&6; } | |
2429c060 PB |
11700 | fi |
11701 | ||
81ecdfbb | 11702 | |
2429c060 PB |
11703 | fi |
11704 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11705 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11706 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11708 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11709 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11710 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11711 | else |
11712 | if test -n "$LD_FOR_TARGET"; then | |
11713 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11714 | else | |
c6b750e1 DJ |
11715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11716 | for as_dir in $PATH | |
11717 | do | |
11718 | IFS=$as_save_IFS | |
11719 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11720 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11722 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11724 | break 2 |
11725 | fi | |
11726 | done | |
81ecdfbb RW |
11727 | done |
11728 | IFS=$as_save_IFS | |
c6b750e1 | 11729 | |
2429c060 PB |
11730 | fi |
11731 | fi | |
c6b750e1 | 11732 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11733 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11735 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11736 | else |
81ecdfbb RW |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11738 | $as_echo "no" >&6; } | |
2429c060 | 11739 | fi |
c6b750e1 | 11740 | |
81ecdfbb | 11741 | |
2429c060 PB |
11742 | fi |
11743 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11744 | done | |
11745 | fi | |
c6b750e1 | 11746 | |
2429c060 PB |
11747 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11748 | set dummy ld | |
11749 | if test $build = $target ; then | |
11750 | LD_FOR_TARGET="$2" | |
11751 | else | |
11752 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11753 | fi | |
d3f5afc4 MS |
11754 | else |
11755 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11756 | fi |
11757 | ||
3a35eeb3 PB |
11758 | else |
11759 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11760 | fi |
11761 | ||
11762 | ||
11763 | ||
11764 | ||
11765 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11766 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11768 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11769 | if test -x $with_build_time_tools/lipo; then |
11770 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11771 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11773 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11774 | else |
81ecdfbb RW |
11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11776 | $as_echo "no" >&6; } | |
3a35eeb3 | 11777 | fi |
2429c060 PB |
11778 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11779 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11780 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11781 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11782 | fi |
11783 | fi | |
9a819804 AO |
11784 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11785 | # Extract the first word of "lipo", so it can be a program name with args. | |
11786 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11788 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11789 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11790 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11791 | else |
11792 | case $LIPO_FOR_TARGET in | |
11793 | [\\/]* | ?:[\\/]*) | |
11794 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11795 | ;; | |
11796 | *) | |
11797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11798 | for as_dir in $gcc_cv_tool_dirs | |
11799 | do | |
11800 | IFS=$as_save_IFS | |
11801 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11802 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11804 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11806 | break 2 |
11807 | fi | |
11808 | done | |
81ecdfbb RW |
11809 | done |
11810 | IFS=$as_save_IFS | |
9a819804 AO |
11811 | |
11812 | ;; | |
11813 | esac | |
11814 | fi | |
11815 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11816 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11818 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11819 | else |
81ecdfbb RW |
11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11821 | $as_echo "no" >&6; } | |
9a819804 AO |
11822 | fi |
11823 | ||
81ecdfbb | 11824 | |
9a819804 AO |
11825 | fi |
11826 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11827 | ||
11828 | ||
11829 | if test -n "$LIPO_FOR_TARGET"; then | |
11830 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11831 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11832 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11833 | fi | |
11834 | ||
11835 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11836 | for ncn_progname in lipo; do | |
11837 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11838 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11840 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11841 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11842 | $as_echo_n "(cached) " >&6 |
2429c060 | 11843 | else |
9a819804 AO |
11844 | if test -n "$LIPO_FOR_TARGET"; then |
11845 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11846 | else | |
11847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11848 | for as_dir in $PATH | |
c6b750e1 DJ |
11849 | do |
11850 | IFS=$as_save_IFS | |
11851 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11852 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11853 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11854 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11856 | break 2 |
11857 | fi | |
11858 | done | |
81ecdfbb RW |
11859 | done |
11860 | IFS=$as_save_IFS | |
c6b750e1 | 11861 | |
2429c060 | 11862 | fi |
9a819804 AO |
11863 | fi |
11864 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11865 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11867 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11868 | else |
81ecdfbb RW |
11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11870 | $as_echo "no" >&6; } | |
2429c060 PB |
11871 | fi |
11872 | ||
81ecdfbb | 11873 | |
9a819804 | 11874 | done |
2429c060 | 11875 | fi |
9a819804 AO |
11876 | |
11877 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11878 | for ncn_progname in lipo; do |
81ecdfbb RW |
11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11880 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11881 | if test -x $with_build_time_tools/${ncn_progname}; then |
11882 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11884 | $as_echo "yes" >&6; } | |
2429c060 PB |
11885 | break |
11886 | else | |
81ecdfbb RW |
11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11888 | $as_echo "no" >&6; } | |
2429c060 PB |
11889 | fi |
11890 | done | |
11891 | fi | |
11892 | ||
11893 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11894 | for ncn_progname in lipo; do | |
11895 | if test -n "$ncn_target_tool_prefix"; then | |
11896 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11897 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11899 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11900 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11901 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11902 | else |
11903 | if test -n "$LIPO_FOR_TARGET"; then | |
11904 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11905 | else | |
c6b750e1 DJ |
11906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11907 | for as_dir in $PATH | |
11908 | do | |
11909 | IFS=$as_save_IFS | |
11910 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11911 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11913 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11915 | break 2 |
11916 | fi | |
11917 | done | |
81ecdfbb RW |
11918 | done |
11919 | IFS=$as_save_IFS | |
c6b750e1 | 11920 | |
2429c060 PB |
11921 | fi |
11922 | fi | |
c6b750e1 | 11923 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11924 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11926 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11927 | else |
81ecdfbb RW |
11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11929 | $as_echo "no" >&6; } | |
2429c060 PB |
11930 | fi |
11931 | ||
81ecdfbb | 11932 | |
2429c060 PB |
11933 | fi |
11934 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11935 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11936 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11938 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11939 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11940 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11941 | else |
11942 | if test -n "$LIPO_FOR_TARGET"; then | |
11943 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11944 | else | |
c6b750e1 DJ |
11945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11946 | for as_dir in $PATH | |
11947 | do | |
11948 | IFS=$as_save_IFS | |
11949 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11950 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11952 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11954 | break 2 |
11955 | fi | |
11956 | done | |
81ecdfbb RW |
11957 | done |
11958 | IFS=$as_save_IFS | |
c6b750e1 | 11959 | |
2429c060 PB |
11960 | fi |
11961 | fi | |
c6b750e1 | 11962 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11963 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11965 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11966 | else |
81ecdfbb RW |
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11968 | $as_echo "no" >&6; } | |
2429c060 | 11969 | fi |
c6b750e1 | 11970 | |
81ecdfbb | 11971 | |
2429c060 PB |
11972 | fi |
11973 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11974 | done | |
11975 | fi | |
c6b750e1 | 11976 | |
2429c060 PB |
11977 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11978 | set dummy lipo | |
11979 | if test $build = $target ; then | |
11980 | LIPO_FOR_TARGET="$2" | |
11981 | else | |
11982 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11983 | fi | |
d3f5afc4 MS |
11984 | else |
11985 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11986 | fi |
11987 | ||
3a35eeb3 PB |
11988 | else |
11989 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11990 | fi |
11991 | ||
11992 | ||
11993 | ||
11994 | ||
11995 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11996 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11998 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11999 | if test -x $with_build_time_tools/nm; then |
12000 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12001 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12003 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12004 | else |
81ecdfbb RW |
12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12006 | $as_echo "no" >&6; } | |
3a35eeb3 | 12007 | fi |
2429c060 PB |
12008 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12009 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12010 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12011 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12012 | fi |
12013 | fi | |
c6b750e1 | 12014 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12015 | # Extract the first word of "nm", so it can be a program name with args. |
12016 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12018 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12019 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12020 | $as_echo_n "(cached) " >&6 |
2429c060 | 12021 | else |
c6b750e1 DJ |
12022 | case $NM_FOR_TARGET in |
12023 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12024 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12025 | ;; | |
2429c060 | 12026 | *) |
c6b750e1 DJ |
12027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12028 | for as_dir in $gcc_cv_tool_dirs | |
12029 | do | |
12030 | IFS=$as_save_IFS | |
12031 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12032 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12034 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12036 | break 2 |
12037 | fi | |
12038 | done | |
81ecdfbb RW |
12039 | done |
12040 | IFS=$as_save_IFS | |
c6b750e1 | 12041 | |
2429c060 PB |
12042 | ;; |
12043 | esac | |
12044 | fi | |
c6b750e1 | 12045 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12046 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12048 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12049 | else |
81ecdfbb RW |
12050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12051 | $as_echo "no" >&6; } | |
2429c060 PB |
12052 | fi |
12053 | ||
81ecdfbb | 12054 | |
2429c060 PB |
12055 | fi |
12056 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12057 | |
12058 | ||
12059 | if test -n "$NM_FOR_TARGET"; then | |
12060 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12061 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12062 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12063 | fi | |
12064 | ||
12065 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12066 | for ncn_progname in nm; do | |
12067 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12068 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12070 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12071 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12072 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12073 | else |
12074 | if test -n "$NM_FOR_TARGET"; then | |
12075 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12076 | else | |
12077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12078 | for as_dir in $PATH | |
12079 | do | |
12080 | IFS=$as_save_IFS | |
12081 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12082 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12084 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12086 | break 2 |
12087 | fi | |
12088 | done | |
81ecdfbb RW |
12089 | done |
12090 | IFS=$as_save_IFS | |
9a819804 AO |
12091 | |
12092 | fi | |
12093 | fi | |
12094 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12095 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12097 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12098 | else |
81ecdfbb RW |
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12100 | $as_echo "no" >&6; } | |
9a819804 AO |
12101 | fi |
12102 | ||
81ecdfbb | 12103 | |
9a819804 AO |
12104 | done |
12105 | fi | |
12106 | ||
12107 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12108 | for ncn_progname in nm; do |
81ecdfbb RW |
12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12110 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12111 | if test -x $with_build_time_tools/${ncn_progname}; then |
12112 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12114 | $as_echo "yes" >&6; } | |
2429c060 PB |
12115 | break |
12116 | else | |
81ecdfbb RW |
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12118 | $as_echo "no" >&6; } | |
2429c060 PB |
12119 | fi |
12120 | done | |
12121 | fi | |
12122 | ||
12123 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12124 | for ncn_progname in nm; do | |
12125 | if test -n "$ncn_target_tool_prefix"; then | |
12126 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12127 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12129 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12130 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12131 | $as_echo_n "(cached) " >&6 |
859789af | 12132 | else |
55db4b87 PB |
12133 | if test -n "$NM_FOR_TARGET"; then |
12134 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12135 | else |
c6b750e1 DJ |
12136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12137 | for as_dir in $PATH | |
12138 | do | |
12139 | IFS=$as_save_IFS | |
12140 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12141 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12143 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12145 | break 2 |
12146 | fi | |
12147 | done | |
81ecdfbb RW |
12148 | done |
12149 | IFS=$as_save_IFS | |
c6b750e1 | 12150 | |
859789af AC |
12151 | fi |
12152 | fi | |
c6b750e1 | 12153 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12154 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12156 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12157 | else |
81ecdfbb RW |
12158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12159 | $as_echo "no" >&6; } | |
859789af AC |
12160 | fi |
12161 | ||
81ecdfbb | 12162 | |
2429c060 PB |
12163 | fi |
12164 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12165 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12166 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12168 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12169 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12170 | $as_echo_n "(cached) " >&6 |
859789af | 12171 | else |
05cbd757 PB |
12172 | if test -n "$NM_FOR_TARGET"; then |
12173 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12174 | else |
c6b750e1 DJ |
12175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12176 | for as_dir in $PATH | |
12177 | do | |
12178 | IFS=$as_save_IFS | |
12179 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12180 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12182 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12184 | break 2 |
12185 | fi | |
12186 | done | |
81ecdfbb RW |
12187 | done |
12188 | IFS=$as_save_IFS | |
c6b750e1 | 12189 | |
859789af AC |
12190 | fi |
12191 | fi | |
c6b750e1 | 12192 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12193 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12195 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12196 | else |
81ecdfbb RW |
12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12198 | $as_echo "no" >&6; } | |
859789af | 12199 | fi |
c6b750e1 | 12200 | |
81ecdfbb | 12201 | |
2429c060 PB |
12202 | fi |
12203 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12204 | done | |
12205 | fi | |
c6b750e1 | 12206 | |
05cbd757 PB |
12207 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12208 | set dummy nm | |
12209 | if test $build = $target ; then | |
12210 | NM_FOR_TARGET="$2" | |
859789af | 12211 | else |
05cbd757 | 12212 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12213 | fi |
d3f5afc4 MS |
12214 | else |
12215 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12216 | fi |
12217 | ||
3a35eeb3 PB |
12218 | else |
12219 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12220 | fi |
12221 | ||
12222 | ||
12223 | ||
12224 | ||
6b91c541 AP |
12225 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12226 | if test -n "$with_build_time_tools"; then | |
12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12228 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12229 | if test -x $with_build_time_tools/objcopy; then | |
12230 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12231 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12233 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12234 | else | |
12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12236 | $as_echo "no" >&6; } | |
12237 | fi | |
12238 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12239 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12240 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12241 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12242 | fi | |
12243 | fi | |
12244 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12245 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12246 | set dummy objcopy; ac_word=$2 | |
12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12248 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12249 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12250 | $as_echo_n "(cached) " >&6 |
12251 | else | |
12252 | case $OBJCOPY_FOR_TARGET in | |
12253 | [\\/]* | ?:[\\/]*) | |
12254 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12255 | ;; | |
12256 | *) | |
12257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12258 | for as_dir in $gcc_cv_tool_dirs | |
12259 | do | |
12260 | IFS=$as_save_IFS | |
12261 | test -z "$as_dir" && as_dir=. | |
12262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12264 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12266 | break 2 | |
12267 | fi | |
12268 | done | |
12269 | done | |
12270 | IFS=$as_save_IFS | |
12271 | ||
12272 | ;; | |
12273 | esac | |
12274 | fi | |
12275 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12276 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12278 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12279 | else | |
12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12281 | $as_echo "no" >&6; } | |
12282 | fi | |
12283 | ||
12284 | ||
12285 | fi | |
12286 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12287 | ||
12288 | ||
12289 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12290 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12291 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12292 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12293 | fi | |
12294 | ||
12295 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12296 | for ncn_progname in objcopy; do | |
12297 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12298 | set dummy ${ncn_progname}; ac_word=$2 | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12300 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12301 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12302 | $as_echo_n "(cached) " >&6 |
12303 | else | |
12304 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12305 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12306 | else | |
12307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12308 | for as_dir in $PATH | |
12309 | do | |
12310 | IFS=$as_save_IFS | |
12311 | test -z "$as_dir" && as_dir=. | |
12312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12314 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12316 | break 2 | |
12317 | fi | |
12318 | done | |
12319 | done | |
12320 | IFS=$as_save_IFS | |
12321 | ||
12322 | fi | |
12323 | fi | |
12324 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12325 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12327 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12328 | else | |
12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12330 | $as_echo "no" >&6; } | |
12331 | fi | |
12332 | ||
12333 | ||
12334 | done | |
12335 | fi | |
12336 | ||
12337 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12338 | for ncn_progname in objcopy; do | |
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12340 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12341 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12342 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12344 | $as_echo "yes" >&6; } | |
12345 | break | |
12346 | else | |
12347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12348 | $as_echo "no" >&6; } | |
12349 | fi | |
12350 | done | |
12351 | fi | |
12352 | ||
12353 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12354 | for ncn_progname in objcopy; do | |
12355 | if test -n "$ncn_target_tool_prefix"; then | |
12356 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12357 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12359 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12360 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12361 | $as_echo_n "(cached) " >&6 |
12362 | else | |
12363 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12364 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12365 | else | |
12366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12367 | for as_dir in $PATH | |
12368 | do | |
12369 | IFS=$as_save_IFS | |
12370 | test -z "$as_dir" && as_dir=. | |
12371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12373 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12375 | break 2 | |
12376 | fi | |
12377 | done | |
12378 | done | |
12379 | IFS=$as_save_IFS | |
12380 | ||
12381 | fi | |
12382 | fi | |
12383 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12384 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12386 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12387 | else | |
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12389 | $as_echo "no" >&6; } | |
12390 | fi | |
12391 | ||
12392 | ||
12393 | fi | |
12394 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12396 | set dummy ${ncn_progname}; ac_word=$2 | |
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12398 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12399 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12400 | $as_echo_n "(cached) " >&6 |
12401 | else | |
12402 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12403 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12404 | else | |
12405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12406 | for as_dir in $PATH | |
12407 | do | |
12408 | IFS=$as_save_IFS | |
12409 | test -z "$as_dir" && as_dir=. | |
12410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12412 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12414 | break 2 | |
12415 | fi | |
12416 | done | |
12417 | done | |
12418 | IFS=$as_save_IFS | |
12419 | ||
12420 | fi | |
12421 | fi | |
12422 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12423 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12425 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12426 | else | |
12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12428 | $as_echo "no" >&6; } | |
12429 | fi | |
12430 | ||
12431 | ||
12432 | fi | |
12433 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12434 | done | |
12435 | fi | |
12436 | ||
12437 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12438 | set dummy objcopy | |
12439 | if test $build = $target ; then | |
12440 | OBJCOPY_FOR_TARGET="$2" | |
12441 | else | |
12442 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12443 | fi | |
12444 | else | |
12445 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12446 | fi | |
12447 | ||
12448 | else | |
12449 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12450 | fi | |
12451 | ||
12452 | ||
12453 | ||
12454 | ||
2429c060 PB |
12455 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12456 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12458 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12459 | if test -x $with_build_time_tools/objdump; then |
12460 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12461 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12463 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12464 | else |
81ecdfbb RW |
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12466 | $as_echo "no" >&6; } | |
3a35eeb3 | 12467 | fi |
2429c060 PB |
12468 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12469 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12470 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12471 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12472 | fi |
12473 | fi | |
c6b750e1 | 12474 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12475 | # Extract the first word of "objdump", so it can be a program name with args. |
12476 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12478 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12479 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12480 | $as_echo_n "(cached) " >&6 |
2429c060 | 12481 | else |
c6b750e1 DJ |
12482 | case $OBJDUMP_FOR_TARGET in |
12483 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12484 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12485 | ;; | |
2429c060 | 12486 | *) |
c6b750e1 DJ |
12487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12488 | for as_dir in $gcc_cv_tool_dirs | |
12489 | do | |
12490 | IFS=$as_save_IFS | |
12491 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12492 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12494 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12496 | break 2 |
12497 | fi | |
12498 | done | |
81ecdfbb RW |
12499 | done |
12500 | IFS=$as_save_IFS | |
c6b750e1 | 12501 | |
2429c060 PB |
12502 | ;; |
12503 | esac | |
12504 | fi | |
c6b750e1 | 12505 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12506 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12508 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12509 | else |
81ecdfbb RW |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12511 | $as_echo "no" >&6; } | |
2429c060 PB |
12512 | fi |
12513 | ||
81ecdfbb | 12514 | |
2429c060 PB |
12515 | fi |
12516 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12517 | |
12518 | ||
12519 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12520 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12521 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12522 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12523 | fi | |
12524 | ||
12525 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12526 | for ncn_progname in objdump; do | |
12527 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12528 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12530 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12531 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12532 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12533 | else |
12534 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12535 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12536 | else | |
12537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12538 | for as_dir in $PATH | |
12539 | do | |
12540 | IFS=$as_save_IFS | |
12541 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12542 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12543 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12544 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12546 | break 2 |
12547 | fi | |
12548 | done | |
81ecdfbb RW |
12549 | done |
12550 | IFS=$as_save_IFS | |
9a819804 AO |
12551 | |
12552 | fi | |
12553 | fi | |
12554 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12555 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12557 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12558 | else |
81ecdfbb RW |
12559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12560 | $as_echo "no" >&6; } | |
9a819804 AO |
12561 | fi |
12562 | ||
81ecdfbb | 12563 | |
9a819804 AO |
12564 | done |
12565 | fi | |
12566 | ||
12567 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12568 | for ncn_progname in objdump; do |
81ecdfbb RW |
12569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12570 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12571 | if test -x $with_build_time_tools/${ncn_progname}; then |
12572 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12574 | $as_echo "yes" >&6; } | |
2429c060 PB |
12575 | break |
12576 | else | |
81ecdfbb RW |
12577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12578 | $as_echo "no" >&6; } | |
2429c060 PB |
12579 | fi |
12580 | done | |
12581 | fi | |
12582 | ||
12583 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12584 | for ncn_progname in objdump; do | |
12585 | if test -n "$ncn_target_tool_prefix"; then | |
12586 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12587 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12589 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12590 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12591 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12592 | else |
12593 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12594 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12595 | else | |
c6b750e1 DJ |
12596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12597 | for as_dir in $PATH | |
12598 | do | |
12599 | IFS=$as_save_IFS | |
12600 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12601 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12602 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12603 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12605 | break 2 |
12606 | fi | |
12607 | done | |
81ecdfbb RW |
12608 | done |
12609 | IFS=$as_save_IFS | |
c6b750e1 | 12610 | |
5ae72758 DJ |
12611 | fi |
12612 | fi | |
c6b750e1 | 12613 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12614 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12616 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12617 | else |
81ecdfbb RW |
12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12619 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12620 | fi |
12621 | ||
81ecdfbb | 12622 | |
2429c060 PB |
12623 | fi |
12624 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12625 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12626 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12628 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12629 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12630 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12631 | else |
12632 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12633 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12634 | else | |
c6b750e1 DJ |
12635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12636 | for as_dir in $PATH | |
12637 | do | |
12638 | IFS=$as_save_IFS | |
12639 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12640 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12642 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12644 | break 2 |
12645 | fi | |
12646 | done | |
81ecdfbb RW |
12647 | done |
12648 | IFS=$as_save_IFS | |
c6b750e1 | 12649 | |
5ae72758 DJ |
12650 | fi |
12651 | fi | |
c6b750e1 | 12652 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12653 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12655 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12656 | else |
81ecdfbb RW |
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12658 | $as_echo "no" >&6; } | |
5ae72758 | 12659 | fi |
c6b750e1 | 12660 | |
81ecdfbb | 12661 | |
2429c060 PB |
12662 | fi |
12663 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12664 | done | |
12665 | fi | |
c6b750e1 | 12666 | |
5ae72758 DJ |
12667 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12668 | set dummy objdump | |
12669 | if test $build = $target ; then | |
12670 | OBJDUMP_FOR_TARGET="$2" | |
12671 | else | |
12672 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12673 | fi | |
d3f5afc4 MS |
12674 | else |
12675 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12676 | fi |
12677 | ||
3a35eeb3 PB |
12678 | else |
12679 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12680 | fi |
12681 | ||
12682 | ||
12683 | ||
12684 | ||
12685 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12686 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12688 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12689 | if test -x $with_build_time_tools/ranlib; then |
12690 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12691 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12693 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12694 | else |
81ecdfbb RW |
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12696 | $as_echo "no" >&6; } | |
3a35eeb3 | 12697 | fi |
2429c060 PB |
12698 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12699 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12700 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12701 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12702 | fi |
12703 | fi | |
c6b750e1 | 12704 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12705 | # Extract the first word of "ranlib", so it can be a program name with args. |
12706 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12708 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12709 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12710 | $as_echo_n "(cached) " >&6 |
2429c060 | 12711 | else |
c6b750e1 DJ |
12712 | case $RANLIB_FOR_TARGET in |
12713 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12714 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12715 | ;; | |
2429c060 | 12716 | *) |
c6b750e1 DJ |
12717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12718 | for as_dir in $gcc_cv_tool_dirs | |
12719 | do | |
12720 | IFS=$as_save_IFS | |
12721 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12722 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12724 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12726 | break 2 |
12727 | fi | |
12728 | done | |
81ecdfbb RW |
12729 | done |
12730 | IFS=$as_save_IFS | |
c6b750e1 | 12731 | |
2429c060 PB |
12732 | ;; |
12733 | esac | |
12734 | fi | |
c6b750e1 | 12735 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12736 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12738 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12739 | else |
81ecdfbb RW |
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12741 | $as_echo "no" >&6; } | |
2429c060 PB |
12742 | fi |
12743 | ||
81ecdfbb | 12744 | |
2429c060 PB |
12745 | fi |
12746 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12747 | |
12748 | ||
12749 | if test -n "$RANLIB_FOR_TARGET"; then | |
12750 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12751 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12752 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12753 | fi | |
12754 | ||
12755 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12756 | for ncn_progname in ranlib; do | |
12757 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12758 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12760 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12761 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12762 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12763 | else |
12764 | if test -n "$RANLIB_FOR_TARGET"; then | |
12765 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12766 | else | |
12767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12768 | for as_dir in $PATH | |
12769 | do | |
12770 | IFS=$as_save_IFS | |
12771 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12772 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12774 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12776 | break 2 |
12777 | fi | |
12778 | done | |
81ecdfbb RW |
12779 | done |
12780 | IFS=$as_save_IFS | |
9a819804 AO |
12781 | |
12782 | fi | |
12783 | fi | |
12784 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12785 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12787 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12788 | else |
81ecdfbb RW |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12790 | $as_echo "no" >&6; } | |
9a819804 AO |
12791 | fi |
12792 | ||
81ecdfbb | 12793 | |
9a819804 AO |
12794 | done |
12795 | fi | |
12796 | ||
12797 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12798 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12800 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12801 | if test -x $with_build_time_tools/${ncn_progname}; then |
12802 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12804 | $as_echo "yes" >&6; } | |
2429c060 PB |
12805 | break |
12806 | else | |
81ecdfbb RW |
12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12808 | $as_echo "no" >&6; } | |
2429c060 PB |
12809 | fi |
12810 | done | |
12811 | fi | |
12812 | ||
12813 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12814 | for ncn_progname in ranlib; do | |
12815 | if test -n "$ncn_target_tool_prefix"; then | |
12816 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12817 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12819 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12820 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12821 | $as_echo_n "(cached) " >&6 |
859789af | 12822 | else |
55db4b87 PB |
12823 | if test -n "$RANLIB_FOR_TARGET"; then |
12824 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12825 | else |
c6b750e1 DJ |
12826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12827 | for as_dir in $PATH | |
12828 | do | |
12829 | IFS=$as_save_IFS | |
12830 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12831 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12832 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12833 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12835 | break 2 |
12836 | fi | |
12837 | done | |
81ecdfbb RW |
12838 | done |
12839 | IFS=$as_save_IFS | |
c6b750e1 | 12840 | |
859789af AC |
12841 | fi |
12842 | fi | |
c6b750e1 | 12843 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12844 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12846 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12847 | else |
81ecdfbb RW |
12848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12849 | $as_echo "no" >&6; } | |
859789af AC |
12850 | fi |
12851 | ||
81ecdfbb | 12852 | |
2429c060 PB |
12853 | fi |
12854 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12855 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12856 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12858 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12859 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12860 | $as_echo_n "(cached) " >&6 |
859789af | 12861 | else |
05cbd757 PB |
12862 | if test -n "$RANLIB_FOR_TARGET"; then |
12863 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12864 | else |
c6b750e1 DJ |
12865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12866 | for as_dir in $PATH | |
12867 | do | |
12868 | IFS=$as_save_IFS | |
12869 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12870 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12872 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12874 | break 2 |
12875 | fi | |
12876 | done | |
81ecdfbb RW |
12877 | done |
12878 | IFS=$as_save_IFS | |
c6b750e1 | 12879 | |
859789af AC |
12880 | fi |
12881 | fi | |
c6b750e1 | 12882 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12883 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12885 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12886 | else |
81ecdfbb RW |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12888 | $as_echo "no" >&6; } | |
859789af | 12889 | fi |
c6b750e1 | 12890 | |
81ecdfbb | 12891 | |
2429c060 PB |
12892 | fi |
12893 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12894 | done | |
12895 | fi | |
c6b750e1 | 12896 | |
2429c060 PB |
12897 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12898 | set dummy ranlib | |
12899 | if test $build = $target ; then | |
12900 | RANLIB_FOR_TARGET="$2" | |
12901 | else | |
12902 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12903 | fi |
d3f5afc4 MS |
12904 | else |
12905 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12906 | fi |
05cbd757 | 12907 | |
3a35eeb3 PB |
12908 | else |
12909 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12910 | fi |
12911 | ||
2429c060 PB |
12912 | |
12913 | ||
12914 | ||
b121d7d4 DD |
12915 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12916 | if test -n "$with_build_time_tools"; then | |
12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12918 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12919 | if test -x $with_build_time_tools/readelf; then | |
12920 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12921 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12923 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12924 | else | |
12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12926 | $as_echo "no" >&6; } | |
12927 | fi | |
12928 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12929 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12930 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12931 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12932 | fi | |
12933 | fi | |
12934 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12935 | # Extract the first word of "readelf", so it can be a program name with args. | |
12936 | set dummy readelf; ac_word=$2 | |
12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12938 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12939 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12940 | $as_echo_n "(cached) " >&6 |
12941 | else | |
12942 | case $READELF_FOR_TARGET in | |
12943 | [\\/]* | ?:[\\/]*) | |
12944 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12945 | ;; | |
12946 | *) | |
12947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12948 | for as_dir in $gcc_cv_tool_dirs | |
12949 | do | |
12950 | IFS=$as_save_IFS | |
12951 | test -z "$as_dir" && as_dir=. | |
12952 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12954 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12956 | break 2 | |
12957 | fi | |
12958 | done | |
12959 | done | |
12960 | IFS=$as_save_IFS | |
12961 | ||
12962 | ;; | |
12963 | esac | |
12964 | fi | |
12965 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12966 | if test -n "$READELF_FOR_TARGET"; then | |
12967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12968 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12969 | else | |
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12971 | $as_echo "no" >&6; } | |
12972 | fi | |
12973 | ||
12974 | ||
12975 | fi | |
12976 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12977 | ||
12978 | ||
12979 | if test -n "$READELF_FOR_TARGET"; then | |
12980 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12981 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12982 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12983 | fi | |
12984 | ||
12985 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12986 | for ncn_progname in readelf; do | |
12987 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12988 | set dummy ${ncn_progname}; ac_word=$2 | |
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12990 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12991 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12992 | $as_echo_n "(cached) " >&6 |
12993 | else | |
12994 | if test -n "$READELF_FOR_TARGET"; then | |
12995 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12996 | else | |
12997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12998 | for as_dir in $PATH | |
12999 | do | |
13000 | IFS=$as_save_IFS | |
13001 | test -z "$as_dir" && as_dir=. | |
13002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13003 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13004 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13006 | break 2 | |
13007 | fi | |
13008 | done | |
13009 | done | |
13010 | IFS=$as_save_IFS | |
13011 | ||
13012 | fi | |
13013 | fi | |
13014 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13015 | if test -n "$READELF_FOR_TARGET"; then | |
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13017 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13018 | else | |
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13020 | $as_echo "no" >&6; } | |
13021 | fi | |
13022 | ||
13023 | ||
13024 | done | |
13025 | fi | |
13026 | ||
13027 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13028 | for ncn_progname in readelf; do | |
13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13030 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13031 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13032 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13034 | $as_echo "yes" >&6; } | |
13035 | break | |
13036 | else | |
13037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13038 | $as_echo "no" >&6; } | |
13039 | fi | |
13040 | done | |
13041 | fi | |
13042 | ||
13043 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13044 | for ncn_progname in readelf; do | |
13045 | if test -n "$ncn_target_tool_prefix"; then | |
13046 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13047 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13049 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13050 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13051 | $as_echo_n "(cached) " >&6 |
13052 | else | |
13053 | if test -n "$READELF_FOR_TARGET"; then | |
13054 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13055 | else | |
13056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13057 | for as_dir in $PATH | |
13058 | do | |
13059 | IFS=$as_save_IFS | |
13060 | test -z "$as_dir" && as_dir=. | |
13061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13063 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13065 | break 2 | |
13066 | fi | |
13067 | done | |
13068 | done | |
13069 | IFS=$as_save_IFS | |
13070 | ||
13071 | fi | |
13072 | fi | |
13073 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13074 | if test -n "$READELF_FOR_TARGET"; then | |
13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13076 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13077 | else | |
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13079 | $as_echo "no" >&6; } | |
13080 | fi | |
13081 | ||
13082 | ||
13083 | fi | |
13084 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13085 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13086 | set dummy ${ncn_progname}; ac_word=$2 | |
13087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13088 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13089 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13090 | $as_echo_n "(cached) " >&6 |
13091 | else | |
13092 | if test -n "$READELF_FOR_TARGET"; then | |
13093 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13094 | else | |
13095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13096 | for as_dir in $PATH | |
13097 | do | |
13098 | IFS=$as_save_IFS | |
13099 | test -z "$as_dir" && as_dir=. | |
13100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13102 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13104 | break 2 | |
13105 | fi | |
13106 | done | |
13107 | done | |
13108 | IFS=$as_save_IFS | |
13109 | ||
13110 | fi | |
13111 | fi | |
13112 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13113 | if test -n "$READELF_FOR_TARGET"; then | |
13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13115 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13116 | else | |
13117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13118 | $as_echo "no" >&6; } | |
13119 | fi | |
13120 | ||
13121 | ||
13122 | fi | |
13123 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13124 | done | |
13125 | fi | |
13126 | ||
13127 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13128 | set dummy readelf | |
13129 | if test $build = $target ; then | |
13130 | READELF_FOR_TARGET="$2" | |
13131 | else | |
13132 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13133 | fi | |
13134 | else | |
13135 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13136 | fi | |
13137 | ||
13138 | else | |
13139 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13140 | fi | |
13141 | ||
13142 | ||
13143 | ||
13144 | ||
2429c060 PB |
13145 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13146 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13148 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13149 | if test -x $with_build_time_tools/strip; then |
13150 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13151 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13153 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13154 | else |
81ecdfbb RW |
13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13156 | $as_echo "no" >&6; } | |
3a35eeb3 | 13157 | fi |
2429c060 PB |
13158 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13159 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13160 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13161 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13162 | fi |
13163 | fi | |
c6b750e1 | 13164 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13165 | # Extract the first word of "strip", so it can be a program name with args. |
13166 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13168 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13169 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13170 | $as_echo_n "(cached) " >&6 |
2429c060 | 13171 | else |
c6b750e1 DJ |
13172 | case $STRIP_FOR_TARGET in |
13173 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13174 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13175 | ;; | |
2429c060 | 13176 | *) |
c6b750e1 DJ |
13177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13178 | for as_dir in $gcc_cv_tool_dirs | |
13179 | do | |
13180 | IFS=$as_save_IFS | |
13181 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13182 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13184 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13186 | break 2 |
13187 | fi | |
13188 | done | |
81ecdfbb RW |
13189 | done |
13190 | IFS=$as_save_IFS | |
c6b750e1 | 13191 | |
2429c060 PB |
13192 | ;; |
13193 | esac | |
13194 | fi | |
c6b750e1 | 13195 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13196 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13198 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13199 | else |
81ecdfbb RW |
13200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13201 | $as_echo "no" >&6; } | |
2429c060 PB |
13202 | fi |
13203 | ||
81ecdfbb | 13204 | |
2429c060 PB |
13205 | fi |
13206 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13207 | |
13208 | ||
13209 | if test -n "$STRIP_FOR_TARGET"; then | |
13210 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13211 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13212 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13213 | fi | |
13214 | ||
13215 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13216 | for ncn_progname in strip; do | |
13217 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13218 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13220 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13221 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13222 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13223 | else |
13224 | if test -n "$STRIP_FOR_TARGET"; then | |
13225 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13226 | else | |
13227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13228 | for as_dir in $PATH | |
13229 | do | |
13230 | IFS=$as_save_IFS | |
13231 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13232 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13233 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13234 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13236 | break 2 |
13237 | fi | |
13238 | done | |
81ecdfbb RW |
13239 | done |
13240 | IFS=$as_save_IFS | |
9a819804 AO |
13241 | |
13242 | fi | |
13243 | fi | |
13244 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13245 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13247 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13248 | else |
81ecdfbb RW |
13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13250 | $as_echo "no" >&6; } | |
9a819804 AO |
13251 | fi |
13252 | ||
81ecdfbb | 13253 | |
9a819804 AO |
13254 | done |
13255 | fi | |
13256 | ||
13257 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13258 | for ncn_progname in strip; do |
81ecdfbb RW |
13259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13260 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13261 | if test -x $with_build_time_tools/${ncn_progname}; then |
13262 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13264 | $as_echo "yes" >&6; } | |
2429c060 PB |
13265 | break |
13266 | else | |
81ecdfbb RW |
13267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13268 | $as_echo "no" >&6; } | |
2429c060 PB |
13269 | fi |
13270 | done | |
13271 | fi | |
13272 | ||
13273 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13274 | for ncn_progname in strip; do | |
13275 | if test -n "$ncn_target_tool_prefix"; then | |
13276 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13277 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13279 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13280 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13281 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13282 | else |
13283 | if test -n "$STRIP_FOR_TARGET"; then | |
13284 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13285 | else |
13286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13287 | for as_dir in $PATH | |
13288 | do | |
13289 | IFS=$as_save_IFS | |
13290 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13291 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13292 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13293 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13295 | break 2 |
13296 | fi | |
13297 | done | |
81ecdfbb RW |
13298 | done |
13299 | IFS=$as_save_IFS | |
c6b750e1 | 13300 | |
7e0f7140 GK |
13301 | fi |
13302 | fi | |
c6b750e1 | 13303 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13304 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13306 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13307 | else |
81ecdfbb RW |
13308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13309 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13310 | fi |
13311 | ||
81ecdfbb | 13312 | |
2429c060 PB |
13313 | fi |
13314 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13315 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13316 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13318 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13319 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13320 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13321 | else |
13322 | if test -n "$STRIP_FOR_TARGET"; then | |
13323 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13324 | else | |
c6b750e1 DJ |
13325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13326 | for as_dir in $PATH | |
13327 | do | |
13328 | IFS=$as_save_IFS | |
13329 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13330 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13331 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13332 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13334 | break 2 |
13335 | fi | |
13336 | done | |
81ecdfbb RW |
13337 | done |
13338 | IFS=$as_save_IFS | |
c6b750e1 | 13339 | |
7e0f7140 GK |
13340 | fi |
13341 | fi | |
c6b750e1 | 13342 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13343 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13345 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13346 | else |
81ecdfbb RW |
13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13348 | $as_echo "no" >&6; } | |
7e0f7140 | 13349 | fi |
c6b750e1 | 13350 | |
81ecdfbb | 13351 | |
2429c060 PB |
13352 | fi |
13353 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13354 | done | |
13355 | fi | |
c6b750e1 | 13356 | |
7e0f7140 GK |
13357 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13358 | set dummy strip | |
13359 | if test $build = $target ; then | |
13360 | STRIP_FOR_TARGET="$2" | |
13361 | else | |
13362 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13363 | fi | |
d3f5afc4 MS |
13364 | else |
13365 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13366 | fi |
13367 | ||
3a35eeb3 PB |
13368 | else |
13369 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13370 | fi |
13371 | ||
13372 | ||
13373 | ||
13374 | ||
13375 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13376 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13378 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13379 | if test -x $with_build_time_tools/windres; then |
13380 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13381 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13383 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13384 | else |
81ecdfbb RW |
13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13386 | $as_echo "no" >&6; } | |
3a35eeb3 | 13387 | fi |
2429c060 PB |
13388 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13389 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13390 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13391 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13392 | fi |
13393 | fi | |
c6b750e1 | 13394 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13395 | # Extract the first word of "windres", so it can be a program name with args. |
13396 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13398 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13399 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13400 | $as_echo_n "(cached) " >&6 |
2429c060 | 13401 | else |
c6b750e1 DJ |
13402 | case $WINDRES_FOR_TARGET in |
13403 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13404 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13405 | ;; | |
2429c060 | 13406 | *) |
c6b750e1 DJ |
13407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13408 | for as_dir in $gcc_cv_tool_dirs | |
13409 | do | |
13410 | IFS=$as_save_IFS | |
13411 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13412 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13414 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13416 | break 2 |
13417 | fi | |
13418 | done | |
81ecdfbb RW |
13419 | done |
13420 | IFS=$as_save_IFS | |
c6b750e1 | 13421 | |
2429c060 PB |
13422 | ;; |
13423 | esac | |
13424 | fi | |
c6b750e1 | 13425 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13426 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13428 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13429 | else |
81ecdfbb RW |
13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13431 | $as_echo "no" >&6; } | |
2429c060 PB |
13432 | fi |
13433 | ||
81ecdfbb | 13434 | |
2429c060 PB |
13435 | fi |
13436 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13437 | |
13438 | ||
13439 | if test -n "$WINDRES_FOR_TARGET"; then | |
13440 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13441 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13442 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13443 | fi | |
13444 | ||
13445 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13446 | for ncn_progname in windres; do | |
13447 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13448 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13450 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13451 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13452 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13453 | else |
13454 | if test -n "$WINDRES_FOR_TARGET"; then | |
13455 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13456 | else | |
13457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13458 | for as_dir in $PATH | |
13459 | do | |
13460 | IFS=$as_save_IFS | |
13461 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13462 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13463 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13464 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13465 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13466 | break 2 |
13467 | fi | |
13468 | done | |
81ecdfbb RW |
13469 | done |
13470 | IFS=$as_save_IFS | |
9a819804 AO |
13471 | |
13472 | fi | |
13473 | fi | |
13474 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13475 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13477 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13478 | else |
81ecdfbb RW |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13480 | $as_echo "no" >&6; } | |
9a819804 AO |
13481 | fi |
13482 | ||
81ecdfbb | 13483 | |
9a819804 AO |
13484 | done |
13485 | fi | |
13486 | ||
13487 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13488 | for ncn_progname in windres; do |
81ecdfbb RW |
13489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13490 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13491 | if test -x $with_build_time_tools/${ncn_progname}; then |
13492 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13494 | $as_echo "yes" >&6; } | |
2429c060 PB |
13495 | break |
13496 | else | |
81ecdfbb RW |
13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13498 | $as_echo "no" >&6; } | |
2429c060 PB |
13499 | fi |
13500 | done | |
13501 | fi | |
13502 | ||
13503 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13504 | for ncn_progname in windres; do | |
13505 | if test -n "$ncn_target_tool_prefix"; then | |
13506 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13507 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13509 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13510 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13511 | $as_echo_n "(cached) " >&6 |
859789af | 13512 | else |
55db4b87 PB |
13513 | if test -n "$WINDRES_FOR_TARGET"; then |
13514 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13515 | else |
c6b750e1 DJ |
13516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13517 | for as_dir in $PATH | |
13518 | do | |
13519 | IFS=$as_save_IFS | |
13520 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13521 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13523 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13525 | break 2 |
13526 | fi | |
13527 | done | |
81ecdfbb RW |
13528 | done |
13529 | IFS=$as_save_IFS | |
c6b750e1 | 13530 | |
859789af AC |
13531 | fi |
13532 | fi | |
c6b750e1 | 13533 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13534 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13536 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13537 | else |
81ecdfbb RW |
13538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13539 | $as_echo "no" >&6; } | |
859789af AC |
13540 | fi |
13541 | ||
81ecdfbb | 13542 | |
2429c060 PB |
13543 | fi |
13544 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13546 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13548 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13549 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13550 | $as_echo_n "(cached) " >&6 |
859789af | 13551 | else |
05cbd757 PB |
13552 | if test -n "$WINDRES_FOR_TARGET"; then |
13553 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13554 | else |
c6b750e1 DJ |
13555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13556 | for as_dir in $PATH | |
13557 | do | |
13558 | IFS=$as_save_IFS | |
13559 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13560 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13562 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13564 | break 2 |
13565 | fi | |
13566 | done | |
81ecdfbb RW |
13567 | done |
13568 | IFS=$as_save_IFS | |
c6b750e1 | 13569 | |
859789af AC |
13570 | fi |
13571 | fi | |
c6b750e1 | 13572 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13573 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13575 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13576 | else |
81ecdfbb RW |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13578 | $as_echo "no" >&6; } | |
859789af | 13579 | fi |
c6b750e1 | 13580 | |
81ecdfbb | 13581 | |
2429c060 PB |
13582 | fi |
13583 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13584 | done | |
13585 | fi | |
c6b750e1 | 13586 | |
05cbd757 PB |
13587 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13588 | set dummy windres | |
13589 | if test $build = $target ; then | |
13590 | WINDRES_FOR_TARGET="$2" | |
859789af | 13591 | else |
05cbd757 | 13592 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13593 | fi |
d3f5afc4 MS |
13594 | else |
13595 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13596 | fi |
13597 | ||
3a35eeb3 PB |
13598 | else |
13599 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13600 | fi |
13601 | ||
852e5f18 | 13602 | |
0c24b341 NC |
13603 | |
13604 | ||
13605 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13606 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13608 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13609 | if test -x $with_build_time_tools/windmc; then |
13610 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13611 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13613 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13614 | else |
81ecdfbb RW |
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13616 | $as_echo "no" >&6; } | |
0c24b341 NC |
13617 | fi |
13618 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13619 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13620 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13621 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13622 | fi | |
13623 | fi | |
13624 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13625 | # Extract the first word of "windmc", so it can be a program name with args. | |
13626 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13628 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13629 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13630 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13631 | else |
13632 | case $WINDMC_FOR_TARGET in | |
13633 | [\\/]* | ?:[\\/]*) | |
13634 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13635 | ;; | |
13636 | *) | |
13637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13638 | for as_dir in $gcc_cv_tool_dirs | |
13639 | do | |
13640 | IFS=$as_save_IFS | |
13641 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13642 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13644 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13646 | break 2 |
13647 | fi | |
13648 | done | |
81ecdfbb RW |
13649 | done |
13650 | IFS=$as_save_IFS | |
0c24b341 NC |
13651 | |
13652 | ;; | |
13653 | esac | |
13654 | fi | |
13655 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13656 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13658 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13659 | else |
81ecdfbb RW |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13661 | $as_echo "no" >&6; } | |
0c24b341 NC |
13662 | fi |
13663 | ||
81ecdfbb | 13664 | |
0c24b341 NC |
13665 | fi |
13666 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13667 | ||
13668 | ||
13669 | if test -n "$WINDMC_FOR_TARGET"; then | |
13670 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13671 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13672 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13673 | fi | |
13674 | ||
13675 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13676 | for ncn_progname in windmc; do | |
13677 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13678 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13680 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13681 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13682 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13683 | else |
13684 | if test -n "$WINDMC_FOR_TARGET"; then | |
13685 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13686 | else | |
13687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13688 | for as_dir in $PATH | |
13689 | do | |
13690 | IFS=$as_save_IFS | |
13691 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13692 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13694 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13696 | break 2 |
13697 | fi | |
13698 | done | |
81ecdfbb RW |
13699 | done |
13700 | IFS=$as_save_IFS | |
0c24b341 NC |
13701 | |
13702 | fi | |
13703 | fi | |
13704 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13705 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13707 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13708 | else |
81ecdfbb RW |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13710 | $as_echo "no" >&6; } | |
0c24b341 NC |
13711 | fi |
13712 | ||
81ecdfbb | 13713 | |
0c24b341 NC |
13714 | done |
13715 | fi | |
13716 | ||
13717 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13718 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13720 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13721 | if test -x $with_build_time_tools/${ncn_progname}; then |
13722 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13724 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13725 | break |
13726 | else | |
81ecdfbb RW |
13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13728 | $as_echo "no" >&6; } | |
0c24b341 NC |
13729 | fi |
13730 | done | |
13731 | fi | |
13732 | ||
13733 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13734 | for ncn_progname in windmc; do | |
13735 | if test -n "$ncn_target_tool_prefix"; then | |
13736 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13737 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13739 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13740 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13741 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13742 | else |
13743 | if test -n "$WINDMC_FOR_TARGET"; then | |
13744 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13745 | else | |
13746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13747 | for as_dir in $PATH | |
13748 | do | |
13749 | IFS=$as_save_IFS | |
13750 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13751 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13753 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13755 | break 2 |
13756 | fi | |
13757 | done | |
81ecdfbb RW |
13758 | done |
13759 | IFS=$as_save_IFS | |
0c24b341 NC |
13760 | |
13761 | fi | |
13762 | fi | |
13763 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13764 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13766 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13767 | else |
81ecdfbb RW |
13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13769 | $as_echo "no" >&6; } | |
0c24b341 NC |
13770 | fi |
13771 | ||
81ecdfbb | 13772 | |
0c24b341 NC |
13773 | fi |
13774 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13775 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13776 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13778 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13779 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13780 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13781 | else |
13782 | if test -n "$WINDMC_FOR_TARGET"; then | |
13783 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13784 | else | |
13785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13786 | for as_dir in $PATH | |
13787 | do | |
13788 | IFS=$as_save_IFS | |
13789 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13790 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13792 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13794 | break 2 |
13795 | fi | |
13796 | done | |
81ecdfbb RW |
13797 | done |
13798 | IFS=$as_save_IFS | |
0c24b341 NC |
13799 | |
13800 | fi | |
13801 | fi | |
13802 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13803 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13805 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13806 | else |
81ecdfbb RW |
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13808 | $as_echo "no" >&6; } | |
0c24b341 NC |
13809 | fi |
13810 | ||
81ecdfbb | 13811 | |
0c24b341 NC |
13812 | fi |
13813 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13814 | done | |
13815 | fi | |
13816 | ||
13817 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13818 | set dummy windmc | |
13819 | if test $build = $target ; then | |
13820 | WINDMC_FOR_TARGET="$2" | |
13821 | else | |
13822 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13823 | fi | |
13824 | else | |
13825 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13826 | fi | |
13827 | ||
13828 | else | |
13829 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13830 | fi | |
13831 | ||
13832 | ||
be01d343 PB |
13833 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13834 | ||
81ecdfbb RW |
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13836 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13837 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13838 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13839 | # We already found the complete path | |
b8025f34 | 13840 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13842 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13843 | else |
13844 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13846 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13847 | fi |
be01d343 PB |
13848 | else |
13849 | ok=yes | |
13850 | case " ${configdirs} " in | |
13851 | *" binutils "*) ;; | |
13852 | *) ok=no ;; | |
13853 | esac | |
c6b750e1 | 13854 | |
be01d343 PB |
13855 | if test $ok = yes; then |
13856 | # An in-tree tool is available and we can use it | |
13857 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13859 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13860 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13861 | # We already found the complete path | |
b8025f34 | 13862 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13864 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13865 | elif test "x$target" = "x$host"; then |
13866 | # We can use an host tool | |
13867 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13869 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13870 | else |
13871 | # We need a cross tool | |
81ecdfbb RW |
13872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13873 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13874 | fi |
13875 | fi | |
4b900473 | 13876 | |
81ecdfbb RW |
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13878 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13879 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13880 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13881 | # We already found the complete path | |
b8025f34 | 13882 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13884 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13885 | else |
13886 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13888 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13889 | fi |
be01d343 PB |
13890 | else |
13891 | ok=yes | |
13892 | case " ${configdirs} " in | |
13893 | *" gas "*) ;; | |
13894 | *) ok=no ;; | |
13895 | esac | |
c6b750e1 | 13896 | |
be01d343 PB |
13897 | if test $ok = yes; then |
13898 | # An in-tree tool is available and we can use it | |
13899 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13901 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13902 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13903 | # We already found the complete path | |
b8025f34 | 13904 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13906 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13907 | elif test "x$target" = "x$host"; then |
13908 | # We can use an host tool | |
13909 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13911 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13912 | else |
13913 | # We need a cross tool | |
81ecdfbb RW |
13914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13915 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13916 | fi |
13917 | fi | |
4b900473 | 13918 | |
81ecdfbb RW |
13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13920 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13921 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13922 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13923 | # We already found the complete path | |
b8025f34 | 13924 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13926 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13927 | else |
13928 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13930 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13931 | fi |
be01d343 PB |
13932 | else |
13933 | ok=yes | |
13934 | case " ${configdirs} " in | |
13935 | *" gcc "*) ;; | |
13936 | *) ok=no ;; | |
13937 | esac | |
c6b750e1 | 13938 | |
be01d343 PB |
13939 | if test $ok = yes; then |
13940 | # An in-tree tool is available and we can use it | |
13941 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13943 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13944 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13945 | # We already found the complete path | |
b8025f34 | 13946 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13948 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13949 | elif test "x$target" = "x$host"; then |
13950 | # We can use an host tool | |
13951 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13953 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13954 | else |
13955 | # We need a cross tool | |
81ecdfbb RW |
13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13957 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13958 | fi |
13959 | fi | |
4b900473 | 13960 | |
81ecdfbb RW |
13961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13962 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13963 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13964 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13965 | # We already found the complete path | |
b8025f34 | 13966 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13968 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13969 | else |
13970 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13972 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13973 | fi |
be01d343 PB |
13974 | else |
13975 | ok=yes | |
13976 | case " ${configdirs} " in | |
13977 | *" gcc "*) ;; | |
13978 | *) ok=no ;; | |
13979 | esac | |
13980 | case ,${enable_languages}, in | |
13981 | *,c++,*) ;; | |
13982 | *) ok=no ;; | |
13983 | esac | |
13984 | if test $ok = yes; then | |
13985 | # An in-tree tool is available and we can use it | |
95e43135 | 13986 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13988 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13989 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13990 | # We already found the complete path | |
b8025f34 | 13991 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13993 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13994 | elif test "x$target" = "x$host"; then |
13995 | # We can use an host tool | |
13996 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13998 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13999 | else |
14000 | # We need a cross tool | |
81ecdfbb RW |
14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14002 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14003 | fi |
14004 | fi | |
4b900473 | 14005 | |
81ecdfbb RW |
14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14007 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 14008 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14009 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14010 | # We already found the complete path | |
b8025f34 | 14011 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14013 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14014 | else |
14015 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14017 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14018 | fi |
be01d343 PB |
14019 | else |
14020 | ok=yes | |
14021 | case " ${configdirs} " in | |
14022 | *" gcc "*) ;; | |
14023 | *) ok=no ;; | |
14024 | esac | |
14025 | case ,${enable_languages}, in | |
14026 | *,c++,*) ;; | |
14027 | *) ok=no ;; | |
14028 | esac | |
14029 | if test $ok = yes; then | |
14030 | # An in-tree tool is available and we can use it | |
95e43135 | 14031 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14033 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14034 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14035 | # We already found the complete path | |
b8025f34 | 14036 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14038 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14039 | elif test "x$target" = "x$host"; then |
14040 | # We can use an host tool | |
14041 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14043 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14044 | else |
14045 | # We need a cross tool | |
81ecdfbb RW |
14046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14047 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14048 | fi |
14049 | fi | |
4b900473 | 14050 | |
81ecdfbb RW |
14051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14052 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 14053 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14054 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14055 | # We already found the complete path | |
b8025f34 | 14056 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14058 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14059 | else |
14060 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14062 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14063 | fi |
be01d343 PB |
14064 | else |
14065 | ok=yes | |
14066 | case " ${configdirs} " in | |
14067 | *" binutils "*) ;; | |
14068 | *) ok=no ;; | |
14069 | esac | |
c6b750e1 | 14070 | |
be01d343 PB |
14071 | if test $ok = yes; then |
14072 | # An in-tree tool is available and we can use it | |
14073 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14075 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14076 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14077 | # We already found the complete path | |
b8025f34 | 14078 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14080 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14081 | elif test "x$target" = "x$host"; then |
14082 | # We can use an host tool | |
14083 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14085 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14086 | else |
14087 | # We need a cross tool | |
81ecdfbb RW |
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14089 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14090 | fi |
14091 | fi | |
4b900473 | 14092 | |
81ecdfbb RW |
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14094 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14095 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14096 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14097 | # We already found the complete path | |
b8025f34 | 14098 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14100 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14101 | else |
14102 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14104 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14105 | fi |
be01d343 PB |
14106 | else |
14107 | ok=yes | |
14108 | case " ${configdirs} " in | |
14109 | *" gcc "*) ;; | |
14110 | *) ok=no ;; | |
14111 | esac | |
c6b750e1 | 14112 | |
be01d343 PB |
14113 | if test $ok = yes; then |
14114 | # An in-tree tool is available and we can use it | |
14115 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14117 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14118 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14119 | # We already found the complete path | |
b8025f34 | 14120 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14122 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14123 | elif test "x$target" = "x$host"; then |
14124 | # We can use an host tool | |
14125 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14127 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14128 | else |
14129 | # We need a cross tool | |
81ecdfbb RW |
14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14131 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14132 | fi |
14133 | fi | |
4b900473 | 14134 | |
81ecdfbb RW |
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14136 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14137 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14138 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14139 | # We already found the complete path | |
b8025f34 | 14140 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14142 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14143 | else |
14144 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14146 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14147 | fi |
be01d343 PB |
14148 | else |
14149 | ok=yes | |
14150 | case " ${configdirs} " in | |
14151 | *" gcc "*) ;; | |
14152 | *) ok=no ;; | |
14153 | esac | |
14154 | case ,${enable_languages}, in | |
14155 | *,fortran,*) ;; | |
14156 | *) ok=no ;; | |
14157 | esac | |
14158 | if test $ok = yes; then | |
14159 | # An in-tree tool is available and we can use it | |
14160 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14162 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14163 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14164 | # We already found the complete path | |
b8025f34 | 14165 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14167 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14168 | elif test "x$target" = "x$host"; then |
14169 | # We can use an host tool | |
14170 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14172 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14173 | else |
14174 | # We need a cross tool | |
81ecdfbb RW |
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14176 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14177 | fi |
14178 | fi | |
4b900473 | 14179 | |
e552509b ILT |
14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14181 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14182 | if test "x${build}" != "x${host}" ; then | |
14183 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14184 | # We already found the complete path | |
14185 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14187 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14188 | else | |
14189 | # Canadian cross, just use what we found | |
14190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14191 | $as_echo "pre-installed" >&6; } | |
14192 | fi | |
14193 | else | |
14194 | ok=yes | |
14195 | case " ${configdirs} " in | |
14196 | *" gcc "*) ;; | |
14197 | *) ok=no ;; | |
14198 | esac | |
14199 | case ,${enable_languages}, in | |
14200 | *,go,*) ;; | |
14201 | *) ok=no ;; | |
14202 | esac | |
14203 | if test $ok = yes; then | |
14204 | # An in-tree tool is available and we can use it | |
14205 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14207 | $as_echo "just compiled" >&6; } | |
14208 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14209 | # We already found the complete path | |
14210 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14212 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14213 | elif test "x$target" = "x$host"; then | |
14214 | # We can use an host tool | |
14215 | GOC_FOR_TARGET='$(GOC)' | |
14216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14217 | $as_echo "host tool" >&6; } | |
14218 | else | |
14219 | # We need a cross tool | |
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14221 | $as_echo "pre-installed" >&6; } | |
14222 | fi | |
14223 | fi | |
14224 | ||
81ecdfbb RW |
14225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14226 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14227 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14228 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14229 | # We already found the complete path | |
b8025f34 | 14230 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14232 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14233 | else |
14234 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14236 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14237 | fi |
be01d343 PB |
14238 | else |
14239 | ok=yes | |
14240 | case " ${configdirs} " in | |
14241 | *" ld "*) ;; | |
14242 | *) ok=no ;; | |
14243 | esac | |
c6b750e1 | 14244 | |
be01d343 PB |
14245 | if test $ok = yes; then |
14246 | # An in-tree tool is available and we can use it | |
14247 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14249 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14250 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14251 | # We already found the complete path | |
b8025f34 | 14252 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14254 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14255 | elif test "x$target" = "x$host"; then |
14256 | # We can use an host tool | |
14257 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14259 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14260 | else |
14261 | # We need a cross tool | |
81ecdfbb RW |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14263 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14264 | fi |
14265 | fi | |
4b900473 | 14266 | |
81ecdfbb RW |
14267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14268 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14269 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14270 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14271 | # We already found the complete path | |
b8025f34 | 14272 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14274 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14275 | else |
14276 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14278 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14279 | fi |
be01d343 | 14280 | else |
2429c060 PB |
14281 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14282 | # We already found the complete path | |
b8025f34 | 14283 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14285 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14286 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14287 | # We can use an host tool |
14288 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14290 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14291 | else |
14292 | # We need a cross tool | |
81ecdfbb RW |
14293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14294 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14295 | fi |
14296 | fi | |
4b900473 | 14297 | |
81ecdfbb RW |
14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14299 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14300 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14301 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14302 | # We already found the complete path | |
b8025f34 | 14303 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14305 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14306 | else |
14307 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14309 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14310 | fi |
be01d343 PB |
14311 | else |
14312 | ok=yes | |
14313 | case " ${configdirs} " in | |
14314 | *" binutils "*) ;; | |
14315 | *) ok=no ;; | |
14316 | esac | |
c6b750e1 | 14317 | |
be01d343 PB |
14318 | if test $ok = yes; then |
14319 | # An in-tree tool is available and we can use it | |
14320 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14322 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14323 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14324 | # We already found the complete path | |
b8025f34 | 14325 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14327 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14328 | elif test "x$target" = "x$host"; then |
14329 | # We can use an host tool | |
14330 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14332 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14333 | else |
14334 | # We need a cross tool | |
81ecdfbb RW |
14335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14336 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14337 | fi |
14338 | fi | |
4b900473 | 14339 | |
6b91c541 AP |
14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14341 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14342 | if test "x${build}" != "x${host}" ; then | |
14343 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14344 | # We already found the complete path | |
14345 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14347 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14348 | else | |
14349 | # Canadian cross, just use what we found | |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14351 | $as_echo "pre-installed" >&6; } | |
14352 | fi | |
14353 | else | |
14354 | ok=yes | |
14355 | case " ${configdirs} " in | |
14356 | *" binutils "*) ;; | |
14357 | *) ok=no ;; | |
14358 | esac | |
14359 | ||
14360 | if test $ok = yes; then | |
14361 | # An in-tree tool is available and we can use it | |
14362 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14364 | $as_echo "just compiled" >&6; } | |
14365 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14366 | # We already found the complete path | |
14367 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14369 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14370 | elif test "x$target" = "x$host"; then | |
14371 | # We can use an host tool | |
1b6c0831 | 14372 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14374 | $as_echo "host tool" >&6; } | |
14375 | else | |
14376 | # We need a cross tool | |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14378 | $as_echo "pre-installed" >&6; } | |
14379 | fi | |
14380 | fi | |
14381 | ||
81ecdfbb RW |
14382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14383 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14384 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14385 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14386 | # We already found the complete path | |
b8025f34 | 14387 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14389 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14390 | else |
14391 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14393 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14394 | fi |
be01d343 PB |
14395 | else |
14396 | ok=yes | |
14397 | case " ${configdirs} " in | |
14398 | *" binutils "*) ;; | |
14399 | *) ok=no ;; | |
14400 | esac | |
c6b750e1 | 14401 | |
be01d343 PB |
14402 | if test $ok = yes; then |
14403 | # An in-tree tool is available and we can use it | |
14404 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14406 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14407 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14408 | # We already found the complete path | |
b8025f34 | 14409 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14411 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14412 | elif test "x$target" = "x$host"; then |
14413 | # We can use an host tool | |
14414 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14416 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14417 | else |
14418 | # We need a cross tool | |
81ecdfbb RW |
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14420 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14421 | fi |
14422 | fi | |
4b900473 | 14423 | |
81ecdfbb RW |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14425 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14426 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14427 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14428 | # We already found the complete path | |
b8025f34 | 14429 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14431 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14432 | else |
14433 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14435 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14436 | fi |
be01d343 PB |
14437 | else |
14438 | ok=yes | |
14439 | case " ${configdirs} " in | |
14440 | *" binutils "*) ;; | |
14441 | *) ok=no ;; | |
14442 | esac | |
c6b750e1 | 14443 | |
be01d343 PB |
14444 | if test $ok = yes; then |
14445 | # An in-tree tool is available and we can use it | |
14446 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14448 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14449 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14450 | # We already found the complete path | |
b8025f34 | 14451 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14453 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14454 | elif test "x$target" = "x$host"; then |
14455 | # We can use an host tool | |
14456 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14458 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14459 | else |
14460 | # We need a cross tool | |
81ecdfbb RW |
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14462 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14463 | fi |
14464 | fi | |
4b900473 | 14465 | |
b121d7d4 DD |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14467 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14468 | if test "x${build}" != "x${host}" ; then | |
14469 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14470 | # We already found the complete path | |
14471 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14473 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14474 | else | |
14475 | # Canadian cross, just use what we found | |
14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14477 | $as_echo "pre-installed" >&6; } | |
14478 | fi | |
14479 | else | |
14480 | ok=yes | |
14481 | case " ${configdirs} " in | |
14482 | *" binutils "*) ;; | |
14483 | *) ok=no ;; | |
14484 | esac | |
14485 | ||
14486 | if test $ok = yes; then | |
14487 | # An in-tree tool is available and we can use it | |
14488 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14490 | $as_echo "just compiled" >&6; } | |
14491 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14492 | # We already found the complete path | |
14493 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14495 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14496 | elif test "x$target" = "x$host"; then | |
14497 | # We can use an host tool | |
14498 | READELF_FOR_TARGET='$(READELF)' | |
14499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14500 | $as_echo "host tool" >&6; } | |
14501 | else | |
14502 | # We need a cross tool | |
14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14504 | $as_echo "pre-installed" >&6; } | |
14505 | fi | |
14506 | fi | |
14507 | ||
81ecdfbb RW |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14509 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14510 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14511 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14512 | # We already found the complete path | |
b8025f34 | 14513 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb 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; } | |
2429c060 PB |
14516 | else |
14517 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14519 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14520 | fi |
be01d343 PB |
14521 | else |
14522 | ok=yes | |
14523 | case " ${configdirs} " in | |
14524 | *" binutils "*) ;; | |
14525 | *) ok=no ;; | |
14526 | esac | |
c6b750e1 | 14527 | |
be01d343 PB |
14528 | if test $ok = yes; then |
14529 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14530 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14532 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14533 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14534 | # We already found the complete path | |
b8025f34 | 14535 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14537 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14538 | elif test "x$target" = "x$host"; then |
14539 | # We can use an host tool | |
14540 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14542 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14543 | else |
14544 | # We need a cross tool | |
81ecdfbb RW |
14545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14546 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14547 | fi |
14548 | fi | |
4b900473 | 14549 | |
81ecdfbb RW |
14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14551 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14552 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14553 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14554 | # We already found the complete path | |
b8025f34 | 14555 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14557 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14558 | else |
14559 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14561 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14562 | fi |
be01d343 PB |
14563 | else |
14564 | ok=yes | |
14565 | case " ${configdirs} " in | |
14566 | *" binutils "*) ;; | |
14567 | *) ok=no ;; | |
14568 | esac | |
c6b750e1 | 14569 | |
be01d343 PB |
14570 | if test $ok = yes; then |
14571 | # An in-tree tool is available and we can use it | |
14572 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14574 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14575 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14576 | # We already found the complete path | |
b8025f34 | 14577 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14579 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14580 | elif test "x$target" = "x$host"; then |
14581 | # We can use an host tool | |
14582 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14584 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14585 | else |
14586 | # We need a cross tool | |
81ecdfbb RW |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14588 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14589 | fi |
a0da8069 | 14590 | fi |
54752a6b | 14591 | |
81ecdfbb RW |
14592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14593 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14594 | if test "x${build}" != "x${host}" ; then |
14595 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14596 | # We already found the complete path | |
14597 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14599 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14600 | else |
14601 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14603 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14604 | fi |
14605 | else | |
14606 | ok=yes | |
14607 | case " ${configdirs} " in | |
14608 | *" binutils "*) ;; | |
14609 | *) ok=no ;; | |
14610 | esac | |
14611 | ||
14612 | if test $ok = yes; then | |
14613 | # An in-tree tool is available and we can use it | |
14614 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14616 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14617 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14618 | # We already found the complete path | |
14619 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14621 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14622 | elif test "x$target" = "x$host"; then |
14623 | # We can use an host tool | |
14624 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14626 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14627 | else |
14628 | # We need a cross tool | |
81ecdfbb RW |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14630 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14631 | fi |
14632 | fi | |
14633 | ||
54752a6b NN |
14634 | |
14635 | ||
be01d343 | 14636 | |
4b900473 | 14637 | |
a0da8069 NN |
14638 | # Certain tools may need extra flags. |
14639 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14640 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14641 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14642 | ||
be01d343 PB |
14643 | # When building target libraries, except in a Canadian cross, we use |
14644 | # the same toolchain as the compiler we just built. | |
14645 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14646 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14647 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14648 | if test $host = $build; then | |
14649 | case " $configdirs " in | |
14650 | *" gcc "*) | |
14651 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14652 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14653 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14654 | ;; | |
14655 | esac | |
14656 | fi | |
14657 | ||
14658 | ||
14659 | ||
14660 | ||
14661 | ||
81ecdfbb RW |
14662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14663 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14664 | # Check whether --enable-maintainer-mode was given. | |
14665 | if test "${enable_maintainer_mode+set}" = set; then : | |
14666 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14667 | else |
14668 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14669 | fi |
14670 | ||
14671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14672 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14673 | |
14674 | ||
14675 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14676 | MAINTAINER_MODE_TRUE= | |
14677 | MAINTAINER_MODE_FALSE='#' | |
14678 | else | |
14679 | MAINTAINER_MODE_TRUE='#' | |
14680 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14681 | fi |
3d5e36ae AO |
14682 | MAINT=$MAINTAINER_MODE_TRUE |
14683 | ||
1d39f329 NN |
14684 | # --------------------- |
14685 | # GCC bootstrap support | |
14686 | # --------------------- | |
14687 | ||
14688 | # Stage specific cflags for build. | |
14689 | stage1_cflags="-g" | |
14690 | case $build in | |
14691 | vax-*-*) | |
14692 | case ${GCC} in | |
14693 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14694 | *) stage1_cflags="-g -J" ;; | |
14695 | esac ;; | |
1d39f329 NN |
14696 | esac |
14697 | ||
1d89b610 | 14698 | |
1d39f329 | 14699 | |
8a0d8a5c | 14700 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14701 | # Check whether --enable-stage1-checking was given. |
14702 | if test "${enable_stage1_checking+set}" = set; then : | |
14703 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14704 | else |
5566c1fa | 14705 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
14706 | # For --disable-checking or implicit --enable-checking=release, avoid |
14707 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14708 | # bootstraps. See PR62077. | |
ce6c656d L |
14709 | case $BUILD_CONFIG in |
14710 | *lto*) | |
05a13254 NC |
14711 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14712 | *) | |
14713 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 14714 | esac |
05a13254 NC |
14715 | if test "x$enable_checking" = x && \ |
14716 | test -d ${srcdir}/gcc && \ | |
14717 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14718 | stage1_checking=--enable-checking=yes,types,extra | |
14719 | fi | |
8a0d8a5c | 14720 | else |
5566c1fa | 14721 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14722 | fi |
81ecdfbb | 14723 | fi |
8a0d8a5c PB |
14724 | |
14725 | ||
c6b750e1 | 14726 | |
81ecdfbb RW |
14727 | # Enable -Werror in bootstrap stage2 and later. |
14728 | # Check whether --enable-werror was given. | |
14729 | if test "${enable_werror+set}" = set; then : | |
14730 | enableval=$enable_werror; | |
1a6f2dc7 NN |
14731 | case ${enable_werror} in |
14732 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14733 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14734 | esac |
14735 | ||
82033c9b | 14736 | else |
82033c9b | 14737 | |
bf41f30d NC |
14738 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
14739 | case $BUILD_CONFIG in | |
14740 | bootstrap-debug) | |
14741 | stage2_werror_flag="--enable-werror-always" ;; | |
14742 | "") | |
14743 | stage2_werror_flag="--enable-werror-always" ;; | |
14744 | esac | |
14745 | fi | |
82033c9b | 14746 | |
bf41f30d | 14747 | fi |
82033c9b | 14748 | |
1b6c0831 | 14749 | |
1b6c0831 | 14750 | |
1b6c0831 | 14751 | |
e8a5fa9c RW |
14752 | # Specify what files to not compare during bootstrap. |
14753 | ||
14754 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14755 | case "$target" in | |
14756 | hppa*64*-*-hpux*) ;; | |
bf41f30d | 14757 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
1488e230 | 14758 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14759 | esac |
14760 | ||
14761 | ||
81ecdfbb RW |
14762 | ac_config_files="$ac_config_files Makefile" |
14763 | ||
c6b750e1 | 14764 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14765 | # This file is a shell script that caches the results of configure |
14766 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14767 | # scripts and configure runs, see configure's option --config-cache. |
14768 | # It is not useful on other systems. If it contains results you don't | |
14769 | # want to keep, you may remove or edit it. | |
a0da8069 | 14770 | # |
c6b750e1 DJ |
14771 | # config.status only pays attention to the cache file if you give it |
14772 | # the --recheck option to rerun configure. | |
a0da8069 | 14773 | # |
c6b750e1 DJ |
14774 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14775 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14776 | # following values. | |
14777 | ||
14778 | _ACEOF | |
14779 | ||
a0da8069 NN |
14780 | # The following way of writing the cache mishandles newlines in values, |
14781 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14782 | # So, we kill variables containing newlines. |
a0da8069 NN |
14783 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14784 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14785 | ( |
14786 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14787 | eval ac_val=\$$ac_var | |
14788 | case $ac_val in #( | |
14789 | *${as_nl}*) | |
14790 | case $ac_var in #( | |
14791 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14792 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14793 | esac | |
14794 | case $ac_var in #( | |
14795 | _ | IFS | as_nl) ;; #( | |
14796 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14797 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14798 | esac ;; | |
14799 | esac | |
14800 | done | |
14801 | ||
c6b750e1 | 14802 | (set) 2>&1 | |
81ecdfbb RW |
14803 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14804 | *${as_nl}ac_space=\ *) | |
14805 | # `set' does not quote correctly, so add quotes: double-quote | |
14806 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14807 | sed -n \ |
14808 | "s/'/'\\\\''/g; | |
14809 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14810 | ;; #( |
c6b750e1 DJ |
14811 | *) |
14812 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14813 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14814 | ;; |
81ecdfbb RW |
14815 | esac | |
14816 | sort | |
14817 | ) | | |
c6b750e1 | 14818 | sed ' |
81ecdfbb | 14819 | /^ac_cv_env_/b end |
c6b750e1 | 14820 | t clear |
81ecdfbb | 14821 | :clear |
c6b750e1 DJ |
14822 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14823 | t end | |
81ecdfbb RW |
14824 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14825 | :end' >>confcache | |
14826 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14827 | if test -w "$cache_file"; then | |
d0ac1c44 | 14828 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14829 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14830 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14831 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14832 | cat confcache >"$cache_file" | |
14833 | else | |
14834 | case $cache_file in #( | |
14835 | */* | ?:*) | |
14836 | mv -f confcache "$cache_file"$$ && | |
14837 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14838 | *) | |
14839 | mv -f confcache "$cache_file" ;; | |
14840 | esac | |
14841 | fi | |
14842 | fi | |
a0da8069 | 14843 | else |
81ecdfbb RW |
14844 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14845 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14846 | fi |
852e5f18 | 14847 | fi |
a0da8069 | 14848 | rm -f confcache |
852e5f18 | 14849 | |
a0da8069 NN |
14850 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14851 | # Let make expand exec_prefix. | |
14852 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14853 | |
a0da8069 NN |
14854 | # Transform confdefs.h into DEFS. |
14855 | # Protect against shell expansion while executing Makefile rules. | |
14856 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14857 | # |
14858 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14859 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14860 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14861 | ac_script=' |
14862 | :mline | |
14863 | /\\$/{ | |
14864 | N | |
14865 | s,\\\n,, | |
14866 | b mline | |
14867 | } | |
c6b750e1 | 14868 | t clear |
81ecdfbb RW |
14869 | :clear |
14870 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14871 | t quote |
81ecdfbb | 14872 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14873 | t quote |
81ecdfbb RW |
14874 | b any |
14875 | :quote | |
14876 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14877 | s/\[/\\&/g | |
14878 | s/\]/\\&/g | |
14879 | s/\$/$$/g | |
14880 | H | |
14881 | :any | |
14882 | ${ | |
14883 | g | |
14884 | s/^\n// | |
14885 | s/\n/ /g | |
14886 | p | |
14887 | } | |
14888 | ' | |
14889 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14890 | |
14891 | ||
14892 | ac_libobjs= | |
14893 | ac_ltlibobjs= | |
d0ac1c44 | 14894 | U= |
c6b750e1 DJ |
14895 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14896 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14897 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14898 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14899 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14900 | # will be set to the directory where LIBOBJS objects are built. | |
14901 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14902 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14903 | done |
14904 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14905 | |
c6b750e1 | 14906 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14907 | |
cac3d6c4 | 14908 | |
c6b750e1 | 14909 | |
d0ac1c44 | 14910 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 14911 | ac_write_fail=0 |
c6b750e1 DJ |
14912 | ac_clean_files_save=$ac_clean_files |
14913 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14914 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14915 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14916 | as_write_fail=0 | |
14917 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14918 | #! $SHELL |
14919 | # Generated by $as_me. | |
a0da8069 | 14920 | # Run this file to recreate the current configuration. |
a0da8069 | 14921 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14922 | # configure, is in config.log if it exists. |
376a0e54 | 14923 | |
c6b750e1 DJ |
14924 | debug=false |
14925 | ac_cs_recheck=false | |
14926 | ac_cs_silent=false | |
c6b750e1 | 14927 | |
81ecdfbb RW |
14928 | SHELL=\${CONFIG_SHELL-$SHELL} |
14929 | export SHELL | |
14930 | _ASEOF | |
14931 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14932 | ## -------------------- ## | |
14933 | ## M4sh Initialization. ## | |
14934 | ## -------------------- ## | |
14935 | ||
14936 | # Be more Bourne compatible | |
14937 | DUALCASE=1; export DUALCASE # for MKS sh | |
14938 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14939 | emulate sh |
14940 | NULLCMD=: | |
81ecdfbb | 14941 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14942 | # is contrary to our usage. Disable this feature. |
14943 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14944 | setopt NO_GLOB_SUBST |
14945 | else | |
14946 | case `(set -o) 2>/dev/null` in #( | |
14947 | *posix*) : | |
14948 | set -o posix ;; #( | |
14949 | *) : | |
14950 | ;; | |
14951 | esac | |
c6b750e1 | 14952 | fi |
c6b750e1 | 14953 | |
81ecdfbb RW |
14954 | |
14955 | as_nl=' | |
14956 | ' | |
14957 | export as_nl | |
14958 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14959 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14960 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14961 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14962 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14963 | # but without wasting forks for bash or zsh. | |
14964 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14965 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14966 | as_echo='print -r --' | |
14967 | as_echo_n='print -rn --' | |
14968 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14969 | as_echo='printf %s\n' | |
14970 | as_echo_n='printf %s' | |
14971 | else | |
14972 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14973 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14974 | as_echo_n='/usr/ucb/echo -n' | |
14975 | else | |
14976 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14977 | as_echo_n_body='eval | |
14978 | arg=$1; | |
14979 | case $arg in #( | |
14980 | *"$as_nl"*) | |
14981 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14982 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14983 | esac; | |
14984 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14985 | ' | |
14986 | export as_echo_n_body | |
14987 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14988 | fi | |
14989 | export as_echo_body | |
14990 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14991 | fi |
14992 | ||
81ecdfbb RW |
14993 | # The user is always right. |
14994 | if test "${PATH_SEPARATOR+set}" != set; then | |
14995 | PATH_SEPARATOR=: | |
14996 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14997 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14998 | PATH_SEPARATOR=';' | |
14999 | } | |
15000 | fi | |
15001 | ||
15002 | ||
15003 | # IFS | |
15004 | # We need space, tab and new line, in precisely that order. Quoting is | |
15005 | # there to prevent editors from complaining about space-tab. | |
15006 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15007 | # splitting by setting IFS to empty value.) | |
15008 | IFS=" "" $as_nl" | |
15009 | ||
15010 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 15011 | as_myself= |
81ecdfbb RW |
15012 | case $0 in #(( |
15013 | *[\\/]* ) as_myself=$0 ;; | |
15014 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15015 | for as_dir in $PATH | |
15016 | do | |
15017 | IFS=$as_save_IFS | |
15018 | test -z "$as_dir" && as_dir=. | |
15019 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15020 | done | |
15021 | IFS=$as_save_IFS | |
15022 | ||
15023 | ;; | |
15024 | esac | |
15025 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15026 | # in which case we are not to be found in the path. | |
15027 | if test "x$as_myself" = x; then | |
15028 | as_myself=$0 | |
15029 | fi | |
15030 | if test ! -f "$as_myself"; then | |
15031 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15032 | exit 1 | |
15033 | fi | |
c6b750e1 | 15034 | |
81ecdfbb RW |
15035 | # Unset variables that we do not need and which cause bugs (e.g. in |
15036 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15037 | # suppresses any "Segmentation fault" message there. '((' could | |
15038 | # trigger a bug in pdksh 5.2.14. | |
15039 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15040 | do eval test x\${$as_var+set} = xset \ | |
15041 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15042 | done | |
c6b750e1 DJ |
15043 | PS1='$ ' |
15044 | PS2='> ' | |
15045 | PS4='+ ' | |
15046 | ||
15047 | # NLS nuisances. | |
81ecdfbb RW |
15048 | LC_ALL=C |
15049 | export LC_ALL | |
15050 | LANGUAGE=C | |
15051 | export LANGUAGE | |
15052 | ||
15053 | # CDPATH. | |
15054 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15055 | ||
15056 | ||
d0ac1c44 SM |
15057 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15058 | # ---------------------------------------- | |
81ecdfbb RW |
15059 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15060 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 15061 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
15062 | as_fn_error () |
15063 | { | |
d0ac1c44 SM |
15064 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15065 | if test "$4"; then | |
15066 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15067 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 15068 | fi |
d0ac1c44 | 15069 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
15070 | as_fn_exit $as_status |
15071 | } # as_fn_error | |
15072 | ||
15073 | ||
15074 | # as_fn_set_status STATUS | |
15075 | # ----------------------- | |
15076 | # Set $? to STATUS, without forking. | |
15077 | as_fn_set_status () | |
15078 | { | |
15079 | return $1 | |
15080 | } # as_fn_set_status | |
15081 | ||
15082 | # as_fn_exit STATUS | |
15083 | # ----------------- | |
15084 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15085 | as_fn_exit () | |
15086 | { | |
15087 | set +e | |
15088 | as_fn_set_status $1 | |
15089 | exit $1 | |
15090 | } # as_fn_exit | |
15091 | ||
15092 | # as_fn_unset VAR | |
15093 | # --------------- | |
15094 | # Portably unset VAR. | |
15095 | as_fn_unset () | |
15096 | { | |
15097 | { eval $1=; unset $1;} | |
15098 | } | |
15099 | as_unset=as_fn_unset | |
15100 | # as_fn_append VAR VALUE | |
15101 | # ---------------------- | |
15102 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15103 | # advantage of any shell optimizations that allow amortized linear growth over | |
15104 | # repeated appends, instead of the typical quadratic growth present in naive | |
15105 | # implementations. | |
15106 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15107 | eval 'as_fn_append () | |
15108 | { | |
15109 | eval $1+=\$2 | |
15110 | }' | |
15111 | else | |
15112 | as_fn_append () | |
15113 | { | |
15114 | eval $1=\$$1\$2 | |
15115 | } | |
15116 | fi # as_fn_append | |
15117 | ||
15118 | # as_fn_arith ARG... | |
15119 | # ------------------ | |
15120 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15121 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15122 | # must be portable across $(()) and expr. | |
15123 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15124 | eval 'as_fn_arith () | |
15125 | { | |
15126 | as_val=$(( $* )) | |
15127 | }' | |
15128 | else | |
15129 | as_fn_arith () | |
15130 | { | |
15131 | as_val=`expr "$@" || test $? -eq 1` | |
15132 | } | |
15133 | fi # as_fn_arith | |
15134 | ||
c6b750e1 | 15135 | |
81ecdfbb RW |
15136 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15137 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15138 | as_expr=expr |
15139 | else | |
15140 | as_expr=false | |
15141 | fi | |
15142 | ||
81ecdfbb | 15143 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15144 | as_basename=basename |
15145 | else | |
15146 | as_basename=false | |
15147 | fi | |
15148 | ||
81ecdfbb RW |
15149 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15150 | as_dirname=dirname | |
15151 | else | |
15152 | as_dirname=false | |
15153 | fi | |
c6b750e1 | 15154 | |
81ecdfbb | 15155 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15156 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15157 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15158 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15159 | $as_echo X/"$0" | | |
15160 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15161 | s//\1/ | |
15162 | q | |
15163 | } | |
15164 | /^X\/\(\/\/\)$/{ | |
15165 | s//\1/ | |
15166 | q | |
15167 | } | |
15168 | /^X\/\(\/\).*/{ | |
15169 | s//\1/ | |
15170 | q | |
15171 | } | |
15172 | s/.*/./; q'` | |
c6b750e1 | 15173 | |
c6b750e1 DJ |
15174 | # Avoid depending upon Character Ranges. |
15175 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15176 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15177 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15178 | as_cr_digits='0123456789' | |
15179 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15180 | ||
81ecdfbb RW |
15181 | ECHO_C= ECHO_N= ECHO_T= |
15182 | case `echo -n x` in #((((( | |
15183 | -n*) | |
15184 | case `echo 'xy\c'` in | |
15185 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15186 | xy) ECHO_C='\c';; | |
15187 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15188 | ECHO_T=' ';; | |
15189 | esac;; | |
15190 | *) | |
15191 | ECHO_N='-n';; | |
c6b750e1 DJ |
15192 | esac |
15193 | ||
81ecdfbb RW |
15194 | rm -f conf$$ conf$$.exe conf$$.file |
15195 | if test -d conf$$.dir; then | |
15196 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15197 | else |
81ecdfbb RW |
15198 | rm -f conf$$.dir |
15199 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15200 | fi |
81ecdfbb RW |
15201 | if (echo >conf$$.file) 2>/dev/null; then |
15202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15203 | as_ln_s='ln -s' |
81ecdfbb RW |
15204 | # ... but there are two gotchas: |
15205 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15206 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15207 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15208 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15209 | as_ln_s='cp -pR' |
81ecdfbb RW |
15210 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15211 | as_ln_s=ln | |
15212 | else | |
d0ac1c44 | 15213 | as_ln_s='cp -pR' |
c6b750e1 | 15214 | fi |
c6b750e1 | 15215 | else |
d0ac1c44 | 15216 | as_ln_s='cp -pR' |
c6b750e1 | 15217 | fi |
81ecdfbb RW |
15218 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15219 | rmdir conf$$.dir 2>/dev/null | |
15220 | ||
15221 | ||
15222 | # as_fn_mkdir_p | |
15223 | # ------------- | |
15224 | # Create "$as_dir" as a directory, including parents if necessary. | |
15225 | as_fn_mkdir_p () | |
15226 | { | |
15227 | ||
15228 | case $as_dir in #( | |
15229 | -*) as_dir=./$as_dir;; | |
15230 | esac | |
15231 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15232 | as_dirs= | |
15233 | while :; do | |
15234 | case $as_dir in #( | |
15235 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15236 | *) as_qdir=$as_dir;; | |
15237 | esac | |
15238 | as_dirs="'$as_qdir' $as_dirs" | |
15239 | as_dir=`$as_dirname -- "$as_dir" || | |
15240 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15241 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15242 | X"$as_dir" : 'X\(//\)$' \| \ | |
15243 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15244 | $as_echo X"$as_dir" | | |
15245 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15246 | s//\1/ | |
15247 | q | |
15248 | } | |
15249 | /^X\(\/\/\)[^/].*/{ | |
15250 | s//\1/ | |
15251 | q | |
15252 | } | |
15253 | /^X\(\/\/\)$/{ | |
15254 | s//\1/ | |
15255 | q | |
15256 | } | |
15257 | /^X\(\/\).*/{ | |
15258 | s//\1/ | |
15259 | q | |
15260 | } | |
15261 | s/.*/./; q'` | |
15262 | test -d "$as_dir" && break | |
15263 | done | |
15264 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15265 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 15266 | |
c6b750e1 | 15267 | |
81ecdfbb | 15268 | } # as_fn_mkdir_p |
c6b750e1 | 15269 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15270 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15271 | else |
15272 | test -d ./-p && rmdir ./-p | |
15273 | as_mkdir_p=false | |
15274 | fi | |
15275 | ||
d0ac1c44 SM |
15276 | |
15277 | # as_fn_executable_p FILE | |
15278 | # ----------------------- | |
15279 | # Test if FILE is an executable regular file. | |
15280 | as_fn_executable_p () | |
15281 | { | |
15282 | test -f "$1" && test -x "$1" | |
15283 | } # as_fn_executable_p | |
15284 | as_test_x='test -x' | |
15285 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
15286 | |
15287 | # Sed expression to map a string onto a valid CPP name. | |
15288 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15289 | ||
15290 | # Sed expression to map a string onto a valid variable name. | |
15291 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15292 | ||
15293 | ||
c6b750e1 | 15294 | exec 6>&1 |
81ecdfbb RW |
15295 | ## ----------------------------------- ## |
15296 | ## Main body of $CONFIG_STATUS script. ## | |
15297 | ## ----------------------------------- ## | |
15298 | _ASEOF | |
15299 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15300 | ||
15301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15302 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15303 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15304 | # values after options handling. |
15305 | ac_log=" | |
c6b750e1 | 15306 | This file was extended by $as_me, which was |
d0ac1c44 | 15307 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
15308 | |
15309 | CONFIG_FILES = $CONFIG_FILES | |
15310 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15311 | CONFIG_LINKS = $CONFIG_LINKS | |
15312 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15313 | $ $0 $@ | |
15314 | ||
81ecdfbb RW |
15315 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15316 | " | |
15317 | ||
c6b750e1 DJ |
15318 | _ACEOF |
15319 | ||
81ecdfbb RW |
15320 | case $ac_config_files in *" |
15321 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15322 | esac | |
c6b750e1 | 15323 | |
c6b750e1 | 15324 | |
c6b750e1 | 15325 | |
81ecdfbb RW |
15326 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15327 | # Files that config.status was made for. | |
15328 | config_files="$ac_config_files" | |
c6b750e1 | 15329 | |
81ecdfbb | 15330 | _ACEOF |
c6b750e1 | 15331 | |
81ecdfbb | 15332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15333 | ac_cs_usage="\ |
81ecdfbb RW |
15334 | \`$as_me' instantiates files and other configuration actions |
15335 | from templates according to the current configuration. Unless the files | |
15336 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15337 | |
81ecdfbb | 15338 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15339 | |
15340 | -h, --help print this help, then exit | |
81ecdfbb | 15341 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15342 | --config print configuration, then exit |
81ecdfbb RW |
15343 | -q, --quiet, --silent |
15344 | do not print progress messages | |
c6b750e1 DJ |
15345 | -d, --debug don't remove temporary files |
15346 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15347 | --file=FILE[:TEMPLATE] |
15348 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15349 | |
15350 | Configuration files: | |
15351 | $config_files | |
15352 | ||
81ecdfbb | 15353 | Report bugs to the package provider." |
c6b750e1 | 15354 | |
81ecdfbb RW |
15355 | _ACEOF |
15356 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15357 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
15358 | ac_cs_version="\\ |
15359 | config.status | |
d0ac1c44 SM |
15360 | configured by $0, generated by GNU Autoconf 2.69, |
15361 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 15362 | |
d0ac1c44 | 15363 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
15364 | This config.status script is free software; the Free Software Foundation |
15365 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15366 | |
15367 | ac_pwd='$ac_pwd' | |
15368 | srcdir='$srcdir' | |
15369 | INSTALL='$INSTALL' | |
8e957354 | 15370 | AWK='$AWK' |
81ecdfbb | 15371 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15372 | _ACEOF |
15373 | ||
81ecdfbb RW |
15374 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15375 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15376 | ac_need_defaults=: |
15377 | while test $# != 0 | |
a0da8069 | 15378 | do |
c6b750e1 | 15379 | case $1 in |
d0ac1c44 | 15380 | --*=?*) |
81ecdfbb RW |
15381 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15382 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15383 | ac_shift=: |
15384 | ;; | |
d0ac1c44 SM |
15385 | --*=) |
15386 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15387 | ac_optarg= | |
15388 | ac_shift=: | |
15389 | ;; | |
81ecdfbb | 15390 | *) |
c6b750e1 DJ |
15391 | ac_option=$1 |
15392 | ac_optarg=$2 | |
15393 | ac_shift=shift | |
15394 | ;; | |
c6b750e1 DJ |
15395 | esac |
15396 | ||
15397 | case $ac_option in | |
15398 | # Handling of the options. | |
a0da8069 | 15399 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15400 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15401 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15402 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
15403 | --config | --confi | --conf | --con | --co | --c ) |
15404 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 15405 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
15406 | debug=: ;; |
15407 | --file | --fil | --fi | --f ) | |
15408 | $ac_shift | |
81ecdfbb RW |
15409 | case $ac_optarg in |
15410 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 15411 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
15412 | esac |
15413 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15414 | ac_need_defaults=false;; |
81ecdfbb RW |
15415 | --he | --h | --help | --hel | -h ) |
15416 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15417 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15418 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15419 | ac_cs_silent=: ;; | |
15420 | ||
15421 | # This is an error. | |
d0ac1c44 | 15422 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 15423 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 15424 | |
81ecdfbb RW |
15425 | *) as_fn_append ac_config_targets " $1" |
15426 | ac_need_defaults=false ;; | |
c6b750e1 | 15427 | |
376a0e54 | 15428 | esac |
c6b750e1 | 15429 | shift |
376a0e54 CM |
15430 | done |
15431 | ||
c6b750e1 | 15432 | ac_configure_extra_args= |
376a0e54 | 15433 | |
c6b750e1 DJ |
15434 | if $ac_cs_silent; then |
15435 | exec 6>/dev/null | |
15436 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15437 | fi | |
376a0e54 | 15438 | |
c6b750e1 | 15439 | _ACEOF |
81ecdfbb | 15440 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15441 | if \$ac_cs_recheck; then |
d0ac1c44 | 15442 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
15443 | shift |
15444 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15445 | CONFIG_SHELL='$SHELL' | |
15446 | export CONFIG_SHELL | |
15447 | exec "\$@" | |
c6b750e1 DJ |
15448 | fi |
15449 | ||
15450 | _ACEOF | |
81ecdfbb RW |
15451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15452 | exec 5>>config.log | |
15453 | { | |
15454 | echo | |
15455 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15456 | ## Running $as_me. ## | |
15457 | _ASBOX | |
15458 | $as_echo "$ac_log" | |
15459 | } >&5 | |
c6b750e1 | 15460 | |
81ecdfbb RW |
15461 | _ACEOF |
15462 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15463 | # |
15464 | # INIT-COMMANDS | |
15465 | # | |
15466 | extrasub_build="$extrasub_build" | |
15467 | extrasub_host="$extrasub_host" | |
15468 | extrasub_target="$extrasub_target" | |
15469 | ||
81ecdfbb | 15470 | _ACEOF |
c6b750e1 | 15471 | |
81ecdfbb | 15472 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15473 | |
81ecdfbb | 15474 | # Handling of arguments. |
c6b750e1 DJ |
15475 | for ac_config_target in $ac_config_targets |
15476 | do | |
81ecdfbb RW |
15477 | case $ac_config_target in |
15478 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15479 | ||
d0ac1c44 | 15480 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
15481 | esac |
15482 | done | |
15483 | ||
81ecdfbb | 15484 | |
c6b750e1 DJ |
15485 | # If the user did not use the arguments to specify the items to instantiate, |
15486 | # then the envvar interface is used. Set only those that are not. | |
15487 | # We use the long form for the default assignment because of an extremely | |
15488 | # bizarre bug on SunOS 4.1.3. | |
15489 | if $ac_need_defaults; then | |
15490 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15491 | fi | |
15492 | ||
15493 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15494 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15495 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15496 | # Hook for its removal unless debugging. |
15497 | # Note that there is a small window in which the directory will not be cleaned: | |
15498 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15499 | $debug || |
15500 | { | |
d0ac1c44 | 15501 | tmp= ac_tmp= |
81ecdfbb | 15502 | trap 'exit_status=$? |
d0ac1c44 SM |
15503 | : "${ac_tmp:=$tmp}" |
15504 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15505 | ' 0 |
15506 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15507 | } |
c6b750e1 DJ |
15508 | # Create a (secure) tmp directory for tmp files. |
15509 | ||
15510 | { | |
81ecdfbb | 15511 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15512 | test -d "$tmp" |
c6b750e1 DJ |
15513 | } || |
15514 | { | |
81ecdfbb RW |
15515 | tmp=./conf$$-$RANDOM |
15516 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15517 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15518 | ac_tmp=$tmp | |
81ecdfbb RW |
15519 | |
15520 | # Set up the scripts for CONFIG_FILES section. | |
15521 | # No need to generate them if there are no CONFIG_FILES. | |
15522 | # This happens for instance with `./config.status config.h'. | |
15523 | if test -n "$CONFIG_FILES"; then | |
15524 | ||
15525 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15526 | ac_cs_awk_getline=: | |
15527 | ac_cs_awk_pipe_init= | |
15528 | ac_cs_awk_read_file=' | |
15529 | while ((getline aline < (F[key])) > 0) | |
15530 | print(aline) | |
15531 | close(F[key])' | |
15532 | ac_cs_awk_pipe_fini= | |
15533 | else | |
15534 | ac_cs_awk_getline=false | |
15535 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15536 | ac_cs_awk_read_file=' | |
15537 | print "|#_!!_#|" | |
15538 | print "cat " F[key] " &&" | |
15539 | '$ac_cs_awk_pipe_init | |
15540 | # The final `:' finishes the AND list. | |
15541 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15542 | fi | |
15543 | ac_cr=`echo X | tr X '\015'` | |
15544 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15545 | # But we know of no other shell where ac_cr would be empty at this | |
15546 | # point, so we can use a bashism as a fallback. | |
15547 | if test "x$ac_cr" = x; then | |
15548 | eval ac_cr=\$\'\\r\' | |
15549 | fi | |
15550 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15551 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15552 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15553 | else |
15554 | ac_cs_awk_cr=$ac_cr | |
15555 | fi | |
15556 | ||
d0ac1c44 | 15557 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15558 | _ACEOF |
15559 | ||
15560 | # Create commands to substitute file output variables. | |
c6b750e1 | 15561 | { |
81ecdfbb | 15562 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 15563 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
15564 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
15565 | echo "_ACAWK" && | |
15566 | echo "_ACEOF" | |
15567 | } >conf$$files.sh && | |
15568 | . ./conf$$files.sh || | |
d0ac1c44 | 15569 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 15570 | rm -f conf$$files.sh |
c6b750e1 | 15571 | |
81ecdfbb RW |
15572 | { |
15573 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15574 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15575 | echo "_ACEOF" | |
15576 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15577 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15578 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15579 | ac_delim='%!_!# ' |
15580 | for ac_last_try in false false false false false :; do | |
15581 | . ./conf$$subs.sh || | |
d0ac1c44 | 15582 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15583 | |
15584 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15585 | if test $ac_delim_n = $ac_delim_num; then | |
15586 | break | |
15587 | elif $ac_last_try; then | |
d0ac1c44 | 15588 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15589 | else |
15590 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15591 | fi | |
15592 | done | |
15593 | rm -f conf$$subs.sh | |
15594 | ||
15595 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15596 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 15597 | _ACEOF |
81ecdfbb RW |
15598 | sed -n ' |
15599 | h | |
15600 | s/^/S["/; s/!.*/"]=/ | |
15601 | p | |
15602 | g | |
15603 | s/^[^!]*!// | |
15604 | :repl | |
15605 | t repl | |
15606 | s/'"$ac_delim"'$// | |
15607 | t delim | |
15608 | :nl | |
15609 | h | |
d0ac1c44 | 15610 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15611 | t more1 |
15612 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15613 | p | |
15614 | n | |
15615 | b repl | |
15616 | :more1 | |
15617 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15618 | p | |
15619 | g | |
15620 | s/.\{148\}// | |
15621 | t nl | |
15622 | :delim | |
15623 | h | |
d0ac1c44 | 15624 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15625 | t more2 |
15626 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15627 | p | |
15628 | b | |
15629 | :more2 | |
15630 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15631 | p | |
15632 | g | |
15633 | s/.\{148\}// | |
15634 | t delim | |
15635 | ' <conf$$subs.awk | sed ' | |
15636 | /^[^""]/{ | |
15637 | N | |
15638 | s/\n// | |
15639 | } | |
15640 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15641 | rm -f conf$$subs.awk | |
15642 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15643 | _ACAWK | |
d0ac1c44 | 15644 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15645 | for (key in S) S_is_set[key] = 1 |
15646 | FS = "\a" | |
15647 | \$ac_cs_awk_pipe_init | |
15648 | } | |
15649 | { | |
15650 | line = $ 0 | |
15651 | nfields = split(line, field, "@") | |
15652 | substed = 0 | |
15653 | len = length(field[1]) | |
15654 | for (i = 2; i < nfields; i++) { | |
15655 | key = field[i] | |
15656 | keylen = length(key) | |
15657 | if (S_is_set[key]) { | |
15658 | value = S[key] | |
15659 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15660 | len += length(value) + length(field[++i]) | |
15661 | substed = 1 | |
15662 | } else | |
15663 | len += 1 + keylen | |
15664 | } | |
15665 | if (nfields == 3 && !substed) { | |
15666 | key = field[2] | |
15667 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15668 | \$ac_cs_awk_read_file | |
15669 | next | |
15670 | } | |
15671 | } | |
15672 | print line | |
15673 | } | |
15674 | \$ac_cs_awk_pipe_fini | |
15675 | _ACAWK | |
15676 | _ACEOF | |
15677 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15678 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15679 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15680 | else | |
15681 | cat | |
d0ac1c44 SM |
15682 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15683 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
15684 | _ACEOF |
15685 | ||
d0ac1c44 SM |
15686 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15687 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15688 | # trailing colons and then remove the whole line if VPATH becomes empty |
15689 | # (actually we leave an empty line to preserve line numbers). | |
15690 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15691 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15692 | h | |
15693 | s/// | |
15694 | s/^/:/ | |
15695 | s/[ ]*$/:/ | |
15696 | s/:\$(srcdir):/:/g | |
15697 | s/:\${srcdir}:/:/g | |
15698 | s/:@srcdir@:/:/g | |
15699 | s/^:*// | |
81ecdfbb | 15700 | s/:*$// |
d0ac1c44 SM |
15701 | x |
15702 | s/\(=[ ]*\).*/\1/ | |
15703 | G | |
15704 | s/\n// | |
81ecdfbb RW |
15705 | s/^[^=]*=[ ]*$// |
15706 | }' | |
15707 | fi | |
c6b750e1 | 15708 | |
81ecdfbb RW |
15709 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15710 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15711 | |
c6b750e1 | 15712 | |
81ecdfbb RW |
15713 | eval set X " :F $CONFIG_FILES " |
15714 | shift | |
15715 | for ac_tag | |
15716 | do | |
15717 | case $ac_tag in | |
15718 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15719 | esac | |
15720 | case $ac_mode$ac_tag in | |
15721 | :[FHL]*:*);; | |
d0ac1c44 | 15722 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
15723 | :[FH]-) ac_tag=-:-;; |
15724 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15725 | esac | |
15726 | ac_save_IFS=$IFS | |
15727 | IFS=: | |
15728 | set x $ac_tag | |
15729 | IFS=$ac_save_IFS | |
15730 | shift | |
15731 | ac_file=$1 | |
15732 | shift | |
252b5132 | 15733 | |
81ecdfbb RW |
15734 | case $ac_mode in |
15735 | :L) ac_source=$1;; | |
15736 | :[FH]) | |
15737 | ac_file_inputs= | |
15738 | for ac_f | |
15739 | do | |
15740 | case $ac_f in | |
d0ac1c44 | 15741 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
15742 | *) # Look for the file first in the build tree, then in the source tree |
15743 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15744 | # because $ac_f cannot contain `:'. | |
15745 | test -f "$ac_f" || | |
15746 | case $ac_f in | |
15747 | [\\/$]*) false;; | |
15748 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15749 | esac || | |
d0ac1c44 | 15750 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
15751 | esac |
15752 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15753 | as_fn_append ac_file_inputs " '$ac_f'" | |
15754 | done | |
c6b750e1 | 15755 | |
81ecdfbb RW |
15756 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15757 | # use $as_me), people would be surprised to read: | |
15758 | # /* config.h. Generated by config.status. */ | |
15759 | configure_input='Generated from '` | |
15760 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15761 | `' by configure.' | |
15762 | if test x"$ac_file" != x-; then | |
15763 | configure_input="$ac_file. $configure_input" | |
15764 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15765 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15766 | fi |
81ecdfbb RW |
15767 | # Neutralize special characters interpreted by sed in replacement strings. |
15768 | case $configure_input in #( | |
15769 | *\&* | *\|* | *\\* ) | |
15770 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15771 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15772 | *) ac_sed_conf_input=$configure_input;; | |
15773 | esac | |
cac3d6c4 | 15774 | |
81ecdfbb | 15775 | case $ac_tag in |
d0ac1c44 SM |
15776 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15777 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
15778 | esac |
15779 | ;; | |
a0da8069 | 15780 | esac |
252b5132 | 15781 | |
81ecdfbb | 15782 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15783 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15784 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15785 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15786 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15787 | $as_echo X"$ac_file" | | |
15788 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15789 | s//\1/ | |
15790 | q | |
15791 | } | |
15792 | /^X\(\/\/\)[^/].*/{ | |
15793 | s//\1/ | |
15794 | q | |
15795 | } | |
15796 | /^X\(\/\/\)$/{ | |
15797 | s//\1/ | |
15798 | q | |
15799 | } | |
15800 | /^X\(\/\).*/{ | |
15801 | s//\1/ | |
15802 | q | |
15803 | } | |
15804 | s/.*/./; q'` | |
15805 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15806 | ac_builddir=. |
252b5132 | 15807 | |
81ecdfbb RW |
15808 | case "$ac_dir" in |
15809 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15810 | *) | |
15811 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15812 | # A ".." for each directory in $ac_dir_suffix. | |
15813 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15814 | case $ac_top_builddir_sub in | |
15815 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15816 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15817 | esac ;; | |
15818 | esac | |
15819 | ac_abs_top_builddir=$ac_pwd | |
15820 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15821 | # for backward compatibility: | |
15822 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15823 | |
15824 | case $srcdir in | |
81ecdfbb | 15825 | .) # We are building in place. |
c6b750e1 | 15826 | ac_srcdir=. |
81ecdfbb RW |
15827 | ac_top_srcdir=$ac_top_builddir_sub |
15828 | ac_abs_top_srcdir=$ac_pwd ;; | |
15829 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15830 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15831 | ac_top_srcdir=$srcdir |
15832 | ac_abs_top_srcdir=$srcdir ;; | |
15833 | *) # Relative name. | |
15834 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15835 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15836 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15837 | esac |
81ecdfbb | 15838 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15839 | |
252b5132 | 15840 | |
81ecdfbb RW |
15841 | case $ac_mode in |
15842 | :F) | |
15843 | # | |
15844 | # CONFIG_FILE | |
15845 | # | |
c6b750e1 DJ |
15846 | |
15847 | case $INSTALL in | |
15848 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15849 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15850 | esac |
81ecdfbb | 15851 | _ACEOF |
252b5132 | 15852 | |
81ecdfbb RW |
15853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15854 | # If the template does not know about datarootdir, expand it. | |
15855 | # FIXME: This hack should be removed a few years after 2.60. | |
15856 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15857 | ac_sed_dataroot=' | |
15858 | /datarootdir/ { | |
15859 | p | |
15860 | q | |
15861 | } | |
15862 | /@datadir@/p | |
15863 | /@docdir@/p | |
15864 | /@infodir@/p | |
15865 | /@localedir@/p | |
15866 | /@mandir@/p' | |
15867 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15868 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15869 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15871 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15872 | _ACEOF |
81ecdfbb RW |
15873 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15874 | ac_datarootdir_hack=' | |
15875 | s&@datadir@&$datadir&g | |
15876 | s&@docdir@&$docdir&g | |
15877 | s&@infodir@&$infodir&g | |
15878 | s&@localedir@&$localedir&g | |
15879 | s&@mandir@&$mandir&g | |
15880 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15881 | esac | |
15882 | _ACEOF | |
15883 | ||
15884 | # Neutralize VPATH when `$srcdir' = `.'. | |
15885 | # Shell code in configure.ac might set extrasub. | |
15886 | # FIXME: do we really want to maintain this feature? | |
15887 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15888 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15889 | $extrasub |
15890 | _ACEOF | |
81ecdfbb | 15891 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15892 | :t |
15893 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15894 | s|@configure_input@|$ac_sed_conf_input|;t t |
15895 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15896 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15897 | s&@srcdir@&$ac_srcdir&;t t | |
15898 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15899 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15900 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15901 | s&@builddir@&$ac_builddir&;t t | |
15902 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15903 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15904 | s&@INSTALL@&$ac_INSTALL&;t t | |
15905 | $ac_datarootdir_hack | |
15906 | " | |
15907 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15908 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 15909 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 15910 | else |
d0ac1c44 SM |
15911 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
15912 | fi \ | |
15913 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
15914 | |
15915 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
15916 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15917 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15918 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 15919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15920 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 15921 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15922 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 15923 | |
d0ac1c44 | 15924 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 15925 | case $ac_file in |
d0ac1c44 SM |
15926 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15927 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 15928 | esac \ |
d0ac1c44 | 15929 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 15930 | ;; |
c148b4cb | 15931 | |
c148b4cb | 15932 | |
c148b4cb | 15933 | |
81ecdfbb RW |
15934 | esac |
15935 | ||
06a51eac RW |
15936 | |
15937 | case $ac_file$ac_mode in | |
15938 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15939 | sed "$extrasub_host" | | |
15940 | sed "$extrasub_target" > mf$$ | |
15941 | mv -f mf$$ Makefile ;; | |
15942 | ||
15943 | esac | |
81ecdfbb RW |
15944 | done # for ac_tag |
15945 | ||
15946 | ||
15947 | as_fn_exit 0 | |
c6b750e1 | 15948 | _ACEOF |
c6b750e1 DJ |
15949 | ac_clean_files=$ac_clean_files_save |
15950 | ||
81ecdfbb | 15951 | test $ac_write_fail = 0 || |
d0ac1c44 | 15952 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 15953 | |
c6b750e1 DJ |
15954 | |
15955 | # configure is writing to config.log, and then calls config.status. | |
15956 | # config.status does its own redirection, appending to config.log. | |
15957 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15958 | # by configure, so config.status won't be able to write to it; its | |
15959 | # output is simply discarded. So we exec the FD to /dev/null, | |
15960 | # effectively closing config.log, so it can be properly (re)opened and | |
15961 | # appended to by config.status. When coming back to configure, we | |
15962 | # need to make the FD available again. | |
15963 | if test "$no_create" != yes; then | |
15964 | ac_cs_success=: | |
15965 | ac_config_status_args= | |
15966 | test "$silent" = yes && | |
15967 | ac_config_status_args="$ac_config_status_args --quiet" | |
15968 | exec 5>/dev/null | |
15969 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15970 | exec 5>>config.log | |
15971 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15972 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 15973 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
15974 | fi |
15975 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15977 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15978 | fi |
c148b4cb | 15979 |