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 | 605 | RANLIB_FOR_TARGET |
f948b2de | 606 | OTOOL_FOR_TARGET |
81ecdfbb | 607 | OBJDUMP_FOR_TARGET |
6b91c541 | 608 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
612 | DLLTOOL_FOR_TARGET | |
613 | AS_FOR_TARGET | |
614 | AR_FOR_TARGET | |
f948b2de | 615 | GDC_FOR_TARGET |
e552509b | 616 | GOC_FOR_TARGET |
81ecdfbb | 617 | GFORTRAN_FOR_TARGET |
81ecdfbb RW |
618 | GCC_FOR_TARGET |
619 | CXX_FOR_TARGET | |
620 | CC_FOR_TARGET | |
b121d7d4 | 621 | READELF |
f948b2de | 622 | OTOOL |
81ecdfbb RW |
623 | OBJDUMP |
624 | OBJCOPY | |
625 | WINDMC | |
626 | WINDRES | |
627 | STRIP | |
628 | RANLIB | |
629 | NM | |
630 | LIPO | |
631 | LD | |
632 | DLLTOOL | |
633 | AS | |
634 | AR | |
635 | RUNTEST | |
636 | EXPECT | |
637 | MAKEINFO | |
638 | FLEX | |
639 | LEX | |
640 | M4 | |
641 | BISON | |
642 | YACC | |
81ecdfbb RW |
643 | WINDRES_FOR_BUILD |
644 | WINDMC_FOR_BUILD | |
645 | RANLIB_FOR_BUILD | |
646 | NM_FOR_BUILD | |
647 | LD_FOR_BUILD | |
648 | LDFLAGS_FOR_BUILD | |
f948b2de | 649 | GDC_FOR_BUILD |
e552509b | 650 | GOC_FOR_BUILD |
81ecdfbb | 651 | GFORTRAN_FOR_BUILD |
81ecdfbb RW |
652 | DLLTOOL_FOR_BUILD |
653 | CXX_FOR_BUILD | |
654 | CXXFLAGS_FOR_BUILD | |
655 | CFLAGS_FOR_BUILD | |
656 | CC_FOR_BUILD | |
657 | AS_FOR_BUILD | |
658 | AR_FOR_BUILD | |
911e63d0 | 659 | target_configdirs |
81ecdfbb | 660 | configdirs |
81ecdfbb | 661 | build_configdirs |
81ecdfbb RW |
662 | INSTALL_GDB_TK |
663 | GDB_TK | |
664 | CONFIGURE_GDB_TK | |
665 | build_tooldir | |
666 | tooldir | |
667 | GCC_SHLIB_SUBDIR | |
668 | RPATH_ENVVAR | |
4074d5f2 RW |
669 | target_configargs |
670 | host_configargs | |
671 | build_configargs | |
96655cc4 | 672 | BUILD_CONFIG |
91c1f14c | 673 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
674 | CXXFLAGS_FOR_TARGET |
675 | CFLAGS_FOR_TARGET | |
676 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
677 | SYSROOT_CFLAGS_FOR_TARGET | |
bf41f30d | 678 | get_gcc_base_ver |
e81d5d05 | 679 | extra_host_zlib_configure_flags |
700d40ca | 680 | extra_host_libiberty_configure_flags |
1b6c0831 | 681 | stage1_languages |
bf41f30d | 682 | host_shared |
1b6c0831 L |
683 | extra_linker_plugin_flags |
684 | extra_linker_plugin_configure_flags | |
7ec59b9e | 685 | islinc |
1b6c0831 | 686 | isllibs |
81ecdfbb | 687 | poststage1_ldflags |
143754cd | 688 | poststage1_libs |
81ecdfbb | 689 | stage1_ldflags |
b3676d82 | 690 | stage1_libs |
7ec59b9e | 691 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
692 | extra_mpc_mpfr_configure_flags |
693 | extra_mpc_gmp_configure_flags | |
694 | extra_mpfr_configure_flags | |
695 | gmpinc | |
696 | gmplibs | |
697 | do_compare | |
698 | GNATMAKE | |
699 | GNATBIND | |
700 | ac_ct_CXX | |
701 | CXXFLAGS | |
702 | CXX | |
703 | OBJEXT | |
704 | EXEEXT | |
705 | ac_ct_CC | |
706 | CPPFLAGS | |
707 | LDFLAGS | |
708 | CFLAGS | |
709 | CC | |
1b6c0831 | 710 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
711 | target_subdir |
712 | host_subdir | |
713 | build_subdir | |
714 | build_libsubdir | |
8e957354 PB |
715 | AWK |
716 | SED | |
81ecdfbb RW |
717 | LN_S |
718 | LN | |
719 | INSTALL_DATA | |
720 | INSTALL_SCRIPT | |
721 | INSTALL_PROGRAM | |
722 | target_os | |
723 | target_vendor | |
724 | target_cpu | |
725 | target | |
726 | host_os | |
727 | host_vendor | |
728 | host_cpu | |
729 | host | |
730 | target_noncanonical | |
731 | host_noncanonical | |
732 | build_noncanonical | |
733 | build_os | |
734 | build_vendor | |
735 | build_cpu | |
736 | build | |
737 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
738 | target_alias | |
739 | host_alias | |
740 | build_alias | |
741 | LIBS | |
742 | ECHO_T | |
743 | ECHO_N | |
744 | ECHO_C | |
745 | DEFS | |
746 | mandir | |
747 | localedir | |
748 | libdir | |
749 | psdir | |
750 | pdfdir | |
751 | dvidir | |
752 | htmldir | |
753 | infodir | |
754 | docdir | |
755 | oldincludedir | |
756 | includedir | |
757 | localstatedir | |
758 | sharedstatedir | |
759 | sysconfdir | |
760 | datadir | |
761 | datarootdir | |
762 | libexecdir | |
763 | sbindir | |
764 | bindir | |
765 | program_transform_name | |
766 | prefix | |
767 | exec_prefix | |
768 | PACKAGE_URL | |
769 | PACKAGE_BUGREPORT | |
770 | PACKAGE_STRING | |
771 | PACKAGE_VERSION | |
772 | PACKAGE_TARNAME | |
773 | PACKAGE_NAME | |
774 | PATH_SEPARATOR | |
775 | SHELL' | |
776 | ac_subst_files='serialization_dependencies | |
777 | host_makefile_frag | |
778 | target_makefile_frag | |
779 | alphaieee_frag | |
780 | ospace_frag' | |
781 | ac_user_opts=' | |
782 | enable_option_checking | |
783 | with_build_libsubdir | |
cf39cfc5 | 784 | with_system_zlib |
1b6c0831 L |
785 | enable_as_accelerator_for |
786 | enable_offload_targets | |
81ecdfbb | 787 | enable_gold |
c7791212 | 788 | enable_ld |
edeefb67 | 789 | enable_compressed_debug_sections |
89a1e9c3 PB |
790 | enable_libquadmath |
791 | enable_libquadmath_support | |
81ecdfbb RW |
792 | enable_libada |
793 | enable_libssp | |
f66a9a70 | 794 | enable_libstdcxx |
1b6c0831 | 795 | enable_liboffloadmic |
ffdd6afc | 796 | enable_bootstrap |
81ecdfbb RW |
797 | with_mpc |
798 | with_mpc_include | |
799 | with_mpc_lib | |
800 | with_mpfr_dir | |
801 | with_mpfr | |
802 | with_mpfr_include | |
803 | with_mpfr_lib | |
804 | with_gmp_dir | |
805 | with_gmp | |
806 | with_gmp_include | |
807 | with_gmp_lib | |
81ecdfbb | 808 | with_stage1_libs |
b3676d82 | 809 | with_stage1_ldflags |
81ecdfbb | 810 | with_boot_libs |
143754cd | 811 | with_boot_ldflags |
7ec59b9e L |
812 | with_isl |
813 | with_isl_include | |
814 | with_isl_lib | |
815 | enable_isl_version_check | |
700d40ca | 816 | enable_lto |
1b6c0831 L |
817 | enable_linker_plugin_configure_flags |
818 | enable_linker_plugin_flags | |
bf41f30d | 819 | enable_host_shared |
81ecdfbb RW |
820 | enable_stage1_languages |
821 | enable_objc_gc | |
05a13254 NC |
822 | with_target_bdw_gc |
823 | with_target_bdw_gc_include | |
824 | with_target_bdw_gc_lib | |
bf41f30d | 825 | with_gcc_major_version_only |
81ecdfbb RW |
826 | with_build_sysroot |
827 | with_debug_prefix_map | |
96655cc4 | 828 | with_build_config |
730af8ee | 829 | enable_vtable_verify |
81ecdfbb RW |
830 | enable_serial_configure |
831 | with_build_time_tools | |
832 | enable_maintainer_mode | |
833 | enable_stage1_checking | |
834 | enable_werror | |
81ecdfbb RW |
835 | ' |
836 | ac_precious_vars='build_alias | |
837 | host_alias | |
838 | target_alias | |
839 | CC | |
840 | CFLAGS | |
841 | LDFLAGS | |
842 | LIBS | |
843 | CPPFLAGS | |
844 | CXX | |
845 | CXXFLAGS | |
846 | CCC | |
4074d5f2 RW |
847 | build_configargs |
848 | host_configargs | |
849 | target_configargs | |
81ecdfbb RW |
850 | AR |
851 | AS | |
852 | DLLTOOL | |
853 | LD | |
854 | LIPO | |
855 | NM | |
856 | RANLIB | |
857 | STRIP | |
858 | WINDRES | |
859 | WINDMC | |
860 | OBJCOPY | |
861 | OBJDUMP | |
f948b2de | 862 | OTOOL |
b121d7d4 | 863 | READELF |
81ecdfbb RW |
864 | CC_FOR_TARGET |
865 | CXX_FOR_TARGET | |
866 | GCC_FOR_TARGET | |
81ecdfbb | 867 | GFORTRAN_FOR_TARGET |
e552509b | 868 | GOC_FOR_TARGET |
f948b2de | 869 | GDC_FOR_TARGET |
81ecdfbb RW |
870 | AR_FOR_TARGET |
871 | AS_FOR_TARGET | |
872 | DLLTOOL_FOR_TARGET | |
873 | LD_FOR_TARGET | |
874 | LIPO_FOR_TARGET | |
875 | NM_FOR_TARGET | |
6b91c541 | 876 | OBJCOPY_FOR_TARGET |
81ecdfbb | 877 | OBJDUMP_FOR_TARGET |
f948b2de | 878 | OTOOL_FOR_TARGET |
81ecdfbb | 879 | RANLIB_FOR_TARGET |
b121d7d4 | 880 | READELF_FOR_TARGET |
81ecdfbb RW |
881 | STRIP_FOR_TARGET |
882 | WINDRES_FOR_TARGET | |
883 | WINDMC_FOR_TARGET' | |
884 | ||
a0da8069 NN |
885 | |
886 | # Initialize some variables set by options. | |
c6b750e1 DJ |
887 | ac_init_help= |
888 | ac_init_version=false | |
81ecdfbb RW |
889 | ac_unrecognized_opts= |
890 | ac_unrecognized_sep= | |
a0da8069 NN |
891 | # The variables have the same names as the options, with |
892 | # dashes changed to underlines. | |
c6b750e1 | 893 | cache_file=/dev/null |
a0da8069 | 894 | exec_prefix=NONE |
a0da8069 | 895 | no_create= |
a0da8069 NN |
896 | no_recursion= |
897 | prefix=NONE | |
898 | program_prefix=NONE | |
899 | program_suffix=NONE | |
900 | program_transform_name=s,x,x, | |
901 | silent= | |
902 | site= | |
903 | srcdir= | |
a0da8069 NN |
904 | verbose= |
905 | x_includes=NONE | |
906 | x_libraries=NONE | |
c6b750e1 DJ |
907 | |
908 | # Installation directory options. | |
909 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
910 | # and all the variables that are supposed to be based on exec_prefix | |
911 | # by default will actually change. | |
912 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 913 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
914 | bindir='${exec_prefix}/bin' |
915 | sbindir='${exec_prefix}/sbin' | |
916 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
917 | datarootdir='${prefix}/share' |
918 | datadir='${datarootdir}' | |
a0da8069 NN |
919 | sysconfdir='${prefix}/etc' |
920 | sharedstatedir='${prefix}/com' | |
921 | localstatedir='${prefix}/var' | |
a0da8069 NN |
922 | includedir='${prefix}/include' |
923 | oldincludedir='/usr/include' | |
81ecdfbb RW |
924 | docdir='${datarootdir}/doc/${PACKAGE}' |
925 | infodir='${datarootdir}/info' | |
926 | htmldir='${docdir}' | |
927 | dvidir='${docdir}' | |
928 | pdfdir='${docdir}' | |
929 | psdir='${docdir}' | |
930 | libdir='${exec_prefix}/lib' | |
931 | localedir='${datarootdir}/locale' | |
932 | mandir='${datarootdir}/man' | |
252b5132 | 933 | |
a0da8069 | 934 | ac_prev= |
81ecdfbb | 935 | ac_dashdash= |
a0da8069 NN |
936 | for ac_option |
937 | do | |
a0da8069 NN |
938 | # If the previous option needs an argument, assign it. |
939 | if test -n "$ac_prev"; then | |
81ecdfbb | 940 | eval $ac_prev=\$ac_option |
a0da8069 NN |
941 | ac_prev= |
942 | continue | |
943 | fi | |
252b5132 | 944 | |
81ecdfbb | 945 | case $ac_option in |
d0ac1c44 SM |
946 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
947 | *=) ac_optarg= ;; | |
948 | *) ac_optarg=yes ;; | |
81ecdfbb | 949 | esac |
a0da8069 NN |
950 | |
951 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
952 | ||
81ecdfbb RW |
953 | case $ac_dashdash$ac_option in |
954 | --) | |
955 | ac_dashdash=yes ;; | |
a0da8069 NN |
956 | |
957 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
958 | ac_prev=bindir ;; | |
959 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 960 | bindir=$ac_optarg ;; |
a0da8069 NN |
961 | |
962 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 963 | ac_prev=build_alias ;; |
a0da8069 | 964 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 965 | build_alias=$ac_optarg ;; |
a0da8069 NN |
966 | |
967 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
968 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
969 | ac_prev=cache_file ;; | |
970 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
971 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
972 | cache_file=$ac_optarg ;; |
973 | ||
974 | --config-cache | -C) | |
975 | cache_file=config.cache ;; | |
a0da8069 | 976 | |
81ecdfbb | 977 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 978 | ac_prev=datadir ;; |
81ecdfbb | 979 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 980 | datadir=$ac_optarg ;; |
a0da8069 | 981 | |
81ecdfbb RW |
982 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
983 | | --dataroo | --dataro | --datar) | |
984 | ac_prev=datarootdir ;; | |
985 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
986 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
987 | datarootdir=$ac_optarg ;; | |
988 | ||
a0da8069 | 989 | -disable-* | --disable-*) |
81ecdfbb | 990 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 991 | # Reject names that are not valid shell variable names. |
81ecdfbb | 992 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 993 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
994 | ac_useropt_orig=$ac_useropt |
995 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
996 | case $ac_user_opts in | |
997 | *" | |
998 | "enable_$ac_useropt" | |
999 | "*) ;; | |
1000 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1001 | ac_unrecognized_sep=', ';; | |
1002 | esac | |
1003 | eval enable_$ac_useropt=no ;; | |
1004 | ||
1005 | -docdir | --docdir | --docdi | --doc | --do) | |
1006 | ac_prev=docdir ;; | |
1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1008 | docdir=$ac_optarg ;; | |
1009 | ||
1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1011 | ac_prev=dvidir ;; | |
1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1013 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
1014 | |
1015 | -enable-* | --enable-*) | |
81ecdfbb | 1016 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 1017 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1018 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1019 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1020 | ac_useropt_orig=$ac_useropt |
1021 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1022 | case $ac_user_opts in | |
1023 | *" | |
1024 | "enable_$ac_useropt" | |
1025 | "*) ;; | |
1026 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1027 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1028 | esac |
81ecdfbb | 1029 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1030 | |
1031 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1032 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1033 | | --exec | --exe | --ex) | |
1034 | ac_prev=exec_prefix ;; | |
1035 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1036 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1037 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1038 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1039 | |
1040 | -gas | --gas | --ga | --g) | |
1041 | # Obsolete; use --with-gas. | |
1042 | with_gas=yes ;; | |
1043 | ||
c6b750e1 DJ |
1044 | -help | --help | --hel | --he | -h) |
1045 | ac_init_help=long ;; | |
1046 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1047 | ac_init_help=recursive ;; | |
1048 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1049 | ac_init_help=short ;; | |
a0da8069 NN |
1050 | |
1051 | -host | --host | --hos | --ho) | |
c6b750e1 | 1052 | ac_prev=host_alias ;; |
a0da8069 | 1053 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1054 | host_alias=$ac_optarg ;; |
a0da8069 | 1055 | |
81ecdfbb RW |
1056 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1057 | ac_prev=htmldir ;; | |
1058 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1059 | | --ht=*) | |
1060 | htmldir=$ac_optarg ;; | |
1061 | ||
a0da8069 NN |
1062 | -includedir | --includedir | --includedi | --included | --include \ |
1063 | | --includ | --inclu | --incl | --inc) | |
1064 | ac_prev=includedir ;; | |
1065 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1066 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1067 | includedir=$ac_optarg ;; |
a0da8069 NN |
1068 | |
1069 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1070 | ac_prev=infodir ;; | |
1071 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1072 | infodir=$ac_optarg ;; |
a0da8069 NN |
1073 | |
1074 | -libdir | --libdir | --libdi | --libd) | |
1075 | ac_prev=libdir ;; | |
1076 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1077 | libdir=$ac_optarg ;; |
a0da8069 NN |
1078 | |
1079 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1080 | | --libexe | --libex | --libe) | |
1081 | ac_prev=libexecdir ;; | |
1082 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1083 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1084 | libexecdir=$ac_optarg ;; |
a0da8069 | 1085 | |
81ecdfbb RW |
1086 | -localedir | --localedir | --localedi | --localed | --locale) |
1087 | ac_prev=localedir ;; | |
1088 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1089 | localedir=$ac_optarg ;; | |
1090 | ||
a0da8069 | 1091 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1092 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1093 | ac_prev=localstatedir ;; |
1094 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1095 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1096 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1097 | |
1098 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1099 | ac_prev=mandir ;; | |
1100 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1101 | mandir=$ac_optarg ;; |
a0da8069 NN |
1102 | |
1103 | -nfp | --nfp | --nf) | |
1104 | # Obsolete; use --without-fp. | |
1105 | with_fp=no ;; | |
1106 | ||
1107 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1108 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1109 | no_create=yes ;; |
1110 | ||
1111 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1112 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1113 | no_recursion=yes ;; | |
1114 | ||
1115 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1116 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1117 | | --oldin | --oldi | --old | --ol | --o) | |
1118 | ac_prev=oldincludedir ;; | |
1119 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1120 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1121 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1122 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1123 | |
1124 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1125 | ac_prev=prefix ;; | |
1126 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1127 | prefix=$ac_optarg ;; |
a0da8069 NN |
1128 | |
1129 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1130 | | --program-pre | --program-pr | --program-p) | |
1131 | ac_prev=program_prefix ;; | |
1132 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1133 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1134 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1135 | |
1136 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1137 | | --program-suf | --program-su | --program-s) | |
1138 | ac_prev=program_suffix ;; | |
1139 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1140 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1141 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1142 | |
1143 | -program-transform-name | --program-transform-name \ | |
1144 | | --program-transform-nam | --program-transform-na \ | |
1145 | | --program-transform-n | --program-transform- \ | |
1146 | | --program-transform | --program-transfor \ | |
1147 | | --program-transfo | --program-transf \ | |
1148 | | --program-trans | --program-tran \ | |
1149 | | --progr-tra | --program-tr | --program-t) | |
1150 | ac_prev=program_transform_name ;; | |
1151 | -program-transform-name=* | --program-transform-name=* \ | |
1152 | | --program-transform-nam=* | --program-transform-na=* \ | |
1153 | | --program-transform-n=* | --program-transform-=* \ | |
1154 | | --program-transform=* | --program-transfor=* \ | |
1155 | | --program-transfo=* | --program-transf=* \ | |
1156 | | --program-trans=* | --program-tran=* \ | |
1157 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1158 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1159 | |
81ecdfbb RW |
1160 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1161 | ac_prev=pdfdir ;; | |
1162 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1163 | pdfdir=$ac_optarg ;; | |
1164 | ||
1165 | -psdir | --psdir | --psdi | --psd | --ps) | |
1166 | ac_prev=psdir ;; | |
1167 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1168 | psdir=$ac_optarg ;; | |
1169 | ||
a0da8069 NN |
1170 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1171 | | -silent | --silent | --silen | --sile | --sil) | |
1172 | silent=yes ;; | |
1173 | ||
1174 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1175 | ac_prev=sbindir ;; | |
1176 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1177 | | --sbi=* | --sb=*) | |
c6b750e1 | 1178 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1179 | |
1180 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1181 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1182 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1183 | | --sha | --sh) | |
1184 | ac_prev=sharedstatedir ;; | |
1185 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1186 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1187 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1188 | | --sha=* | --sh=*) | |
c6b750e1 | 1189 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1190 | |
1191 | -site | --site | --sit) | |
1192 | ac_prev=site ;; | |
1193 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1194 | site=$ac_optarg ;; |
a0da8069 NN |
1195 | |
1196 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1197 | ac_prev=srcdir ;; | |
1198 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1199 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1200 | |
1201 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1202 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1203 | ac_prev=sysconfdir ;; | |
1204 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1205 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1206 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1207 | |
1208 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1209 | ac_prev=target_alias ;; |
a0da8069 | 1210 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1211 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1212 | |
1213 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1214 | verbose=yes ;; | |
1215 | ||
c6b750e1 DJ |
1216 | -version | --version | --versio | --versi | --vers | -V) |
1217 | ac_init_version=: ;; | |
a0da8069 NN |
1218 | |
1219 | -with-* | --with-*) | |
81ecdfbb | 1220 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1221 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1222 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1223 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1224 | ac_useropt_orig=$ac_useropt |
1225 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1226 | case $ac_user_opts in | |
1227 | *" | |
1228 | "with_$ac_useropt" | |
1229 | "*) ;; | |
1230 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1231 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1232 | esac |
81ecdfbb | 1233 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1234 | |
1235 | -without-* | --without-*) | |
81ecdfbb | 1236 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1237 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1238 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1239 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1240 | ac_useropt_orig=$ac_useropt |
1241 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1242 | case $ac_user_opts in | |
1243 | *" | |
1244 | "with_$ac_useropt" | |
1245 | "*) ;; | |
1246 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1247 | ac_unrecognized_sep=', ';; | |
1248 | esac | |
1249 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1250 | |
1251 | --x) | |
1252 | # Obsolete; use --with-x. | |
1253 | with_x=yes ;; | |
1254 | ||
1255 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1256 | | --x-incl | --x-inc | --x-in | --x-i) | |
1257 | ac_prev=x_includes ;; | |
1258 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1259 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1260 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1261 | |
1262 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1263 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1264 | ac_prev=x_libraries ;; | |
1265 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1266 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1267 | x_libraries=$ac_optarg ;; |
a0da8069 | 1268 | |
d0ac1c44 SM |
1269 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1270 | Try \`$0 --help' for more information" | |
a0da8069 NN |
1271 | ;; |
1272 | ||
c6b750e1 DJ |
1273 | *=*) |
1274 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1275 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1276 | case $ac_envvar in #( |
1277 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1278 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1279 | esac |
1280 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1281 | export $ac_envvar ;; |
1282 | ||
a0da8069 | 1283 | *) |
c6b750e1 | 1284 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1285 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1286 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1287 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1288 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
a0da8069 NN |
1289 | ;; |
1290 | ||
1291 | esac | |
1292 | done | |
1293 | ||
1294 | if test -n "$ac_prev"; then | |
c6b750e1 | 1295 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1296 | as_fn_error $? "missing argument to $ac_option" |
a0da8069 | 1297 | fi |
a0da8069 | 1298 | |
81ecdfbb RW |
1299 | if test -n "$ac_unrecognized_opts"; then |
1300 | case $enable_option_checking in | |
1301 | no) ;; | |
d0ac1c44 | 1302 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1303 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
c6b750e1 | 1304 | esac |
81ecdfbb | 1305 | fi |
a0da8069 | 1306 | |
81ecdfbb RW |
1307 | # Check all directory arguments for consistency. |
1308 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1309 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1310 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1311 | libdir localedir mandir | |
a0da8069 | 1312 | do |
81ecdfbb RW |
1313 | eval ac_val=\$$ac_var |
1314 | # Remove trailing slashes. | |
1315 | case $ac_val in | |
1316 | */ ) | |
1317 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1318 | eval $ac_var=\$ac_val;; | |
1319 | esac | |
1320 | # Be sure to have absolute directory names. | |
c6b750e1 | 1321 | case $ac_val in |
81ecdfbb RW |
1322 | [\\/$]* | ?:[\\/]* ) continue;; |
1323 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1324 | esac |
d0ac1c44 | 1325 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1326 | done |
1327 | ||
c6b750e1 DJ |
1328 | # There might be people who depend on the old broken behavior: `$host' |
1329 | # used to hold the argument of --host etc. | |
1330 | # FIXME: To remove some day. | |
1331 | build=$build_alias | |
1332 | host=$host_alias | |
1333 | target=$target_alias | |
376a0e54 | 1334 | |
c6b750e1 DJ |
1335 | # FIXME: To remove some day. |
1336 | if test "x$host_alias" != x; then | |
1337 | if test "x$build_alias" = x; then | |
1338 | cross_compiling=maybe | |
c6b750e1 DJ |
1339 | elif test "x$build_alias" != "x$host_alias"; then |
1340 | cross_compiling=yes | |
1341 | fi | |
1342 | fi | |
1343 | ||
1344 | ac_tool_prefix= | |
1345 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1346 | ||
1347 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1348 | |
a0da8069 | 1349 | |
81ecdfbb RW |
1350 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1351 | ac_ls_di=`ls -di .` && | |
1352 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1353 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1354 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1355 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1356 | |
1357 | ||
a0da8069 NN |
1358 | # Find the source files, if location was not specified. |
1359 | if test -z "$srcdir"; then | |
1360 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1361 | # Try the directory containing this script, then the parent directory. |
1362 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1363 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1364 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1365 | X"$as_myself" : 'X\(//\)$' \| \ | |
1366 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1367 | $as_echo X"$as_myself" | | |
1368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\/\)[^/].*/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\/\)$/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\).*/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | s/.*/./; q'` | |
a0da8069 | 1385 | srcdir=$ac_confdir |
81ecdfbb | 1386 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1387 | srcdir=.. |
1388 | fi | |
1389 | else | |
1390 | ac_srcdir_defaulted=no | |
1391 | fi | |
81ecdfbb RW |
1392 | if test ! -r "$srcdir/$ac_unique_file"; then |
1393 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1394 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1395 | fi |
1396 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1397 | ac_abs_confdir=`( | |
d0ac1c44 | 1398 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1399 | pwd)` |
1400 | # When building in place, set srcdir=. | |
1401 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1402 | srcdir=. | |
1403 | fi | |
1404 | # Remove unnecessary trailing slashes from srcdir. | |
1405 | # Double slashes in file names in object file debugging info | |
1406 | # mess up M-x gdb in Emacs. | |
1407 | case $srcdir in | |
1408 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1409 | esac | |
6d0cd39e AM |
1410 | case $srcdir in |
1411 | *" "*) | |
d0ac1c44 | 1412 | as_fn_error $? "path to source, $srcdir, contains spaces" |
6d0cd39e AM |
1413 | ;; |
1414 | esac | |
9cc8ae67 PB |
1415 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1416 | ||
81ecdfbb RW |
1417 | for ac_var in $ac_precious_vars; do |
1418 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1419 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1420 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1421 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1422 | done | |
c6b750e1 DJ |
1423 | |
1424 | # | |
1425 | # Report the --help message. | |
1426 | # | |
1427 | if test "$ac_init_help" = "long"; then | |
1428 | # Omit some internal or obsolete options to make the list less imposing. | |
1429 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1430 | cat <<_ACEOF | |
1431 | \`configure' configures this package to adapt to many kinds of systems. | |
1432 | ||
1433 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1434 | ||
1435 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1436 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1437 | ||
1438 | Defaults for the options are specified in brackets. | |
1439 | ||
1440 | Configuration: | |
1441 | -h, --help display this help and exit | |
1442 | --help=short display options specific to this package | |
1443 | --help=recursive display the short help of all the included packages | |
1444 | -V, --version display version information and exit | |
d0ac1c44 | 1445 | -q, --quiet, --silent do not print \`checking ...' messages |
c6b750e1 DJ |
1446 | --cache-file=FILE cache test results in FILE [disabled] |
1447 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1448 | -n, --no-create do not create output files | |
1449 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1450 | ||
c6b750e1 DJ |
1451 | Installation directories: |
1452 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1453 | [$ac_default_prefix] |
c6b750e1 | 1454 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1455 | [PREFIX] |
c6b750e1 DJ |
1456 | |
1457 | By default, \`make install' will install all the files in | |
1458 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1459 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1460 | for instance \`--prefix=\$HOME'. | |
1461 | ||
1462 | For better control, use the options below. | |
1463 | ||
1464 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1465 | --bindir=DIR user executables [EPREFIX/bin] |
1466 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1467 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1468 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1469 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1470 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1471 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1472 | --includedir=DIR C header files [PREFIX/include] | |
1473 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1474 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1475 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1476 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1477 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1478 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1479 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1480 | --htmldir=DIR html documentation [DOCDIR] | |
1481 | --dvidir=DIR dvi documentation [DOCDIR] | |
1482 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1483 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1484 | _ACEOF |
1485 | ||
1486 | cat <<\_ACEOF | |
1487 | ||
1488 | Program names: | |
1489 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1490 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1491 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1492 | ||
1493 | System types: | |
1494 | --build=BUILD configure for building on BUILD [guessed] | |
1495 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1496 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1497 | _ACEOF | |
a0da8069 | 1498 | fi |
a0da8069 | 1499 | |
c6b750e1 DJ |
1500 | if test -n "$ac_init_help"; then |
1501 | ||
1502 | cat <<\_ACEOF | |
1503 | ||
1504 | Optional Features: | |
81ecdfbb | 1505 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1506 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1507 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1508 | --enable-as-accelerator-for=ARG |
1509 | build as offload target compiler. Specify offload | |
1510 | host triple by ARG | |
1511 | --enable-offload-targets=LIST | |
1512 | enable offloading to devices from comma-separated | |
1513 | LIST of TARGET[=DIR]. Use optional path to find | |
1514 | offload target compiler during the build | |
c7791212 | 1515 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1516 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
6c3bc0f8 | 1517 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1518 | Enable compressed debug sections for gas, gold or ld |
1519 | by default | |
89a1e9c3 PB |
1520 | --disable-libquadmath do not build libquadmath directory |
1521 | --disable-libquadmath-support | |
1522 | disable libquadmath support for Fortran | |
521ec477 DD |
1523 | --enable-libada build libada directory |
1524 | --enable-libssp build libssp directory | |
f66a9a70 | 1525 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1526 | --enable-liboffloadmic=ARG |
1527 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1528 | --enable-bootstrap enable bootstrapping [yes if native build] |
7ec59b9e | 1529 | --disable-isl-version-check |
4849dfd8 | 1530 | disable check for isl version |
700d40ca | 1531 | --enable-lto enable link time optimization support |
1b6c0831 L |
1532 | --enable-linker-plugin-configure-flags=FLAGS |
1533 | additional flags for configuring linker plugins | |
1534 | [none] | |
1535 | --enable-linker-plugin-flags=FLAGS | |
1536 | additional flags for configuring and building linker | |
1537 | plugins [none] | |
bf41f30d | 1538 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1539 | --enable-stage1-languages[=all] |
1540 | choose additional languages to build during stage1. | |
1541 | Mostly useful for compiler development | |
1542 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1543 | Objective-C runtime | |
ce6c656d | 1544 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1545 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1546 | force sequential configuration of sub-packages for |
1547 | the host, target or build machine, or all | |
1548 | sub-packages | |
1549 | --enable-maintainer-mode | |
1550 | enable make rules and dependencies not useful (and | |
1551 | sometimes confusing) to the casual installer | |
1552 | --enable-stage1-checking[=all] | |
1553 | choose additional checking for stage1 of the | |
1554 | compiler | |
c6b750e1 DJ |
1555 | --enable-werror enable -Werror in bootstrap stage2 and later |
1556 | ||
1557 | Optional Packages: | |
1558 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1559 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1560 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1561 | --with-system-zlib use installed libz |
7837304f AS |
1562 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1563 | Equivalent to --with-mpc-include=PATH/include plus | |
1564 | --with-mpc-lib=PATH/lib | |
1565 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1566 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1567 | --with-mpfr-dir=PATH this option has been REMOVED |
1568 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1569 | Equivalent to --with-mpfr-include=PATH/include plus |
1570 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1571 | --with-mpfr-include=PATH |
521ec477 DD |
1572 | specify directory for installed MPFR include files |
1573 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1574 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1575 | --with-gmp=PATH specify prefix directory for the installed GMP |
1576 | package. Equivalent to | |
1577 | --with-gmp-include=PATH/include plus | |
1578 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1579 | --with-gmp-include=PATH specify directory for installed GMP include files |
1580 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1581 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1582 | --with-stage1-ldflags=FLAGS |
1583 | linker flags for stage1 | |
7837304f AS |
1584 | --with-boot-libs=LIBS libraries for stage2 and later |
1585 | --with-boot-ldflags=FLAGS | |
1586 | linker flags for stage2 and later | |
4849dfd8 | 1587 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1588 | package. Equivalent to |
7ec59b9e L |
1589 | --with-isl-include=PATH/include plus |
1590 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1591 | --with-isl-include=PATH Specify directory for installed isl include files |
1592 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1593 | --with-target-bdw-gc=PATHLIST |
1594 | specify prefix directory for installed bdw-gc | |
1595 | package. Equivalent to | |
1596 | --with-target-bdw-gc-include=PATH/include plus | |
1597 | --with-target-bdw-gc-lib=PATH/lib | |
1598 | --with-target-bdw-gc-include=PATHLIST | |
1599 | specify directories for installed bdw-gc include | |
1600 | files | |
1601 | --with-target-bdw-gc-lib=PATHLIST | |
1602 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1603 | --with-gcc-major-version-only |
1604 | use only GCC major number in filesystem paths | |
521ec477 | 1605 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1606 | use sysroot as the system root during the build |
8a6ee3ab | 1607 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1608 | map A to B, C to D ... in debug information |
1609 | --with-build-config='NAME NAME2...' | |
1610 | use config/NAME.mk build configuration | |
521ec477 | 1611 | --with-build-time-tools=PATH |
c6b750e1 | 1612 | use given path to find target tools during the build |
c6b750e1 DJ |
1613 | |
1614 | Some influential environment variables: | |
1615 | CC C compiler command | |
1616 | CFLAGS C compiler flags | |
1617 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1618 | nonstandard directory <lib dir> | |
81ecdfbb | 1619 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1620 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1621 | you have headers in a nonstandard directory <include dir> |
18f6b6ee PB |
1622 | CXX C++ compiler command |
1623 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1624 | build_configargs |
1625 | additional configure arguments for build directories | |
1626 | host_configargs | |
1627 | additional configure arguments for host directories | |
1628 | target_configargs | |
1629 | additional configure arguments for target directories | |
9a819804 AO |
1630 | AR AR for the host |
1631 | AS AS for the host | |
1632 | DLLTOOL DLLTOOL for the host | |
1633 | LD LD for the host | |
1634 | LIPO LIPO for the host | |
1635 | NM NM for the host | |
1636 | RANLIB RANLIB for the host | |
1637 | STRIP STRIP for the host | |
1638 | WINDRES WINDRES for the host | |
0c24b341 | 1639 | WINDMC WINDMC for the host |
9a819804 AO |
1640 | OBJCOPY OBJCOPY for the host |
1641 | OBJDUMP OBJDUMP for the host | |
f948b2de | 1642 | OTOOL OTOOL for the host |
b121d7d4 | 1643 | READELF READELF for the host |
9a819804 AO |
1644 | CC_FOR_TARGET |
1645 | CC for the target | |
1646 | CXX_FOR_TARGET | |
1647 | CXX for the target | |
1648 | GCC_FOR_TARGET | |
1649 | GCC for the target | |
9a819804 AO |
1650 | GFORTRAN_FOR_TARGET |
1651 | GFORTRAN for the target | |
e552509b ILT |
1652 | GOC_FOR_TARGET |
1653 | GOC for the target | |
f948b2de NC |
1654 | GDC_FOR_TARGET |
1655 | GDC for the target | |
9a819804 AO |
1656 | AR_FOR_TARGET |
1657 | AR for the target | |
1658 | AS_FOR_TARGET | |
1659 | AS for the target | |
1660 | DLLTOOL_FOR_TARGET | |
1661 | DLLTOOL for the target | |
1662 | LD_FOR_TARGET | |
1663 | LD for the target | |
1664 | LIPO_FOR_TARGET | |
1665 | LIPO for the target | |
1666 | NM_FOR_TARGET | |
1667 | NM for the target | |
6b91c541 AP |
1668 | OBJCOPY_FOR_TARGET |
1669 | OBJCOPY for the target | |
9a819804 AO |
1670 | OBJDUMP_FOR_TARGET |
1671 | OBJDUMP for the target | |
f948b2de NC |
1672 | OTOOL_FOR_TARGET |
1673 | OTOOL for the target | |
9a819804 AO |
1674 | RANLIB_FOR_TARGET |
1675 | RANLIB for the target | |
b121d7d4 DD |
1676 | READELF_FOR_TARGET |
1677 | READELF for the target | |
9a819804 AO |
1678 | STRIP_FOR_TARGET |
1679 | STRIP for the target | |
1680 | WINDRES_FOR_TARGET | |
1681 | WINDRES for the target | |
0c24b341 NC |
1682 | WINDMC_FOR_TARGET |
1683 | WINDMC for the target | |
c6b750e1 DJ |
1684 | |
1685 | Use these variables to override the choices made by `configure' or to help | |
1686 | it to find libraries and programs with nonstandard names/locations. | |
1687 | ||
81ecdfbb | 1688 | Report bugs to the package provider. |
c6b750e1 | 1689 | _ACEOF |
81ecdfbb | 1690 | ac_status=$? |
c6b750e1 DJ |
1691 | fi |
1692 | ||
1693 | if test "$ac_init_help" = "recursive"; then | |
1694 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1695 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1696 | test -d "$ac_dir" || |
1697 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1698 | continue | |
c6b750e1 DJ |
1699 | ac_builddir=. |
1700 | ||
81ecdfbb RW |
1701 | case "$ac_dir" in |
1702 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1703 | *) | |
1704 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1705 | # A ".." for each directory in $ac_dir_suffix. | |
1706 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1707 | case $ac_top_builddir_sub in | |
1708 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1709 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1710 | esac ;; | |
1711 | esac | |
1712 | ac_abs_top_builddir=$ac_pwd | |
1713 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1714 | # for backward compatibility: | |
1715 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1716 | |
1717 | case $srcdir in | |
81ecdfbb | 1718 | .) # We are building in place. |
c6b750e1 | 1719 | ac_srcdir=. |
81ecdfbb RW |
1720 | ac_top_srcdir=$ac_top_builddir_sub |
1721 | ac_abs_top_srcdir=$ac_pwd ;; | |
1722 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1723 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1724 | ac_top_srcdir=$srcdir |
1725 | ac_abs_top_srcdir=$srcdir ;; | |
1726 | *) # Relative name. | |
1727 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1728 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1729 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1730 | esac |
81ecdfbb RW |
1731 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1732 | ||
1733 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1734 | # Check for guested configure. | |
1735 | if test -f "$ac_srcdir/configure.gnu"; then | |
1736 | echo && | |
1737 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1738 | elif test -f "$ac_srcdir/configure"; then | |
1739 | echo && | |
1740 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1741 | else |
81ecdfbb RW |
1742 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1743 | fi || ac_status=$? | |
1744 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1745 | done |
1746 | fi | |
1747 | ||
81ecdfbb | 1748 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1749 | if $ac_init_version; then |
1750 | cat <<\_ACEOF | |
81ecdfbb | 1751 | configure |
d0ac1c44 | 1752 | generated by GNU Autoconf 2.69 |
c6b750e1 | 1753 | |
d0ac1c44 | 1754 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
1755 | This configure script is free software; the Free Software Foundation |
1756 | gives unlimited permission to copy, distribute and modify it. | |
1757 | _ACEOF | |
81ecdfbb | 1758 | exit |
c6b750e1 | 1759 | fi |
81ecdfbb RW |
1760 | |
1761 | ## ------------------------ ## | |
1762 | ## Autoconf initialization. ## | |
1763 | ## ------------------------ ## | |
1764 | ||
1765 | # ac_fn_c_try_compile LINENO | |
1766 | # -------------------------- | |
1767 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1768 | ac_fn_c_try_compile () | |
1769 | { | |
1770 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1771 | rm -f conftest.$ac_objext | |
1772 | if { { ac_try="$ac_compile" | |
1773 | case "(($ac_try" in | |
1774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1775 | *) ac_try_echo=$ac_try;; | |
1776 | esac | |
1777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1778 | $as_echo "$ac_try_echo"; } >&5 | |
1779 | (eval "$ac_compile") 2>conftest.err | |
1780 | ac_status=$? | |
1781 | if test -s conftest.err; then | |
1782 | grep -v '^ *+' conftest.err >conftest.er1 | |
1783 | cat conftest.er1 >&5 | |
1784 | mv -f conftest.er1 conftest.err | |
1785 | fi | |
1786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1787 | test $ac_status = 0; } && { | |
1788 | test -z "$ac_c_werror_flag" || | |
1789 | test ! -s conftest.err | |
1790 | } && test -s conftest.$ac_objext; then : | |
1791 | ac_retval=0 | |
1792 | else | |
1793 | $as_echo "$as_me: failed program was:" >&5 | |
1794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1795 | ||
1796 | ac_retval=1 | |
1797 | fi | |
d0ac1c44 SM |
1798 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1799 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1800 | |
1801 | } # ac_fn_c_try_compile | |
1802 | ||
1803 | # ac_fn_cxx_try_compile LINENO | |
1804 | # ---------------------------- | |
1805 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1806 | ac_fn_cxx_try_compile () | |
1807 | { | |
1808 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1809 | rm -f conftest.$ac_objext | |
1810 | if { { ac_try="$ac_compile" | |
1811 | case "(($ac_try" in | |
1812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1813 | *) ac_try_echo=$ac_try;; | |
1814 | esac | |
1815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1816 | $as_echo "$ac_try_echo"; } >&5 | |
1817 | (eval "$ac_compile") 2>conftest.err | |
1818 | ac_status=$? | |
1819 | if test -s conftest.err; then | |
1820 | grep -v '^ *+' conftest.err >conftest.er1 | |
1821 | cat conftest.er1 >&5 | |
1822 | mv -f conftest.er1 conftest.err | |
1823 | fi | |
1824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1825 | test $ac_status = 0; } && { | |
1826 | test -z "$ac_cxx_werror_flag" || | |
1827 | test ! -s conftest.err | |
1828 | } && test -s conftest.$ac_objext; then : | |
1829 | ac_retval=0 | |
1830 | else | |
1831 | $as_echo "$as_me: failed program was:" >&5 | |
1832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1833 | ||
1834 | ac_retval=1 | |
1835 | fi | |
d0ac1c44 SM |
1836 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1837 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1838 | |
1839 | } # ac_fn_cxx_try_compile | |
1840 | ||
b3676d82 EB |
1841 | # ac_fn_cxx_try_link LINENO |
1842 | # ------------------------- | |
1843 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1844 | ac_fn_cxx_try_link () | |
1845 | { | |
1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1848 | if { { ac_try="$ac_link" | |
1849 | case "(($ac_try" in | |
1850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1851 | *) ac_try_echo=$ac_try;; | |
1852 | esac | |
1853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1854 | $as_echo "$ac_try_echo"; } >&5 | |
1855 | (eval "$ac_link") 2>conftest.err | |
1856 | ac_status=$? | |
1857 | if test -s conftest.err; then | |
1858 | grep -v '^ *+' conftest.err >conftest.er1 | |
1859 | cat conftest.er1 >&5 | |
1860 | mv -f conftest.er1 conftest.err | |
1861 | fi | |
1862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1863 | test $ac_status = 0; } && { | |
1864 | test -z "$ac_cxx_werror_flag" || | |
1865 | test ! -s conftest.err | |
1866 | } && test -s conftest$ac_exeext && { | |
1867 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1868 | test -x conftest$ac_exeext |
b3676d82 EB |
1869 | }; then : |
1870 | ac_retval=0 | |
1871 | else | |
1872 | $as_echo "$as_me: failed program was:" >&5 | |
1873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1874 | ||
1875 | ac_retval=1 | |
1876 | fi | |
1877 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1878 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1879 | # interfere with the next link command; also delete a directory that is | |
1880 | # left behind by Apple's compiler. We do this before executing the actions. | |
1881 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1883 | as_fn_set_status $ac_retval | |
b3676d82 EB |
1884 | |
1885 | } # ac_fn_cxx_try_link | |
1886 | ||
81ecdfbb RW |
1887 | # ac_fn_c_try_link LINENO |
1888 | # ----------------------- | |
1889 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1890 | ac_fn_c_try_link () | |
1891 | { | |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1894 | if { { ac_try="$ac_link" | |
1895 | case "(($ac_try" in | |
1896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1897 | *) ac_try_echo=$ac_try;; | |
1898 | esac | |
1899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1900 | $as_echo "$ac_try_echo"; } >&5 | |
1901 | (eval "$ac_link") 2>conftest.err | |
1902 | ac_status=$? | |
1903 | if test -s conftest.err; then | |
1904 | grep -v '^ *+' conftest.err >conftest.er1 | |
1905 | cat conftest.er1 >&5 | |
1906 | mv -f conftest.er1 conftest.err | |
1907 | fi | |
1908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1909 | test $ac_status = 0; } && { | |
1910 | test -z "$ac_c_werror_flag" || | |
1911 | test ! -s conftest.err | |
1912 | } && test -s conftest$ac_exeext && { | |
1913 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1914 | test -x conftest$ac_exeext |
81ecdfbb RW |
1915 | }; then : |
1916 | ac_retval=0 | |
1917 | else | |
1918 | $as_echo "$as_me: failed program was:" >&5 | |
1919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1920 | ||
1921 | ac_retval=1 | |
1922 | fi | |
1923 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1924 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1925 | # interfere with the next link command; also delete a directory that is | |
1926 | # left behind by Apple's compiler. We do this before executing the actions. | |
1927 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1928 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1929 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1930 | |
1931 | } # ac_fn_c_try_link | |
1932 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1933 | This file contains any messages produced by compilers while |
1934 | running configure, to aid debugging if configure makes a mistake. | |
1935 | ||
1936 | It was created by $as_me, which was | |
d0ac1c44 | 1937 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
1938 | |
1939 | $ $0 $@ | |
1940 | ||
1941 | _ACEOF | |
81ecdfbb | 1942 | exec 5>>config.log |
c6b750e1 DJ |
1943 | { |
1944 | cat <<_ASUNAME | |
1945 | ## --------- ## | |
1946 | ## Platform. ## | |
1947 | ## --------- ## | |
1948 | ||
1949 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1950 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1951 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1952 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1953 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1954 | ||
1955 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1956 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1957 | ||
1958 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1959 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1960 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1961 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1962 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1963 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1964 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1965 | ||
1966 | _ASUNAME | |
1967 | ||
1968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1969 | for as_dir in $PATH | |
1970 | do | |
1971 | IFS=$as_save_IFS | |
1972 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1973 | $as_echo "PATH: $as_dir" |
1974 | done | |
1975 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1976 | |
1977 | } >&5 | |
1978 | ||
1979 | cat >&5 <<_ACEOF | |
1980 | ||
1981 | ||
1982 | ## ----------- ## | |
1983 | ## Core tests. ## | |
1984 | ## ----------- ## | |
1985 | ||
1986 | _ACEOF | |
1987 | ||
1988 | ||
1989 | # Keep a trace of the command line. | |
1990 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1991 | # Strip out --silent because we don't want to record it for future runs. | |
1992 | # Also quote any args containing shell meta-characters. | |
1993 | # Make two passes to allow for proper duplicate-argument suppression. | |
1994 | ac_configure_args= | |
1995 | ac_configure_args0= | |
1996 | ac_configure_args1= | |
c6b750e1 DJ |
1997 | ac_must_keep_next=false |
1998 | for ac_pass in 1 2 | |
1999 | do | |
2000 | for ac_arg | |
2001 | do | |
2002 | case $ac_arg in | |
2003 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2005 | | -silent | --silent | --silen | --sile | --sil) | |
2006 | continue ;; | |
81ecdfbb RW |
2007 | *\'*) |
2008 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
2009 | esac |
2010 | case $ac_pass in | |
81ecdfbb | 2011 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 2012 | 2) |
81ecdfbb | 2013 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
2014 | if test $ac_must_keep_next = true; then |
2015 | ac_must_keep_next=false # Got value, back to normal. | |
2016 | else | |
2017 | case $ac_arg in | |
2018 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2019 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2020 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2021 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2022 | case "$ac_configure_args0 " in | |
2023 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2024 | esac | |
2025 | ;; | |
2026 | -* ) ac_must_keep_next=true ;; | |
2027 | esac | |
2028 | fi | |
81ecdfbb | 2029 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2030 | ;; |
2031 | esac | |
2032 | done | |
2033 | done | |
81ecdfbb RW |
2034 | { ac_configure_args0=; unset ac_configure_args0;} |
2035 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2036 | |
2037 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2038 | # config.log. We remove comments because anyway the quotes in there | |
2039 | # would cause problems or look ugly. | |
81ecdfbb RW |
2040 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2041 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2042 | trap 'exit_status=$? |
2043 | # Save into config.log some information that might help in debugging. | |
2044 | { | |
2045 | echo | |
2046 | ||
d0ac1c44 | 2047 | $as_echo "## ---------------- ## |
c6b750e1 | 2048 | ## Cache variables. ## |
d0ac1c44 | 2049 | ## ---------------- ##" |
c6b750e1 DJ |
2050 | echo |
2051 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2052 | ( |
2053 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2054 | eval ac_val=\$$ac_var | |
2055 | case $ac_val in #( | |
2056 | *${as_nl}*) | |
2057 | case $ac_var in #( | |
2058 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2059 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2060 | esac | |
2061 | case $ac_var in #( | |
2062 | _ | IFS | as_nl) ;; #( | |
2063 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2064 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2065 | esac ;; | |
2066 | esac | |
2067 | done | |
c6b750e1 | 2068 | (set) 2>&1 | |
81ecdfbb RW |
2069 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2070 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2071 | sed -n \ |
81ecdfbb RW |
2072 | "s/'\''/'\''\\\\'\'''\''/g; |
2073 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2074 | ;; #( | |
c6b750e1 | 2075 | *) |
81ecdfbb | 2076 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2077 | ;; |
81ecdfbb RW |
2078 | esac | |
2079 | sort | |
2080 | ) | |
c6b750e1 DJ |
2081 | echo |
2082 | ||
d0ac1c44 | 2083 | $as_echo "## ----------------- ## |
c6b750e1 | 2084 | ## Output variables. ## |
d0ac1c44 | 2085 | ## ----------------- ##" |
c6b750e1 DJ |
2086 | echo |
2087 | for ac_var in $ac_subst_vars | |
2088 | do | |
81ecdfbb RW |
2089 | eval ac_val=\$$ac_var |
2090 | case $ac_val in | |
2091 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2092 | esac | |
2093 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2094 | done | sort |
2095 | echo | |
2096 | ||
2097 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2098 | $as_echo "## ------------------- ## |
81ecdfbb | 2099 | ## File substitutions. ## |
d0ac1c44 | 2100 | ## ------------------- ##" |
c6b750e1 DJ |
2101 | echo |
2102 | for ac_var in $ac_subst_files | |
2103 | do | |
81ecdfbb RW |
2104 | eval ac_val=\$$ac_var |
2105 | case $ac_val in | |
2106 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2107 | esac | |
2108 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2109 | done | sort |
2110 | echo | |
2111 | fi | |
2112 | ||
2113 | if test -s confdefs.h; then | |
d0ac1c44 | 2114 | $as_echo "## ----------- ## |
c6b750e1 | 2115 | ## confdefs.h. ## |
d0ac1c44 | 2116 | ## ----------- ##" |
c6b750e1 | 2117 | echo |
81ecdfbb | 2118 | cat confdefs.h |
c6b750e1 DJ |
2119 | echo |
2120 | fi | |
2121 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2122 | $as_echo "$as_me: caught signal $ac_signal" |
2123 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2124 | } >&5 |
81ecdfbb RW |
2125 | rm -f core *.core core.conftest.* && |
2126 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2127 | exit $exit_status |
81ecdfbb | 2128 | ' 0 |
c6b750e1 | 2129 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2130 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2131 | done |
2132 | ac_signal=0 | |
2133 | ||
2134 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2135 | rm -f -r conftest* confdefs.h |
2136 | ||
2137 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2138 | |
2139 | # Predefined preprocessor variables. | |
2140 | ||
2141 | cat >>confdefs.h <<_ACEOF | |
2142 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2143 | _ACEOF | |
2144 | ||
c6b750e1 DJ |
2145 | cat >>confdefs.h <<_ACEOF |
2146 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2147 | _ACEOF | |
2148 | ||
c6b750e1 DJ |
2149 | cat >>confdefs.h <<_ACEOF |
2150 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2151 | _ACEOF | |
2152 | ||
c6b750e1 DJ |
2153 | cat >>confdefs.h <<_ACEOF |
2154 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2155 | _ACEOF | |
2156 | ||
c6b750e1 DJ |
2157 | cat >>confdefs.h <<_ACEOF |
2158 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2159 | _ACEOF | |
2160 | ||
81ecdfbb RW |
2161 | cat >>confdefs.h <<_ACEOF |
2162 | #define PACKAGE_URL "$PACKAGE_URL" | |
2163 | _ACEOF | |
2164 | ||
c6b750e1 DJ |
2165 | |
2166 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2167 | # Prefer an explicitly selected file to automatically selected ones. |
2168 | ac_site_file1=NONE | |
2169 | ac_site_file2=NONE | |
2170 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2171 | # We do not want a PATH search for config.site. |
2172 | case $CONFIG_SITE in #(( | |
2173 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2174 | */*) ac_site_file1=$CONFIG_SITE;; | |
2175 | *) ac_site_file1=./$CONFIG_SITE;; | |
2176 | esac | |
81ecdfbb RW |
2177 | elif test "x$prefix" != xNONE; then |
2178 | ac_site_file1=$prefix/share/config.site | |
2179 | ac_site_file2=$prefix/etc/config.site | |
2180 | else | |
2181 | ac_site_file1=$ac_default_prefix/share/config.site | |
2182 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2183 | fi |
81ecdfbb RW |
2184 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2185 | do | |
2186 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2187 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2189 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2190 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2191 | . "$ac_site_file" \ |
2192 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2194 | as_fn_error $? "failed to load site script $ac_site_file | |
2195 | See \`config.log' for more details" "$LINENO" 5; } | |
a0da8069 NN |
2196 | fi |
2197 | done | |
2198 | ||
2199 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2200 | # Some versions of bash will fail to source /dev/null (special files |
2201 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2202 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2204 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2205 | case $cache_file in |
81ecdfbb RW |
2206 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2207 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2208 | esac |
2209 | fi | |
a0da8069 | 2210 | else |
81ecdfbb RW |
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2212 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2213 | >$cache_file |
2214 | fi | |
2215 | ||
2216 | # Check that the precious variables saved in the cache have kept the same | |
2217 | # value. | |
2218 | ac_cache_corrupted=false | |
81ecdfbb | 2219 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2220 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2221 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2222 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2223 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2224 | case $ac_old_set,$ac_new_set in |
2225 | set,) | |
81ecdfbb RW |
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2227 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2228 | ac_cache_corrupted=: ;; |
2229 | ,set) | |
81ecdfbb RW |
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2231 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2232 | ac_cache_corrupted=: ;; |
2233 | ,);; | |
2234 | *) | |
2235 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2236 | # differences in whitespace do not lead to failure. |
2237 | ac_old_val_w=`echo x $ac_old_val` | |
2238 | ac_new_val_w=`echo x $ac_new_val` | |
2239 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2241 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2242 | ac_cache_corrupted=: | |
2243 | else | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2245 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2246 | eval $ac_var=\$ac_old_val | |
2247 | fi | |
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2249 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2251 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2252 | fi;; |
2253 | esac | |
2254 | # Pass precious variables to config.status. | |
2255 | if test "$ac_new_set" = set; then | |
2256 | case $ac_new_val in | |
81ecdfbb | 2257 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2258 | *) ac_arg=$ac_var=$ac_new_val ;; |
2259 | esac | |
2260 | case " $ac_configure_args " in | |
2261 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2262 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2263 | esac |
2264 | fi | |
2265 | done | |
2266 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2270 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2271 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
a0da8069 | 2272 | fi |
81ecdfbb RW |
2273 | ## -------------------- ## |
2274 | ## Main body of script. ## | |
2275 | ## -------------------- ## | |
a0da8069 NN |
2276 | |
2277 | ac_ext=c | |
a0da8069 | 2278 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2282 | ||
2283 | ||
2284 | ||
2285 | ||
c6b750e1 DJ |
2286 | |
2287 | ||
34a0f3cf | 2288 | |
c6b750e1 | 2289 | |
5b553f7e RW |
2290 | progname=$0 |
2291 | # if PWD already has a value, it is probably wrong. | |
2292 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2293 | ||
2294 | # Export original configure arguments for use by sub-configures. | |
2295 | # Quote arguments with shell meta charatcers. | |
2296 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2297 | set -- "$progname" "$@" | |
2298 | for ac_arg | |
2299 | do | |
2300 | case "$ac_arg" in | |
2301 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2302 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2303 | # if the argument is of the form -foo=baz, quote the baz part only | |
2304 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2305 | *) ;; | |
2306 | esac | |
2307 | # Add the quoted argument to the list. | |
2308 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2309 | done | |
2310 | if test "$silent" = yes; then | |
2311 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2312 | fi | |
2313 | # Remove the initial space we just introduced and, as these will be | |
2314 | # expanded by make, quote '$'. | |
2315 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2316 | ||
c6b750e1 DJ |
2317 | |
2318 | # Find the build, host, and target systems. | |
a0da8069 | 2319 | ac_aux_dir= |
81ecdfbb | 2320 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2321 | if test -f "$ac_dir/install-sh"; then |
2322 | ac_aux_dir=$ac_dir | |
2323 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2324 | break | |
2325 | elif test -f "$ac_dir/install.sh"; then | |
2326 | ac_aux_dir=$ac_dir | |
2327 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2328 | break | |
2329 | elif test -f "$ac_dir/shtool"; then | |
2330 | ac_aux_dir=$ac_dir | |
2331 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2332 | break | |
2333 | fi | |
a0da8069 NN |
2334 | done |
2335 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2336 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2337 | fi |
81ecdfbb RW |
2338 | |
2339 | # These three variables are undocumented and unsupported, | |
2340 | # and are intended to be withdrawn in a future Autoconf release. | |
2341 | # They can cause serious problems if a builder's source tree is in a directory | |
2342 | # whose full name contains unusual characters. | |
2343 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2344 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2345 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2346 | ||
a0da8069 | 2347 | |
c6b750e1 | 2348 | # Make sure we can run config.sub. |
81ecdfbb | 2349 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2350 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2351 | |
2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2353 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2354 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2355 | $as_echo_n "(cached) " >&6 |
2356 | else | |
2357 | ac_build_alias=$build_alias | |
2358 | test "x$ac_build_alias" = x && | |
2359 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2360 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2361 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2362 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2363 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2364 | |
2365 | fi | |
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2367 | $as_echo "$ac_cv_build" >&6; } | |
2368 | case $ac_cv_build in | |
2369 | *-*-*) ;; | |
d0ac1c44 | 2370 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2371 | esac |
c6b750e1 | 2372 | build=$ac_cv_build |
81ecdfbb RW |
2373 | ac_save_IFS=$IFS; IFS='-' |
2374 | set x $ac_cv_build | |
2375 | shift | |
2376 | build_cpu=$1 | |
2377 | build_vendor=$2 | |
2378 | shift; shift | |
2379 | # Remember, the first character of IFS is used to create $*, | |
2380 | # except with old shells: | |
2381 | build_os=$* | |
2382 | IFS=$ac_save_IFS | |
2383 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2384 | |
a0da8069 | 2385 | |
c6b750e1 DJ |
2386 | case ${build_alias} in |
2387 | "") build_noncanonical=${build} ;; | |
2388 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2389 | esac |
2390 | ||
2391 | ||
cac3d6c4 | 2392 | |
c6b750e1 DJ |
2393 | case ${host_alias} in |
2394 | "") host_noncanonical=${build_noncanonical} ;; | |
2395 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2396 | esac |
2397 | ||
cac3d6c4 | 2398 | |
c6b750e1 DJ |
2399 | |
2400 | case ${target_alias} in | |
2401 | "") target_noncanonical=${host_noncanonical} ;; | |
2402 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2403 | esac |
2404 | ||
cac3d6c4 | 2405 | |
c6b750e1 DJ |
2406 | |
2407 | ||
2408 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2409 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2410 | NONENONEs,x,x, && | |
c6b750e1 | 2411 | program_transform_name=s,y,y, |
cac3d6c4 | 2412 | |
81ecdfbb RW |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2414 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2415 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2416 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 2417 | else |
81ecdfbb RW |
2418 | if test "x$host_alias" = x; then |
2419 | ac_cv_host=$ac_cv_build | |
2420 | else | |
2421 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2422 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2423 | fi |
c6b750e1 DJ |
2424 | |
2425 | fi | |
81ecdfbb RW |
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2427 | $as_echo "$ac_cv_host" >&6; } | |
2428 | case $ac_cv_host in | |
2429 | *-*-*) ;; | |
d0ac1c44 | 2430 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2431 | esac |
c6b750e1 | 2432 | host=$ac_cv_host |
81ecdfbb RW |
2433 | ac_save_IFS=$IFS; IFS='-' |
2434 | set x $ac_cv_host | |
2435 | shift | |
2436 | host_cpu=$1 | |
2437 | host_vendor=$2 | |
2438 | shift; shift | |
2439 | # Remember, the first character of IFS is used to create $*, | |
2440 | # except with old shells: | |
2441 | host_os=$* | |
2442 | IFS=$ac_save_IFS | |
2443 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2444 | |
2445 | ||
81ecdfbb RW |
2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2447 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2448 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2449 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 2450 | else |
81ecdfbb RW |
2451 | if test "x$target_alias" = x; then |
2452 | ac_cv_target=$ac_cv_host | |
2453 | else | |
2454 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2455 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2456 | fi |
c6b750e1 | 2457 | |
cac3d6c4 | 2458 | fi |
81ecdfbb RW |
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2460 | $as_echo "$ac_cv_target" >&6; } | |
2461 | case $ac_cv_target in | |
2462 | *-*-*) ;; | |
d0ac1c44 | 2463 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2464 | esac |
c6b750e1 | 2465 | target=$ac_cv_target |
81ecdfbb RW |
2466 | ac_save_IFS=$IFS; IFS='-' |
2467 | set x $ac_cv_target | |
2468 | shift | |
2469 | target_cpu=$1 | |
2470 | target_vendor=$2 | |
2471 | shift; shift | |
2472 | # Remember, the first character of IFS is used to create $*, | |
2473 | # except with old shells: | |
2474 | target_os=$* | |
2475 | IFS=$ac_save_IFS | |
2476 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2477 | |
2478 | ||
2479 | # The aliases save the names the user supplied, while $host etc. | |
2480 | # will get canonicalized. | |
2481 | test -n "$target_alias" && | |
2482 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2483 | NONENONEs,x,x, && | |
2484 | program_prefix=${target_alias}- | |
81ecdfbb | 2485 | |
a0da8069 | 2486 | test "$program_prefix" != NONE && |
81ecdfbb | 2487 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2488 | # Use a double $ so make ignores it. |
2489 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2490 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2491 | # Double any \ or $. | |
c6b750e1 | 2492 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2493 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2494 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2495 | |
a0da8069 NN |
2496 | |
2497 | ||
e5c3f801 NN |
2498 | # Get 'install' or 'install-sh' and its variants. |
2499 | # Find a good install program. We prefer a C program (faster), | |
2500 | # so one script is as good as another. But avoid the broken or | |
2501 | # incompatible versions: | |
2502 | # SysV /etc/install, /usr/sbin/install | |
2503 | # SunOS /usr/etc/install | |
2504 | # IRIX /sbin/install | |
2505 | # AIX /bin/install | |
c6b750e1 | 2506 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2507 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2508 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2509 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2510 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2511 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2512 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2514 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2515 | if test -z "$INSTALL"; then |
d0ac1c44 | 2516 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2517 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
2518 | else |
2519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2520 | for as_dir in $PATH | |
2521 | do | |
2522 | IFS=$as_save_IFS | |
2523 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2524 | # Account for people who put trailing slashes in PATH elements. |
2525 | case $as_dir/ in #(( | |
2526 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2527 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2528 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2529 | /usr/ucb/* ) ;; |
2530 | *) | |
2531 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2532 | # Don't use installbsd from OSF since it installs stuff as root | |
2533 | # by default. | |
2534 | for ac_prog in ginstall scoinst install; do | |
2535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2536 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
e5c3f801 | 2537 | if test $ac_prog = install && |
c6b750e1 | 2538 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2539 | # AIX install. It has an incompatible calling convention. |
2540 | : | |
c6b750e1 DJ |
2541 | elif test $ac_prog = install && |
2542 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2543 | # program-specific install script used by HP pwplus--don't use. | |
2544 | : | |
e5c3f801 | 2545 | else |
58c85be7 RW |
2546 | rm -rf conftest.one conftest.two conftest.dir |
2547 | echo one > conftest.one | |
2548 | echo two > conftest.two | |
2549 | mkdir conftest.dir | |
2550 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2551 | test -s conftest.one && test -s conftest.two && | |
2552 | test -s conftest.dir/conftest.one && | |
2553 | test -s conftest.dir/conftest.two | |
2554 | then | |
2555 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2556 | break 3 | |
2557 | fi | |
e5c3f801 NN |
2558 | fi |
2559 | fi | |
2560 | done | |
c6b750e1 DJ |
2561 | done |
2562 | ;; | |
2563 | esac | |
81ecdfbb RW |
2564 | |
2565 | done | |
2566 | IFS=$as_save_IFS | |
c6b750e1 | 2567 | |
58c85be7 | 2568 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2569 | |
2570 | fi | |
2571 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2572 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2573 | else |
58c85be7 RW |
2574 | # As a last resort, use the slow shell script. Don't cache a |
2575 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2576 | # break other packages using the cache if that directory is |
58c85be7 | 2577 | # removed, or if the value is a relative name. |
c6b750e1 | 2578 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2579 | fi |
2580 | fi | |
81ecdfbb RW |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2582 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2583 | |
2584 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2585 | # It thinks the first close brace ends the variable substitution. | |
2586 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2587 | ||
c6b750e1 | 2588 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2589 | |
2590 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2591 | ||
81ecdfbb RW |
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2593 | $as_echo_n "checking whether ln works... " >&6; } | |
d0ac1c44 | 2594 | if ${acx_cv_prog_LN+:} false; then : |
81ecdfbb | 2595 | $as_echo_n "(cached) " >&6 |
656fdd47 PB |
2596 | else |
2597 | rm -f conftestdata_t | |
2598 | echo >conftestdata_f | |
2599 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2600 | then | |
2601 | acx_cv_prog_LN=ln | |
2602 | else | |
2603 | acx_cv_prog_LN=no | |
2604 | fi | |
2605 | rm -f conftestdata_f conftestdata_t | |
2606 | ||
2607 | fi | |
2608 | if test $acx_cv_prog_LN = no; then | |
2609 | LN="cp" | |
81ecdfbb RW |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2611 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2612 | else |
2613 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2615 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2616 | fi |
2617 | ||
81ecdfbb RW |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2619 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2620 | LN_S=$as_ln_s |
2621 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2623 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2624 | else |
81ecdfbb RW |
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2626 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2627 | fi |
2628 | ||
8e957354 PB |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2630 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 2631 | if ${ac_cv_path_SED+:} false; then : |
8e957354 PB |
2632 | $as_echo_n "(cached) " >&6 |
2633 | else | |
2634 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2635 | for ac_i in 1 2 3 4 5 6 7; do | |
2636 | ac_script="$ac_script$as_nl$ac_script" | |
2637 | done | |
2638 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2639 | { ac_script=; unset ac_script;} | |
2640 | if test -z "$SED"; then | |
2641 | ac_path_SED_found=false | |
2642 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2644 | for as_dir in $PATH | |
2645 | do | |
2646 | IFS=$as_save_IFS | |
2647 | test -z "$as_dir" && as_dir=. | |
2648 | for ac_prog in sed gsed; do | |
2649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2650 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 2651 | as_fn_executable_p "$ac_path_SED" || continue |
8e957354 PB |
2652 | # Check for GNU ac_path_SED and select it if it is found. |
2653 | # Check for GNU $ac_path_SED | |
2654 | case `"$ac_path_SED" --version 2>&1` in | |
2655 | *GNU*) | |
2656 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2657 | *) | |
2658 | ac_count=0 | |
2659 | $as_echo_n 0123456789 >"conftest.in" | |
2660 | while : | |
2661 | do | |
2662 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2663 | mv "conftest.tmp" "conftest.in" | |
2664 | cp "conftest.in" "conftest.nl" | |
2665 | $as_echo '' >> "conftest.nl" | |
2666 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2667 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2668 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2669 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2670 | # Best one so far, save it but keep looking for a better one | |
2671 | ac_cv_path_SED="$ac_path_SED" | |
2672 | ac_path_SED_max=$ac_count | |
2673 | fi | |
2674 | # 10*(2^10) chars as input seems more than enough | |
2675 | test $ac_count -gt 10 && break | |
2676 | done | |
2677 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2678 | esac | |
2679 | ||
2680 | $ac_path_SED_found && break 3 | |
2681 | done | |
2682 | done | |
2683 | done | |
2684 | IFS=$as_save_IFS | |
2685 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 2686 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8e957354 PB |
2687 | fi |
2688 | else | |
2689 | ac_cv_path_SED=$SED | |
2690 | fi | |
2691 | ||
2692 | fi | |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2694 | $as_echo "$ac_cv_path_SED" >&6; } | |
2695 | SED="$ac_cv_path_SED" | |
2696 | rm -f conftest.sed | |
2697 | ||
2698 | for ac_prog in gawk mawk nawk awk | |
2699 | do | |
2700 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2701 | set dummy $ac_prog; ac_word=$2 | |
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2703 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2704 | if ${ac_cv_prog_AWK+:} false; then : |
8e957354 PB |
2705 | $as_echo_n "(cached) " >&6 |
2706 | else | |
2707 | if test -n "$AWK"; then | |
2708 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2709 | else | |
2710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2711 | for as_dir in $PATH | |
2712 | do | |
2713 | IFS=$as_save_IFS | |
2714 | test -z "$as_dir" && as_dir=. | |
2715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8e957354 PB |
2717 | ac_cv_prog_AWK="$ac_prog" |
2718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2719 | break 2 | |
2720 | fi | |
2721 | done | |
2722 | done | |
2723 | IFS=$as_save_IFS | |
2724 | ||
2725 | fi | |
2726 | fi | |
2727 | AWK=$ac_cv_prog_AWK | |
2728 | if test -n "$AWK"; then | |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2730 | $as_echo "$AWK" >&6; } | |
2731 | else | |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2733 | $as_echo "no" >&6; } | |
2734 | fi | |
2735 | ||
2736 | ||
2737 | test -n "$AWK" && break | |
2738 | done | |
2739 | ||
e5c3f801 | 2740 | |
0fdbe983 DJ |
2741 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2742 | ||
2743 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2744 | # a relative path. | |
2745 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2746 | INSTALL="${srcpwd}/install-sh -c" | |
2747 | fi | |
2748 | ||
a0da8069 NN |
2749 | # Set srcdir to "." if that's what it is. |
2750 | # This is important for multilib support. | |
2751 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2752 | if test "${pwd}" = "${srcpwd}" ; then |
2753 | srcdir=. | |
252b5132 RH |
2754 | fi |
2755 | ||
a0da8069 | 2756 | topsrcdir=$srcpwd |
252b5132 | 2757 | |
a0da8069 | 2758 | extra_host_args= |
afefada0 | 2759 | |
a0da8069 NN |
2760 | ### To add a new directory to the tree, first choose whether it is a target |
2761 | ### or a host dependent tool. Then put it into the appropriate list | |
2762 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2763 | |
c6b750e1 | 2764 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2765 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2766 | |
c6b750e1 DJ |
2767 | # Dependency sorting is only needed when *configuration* must be done in |
2768 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2769 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2770 | |
a0da8069 NN |
2771 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2772 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2773 | |
6a9cf61e PB |
2774 | # these library is used by various programs built for the build |
2775 | # environment | |
2776 | # | |
1b6c0831 | 2777 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2778 | |
2779 | # these tools are built for the build environment | |
a90ef4bf | 2780 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2781 | |
a0da8069 | 2782 | # these libraries are used by various programs built for the host environment |
1b6c0831 | 2783 | #f |
0e65dfba | 2784 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
a0da8069 | 2785 | |
a0da8069 NN |
2786 | # these tools are built for the host environment |
2787 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2788 | # know that we are building the simulator. | |
2789 | # binutils, gas and ld appear in that order because it makes sense to run | |
2790 | # "make check" in that particular order. | |
e6de499b | 2791 | # If --enable-gold is used, "gold" may replace "ld". |
1b6c0831 | 2792 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
a0da8069 | 2793 | |
a0da8069 NN |
2794 | # these libraries are built for the target environment, and are built after |
2795 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2796 | # Note that libiberty is not a target library. |
b1299c4e | 2797 | target_libraries="target-libgcc \ |
2bf680c4 | 2798 | target-libbacktrace \ |
a0da8069 NN |
2799 | target-libgloss \ |
2800 | target-newlib \ | |
cff87f51 | 2801 | target-libgomp \ |
1b6c0831 | 2802 | target-liboffloadmic \ |
bf41f30d | 2803 | target-libhsail-rt \ |
7ec59b9e | 2804 | target-libatomic \ |
d32e2926 | 2805 | target-libitm \ |
b9459e83 | 2806 | target-libstdc++-v3 \ |
5286fdef | 2807 | target-libsanitizer \ |
95e43135 | 2808 | target-libvtv \ |
bb780410 | 2809 | target-libssp \ |
e552509b | 2810 | target-libquadmath \ |
4b1cb4fe | 2811 | target-libgfortran \ |
05a13254 | 2812 | target-libffi \ |
a2592b1b | 2813 | target-libobjc \ |
e552509b | 2814 | target-libada \ |
f948b2de NC |
2815 | target-libgo \ |
2816 | target-libphobos \ | |
2817 | target-zlib" | |
a0da8069 | 2818 | |
9c14acb8 NN |
2819 | # these tools are built using the target libraries, and are intended to |
2820 | # run only in the target environment | |
a0da8069 | 2821 | # |
9c14acb8 | 2822 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2823 | # list belongs in this list. |
a0da8069 | 2824 | # |
a90ef4bf | 2825 | target_tools="target-rda" |
252b5132 | 2826 | |
a0da8069 | 2827 | ################################################################################ |
252b5132 | 2828 | |
a0da8069 NN |
2829 | ## All tools belong in one of the four categories, and are assigned above |
2830 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2831 | ## is important because configure will choke if they ever get through. | |
2832 | ## ${configdirs} is directories we build using the host tools. | |
2833 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2834 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2835 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2836 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2837 | |
9cc8ae67 PB |
2838 | |
2839 | ||
a0da8069 | 2840 | ################################################################################ |
252b5132 | 2841 | |
a0da8069 | 2842 | srcname="gnu development package" |
252b5132 | 2843 | |
a0da8069 NN |
2844 | # This gets set non-empty for some net releases of packages. |
2845 | appdirs="" | |
252b5132 | 2846 | |
a0da8069 NN |
2847 | # Define is_cross_compiler to save on calls to 'test'. |
2848 | is_cross_compiler= | |
2849 | if test x"${host}" = x"${target}" ; then | |
2850 | is_cross_compiler=no | |
252b5132 | 2851 | else |
a0da8069 | 2852 | is_cross_compiler=yes |
c6b750e1 | 2853 | fi |
252b5132 | 2854 | |
9175bfc0 | 2855 | # Find the build and target subdir names. |
dd12c3a8 | 2856 | |
66a79c16 DJ |
2857 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2858 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2859 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2860 | # However, they still use the build modules, because the corresponding | |
2861 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2862 | # finishes. So: | |
2863 | # - build_subdir is where we find build modules, and never changes. | |
2864 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2865 | ||
2866 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2867 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2868 | |
81ecdfbb RW |
2869 | # Check whether --with-build-libsubdir was given. |
2870 | if test "${with_build_libsubdir+set}" = set; then : | |
2871 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2872 | else |
2873 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2874 | fi |
2875 | ||
b00612cc PB |
2876 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2877 | if ( test $srcdir = . && test -d gcc ) \ | |
2878 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2879 | host_subdir="host-${host_noncanonical}" | |
2880 | else | |
2881 | host_subdir=. | |
2882 | fi | |
dd12c3a8 NN |
2883 | # No prefix. |
2884 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2885 | |
2fd0b40b RW |
2886 | # Be sure to cover against remnants of an in-tree build. |
2887 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
d0ac1c44 | 2888 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
2fd0b40b RW |
2889 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2890 | fi | |
252b5132 | 2891 | |
a0da8069 NN |
2892 | # Skipdirs are removed silently. |
2893 | skipdirs= | |
2894 | # Noconfigdirs are removed loudly. | |
2895 | noconfigdirs="" | |
252b5132 | 2896 | |
a0da8069 NN |
2897 | use_gnu_ld= |
2898 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2899 | if test x$with_gnu_ld = xno ; then | |
2900 | use_gnu_ld=no | |
93f9b408 | 2901 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2902 | fi |
2903 | ||
a0da8069 NN |
2904 | use_gnu_as= |
2905 | # Make sure we don't let GNU as be added if we didn't want it. | |
2906 | if test x$with_gnu_as = xno ; then | |
2907 | use_gnu_as=no | |
2908 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2909 | fi |
2910 | ||
700d40ca | 2911 | use_included_zlib= |
cf39cfc5 L |
2912 | |
2913 | # Check whether --with-system-zlib was given. | |
2914 | if test "${with_system_zlib+set}" = set; then : | |
2915 | withval=$with_system_zlib; | |
2916 | fi | |
2917 | ||
700d40ca ILT |
2918 | # Make sure we don't let ZLIB be added if we didn't want it. |
2919 | if test x$with_system_zlib = xyes ; then | |
2920 | use_included_zlib=no | |
2921 | noconfigdirs="$noconfigdirs zlib" | |
2922 | fi | |
2923 | ||
69961a84 ДП |
2924 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2925 | # is provided. | |
2926 | if test x$with_system_readline = xyes ; then | |
2927 | noconfigdirs="$noconfigdirs readline" | |
2928 | fi | |
2929 | ||
c6b750e1 | 2930 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2931 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2932 | |
a0da8069 NN |
2933 | case ${with_x} in |
2934 | yes | "") ;; # the default value for this tree is that X11 is available | |
2935 | no) | |
675c6968 | 2936 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2937 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2938 | enable_gdbtk=no |
a0da8069 NN |
2939 | ;; |
2940 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2941 | esac | |
252b5132 | 2942 | |
0377a422 | 2943 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2944 | # Remove these if host=target. |
2945 | cross_only="target-libgloss target-newlib target-opcodes" | |
2946 | ||
2947 | case $is_cross_compiler in | |
2948 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2949 | esac |
252b5132 | 2950 | |
a0da8069 NN |
2951 | # If both --with-headers and --with-libs are specified, default to |
2952 | # --without-newlib. | |
32be62b5 RS |
2953 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2954 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2955 | if test x"${with_newlib}" = x ; then |
2956 | with_newlib=no | |
2957 | fi | |
252b5132 RH |
2958 | fi |
2959 | ||
a0da8069 NN |
2960 | # Recognize --with-newlib/--without-newlib. |
2961 | case ${with_newlib} in | |
2962 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2963 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2964 | esac | |
252b5132 | 2965 | |
1b6c0831 L |
2966 | # Check whether --enable-as-accelerator-for was given. |
2967 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2968 | enableval=$enable_as_accelerator_for; | |
2969 | fi | |
2970 | ||
2971 | ||
2972 | # Check whether --enable-offload-targets was given. | |
2973 | if test "${enable_offload_targets+set}" = set; then : | |
2974 | enableval=$enable_offload_targets; | |
2975 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 2976 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
2977 | fi |
2978 | ||
2979 | else | |
2980 | enable_offload_targets= | |
2981 | fi | |
2982 | ||
2983 | ||
c7791212 NC |
2984 | # Handle --enable-gold, --enable-ld. |
2985 | # --disable-gold [--enable-ld] | |
2986 | # Build only ld. Default option. | |
d3b50760 L |
2987 | # --enable-gold [--enable-ld] |
2988 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2989 | # as "ld.bfd" and "ld". | |
2990 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2991 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2992 | # install ld as "ld.bfd". | |
2993 | # --enable-gold[=default] --disable-ld | |
2994 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2995 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2996 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2997 | # and ld.bfd). | |
c7791212 NC |
2998 | # In other words, ld is default |
2999 | # --enable-gold=default --enable-ld=default | |
3000 | # Error. | |
3001 | ||
3002 | default_ld= | |
81ecdfbb RW |
3003 | # Check whether --enable-gold was given. |
3004 | if test "${enable_gold+set}" = set; then : | |
3005 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
3006 | else |
3007 | ENABLE_GOLD=no | |
81ecdfbb RW |
3008 | fi |
3009 | ||
c7791212 NC |
3010 | case "${ENABLE_GOLD}" in |
3011 | yes|default) | |
e6de499b NC |
3012 | # Check for ELF target. |
3013 | is_elf=no | |
3014 | case "${target}" in | |
3015 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 3016 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 3017 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
bf41f30d | 3018 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
3019 | case "${target}" in |
3020 | *-*-linux*aout* | *-*-linux*oldld*) | |
3021 | ;; | |
3022 | *) | |
3023 | is_elf=yes | |
3024 | ;; | |
3025 | esac | |
3026 | esac | |
3027 | ||
3028 | if test "$is_elf" = "yes"; then | |
3029 | # Check for target supported by gold. | |
93f9b408 | 3030 | case "${target}" in |
6d26190c | 3031 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 3032 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
3033 | configdirs="$configdirs gold" |
3034 | if test x${ENABLE_GOLD} = xdefault; then | |
3035 | default_ld=gold | |
3036 | fi | |
e6de499b | 3037 | ENABLE_GOLD=yes |
93f9b408 ILT |
3038 | ;; |
3039 | esac | |
e6de499b NC |
3040 | fi |
3041 | ;; | |
3042 | no) | |
3043 | ;; | |
3044 | *) | |
d0ac1c44 | 3045 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3046 | ;; |
c7791212 NC |
3047 | esac |
3048 | ||
3049 | # Check whether --enable-ld was given. | |
3050 | if test "${enable_ld+set}" = set; then : | |
3051 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3052 | else | |
3053 | ENABLE_LD=yes | |
3054 | fi | |
3055 | ||
3056 | ||
3057 | case "${ENABLE_LD}" in | |
3058 | default) | |
d3b50760 | 3059 | if test x${default_ld} != x; then |
d0ac1c44 | 3060 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3061 | fi |
3062 | ;; | |
3063 | yes) | |
3064 | ;; | |
3065 | no) | |
3066 | if test x${ENABLE_GOLD} != xyes; then | |
3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3068 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3069 | fi | |
3070 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3071 | ;; | |
3072 | *) | |
d0ac1c44 | 3073 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3074 | ;; |
3075 | esac | |
93f9b408 | 3076 | |
edeefb67 L |
3077 | # PR gas/19109 |
3078 | # Decide the default method for compressing debug sections. | |
3079 | # Provide a configure time option to override our default. | |
3080 | # Check whether --enable-compressed_debug_sections was given. | |
3081 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3082 | enableval=$enable_compressed_debug_sections; | |
3083 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3084 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3085 | fi |
3086 | ||
3087 | else | |
3088 | enable_compressed_debug_sections= | |
3089 | fi | |
3090 | ||
3091 | ||
a0da8069 | 3092 | # Configure extra directories which are host specific |
252b5132 | 3093 | |
a0da8069 NN |
3094 | case "${host}" in |
3095 | *-cygwin*) | |
3096 | configdirs="$configdirs libtermcap" ;; | |
3097 | esac | |
252b5132 | 3098 | |
59f7ec45 HPN |
3099 | # A target can indicate whether a language isn't supported for some reason. |
3100 | # Only spaces may be used in this macro; not newlines or tabs. | |
3101 | unsupported_languages= | |
3102 | ||
c6b750e1 | 3103 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3104 | # target this usually means that a port of the program doesn't |
3105 | # exist yet. | |
252b5132 | 3106 | |
a0da8069 | 3107 | case "${host}" in |
3516a403 | 3108 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3109 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3110 | ;; |
a0da8069 | 3111 | esac |
252b5132 | 3112 | |
4b1cb4fe | 3113 | |
89a1e9c3 PB |
3114 | # Check whether --enable-libquadmath was given. |
3115 | if test "${enable_libquadmath+set}" = set; then : | |
3116 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3117 | else | |
3118 | ENABLE_LIBQUADMATH=yes | |
3119 | fi | |
3120 | ||
3121 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3122 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3123 | fi | |
3124 | ||
3125 | ||
3126 | # Check whether --enable-libquadmath-support was given. | |
3127 | if test "${enable_libquadmath_support+set}" = set; then : | |
3128 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3129 | else | |
3130 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3131 | fi | |
3132 | ||
3133 | enable_libquadmath_support= | |
3134 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3135 | enable_libquadmath_support=no | |
3136 | fi | |
3137 | ||
3138 | ||
81ecdfbb RW |
3139 | # Check whether --enable-libada was given. |
3140 | if test "${enable_libada+set}" = set; then : | |
3141 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3142 | else |
3143 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3144 | fi |
3145 | ||
a2592b1b | 3146 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3147 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3148 | fi |
3149 | ||
81ecdfbb RW |
3150 | # Check whether --enable-libssp was given. |
3151 | if test "${enable_libssp+set}" = set; then : | |
3152 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3153 | else |
3154 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3155 | fi |
3156 | ||
5f128533 | 3157 | |
f66a9a70 L |
3158 | # Check whether --enable-libstdcxx was given. |
3159 | if test "${enable_libstdcxx+set}" = set; then : | |
3160 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3161 | else | |
3162 | ENABLE_LIBSTDCXX=default | |
3163 | fi | |
3164 | ||
3165 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3166 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3167 | fi | |
3168 | ||
3169 | # If this is accelerator compiler and its target is intelmic we enable | |
3170 | # target liboffloadmic by default. If this is compiler with offloading | |
3171 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3172 | # liboffloadmic is disabled by default. | |
3173 | # Check whether --enable-liboffloadmic was given. | |
3174 | if test "${enable_liboffloadmic+set}" = set; then : | |
3175 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3176 | no | host | target) | |
3177 | enable_liboffloadmic=$enableval ;; | |
3178 | *) | |
d0ac1c44 | 3179 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3180 | esac |
3181 | else | |
3182 | if test x"$enable_as_accelerator_for" != x; then | |
3183 | case "${target}" in | |
3184 | *-intelmic-* | *-intelmicemul-*) | |
3185 | enable_liboffloadmic=target | |
3186 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3187 | ;; | |
3188 | *) | |
3189 | enable_liboffloadmic=no | |
3190 | ;; | |
3191 | esac | |
3192 | else | |
3193 | case "${enable_offload_targets}" in | |
3194 | *-intelmic-* | *-intelmicemul-*) | |
3195 | enable_liboffloadmic=host | |
3196 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3197 | ;; | |
3198 | *) | |
3199 | enable_liboffloadmic=no | |
3200 | ;; | |
3201 | esac | |
3202 | fi | |
f66a9a70 L |
3203 | fi |
3204 | ||
1b6c0831 L |
3205 | |
3206 | ||
68996839 | 3207 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3208 | if test x$enable_libgomp = x ; then |
b3ded179 | 3209 | case "${target}" in |
29383458 | 3210 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3211 | ;; |
5b806d27 | 3212 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3213 | ;; |
2479f722 | 3214 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3215 | ;; |
3216 | *-*-darwin* | *-*-aix*) | |
3217 | ;; | |
68996839 NC |
3218 | nvptx*-*-*) |
3219 | ;; | |
b3ded179 PB |
3220 | *) |
3221 | noconfigdirs="$noconfigdirs target-libgomp" | |
3222 | ;; | |
3223 | esac | |
a6df5a19 | 3224 | fi |
b3ded179 | 3225 | |
7ec59b9e L |
3226 | # Disable libatomic on unsupported systems. |
3227 | if test -d ${srcdir}/libatomic; then | |
3228 | if test x$enable_libatomic = x; then | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3230 | $as_echo_n "checking for libatomic support... " >&6; } | |
3231 | if (srcdir=${srcdir}/libatomic; \ | |
3232 | . ${srcdir}/configure.tgt; \ | |
3233 | test -n "$UNSUPPORTED") | |
3234 | then | |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3236 | $as_echo "no" >&6; } | |
3237 | noconfigdirs="$noconfigdirs target-libatomic" | |
3238 | else | |
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3240 | $as_echo "yes" >&6; } | |
3241 | fi | |
3242 | fi | |
3243 | fi | |
3244 | ||
1b6c0831 L |
3245 | # Disable liboffloadmic on unsupported systems. |
3246 | if test -d ${srcdir}/liboffloadmic; then | |
3247 | if test x$enable_liboffloadmic != xno; then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3249 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3250 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3251 | . ${srcdir}/configure.tgt; \ | |
3252 | test -n "$UNSUPPORTED") | |
3253 | then | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3255 | $as_echo "no" >&6; } | |
3256 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3257 | else | |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3259 | $as_echo "yes" >&6; } | |
3260 | fi | |
3261 | fi | |
3262 | fi | |
3263 | ||
d32e2926 RH |
3264 | # Disable libitm on unsupported systems. |
3265 | if test -d ${srcdir}/libitm; then | |
3266 | if test x$enable_libitm = x; then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3268 | $as_echo_n "checking for libitm support... " >&6; } | |
3269 | if (srcdir=${srcdir}/libitm; \ | |
3270 | . ${srcdir}/configure.tgt; \ | |
3271 | test -n "$UNSUPPORTED") | |
3272 | then | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3274 | $as_echo "no" >&6; } | |
3275 | noconfigdirs="$noconfigdirs target-libitm" | |
3276 | else | |
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3278 | $as_echo "yes" >&6; } | |
3279 | fi | |
3280 | fi | |
3281 | fi | |
3282 | ||
5286fdef L |
3283 | # Disable libsanitizer on unsupported systems. |
3284 | if test -d ${srcdir}/libsanitizer; then | |
3285 | if test x$enable_libsanitizer = x; then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3287 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libsanitizer; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test -n "$UNSUPPORTED") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3295 | else | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3297 | $as_echo "yes" >&6; } | |
3298 | fi | |
3299 | fi | |
3300 | fi | |
3301 | ||
95e43135 JBG |
3302 | # Disable libvtv on unsupported systems. |
3303 | if test -d ${srcdir}/libvtv; then | |
3304 | if test x$enable_libvtv = x; then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3306 | $as_echo_n "checking for libvtv support... " >&6; } | |
3307 | if (srcdir=${srcdir}/libvtv; \ | |
3308 | . ${srcdir}/configure.tgt; \ | |
3309 | test "$VTV_SUPPORTED" != "yes") | |
3310 | then | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3312 | $as_echo "no" >&6; } | |
3313 | noconfigdirs="$noconfigdirs target-libvtv" | |
3314 | else | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3316 | $as_echo "yes" >&6; } | |
3317 | fi | |
3318 | fi | |
3319 | fi | |
3320 | ||
1b6c0831 | 3321 | |
bf41f30d NC |
3322 | # Disable libhsail-rt on unsupported systems. |
3323 | if test -d ${srcdir}/libhsail-rt; then | |
3324 | if test x$enable_libhsail_rt = x; then | |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3326 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3327 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3328 | . ${srcdir}/configure.tgt; \ | |
3329 | test -n "$UNSUPPORTED") | |
3330 | then | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3332 | $as_echo "no" >&6; } | |
3333 | unsupported_languages="$unsupported_languages brig" | |
3334 | # This implicitly disables also target-libhsail-rt as it won't | |
3335 | # get added to the build without BRIG FE. | |
3336 | else | |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3338 | $as_echo "yes" >&6; } | |
3339 | fi | |
3340 | fi | |
3341 | fi | |
1b6c0831 L |
3342 | |
3343 | ||
1488e230 DE |
3344 | # Disable libquadmath for some systems. |
3345 | case "${target}" in | |
5286fdef L |
3346 | avr-*-*) |
3347 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3348 | ;; | |
1488e230 DE |
3349 | # libquadmath is unused on AIX and libquadmath build process use of |
3350 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3351 | powerpc-*-aix* | rs6000-*-aix*) | |
3352 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3353 | ;; | |
3354 | esac | |
3355 | ||
065a5627 JM |
3356 | # Disable libssp for some systems. |
3357 | case "${target}" in | |
3358 | avr-*-*) | |
c5f5c3c2 | 3359 | # No hosted I/O support. |
065a5627 JM |
3360 | noconfigdirs="$noconfigdirs target-libssp" |
3361 | ;; | |
3362 | powerpc-*-aix* | rs6000-*-aix*) | |
3363 | noconfigdirs="$noconfigdirs target-libssp" | |
3364 | ;; | |
99c513f6 | 3365 | rl78-*-*) |
202e2356 NC |
3366 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3367 | # doesn't fault for those - instead, it gives a build-time error | |
3368 | # for explicit misaligned loads. | |
99c513f6 DD |
3369 | noconfigdirs="$noconfigdirs target-libssp" |
3370 | ;; | |
1b6c0831 L |
3371 | visium-*-*) |
3372 | # No hosted I/O support. | |
3373 | noconfigdirs="$noconfigdirs target-libssp" | |
3374 | ;; | |
065a5627 JM |
3375 | esac |
3376 | ||
065a5627 | 3377 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3378 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3379 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3380 | case "${target}" in | |
3381 | *-*-vxworks*) | |
3382 | # VxWorks uses the Dinkumware C++ library. | |
3383 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3384 | ;; | |
3385 | arm*-wince-pe*) | |
3386 | # the C++ libraries don't build on top of CE's C libraries | |
3387 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3388 | ;; | |
3389 | avr-*-*) | |
3390 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3391 | ;; | |
969b1713 L |
3392 | ft32-*-*) |
3393 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3394 | ;; | |
f66a9a70 L |
3395 | esac |
3396 | fi | |
065a5627 | 3397 | |
f948b2de NC |
3398 | # Disable D on systems where it is known to not work. |
3399 | # For testing, you can override this with --enable-languages=d. | |
3400 | case ,${enable_languages}, in | |
3401 | *,d,*) | |
3402 | ;; | |
3403 | *) | |
3404 | case "${target}" in | |
3405 | *-*-darwin*) | |
3406 | unsupported_languages="$unsupported_languages d" | |
3407 | ;; | |
3408 | esac | |
3409 | ;; | |
3410 | esac | |
3411 | ||
3412 | # Disable libphobos on unsupported systems. | |
3413 | # For testing, you can override this with --enable-libphobos. | |
3414 | if test -d ${srcdir}/libphobos; then | |
3415 | if test x$enable_libphobos = x; then | |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3417 | $as_echo_n "checking for libphobos support... " >&6; } | |
3418 | if (srcdir=${srcdir}/libphobos; \ | |
3419 | . ${srcdir}/configure.tgt; \ | |
3420 | test "$LIBPHOBOS_SUPPORTED" != "yes") | |
3421 | then | |
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3423 | $as_echo "no" >&6; } | |
3424 | noconfigdirs="$noconfigdirs target-libphobos" | |
3425 | else | |
3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3427 | $as_echo "yes" >&6; } | |
3428 | fi | |
3429 | fi | |
3430 | fi | |
3431 | ||
065a5627 JM |
3432 | # Disable Fortran for some systems. |
3433 | case "${target}" in | |
3434 | mmix-*-*) | |
3435 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3436 | unsupported_languages="$unsupported_languages fortran" | |
3437 | ;; | |
3438 | esac | |
3439 | ||
05a13254 | 3440 | # Disable libffi for some systems. |
0827f9a6 | 3441 | case "${target}" in |
9863d716 JM |
3442 | powerpc-*-darwin*) |
3443 | ;; | |
3444 | i[3456789]86-*-darwin*) | |
3445 | ;; | |
3446 | x86_64-*-darwin[912]*) | |
3447 | ;; | |
3448 | *-*-darwin*) | |
05a13254 | 3449 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3450 | ;; |
9863d716 | 3451 | *-*-netware*) |
05a13254 NC |
3452 | noconfigdirs="$noconfigdirs target-libffi" |
3453 | ;; | |
3454 | *-*-phoenix*) | |
3455 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3456 | ;; |
3457 | *-*-rtems*) | |
05a13254 | 3458 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3459 | ;; |
3460 | *-*-tpf*) | |
05a13254 | 3461 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3462 | ;; |
3463 | *-*-uclinux*) | |
05a13254 | 3464 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3465 | ;; |
3466 | *-*-vxworks*) | |
05a13254 NC |
3467 | noconfigdirs="$noconfigdirs target-libffi" |
3468 | ;; | |
3469 | aarch64*-*-freebsd*) | |
3470 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3471 | ;; |
9863d716 | 3472 | alpha*-*-*vms*) |
05a13254 | 3473 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3474 | ;; |
1b6c0831 | 3475 | arm*-*-freebsd*) |
05a13254 | 3476 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3477 | ;; |
0827f9a6 | 3478 | arm-wince-pe) |
05a13254 | 3479 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3480 | ;; |
9863d716 | 3481 | arm*-*-symbianelf*) |
05a13254 | 3482 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3483 | ;; |
9863d716 | 3484 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3485 | case "${target}" in |
3486 | *-*-linux*) | |
3487 | ;; | |
3488 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3489 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3490 | esac |
3491 | ;; | |
82ae827f | 3492 | hppa*64*-*-hpux*) |
05a13254 | 3493 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3494 | ;; |
3495 | hppa*-hp-hpux11*) | |
3496 | ;; | |
82ae827f | 3497 | hppa*-*-hpux*) |
05a13254 | 3498 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3499 | ;; |
9863d716 | 3500 | ia64*-*-*vms*) |
05a13254 | 3501 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3502 | ;; |
9863d716 | 3503 | i[3456789]86-w64-mingw*) |
05a13254 | 3504 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3505 | ;; |
3506 | i[3456789]86-*-mingw*) | |
05a13254 | 3507 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3508 | ;; |
3509 | x86_64-*-mingw*) | |
05a13254 | 3510 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3511 | ;; |
9863d716 | 3512 | mmix-*-*) |
05a13254 | 3513 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3514 | ;; |
3515 | powerpc-*-aix*) | |
9863d716 | 3516 | ;; |
9863d716 | 3517 | rs6000-*-aix*) |
9863d716 | 3518 | ;; |
3f8107ab | 3519 | ft32-*-*) |
05a13254 | 3520 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3521 | ;; |
9863d716 | 3522 | *-*-lynxos*) |
05a13254 | 3523 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3524 | ;; |
9863d716 JM |
3525 | esac |
3526 | ||
1b6c0831 L |
3527 | # Disable the go frontend on systems where it is known to not work. Please keep |
3528 | # this in sync with contrib/config-list.mk. | |
3529 | case "${target}" in | |
bf41f30d | 3530 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
1b6c0831 L |
3531 | unsupported_languages="$unsupported_languages go" |
3532 | ;; | |
3533 | esac | |
3534 | ||
a413f71a ILT |
3535 | # Disable libgo for some systems where it is known to not work. |
3536 | # For testing, you can easily override this with --enable-libgo. | |
3537 | if test x$enable_libgo = x; then | |
3538 | case "${target}" in | |
3539 | *-*-darwin*) | |
3540 | # PR 46986 | |
3541 | noconfigdirs="$noconfigdirs target-libgo" | |
3542 | ;; | |
3543 | *-*-cygwin* | *-*-mingw*) | |
3544 | noconfigdirs="$noconfigdirs target-libgo" | |
3545 | ;; | |
a413f71a ILT |
3546 | esac |
3547 | fi | |
3548 | ||
691bb5a1 DD |
3549 | # Default libgloss CPU subdirectory. |
3550 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3551 | |
ff46fb8f JM |
3552 | case "${target}" in |
3553 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3554 | libgloss_dir=wince | |
3555 | ;; | |
f1dd87fc YZ |
3556 | aarch64*-*-* ) |
3557 | libgloss_dir=aarch64 | |
3558 | ;; | |
ff46fb8f JM |
3559 | arm*-*-*) |
3560 | libgloss_dir=arm | |
3561 | ;; | |
3562 | cris-*-* | crisv32-*-*) | |
3563 | libgloss_dir=cris | |
3564 | ;; | |
3565 | hppa*-*-*) | |
3566 | libgloss_dir=pa | |
3567 | ;; | |
3568 | i[3456789]86-*-*) | |
3569 | libgloss_dir=i386 | |
3570 | ;; | |
3571 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3572 | libgloss_dir=m68hc11 | |
3573 | ;; | |
3574 | m68*-*-* | fido-*-*) | |
3575 | libgloss_dir=m68k | |
3576 | ;; | |
3577 | mips*-*-*) | |
3578 | libgloss_dir=mips | |
3579 | ;; | |
3580 | powerpc*-*-*) | |
3581 | libgloss_dir=rs6000 | |
3582 | ;; | |
3583 | sparc*-*-*) | |
3584 | libgloss_dir=sparc | |
3585 | ;; | |
3586 | esac | |
3587 | ||
c7e4b184 | 3588 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3589 | case "${target}" in |
c7e4b184 JM |
3590 | alpha*-dec-osf*) |
3591 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3592 | ;; | |
3593 | i[3456789]86-*-linux*) | |
3594 | # This section makes it possible to build newlib natively on linux. | |
3595 | # If we are using a cross compiler then don't configure newlib. | |
3596 | if test x${is_cross_compiler} != xno ; then | |
3597 | noconfigdirs="$noconfigdirs target-newlib" | |
3598 | fi | |
3599 | noconfigdirs="$noconfigdirs target-libgloss" | |
3600 | # If we are not using a cross compiler, do configure newlib. | |
3601 | # Note however, that newlib will only be configured in this situation | |
3602 | # if the --with-newlib option has been given, because otherwise | |
3603 | # 'target-newlib' will appear in skipdirs. | |
3604 | ;; | |
3605 | i[3456789]86-*-rdos*) | |
3606 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3607 | ;; | |
3608 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3609 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3610 | ;; | |
3611 | sparc-*-sunos4*) | |
3612 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3613 | ;; | |
3614 | *-*-aix*) | |
3615 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3616 | ;; | |
3617 | *-*-beos*) | |
3618 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3619 | ;; | |
a0da8069 | 3620 | *-*-chorusos) |
b2f14e4a | 3621 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3622 | ;; |
c7e4b184 JM |
3623 | *-*-dragonfly*) |
3624 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3625 | ;; | |
3626 | *-*-freebsd*) | |
3627 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3628 | ;; | |
3629 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3630 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3631 | ;; | |
3632 | *-*-lynxos*) | |
3633 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3634 | ;; | |
3635 | *-*-mingw*) | |
3636 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3637 | ;; | |
3638 | *-*-netbsd*) | |
3639 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3640 | ;; | |
3641 | *-*-netware*) | |
3642 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3643 | ;; | |
3644 | *-*-tpf*) | |
3645 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3646 | ;; | |
3647 | *-*-uclinux*) | |
3648 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3649 | ;; | |
3650 | *-*-vxworks*) | |
3651 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3652 | ;; | |
3653 | esac | |
3654 | ||
90bd5423 NC |
3655 | # Targets that do not use the ELF file format cannot support libctf. |
3656 | case "${target}" in | |
3657 | *-*-pe | *-*-*vms* | *-*-darwin | *-*-*coff* | *-*-wince | *-*-mingw*) | |
3658 | noconfigdirs="$noconfigdirs libctf" | |
3659 | ;; | |
3660 | *-*-aout | *-*-osf* | *-*-go32 | *-*-macos* | *-*-rhapsody*) | |
3661 | noconfigdirs="$noconfigdirs libctf" | |
3662 | ;; | |
3663 | *-*-netbsdpe | *-*-cygwin* | *-*-pep | *-*-msdos | *-*-winnt) | |
3664 | noconfigdirs="$noconfigdirs libctf" | |
3665 | ;; | |
3666 | ns32k-*-* | pdp11-*-* | *-*-aix* | *-*-netbsdaout) | |
3667 | noconfigdirs="$noconfigdirs libctf" | |
3668 | ;; | |
3669 | esac | |
3670 | ||
c7e4b184 JM |
3671 | case "${target}" in |
3672 | *-*-chorusos) | |
3673 | ;; | |
f075eb5e TG |
3674 | aarch64-*-darwin*) |
3675 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3676 | noconfigdirs="$noconfigdirs sim target-rda" | |
3677 | ;; | |
f948b2de NC |
3678 | amdgcn*-*-*) |
3679 | ;; | |
f075eb5e TG |
3680 | arm-*-darwin*) |
3681 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3682 | noconfigdirs="$noconfigdirs sim target-rda" | |
3683 | ;; | |
24741ab2 | 3684 | powerpc-*-darwin*) |
9d39db92 | 3685 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3686 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3687 | ;; |
85bd1942 TG |
3688 | i[3456789]86-*-darwin*) |
3689 | noconfigdirs="$noconfigdirs ld gprof" | |
3690 | noconfigdirs="$noconfigdirs sim target-rda" | |
3691 | ;; | |
e8a5fa9c | 3692 | x86_64-*-darwin[912]*) |
652dec25 TG |
3693 | noconfigdirs="$noconfigdirs ld gas gprof" |
3694 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3695 | ;; |
04d1ab34 | 3696 | *-*-darwin*) |
d320aacb | 3697 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3698 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3699 | ;; |
5b806d27 | 3700 | *-*-dragonfly*) |
5b806d27 | 3701 | ;; |
de0b4a87 | 3702 | *-*-freebsd*) |
4b1cb4fe DD |
3703 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3704 | && test -f /usr/local/include/gmp.h; then | |
3705 | with_gmp=/usr/local | |
3706 | fi | |
4b1cb4fe | 3707 | ;; |
f8a495c8 NC |
3708 | *-*-kaos*) |
3709 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3710 | noconfigdirs="$noconfigdirs target-libgloss" |
3711 | ;; | |
a0da8069 | 3712 | *-*-netbsd*) |
a0da8069 | 3713 | ;; |
2a3124ca | 3714 | *-*-netware*) |
a0da8069 | 3715 | ;; |
05a13254 NC |
3716 | *-*-phoenix*) |
3717 | noconfigdirs="$noconfigdirs target-libgloss" | |
3718 | ;; | |
a0da8069 | 3719 | *-*-rtems*) |
9863d716 | 3720 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3721 | ;; |
1587117a EC |
3722 | # The tpf target doesn't support gdb yet. |
3723 | *-*-tpf*) | |
c7e4b184 | 3724 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3725 | ;; |
c1968181 | 3726 | *-*-uclinux*) |
c7e4b184 | 3727 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3728 | ;; |
a0da8069 | 3729 | *-*-vxworks*) |
a0da8069 NN |
3730 | ;; |
3731 | alpha*-dec-osf*) | |
3732 | # ld works, but does not support shared libraries. | |
a0da8069 | 3733 | # gas doesn't generate exception information. |
c7e4b184 | 3734 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3735 | ;; |
3736 | alpha*-*-*vms*) | |
9863d716 | 3737 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3738 | ;; |
a0da8069 NN |
3739 | alpha*-*-*) |
3740 | # newlib is not 64 bit ready | |
9863d716 | 3741 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3742 | ;; |
a0da8069 | 3743 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3744 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3745 | ;; |
05a13254 NC |
3746 | arc*-*-*) |
3747 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3748 | ;; |
a0da8069 | 3749 | arm-*-pe*) |
9863d716 | 3750 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3751 | ;; |
a0da8069 | 3752 | arm-*-riscix*) |
b2f14e4a | 3753 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3754 | ;; |
8e71395b L |
3755 | avr-*-*) |
3756 | if test x${with_avrlibc} != xno; then | |
3757 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3758 | fi | |
3759 | ;; | |
a0da8069 | 3760 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3761 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3762 | ;; |
b2f14e4a JM |
3763 | tic54x-*-*) |
3764 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3765 | ;; |
a0da8069 | 3766 | d10v-*-*) |
b2f14e4a | 3767 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3768 | ;; |
3769 | d30v-*-*) | |
b2f14e4a | 3770 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3771 | ;; |
3772 | fr30-*-elf*) | |
9863d716 | 3773 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3774 | ;; |
3f8107ab AM |
3775 | ft32-*-*) |
3776 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3777 | ;; | |
20135e4c | 3778 | moxie-*-*) |
10b8fe5e | 3779 | noconfigdirs="$noconfigdirs" |
20135e4c | 3780 | ;; |
a0da8069 | 3781 | h8300*-*-*) |
9863d716 | 3782 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3783 | ;; |
3784 | h8500-*-*) | |
b2f14e4a | 3785 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3786 | ;; |
caeba88f | 3787 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3788 | ;; |
5569a85f JDA |
3789 | hppa*64*-*-hpux*) |
3790 | noconfigdirs="$noconfigdirs gdb" | |
3791 | ;; | |
3792 | hppa*-*-hpux11*) | |
3793 | noconfigdirs="$noconfigdirs gdb ld" | |
3794 | ;; | |
93cc359e | 3795 | hppa*64*-*-linux*) |
a0da8069 | 3796 | ;; |
f0ff0f90 | 3797 | hppa*-*-linux*) |
5dcac624 | 3798 | ;; |
a0da8069 | 3799 | hppa*-*-*elf* | \ |
a0da8069 NN |
3800 | hppa*-*-lites* | \ |
3801 | hppa*-*-openbsd* | \ | |
3802 | hppa*64*-*-*) | |
4f0ef2d8 | 3803 | ;; |
691bb5a1 | 3804 | hppa*-*-pro*) |
691bb5a1 | 3805 | ;; |
a0da8069 | 3806 | hppa*-*-*) |
9863d716 | 3807 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3808 | ;; |
b07c2aad | 3809 | i960-*-*) |
b2f14e4a | 3810 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3811 | ;; |
a0da8069 NN |
3812 | ia64*-*-elf*) |
3813 | # No gdb support yet. | |
0377a422 | 3814 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3815 | ;; |
3816 | ia64*-**-hpux*) | |
92c9a463 | 3817 | # No ld support yet. |
5569a85f | 3818 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3819 | ;; |
19e99079 | 3820 | ia64*-*-*vms*) |
7ec59b9e L |
3821 | # No ld support yet. |
3822 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3823 | ;; |
1f53ca9a | 3824 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3825 | ;; |
3826 | i[3456789]86-*-mingw*) | |
45055374 | 3827 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3828 | ;; |
a0da8069 NN |
3829 | *-*-cygwin*) |
3830 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3831 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3832 | # always build newlib if winsup directory is present. |
45055374 | 3833 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3834 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3835 | elif test -d "$srcdir/newlib"; then |
45055374 | 3836 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3837 | fi |
c6b750e1 | 3838 | ;; |
ec11bdc6 | 3839 | i[3456789]86-*-pe) |
782cb41f | 3840 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3841 | ;; |
ec11bdc6 | 3842 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3843 | # The linker does not yet know about weak symbols in COFF, |
3844 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3845 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3846 | ;; |
ec11bdc6 | 3847 | i[3456789]86-*-sco*) |
b2f14e4a | 3848 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3849 | ;; |
cff32a7c | 3850 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3851 | noconfigdirs="$noconfigdirs target-libgloss" |
3852 | ;; | |
ec11bdc6 | 3853 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3854 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3855 | ;; |
ec11bdc6 | 3856 | i[3456789]86-*-beos*) |
c7e4b184 | 3857 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3858 | ;; |
b59bea8a | 3859 | i[3456789]86-*-rdos*) |
c7e4b184 | 3860 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3861 | ;; |
a0da8069 | 3862 | mmix-*-*) |
9863d716 | 3863 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3864 | ;; |
4970f871 | 3865 | mt-*-*) |
cdb9b172 AH |
3866 | noconfigdirs="$noconfigdirs sim" |
3867 | ;; | |
1063beb5 FT |
3868 | nfp-*-*) |
3869 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3870 | noconfigdirs="$noconfigdirs $target_libraries" | |
3871 | ;; | |
a0da8069 NN |
3872 | powerpc-*-aix*) |
3873 | # copied from rs6000-*-* entry | |
c7e4b184 | 3874 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3875 | ;; |
93cc359e | 3876 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3877 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3878 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3879 | # always build newlib. |
3880 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3881 | ;; | |
3882 | # This is temporary until we can link against shared libraries | |
3883 | powerpcle-*-solaris*) | |
b2f14e4a | 3884 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3885 | ;; |
3886 | powerpc-*-beos*) | |
c7e4b184 | 3887 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3888 | ;; |
a0da8069 | 3889 | rs6000-*-lynxos*) |
c7e4b184 | 3890 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3891 | ;; |
3892 | rs6000-*-aix*) | |
c7e4b184 | 3893 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3894 | ;; |
3895 | rs6000-*-*) | |
9863d716 | 3896 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3897 | ;; |
3898 | m68k-apollo-*) | |
b2f14e4a | 3899 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3900 | ;; |
25a07265 | 3901 | microblaze*) |
9863d716 | 3902 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3903 | ;; |
a9d58c06 | 3904 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3905 | if test x$with_newlib = xyes; then |
3906 | noconfigdirs="$noconfigdirs gprof" | |
3907 | fi | |
5bd8be13 | 3908 | ;; |
a0da8069 | 3909 | mips*-*-irix5*) |
b2f14e4a | 3910 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3911 | ;; |
3912 | mips*-*-irix6*) | |
9863d716 | 3913 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3914 | ;; |
a0da8069 | 3915 | mips*-*-bsd*) |
e8044f35 | 3916 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3917 | ;; |
a0da8069 | 3918 | mips*-*-linux*) |
a0da8069 | 3919 | ;; |
e8044f35 RS |
3920 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3921 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3922 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3923 | ;; | |
a0da8069 | 3924 | mips*-*-*) |
9863d716 | 3925 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3926 | ;; |
1b6c0831 | 3927 | nvptx*-*-*) |
1b6c0831 L |
3928 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3929 | ;; | |
05a13254 | 3930 | sh-*-*) |
e8a5fa9c RW |
3931 | case "${target}" in |
3932 | sh*-*-elf) | |
9863d716 | 3933 | ;; |
e8a5fa9c | 3934 | *) |
9863d716 | 3935 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3936 | esac |
a0da8069 | 3937 | ;; |
a0da8069 | 3938 | sparc-*-sunos4*) |
c7e4b184 | 3939 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3940 | use_gnu_ld=no |
3941 | fi | |
3942 | ;; | |
619a3713 | 3943 | tic6x-*-*) |
40ae9136 | 3944 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3945 | ;; |
05a13254 | 3946 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3947 | noconfigdirs="$noconfigdirs sim" |
3948 | ;; | |
a0da8069 | 3949 | v810-*-*) |
b2f14e4a | 3950 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3951 | ;; |
3952 | vax-*-*) | |
9863d716 | 3953 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3954 | ;; |
b29d2641 MR |
3955 | wasm32-*-*) |
3956 | noconfigdirs="$noconfigdirs ld" | |
3957 | ;; | |
a0da8069 | 3958 | esac |
252b5132 | 3959 | |
a0da8069 NN |
3960 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3961 | # depends upon some newlib header files. | |
3962 | case "${noconfigdirs}" in | |
3963 | *target-libgloss*) ;; | |
3964 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3965 | esac | |
3966 | ||
a0da8069 | 3967 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3968 | host_makefile_frag=/dev/null |
3969 | if test -d ${srcdir}/config ; then | |
3970 | case "${host}" in | |
ec11bdc6 | 3971 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3972 | host_makefile_frag="config/mh-djgpp" |
3973 | ;; | |
3974 | *-cygwin*) | |
e33b51a6 | 3975 | |
81ecdfbb RW |
3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3977 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3978 | echo a >cygwin-cat-check |
1f53ca9a | 3979 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3980 | rm cygwin-cat-check |
81ecdfbb RW |
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3982 | $as_echo "yes" >&6; } | |
e33b51a6 | 3983 | else |
8ade07e9 | 3984 | rm cygwin-cat-check |
81ecdfbb RW |
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3986 | $as_echo "no" >&6; } | |
d0ac1c44 | 3987 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
3988 | Please either mount the build directory in binary mode or run the following |
3989 | commands before running any configure script: | |
3990 | set -o igncr | |
3991 | export SHELLOPTS | |
81ecdfbb | 3992 | " "$LINENO" 5 |
e33b51a6 | 3993 | fi |
e33b51a6 | 3994 | |
a0da8069 NN |
3995 | host_makefile_frag="config/mh-cygwin" |
3996 | ;; | |
8a1599ab | 3997 | *-mingw*) |
84e7906e | 3998 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3999 | ;; |
ce6c656d L |
4000 | alpha*-linux*) |
4001 | host_makefile_frag="config/mh-alpha-linux" | |
4002 | ;; | |
da888c87 | 4003 | hppa*-hp-hpux10*) |
da888c87 | 4004 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 4005 | ;; |
3516a403 | 4006 | hppa*-hp-hpux*) |
da888c87 PB |
4007 | host_makefile_frag="config/mh-pa" |
4008 | ;; | |
4009 | hppa*-*) | |
4010 | host_makefile_frag="config/mh-pa" | |
4011 | ;; | |
e552509b ILT |
4012 | *-*-darwin*) |
4013 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 4014 | ;; |
f6d183c0 PB |
4015 | powerpc-*-aix*) |
4016 | host_makefile_frag="config/mh-ppc-aix" | |
4017 | ;; | |
4018 | rs6000-*-aix*) | |
4019 | host_makefile_frag="config/mh-ppc-aix" | |
4020 | ;; | |
a0da8069 NN |
4021 | esac |
4022 | fi | |
4023 | ||
9e07f89d | 4024 | if test "${build}" != "${host}" ; then |
1576798e PB |
4025 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4026 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4027 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e | 4028 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
1576798e | 4029 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 4030 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
f948b2de | 4031 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
1576798e PB |
4032 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4033 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4034 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4035 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4036 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4037 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4038 | else | |
4039 | AR_FOR_BUILD="\$(AR)" | |
4040 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4041 | CC_FOR_BUILD="\$(CC)" |
1576798e | 4042 | CXX_FOR_BUILD="\$(CXX)" |
1576798e | 4043 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 4044 | GOC_FOR_BUILD="\$(GOC)" |
f948b2de | 4045 | GDC_FOR_BUILD="\$(GDC)" |
1576798e PB |
4046 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4047 | LD_FOR_BUILD="\$(LD)" | |
4048 | NM_FOR_BUILD="\$(NM)" | |
4049 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4050 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4051 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4052 | fi |
4053 | ||
4054 | ac_ext=c | |
c6b750e1 DJ |
4055 | ac_cpp='$CPP $CPPFLAGS' |
4056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4059 | if test -n "$ac_tool_prefix"; then | |
4060 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4061 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4063 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4064 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4065 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4066 | else |
4067 | if test -n "$CC"; then | |
4068 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4069 | else | |
4070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4071 | for as_dir in $PATH | |
4072 | do | |
4073 | IFS=$as_save_IFS | |
4074 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4075 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4076 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4077 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4079 | break 2 |
4080 | fi | |
4081 | done | |
81ecdfbb RW |
4082 | done |
4083 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4084 | |
4085 | fi | |
4086 | fi | |
4087 | CC=$ac_cv_prog_CC | |
4088 | if test -n "$CC"; then | |
81ecdfbb RW |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4090 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4091 | else |
81ecdfbb RW |
4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4093 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4094 | fi |
4095 | ||
81ecdfbb | 4096 | |
c6b750e1 DJ |
4097 | fi |
4098 | if test -z "$ac_cv_prog_CC"; then | |
4099 | ac_ct_CC=$CC | |
6a9cf61e | 4100 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4101 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4103 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4104 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4105 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4106 | else |
4107 | if test -n "$ac_ct_CC"; then | |
4108 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4109 | else | |
4110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4111 | for as_dir in $PATH | |
4112 | do | |
4113 | IFS=$as_save_IFS | |
4114 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4115 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4117 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4119 | break 2 |
4120 | fi | |
4121 | done | |
81ecdfbb RW |
4122 | done |
4123 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4124 | |
4125 | fi | |
4126 | fi | |
4127 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4128 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4130 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4131 | else |
81ecdfbb RW |
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4133 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4134 | fi |
4135 | ||
81ecdfbb RW |
4136 | if test "x$ac_ct_CC" = x; then |
4137 | CC="" | |
4138 | else | |
4139 | case $cross_compiling:$ac_tool_warned in | |
4140 | yes:) | |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4142 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4143 | ac_tool_warned=yes ;; | |
4144 | esac | |
4145 | CC=$ac_ct_CC | |
4146 | fi | |
c6b750e1 DJ |
4147 | else |
4148 | CC="$ac_cv_prog_CC" | |
4149 | fi | |
4150 | ||
4151 | if test -z "$CC"; then | |
81ecdfbb RW |
4152 | if test -n "$ac_tool_prefix"; then |
4153 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4154 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4156 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4157 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4158 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4159 | else |
4160 | if test -n "$CC"; then | |
4161 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4162 | else | |
c6b750e1 DJ |
4163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4164 | for as_dir in $PATH | |
4165 | do | |
4166 | IFS=$as_save_IFS | |
4167 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4168 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4169 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4170 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4172 | break 2 |
4173 | fi | |
4174 | done | |
81ecdfbb RW |
4175 | done |
4176 | IFS=$as_save_IFS | |
c6b750e1 | 4177 | |
9e07f89d NN |
4178 | fi |
4179 | fi | |
c6b750e1 | 4180 | CC=$ac_cv_prog_CC |
9e07f89d | 4181 | if test -n "$CC"; then |
81ecdfbb RW |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4183 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4184 | else |
81ecdfbb RW |
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4186 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4187 | fi |
4188 | ||
c6b750e1 | 4189 | |
81ecdfbb | 4190 | fi |
c6b750e1 | 4191 | fi |
9e07f89d NN |
4192 | if test -z "$CC"; then |
4193 | # Extract the first word of "cc", so it can be a program name with args. | |
4194 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4196 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4197 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4198 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4199 | else |
4200 | if test -n "$CC"; then | |
4201 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4202 | else | |
9e07f89d | 4203 | ac_prog_rejected=no |
c6b750e1 DJ |
4204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4205 | for as_dir in $PATH | |
4206 | do | |
4207 | IFS=$as_save_IFS | |
4208 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4209 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4210 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4211 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4212 | ac_prog_rejected=yes | |
4213 | continue | |
4214 | fi | |
4215 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4217 | break 2 |
4218 | fi | |
4219 | done | |
81ecdfbb RW |
4220 | done |
4221 | IFS=$as_save_IFS | |
c6b750e1 | 4222 | |
9e07f89d NN |
4223 | if test $ac_prog_rejected = yes; then |
4224 | # We found a bogon in the path, so make sure we never use it. | |
4225 | set dummy $ac_cv_prog_CC | |
4226 | shift | |
c6b750e1 | 4227 | if test $# != 0; then |
9e07f89d NN |
4228 | # We chose a different compiler from the bogus one. |
4229 | # However, it has the same basename, so the bogon will be chosen | |
4230 | # first if we set CC to just the basename; use the full file name. | |
4231 | shift | |
c6b750e1 | 4232 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4233 | fi |
4234 | fi | |
4235 | fi | |
4236 | fi | |
c6b750e1 | 4237 | CC=$ac_cv_prog_CC |
9e07f89d | 4238 | if test -n "$CC"; then |
81ecdfbb RW |
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4240 | $as_echo "$CC" >&6; } | |
9e07f89d | 4241 | else |
81ecdfbb RW |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4243 | $as_echo "no" >&6; } | |
9e07f89d NN |
4244 | fi |
4245 | ||
81ecdfbb | 4246 | |
c6b750e1 DJ |
4247 | fi |
4248 | if test -z "$CC"; then | |
4249 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4250 | for ac_prog in cl.exe |
c6b750e1 DJ |
4251 | do |
4252 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4253 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4255 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4256 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4257 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4258 | else |
4259 | if test -n "$CC"; then | |
4260 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4261 | else | |
c6b750e1 DJ |
4262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4263 | for as_dir in $PATH | |
4264 | do | |
4265 | IFS=$as_save_IFS | |
4266 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4267 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4269 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4271 | break 2 |
376a0e54 | 4272 | fi |
c6b750e1 | 4273 | done |
81ecdfbb RW |
4274 | done |
4275 | IFS=$as_save_IFS | |
cac3d6c4 | 4276 | |
c6b750e1 DJ |
4277 | fi |
4278 | fi | |
4279 | CC=$ac_cv_prog_CC | |
4280 | if test -n "$CC"; then | |
81ecdfbb RW |
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4282 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4283 | else |
81ecdfbb RW |
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4285 | $as_echo "no" >&6; } | |
9e07f89d | 4286 | fi |
cac3d6c4 | 4287 | |
81ecdfbb | 4288 | |
c6b750e1 DJ |
4289 | test -n "$CC" && break |
4290 | done | |
cac3d6c4 | 4291 | fi |
c6b750e1 DJ |
4292 | if test -z "$CC"; then |
4293 | ac_ct_CC=$CC | |
81ecdfbb | 4294 | for ac_prog in cl.exe |
c6b750e1 DJ |
4295 | do |
4296 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4297 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4299 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4300 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4301 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4302 | else |
c6b750e1 DJ |
4303 | if test -n "$ac_ct_CC"; then |
4304 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4305 | else |
c6b750e1 DJ |
4306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4307 | for as_dir in $PATH | |
4308 | do | |
4309 | IFS=$as_save_IFS | |
4310 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4311 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4312 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4313 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4315 | break 2 |
4316 | fi | |
4317 | done | |
81ecdfbb RW |
4318 | done |
4319 | IFS=$as_save_IFS | |
c6b750e1 | 4320 | |
cac3d6c4 CM |
4321 | fi |
4322 | fi | |
c6b750e1 DJ |
4323 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4324 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4326 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4327 | else |
81ecdfbb RW |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4329 | $as_echo "no" >&6; } | |
cac3d6c4 | 4330 | fi |
376a0e54 | 4331 | |
81ecdfbb | 4332 | |
c6b750e1 DJ |
4333 | test -n "$ac_ct_CC" && break |
4334 | done | |
4335 | ||
81ecdfbb RW |
4336 | if test "x$ac_ct_CC" = x; then |
4337 | CC="" | |
4338 | else | |
4339 | case $cross_compiling:$ac_tool_warned in | |
4340 | yes:) | |
4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4343 | ac_tool_warned=yes ;; | |
4344 | esac | |
4345 | CC=$ac_ct_CC | |
4346 | fi | |
c6b750e1 DJ |
4347 | fi |
4348 | ||
4349 | fi | |
4350 | ||
4351 | ||
81ecdfbb RW |
4352 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4353 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4354 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4355 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4356 | |
4357 | # Provide some information about the compiler. | |
81ecdfbb RW |
4358 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4359 | set X $ac_compile | |
4360 | ac_compiler=$2 | |
4361 | for ac_option in --version -v -V -qversion; do | |
4362 | { { ac_try="$ac_compiler $ac_option >&5" | |
4363 | case "(($ac_try" in | |
4364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4365 | *) ac_try_echo=$ac_try;; | |
4366 | esac | |
4367 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4368 | $as_echo "$ac_try_echo"; } >&5 | |
4369 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4370 | ac_status=$? |
81ecdfbb RW |
4371 | if test -s conftest.err; then |
4372 | sed '10a\ | |
4373 | ... rest of stderr output deleted ... | |
4374 | 10q' conftest.err >conftest.er1 | |
4375 | cat conftest.er1 >&5 | |
81ecdfbb | 4376 | fi |
d0ac1c44 | 4377 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4379 | test $ac_status = 0; } | |
4380 | done | |
c6b750e1 | 4381 | |
81ecdfbb | 4382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4383 | /* end confdefs.h. */ |
4384 | ||
4385 | int | |
4386 | main () | |
4387 | { | |
4388 | ||
4389 | ; | |
4390 | return 0; | |
4391 | } | |
4392 | _ACEOF | |
4393 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4394 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4395 | # Try to create an executable without -o first, disregard a.out. |
4396 | # It will help us diagnose broken compilers, and finding out an intuition | |
4397 | # of exeext. | |
d0ac1c44 SM |
4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4399 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4400 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4401 | ||
4402 | # The possible output files: | |
4403 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4404 | ||
4405 | ac_rmfiles= | |
4406 | for ac_file in $ac_files | |
4407 | do | |
4408 | case $ac_file in | |
4409 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4410 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4411 | esac | |
4412 | done | |
4413 | rm -f $ac_rmfiles | |
4414 | ||
4415 | if { { ac_try="$ac_link_default" | |
4416 | case "(($ac_try" in | |
4417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4418 | *) ac_try_echo=$ac_try;; | |
4419 | esac | |
4420 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4421 | $as_echo "$ac_try_echo"; } >&5 | |
4422 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4423 | ac_status=$? |
81ecdfbb RW |
4424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4425 | test $ac_status = 0; }; then : | |
4426 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4427 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4428 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4429 | # so that the user can short-circuit this test for compilers unknown to | |
4430 | # Autoconf. | |
4431 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4432 | do |
4433 | test -f "$ac_file" || continue | |
4434 | case $ac_file in | |
81ecdfbb | 4435 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4436 | ;; |
4437 | [ab].out ) | |
4438 | # We found the default executable, but exeext='' is most | |
4439 | # certainly right. | |
4440 | break;; | |
4441 | *.* ) | |
81ecdfbb RW |
4442 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4443 | then :; else | |
4444 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4445 | fi | |
4446 | # We set ac_cv_exeext here because the later test for it is not | |
4447 | # safe: cross compilers may not add the suffix if given an `-o' | |
4448 | # argument, so we may need to know it at that point already. | |
4449 | # Even if this section looks crufty: it has the advantage of | |
4450 | # actually working. | |
c6b750e1 DJ |
4451 | break;; |
4452 | * ) | |
4453 | break;; | |
4454 | esac | |
4455 | done | |
81ecdfbb RW |
4456 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4457 | ||
c6b750e1 | 4458 | else |
81ecdfbb RW |
4459 | ac_file='' |
4460 | fi | |
81ecdfbb | 4461 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4463 | $as_echo "no" >&6; } | |
4464 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4465 | sed 's/^/| /' conftest.$ac_ext >&5 |
4466 | ||
81ecdfbb RW |
4467 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4468 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4469 | as_fn_error 77 "C compiler cannot create executables |
4470 | See \`config.log' for more details" "$LINENO" 5; } | |
4471 | else | |
4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4473 | $as_echo "yes" >&6; } | |
c6b750e1 | 4474 | fi |
d0ac1c44 SM |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4476 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4478 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4479 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4480 | |
d0ac1c44 | 4481 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4482 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4484 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4485 | if { { ac_try="$ac_link" | |
4486 | case "(($ac_try" in | |
4487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4488 | *) ac_try_echo=$ac_try;; | |
4489 | esac | |
4490 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4491 | $as_echo "$ac_try_echo"; } >&5 | |
4492 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4493 | ac_status=$? |
81ecdfbb RW |
4494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4495 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4496 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4497 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4498 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4499 | # `rm'. | |
4500 | for ac_file in conftest.exe conftest conftest.*; do | |
4501 | test -f "$ac_file" || continue | |
4502 | case $ac_file in | |
81ecdfbb | 4503 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4504 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4505 | break;; |
4506 | * ) break;; | |
4507 | esac | |
4508 | done | |
4509 | else | |
81ecdfbb RW |
4510 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4512 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4513 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4514 | fi |
d0ac1c44 | 4515 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4517 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4518 | |
4519 | rm -f conftest.$ac_ext | |
4520 | EXEEXT=$ac_cv_exeext | |
4521 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4523 | /* end confdefs.h. */ | |
4524 | #include <stdio.h> | |
4525 | int | |
4526 | main () | |
4527 | { | |
4528 | FILE *f = fopen ("conftest.out", "w"); | |
4529 | return ferror (f) || fclose (f) != 0; | |
4530 | ||
4531 | ; | |
4532 | return 0; | |
4533 | } | |
4534 | _ACEOF | |
4535 | ac_clean_files="$ac_clean_files conftest.out" | |
4536 | # Check that the compiler produces executables we can run. If not, either | |
4537 | # the compiler is broken, or we cross compile. | |
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4539 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4540 | if test "$cross_compiling" != yes; then | |
4541 | { { ac_try="$ac_link" | |
4542 | case "(($ac_try" in | |
4543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4544 | *) ac_try_echo=$ac_try;; | |
4545 | esac | |
4546 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4547 | $as_echo "$ac_try_echo"; } >&5 | |
4548 | (eval "$ac_link") 2>&5 | |
4549 | ac_status=$? | |
4550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4551 | test $ac_status = 0; } | |
4552 | if { ac_try='./conftest$ac_cv_exeext' | |
4553 | { { case "(($ac_try" in | |
4554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4555 | *) ac_try_echo=$ac_try;; | |
4556 | esac | |
4557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4558 | $as_echo "$ac_try_echo"; } >&5 | |
4559 | (eval "$ac_try") 2>&5 | |
4560 | ac_status=$? | |
4561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4562 | test $ac_status = 0; }; }; then | |
4563 | cross_compiling=no | |
4564 | else | |
4565 | if test "$cross_compiling" = maybe; then | |
4566 | cross_compiling=yes | |
4567 | else | |
4568 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4569 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4570 | as_fn_error $? "cannot run C compiled programs. | |
4571 | If you meant to cross compile, use \`--host'. | |
4572 | See \`config.log' for more details" "$LINENO" 5; } | |
4573 | fi | |
4574 | fi | |
4575 | fi | |
4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4577 | $as_echo "$cross_compiling" >&6; } | |
4578 | ||
4579 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4580 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4582 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4583 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4584 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4585 | else |
81ecdfbb | 4586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4587 | /* end confdefs.h. */ |
4588 | ||
4589 | int | |
4590 | main () | |
4591 | { | |
4592 | ||
4593 | ; | |
4594 | return 0; | |
4595 | } | |
4596 | _ACEOF | |
4597 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4598 | if { { ac_try="$ac_compile" |
4599 | case "(($ac_try" in | |
4600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4601 | *) ac_try_echo=$ac_try;; | |
4602 | esac | |
4603 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4604 | $as_echo "$ac_try_echo"; } >&5 | |
4605 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4606 | ac_status=$? |
81ecdfbb RW |
4607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4608 | test $ac_status = 0; }; then : | |
4609 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4610 | test -f "$ac_file" || continue; | |
c6b750e1 | 4611 | case $ac_file in |
81ecdfbb | 4612 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4613 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4614 | break;; | |
4615 | esac | |
4616 | done | |
cac3d6c4 | 4617 | else |
81ecdfbb | 4618 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4619 | sed 's/^/| /' conftest.$ac_ext >&5 |
4620 | ||
81ecdfbb RW |
4621 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4622 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4623 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4624 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4625 | fi |
c6b750e1 DJ |
4626 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4627 | fi | |
81ecdfbb RW |
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4629 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4630 | OBJEXT=$ac_cv_objext |
4631 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4633 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4634 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4635 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4636 | else |
81ecdfbb | 4637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4638 | /* end confdefs.h. */ |
4639 | ||
4640 | int | |
4641 | main () | |
4642 | { | |
4643 | #ifndef __GNUC__ | |
4644 | choke me | |
4645 | #endif | |
4646 | ||
4647 | ; | |
4648 | return 0; | |
4649 | } | |
4650 | _ACEOF | |
81ecdfbb | 4651 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4652 | ac_compiler_gnu=yes |
4653 | else | |
81ecdfbb | 4654 | ac_compiler_gnu=no |
c6b750e1 | 4655 | fi |
81ecdfbb | 4656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4657 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4658 | ||
4659 | fi | |
81ecdfbb RW |
4660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4661 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4662 | if test $ac_compiler_gnu = yes; then | |
4663 | GCC=yes | |
4664 | else | |
4665 | GCC= | |
4666 | fi | |
c6b750e1 DJ |
4667 | ac_test_CFLAGS=${CFLAGS+set} |
4668 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4670 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4671 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4672 | $as_echo_n "(cached) " >&6 |
4673 | else | |
4674 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4675 | ac_c_werror_flag=yes | |
4676 | ac_cv_prog_cc_g=no | |
4677 | CFLAGS="-g" | |
4678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4679 | /* end confdefs.h. */ |
4680 | ||
4681 | int | |
4682 | main () | |
4683 | { | |
4684 | ||
4685 | ; | |
4686 | return 0; | |
4687 | } | |
4688 | _ACEOF | |
81ecdfbb | 4689 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4690 | ac_cv_prog_cc_g=yes |
4691 | else | |
81ecdfbb RW |
4692 | CFLAGS="" |
4693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4694 | /* end confdefs.h. */ | |
4695 | ||
4696 | int | |
4697 | main () | |
4698 | { | |
4699 | ||
4700 | ; | |
4701 | return 0; | |
4702 | } | |
4703 | _ACEOF | |
4704 | if ac_fn_c_try_compile "$LINENO"; then : | |
4705 | ||
4706 | else | |
4707 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4708 | CFLAGS="-g" | |
4709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4710 | /* end confdefs.h. */ | |
cac3d6c4 | 4711 | |
81ecdfbb RW |
4712 | int |
4713 | main () | |
4714 | { | |
4715 | ||
4716 | ; | |
4717 | return 0; | |
4718 | } | |
4719 | _ACEOF | |
4720 | if ac_fn_c_try_compile "$LINENO"; then : | |
4721 | ac_cv_prog_cc_g=yes | |
4722 | fi | |
4723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4724 | fi |
81ecdfbb | 4725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4726 | fi |
81ecdfbb RW |
4727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4728 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4729 | fi | |
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4731 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4732 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4733 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4734 | elif test $ac_cv_prog_cc_g = yes; then |
4735 | if test "$GCC" = yes; then | |
4736 | CFLAGS="-g -O2" | |
4737 | else | |
4738 | CFLAGS="-g" | |
4739 | fi | |
4740 | else | |
4741 | if test "$GCC" = yes; then | |
4742 | CFLAGS="-O2" | |
4743 | else | |
4744 | CFLAGS= | |
4745 | fi | |
4746 | fi | |
81ecdfbb RW |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4748 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4749 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4750 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4751 | else |
81ecdfbb | 4752 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4753 | ac_save_CC=$CC |
81ecdfbb | 4754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4755 | /* end confdefs.h. */ |
4756 | #include <stdarg.h> | |
4757 | #include <stdio.h> | |
d0ac1c44 | 4758 | struct stat; |
c6b750e1 DJ |
4759 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4760 | struct buf { int x; }; | |
4761 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4762 | static char *e (p, i) | |
4763 | char **p; | |
4764 | int i; | |
4765 | { | |
4766 | return p[i]; | |
4767 | } | |
4768 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4769 | { | |
4770 | char *s; | |
4771 | va_list v; | |
4772 | va_start (v,p); | |
4773 | s = g (p, va_arg (v,int)); | |
4774 | va_end (v); | |
4775 | return s; | |
4776 | } | |
4777 | ||
4778 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4779 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4780 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4781 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4782 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4783 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4784 | that's true only with -std. */ |
c6b750e1 DJ |
4785 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4786 | ||
81ecdfbb RW |
4787 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4788 | inside strings and character constants. */ | |
4789 | #define FOO(x) 'x' | |
4790 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4791 | ||
c6b750e1 DJ |
4792 | int test (int i, double x); |
4793 | struct s1 {int (*f) (int a);}; | |
4794 | struct s2 {int (*f) (double a);}; | |
4795 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4796 | int argc; | |
4797 | char **argv; | |
4798 | int | |
4799 | main () | |
4800 | { | |
4801 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4802 | ; | |
4803 | return 0; | |
4804 | } | |
4805 | _ACEOF | |
81ecdfbb RW |
4806 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4807 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4808 | do |
4809 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4810 | if ac_fn_c_try_compile "$LINENO"; then : |
4811 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4812 | fi |
81ecdfbb RW |
4813 | rm -f core conftest.err conftest.$ac_objext |
4814 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4815 | done |
81ecdfbb | 4816 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4817 | CC=$ac_save_CC |
4818 | ||
4819 | fi | |
81ecdfbb RW |
4820 | # AC_CACHE_VAL |
4821 | case "x$ac_cv_prog_cc_c89" in | |
4822 | x) | |
4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4824 | $as_echo "none needed" >&6; } ;; | |
4825 | xno) | |
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4827 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4828 | *) |
81ecdfbb RW |
4829 | CC="$CC $ac_cv_prog_cc_c89" |
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4831 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4832 | esac |
81ecdfbb | 4833 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4834 | |
c6b750e1 DJ |
4835 | fi |
4836 | ||
c6b750e1 DJ |
4837 | ac_ext=c |
4838 | ac_cpp='$CPP $CPPFLAGS' | |
4839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4842 | |
81ecdfbb | 4843 | ac_ext=cpp |
18f6b6ee PB |
4844 | ac_cpp='$CXXCPP $CPPFLAGS' |
4845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4848 | if test -z "$CXX"; then |
4849 | if test -n "$CCC"; then | |
4850 | CXX=$CCC | |
4851 | else | |
4852 | if test -n "$ac_tool_prefix"; then | |
4853 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4854 | do |
4855 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4856 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4858 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4859 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 4860 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4861 | else |
4862 | if test -n "$CXX"; then | |
4863 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4864 | else | |
4865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4866 | for as_dir in $PATH | |
4867 | do | |
4868 | IFS=$as_save_IFS | |
4869 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4870 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4872 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4874 | break 2 |
4875 | fi | |
4876 | done | |
81ecdfbb RW |
4877 | done |
4878 | IFS=$as_save_IFS | |
512b7dfb | 4879 | |
18f6b6ee PB |
4880 | fi |
4881 | fi | |
4882 | CXX=$ac_cv_prog_CXX | |
4883 | if test -n "$CXX"; then | |
81ecdfbb RW |
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4885 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4886 | else |
81ecdfbb RW |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4888 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4889 | fi |
4890 | ||
81ecdfbb | 4891 | |
18f6b6ee PB |
4892 | test -n "$CXX" && break |
4893 | done | |
4894 | fi | |
4895 | if test -z "$CXX"; then | |
4896 | ac_ct_CXX=$CXX | |
81ecdfbb | 4897 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4898 | do |
4899 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4900 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4902 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4903 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 4904 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4905 | else |
4906 | if test -n "$ac_ct_CXX"; then | |
4907 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4908 | else | |
4909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4910 | for as_dir in $PATH | |
4911 | do | |
4912 | IFS=$as_save_IFS | |
4913 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4914 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4916 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4918 | break 2 |
512b7dfb | 4919 | fi |
18f6b6ee | 4920 | done |
81ecdfbb RW |
4921 | done |
4922 | IFS=$as_save_IFS | |
512b7dfb | 4923 | |
18f6b6ee PB |
4924 | fi |
4925 | fi | |
4926 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4927 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4929 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4930 | else |
81ecdfbb RW |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4932 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4933 | fi |
4934 | ||
81ecdfbb | 4935 | |
18f6b6ee PB |
4936 | test -n "$ac_ct_CXX" && break |
4937 | done | |
18f6b6ee | 4938 | |
81ecdfbb RW |
4939 | if test "x$ac_ct_CXX" = x; then |
4940 | CXX="g++" | |
4941 | else | |
4942 | case $cross_compiling:$ac_tool_warned in | |
4943 | yes:) | |
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4945 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4946 | ac_tool_warned=yes ;; | |
4947 | esac | |
4948 | CXX=$ac_ct_CXX | |
4949 | fi | |
18f6b6ee PB |
4950 | fi |
4951 | ||
81ecdfbb RW |
4952 | fi |
4953 | fi | |
18f6b6ee | 4954 | # Provide some information about the compiler. |
81ecdfbb RW |
4955 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4956 | set X $ac_compile | |
4957 | ac_compiler=$2 | |
4958 | for ac_option in --version -v -V -qversion; do | |
4959 | { { ac_try="$ac_compiler $ac_option >&5" | |
4960 | case "(($ac_try" in | |
4961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4962 | *) ac_try_echo=$ac_try;; | |
4963 | esac | |
4964 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4965 | $as_echo "$ac_try_echo"; } >&5 | |
4966 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4967 | ac_status=$? |
81ecdfbb RW |
4968 | if test -s conftest.err; then |
4969 | sed '10a\ | |
4970 | ... rest of stderr output deleted ... | |
4971 | 10q' conftest.err >conftest.er1 | |
4972 | cat conftest.er1 >&5 | |
81ecdfbb | 4973 | fi |
d0ac1c44 | 4974 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4976 | test $ac_status = 0; } | |
4977 | done | |
18f6b6ee | 4978 | |
81ecdfbb RW |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4980 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 4981 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 4982 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 4983 | else |
81ecdfbb | 4984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4985 | /* end confdefs.h. */ |
4986 | ||
4987 | int | |
4988 | main () | |
4989 | { | |
4990 | #ifndef __GNUC__ | |
4991 | choke me | |
4992 | #endif | |
4993 | ||
4994 | ; | |
4995 | return 0; | |
4996 | } | |
4997 | _ACEOF | |
81ecdfbb | 4998 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4999 | ac_compiler_gnu=yes |
5000 | else | |
81ecdfbb | 5001 | ac_compiler_gnu=no |
18f6b6ee | 5002 | fi |
81ecdfbb | 5003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
5004 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5005 | ||
5006 | fi | |
81ecdfbb RW |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5008 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5009 | if test $ac_compiler_gnu = yes; then | |
5010 | GXX=yes | |
5011 | else | |
5012 | GXX= | |
5013 | fi | |
18f6b6ee PB |
5014 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5015 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5017 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 5018 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
5019 | $as_echo_n "(cached) " >&6 |
5020 | else | |
5021 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5022 | ac_cxx_werror_flag=yes | |
5023 | ac_cv_prog_cxx_g=no | |
5024 | CXXFLAGS="-g" | |
5025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
5026 | /* end confdefs.h. */ |
5027 | ||
5028 | int | |
5029 | main () | |
5030 | { | |
5031 | ||
5032 | ; | |
5033 | return 0; | |
5034 | } | |
5035 | _ACEOF | |
81ecdfbb | 5036 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5037 | ac_cv_prog_cxx_g=yes |
5038 | else | |
81ecdfbb RW |
5039 | CXXFLAGS="" |
5040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5041 | /* end confdefs.h. */ |
81ecdfbb | 5042 | |
18f6b6ee PB |
5043 | int |
5044 | main () | |
5045 | { | |
81ecdfbb | 5046 | |
18f6b6ee PB |
5047 | ; |
5048 | return 0; | |
5049 | } | |
5050 | _ACEOF | |
81ecdfbb | 5051 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5052 | |
81ecdfbb RW |
5053 | else |
5054 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5055 | CXXFLAGS="-g" | |
5056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5057 | /* end confdefs.h. */ |
81ecdfbb | 5058 | |
18f6b6ee PB |
5059 | int |
5060 | main () | |
5061 | { | |
81ecdfbb | 5062 | |
18f6b6ee PB |
5063 | ; |
5064 | return 0; | |
5065 | } | |
5066 | _ACEOF | |
81ecdfbb RW |
5067 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5068 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5069 | fi |
81ecdfbb RW |
5070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5071 | fi | |
5072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5073 | fi | |
5074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5075 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5076 | fi | |
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5078 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5079 | if test "$ac_test_CXXFLAGS" = set; then | |
5080 | CXXFLAGS=$ac_save_CXXFLAGS | |
5081 | elif test $ac_cv_prog_cxx_g = yes; then | |
5082 | if test "$GXX" = yes; then | |
5083 | CXXFLAGS="-g -O2" | |
5084 | else | |
5085 | CXXFLAGS="-g" | |
5086 | fi | |
5087 | else | |
5088 | if test "$GXX" = yes; then | |
5089 | CXXFLAGS="-O2" | |
5090 | else | |
5091 | CXXFLAGS= | |
5092 | fi | |
18f6b6ee | 5093 | fi |
18f6b6ee PB |
5094 | ac_ext=c |
5095 | ac_cpp='$CPP $CPPFLAGS' | |
5096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5099 | ||
5100 | ||
5101 | # We must set the default linker to the linker used by gcc for the correct | |
5102 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5103 | # set the LD default to the ld used by gcc. | |
5104 | if test -z "$LD"; then | |
5105 | if test "$GCC" = yes; then | |
5106 | case $build in | |
5107 | *-*-mingw*) | |
5108 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5109 | *) | |
5110 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5111 | esac | |
5112 | case $gcc_prog_ld in | |
5113 | # Accept absolute paths. | |
5114 | [\\/]* | [A-Za-z]:[\\/]*) | |
5115 | LD="$gcc_prog_ld" ;; | |
5116 | esac | |
5117 | fi | |
512b7dfb PB |
5118 | fi |
5119 | ||
b3676d82 EB |
5120 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5121 | have_static_libs=no | |
5122 | if test "$GCC" = yes; then | |
5123 | saved_LDFLAGS="$LDFLAGS" | |
5124 | ||
5125 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5127 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5128 | ac_ext=cpp | |
5129 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5130 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5131 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5132 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5133 | ||
5134 | ||
5135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5136 | /* end confdefs.h. */ | |
a882be68 EB |
5137 | |
5138 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5139 | #error -static-libstdc++ not implemented | |
5140 | #endif | |
b3676d82 EB |
5141 | int main() {} |
5142 | _ACEOF | |
5143 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5145 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5146 | else | |
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5148 | $as_echo "no" >&6; } | |
5149 | fi | |
5150 | rm -f core conftest.err conftest.$ac_objext \ | |
5151 | conftest$ac_exeext conftest.$ac_ext | |
5152 | ac_ext=c | |
5153 | ac_cpp='$CPP $CPPFLAGS' | |
5154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5157 | ||
5158 | ||
5159 | LDFLAGS="$saved_LDFLAGS" | |
5160 | fi | |
5161 | ||
512b7dfb PB |
5162 | |
5163 | ||
5164 | ||
c6b750e1 | 5165 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5166 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5167 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5169 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5170 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5171 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5172 | else |
512b7dfb PB |
5173 | if test -n "$GNATBIND"; then |
5174 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5175 | else |
c6b750e1 DJ |
5176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5177 | for as_dir in $PATH | |
5178 | do | |
5179 | IFS=$as_save_IFS | |
5180 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5181 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5182 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5183 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5185 | break 2 |
5186 | fi | |
5187 | done | |
81ecdfbb RW |
5188 | done |
5189 | IFS=$as_save_IFS | |
c6b750e1 | 5190 | |
9e07f89d NN |
5191 | fi |
5192 | fi | |
512b7dfb PB |
5193 | GNATBIND=$ac_cv_prog_GNATBIND |
5194 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5196 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5197 | else |
81ecdfbb RW |
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5199 | $as_echo "no" >&6; } | |
9e07f89d NN |
5200 | fi |
5201 | ||
81ecdfbb | 5202 | |
c6b750e1 | 5203 | fi |
512b7dfb PB |
5204 | if test -z "$ac_cv_prog_GNATBIND"; then |
5205 | ac_ct_GNATBIND=$GNATBIND | |
5206 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5207 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5209 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5210 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5211 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5212 | else |
512b7dfb PB |
5213 | if test -n "$ac_ct_GNATBIND"; then |
5214 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5215 | else |
c6b750e1 DJ |
5216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5217 | for as_dir in $PATH | |
5218 | do | |
5219 | IFS=$as_save_IFS | |
5220 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5221 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5222 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5223 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5225 | break 2 |
5226 | fi | |
5227 | done | |
81ecdfbb RW |
5228 | done |
5229 | IFS=$as_save_IFS | |
c6b750e1 | 5230 | |
9e07f89d NN |
5231 | fi |
5232 | fi | |
512b7dfb PB |
5233 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5234 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5236 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5237 | else |
81ecdfbb RW |
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5239 | $as_echo "no" >&6; } | |
9e07f89d NN |
5240 | fi |
5241 | ||
81ecdfbb RW |
5242 | if test "x$ac_ct_GNATBIND" = x; then |
5243 | GNATBIND="no" | |
5244 | else | |
5245 | case $cross_compiling:$ac_tool_warned in | |
5246 | yes:) | |
5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5248 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5249 | ac_tool_warned=yes ;; | |
5250 | esac | |
5251 | GNATBIND=$ac_ct_GNATBIND | |
5252 | fi | |
24ff9987 | 5253 | else |
512b7dfb | 5254 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5255 | fi |
5256 | ||
7df2cd5d | 5257 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5258 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5259 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5261 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5262 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5263 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5264 | else |
512b7dfb PB |
5265 | if test -n "$GNATMAKE"; then |
5266 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5267 | else |
5268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5269 | for as_dir in $PATH | |
5270 | do | |
5271 | IFS=$as_save_IFS | |
5272 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5273 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5274 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5275 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5277 | break 2 |
5278 | fi | |
5279 | done | |
81ecdfbb RW |
5280 | done |
5281 | IFS=$as_save_IFS | |
7df2cd5d PB |
5282 | |
5283 | fi | |
5284 | fi | |
512b7dfb PB |
5285 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5286 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5288 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5289 | else |
81ecdfbb RW |
5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5291 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5292 | fi |
5293 | ||
81ecdfbb | 5294 | |
7df2cd5d | 5295 | fi |
512b7dfb PB |
5296 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5297 | ac_ct_GNATMAKE=$GNATMAKE | |
5298 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5299 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5301 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5302 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5303 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5304 | else |
512b7dfb PB |
5305 | if test -n "$ac_ct_GNATMAKE"; then |
5306 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5307 | else |
5308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5309 | for as_dir in $PATH | |
5310 | do | |
5311 | IFS=$as_save_IFS | |
5312 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5313 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5315 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5317 | break 2 |
5318 | fi | |
5319 | done | |
81ecdfbb RW |
5320 | done |
5321 | IFS=$as_save_IFS | |
7df2cd5d | 5322 | |
7df2cd5d PB |
5323 | fi |
5324 | fi | |
512b7dfb PB |
5325 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5326 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5328 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5329 | else |
81ecdfbb RW |
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5331 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5332 | fi |
5333 | ||
81ecdfbb RW |
5334 | if test "x$ac_ct_GNATMAKE" = x; then |
5335 | GNATMAKE="no" | |
5336 | else | |
5337 | case $cross_compiling:$ac_tool_warned in | |
5338 | yes:) | |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5340 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5341 | ac_tool_warned=yes ;; | |
5342 | esac | |
5343 | GNATMAKE=$ac_ct_GNATMAKE | |
5344 | fi | |
7df2cd5d | 5345 | else |
512b7dfb | 5346 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5347 | fi |
5348 | ||
81ecdfbb RW |
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5350 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
d0ac1c44 | 5351 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5352 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5353 | else |
5354 | cat >conftest.adb <<EOF | |
5355 | procedure conftest is begin null; end conftest; | |
5356 | EOF | |
5357 | acx_cv_cc_gcc_supports_ada=no | |
5358 | # There is a bug in old released versions of GCC which causes the | |
5359 | # driver to exit successfully when the appropriate language module | |
5360 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5361 | # Therefore we must check for the error message as well as an | |
5362 | # unsuccessful exit. | |
b8908782 DD |
5363 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5364 | # given a .adb file, but produce no object file. So we must check | |
5365 | # if an object file was really produced to guard against this. | |
9e07f89d | 5366 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5367 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5368 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5369 | fi |
5370 | rm -f conftest.* | |
5371 | fi | |
81ecdfbb RW |
5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5373 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5374 | |
64b986c0 | 5375 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5376 | have_gnat=yes |
5377 | else | |
5378 | have_gnat=no | |
5379 | fi | |
5380 | ||
81ecdfbb RW |
5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5382 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5383 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5384 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5385 | else |
5386 | echo abfoo >t1 | |
5387 | echo cdfoo >t2 | |
da17fe9d | 5388 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5389 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5390 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5391 | : | |
5392 | else | |
5393 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5394 | fi | |
5395 | fi | |
b8908782 DD |
5396 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5397 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5398 | : |
b8908782 DD |
5399 | else |
5400 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5401 | fi | |
5402 | fi | |
5403 | rm t1 t2 | |
5404 | ||
5405 | fi | |
81ecdfbb RW |
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5407 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5408 | do_compare="$gcc_cv_prog_cmp_skip" |
5409 | ||
5410 | ||
9e07f89d | 5411 | |
ffdd6afc ILT |
5412 | # Check whether --enable-bootstrap was given. |
5413 | if test "${enable_bootstrap+set}" = set; then : | |
5414 | enableval=$enable_bootstrap; | |
5415 | else | |
5416 | enable_bootstrap=default | |
5417 | fi | |
5418 | ||
5419 | ||
5420 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5421 | if test -r $srcdir/gcc/configure; then | |
5422 | have_compiler=yes | |
5423 | else | |
5424 | have_compiler=no | |
5425 | fi | |
5426 | ||
5427 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5428 | *:*:*:no) ;; | |
5429 | ||
5430 | # Default behavior. Enable bootstrap if we have a compiler | |
5431 | # and we are in a native configuration. | |
5432 | yes:$build:$build:default) | |
5433 | enable_bootstrap=yes ;; | |
5434 | ||
5435 | *:*:*:default) | |
5436 | enable_bootstrap=no ;; | |
5437 | ||
5438 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5439 | yes:$build:$build:yes) | |
5440 | ;; | |
5441 | ||
5442 | # Other configurations, but we have a compiler. Assume the user knows | |
5443 | # what he's doing. | |
5444 | yes:*:*:yes) | |
5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5446 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5447 | ;; | |
5448 | ||
5449 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5450 | no:*:*:yes) | |
d0ac1c44 | 5451 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5452 | |
5453 | # Fail if wrong command line | |
5454 | *) | |
d0ac1c44 | 5455 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5456 | ;; |
5457 | esac | |
5458 | ||
ce6c656d L |
5459 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5460 | # C++98 compiler can still start the bootstrap. | |
5461 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5462 | CXX="$CXX -std=gnu++98" | |
5463 | fi | |
5464 | ||
d5f2ee2e KG |
5465 | # Used for setting $lt_cv_objdir |
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5467 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 5468 | if ${lt_cv_objdir+:} false; then : |
d5f2ee2e KG |
5469 | $as_echo_n "(cached) " >&6 |
5470 | else | |
5471 | rm -f .libs 2>/dev/null | |
5472 | mkdir .libs 2>/dev/null | |
5473 | if test -d .libs; then | |
5474 | lt_cv_objdir=.libs | |
5475 | else | |
5476 | # MS-DOS does not allow filenames that begin with a dot. | |
5477 | lt_cv_objdir=_libs | |
5478 | fi | |
5479 | rmdir .libs 2>/dev/null | |
5480 | fi | |
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5482 | $as_echo "$lt_cv_objdir" >&6; } | |
5483 | objdir=$lt_cv_objdir | |
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | cat >>confdefs.h <<_ACEOF | |
5490 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5491 | _ACEOF | |
5492 | ||
5493 | ||
5494 | ||
e8a5fa9c | 5495 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5496 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5497 | gmpinc= |
4b900473 | 5498 | have_gmp=no |
e8a5fa9c RW |
5499 | |
5500 | # Specify a location for mpc | |
5501 | # check for this first so it ends up on the link line before mpfr. | |
5502 | ||
81ecdfbb RW |
5503 | # Check whether --with-mpc was given. |
5504 | if test "${with_mpc+set}" = set; then : | |
5505 | withval=$with_mpc; | |
5506 | fi | |
e8a5fa9c | 5507 | |
e8a5fa9c | 5508 | |
e552509b | 5509 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5510 | if test "${with_mpc_include+set}" = set; then : |
5511 | withval=$with_mpc_include; | |
5512 | fi | |
e8a5fa9c | 5513 | |
e8a5fa9c | 5514 | |
e552509b | 5515 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5516 | if test "${with_mpc_lib+set}" = set; then : |
5517 | withval=$with_mpc_lib; | |
5518 | fi | |
e8a5fa9c | 5519 | |
e8a5fa9c RW |
5520 | |
5521 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5522 | gmplibs="-L$with_mpc/lib $gmplibs" |
5523 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5524 | fi |
5525 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5526 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5527 | fi |
5528 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5529 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5530 | fi |
5531 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5532 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5533 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5534 | # Do not test the mpc version. Assume that it is sufficient, since |
5535 | # it is in the source tree, and the library has not been built yet | |
5536 | # but it would be included on the link line in the version check below | |
5537 | # hence making the test fail. | |
d9b76ff9 | 5538 | have_gmp=yes |
e8a5fa9c | 5539 | fi |
4b900473 | 5540 | |
11b04d1f DD |
5541 | # Specify a location for mpfr |
5542 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5543 | |
81ecdfbb RW |
5544 | # Check whether --with-mpfr-dir was given. |
5545 | if test "${with_mpfr_dir+set}" = set; then : | |
d0ac1c44 | 5546 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
81ecdfbb RW |
5547 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5548 | fi | |
5549 | ||
11b04d1f DD |
5550 | |
5551 | ||
81ecdfbb RW |
5552 | # Check whether --with-mpfr was given. |
5553 | if test "${with_mpfr+set}" = set; then : | |
5554 | withval=$with_mpfr; | |
5555 | fi | |
c6b750e1 | 5556 | |
11b04d1f | 5557 | |
e552509b | 5558 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5559 | if test "${with_mpfr_include+set}" = set; then : |
5560 | withval=$with_mpfr_include; | |
5561 | fi | |
c6b750e1 | 5562 | |
8a0d8a5c | 5563 | |
e552509b | 5564 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5565 | if test "${with_mpfr_lib+set}" = set; then : |
5566 | withval=$with_mpfr_lib; | |
5567 | fi | |
8a0d8a5c | 5568 | |
11b04d1f DD |
5569 | |
5570 | if test "x$with_mpfr" != x; then | |
5571 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5572 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5573 | fi |
8a0d8a5c | 5574 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5575 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5576 | fi |
5577 | if test "x$with_mpfr_lib" != x; then | |
5578 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5579 | fi | |
4b900473 | 5580 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 5581 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 5582 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 5583 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 5584 | fi |
05a13254 NC |
5585 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5586 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5587 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
5588 | # Do not test the mpfr version. Assume that it is sufficient, since |
5589 | # it is in the source tree, and the library has not been built yet | |
5590 | # but it would be included on the link line in the version check below | |
5591 | # hence making the test fail. | |
5592 | have_gmp=yes | |
5593 | fi | |
11b04d1f | 5594 | |
4b1cb4fe | 5595 | # Specify a location for gmp |
c6b750e1 | 5596 | |
81ecdfbb RW |
5597 | # Check whether --with-gmp-dir was given. |
5598 | if test "${with_gmp_dir+set}" = set; then : | |
d0ac1c44 | 5599 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
81ecdfbb RW |
5600 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5601 | fi | |
5602 | ||
4b1cb4fe DD |
5603 | |
5604 | ||
81ecdfbb RW |
5605 | # Check whether --with-gmp was given. |
5606 | if test "${with_gmp+set}" = set; then : | |
5607 | withval=$with_gmp; | |
5608 | fi | |
c6b750e1 | 5609 | |
4b1cb4fe | 5610 | |
e552509b | 5611 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5612 | if test "${with_gmp_include+set}" = set; then : |
5613 | withval=$with_gmp_include; | |
5614 | fi | |
c6b750e1 | 5615 | |
8a0d8a5c | 5616 | |
e552509b | 5617 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5618 | if test "${with_gmp_lib+set}" = set; then : |
5619 | withval=$with_gmp_lib; | |
5620 | fi | |
8a0d8a5c PB |
5621 | |
5622 | ||
4b1cb4fe | 5623 | |
11b04d1f DD |
5624 | if test "x$with_gmp" != x; then |
5625 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5626 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5627 | fi |
8a0d8a5c PB |
5628 | if test "x$with_gmp_include" != x; then |
5629 | gmpinc="-I$with_gmp_include $gmpinc" | |
5630 | fi | |
5631 | if test "x$with_gmp_lib" != x; then | |
5632 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5633 | fi | |
4b900473 | 5634 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5635 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5636 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5637 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5638 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5639 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5640 | # Do not test the gmp version. Assume that it is sufficient, since |
5641 | # it is in the source tree, and the library has not been built yet | |
5642 | # but it would be included on the link line in the version check below | |
5643 | # hence making the test fail. | |
5644 | have_gmp=yes | |
5645 | fi | |
4b1cb4fe | 5646 | |
ceb92e78 | 5647 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5648 | have_gmp=yes |
5649 | saved_CFLAGS="$CFLAGS" | |
5650 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5651 | # Check for the recommended and required versions of GMP. |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5653 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5654 | |
5655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5656 | /* end confdefs.h. */ |
5657 | #include "gmp.h" | |
5658 | int | |
5659 | main () | |
5660 | { | |
5661 | ||
5662 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5663 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5664 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5665 | choke me |
5666 | #endif | |
5667 | ||
5668 | ; | |
5669 | return 0; | |
5670 | } | |
5671 | _ACEOF | |
5672 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5674 | /* end confdefs.h. */ |
a6b5846e | 5675 | #include <gmp.h> |
c6b750e1 DJ |
5676 | int |
5677 | main () | |
5678 | { | |
4b1cb4fe | 5679 | |
a6b5846e KG |
5680 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5681 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5682 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5683 | choke me |
5684 | #endif | |
c6b750e1 DJ |
5685 | |
5686 | ; | |
5687 | return 0; | |
5688 | } | |
5689 | _ACEOF | |
81ecdfbb RW |
5690 | if ac_fn_c_try_compile "$LINENO"; then : |
5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5692 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5693 | else |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5695 | $as_echo "buggy but acceptable" >&6; } | |
5696 | fi | |
5697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5698 | else |
81ecdfbb RW |
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5700 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5701 | fi |
81ecdfbb | 5702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5703 | |
e8a5fa9c | 5704 | # If we have GMP, check the MPFR version. |
4b900473 | 5705 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5706 | # Check for the recommended and required versions of MPFR. |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5708 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5710 | /* end confdefs.h. */ |
9b134994 | 5711 | #include <gmp.h> |
4b900473 | 5712 | #include <mpfr.h> |
c6b750e1 DJ |
5713 | int |
5714 | main () | |
5715 | { | |
9b134994 | 5716 | |
7ec59b9e | 5717 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5718 | choke me |
5719 | #endif | |
c6b750e1 DJ |
5720 | |
5721 | ; | |
5722 | return 0; | |
5723 | } | |
5724 | _ACEOF | |
81ecdfbb RW |
5725 | if ac_fn_c_try_compile "$LINENO"; then : |
5726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5727 | /* end confdefs.h. */ |
4b1cb4fe | 5728 | #include <gmp.h> |
4b900473 | 5729 | #include <mpfr.h> |
c6b750e1 DJ |
5730 | int |
5731 | main () | |
5732 | { | |
9dbaa842 | 5733 | |
a6b5846e | 5734 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5735 | choke me |
5736 | #endif | |
e8a5fa9c RW |
5737 | |
5738 | ; | |
5739 | return 0; | |
5740 | } | |
5741 | _ACEOF | |
81ecdfbb RW |
5742 | if ac_fn_c_try_compile "$LINENO"; then : |
5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5744 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5745 | else |
81ecdfbb RW |
5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5747 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5748 | fi |
81ecdfbb | 5749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5750 | else |
81ecdfbb RW |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5752 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5753 | fi |
81ecdfbb | 5754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5755 | fi |
5756 | ||
5757 | # Check for the MPC header version. | |
d9b76ff9 | 5758 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5759 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5761 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5763 | /* end confdefs.h. */ |
5764 | #include <mpc.h> | |
5765 | int | |
5766 | main () | |
5767 | { | |
5768 | ||
a6b5846e KG |
5769 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5770 | choke me | |
5771 | #endif | |
5772 | ||
5773 | ; | |
5774 | return 0; | |
5775 | } | |
5776 | _ACEOF | |
5777 | if ac_fn_c_try_compile "$LINENO"; then : | |
5778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5779 | /* end confdefs.h. */ | |
5780 | #include <mpc.h> | |
5781 | int | |
5782 | main () | |
5783 | { | |
5784 | ||
5785 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5786 | choke me |
5787 | #endif | |
5788 | ||
5789 | ; | |
5790 | return 0; | |
5791 | } | |
5792 | _ACEOF | |
81ecdfbb RW |
5793 | if ac_fn_c_try_compile "$LINENO"; then : |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5795 | $as_echo "yes" >&6; } |
a6b5846e KG |
5796 | else |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5798 | $as_echo "buggy but acceptable" >&6; } | |
5799 | fi | |
5800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5801 | else |
81ecdfbb | 5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5803 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5804 | fi |
81ecdfbb | 5805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5806 | fi |
5807 | ||
5808 | # Now check the MPFR library. | |
5809 | if test x"$have_gmp" = xyes; then | |
5810 | saved_LIBS="$LIBS" | |
5811 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5813 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5815 | /* end confdefs.h. */ |
d9b76ff9 | 5816 | #include <mpc.h> |
e8a5fa9c RW |
5817 | int |
5818 | main () | |
5819 | { | |
5820 | ||
5821 | mpfr_t n; | |
5822 | mpfr_t x; | |
d9b76ff9 | 5823 | mpc_t c; |
e8a5fa9c RW |
5824 | int t; |
5825 | mpfr_init (n); | |
5826 | mpfr_init (x); | |
5827 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5828 | mpfr_erfc (n, x, GMP_RNDN); | |
5829 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5830 | mpfr_clear(n); |
5831 | mpfr_clear(x); | |
5832 | mpc_init2 (c, 53); | |
5833 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5834 | mpc_cosh (c, c, MPC_RNDNN); | |
5835 | mpc_pow (c, c, c, MPC_RNDNN); | |
5836 | mpc_acosh (c, c, MPC_RNDNN); | |
5837 | mpc_clear (c); | |
c6b750e1 DJ |
5838 | |
5839 | ; | |
5840 | return 0; | |
5841 | } | |
5842 | _ACEOF | |
81ecdfbb RW |
5843 | if ac_fn_c_try_link "$LINENO"; then : |
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5845 | $as_echo "yes" >&6; } | |
c6b750e1 | 5846 | else |
81ecdfbb RW |
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5848 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5849 | fi |
81ecdfbb RW |
5850 | rm -f core conftest.err conftest.$ac_objext \ |
5851 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5852 | LIBS="$saved_LIBS" |
5853 | fi | |
5854 | ||
4b900473 | 5855 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5856 | |
a6b5846e KG |
5857 | # The library versions listed in the error message below should match |
5858 | # the HARD-minimums enforced above. | |
4b900473 | 5859 | if test x$have_gmp != xyes; then |
d0ac1c44 | 5860 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5861 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5862 | their locations. Source code for these libraries can be found at | |
5863 | their respective hosting sites as well as at | |
5864 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5865 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5866 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5867 | make sure that you have installed both the libraries and the header | |
5868 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5869 | fi |
9dbaa842 DD |
5870 | fi |
5871 | ||
e8a5fa9c RW |
5872 | # Flags needed for both GMP, MPFR and/or MPC. |
5873 | ||
5874 | ||
5875 | ||
4b1cb4fe DD |
5876 | |
5877 | ||
5878 | ||
7ec59b9e | 5879 | |
b3676d82 | 5880 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5881 | |
b3676d82 EB |
5882 | # Check whether --with-stage1-libs was given. |
5883 | if test "${with_stage1_libs+set}" = set; then : | |
5884 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5885 | stage1_libs= | |
e8a5fa9c | 5886 | else |
b3676d82 | 5887 | stage1_libs=$withval |
e8a5fa9c RW |
5888 | fi |
5889 | else | |
68996839 | 5890 | stage1_libs= |
81ecdfbb RW |
5891 | fi |
5892 | ||
e8a5fa9c RW |
5893 | |
5894 | ||
b3676d82 | 5895 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5896 | |
b3676d82 EB |
5897 | # Check whether --with-stage1-ldflags was given. |
5898 | if test "${with_stage1_ldflags+set}" = set; then : | |
5899 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5900 | stage1_ldflags= | |
e8a5fa9c | 5901 | else |
b3676d82 | 5902 | stage1_ldflags=$withval |
e8a5fa9c RW |
5903 | fi |
5904 | else | |
b3676d82 EB |
5905 | stage1_ldflags= |
5906 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5907 | # if supported. But if the user explicitly specified the libraries to use, | |
5908 | # trust that they are doing what they want. | |
5909 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5910 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5911 | fi | |
81ecdfbb RW |
5912 | fi |
5913 | ||
e8a5fa9c RW |
5914 | |
5915 | ||
68996839 | 5916 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 5917 | |
81ecdfbb RW |
5918 | # Check whether --with-boot-libs was given. |
5919 | if test "${with_boot_libs+set}" = set; then : | |
5920 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5921 | poststage1_libs= |
5922 | else | |
5923 | poststage1_libs=$withval | |
5924 | fi | |
5925 | else | |
68996839 | 5926 | poststage1_libs= |
81ecdfbb RW |
5927 | fi |
5928 | ||
e8a5fa9c RW |
5929 | |
5930 | ||
143754cd NC |
5931 | # Linker flags to use for stage2 and later builds. |
5932 | ||
5933 | # Check whether --with-boot-ldflags was given. | |
5934 | if test "${with_boot_ldflags+set}" = set; then : | |
5935 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5936 | poststage1_ldflags= | |
5937 | else | |
5938 | poststage1_ldflags=$withval | |
5939 | fi | |
5940 | else | |
5941 | poststage1_ldflags= | |
4f11b223 ILT |
5942 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5943 | # statically. But if the user explicitly specified the libraries to | |
5944 | # use, trust that they are doing what they want. | |
5945 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5946 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5947 | fi | |
5948 | fi | |
5949 | ||
5950 | ||
5951 | ||
4849dfd8 | 5952 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 5953 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
5954 | |
5955 | ||
7ec59b9e L |
5956 | # Check whether --with-isl was given. |
5957 | if test "${with_isl+set}" = set; then : | |
5958 | withval=$with_isl; | |
81ecdfbb | 5959 | fi |
e28c595f | 5960 | |
e28c595f | 5961 | |
1b6c0831 | 5962 | # Treat --without-isl as a request to disable |
8e71395b | 5963 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5964 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 5965 | # Check for isl |
8e71395b L |
5966 | |
5967 | ||
7ec59b9e L |
5968 | # Check whether --with-isl-include was given. |
5969 | if test "${with_isl_include+set}" = set; then : | |
5970 | withval=$with_isl_include; | |
81ecdfbb RW |
5971 | fi |
5972 | ||
e28c595f | 5973 | |
7ec59b9e L |
5974 | # Check whether --with-isl-lib was given. |
5975 | if test "${with_isl_lib+set}" = set; then : | |
5976 | withval=$with_isl_lib; | |
81ecdfbb | 5977 | fi |
e28c595f | 5978 | |
e28c595f | 5979 | |
7ec59b9e L |
5980 | # Check whether --enable-isl-version-check was given. |
5981 | if test "${enable_isl_version_check+set}" = set; then : | |
5982 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5983 | else | |
5984 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5985 | fi |
5986 | ||
5987 | ||
7ec59b9e L |
5988 | # Initialize isllibs and islinc. |
5989 | case $with_isl in | |
5990 | no) | |
5991 | isllibs= | |
5992 | islinc= | |
5993 | ;; | |
5994 | "" | yes) | |
5995 | ;; | |
5996 | *) | |
5997 | isllibs="-L$with_isl/lib" | |
5998 | islinc="-I$with_isl/include" | |
5999 | ;; | |
6000 | esac | |
6001 | if test "x${with_isl_include}" != x ; then | |
6002 | islinc="-I$with_isl_include" | |
6003 | fi | |
6004 | if test "x${with_isl_lib}" != x; then | |
6005 | isllibs="-L$with_isl_lib" | |
6006 | fi | |
6007 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
6008 | && test -d ${srcdir}/isl; then | |
6009 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
6010 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
6011 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
6013 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 6014 | fi |
b123da99 | 6015 | |
1b6c0831 | 6016 | isllibs="${isllibs} -lisl" |
b123da99 | 6017 | |
e28c595f | 6018 | |
b3fc79f8 JBG |
6019 | |
6020 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
6021 | _isl_saved_CFLAGS=$CFLAGS | |
6022 | _isl_saved_LDFLAGS=$LDFLAGS | |
6023 | _isl_saved_LIBS=$LIBS | |
6024 | ||
6025 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
6026 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6027 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 6028 | |
bf41f30d NC |
6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
6030 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 6031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 6032 | /* end confdefs.h. */ |
bf41f30d | 6033 | #include <isl/schedule.h> |
b3fc79f8 JBG |
6034 | int |
6035 | main () | |
6036 | { | |
bf41f30d | 6037 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
6038 | ; |
6039 | return 0; | |
6040 | } | |
6041 | _ACEOF | |
1b6c0831 | 6042 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
6043 | gcc_cv_isl=yes |
6044 | else | |
6045 | gcc_cv_isl=no | |
6046 | fi | |
1b6c0831 L |
6047 | rm -f core conftest.err conftest.$ac_objext \ |
6048 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6050 | $as_echo "$gcc_cv_isl" >&6; } | |
6051 | ||
4849dfd8 | 6052 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
6054 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
6055 | fi |
6056 | ||
b3fc79f8 JBG |
6057 | CFLAGS=$_isl_saved_CFLAGS |
6058 | LDFLAGS=$_isl_saved_LDFLAGS | |
6059 | LIBS=$_isl_saved_LIBS | |
6060 | fi | |
6061 | ||
6062 | ||
e28c595f | 6063 | |
e28c595f | 6064 | |
7ec59b9e L |
6065 | |
6066 | ||
7ec59b9e L |
6067 | if test "x${with_isl}" = xno; then |
6068 | graphite_requested=no | |
6069 | elif test "x${with_isl}" != x \ | |
6070 | || test "x${with_isl_include}" != x \ | |
6071 | || test "x${with_isl_lib}" != x ; then | |
6072 | graphite_requested=yes | |
6073 | else | |
6074 | graphite_requested=no | |
b123da99 | 6075 | fi |
e28c595f | 6076 | |
e28c595f JM |
6077 | |
6078 | ||
7ec59b9e L |
6079 | if test "${gcc_cv_isl}" = no ; then |
6080 | isllibs= | |
6081 | islinc= | |
6082 | fi | |
e28c595f | 6083 | |
7ec59b9e L |
6084 | if test "${graphite_requested}" = yes \ |
6085 | && test "x${isllibs}" = x \ | |
6086 | && test "x${islinc}" = x ; then | |
e28c595f | 6087 | |
d0ac1c44 | 6088 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 6089 | fi |
e552509b | 6090 | |
e28c595f | 6091 | |
e552509b ILT |
6092 | fi |
6093 | ||
4849dfd8 | 6094 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 6095 | if test "x$with_isl" = xno || |
8e71395b | 6096 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6097 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6098 | islinc= |
7ec59b9e L |
6099 | fi |
6100 | ||
8e71395b L |
6101 | |
6102 | ||
6103 | ||
700d40ca ILT |
6104 | # Check for LTO support. |
6105 | # Check whether --enable-lto was given. | |
6106 | if test "${enable_lto+set}" = set; then : | |
6107 | enableval=$enable_lto; enable_lto=$enableval | |
6108 | else | |
6109 | enable_lto=yes; default_enable_lto=yes | |
6110 | fi | |
6111 | ||
6112 | ||
143754cd | 6113 | |
e49e5c92 DK |
6114 | |
6115 | ||
6116 | target_elf=no | |
6117 | case $target in | |
6118 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6119 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6120 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6121 | nvptx-*-none) | |
e49e5c92 DK |
6122 | target_elf=no |
6123 | ;; | |
6124 | *) | |
6125 | target_elf=yes | |
6126 | ;; | |
6127 | esac | |
6128 | ||
6129 | if test $target_elf = yes; then : | |
74cea91b DK |
6130 | # ELF platforms build the lto-plugin always. |
6131 | build_lto_plugin=yes | |
e49e5c92 | 6132 | |
e49e5c92 DK |
6133 | else |
6134 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6135 | case $target in |
bf41f30d | 6136 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6137 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6138 | *) enable_lto=no ;; |
6139 | esac | |
e49e5c92 | 6140 | else |
29821356 RW |
6141 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6142 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6143 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6144 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6145 | # -flto it won't be needed until after installation anyway. | |
6146 | case $target in | |
52cf9762 | 6147 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 6148 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 6149 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
6150 | fi |
6151 | ;; | |
6152 | esac | |
6153 | fi | |
a8eb3f0a | 6154 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6155 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6156 | case $target in |
74cea91b | 6157 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6158 | *) ;; |
6159 | esac | |
74cea91b | 6160 | |
e49e5c92 DK |
6161 | fi |
6162 | ||
700d40ca | 6163 | |
1b6c0831 L |
6164 | # Check whether --enable-linker-plugin-configure-flags was given. |
6165 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6166 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6167 | else | |
6168 | extra_linker_plugin_configure_flags= | |
6169 | fi | |
6170 | ||
6171 | ||
6172 | # Check whether --enable-linker-plugin-flags was given. | |
6173 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6174 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6175 | else | |
6176 | extra_linker_plugin_flags= | |
6177 | fi | |
6178 | ||
6179 | ||
6180 | ||
bf41f30d NC |
6181 | # Enable --enable-host-shared. |
6182 | # Checked early to determine whether jit is an 'all' language | |
6183 | # Check whether --enable-host-shared was given. | |
6184 | if test "${enable_host_shared+set}" = set; then : | |
6185 | enableval=$enable_host_shared; host_shared=$enableval | |
6186 | else | |
6187 | host_shared=no | |
6188 | fi | |
6189 | ||
6190 | ||
e28c595f | 6191 | |
7ec59b9e | 6192 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6193 | stage1_languages=,c, |
1d39f329 | 6194 | |
e8a5fa9c | 6195 | # Target libraries that we bootstrap. |
2aa2364a | 6196 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6197 | |
9e07f89d NN |
6198 | # Figure out what language subdirectories are present. |
6199 | # Look if the user specified --enable-languages="..."; if not, use | |
6200 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6201 | # go away some day. | |
6202 | # NB: embedded tabs in this IF block -- do not untabify | |
6203 | if test -d ${srcdir}/gcc; then | |
6204 | if test x"${enable_languages+set}" != xset; then | |
6205 | if test x"${LANGUAGES+set}" = xset; then | |
6206 | enable_languages="${LANGUAGES}" | |
136bb21f | 6207 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 6208 | else |
bf41f30d | 6209 | enable_languages=default |
9e07f89d NN |
6210 | fi |
6211 | else | |
6212 | if test x"${enable_languages}" = x || | |
6213 | test x"${enable_languages}" = xyes; | |
6214 | then | |
136bb21f | 6215 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6216 | exit 1 |
6217 | fi | |
6218 | fi | |
6219 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6220 | ||
096f7d00 DE |
6221 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6222 | # and make the substitution. | |
6223 | case ,${enable_languages}, in | |
6224 | *,f95,*) | |
136bb21f | 6225 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6226 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6227 | ;; | |
6228 | esac | |
6229 | ||
7ec59b9e L |
6230 | # If bootstrapping, C++ must be enabled. |
6231 | case ",$enable_languages,:$enable_bootstrap" in | |
6232 | *,c++,*:*) ;; | |
6233 | *:yes) | |
ffdd6afc ILT |
6234 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6235 | enable_languages="${enable_languages},c++" | |
6236 | else | |
d0ac1c44 | 6237 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6238 | fi |
6239 | ;; | |
6240 | esac | |
6241 | ||
9e07f89d NN |
6242 | # First scan to see if an enabled language requires some other language. |
6243 | # We assume that a given config-lang.in will list all the language | |
6244 | # front ends it requires, even if some are required indirectly. | |
6245 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6246 | case ${lang_frag} in | |
6247 | ..) ;; | |
6248 | # The odd quoting in the next line works around | |
6249 | # an apparent bug in bash 1.12 on linux. | |
6250 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6251 | *) | |
e552509b ILT |
6252 | # From the config-lang.in, get $language, $lang_requires, and |
6253 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6254 | language= |
6255 | lang_requires= | |
e552509b | 6256 | lang_requires_boot_languages= |
bf41f30d NC |
6257 | # set srcdir during sourcing lang_frag to the gcc dir. |
6258 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6259 | # polutes this shell | |
6260 | saved_srcdir=${srcdir} | |
6261 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6262 | srcdir=${saved_srcdir} | |
e552509b | 6263 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6264 | case ,${enable_languages}, in |
6265 | *,$other,*) ;; | |
bf41f30d | 6266 | *,default,*) ;; |
9e07f89d NN |
6267 | *,all,*) ;; |
6268 | *,$language,*) | |
6269 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6270 | enable_languages="${enable_languages},${other}" | |
6271 | ;; | |
6272 | esac | |
6273 | done | |
e552509b ILT |
6274 | for other in ${lang_requires_boot_languages} ; do |
6275 | if test "$other" != "c"; then | |
6276 | case ,${enable_stage1_languages}, in | |
6277 | *,$other,*) ;; | |
bf41f30d | 6278 | *,default,*) ;; |
e552509b ILT |
6279 | *,all,*) ;; |
6280 | *) | |
6281 | case ,${enable_languages}, in | |
6282 | *,$language,*) | |
6283 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6284 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6285 | ;; | |
6286 | esac | |
6287 | ;; | |
6288 | esac | |
6289 | fi | |
6290 | done | |
9e07f89d NN |
6291 | ;; |
6292 | esac | |
6293 | done | |
6294 | ||
9b134994 | 6295 | new_enable_languages=,c, |
700d40ca ILT |
6296 | |
6297 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6298 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6299 | case ,${enable_languages}, in |
6300 | *,lto,*) ;; | |
6301 | *) enable_languages="${enable_languages},lto" ;; | |
6302 | esac | |
a8eb3f0a | 6303 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6304 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6305 | fi |
6306 | fi | |
6307 | ||
1b6c0831 L |
6308 | # If we're building an offloading compiler, add the LTO front end. |
6309 | if test x"$enable_as_accelerator_for" != x ; then | |
6310 | case ,${enable_languages}, in | |
6311 | *,lto,*) ;; | |
6312 | *) enable_languages="${enable_languages},lto" ;; | |
6313 | esac | |
6314 | fi | |
700d40ca | 6315 | |
bf41f30d | 6316 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6317 | potential_languages=,c, |
9e07f89d | 6318 | |
9e1a94f4 ILT |
6319 | enabled_target_libs= |
6320 | disabled_target_libs= | |
6321 | ||
9e07f89d NN |
6322 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6323 | case ${lang_frag} in | |
6324 | ..) ;; | |
6325 | # The odd quoting in the next line works around | |
6326 | # an apparent bug in bash 1.12 on linux. | |
6327 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6328 | *) | |
c6b750e1 | 6329 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6330 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6331 | language= |
6332 | target_libs= | |
6333 | lang_dirs= | |
64ce424c | 6334 | subdir_requires= |
9b134994 PB |
6335 | boot_language=no |
6336 | build_by_default=yes | |
bf41f30d NC |
6337 | # set srcdir during sourcing. See above about save & restore |
6338 | saved_srcdir=${srcdir} | |
6339 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6340 | srcdir=${saved_srcdir} | |
9b134994 PB |
6341 | if test x${language} = x; then |
6342 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6343 | exit 1 | |
6344 | fi | |
6345 | ||
ffdd6afc | 6346 | if test "$language" = "c++"; then |
7ec59b9e | 6347 | boot_language=yes |
e8a5fa9c RW |
6348 | fi |
6349 | ||
8e71395b | 6350 | add_this_lang=no |
bf41f30d NC |
6351 | # C is always enabled, so no need to add it again |
6352 | if test "$language" != "c"; then | |
6353 | case ,${enable_languages}, in | |
6354 | *,${language},*) | |
6355 | # Language was explicitly selected; include it | |
7ec59b9e | 6356 | add_this_lang=yes |
bf41f30d NC |
6357 | ;; |
6358 | *,all,*) | |
6359 | # All languages are enabled | |
6360 | add_this_lang=all | |
6361 | ;; | |
6362 | *,default,*) | |
6363 | # 'default' was selected, select it if it is a default language | |
8e71395b | 6364 | add_this_lang=${build_by_default} |
bf41f30d NC |
6365 | ;; |
6366 | esac | |
6367 | fi | |
4b1cb4fe | 6368 | |
64ce424c | 6369 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6370 | for i in $subdir_requires; do |
3d3adb43 | 6371 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
6372 | case ${add_this_lang} in |
6373 | yes) | |
64ce424c | 6374 | # Specifically requested language; tell them. |
d0ac1c44 | 6375 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 6376 | ;; |
bf41f30d NC |
6377 | all) |
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6379 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6380 | add_this_lang=unsupported | |
6381 | ;; | |
64ce424c PB |
6382 | *) |
6383 | # Silently disable. | |
9b134994 | 6384 | add_this_lang=unsupported |
64ce424c PB |
6385 | ;; |
6386 | esac | |
6387 | done | |
6388 | ||
9b134994 | 6389 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
6390 | case ${add_this_lang}:${language}:${have_gnat} in |
6391 | yes:ada:no) | |
9b134994 | 6392 | # Specifically requested language; tell them. |
d0ac1c44 | 6393 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 6394 | ;; |
bf41f30d NC |
6395 | all:ada:no) |
6396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6397 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6398 | add_this_lang=unsupported | |
6399 | ;; | |
9b134994 PB |
6400 | *:ada:no) |
6401 | # Silently disable. | |
6402 | add_this_lang=unsupported | |
6403 | ;; | |
6404 | esac | |
6405 | ||
bf41f30d NC |
6406 | # Disable jit if -enable-host-shared not specified |
6407 | case ${add_this_lang}:${language}:${host_shared} in | |
6408 | yes:jit:no) | |
6409 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 6410 | as_fn_error $? " |
bf41f30d NC |
6411 | Enabling language \"jit\" requires --enable-host-shared. |
6412 | ||
6413 | --enable-host-shared typically slows the rest of the compiler down by | |
6414 | a few %, so you must explicitly enable it. | |
6415 | ||
6416 | If you want to build both the jit and the regular compiler, it is often | |
6417 | best to do this via two separate configure/builds, in separate | |
6418 | directories, to avoid imposing the performance cost of | |
6419 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6420 | ;; | |
6421 | all:jit:no) | |
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6423 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6424 | add_this_lang=unsupported | |
6425 | ;; | |
6426 | *:jit:no) | |
6427 | # Silently disable. | |
6428 | add_this_lang=unsupported | |
6429 | ;; | |
6430 | esac | |
6431 | ||
6432 | # Disable a language that is unsupported by the target. | |
6433 | case "${add_this_lang}: $unsupported_languages " in | |
6434 | no:*) ;; | |
6435 | unsupported:*) ;; | |
6436 | *:*" $language "*) | |
6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6438 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 6439 | add_this_lang=unsupported |
59f7ec45 HPN |
6440 | ;; |
6441 | esac | |
6442 | ||
4b1cb4fe | 6443 | case $add_this_lang in |
9b134994 | 6444 | unsupported) |
9e07f89d | 6445 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6446 | disabled_target_libs="$disabled_target_libs $target_libs" |
6447 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6448 | ;; |
9b134994 PB |
6449 | no) |
6450 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6451 | disabled_target_libs="$disabled_target_libs $target_libs" |
6452 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6453 | potential_languages="${potential_languages}${language}," |
6454 | ;; | |
bf41f30d | 6455 | all|yes) |
9b134994 PB |
6456 | new_enable_languages="${new_enable_languages}${language}," |
6457 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6458 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6459 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6460 | case "${boot_language}:,$enable_stage1_languages," in |
6461 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6462 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6463 | case ",$stage1_languages," in |
6464 | *,$language,* | ,yes, | ,all,) ;; | |
6465 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6466 | esac | |
e8a5fa9c RW |
6467 | # We need to bootstrap any supporting libraries. |
6468 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6469 | ;; |
6470 | esac | |
6471 | ;; | |
9e07f89d NN |
6472 | esac |
6473 | ;; | |
6474 | esac | |
6475 | done | |
6476 | ||
9e1a94f4 ILT |
6477 | # Add target libraries which are only needed for disabled languages |
6478 | # to noconfigdirs. | |
6479 | if test -n "$disabled_target_libs"; then | |
6480 | for dir in $disabled_target_libs; do | |
6481 | case " $enabled_target_libs " in | |
6482 | *" ${dir} "*) ;; | |
6483 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6484 | esac | |
6485 | done | |
6486 | fi | |
6487 | ||
81ecdfbb RW |
6488 | # Check whether --enable-stage1-languages was given. |
6489 | if test "${enable_stage1_languages+set}" = set; then : | |
6490 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6491 | ,no,|,,) |
6492 | # Set it to something that will have no effect in the loop below | |
6493 | enable_stage1_languages=c ;; | |
6494 | ,yes,) | |
6495 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6496 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6497 | *,all,*) | |
6498 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6499 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6500 | esac | |
6501 | ||
6502 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6503 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6504 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6505 | case $potential_languages in | |
6506 | *,$i,*) | |
6507 | case $stage1_languages in | |
6508 | *,$i,*) ;; | |
6509 | *) stage1_languages="$stage1_languages$i," ;; | |
6510 | esac ;; | |
6511 | *) | |
6512 | case $missing_languages in | |
6513 | *,$i,*) ;; | |
6514 | *) missing_languages="$missing_languages$i," ;; | |
6515 | esac ;; | |
6516 | esac | |
6517 | done | |
81ecdfbb RW |
6518 | fi |
6519 | ||
9b134994 PB |
6520 | |
6521 | # Remove leading/trailing commas that were added for simplicity | |
6522 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6523 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6524 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6525 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6526 | ||
9e07f89d | 6527 | if test "x$missing_languages" != x; then |
d0ac1c44 | 6528 | as_fn_error $? " |
27258dd4 | 6529 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6530 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6531 | fi |
9e07f89d NN |
6532 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6533 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6534 | enable_languages="$new_enable_languages" |
9e07f89d | 6535 | fi |
9b134994 | 6536 | |
c6b750e1 | 6537 | |
81ec575a | 6538 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6539 | fi |
6540 | ||
a6df5a19 PB |
6541 | # Handle --disable-<component> generically. |
6542 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6543 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6544 | varname=`echo $dirname | sed -e s/+/_/g` |
6545 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6546 | noconfigdirs="$noconfigdirs $dir" |
6547 | fi | |
6548 | done | |
6549 | ||
4f0ef2d8 | 6550 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6551 | # Check whether --enable-objc-gc was given. |
6552 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 6553 | enableval=$enable_objc_gc; |
81ecdfbb RW |
6554 | fi |
6555 | ||
4f0ef2d8 | 6556 | |
05a13254 NC |
6557 | # Check whether --with-target-bdw-gc was given. |
6558 | if test "${with_target_bdw_gc+set}" = set; then : | |
6559 | withval=$with_target_bdw_gc; | |
6560 | fi | |
6561 | ||
6562 | ||
6563 | # Check whether --with-target-bdw-gc-include was given. | |
6564 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6565 | withval=$with_target_bdw_gc_include; | |
6566 | fi | |
6567 | ||
6568 | ||
6569 | # Check whether --with-target-bdw-gc-lib was given. | |
6570 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6571 | withval=$with_target_bdw_gc_lib; | |
6572 | fi | |
6573 | ||
6574 | ||
6575 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6577 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6578 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
6580 | $as_echo "using bdw-gc in default locations" >&6; } | |
6581 | else | |
6582 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 6583 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 6584 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 6585 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
6586 | else |
6587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6588 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 6589 | fi |
05a13254 | 6590 | fi |
4f0ef2d8 CD |
6591 | esac |
6592 | ||
bf41f30d | 6593 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6594 | case ,${enable_languages}, in |
1b6c0831 | 6595 | *,c++,*) |
bf41f30d | 6596 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
6597 | case "${noconfigdirs}" in |
6598 | *target-libstdc++-v3*) | |
bf41f30d | 6599 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
6600 | ;; |
6601 | *) ;; | |
6602 | esac | |
6603 | ;; | |
7ec59b9e | 6604 | *) |
bf41f30d | 6605 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6606 | ;; |
6607 | esac | |
6608 | ||
caeba88f AL |
6609 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6610 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6611 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6612 | ||
6613 | notsupp="" | |
6614 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6615 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6616 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6617 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6618 | if test -r $srcdir/$dirname/configure ; then | |
6619 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6620 | true | |
6621 | else | |
6622 | notsupp="$notsupp $dir" | |
6623 | fi | |
6624 | fi | |
6625 | fi | |
caeba88f AL |
6626 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6627 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6628 | if test -r $srcdir/$dirname/configure ; then | |
6629 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6630 | true | |
6631 | else | |
6632 | notsupp="$notsupp $dir" | |
6633 | fi | |
6634 | fi | |
6635 | fi | |
9e07f89d NN |
6636 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6637 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6638 | if test -r $srcdir/$dirname/configure ; then | |
6639 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6640 | true | |
6641 | else | |
6642 | notsupp="$notsupp $dir" | |
6643 | fi | |
6644 | fi | |
6645 | fi | |
6646 | done | |
6647 | ||
9e07f89d NN |
6648 | # Quietly strip out all directories which aren't configurable in this tree. |
6649 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6650 | # is now the case. | |
6a9cf61e PB |
6651 | build_configdirs_all="$build_configdirs" |
6652 | build_configdirs= | |
6653 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6654 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6655 | if test -f ${srcdir}/$j/configure ; then |
6656 | build_configdirs="${build_configdirs} $i" | |
6657 | fi | |
6658 | done | |
6659 | ||
9e07f89d NN |
6660 | configdirs_all="$configdirs" |
6661 | configdirs= | |
6662 | for i in ${configdirs_all} ; do | |
6663 | if test -f ${srcdir}/$i/configure ; then | |
6664 | configdirs="${configdirs} $i" | |
6665 | fi | |
6666 | done | |
6a9cf61e | 6667 | |
9e07f89d NN |
6668 | target_configdirs_all="$target_configdirs" |
6669 | target_configdirs= | |
6670 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6671 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6672 | if test -f ${srcdir}/$j/configure ; then |
6673 | target_configdirs="${target_configdirs} $i" | |
6674 | fi | |
6675 | done | |
6676 | ||
1b6c0831 L |
6677 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6678 | # so we have to add it after the preceding checks. | |
6679 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6680 | then | |
6681 | case " $configdirs " in | |
6682 | *" libiberty "*) | |
6683 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6684 | configdirs="$configdirs libiberty-linker-plugin" | |
6685 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6686 | --with-libiberty=../libiberty-linker-plugin";; | |
6687 | *) | |
d0ac1c44 | 6688 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
6689 | esac |
6690 | fi | |
6691 | ||
6692 | # Sometimes we have special requirements for the host libiberty. | |
6693 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6694 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6695 | case " $configdirs " in |
6696 | *" lto-plugin "* | *" libcc1 "*) | |
6697 | # When these are to be built as shared libraries, the same applies to | |
6698 | # libiberty. | |
6699 | extra_host_libiberty_configure_flags=--enable-shared | |
6700 | ;; | |
e81d5d05 L |
6701 | *" bfd "*) |
6702 | # When bfd is to be built as a shared library, the same applies to | |
6703 | # zlib. | |
6704 | if test "$enable_shared" = "yes"; then | |
6705 | extra_host_zlib_configure_flags=--enable-host-shared | |
6706 | fi | |
6707 | ;; | |
1b6c0831 L |
6708 | esac |
6709 | ||
6710 | ||
e81d5d05 | 6711 | |
9e07f89d NN |
6712 | # Produce a warning message for the subdirs we can't configure. |
6713 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6714 | # FSF releases, it's important to let people know when their machine isn't | |
6715 | # supported by the one or two programs in a package. | |
6716 | ||
6717 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6718 | # If $appdirs is non-empty, at least one of those directories must still | |
6719 | # be configured, or we error out. (E.g., if the gas release supports a | |
6720 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6721 | # pretend that all is well.) | |
6722 | if test -n "$appdirs" ; then | |
6723 | for dir in $appdirs ; do | |
6724 | if test -r $dir/Makefile.in ; then | |
6725 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6726 | appdirs="" | |
6727 | break | |
6728 | fi | |
6a9cf61e | 6729 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6730 | appdirs="" |
6731 | break | |
6732 | fi | |
6733 | fi | |
6734 | done | |
6735 | if test -n "$appdirs" ; then | |
6736 | echo "*** This configuration is not supported by this package." 1>&2 | |
6737 | exit 1 | |
6738 | fi | |
6739 | fi | |
6740 | # Okay, some application will build, or we don't care to check. Still | |
6741 | # notify of subdirs not getting built. | |
6742 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6743 | echo " ${notsupp}" 1>&2 | |
6744 | echo " (Any other directories should still work fine.)" 1>&2 | |
6745 | fi | |
6746 | ||
6747 | case "$host" in | |
6748 | *msdosdjgpp*) | |
6749 | enable_gdbtk=no ;; | |
6750 | esac | |
6751 | ||
18f6b6ee PB |
6752 | # To find our prefix, in gcc_cv_tool_prefix. |
6753 | ||
6754 | # The user is always right. | |
6755 | if test "${PATH_SEPARATOR+set}" != set; then | |
6756 | echo "#! /bin/sh" >conf$$.sh | |
6757 | echo "exit 0" >>conf$$.sh | |
6758 | chmod +x conf$$.sh | |
6759 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6760 | PATH_SEPARATOR=';' | |
6761 | else | |
6762 | PATH_SEPARATOR=: | |
6763 | fi | |
6764 | rm -f conf$$.sh | |
6765 | fi | |
6766 | ||
6767 | ||
bf41f30d NC |
6768 | get_gcc_base_ver="cat" |
6769 | ||
6770 | # Check whether --with-gcc-major-version-only was given. | |
6771 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6772 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 6773 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
6774 | fi |
6775 | ||
6776 | fi | |
6777 | ||
6778 | ||
6779 | ||
6780 | ||
6781 | ||
18f6b6ee PB |
6782 | |
6783 | if test "x$exec_prefix" = xNONE; then | |
6784 | if test "x$prefix" = xNONE; then | |
6785 | gcc_cv_tool_prefix=$ac_default_prefix | |
6786 | else | |
6787 | gcc_cv_tool_prefix=$prefix | |
6788 | fi | |
6789 | else | |
6790 | gcc_cv_tool_prefix=$exec_prefix | |
6791 | fi | |
6792 | ||
6793 | # If there is no compiler in the tree, use the PATH only. In any | |
6794 | # case, if there is no compiler in the tree nobody should use | |
6795 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6796 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
6797 | if test x$with_gcc_major_version_only = xyes ; then |
6798 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6799 | else | |
6800 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6801 | fi | |
18f6b6ee PB |
6802 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6803 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6804 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6805 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6806 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6807 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6808 | else | |
6809 | gcc_cv_tool_dirs= | |
6810 | fi | |
6811 | ||
6812 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6813 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6814 | fi | |
6815 | ||
6816 | ||
6817 | ||
9e07f89d NN |
6818 | copy_dirs= |
6819 | ||
c6b750e1 | 6820 | |
81ecdfbb RW |
6821 | # Check whether --with-build-sysroot was given. |
6822 | if test "${with_build_sysroot+set}" = set; then : | |
6823 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6824 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6825 | fi | |
6826 | else | |
6827 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6828 | fi |
a19b6204 MM |
6829 | |
6830 | ||
8a6ee3ab | 6831 | |
81ecdfbb RW |
6832 | |
6833 | # Check whether --with-debug-prefix-map was given. | |
6834 | if test "${with_debug_prefix_map+set}" = set; then : | |
6835 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6836 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6837 | for debug_map in $withval; do | |
6838 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6839 | done | |
6840 | fi | |
6841 | else | |
6842 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6843 | fi |
6844 | ||
8a6ee3ab JM |
6845 | |
6846 | ||
7f6ef0c0 PB |
6847 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6848 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6849 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6850 | # We want to ensure that TARGET libraries (which we know are built with | |
6851 | # gcc) are built with "-O2 -g", so include those options when setting | |
6852 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6853 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6854 | if test "x${is_cross_compiler}" = xyes; then |
6855 | CFLAGS_FOR_TARGET="-g -O2" | |
6856 | else | |
6857 | CFLAGS_FOR_TARGET=$CFLAGS | |
6858 | case " $CFLAGS " in | |
6859 | *" -O2 "*) ;; | |
6860 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6861 | esac | |
6862 | case " $CFLAGS " in | |
6863 | *" -g "* | *" -g3 "*) ;; | |
6864 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6865 | esac | |
6866 | fi | |
7f6ef0c0 PB |
6867 | fi |
6868 | ||
6869 | ||
6870 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6871 | if test "x${is_cross_compiler}" = xyes; then |
6872 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6873 | else | |
6874 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6875 | case " $CXXFLAGS " in | |
6876 | *" -O2 "*) ;; | |
6877 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6878 | esac | |
6879 | case " $CXXFLAGS " in | |
6880 | *" -g "* | *" -g3 "*) ;; | |
6881 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6882 | esac | |
6883 | fi | |
7f6ef0c0 PB |
6884 | fi |
6885 | ||
6886 | ||
91c1f14c DK |
6887 | |
6888 | ||
9e07f89d NN |
6889 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6890 | # the named directory are copied to $(tooldir)/sys-include. | |
6891 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6892 | if test x${is_cross_compiler} = xno ; then | |
6893 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6894 | exit 1 | |
6895 | fi | |
6896 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6897 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6898 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6899 | fi |
6900 | fi | |
6901 | ||
6902 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6903 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6904 | # are permitted. | |
6905 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6906 | if test x${is_cross_compiler} = xno ; then | |
6907 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6908 | exit 1 | |
6909 | fi | |
6910 | if test x"${with_libs}" != xyes ; then | |
6911 | # Copy the libraries in reverse order, so that files in the first named | |
6912 | # library override files in subsequent libraries. | |
18f6b6ee | 6913 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6914 | for l in ${with_libs}; do |
c6b750e1 | 6915 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6916 | done |
6917 | fi | |
6918 | fi | |
6919 | ||
700d40ca | 6920 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6921 | # |
6922 | # This is done by determining whether or not the appropriate directory | |
6923 | # is available, and by checking whether or not specific configurations | |
6924 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6925 | # |
6926 | # The command line options always override the explicit settings in | |
136bb21f | 6927 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 6928 | # |
c6b750e1 | 6929 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6930 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6931 | # --without-gnu-ld options for the configure script. Similarly, if |
6932 | # the default is to use the included zlib and you don't want to do that, | |
6933 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6934 | |
6935 | if test x${use_gnu_as} = x && | |
6936 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6937 | with_gnu_as=yes | |
6938 | extra_host_args="$extra_host_args --with-gnu-as" | |
6939 | fi | |
6940 | ||
6941 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6942 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6943 | with_gnu_ld=yes |
6944 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6945 | fi | |
6946 | ||
700d40ca ILT |
6947 | if test x${use_included_zlib} = x && |
6948 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6949 | : | |
6950 | else | |
6951 | with_system_zlib=yes | |
6952 | extra_host_args="$extra_host_args --with-system-zlib" | |
6953 | fi | |
6954 | ||
2429c060 PB |
6955 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6956 | # can detect this case. | |
6957 | ||
6958 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6959 | with_newlib=yes | |
6960 | extra_host_args="$extra_host_args --with-newlib" | |
6961 | fi | |
6962 | ||
9e07f89d NN |
6963 | # Handle ${copy_dirs} |
6964 | set fnord ${copy_dirs} | |
6965 | shift | |
6966 | while test $# != 0 ; do | |
6967 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6968 | : | |
6969 | else | |
6970 | echo Copying $1 to $2 | |
6971 | ||
6972 | # Use the install script to create the directory and all required | |
6973 | # parent directories. | |
6974 | if test -d $2 ; then | |
6975 | : | |
6976 | else | |
6977 | echo >config.temp | |
6978 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6979 | fi | |
6980 | ||
6981 | # Copy the directory, assuming we have tar. | |
6982 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6983 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6984 | ||
6985 | # It is the responsibility of the user to correctly adjust all | |
6986 | # symlinks. If somebody can figure out how to handle them correctly | |
6987 | # here, feel free to add the code. | |
6988 | ||
6989 | echo $1 > $2/COPIED | |
6990 | fi | |
6991 | shift; shift | |
6992 | done | |
6993 | ||
2429c060 PB |
6994 | # Determine a target-dependent exec_prefix that the installed |
6995 | # gcc will search in. Keep this list sorted by triplet, with | |
6996 | # the *-*-osname triplets last. | |
6997 | md_exec_prefix= | |
6998 | case "${target}" in | |
521ec477 | 6999 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
7000 | md_exec_prefix=/dev/env/DJDIR/bin |
7001 | ;; | |
2429c060 | 7002 | *-*-hpux* | \ |
2429c060 | 7003 | *-*-nto-qnx* | \ |
1f111696 | 7004 | *-*-solaris2*) |
2429c060 PB |
7005 | md_exec_prefix=/usr/ccs/bin |
7006 | ;; | |
7007 | esac | |
7008 | ||
a0da8069 NN |
7009 | extra_arflags_for_target= |
7010 | extra_nmflags_for_target= | |
7011 | extra_ranlibflags_for_target= | |
7012 | target_makefile_frag=/dev/null | |
7013 | case "${target}" in | |
77d7106f AM |
7014 | spu-*-*) |
7015 | target_makefile_frag="config/mt-spu" | |
7016 | ;; | |
a9d58c06 | 7017 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
7018 | target_makefile_frag="config/mt-sde" |
7019 | ;; | |
f3b1e08e RS |
7020 | mipsisa*-*-elfoabi*) |
7021 | target_makefile_frag="config/mt-mips-elfoabi" | |
7022 | ;; | |
e7c8859c RS |
7023 | mips*-*-*linux* | mips*-*-gnu*) |
7024 | target_makefile_frag="config/mt-mips-gnu" | |
7025 | ;; | |
d9e042ac SL |
7026 | nios2-*-elf*) |
7027 | target_makefile_frag="config/mt-nios2-elf" | |
7028 | ;; | |
bf41f30d NC |
7029 | *-*-linux-android*) |
7030 | target_makefile_frag="config/mt-android" | |
7031 | ;; | |
29383458 | 7032 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 7033 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
7034 | ;; |
7035 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 7036 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
7037 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7038 | # harmless if we're using GNU nm or ar. | |
7039 | extra_arflags_for_target=" -X32_64" | |
7040 | extra_nmflags_for_target=" -B -X32_64" | |
7041 | ;; | |
a0da8069 NN |
7042 | esac |
7043 | ||
7044 | alphaieee_frag=/dev/null | |
7045 | case $target in | |
7046 | alpha*-*-*) | |
7047 | # This just makes sure to use the -mieee option to build target libs. | |
7048 | # This should probably be set individually by each library. | |
7049 | alphaieee_frag="config/mt-alphaieee" | |
7050 | ;; | |
7051 | esac | |
7052 | ||
7053 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7054 | # the target libraries, similarly if it is not specified, use -Os | |
7055 | # on selected platforms. | |
7056 | ospace_frag=/dev/null | |
7057 | case "${enable_target_optspace}:${target}" in | |
7058 | yes:*) | |
7059 | ospace_frag="config/mt-ospace" | |
7060 | ;; | |
7061 | :d30v-*) | |
7062 | ospace_frag="config/mt-d30v" | |
7063 | ;; | |
16beab3d | 7064 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
7065 | ospace_frag="config/mt-ospace" |
7066 | ;; | |
7067 | no:* | :*) | |
7068 | ;; | |
7069 | *) | |
7070 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7071 | ;; | |
7072 | esac | |
7073 | ||
a0da8069 NN |
7074 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7075 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7076 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7077 | build_tooldir=${tooldir} |
7078 | ||
a0da8069 NN |
7079 | # Create a .gdbinit file which runs the one in srcdir |
7080 | # and tells GDB to look there for source files. | |
7081 | ||
7082 | if test -r ${srcdir}/.gdbinit ; then | |
7083 | case ${srcdir} in | |
7084 | .) ;; | |
7085 | *) cat > ./.gdbinit <<EOF | |
7086 | # ${NO_EDIT} | |
7087 | dir ${srcdir} | |
7088 | dir . | |
7089 | source ${srcdir}/.gdbinit | |
7090 | EOF | |
7091 | ;; | |
7092 | esac | |
7093 | fi | |
7094 | ||
a0da8069 NN |
7095 | # Make sure that the compiler is able to generate an executable. If it |
7096 | # can't, we are probably in trouble. We don't care whether we can run the | |
7097 | # executable--we might be using a cross compiler--we only care whether it | |
7098 | # can be created. At this point the main configure script has set CC. | |
7099 | we_are_ok=no | |
7100 | echo "int main () { return 0; }" > conftest.c | |
7101 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7102 | if test $? = 0 ; then | |
7103 | if test -s conftest || test -s conftest.exe ; then | |
7104 | we_are_ok=yes | |
7105 | fi | |
c6b750e1 | 7106 | fi |
a0da8069 NN |
7107 | case $we_are_ok in |
7108 | no) | |
7109 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7110 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7111 | rm -f conftest* | |
7112 | exit 1 | |
7113 | ;; | |
7114 | esac | |
7115 | rm -f conftest* | |
7116 | ||
3bbd2f8f | 7117 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7118 | case "${host}" in |
7119 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7120 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7121 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7122 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7123 | esac | |
7124 | ||
3bbd2f8f | 7125 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7126 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7127 | # built executables to PATH. | |
3bbd2f8f AL |
7128 | if test "$RPATH_ENVVAR" = PATH; then |
7129 | GCC_SHLIB_SUBDIR=/shlib | |
7130 | else | |
7131 | GCC_SHLIB_SUBDIR= | |
7132 | fi | |
7133 | ||
730af8ee | 7134 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7135 | case $enable_bootstrap in | |
7136 | yes) | |
7137 | bootstrap_suffix=bootstrap | |
7138 | BUILD_CONFIG=bootstrap-debug | |
7139 | ;; | |
7140 | no) | |
7141 | bootstrap_suffix=no-bootstrap | |
7142 | BUILD_CONFIG= | |
7143 | ;; | |
7144 | esac | |
7145 | ||
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7147 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7148 | ||
7149 | ||
7150 | # Check whether --with-build-config was given. | |
7151 | if test "${with_build_config+set}" = set; then : | |
7152 | withval=$with_build_config; case $with_build_config in | |
7153 | yes) with_build_config= ;; | |
7154 | no) with_build_config= BUILD_CONFIG= ;; | |
7155 | esac | |
7156 | fi | |
7157 | ||
7158 | ||
7159 | if test "x${with_build_config}" != x; then | |
7160 | BUILD_CONFIG=$with_build_config | |
7161 | else | |
7162 | case $BUILD_CONFIG in | |
7163 | bootstrap-debug) | |
7164 | if echo "int f (void) { return 0; }" > conftest.c && | |
7165 | ${CC} -c conftest.c && | |
7166 | mv conftest.o conftest.o.g0 && | |
7167 | ${CC} -c -g conftest.c && | |
7168 | mv conftest.o conftest.o.g && | |
7169 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7170 | : | |
7171 | else | |
7172 | BUILD_CONFIG= | |
7173 | fi | |
7174 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7175 | ;; | |
7176 | esac | |
7177 | fi | |
7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7179 | $as_echo "$BUILD_CONFIG" >&6; } | |
7180 | ||
7181 | ||
7182 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7184 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7185 | # Check whether --enable-vtable-verify was given. | |
7186 | if test "${enable_vtable_verify+set}" = set; then : | |
7187 | enableval=$enable_vtable_verify; case "$enableval" in | |
7188 | yes) enable_vtable_verify=yes ;; | |
7189 | no) enable_vtable_verify=no ;; | |
7190 | *) enable_vtable_verify=no;; | |
7191 | esac | |
7192 | else | |
7193 | enable_vtable_verify=no | |
7194 | fi | |
7195 | ||
7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7197 | $as_echo "$enable_vtable_verify" >&6; } | |
7198 | ||
a0da8069 NN |
7199 | # Record target_configdirs and the configure arguments for target and |
7200 | # build configuration in Makefile. | |
7201 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7202 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7203 | bootstrap_fixincludes=no |
a0da8069 | 7204 | |
2aa2364a JR |
7205 | # If we are building libgomp, bootstrap it. |
7206 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7207 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7208 | fi | |
7209 | ||
730af8ee | 7210 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7211 | # or bootstrap-ubsan, bootstrap it. | |
7212 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7213 | case "$BUILD_CONFIG" in | |
7214 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7215 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7216 | bootstrap_fixincludes=yes |
730af8ee | 7217 | ;; |
7218 | esac | |
5eb08693 L |
7219 | fi |
7220 | ||
730af8ee | 7221 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7222 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7223 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7224 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7225 | fi | |
7226 | ||
a0da8069 NN |
7227 | # Determine whether gdb needs tk/tcl or not. |
7228 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7229 | # and in that case we want gdb to be built without tk. Ugh! | |
7230 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7231 | # so we should be able to put the 'maybe's in unconditionally and | |
7232 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7233 | # 100% sure that that's safe though. | |
c180f501 | 7234 | |
675c6968 | 7235 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7236 | case "$enable_gdbtk" in |
7237 | no) | |
7238 | GDB_TK="" ;; | |
c180f501 AC |
7239 | yes) |
7240 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7241 | *) |
c180f501 AC |
7242 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7243 | # distro. Eventually someone will fix this and move Insight, nee | |
7244 | # gdbtk to a separate directory. | |
7245 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7246 | GDB_TK="${gdb_tk}" | |
7247 | else | |
7248 | GDB_TK="" | |
7249 | fi | |
7250 | ;; | |
a0da8069 | 7251 | esac |
907be67c DJ |
7252 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7253 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7254 | |
6bd3dfaa | 7255 | # Strip out unwanted targets. |
dd12c3a8 NN |
7256 | |
7257 | # While at that, we remove Makefiles if we were started for recursive | |
7258 | # configuration, so that the top-level Makefile reconfigures them, | |
7259 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7260 | |
06a51eac RW |
7261 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7262 | # but now we're fixing up the Makefile ourselves with the additional | |
7263 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7264 | # extrasub-{build,host,target} not because there is any reason to split | |
7265 | # the substitutions up that way, but only to remain below the limit of | |
7266 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
7267 | |
7268 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7269 | # configure will not warn you at all. | |
dd12c3a8 | 7270 | |
16b1ad29 RW |
7271 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7272 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7273 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 7274 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
7275 | ;; |
7276 | esac | |
7277 | ||
06a51eac | 7278 | extrasub_build= |
6a9cf61e | 7279 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7280 | if test -z "${no_recursion}" \ |
7281 | && test -f ${build_subdir}/${module}/Makefile; then | |
7282 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7283 | rm -f ${build_subdir}/${module}/Makefile | |
7284 | fi | |
06a51eac | 7285 | extrasub_build="$extrasub_build |
498d4a71 CF |
7286 | /^@if build-$module\$/d |
7287 | /^@endif build-$module\$/d | |
4119873a | 7288 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 7289 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
7290 | /^@endif build-$module-$bootstrap_suffix\$/d |
7291 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 7292 | done |
06a51eac | 7293 | extrasub_host= |
498d4a71 | 7294 | for module in ${configdirs} ; do |
80911fe1 | 7295 | if test -z "${no_recursion}"; then |
8cf39b1b | 7296 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7297 | if test -f ${file}; then |
7298 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7299 | rm -f ${file} | |
7300 | fi | |
7301 | done | |
498d4a71 | 7302 | fi |
201f096f | 7303 | case ${module},${bootstrap_fixincludes} in |
7304 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7305 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7306 | esac | |
06a51eac | 7307 | extrasub_host="$extrasub_host |
498d4a71 CF |
7308 | /^@if $module\$/d |
7309 | /^@endif $module\$/d | |
4119873a | 7310 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 7311 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
7312 | /^@endif $module-$host_bootstrap_suffix\$/d |
7313 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7314 | done |
06a51eac | 7315 | extrasub_target= |
498d4a71 CF |
7316 | for module in ${target_configdirs} ; do |
7317 | if test -z "${no_recursion}" \ | |
7318 | && test -f ${target_subdir}/${module}/Makefile; then | |
7319 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7320 | rm -f ${target_subdir}/${module}/Makefile | |
7321 | fi | |
e8a5fa9c RW |
7322 | |
7323 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7324 | case $bootstrap_target_libs in | |
7325 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7326 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7327 | esac | |
7328 | ||
06a51eac | 7329 | extrasub_target="$extrasub_target |
498d4a71 CF |
7330 | /^@if target-$module\$/d |
7331 | /^@endif target-$module\$/d | |
4119873a | 7332 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 7333 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
7334 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7335 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7336 | done |
7337 | ||
06a51eac RW |
7338 | # Do the final fixup along with target modules. |
7339 | extrasub_target="$extrasub_target | |
4119873a AO |
7340 | /^@if /,/^@endif /d |
7341 | /^@unless /d | |
7342 | /^@endunless /d" | |
a0da8069 NN |
7343 | |
7344 | # Create the serialization dependencies. This uses a temporary file. | |
7345 | ||
81ecdfbb RW |
7346 | # Check whether --enable-serial-configure was given. |
7347 | if test "${enable_serial_configure+set}" = set; then : | |
7348 | enableval=$enable_serial_configure; | |
7349 | fi | |
e6bfb94a AO |
7350 | |
7351 | ||
1047cb91 DD |
7352 | case ${enable_serial_configure} in |
7353 | yes) | |
7354 | enable_serial_build_configure=yes | |
7355 | enable_serial_host_configure=yes | |
7356 | enable_serial_target_configure=yes | |
7357 | ;; | |
7358 | esac | |
7359 | ||
a0da8069 NN |
7360 | # These force 'configure's to be done one at a time, to avoid problems |
7361 | # with contention over a shared config.cache. | |
7362 | rm -f serdep.tmp | |
e6bfb94a | 7363 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7364 | olditem= |
1047cb91 | 7365 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7366 | for item in ${build_configdirs} ; do |
7367 | case ${olditem} in | |
7368 | "") ;; | |
e6bfb94a | 7369 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7370 | esac |
7371 | olditem=${item} | |
7372 | done | |
7373 | olditem= | |
1047cb91 | 7374 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7375 | for item in ${configdirs} ; do |
7376 | case ${olditem} in | |
7377 | "") ;; | |
e6bfb94a | 7378 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7379 | esac |
7380 | olditem=${item} | |
7381 | done | |
7382 | olditem= | |
1047cb91 | 7383 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7384 | for item in ${target_configdirs} ; do |
7385 | case ${olditem} in | |
7386 | "") ;; | |
e6bfb94a | 7387 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7388 | esac |
7389 | olditem=${item} | |
7390 | done | |
7391 | serialization_dependencies=serdep.tmp | |
7392 | ||
7393 | ||
e6bfb94a | 7394 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7395 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7396 | # might not want to pass down to subconfigures. The exception being |
7397 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7398 | # files altogether, and which should be passed on to subconfigures. | |
7399 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7400 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7401 | baseargs= |
65b4571a | 7402 | tbaseargs= |
c6b750e1 DJ |
7403 | keep_next=no |
7404 | skip_next=no | |
7405 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7406 | for ac_arg |
7407 | do | |
c6b750e1 DJ |
7408 | if test X"$skip_next" = X"yes"; then |
7409 | skip_next=no | |
7410 | continue | |
7411 | fi | |
7412 | if test X"$keep_next" = X"yes"; then | |
7413 | case $ac_arg in | |
7414 | *\'*) | |
7415 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7416 | esac | |
7417 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7418 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7419 | keep_next=no |
7420 | continue | |
7421 | fi | |
7422 | ||
7423 | # Handle separated arguments. Based on the logic generated by | |
7424 | # autoconf 2.59. | |
7425 | case $ac_arg in | |
7426 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7427 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7428 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7429 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7430 | separate_arg=no | |
7431 | ;; | |
7432 | -*) | |
7433 | separate_arg=yes | |
7434 | ;; | |
7435 | *) | |
7436 | separate_arg=no | |
7437 | ;; | |
7438 | esac | |
7439 | ||
65b4571a AO |
7440 | skip_targ=no |
7441 | case $ac_arg in | |
7442 | ||
7443 | --with-* | --without-*) | |
7444 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7445 | ||
7446 | case $libopt in | |
7447 | *[-_]include) | |
7448 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7449 | ;; | |
7450 | *[-_]lib) | |
7451 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7452 | ;; | |
7453 | *) | |
7454 | lib=$libopt | |
7455 | ;; | |
7456 | esac | |
7457 | ||
7458 | ||
7459 | case $lib in | |
1b6c0831 | 7460 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7461 | # If we're processing --with-$lib, --with-$lib-include or |
7462 | # --with-$lib-lib, for one of the libs above, and target is | |
7463 | # different from host, don't pass the current argument to any | |
7464 | # target library's configure. | |
7465 | if test x$is_cross_compiler = xyes; then | |
7466 | skip_targ=yes | |
7467 | fi | |
7468 | ;; | |
7469 | esac | |
7470 | ;; | |
7471 | esac | |
7472 | ||
c6b750e1 | 7473 | case "$ac_arg" in |
30167e0a NC |
7474 | --cache-file=/dev/null | \ |
7475 | -cache-file=/dev/null ) | |
7476 | # Handled here to avoid the test to skip args below. | |
7477 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7478 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7479 | # Assert: $separate_arg should always be no. |
7480 | keep_next=$separate_arg | |
7481 | ;; | |
c6b750e1 DJ |
7482 | --no*) |
7483 | continue | |
7484 | ;; | |
7485 | --c* | \ | |
7486 | --sr* | \ | |
7487 | --ho* | \ | |
7488 | --bu* | \ | |
7489 | --t* | \ | |
7490 | --program-* | \ | |
7491 | -cache_file* | \ | |
7492 | -srcdir* | \ | |
7493 | -host* | \ | |
7494 | -build* | \ | |
7495 | -target* | \ | |
7496 | -program-prefix* | \ | |
7497 | -program-suffix* | \ | |
7498 | -program-transform-name* ) | |
7499 | skip_next=$separate_arg | |
7500 | continue | |
7501 | ;; | |
7502 | -*) | |
7503 | # An option. Add it. | |
7504 | case $ac_arg in | |
7505 | *\'*) | |
7506 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7507 | esac | |
7508 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7509 | if test X"$skip_targ" = Xno; then |
7510 | tbaseargs="$tbaseargs '$ac_arg'" | |
7511 | fi | |
c6b750e1 DJ |
7512 | keep_next=$separate_arg |
7513 | ;; | |
7514 | *) | |
7515 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7516 | # pass it down; let the Makefile handle this. | |
7517 | continue | |
7518 | ;; | |
7519 | esac | |
7520 | done | |
7521 | # Remove the initial space we just introduced and, as these will be | |
7522 | # expanded by make, quote '$'. | |
7523 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7524 | |
f27d4f92 DJ |
7525 | # Add in --program-transform-name, after --program-prefix and |
7526 | # --program-suffix have been applied to it. Autoconf has already | |
7527 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7528 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7529 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7530 | # Also, because we want to override the logic in subdir configure scripts to |
7531 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7532 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7533 | ${program_transform_name} | |
7534 | EOF_SED | |
7535 | gcc_transform_name=`cat conftestsed.out` | |
7536 | rm -f conftestsed.out | |
7537 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7538 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7539 | if test "$silent" = yes; then |
7540 | baseargs="$baseargs --silent" | |
65b4571a | 7541 | tbaseargs="$tbaseargs --silent" |
2444379b | 7542 | fi |
34a0f3cf | 7543 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7544 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7545 | |
4074d5f2 RW |
7546 | # Record and document user additions to sub configure arguments. |
7547 | ||
7548 | ||
7549 | ||
7550 | ||
a0da8069 NN |
7551 | # For the build-side libraries, we just need to pretend we're native, |
7552 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7553 | # desired. We can't even use the same cache file for all build-side |
7554 | # libraries, as they're compiled differently; some with C, some with | |
7555 | # C++ or with different feature-enabling options. | |
7556 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7557 | |
7558 | # For host modules, accept cache file option, or specification as blank. | |
7559 | case "${cache_file}" in | |
7560 | "") # empty | |
7561 | cache_file_option="" ;; | |
7562 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7563 | cache_file_option="--cache-file=${cache_file}" ;; | |
7564 | *) # relative path | |
7565 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7566 | esac | |
7567 | ||
82252c06 NN |
7568 | # Host dirs don't like to share a cache file either, horribly enough. |
7569 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7570 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7571 | |
65b4571a | 7572 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7573 | |
7574 | # Passing a --with-cross-host argument lets the target libraries know | |
7575 | # whether they are being built with a cross-compiler or being built | |
7576 | # native. However, it would be better to use other mechanisms to make the | |
7577 | # sorts of decisions they want to make on this basis. Please consider | |
7578 | # this option to be deprecated. FIXME. | |
7579 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7580 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7581 | fi |
7582 | ||
afc0578d | 7583 | # Special user-friendly check for native x86_64-linux build, if |
7584 | # multilib is not explicitly enabled. | |
7585 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7586 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7587 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7588 | dev64=no |
7589 | echo "int main () { return 0; }" > conftest.c | |
7590 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7591 | if test $? = 0 ; then | |
7592 | if test -s conftest || test -s conftest.exe ; then | |
7593 | dev64=yes | |
7594 | fi | |
7595 | fi | |
7596 | rm -f conftest* | |
7597 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 7598 | 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 | 7599 | fi |
7600 | ;; | |
7601 | esac | |
7602 | ||
938d2b74 RW |
7603 | # Default to --enable-multilib. |
7604 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7605 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7606 | fi |
a0da8069 NN |
7607 | |
7608 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7609 | # changed from the earlier setting of with_newlib. | |
7610 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7611 | target_configargs="--with-newlib ${target_configargs}" | |
7612 | fi | |
7613 | ||
95036d20 NN |
7614 | # Different target subdirs use different values of certain variables |
7615 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7616 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7617 | # it doesn't automatically accept command-line overrides of them. | |
7618 | # This means it's not safe for target subdirs to share a cache file, | |
7619 | # which is disgusting, but there you have it. Hopefully this can be | |
7620 | # fixed in future. It's still worthwhile to use a cache file for each | |
7621 | # directory. I think. | |
7622 | ||
ae380b45 MS |
7623 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7624 | # We need to pass --target, as newer autoconf's requires consistency | |
7625 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7626 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7627 | |
a0da8069 NN |
7628 | FLAGS_FOR_TARGET= |
7629 | case " $target_configdirs " in | |
7630 | *" newlib "*) | |
7631 | case " $target_configargs " in | |
7632 | *" --with-newlib "*) | |
7633 | case "$target" in | |
1f53ca9a | 7634 | *-cygwin*) |
6d94c122 | 7635 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7636 | ;; |
a0da8069 NN |
7637 | esac |
7638 | ||
7639 | # If we're not building GCC, don't discard standard headers. | |
7640 | if test -d ${srcdir}/gcc; then | |
7641 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7642 | ||
7643 | if test "${build}" != "${host}"; then | |
7644 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7645 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7646 | # to it. This is right: we don't want to search that directory | |
7647 | # for binaries, but we want the header files in there, so add | |
7648 | # them explicitly. | |
e552509b | 7649 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7650 | |
7651 | # Someone might think of using the pre-installed headers on | |
7652 | # Canadian crosses, in case the installed compiler is not fully | |
7653 | # compatible with the compiler being built. In this case, it | |
7654 | # would be better to flag an error than risking having | |
7655 | # incompatible object files being constructed. We can't | |
7656 | # guarantee that an error will be flagged, but let's hope the | |
7657 | # compiler will do it, when presented with incompatible header | |
7658 | # files. | |
7659 | fi | |
7660 | fi | |
7661 | ||
7662 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7663 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7664 | # Here host == target, so we don't need to build gcc, |
7665 | # so we don't want to discard standard headers. | |
7666 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7667 | ;; | |
7668 | *) | |
7669 | # If we're building newlib, use its generic headers last, but search | |
7670 | # for any libc-related directories first (so make it the last -B | |
7671 | # switch). | |
7672 | 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 |
7673 | |
7674 | # If we're building libgloss, find the startup file, simulator library | |
7675 | # and linker script. | |
7676 | case " $target_configdirs " in | |
7677 | *" libgloss "*) | |
7678 | # Look for startup file, simulator library and maybe linker script. | |
7679 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7680 | # Look for libnosys.a in case the target needs it. | |
7681 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7682 | # Most targets have the linker script in the source directory. | |
7683 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7684 | ;; | |
7685 | esac | |
a0da8069 NN |
7686 | ;; |
7687 | esac | |
7688 | ;; | |
7689 | esac | |
7690 | ;; | |
7691 | esac | |
1f53ca9a | 7692 | |
45055374 | 7693 | case "$target" in |
1f53ca9a AO |
7694 | x86_64-*mingw* | *-w64-mingw*) |
7695 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7696 | # however, use a symlink named 'mingw' in ${prefix} . | |
7697 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7698 | ;; | |
7699 | *-mingw*) | |
7700 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7701 | 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' | |
7702 | ;; | |
45055374 | 7703 | esac |
a0da8069 | 7704 | |
5fbad20a DD |
7705 | # Allow the user to override the flags for |
7706 | # our build compiler if desired. | |
c66487f8 NC |
7707 | if test x"${build}" = x"${host}" ; then |
7708 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7709 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7710 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7711 | fi | |
5fbad20a | 7712 | |
a0da8069 NN |
7713 | # On Canadian crosses, we'll be searching the right directories for |
7714 | # the previously-installed cross compiler, so don't bother to add | |
7715 | # flags for directories within the install tree of the compiler | |
7716 | # being built; programs in there won't even run. | |
7717 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7718 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7719 | 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 |
7720 | fi |
7721 | ||
7722 | if test "x${use_gnu_ld}" = x && | |
7723 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7724 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7725 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7726 | fi |
7727 | ||
a481dbb7 DD |
7728 | # Search for other target-specific linker scripts and such. |
7729 | case "${target}" in | |
4e206d7e DB |
7730 | mep*) |
7731 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7732 | ;; | |
7733 | esac | |
7734 | ||
a0da8069 | 7735 | # Makefile fragments. |
3e707e94 PB |
7736 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7737 | do | |
7738 | eval fragval=\$$frag | |
7739 | if test $fragval != /dev/null; then | |
7740 | eval $frag=${srcdir}/$fragval | |
7741 | fi | |
7742 | done | |
a0da8069 NN |
7743 | |
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | # Miscellanea: directories, flags, etc. | |
7749 | ||
7750 | ||
7751 | ||
7752 | ||
7753 | ||
7754 | ||
7755 | ||
3bbd2f8f | 7756 | |
6a9cf61e | 7757 | # Build module lists & subconfigure args. |
a0da8069 NN |
7758 | |
7759 | ||
7760 | ||
be01d343 PB |
7761 | # Host module lists & subconfigure args. |
7762 | ||
7763 | ||
7764 | ||
911e63d0 | 7765 | |
be01d343 PB |
7766 | # Target module lists & subconfigure args. |
7767 | ||
7768 | ||
7769 | ||
7770 | # Build tools. | |
7771 | ||
7772 | ||
7773 | ||
1576798e PB |
7774 | |
7775 | ||
7776 | ||
7777 | ||
7778 | ||
7779 | ||
7780 | ||
7781 | ||
7782 | ||
7783 | ||
7784 | ||
7785 | ||
7786 | ||
f948b2de | 7787 | |
be01d343 PB |
7788 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7789 | # on the build machine. These are used if the Makefile can't locate these | |
7790 | # programs in objdir. | |
7791 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7792 | ||
7793 | for ac_prog in 'bison -y' byacc yacc | |
7794 | do | |
c6b750e1 | 7795 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7796 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7798 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7799 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 7800 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7801 | else |
7802 | if test -n "$YACC"; then | |
7803 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7804 | else | |
c6b750e1 DJ |
7805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7806 | for as_dir in $PATH | |
7807 | do | |
7808 | IFS=$as_save_IFS | |
7809 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7810 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7812 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7814 | break 2 |
7815 | fi | |
7816 | done | |
81ecdfbb RW |
7817 | done |
7818 | IFS=$as_save_IFS | |
c6b750e1 | 7819 | |
be01d343 PB |
7820 | fi |
7821 | fi | |
c6b750e1 | 7822 | YACC=$ac_cv_prog_YACC |
be01d343 | 7823 | if test -n "$YACC"; then |
81ecdfbb RW |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7825 | $as_echo "$YACC" >&6; } | |
be01d343 | 7826 | else |
81ecdfbb RW |
7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7828 | $as_echo "no" >&6; } | |
be01d343 PB |
7829 | fi |
7830 | ||
81ecdfbb | 7831 | |
c6b750e1 | 7832 | test -n "$YACC" && break |
be01d343 PB |
7833 | done |
7834 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7835 | ||
7836 | case " $build_configdirs " in | |
7837 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7838 | esac |
7839 | ||
7840 | for ac_prog in bison | |
7841 | do | |
c6b750e1 | 7842 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7843 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7845 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7846 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 7847 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7848 | else |
7849 | if test -n "$BISON"; then | |
7850 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7851 | else | |
c6b750e1 DJ |
7852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7853 | for as_dir in $PATH | |
7854 | do | |
7855 | IFS=$as_save_IFS | |
7856 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7857 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7859 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7861 | break 2 |
7862 | fi | |
7863 | done | |
81ecdfbb RW |
7864 | done |
7865 | IFS=$as_save_IFS | |
c6b750e1 | 7866 | |
be01d343 PB |
7867 | fi |
7868 | fi | |
c6b750e1 | 7869 | BISON=$ac_cv_prog_BISON |
be01d343 | 7870 | if test -n "$BISON"; then |
81ecdfbb RW |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7872 | $as_echo "$BISON" >&6; } | |
be01d343 | 7873 | else |
81ecdfbb RW |
7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7875 | $as_echo "no" >&6; } | |
be01d343 PB |
7876 | fi |
7877 | ||
81ecdfbb | 7878 | |
c6b750e1 | 7879 | test -n "$BISON" && break |
be01d343 PB |
7880 | done |
7881 | test -n "$BISON" || BISON="$MISSING bison" | |
7882 | ||
7883 | case " $build_configdirs " in | |
7884 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7885 | esac | |
7886 | ||
7887 | for ac_prog in gm4 gnum4 m4 | |
7888 | do | |
c6b750e1 | 7889 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7890 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7892 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7893 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 7894 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7895 | else |
7896 | if test -n "$M4"; then | |
7897 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7898 | else | |
c6b750e1 DJ |
7899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7900 | for as_dir in $PATH | |
7901 | do | |
7902 | IFS=$as_save_IFS | |
7903 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7904 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7906 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7908 | break 2 |
7909 | fi | |
7910 | done | |
81ecdfbb RW |
7911 | done |
7912 | IFS=$as_save_IFS | |
c6b750e1 | 7913 | |
be01d343 PB |
7914 | fi |
7915 | fi | |
c6b750e1 | 7916 | M4=$ac_cv_prog_M4 |
be01d343 | 7917 | if test -n "$M4"; then |
81ecdfbb RW |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7919 | $as_echo "$M4" >&6; } | |
be01d343 | 7920 | else |
81ecdfbb RW |
7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7922 | $as_echo "no" >&6; } | |
be01d343 PB |
7923 | fi |
7924 | ||
81ecdfbb | 7925 | |
c6b750e1 | 7926 | test -n "$M4" && break |
be01d343 PB |
7927 | done |
7928 | test -n "$M4" || M4="$MISSING m4" | |
7929 | ||
7930 | case " $build_configdirs " in | |
7931 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7932 | esac | |
7933 | ||
7934 | for ac_prog in flex lex | |
7935 | do | |
c6b750e1 | 7936 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7937 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7939 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7940 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 7941 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7942 | else |
7943 | if test -n "$LEX"; then | |
7944 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7945 | else | |
c6b750e1 DJ |
7946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7947 | for as_dir in $PATH | |
7948 | do | |
7949 | IFS=$as_save_IFS | |
7950 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7951 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7953 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7955 | break 2 |
7956 | fi | |
7957 | done | |
81ecdfbb RW |
7958 | done |
7959 | IFS=$as_save_IFS | |
c6b750e1 | 7960 | |
be01d343 PB |
7961 | fi |
7962 | fi | |
c6b750e1 | 7963 | LEX=$ac_cv_prog_LEX |
be01d343 | 7964 | if test -n "$LEX"; then |
81ecdfbb RW |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7966 | $as_echo "$LEX" >&6; } | |
be01d343 | 7967 | else |
81ecdfbb RW |
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7969 | $as_echo "no" >&6; } | |
be01d343 PB |
7970 | fi |
7971 | ||
81ecdfbb | 7972 | |
c6b750e1 | 7973 | test -n "$LEX" && break |
be01d343 PB |
7974 | done |
7975 | test -n "$LEX" || LEX="$MISSING flex" | |
7976 | ||
7977 | case " $build_configdirs " in | |
7978 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7979 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7980 | esac | |
7981 | ||
7982 | for ac_prog in flex | |
7983 | do | |
c6b750e1 | 7984 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7985 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7987 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7988 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 7989 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7990 | else |
7991 | if test -n "$FLEX"; then | |
7992 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7993 | else | |
c6b750e1 DJ |
7994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7995 | for as_dir in $PATH | |
7996 | do | |
7997 | IFS=$as_save_IFS | |
7998 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7999 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8001 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 8002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8003 | break 2 |
8004 | fi | |
8005 | done | |
81ecdfbb RW |
8006 | done |
8007 | IFS=$as_save_IFS | |
c6b750e1 | 8008 | |
be01d343 PB |
8009 | fi |
8010 | fi | |
c6b750e1 | 8011 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 8012 | if test -n "$FLEX"; then |
81ecdfbb RW |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
8014 | $as_echo "$FLEX" >&6; } | |
be01d343 | 8015 | else |
81ecdfbb RW |
8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8017 | $as_echo "no" >&6; } | |
be01d343 PB |
8018 | fi |
8019 | ||
81ecdfbb | 8020 | |
c6b750e1 | 8021 | test -n "$FLEX" && break |
be01d343 PB |
8022 | done |
8023 | test -n "$FLEX" || FLEX="$MISSING flex" | |
8024 | ||
8025 | case " $build_configdirs " in | |
8026 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8027 | esac | |
8028 | ||
8029 | for ac_prog in makeinfo | |
8030 | do | |
c6b750e1 | 8031 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8032 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8034 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8035 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 8036 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8037 | else |
8038 | if test -n "$MAKEINFO"; then | |
8039 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8040 | else | |
c6b750e1 DJ |
8041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8042 | for as_dir in $PATH | |
8043 | do | |
8044 | IFS=$as_save_IFS | |
8045 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8046 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8048 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 8049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8050 | break 2 |
8051 | fi | |
8052 | done | |
81ecdfbb RW |
8053 | done |
8054 | IFS=$as_save_IFS | |
c6b750e1 | 8055 | |
be01d343 PB |
8056 | fi |
8057 | fi | |
c6b750e1 | 8058 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 8059 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8061 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 8062 | else |
81ecdfbb RW |
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8064 | $as_echo "no" >&6; } | |
be01d343 PB |
8065 | fi |
8066 | ||
81ecdfbb | 8067 | |
c6b750e1 | 8068 | test -n "$MAKEINFO" && break |
be01d343 PB |
8069 | done |
8070 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8071 | ||
8072 | case " $build_configdirs " in | |
8073 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8074 | *) | |
8075 | ||
10ad8ef3 | 8076 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
8077 | # higher, else we use the "missing" dummy. |
8078 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 8079 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
8080 | : |
8081 | else | |
8082 | MAKEINFO="$MISSING makeinfo" | |
8083 | fi | |
8084 | ;; | |
8085 | ||
8086 | esac | |
a0da8069 | 8087 | |
be01d343 | 8088 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8089 | |
be01d343 PB |
8090 | for ac_prog in expect |
8091 | do | |
c6b750e1 | 8092 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8093 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8095 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8096 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 8097 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8098 | else |
8099 | if test -n "$EXPECT"; then | |
8100 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8101 | else | |
c6b750e1 DJ |
8102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8103 | for as_dir in $PATH | |
8104 | do | |
8105 | IFS=$as_save_IFS | |
8106 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8107 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8108 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8109 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8111 | break 2 |
8112 | fi | |
8113 | done | |
81ecdfbb RW |
8114 | done |
8115 | IFS=$as_save_IFS | |
c6b750e1 | 8116 | |
be01d343 PB |
8117 | fi |
8118 | fi | |
c6b750e1 | 8119 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8120 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8122 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8123 | else |
81ecdfbb RW |
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8125 | $as_echo "no" >&6; } | |
be01d343 | 8126 | fi |
a0da8069 | 8127 | |
81ecdfbb | 8128 | |
c6b750e1 | 8129 | test -n "$EXPECT" && break |
be01d343 PB |
8130 | done |
8131 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8132 | |
be01d343 PB |
8133 | case " $configdirs " in |
8134 | *" expect "*) | |
8135 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8136 | ;; | |
8137 | esac | |
a0da8069 | 8138 | |
be01d343 PB |
8139 | for ac_prog in runtest |
8140 | do | |
c6b750e1 | 8141 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8142 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8144 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8145 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 8146 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8147 | else |
8148 | if test -n "$RUNTEST"; then | |
8149 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8150 | else | |
c6b750e1 DJ |
8151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8152 | for as_dir in $PATH | |
8153 | do | |
8154 | IFS=$as_save_IFS | |
8155 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8156 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8158 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8160 | break 2 |
8161 | fi | |
8162 | done | |
81ecdfbb RW |
8163 | done |
8164 | IFS=$as_save_IFS | |
c6b750e1 | 8165 | |
be01d343 PB |
8166 | fi |
8167 | fi | |
c6b750e1 | 8168 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8169 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8171 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8172 | else |
81ecdfbb RW |
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8174 | $as_echo "no" >&6; } | |
be01d343 | 8175 | fi |
a0da8069 | 8176 | |
81ecdfbb | 8177 | |
c6b750e1 | 8178 | test -n "$RUNTEST" && break |
be01d343 PB |
8179 | done |
8180 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8181 | |
be01d343 PB |
8182 | case " $configdirs " in |
8183 | *" dejagnu "*) | |
6b89cc21 | 8184 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8185 | ;; |
8186 | esac | |
a0da8069 NN |
8187 | |
8188 | ||
a0da8069 | 8189 | # Host tools. |
859789af AC |
8190 | ncn_tool_prefix= |
8191 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8192 | ncn_target_tool_prefix= | |
8193 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8194 | ||
9a819804 AO |
8195 | |
8196 | ||
8197 | if test -n "$AR"; then | |
8198 | ac_cv_prog_AR=$AR | |
8199 | elif test -n "$ac_cv_prog_AR"; then | |
8200 | AR=$ac_cv_prog_AR | |
8201 | fi | |
8202 | ||
8203 | if test -n "$ac_cv_prog_AR"; then | |
8204 | for ncn_progname in ar; do | |
8205 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8206 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8208 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8209 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8210 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8211 | else |
8212 | if test -n "$AR"; then | |
8213 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8214 | else | |
8215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8216 | for as_dir in $PATH | |
8217 | do | |
8218 | IFS=$as_save_IFS | |
8219 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8220 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8222 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8224 | break 2 |
8225 | fi | |
8226 | done | |
81ecdfbb RW |
8227 | done |
8228 | IFS=$as_save_IFS | |
9a819804 AO |
8229 | |
8230 | fi | |
8231 | fi | |
8232 | AR=$ac_cv_prog_AR | |
8233 | if test -n "$AR"; then | |
81ecdfbb RW |
8234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8235 | $as_echo "$AR" >&6; } | |
9a819804 | 8236 | else |
81ecdfbb RW |
8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8238 | $as_echo "no" >&6; } | |
9a819804 AO |
8239 | fi |
8240 | ||
81ecdfbb | 8241 | |
9a819804 AO |
8242 | done |
8243 | fi | |
8244 | ||
8245 | for ncn_progname in ar; do | |
05cbd757 PB |
8246 | if test -n "$ncn_tool_prefix"; then |
8247 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8248 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8250 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8251 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8252 | $as_echo_n "(cached) " >&6 |
859789af AC |
8253 | else |
8254 | if test -n "$AR"; then | |
8255 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8256 | else | |
c6b750e1 DJ |
8257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8258 | for as_dir in $PATH | |
8259 | do | |
8260 | IFS=$as_save_IFS | |
8261 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8262 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8264 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8266 | break 2 |
8267 | fi | |
8268 | done | |
81ecdfbb RW |
8269 | done |
8270 | IFS=$as_save_IFS | |
c6b750e1 | 8271 | |
859789af AC |
8272 | fi |
8273 | fi | |
c6b750e1 | 8274 | AR=$ac_cv_prog_AR |
859789af | 8275 | if test -n "$AR"; then |
81ecdfbb RW |
8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8277 | $as_echo "$AR" >&6; } | |
859789af | 8278 | else |
81ecdfbb RW |
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8280 | $as_echo "no" >&6; } | |
859789af AC |
8281 | fi |
8282 | ||
81ecdfbb | 8283 | |
05cbd757 PB |
8284 | fi |
8285 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8286 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8287 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8289 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8290 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8291 | $as_echo_n "(cached) " >&6 |
859789af | 8292 | else |
05cbd757 PB |
8293 | if test -n "$AR"; then |
8294 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8295 | else |
c6b750e1 DJ |
8296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8297 | for as_dir in $PATH | |
8298 | do | |
8299 | IFS=$as_save_IFS | |
8300 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8301 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8303 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8305 | break 2 |
8306 | fi | |
8307 | done | |
81ecdfbb RW |
8308 | done |
8309 | IFS=$as_save_IFS | |
c6b750e1 | 8310 | |
859789af AC |
8311 | fi |
8312 | fi | |
c6b750e1 | 8313 | AR=$ac_cv_prog_AR |
05cbd757 | 8314 | if test -n "$AR"; then |
81ecdfbb RW |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8316 | $as_echo "$AR" >&6; } | |
859789af | 8317 | else |
81ecdfbb RW |
8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8319 | $as_echo "no" >&6; } | |
859789af | 8320 | fi |
c6b750e1 | 8321 | |
81ecdfbb | 8322 | |
05cbd757 PB |
8323 | fi |
8324 | test -n "$ac_cv_prog_AR" && break | |
8325 | done | |
8326 | ||
8327 | if test -z "$ac_cv_prog_AR" ; then | |
8328 | set dummy ar | |
8329 | if test $build = $host ; then | |
8330 | AR="$2" | |
859789af | 8331 | else |
05cbd757 | 8332 | AR="${ncn_tool_prefix}$2" |
859789af | 8333 | fi |
859789af AC |
8334 | fi |
8335 | ||
9a819804 AO |
8336 | |
8337 | ||
8338 | if test -n "$AS"; then | |
8339 | ac_cv_prog_AS=$AS | |
8340 | elif test -n "$ac_cv_prog_AS"; then | |
8341 | AS=$ac_cv_prog_AS | |
8342 | fi | |
8343 | ||
8344 | if test -n "$ac_cv_prog_AS"; then | |
8345 | for ncn_progname in as; do | |
8346 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8347 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8349 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8350 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8351 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8352 | else |
8353 | if test -n "$AS"; then | |
8354 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8355 | else | |
8356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8357 | for as_dir in $PATH | |
8358 | do | |
8359 | IFS=$as_save_IFS | |
8360 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8361 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8363 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8365 | break 2 |
8366 | fi | |
8367 | done | |
81ecdfbb RW |
8368 | done |
8369 | IFS=$as_save_IFS | |
9a819804 AO |
8370 | |
8371 | fi | |
8372 | fi | |
8373 | AS=$ac_cv_prog_AS | |
8374 | if test -n "$AS"; then | |
81ecdfbb RW |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8376 | $as_echo "$AS" >&6; } | |
9a819804 | 8377 | else |
81ecdfbb RW |
8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8379 | $as_echo "no" >&6; } | |
9a819804 AO |
8380 | fi |
8381 | ||
81ecdfbb | 8382 | |
9a819804 AO |
8383 | done |
8384 | fi | |
8385 | ||
8386 | for ncn_progname in as; do | |
05cbd757 PB |
8387 | if test -n "$ncn_tool_prefix"; then |
8388 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8389 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8391 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8392 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8393 | $as_echo_n "(cached) " >&6 |
859789af AC |
8394 | else |
8395 | if test -n "$AS"; then | |
8396 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8397 | else |
8398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8399 | for as_dir in $PATH | |
8400 | do | |
8401 | IFS=$as_save_IFS | |
8402 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8403 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8404 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8405 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8407 | break 2 |
8408 | fi | |
8409 | done | |
81ecdfbb RW |
8410 | done |
8411 | IFS=$as_save_IFS | |
c6b750e1 | 8412 | |
859789af AC |
8413 | fi |
8414 | fi | |
c6b750e1 | 8415 | AS=$ac_cv_prog_AS |
859789af | 8416 | if test -n "$AS"; then |
81ecdfbb RW |
8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8418 | $as_echo "$AS" >&6; } | |
859789af | 8419 | else |
81ecdfbb RW |
8420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8421 | $as_echo "no" >&6; } | |
859789af AC |
8422 | fi |
8423 | ||
81ecdfbb | 8424 | |
05cbd757 PB |
8425 | fi |
8426 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8427 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8428 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8430 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8431 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8432 | $as_echo_n "(cached) " >&6 |
859789af | 8433 | else |
05cbd757 PB |
8434 | if test -n "$AS"; then |
8435 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8436 | else |
c6b750e1 DJ |
8437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8438 | for as_dir in $PATH | |
8439 | do | |
8440 | IFS=$as_save_IFS | |
8441 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8442 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8444 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8446 | break 2 |
8447 | fi | |
8448 | done | |
81ecdfbb RW |
8449 | done |
8450 | IFS=$as_save_IFS | |
c6b750e1 | 8451 | |
859789af AC |
8452 | fi |
8453 | fi | |
c6b750e1 | 8454 | AS=$ac_cv_prog_AS |
05cbd757 | 8455 | if test -n "$AS"; then |
81ecdfbb RW |
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8457 | $as_echo "$AS" >&6; } | |
859789af | 8458 | else |
81ecdfbb RW |
8459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8460 | $as_echo "no" >&6; } | |
859789af | 8461 | fi |
c6b750e1 | 8462 | |
81ecdfbb | 8463 | |
05cbd757 PB |
8464 | fi |
8465 | test -n "$ac_cv_prog_AS" && break | |
8466 | done | |
8467 | ||
8468 | if test -z "$ac_cv_prog_AS" ; then | |
8469 | set dummy as | |
8470 | if test $build = $host ; then | |
8471 | AS="$2" | |
859789af | 8472 | else |
05cbd757 | 8473 | AS="${ncn_tool_prefix}$2" |
859789af | 8474 | fi |
859789af AC |
8475 | fi |
8476 | ||
9a819804 AO |
8477 | |
8478 | ||
8479 | if test -n "$DLLTOOL"; then | |
8480 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8481 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8482 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8483 | fi | |
8484 | ||
8485 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8486 | for ncn_progname in dlltool; do | |
8487 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8488 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8490 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8491 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8492 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8493 | else |
8494 | if test -n "$DLLTOOL"; then | |
8495 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8496 | else | |
8497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8498 | for as_dir in $PATH | |
8499 | do | |
8500 | IFS=$as_save_IFS | |
8501 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8502 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8503 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8504 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8505 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8506 | break 2 |
8507 | fi | |
8508 | done | |
81ecdfbb RW |
8509 | done |
8510 | IFS=$as_save_IFS | |
9a819804 AO |
8511 | |
8512 | fi | |
8513 | fi | |
8514 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8515 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8517 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8518 | else |
81ecdfbb RW |
8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8520 | $as_echo "no" >&6; } | |
9a819804 AO |
8521 | fi |
8522 | ||
81ecdfbb | 8523 | |
9a819804 AO |
8524 | done |
8525 | fi | |
8526 | ||
8527 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8528 | if test -n "$ncn_tool_prefix"; then |
8529 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8530 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8532 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8533 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8534 | $as_echo_n "(cached) " >&6 |
859789af AC |
8535 | else |
8536 | if test -n "$DLLTOOL"; then | |
8537 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8538 | else | |
c6b750e1 DJ |
8539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8540 | for as_dir in $PATH | |
8541 | do | |
8542 | IFS=$as_save_IFS | |
8543 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8544 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8545 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8546 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8548 | break 2 |
8549 | fi | |
8550 | done | |
81ecdfbb RW |
8551 | done |
8552 | IFS=$as_save_IFS | |
c6b750e1 | 8553 | |
859789af AC |
8554 | fi |
8555 | fi | |
c6b750e1 | 8556 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8557 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8559 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8560 | else |
81ecdfbb RW |
8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8562 | $as_echo "no" >&6; } | |
859789af AC |
8563 | fi |
8564 | ||
81ecdfbb | 8565 | |
05cbd757 PB |
8566 | fi |
8567 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8568 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8569 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8571 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8572 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8573 | $as_echo_n "(cached) " >&6 |
859789af | 8574 | else |
05cbd757 PB |
8575 | if test -n "$DLLTOOL"; then |
8576 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8577 | else |
c6b750e1 DJ |
8578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8579 | for as_dir in $PATH | |
8580 | do | |
8581 | IFS=$as_save_IFS | |
8582 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8583 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8585 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8587 | break 2 |
8588 | fi | |
8589 | done | |
81ecdfbb RW |
8590 | done |
8591 | IFS=$as_save_IFS | |
c6b750e1 | 8592 | |
859789af AC |
8593 | fi |
8594 | fi | |
c6b750e1 | 8595 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8596 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8598 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8599 | else |
81ecdfbb RW |
8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8601 | $as_echo "no" >&6; } | |
859789af | 8602 | fi |
c6b750e1 | 8603 | |
81ecdfbb | 8604 | |
05cbd757 PB |
8605 | fi |
8606 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8607 | done | |
8608 | ||
8609 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8610 | set dummy dlltool | |
8611 | if test $build = $host ; then | |
8612 | DLLTOOL="$2" | |
859789af | 8613 | else |
05cbd757 | 8614 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8615 | fi |
859789af AC |
8616 | fi |
8617 | ||
9a819804 AO |
8618 | |
8619 | ||
8620 | if test -n "$LD"; then | |
8621 | ac_cv_prog_LD=$LD | |
8622 | elif test -n "$ac_cv_prog_LD"; then | |
8623 | LD=$ac_cv_prog_LD | |
8624 | fi | |
8625 | ||
8626 | if test -n "$ac_cv_prog_LD"; then | |
8627 | for ncn_progname in ld; do | |
8628 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8629 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8631 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8632 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8633 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8634 | else |
8635 | if test -n "$LD"; then | |
8636 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8637 | else | |
8638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8639 | for as_dir in $PATH | |
8640 | do | |
8641 | IFS=$as_save_IFS | |
8642 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8643 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8645 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8647 | break 2 |
8648 | fi | |
8649 | done | |
81ecdfbb RW |
8650 | done |
8651 | IFS=$as_save_IFS | |
9a819804 AO |
8652 | |
8653 | fi | |
8654 | fi | |
8655 | LD=$ac_cv_prog_LD | |
8656 | if test -n "$LD"; then | |
81ecdfbb RW |
8657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8658 | $as_echo "$LD" >&6; } | |
9a819804 | 8659 | else |
81ecdfbb RW |
8660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8661 | $as_echo "no" >&6; } | |
9a819804 AO |
8662 | fi |
8663 | ||
81ecdfbb | 8664 | |
9a819804 AO |
8665 | done |
8666 | fi | |
8667 | ||
8668 | for ncn_progname in ld; do | |
05cbd757 PB |
8669 | if test -n "$ncn_tool_prefix"; then |
8670 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8671 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8673 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8674 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8675 | $as_echo_n "(cached) " >&6 |
859789af AC |
8676 | else |
8677 | if test -n "$LD"; then | |
8678 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8679 | else | |
c6b750e1 DJ |
8680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8681 | for as_dir in $PATH | |
8682 | do | |
8683 | IFS=$as_save_IFS | |
8684 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8685 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8686 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8687 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8689 | break 2 |
8690 | fi | |
8691 | done | |
81ecdfbb RW |
8692 | done |
8693 | IFS=$as_save_IFS | |
c6b750e1 | 8694 | |
859789af AC |
8695 | fi |
8696 | fi | |
c6b750e1 | 8697 | LD=$ac_cv_prog_LD |
859789af | 8698 | if test -n "$LD"; then |
81ecdfbb RW |
8699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8700 | $as_echo "$LD" >&6; } | |
859789af | 8701 | else |
81ecdfbb RW |
8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8703 | $as_echo "no" >&6; } | |
859789af AC |
8704 | fi |
8705 | ||
81ecdfbb | 8706 | |
05cbd757 PB |
8707 | fi |
8708 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8710 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8712 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8713 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8714 | $as_echo_n "(cached) " >&6 |
859789af | 8715 | else |
05cbd757 PB |
8716 | if test -n "$LD"; then |
8717 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8718 | else |
c6b750e1 DJ |
8719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8720 | for as_dir in $PATH | |
8721 | do | |
8722 | IFS=$as_save_IFS | |
8723 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8724 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8726 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8728 | break 2 |
8729 | fi | |
8730 | done | |
81ecdfbb RW |
8731 | done |
8732 | IFS=$as_save_IFS | |
c6b750e1 | 8733 | |
859789af AC |
8734 | fi |
8735 | fi | |
c6b750e1 | 8736 | LD=$ac_cv_prog_LD |
05cbd757 | 8737 | if test -n "$LD"; then |
81ecdfbb RW |
8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8739 | $as_echo "$LD" >&6; } | |
859789af | 8740 | else |
81ecdfbb RW |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8742 | $as_echo "no" >&6; } | |
859789af | 8743 | fi |
c6b750e1 | 8744 | |
81ecdfbb | 8745 | |
05cbd757 PB |
8746 | fi |
8747 | test -n "$ac_cv_prog_LD" && break | |
8748 | done | |
8749 | ||
8750 | if test -z "$ac_cv_prog_LD" ; then | |
8751 | set dummy ld | |
8752 | if test $build = $host ; then | |
8753 | LD="$2" | |
859789af | 8754 | else |
05cbd757 | 8755 | LD="${ncn_tool_prefix}$2" |
859789af | 8756 | fi |
859789af AC |
8757 | fi |
8758 | ||
9a819804 AO |
8759 | |
8760 | ||
8761 | if test -n "$LIPO"; then | |
8762 | ac_cv_prog_LIPO=$LIPO | |
8763 | elif test -n "$ac_cv_prog_LIPO"; then | |
8764 | LIPO=$ac_cv_prog_LIPO | |
8765 | fi | |
8766 | ||
8767 | if test -n "$ac_cv_prog_LIPO"; then | |
8768 | for ncn_progname in lipo; do | |
8769 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8770 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8772 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8773 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8774 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8775 | else |
8776 | if test -n "$LIPO"; then | |
8777 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8778 | else | |
8779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8780 | for as_dir in $PATH | |
8781 | do | |
8782 | IFS=$as_save_IFS | |
8783 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8784 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8786 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8788 | break 2 |
8789 | fi | |
8790 | done | |
81ecdfbb RW |
8791 | done |
8792 | IFS=$as_save_IFS | |
9a819804 AO |
8793 | |
8794 | fi | |
8795 | fi | |
8796 | LIPO=$ac_cv_prog_LIPO | |
8797 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8799 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8800 | else |
81ecdfbb RW |
8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8802 | $as_echo "no" >&6; } | |
9a819804 AO |
8803 | fi |
8804 | ||
81ecdfbb | 8805 | |
9a819804 AO |
8806 | done |
8807 | fi | |
8808 | ||
8809 | for ncn_progname in lipo; do | |
be01d343 PB |
8810 | if test -n "$ncn_tool_prefix"; then |
8811 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8812 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8814 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8815 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8816 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8817 | else |
8818 | if test -n "$LIPO"; then | |
8819 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8820 | else | |
c6b750e1 DJ |
8821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8822 | for as_dir in $PATH | |
8823 | do | |
8824 | IFS=$as_save_IFS | |
8825 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8826 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8828 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8830 | break 2 |
8831 | fi | |
8832 | done | |
81ecdfbb RW |
8833 | done |
8834 | IFS=$as_save_IFS | |
c6b750e1 | 8835 | |
be01d343 PB |
8836 | fi |
8837 | fi | |
c6b750e1 | 8838 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8839 | if test -n "$LIPO"; then |
81ecdfbb RW |
8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8841 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8842 | else |
81ecdfbb RW |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8844 | $as_echo "no" >&6; } | |
be01d343 PB |
8845 | fi |
8846 | ||
81ecdfbb | 8847 | |
be01d343 PB |
8848 | fi |
8849 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8850 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8851 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8853 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8854 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8855 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8856 | else |
8857 | if test -n "$LIPO"; then | |
8858 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8859 | else | |
c6b750e1 DJ |
8860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8861 | for as_dir in $PATH | |
8862 | do | |
8863 | IFS=$as_save_IFS | |
8864 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8865 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8867 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8869 | break 2 |
8870 | fi | |
8871 | done | |
81ecdfbb RW |
8872 | done |
8873 | IFS=$as_save_IFS | |
c6b750e1 | 8874 | |
be01d343 PB |
8875 | fi |
8876 | fi | |
c6b750e1 | 8877 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8878 | if test -n "$LIPO"; then |
81ecdfbb RW |
8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8880 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8881 | else |
81ecdfbb RW |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8883 | $as_echo "no" >&6; } | |
be01d343 | 8884 | fi |
c6b750e1 | 8885 | |
81ecdfbb | 8886 | |
be01d343 PB |
8887 | fi |
8888 | test -n "$ac_cv_prog_LIPO" && break | |
8889 | done | |
8890 | ||
8891 | if test -z "$ac_cv_prog_LIPO" ; then | |
8892 | set dummy lipo | |
8893 | if test $build = $host ; then | |
8894 | LIPO="$2" | |
8895 | else | |
8896 | LIPO="${ncn_tool_prefix}$2" | |
8897 | fi | |
8898 | fi | |
8899 | ||
9a819804 AO |
8900 | |
8901 | ||
8902 | if test -n "$NM"; then | |
8903 | ac_cv_prog_NM=$NM | |
8904 | elif test -n "$ac_cv_prog_NM"; then | |
8905 | NM=$ac_cv_prog_NM | |
8906 | fi | |
8907 | ||
8908 | if test -n "$ac_cv_prog_NM"; then | |
8909 | for ncn_progname in nm; do | |
8910 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8911 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8913 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8914 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8915 | $as_echo_n "(cached) " >&6 |
859789af AC |
8916 | else |
8917 | if test -n "$NM"; then | |
8918 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8919 | else | |
c6b750e1 DJ |
8920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8921 | for as_dir in $PATH | |
8922 | do | |
8923 | IFS=$as_save_IFS | |
8924 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8925 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8926 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8927 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8929 | break 2 |
8930 | fi | |
8931 | done | |
81ecdfbb RW |
8932 | done |
8933 | IFS=$as_save_IFS | |
c6b750e1 | 8934 | |
859789af AC |
8935 | fi |
8936 | fi | |
c6b750e1 | 8937 | NM=$ac_cv_prog_NM |
859789af | 8938 | if test -n "$NM"; then |
81ecdfbb RW |
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8940 | $as_echo "$NM" >&6; } | |
859789af | 8941 | else |
81ecdfbb RW |
8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8943 | $as_echo "no" >&6; } | |
859789af AC |
8944 | fi |
8945 | ||
81ecdfbb | 8946 | |
9a819804 AO |
8947 | done |
8948 | fi | |
8949 | ||
8950 | for ncn_progname in nm; do | |
8951 | if test -n "$ncn_tool_prefix"; then | |
8952 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8953 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8955 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8956 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8957 | $as_echo_n "(cached) " >&6 |
859789af | 8958 | else |
05cbd757 PB |
8959 | if test -n "$NM"; then |
8960 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8961 | else |
c6b750e1 DJ |
8962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8963 | for as_dir in $PATH | |
8964 | do | |
8965 | IFS=$as_save_IFS | |
8966 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8967 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8969 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8971 | break 2 |
8972 | fi | |
8973 | done | |
81ecdfbb RW |
8974 | done |
8975 | IFS=$as_save_IFS | |
c6b750e1 | 8976 | |
859789af AC |
8977 | fi |
8978 | fi | |
c6b750e1 | 8979 | NM=$ac_cv_prog_NM |
05cbd757 | 8980 | if test -n "$NM"; then |
81ecdfbb RW |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8982 | $as_echo "$NM" >&6; } | |
859789af | 8983 | else |
81ecdfbb RW |
8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8985 | $as_echo "no" >&6; } | |
859789af | 8986 | fi |
c6b750e1 | 8987 | |
81ecdfbb | 8988 | |
05cbd757 | 8989 | fi |
9a819804 AO |
8990 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8991 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8992 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8994 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8995 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8996 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8997 | else |
8998 | if test -n "$NM"; then | |
8999 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9000 | else | |
9001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9002 | for as_dir in $PATH | |
9003 | do | |
9004 | IFS=$as_save_IFS | |
9005 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9006 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9008 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 9009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9010 | break 2 |
9011 | fi | |
9012 | done | |
81ecdfbb RW |
9013 | done |
9014 | IFS=$as_save_IFS | |
9a819804 AO |
9015 | |
9016 | fi | |
9017 | fi | |
9018 | NM=$ac_cv_prog_NM | |
9019 | if test -n "$NM"; then | |
81ecdfbb RW |
9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9021 | $as_echo "$NM" >&6; } | |
9a819804 | 9022 | else |
81ecdfbb RW |
9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9024 | $as_echo "no" >&6; } | |
9a819804 AO |
9025 | fi |
9026 | ||
81ecdfbb | 9027 | |
9a819804 AO |
9028 | fi |
9029 | test -n "$ac_cv_prog_NM" && break | |
9030 | done | |
9031 | ||
9032 | if test -z "$ac_cv_prog_NM" ; then | |
9033 | set dummy nm | |
9034 | if test $build = $host ; then | |
9035 | NM="$2" | |
9036 | else | |
9037 | NM="${ncn_tool_prefix}$2" | |
9038 | fi | |
9039 | fi | |
9040 | ||
9041 | ||
9042 | ||
9043 | if test -n "$RANLIB"; then | |
9044 | ac_cv_prog_RANLIB=$RANLIB | |
9045 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9046 | RANLIB=$ac_cv_prog_RANLIB | |
9047 | fi | |
9048 | ||
9049 | if test -n "$ac_cv_prog_RANLIB"; then | |
9050 | for ncn_progname in ranlib; do | |
9051 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9052 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9054 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9055 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9056 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9057 | else |
9058 | if test -n "$RANLIB"; then | |
9059 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9060 | else | |
9061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9062 | for as_dir in $PATH | |
9063 | do | |
9064 | IFS=$as_save_IFS | |
9065 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9066 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9067 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9068 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9070 | break 2 |
9071 | fi | |
9072 | done | |
81ecdfbb RW |
9073 | done |
9074 | IFS=$as_save_IFS | |
9a819804 AO |
9075 | |
9076 | fi | |
9077 | fi | |
9078 | RANLIB=$ac_cv_prog_RANLIB | |
9079 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9081 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 9082 | else |
81ecdfbb RW |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9084 | $as_echo "no" >&6; } | |
9a819804 AO |
9085 | fi |
9086 | ||
81ecdfbb | 9087 | |
9a819804 AO |
9088 | done |
9089 | fi | |
859789af | 9090 | |
9a819804 | 9091 | for ncn_progname in ranlib; do |
05cbd757 PB |
9092 | if test -n "$ncn_tool_prefix"; then |
9093 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9094 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9096 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9097 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9098 | $as_echo_n "(cached) " >&6 |
859789af AC |
9099 | else |
9100 | if test -n "$RANLIB"; then | |
9101 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9102 | else | |
c6b750e1 DJ |
9103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9104 | for as_dir in $PATH | |
9105 | do | |
9106 | IFS=$as_save_IFS | |
9107 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9108 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9110 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9112 | break 2 |
9113 | fi | |
9114 | done | |
81ecdfbb RW |
9115 | done |
9116 | IFS=$as_save_IFS | |
c6b750e1 | 9117 | |
859789af AC |
9118 | fi |
9119 | fi | |
c6b750e1 | 9120 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9121 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9123 | $as_echo "$RANLIB" >&6; } | |
859789af | 9124 | else |
81ecdfbb RW |
9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9126 | $as_echo "no" >&6; } | |
859789af AC |
9127 | fi |
9128 | ||
81ecdfbb | 9129 | |
05cbd757 PB |
9130 | fi |
9131 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9132 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9133 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9135 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9136 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9137 | $as_echo_n "(cached) " >&6 |
859789af | 9138 | else |
05cbd757 PB |
9139 | if test -n "$RANLIB"; then |
9140 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9141 | else |
c6b750e1 DJ |
9142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9143 | for as_dir in $PATH | |
9144 | do | |
9145 | IFS=$as_save_IFS | |
9146 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9147 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9148 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9149 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9151 | break 2 |
9152 | fi | |
9153 | done | |
81ecdfbb RW |
9154 | done |
9155 | IFS=$as_save_IFS | |
c6b750e1 | 9156 | |
859789af AC |
9157 | fi |
9158 | fi | |
c6b750e1 | 9159 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9160 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9162 | $as_echo "$RANLIB" >&6; } | |
859789af | 9163 | else |
81ecdfbb RW |
9164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9165 | $as_echo "no" >&6; } | |
859789af | 9166 | fi |
c6b750e1 | 9167 | |
81ecdfbb | 9168 | |
859789af | 9169 | fi |
05cbd757 PB |
9170 | test -n "$ac_cv_prog_RANLIB" && break |
9171 | done | |
9172 | ||
9173 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9174 | RANLIB="true" |
859789af AC |
9175 | fi |
9176 | ||
9a819804 AO |
9177 | |
9178 | ||
9179 | if test -n "$STRIP"; then | |
9180 | ac_cv_prog_STRIP=$STRIP | |
9181 | elif test -n "$ac_cv_prog_STRIP"; then | |
9182 | STRIP=$ac_cv_prog_STRIP | |
9183 | fi | |
9184 | ||
9185 | if test -n "$ac_cv_prog_STRIP"; then | |
9186 | for ncn_progname in strip; do | |
9187 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9188 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9190 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9191 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9192 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9193 | else |
9194 | if test -n "$STRIP"; then | |
9195 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9196 | else | |
9197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9198 | for as_dir in $PATH | |
9199 | do | |
9200 | IFS=$as_save_IFS | |
9201 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9202 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9203 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9204 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9206 | break 2 |
9207 | fi | |
9208 | done | |
81ecdfbb RW |
9209 | done |
9210 | IFS=$as_save_IFS | |
9a819804 AO |
9211 | |
9212 | fi | |
9213 | fi | |
9214 | STRIP=$ac_cv_prog_STRIP | |
9215 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9217 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9218 | else |
81ecdfbb RW |
9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9220 | $as_echo "no" >&6; } | |
9a819804 AO |
9221 | fi |
9222 | ||
81ecdfbb | 9223 | |
9a819804 AO |
9224 | done |
9225 | fi | |
9226 | ||
9227 | for ncn_progname in strip; do | |
be01d343 PB |
9228 | if test -n "$ncn_tool_prefix"; then |
9229 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9230 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9232 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9233 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9234 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9235 | else |
9236 | if test -n "$STRIP"; then | |
9237 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9238 | else | |
c6b750e1 DJ |
9239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9240 | for as_dir in $PATH | |
9241 | do | |
9242 | IFS=$as_save_IFS | |
9243 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9244 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9246 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9248 | break 2 |
9249 | fi | |
9250 | done | |
81ecdfbb RW |
9251 | done |
9252 | IFS=$as_save_IFS | |
c6b750e1 | 9253 | |
be01d343 PB |
9254 | fi |
9255 | fi | |
c6b750e1 | 9256 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9257 | if test -n "$STRIP"; then |
81ecdfbb RW |
9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9259 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9260 | else |
81ecdfbb RW |
9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9262 | $as_echo "no" >&6; } | |
be01d343 PB |
9263 | fi |
9264 | ||
81ecdfbb | 9265 | |
be01d343 PB |
9266 | fi |
9267 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9268 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9269 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9271 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9272 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9273 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9274 | else |
9275 | if test -n "$STRIP"; then | |
9276 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9277 | else | |
c6b750e1 DJ |
9278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9279 | for as_dir in $PATH | |
9280 | do | |
9281 | IFS=$as_save_IFS | |
9282 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9283 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9285 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9287 | break 2 |
9288 | fi | |
9289 | done | |
81ecdfbb RW |
9290 | done |
9291 | IFS=$as_save_IFS | |
c6b750e1 | 9292 | |
be01d343 PB |
9293 | fi |
9294 | fi | |
c6b750e1 | 9295 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9296 | if test -n "$STRIP"; then |
81ecdfbb RW |
9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9298 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9299 | else |
81ecdfbb RW |
9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9301 | $as_echo "no" >&6; } | |
be01d343 | 9302 | fi |
c6b750e1 | 9303 | |
81ecdfbb | 9304 | |
be01d343 PB |
9305 | fi |
9306 | test -n "$ac_cv_prog_STRIP" && break | |
9307 | done | |
9308 | ||
9309 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9310 | STRIP="true" |
be01d343 PB |
9311 | fi |
9312 | ||
9a819804 AO |
9313 | |
9314 | ||
9315 | if test -n "$WINDRES"; then | |
9316 | ac_cv_prog_WINDRES=$WINDRES | |
9317 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9318 | WINDRES=$ac_cv_prog_WINDRES | |
9319 | fi | |
9320 | ||
9321 | if test -n "$ac_cv_prog_WINDRES"; then | |
9322 | for ncn_progname in windres; do | |
9323 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9324 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9326 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9327 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9328 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9329 | else |
9330 | if test -n "$WINDRES"; then | |
9331 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9332 | else | |
9333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9334 | for as_dir in $PATH | |
9335 | do | |
9336 | IFS=$as_save_IFS | |
9337 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9338 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9339 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9340 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9342 | break 2 |
9343 | fi | |
9344 | done | |
81ecdfbb RW |
9345 | done |
9346 | IFS=$as_save_IFS | |
9a819804 AO |
9347 | |
9348 | fi | |
9349 | fi | |
9350 | WINDRES=$ac_cv_prog_WINDRES | |
9351 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9353 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9354 | else |
81ecdfbb RW |
9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9356 | $as_echo "no" >&6; } | |
9a819804 AO |
9357 | fi |
9358 | ||
81ecdfbb | 9359 | |
9a819804 AO |
9360 | done |
9361 | fi | |
9362 | ||
9363 | for ncn_progname in windres; do | |
05cbd757 PB |
9364 | if test -n "$ncn_tool_prefix"; then |
9365 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9366 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9368 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9369 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9370 | $as_echo_n "(cached) " >&6 |
859789af AC |
9371 | else |
9372 | if test -n "$WINDRES"; then | |
9373 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9374 | else | |
c6b750e1 DJ |
9375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9376 | for as_dir in $PATH | |
9377 | do | |
9378 | IFS=$as_save_IFS | |
9379 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9380 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9382 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9384 | break 2 |
9385 | fi | |
9386 | done | |
81ecdfbb RW |
9387 | done |
9388 | IFS=$as_save_IFS | |
c6b750e1 | 9389 | |
859789af AC |
9390 | fi |
9391 | fi | |
c6b750e1 | 9392 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9393 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9395 | $as_echo "$WINDRES" >&6; } | |
859789af | 9396 | else |
81ecdfbb RW |
9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9398 | $as_echo "no" >&6; } | |
859789af AC |
9399 | fi |
9400 | ||
81ecdfbb | 9401 | |
05cbd757 PB |
9402 | fi |
9403 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9404 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9405 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9407 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9408 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9409 | $as_echo_n "(cached) " >&6 |
859789af | 9410 | else |
05cbd757 PB |
9411 | if test -n "$WINDRES"; then |
9412 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9413 | else |
c6b750e1 DJ |
9414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9415 | for as_dir in $PATH | |
9416 | do | |
9417 | IFS=$as_save_IFS | |
9418 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9419 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9421 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9423 | break 2 |
9424 | fi | |
9425 | done | |
81ecdfbb RW |
9426 | done |
9427 | IFS=$as_save_IFS | |
c6b750e1 | 9428 | |
859789af AC |
9429 | fi |
9430 | fi | |
c6b750e1 | 9431 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9432 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9434 | $as_echo "$WINDRES" >&6; } | |
859789af | 9435 | else |
81ecdfbb RW |
9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9437 | $as_echo "no" >&6; } | |
859789af | 9438 | fi |
c6b750e1 | 9439 | |
81ecdfbb | 9440 | |
05cbd757 PB |
9441 | fi |
9442 | test -n "$ac_cv_prog_WINDRES" && break | |
9443 | done | |
9444 | ||
9445 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9446 | set dummy windres | |
9447 | if test $build = $host ; then | |
9448 | WINDRES="$2" | |
859789af | 9449 | else |
05cbd757 | 9450 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9451 | fi |
859789af AC |
9452 | fi |
9453 | ||
9a819804 AO |
9454 | |
9455 | ||
0c24b341 NC |
9456 | if test -n "$WINDMC"; then |
9457 | ac_cv_prog_WINDMC=$WINDMC | |
9458 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9459 | WINDMC=$ac_cv_prog_WINDMC | |
9460 | fi | |
9461 | ||
9462 | if test -n "$ac_cv_prog_WINDMC"; then | |
9463 | for ncn_progname in windmc; do | |
9464 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9465 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9467 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9468 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9469 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9470 | else |
9471 | if test -n "$WINDMC"; then | |
9472 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9473 | else | |
9474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9475 | for as_dir in $PATH | |
9476 | do | |
9477 | IFS=$as_save_IFS | |
9478 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9479 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9480 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9481 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9483 | break 2 |
9484 | fi | |
9485 | done | |
81ecdfbb RW |
9486 | done |
9487 | IFS=$as_save_IFS | |
0c24b341 NC |
9488 | |
9489 | fi | |
9490 | fi | |
9491 | WINDMC=$ac_cv_prog_WINDMC | |
9492 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9494 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9495 | else |
81ecdfbb RW |
9496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9497 | $as_echo "no" >&6; } | |
0c24b341 NC |
9498 | fi |
9499 | ||
81ecdfbb | 9500 | |
0c24b341 NC |
9501 | done |
9502 | fi | |
9503 | ||
9504 | for ncn_progname in windmc; do | |
9505 | if test -n "$ncn_tool_prefix"; then | |
9506 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9507 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9509 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9510 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9511 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9512 | else |
9513 | if test -n "$WINDMC"; then | |
9514 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9515 | else | |
9516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9517 | for as_dir in $PATH | |
9518 | do | |
9519 | IFS=$as_save_IFS | |
9520 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9521 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9523 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9525 | break 2 |
9526 | fi | |
9527 | done | |
81ecdfbb RW |
9528 | done |
9529 | IFS=$as_save_IFS | |
0c24b341 NC |
9530 | |
9531 | fi | |
9532 | fi | |
9533 | WINDMC=$ac_cv_prog_WINDMC | |
9534 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9536 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9537 | else |
81ecdfbb RW |
9538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9539 | $as_echo "no" >&6; } | |
0c24b341 NC |
9540 | fi |
9541 | ||
81ecdfbb | 9542 | |
0c24b341 NC |
9543 | fi |
9544 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9546 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9548 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9549 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9550 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9551 | else |
9552 | if test -n "$WINDMC"; then | |
9553 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9554 | else | |
9555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9556 | for as_dir in $PATH | |
9557 | do | |
9558 | IFS=$as_save_IFS | |
9559 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9560 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9562 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9564 | break 2 |
9565 | fi | |
9566 | done | |
81ecdfbb RW |
9567 | done |
9568 | IFS=$as_save_IFS | |
0c24b341 NC |
9569 | |
9570 | fi | |
9571 | fi | |
9572 | WINDMC=$ac_cv_prog_WINDMC | |
9573 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9575 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9576 | else |
81ecdfbb RW |
9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9578 | $as_echo "no" >&6; } | |
0c24b341 NC |
9579 | fi |
9580 | ||
81ecdfbb | 9581 | |
0c24b341 NC |
9582 | fi |
9583 | test -n "$ac_cv_prog_WINDMC" && break | |
9584 | done | |
9585 | ||
9586 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9587 | set dummy windmc | |
9588 | if test $build = $host ; then | |
9589 | WINDMC="$2" | |
9590 | else | |
9591 | WINDMC="${ncn_tool_prefix}$2" | |
9592 | fi | |
9593 | fi | |
9594 | ||
9595 | ||
9596 | ||
9a819804 AO |
9597 | if test -n "$OBJCOPY"; then |
9598 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9599 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9600 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9601 | fi | |
9602 | ||
9603 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9604 | for ncn_progname in objcopy; do | |
9605 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9606 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9608 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9609 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9610 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9611 | else |
9612 | if test -n "$OBJCOPY"; then | |
9613 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9614 | else | |
9615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9616 | for as_dir in $PATH | |
9617 | do | |
9618 | IFS=$as_save_IFS | |
9619 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9620 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9622 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9624 | break 2 |
9625 | fi | |
9626 | done | |
81ecdfbb RW |
9627 | done |
9628 | IFS=$as_save_IFS | |
9a819804 AO |
9629 | |
9630 | fi | |
9631 | fi | |
9632 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9633 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9635 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9636 | else |
81ecdfbb RW |
9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9638 | $as_echo "no" >&6; } | |
9a819804 AO |
9639 | fi |
9640 | ||
81ecdfbb | 9641 | |
9a819804 AO |
9642 | done |
9643 | fi | |
9644 | ||
9645 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9646 | if test -n "$ncn_tool_prefix"; then |
9647 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9648 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9650 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9651 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9652 | $as_echo_n "(cached) " >&6 |
859789af AC |
9653 | else |
9654 | if test -n "$OBJCOPY"; then | |
9655 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9656 | else | |
c6b750e1 DJ |
9657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9658 | for as_dir in $PATH | |
9659 | do | |
9660 | IFS=$as_save_IFS | |
9661 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9662 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9664 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9666 | break 2 |
9667 | fi | |
9668 | done | |
81ecdfbb RW |
9669 | done |
9670 | IFS=$as_save_IFS | |
c6b750e1 | 9671 | |
859789af AC |
9672 | fi |
9673 | fi | |
c6b750e1 | 9674 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9675 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9677 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9678 | else |
81ecdfbb RW |
9679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9680 | $as_echo "no" >&6; } | |
859789af AC |
9681 | fi |
9682 | ||
81ecdfbb | 9683 | |
05cbd757 PB |
9684 | fi |
9685 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9686 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9687 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9689 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9690 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9691 | $as_echo_n "(cached) " >&6 |
859789af | 9692 | else |
05cbd757 PB |
9693 | if test -n "$OBJCOPY"; then |
9694 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9695 | else |
c6b750e1 DJ |
9696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9697 | for as_dir in $PATH | |
9698 | do | |
9699 | IFS=$as_save_IFS | |
9700 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9701 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9703 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9705 | break 2 |
9706 | fi | |
9707 | done | |
81ecdfbb RW |
9708 | done |
9709 | IFS=$as_save_IFS | |
c6b750e1 | 9710 | |
859789af AC |
9711 | fi |
9712 | fi | |
c6b750e1 | 9713 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9714 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9716 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9717 | else |
81ecdfbb RW |
9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9719 | $as_echo "no" >&6; } | |
859789af | 9720 | fi |
c6b750e1 | 9721 | |
81ecdfbb | 9722 | |
05cbd757 PB |
9723 | fi |
9724 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9725 | done | |
9726 | ||
9727 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9728 | set dummy objcopy | |
9729 | if test $build = $host ; then | |
9730 | OBJCOPY="$2" | |
859789af | 9731 | else |
05cbd757 | 9732 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9733 | fi |
859789af AC |
9734 | fi |
9735 | ||
9a819804 AO |
9736 | |
9737 | ||
9738 | if test -n "$OBJDUMP"; then | |
9739 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9740 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9741 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9742 | fi | |
9743 | ||
9744 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9745 | for ncn_progname in objdump; do | |
9746 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9747 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9749 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9750 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9751 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9752 | else |
9753 | if test -n "$OBJDUMP"; then | |
9754 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9755 | else | |
9756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9757 | for as_dir in $PATH | |
9758 | do | |
9759 | IFS=$as_save_IFS | |
9760 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9761 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9763 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9765 | break 2 |
9766 | fi | |
9767 | done | |
81ecdfbb RW |
9768 | done |
9769 | IFS=$as_save_IFS | |
9a819804 AO |
9770 | |
9771 | fi | |
9772 | fi | |
9773 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9774 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9776 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9777 | else |
81ecdfbb RW |
9778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9779 | $as_echo "no" >&6; } | |
9a819804 AO |
9780 | fi |
9781 | ||
81ecdfbb | 9782 | |
9a819804 AO |
9783 | done |
9784 | fi | |
9785 | ||
9786 | for ncn_progname in objdump; do | |
05cbd757 PB |
9787 | if test -n "$ncn_tool_prefix"; then |
9788 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9789 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9791 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9792 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9793 | $as_echo_n "(cached) " >&6 |
859789af AC |
9794 | else |
9795 | if test -n "$OBJDUMP"; then | |
9796 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9797 | else | |
c6b750e1 DJ |
9798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9799 | for as_dir in $PATH | |
9800 | do | |
9801 | IFS=$as_save_IFS | |
9802 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9803 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9805 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9807 | break 2 |
9808 | fi | |
9809 | done | |
81ecdfbb RW |
9810 | done |
9811 | IFS=$as_save_IFS | |
c6b750e1 | 9812 | |
859789af AC |
9813 | fi |
9814 | fi | |
c6b750e1 | 9815 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9816 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9818 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9819 | else |
81ecdfbb RW |
9820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9821 | $as_echo "no" >&6; } | |
859789af AC |
9822 | fi |
9823 | ||
81ecdfbb | 9824 | |
05cbd757 PB |
9825 | fi |
9826 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9828 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9830 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9831 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9832 | $as_echo_n "(cached) " >&6 |
859789af | 9833 | else |
05cbd757 PB |
9834 | if test -n "$OBJDUMP"; then |
9835 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9836 | else |
c6b750e1 DJ |
9837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9838 | for as_dir in $PATH | |
9839 | do | |
9840 | IFS=$as_save_IFS | |
9841 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9842 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9844 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9846 | break 2 |
9847 | fi | |
9848 | done | |
81ecdfbb RW |
9849 | done |
9850 | IFS=$as_save_IFS | |
c6b750e1 | 9851 | |
859789af AC |
9852 | fi |
9853 | fi | |
c6b750e1 | 9854 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9855 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9857 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9858 | else |
81ecdfbb RW |
9859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9860 | $as_echo "no" >&6; } | |
859789af | 9861 | fi |
c6b750e1 | 9862 | |
81ecdfbb | 9863 | |
05cbd757 PB |
9864 | fi |
9865 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9866 | done | |
9867 | ||
9868 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9869 | set dummy objdump | |
9870 | if test $build = $host ; then | |
9871 | OBJDUMP="$2" | |
859789af | 9872 | else |
05cbd757 | 9873 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9874 | fi |
859789af AC |
9875 | fi |
9876 | ||
a0da8069 NN |
9877 | |
9878 | ||
f948b2de NC |
9879 | if test -n "$OTOOL"; then |
9880 | ac_cv_prog_OTOOL=$OTOOL | |
9881 | elif test -n "$ac_cv_prog_OTOOL"; then | |
9882 | OTOOL=$ac_cv_prog_OTOOL | |
9883 | fi | |
9884 | ||
9885 | if test -n "$ac_cv_prog_OTOOL"; then | |
9886 | for ncn_progname in otool; do | |
9887 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9888 | set dummy ${ncn_progname}; ac_word=$2 | |
9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9890 | $as_echo_n "checking for $ac_word... " >&6; } | |
9891 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9892 | $as_echo_n "(cached) " >&6 | |
9893 | else | |
9894 | if test -n "$OTOOL"; then | |
9895 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9896 | else | |
9897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9898 | for as_dir in $PATH | |
9899 | do | |
9900 | IFS=$as_save_IFS | |
9901 | test -z "$as_dir" && as_dir=. | |
9902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9904 | ac_cv_prog_OTOOL="${ncn_progname}" | |
9905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9906 | break 2 | |
9907 | fi | |
9908 | done | |
9909 | done | |
9910 | IFS=$as_save_IFS | |
9911 | ||
9912 | fi | |
9913 | fi | |
9914 | OTOOL=$ac_cv_prog_OTOOL | |
9915 | if test -n "$OTOOL"; then | |
9916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9917 | $as_echo "$OTOOL" >&6; } | |
9918 | else | |
9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9920 | $as_echo "no" >&6; } | |
9921 | fi | |
9922 | ||
9923 | ||
9924 | done | |
9925 | fi | |
9926 | ||
9927 | for ncn_progname in otool; do | |
9928 | if test -n "$ncn_tool_prefix"; then | |
9929 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9930 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9932 | $as_echo_n "checking for $ac_word... " >&6; } | |
9933 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9934 | $as_echo_n "(cached) " >&6 | |
9935 | else | |
9936 | if test -n "$OTOOL"; then | |
9937 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9938 | else | |
9939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9940 | for as_dir in $PATH | |
9941 | do | |
9942 | IFS=$as_save_IFS | |
9943 | test -z "$as_dir" && as_dir=. | |
9944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9946 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
9947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9948 | break 2 | |
9949 | fi | |
9950 | done | |
9951 | done | |
9952 | IFS=$as_save_IFS | |
9953 | ||
9954 | fi | |
9955 | fi | |
9956 | OTOOL=$ac_cv_prog_OTOOL | |
9957 | if test -n "$OTOOL"; then | |
9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9959 | $as_echo "$OTOOL" >&6; } | |
9960 | else | |
9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9962 | $as_echo "no" >&6; } | |
9963 | fi | |
9964 | ||
9965 | ||
9966 | fi | |
9967 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
9968 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9969 | set dummy ${ncn_progname}; ac_word=$2 | |
9970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9971 | $as_echo_n "checking for $ac_word... " >&6; } | |
9972 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9973 | $as_echo_n "(cached) " >&6 | |
9974 | else | |
9975 | if test -n "$OTOOL"; then | |
9976 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9977 | else | |
9978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9979 | for as_dir in $PATH | |
9980 | do | |
9981 | IFS=$as_save_IFS | |
9982 | test -z "$as_dir" && as_dir=. | |
9983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9985 | ac_cv_prog_OTOOL="${ncn_progname}" | |
9986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9987 | break 2 | |
9988 | fi | |
9989 | done | |
9990 | done | |
9991 | IFS=$as_save_IFS | |
9992 | ||
9993 | fi | |
9994 | fi | |
9995 | OTOOL=$ac_cv_prog_OTOOL | |
9996 | if test -n "$OTOOL"; then | |
9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9998 | $as_echo "$OTOOL" >&6; } | |
9999 | else | |
10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10001 | $as_echo "no" >&6; } | |
10002 | fi | |
10003 | ||
10004 | ||
10005 | fi | |
10006 | test -n "$ac_cv_prog_OTOOL" && break | |
10007 | done | |
10008 | ||
10009 | if test -z "$ac_cv_prog_OTOOL" ; then | |
10010 | set dummy otool | |
10011 | if test $build = $host ; then | |
10012 | OTOOL="$2" | |
10013 | else | |
10014 | OTOOL="${ncn_tool_prefix}$2" | |
10015 | fi | |
10016 | fi | |
10017 | ||
10018 | ||
10019 | ||
b121d7d4 DD |
10020 | if test -n "$READELF"; then |
10021 | ac_cv_prog_READELF=$READELF | |
10022 | elif test -n "$ac_cv_prog_READELF"; then | |
10023 | READELF=$ac_cv_prog_READELF | |
10024 | fi | |
10025 | ||
10026 | if test -n "$ac_cv_prog_READELF"; then | |
10027 | for ncn_progname in readelf; do | |
10028 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10029 | set dummy ${ncn_progname}; ac_word=$2 | |
10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10031 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10032 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
10033 | $as_echo_n "(cached) " >&6 |
10034 | else | |
10035 | if test -n "$READELF"; then | |
10036 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10037 | else | |
10038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10039 | for as_dir in $PATH | |
10040 | do | |
10041 | IFS=$as_save_IFS | |
10042 | test -z "$as_dir" && as_dir=. | |
10043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
10045 | ac_cv_prog_READELF="${ncn_progname}" |
10046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10047 | break 2 | |
10048 | fi | |
10049 | done | |
10050 | done | |
10051 | IFS=$as_save_IFS | |
10052 | ||
10053 | fi | |
10054 | fi | |
10055 | READELF=$ac_cv_prog_READELF | |
10056 | if test -n "$READELF"; then | |
10057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10058 | $as_echo "$READELF" >&6; } | |
10059 | else | |
10060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10061 | $as_echo "no" >&6; } | |
10062 | fi | |
10063 | ||
10064 | ||
10065 | done | |
10066 | fi | |
10067 | ||
10068 | for ncn_progname in readelf; do | |
10069 | if test -n "$ncn_tool_prefix"; then | |
10070 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10071 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10073 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10074 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
10075 | $as_echo_n "(cached) " >&6 |
10076 | else | |
10077 | if test -n "$READELF"; then | |
10078 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10079 | else | |
10080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10081 | for as_dir in $PATH | |
10082 | do | |
10083 | IFS=$as_save_IFS | |
10084 | test -z "$as_dir" && as_dir=. | |
10085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10086 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
10087 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
10088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10089 | break 2 | |
10090 | fi | |
10091 | done | |
10092 | done | |
10093 | IFS=$as_save_IFS | |
10094 | ||
10095 | fi | |
10096 | fi | |
10097 | READELF=$ac_cv_prog_READELF | |
10098 | if test -n "$READELF"; then | |
10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10100 | $as_echo "$READELF" >&6; } | |
10101 | else | |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10103 | $as_echo "no" >&6; } | |
10104 | fi | |
10105 | ||
10106 | ||
10107 | fi | |
10108 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
10109 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10110 | set dummy ${ncn_progname}; ac_word=$2 | |
10111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10112 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10113 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
10114 | $as_echo_n "(cached) " >&6 |
10115 | else | |
10116 | if test -n "$READELF"; then | |
10117 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10118 | else | |
10119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10120 | for as_dir in $PATH | |
10121 | do | |
10122 | IFS=$as_save_IFS | |
10123 | test -z "$as_dir" && as_dir=. | |
10124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
10126 | ac_cv_prog_READELF="${ncn_progname}" |
10127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10128 | break 2 | |
10129 | fi | |
10130 | done | |
10131 | done | |
10132 | IFS=$as_save_IFS | |
10133 | ||
10134 | fi | |
10135 | fi | |
10136 | READELF=$ac_cv_prog_READELF | |
10137 | if test -n "$READELF"; then | |
10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10139 | $as_echo "$READELF" >&6; } | |
10140 | else | |
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10142 | $as_echo "no" >&6; } | |
10143 | fi | |
10144 | ||
10145 | ||
10146 | fi | |
10147 | test -n "$ac_cv_prog_READELF" && break | |
10148 | done | |
10149 | ||
10150 | if test -z "$ac_cv_prog_READELF" ; then | |
10151 | set dummy readelf | |
10152 | if test $build = $host ; then | |
10153 | READELF="$2" | |
10154 | else | |
10155 | READELF="${ncn_tool_prefix}$2" | |
10156 | fi | |
10157 | fi | |
10158 | ||
10159 | ||
10160 | ||
a0da8069 NN |
10161 | |
10162 | ||
10163 | ||
be01d343 | 10164 | # Target tools. |
c6b750e1 | 10165 | |
81ecdfbb RW |
10166 | # Check whether --with-build-time-tools was given. |
10167 | if test "${with_build_time_tools+set}" = set; then : | |
10168 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
10169 | x/*) ;; |
10170 | *) | |
10171 | with_build_time_tools= | |
81ecdfbb RW |
10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10173 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
10174 | ;; |
10175 | esac | |
859789af | 10176 | else |
2429c060 | 10177 | with_build_time_tools= |
81ecdfbb RW |
10178 | fi |
10179 | ||
859789af | 10180 | |
9a819804 AO |
10181 | |
10182 | ||
10183 | if test -n "$CC_FOR_TARGET"; then | |
10184 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10185 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10186 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10187 | fi | |
10188 | ||
10189 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10190 | for ncn_progname in cc gcc; do | |
10191 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10192 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10194 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10195 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10196 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10197 | else |
10198 | if test -n "$CC_FOR_TARGET"; then | |
10199 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10200 | else | |
10201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10202 | for as_dir in $PATH | |
10203 | do | |
10204 | IFS=$as_save_IFS | |
10205 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10206 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10208 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10210 | break 2 |
10211 | fi | |
10212 | done | |
81ecdfbb RW |
10213 | done |
10214 | IFS=$as_save_IFS | |
9a819804 AO |
10215 | |
10216 | fi | |
10217 | fi | |
10218 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10219 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
10220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10221 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 10222 | else |
81ecdfbb RW |
10223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10224 | $as_echo "no" >&6; } | |
9a819804 AO |
10225 | fi |
10226 | ||
81ecdfbb | 10227 | |
9a819804 AO |
10228 | done |
10229 | fi | |
10230 | ||
10231 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10232 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10234 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10235 | if test -x $with_build_time_tools/${ncn_progname}; then |
10236 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10238 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10239 | break |
2429c060 | 10240 | else |
81ecdfbb RW |
10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10242 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10243 | fi |
10244 | done | |
55db4b87 PB |
10245 | fi |
10246 | ||
2429c060 PB |
10247 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10248 | for ncn_progname in cc gcc; do | |
10249 | if test -n "$ncn_target_tool_prefix"; then | |
10250 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10251 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10253 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10254 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10255 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10256 | else |
10257 | if test -n "$CC_FOR_TARGET"; then | |
10258 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10259 | else | |
c6b750e1 DJ |
10260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10261 | for as_dir in $PATH | |
10262 | do | |
10263 | IFS=$as_save_IFS | |
10264 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10265 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10267 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10269 | break 2 |
10270 | fi | |
10271 | done | |
81ecdfbb RW |
10272 | done |
10273 | IFS=$as_save_IFS | |
c6b750e1 | 10274 | |
55db4b87 PB |
10275 | fi |
10276 | fi | |
c6b750e1 | 10277 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10278 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10280 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10281 | else |
81ecdfbb RW |
10282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10283 | $as_echo "no" >&6; } | |
55db4b87 PB |
10284 | fi |
10285 | ||
81ecdfbb | 10286 | |
2429c060 PB |
10287 | fi |
10288 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10289 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10290 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10292 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10293 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10294 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10295 | else |
05cbd757 PB |
10296 | if test -n "$CC_FOR_TARGET"; then |
10297 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10298 | else |
c6b750e1 DJ |
10299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10300 | for as_dir in $PATH | |
10301 | do | |
10302 | IFS=$as_save_IFS | |
10303 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10304 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10305 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10306 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10308 | break 2 |
10309 | fi | |
10310 | done | |
81ecdfbb RW |
10311 | done |
10312 | IFS=$as_save_IFS | |
c6b750e1 | 10313 | |
55db4b87 PB |
10314 | fi |
10315 | fi | |
c6b750e1 | 10316 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10317 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10319 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10320 | else |
81ecdfbb RW |
10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10322 | $as_echo "no" >&6; } | |
55db4b87 | 10323 | fi |
c6b750e1 | 10324 | |
81ecdfbb | 10325 | |
2429c060 PB |
10326 | fi |
10327 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10328 | done | |
10329 | fi | |
c6b750e1 | 10330 | |
05cbd757 PB |
10331 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10332 | set dummy cc gcc | |
10333 | if test $build = $target ; then | |
10334 | CC_FOR_TARGET="$2" | |
55db4b87 | 10335 | else |
05cbd757 | 10336 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10337 | fi |
d3f5afc4 MS |
10338 | else |
10339 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10340 | fi |
10341 | ||
9a819804 AO |
10342 | |
10343 | ||
10344 | if test -n "$CXX_FOR_TARGET"; then | |
10345 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10346 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10347 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10348 | fi | |
10349 | ||
10350 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10351 | for ncn_progname in c++ g++ cxx gxx; do | |
10352 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10353 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10355 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10356 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10357 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10358 | else |
10359 | if test -n "$CXX_FOR_TARGET"; then | |
10360 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10361 | else | |
10362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10363 | for as_dir in $PATH | |
10364 | do | |
10365 | IFS=$as_save_IFS | |
10366 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10367 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10369 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10371 | break 2 |
10372 | fi | |
10373 | done | |
81ecdfbb RW |
10374 | done |
10375 | IFS=$as_save_IFS | |
9a819804 AO |
10376 | |
10377 | fi | |
10378 | fi | |
10379 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10380 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10382 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10383 | else |
81ecdfbb RW |
10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10385 | $as_echo "no" >&6; } | |
9a819804 AO |
10386 | fi |
10387 | ||
81ecdfbb | 10388 | |
9a819804 AO |
10389 | done |
10390 | fi | |
10391 | ||
10392 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10393 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10395 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10396 | if test -x $with_build_time_tools/${ncn_progname}; then |
10397 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10399 | $as_echo "yes" >&6; } | |
2429c060 PB |
10400 | break |
10401 | else | |
81ecdfbb RW |
10402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10403 | $as_echo "no" >&6; } | |
2429c060 PB |
10404 | fi |
10405 | done | |
10406 | fi | |
10407 | ||
10408 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10409 | for ncn_progname in c++ g++ cxx gxx; do | |
10410 | if test -n "$ncn_target_tool_prefix"; then | |
10411 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10412 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10414 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10415 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10416 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10417 | else |
10418 | if test -n "$CXX_FOR_TARGET"; then | |
10419 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10420 | else | |
c6b750e1 DJ |
10421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10422 | for as_dir in $PATH | |
10423 | do | |
10424 | IFS=$as_save_IFS | |
10425 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10426 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10427 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10428 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10430 | break 2 |
10431 | fi | |
10432 | done | |
81ecdfbb RW |
10433 | done |
10434 | IFS=$as_save_IFS | |
c6b750e1 | 10435 | |
55db4b87 PB |
10436 | fi |
10437 | fi | |
c6b750e1 | 10438 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10439 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10441 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10442 | else |
81ecdfbb RW |
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10444 | $as_echo "no" >&6; } | |
55db4b87 PB |
10445 | fi |
10446 | ||
81ecdfbb | 10447 | |
2429c060 PB |
10448 | fi |
10449 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10450 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10451 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10453 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10454 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10455 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10456 | else |
05cbd757 PB |
10457 | if test -n "$CXX_FOR_TARGET"; then |
10458 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10459 | else |
c6b750e1 DJ |
10460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10461 | for as_dir in $PATH | |
10462 | do | |
10463 | IFS=$as_save_IFS | |
10464 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10465 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10466 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10467 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10469 | break 2 |
10470 | fi | |
10471 | done | |
81ecdfbb RW |
10472 | done |
10473 | IFS=$as_save_IFS | |
c6b750e1 | 10474 | |
55db4b87 PB |
10475 | fi |
10476 | fi | |
c6b750e1 | 10477 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10478 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10480 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10481 | else |
81ecdfbb RW |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10483 | $as_echo "no" >&6; } | |
55db4b87 | 10484 | fi |
c6b750e1 | 10485 | |
81ecdfbb | 10486 | |
2429c060 PB |
10487 | fi |
10488 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10489 | done | |
10490 | fi | |
c6b750e1 | 10491 | |
05cbd757 PB |
10492 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10493 | set dummy c++ g++ cxx gxx | |
10494 | if test $build = $target ; then | |
10495 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10496 | else |
05cbd757 | 10497 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10498 | fi |
d3f5afc4 MS |
10499 | else |
10500 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10501 | fi |
10502 | ||
9a819804 AO |
10503 | |
10504 | ||
10505 | if test -n "$GCC_FOR_TARGET"; then | |
10506 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10507 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10508 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10509 | fi | |
10510 | ||
10511 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10512 | for ncn_progname in gcc; do | |
10513 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10514 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10516 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10517 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10518 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10519 | else |
10520 | if test -n "$GCC_FOR_TARGET"; then | |
10521 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10522 | else | |
10523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10524 | for as_dir in $PATH | |
10525 | do | |
10526 | IFS=$as_save_IFS | |
10527 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10528 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10529 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10530 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10532 | break 2 |
10533 | fi | |
10534 | done | |
81ecdfbb RW |
10535 | done |
10536 | IFS=$as_save_IFS | |
9a819804 AO |
10537 | |
10538 | fi | |
10539 | fi | |
10540 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10541 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10543 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10544 | else |
81ecdfbb RW |
10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10546 | $as_echo "no" >&6; } | |
9a819804 AO |
10547 | fi |
10548 | ||
81ecdfbb | 10549 | |
9a819804 AO |
10550 | done |
10551 | fi | |
10552 | ||
10553 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10554 | for ncn_progname in gcc; do |
81ecdfbb RW |
10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10556 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10557 | if test -x $with_build_time_tools/${ncn_progname}; then |
10558 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10560 | $as_echo "yes" >&6; } | |
2429c060 PB |
10561 | break |
10562 | else | |
81ecdfbb RW |
10563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10564 | $as_echo "no" >&6; } | |
2429c060 PB |
10565 | fi |
10566 | done | |
10567 | fi | |
10568 | ||
10569 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10570 | for ncn_progname in gcc; do | |
10571 | if test -n "$ncn_target_tool_prefix"; then | |
10572 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10573 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10575 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10576 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10577 | $as_echo_n "(cached) " >&6 |
859789af | 10578 | else |
2429c060 PB |
10579 | if test -n "$GCC_FOR_TARGET"; then |
10580 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10581 | else |
c6b750e1 DJ |
10582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10583 | for as_dir in $PATH | |
10584 | do | |
10585 | IFS=$as_save_IFS | |
10586 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10587 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10589 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10591 | break 2 |
10592 | fi | |
10593 | done | |
81ecdfbb RW |
10594 | done |
10595 | IFS=$as_save_IFS | |
c6b750e1 | 10596 | |
55db4b87 PB |
10597 | fi |
10598 | fi | |
c6b750e1 | 10599 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10600 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10602 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10603 | else |
81ecdfbb RW |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10605 | $as_echo "no" >&6; } | |
55db4b87 PB |
10606 | fi |
10607 | ||
81ecdfbb | 10608 | |
2429c060 PB |
10609 | fi |
10610 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10611 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10612 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10614 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10615 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10616 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10617 | else |
05cbd757 PB |
10618 | if test -n "$GCC_FOR_TARGET"; then |
10619 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10620 | else |
c6b750e1 DJ |
10621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10622 | for as_dir in $PATH | |
10623 | do | |
10624 | IFS=$as_save_IFS | |
10625 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10626 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10628 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10630 | break 2 |
10631 | fi | |
10632 | done | |
81ecdfbb RW |
10633 | done |
10634 | IFS=$as_save_IFS | |
c6b750e1 | 10635 | |
55db4b87 PB |
10636 | fi |
10637 | fi | |
c6b750e1 | 10638 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10639 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10641 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10642 | else |
81ecdfbb RW |
10643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10644 | $as_echo "no" >&6; } | |
55db4b87 | 10645 | fi |
c6b750e1 | 10646 | |
81ecdfbb | 10647 | |
2429c060 PB |
10648 | fi |
10649 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10650 | done | |
10651 | fi | |
c6b750e1 | 10652 | |
05cbd757 PB |
10653 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10654 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10655 | else |
10656 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10657 | fi |
10658 | ||
9a819804 AO |
10659 | |
10660 | ||
9a819804 AO |
10661 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10662 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10663 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10664 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10665 | fi |
10666 | ||
9a819804 AO |
10667 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10668 | for ncn_progname in gfortran; do | |
10669 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10670 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10672 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10673 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10674 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10675 | else |
9a819804 AO |
10676 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10677 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10678 | else |
c6b750e1 DJ |
10679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10680 | for as_dir in $PATH | |
10681 | do | |
10682 | IFS=$as_save_IFS | |
10683 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10684 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10686 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10688 | break 2 |
10689 | fi | |
10690 | done | |
81ecdfbb RW |
10691 | done |
10692 | IFS=$as_save_IFS | |
c6b750e1 | 10693 | |
55db4b87 PB |
10694 | fi |
10695 | fi | |
9a819804 AO |
10696 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10697 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10699 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10700 | else |
81ecdfbb RW |
10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10702 | $as_echo "no" >&6; } | |
55db4b87 | 10703 | fi |
c6b750e1 | 10704 | |
81ecdfbb | 10705 | |
2429c060 PB |
10706 | done |
10707 | fi | |
c6b750e1 | 10708 | |
9a819804 | 10709 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10710 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10712 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10713 | if test -x $with_build_time_tools/${ncn_progname}; then |
10714 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10716 | $as_echo "yes" >&6; } | |
2429c060 PB |
10717 | break |
10718 | else | |
81ecdfbb RW |
10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10720 | $as_echo "no" >&6; } | |
2429c060 PB |
10721 | fi |
10722 | done | |
10723 | fi | |
10724 | ||
10725 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10726 | for ncn_progname in gfortran; do | |
10727 | if test -n "$ncn_target_tool_prefix"; then | |
10728 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10729 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10731 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10732 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10733 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10734 | else |
10735 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10736 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10737 | else | |
c6b750e1 DJ |
10738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10739 | for as_dir in $PATH | |
10740 | do | |
10741 | IFS=$as_save_IFS | |
10742 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10743 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10745 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10747 | break 2 |
10748 | fi | |
10749 | done | |
81ecdfbb RW |
10750 | done |
10751 | IFS=$as_save_IFS | |
c6b750e1 | 10752 | |
55db4b87 PB |
10753 | fi |
10754 | fi | |
c6b750e1 | 10755 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10756 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10758 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10759 | else |
81ecdfbb RW |
10760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10761 | $as_echo "no" >&6; } | |
55db4b87 PB |
10762 | fi |
10763 | ||
81ecdfbb | 10764 | |
2429c060 PB |
10765 | fi |
10766 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10767 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10768 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10770 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10771 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10772 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10773 | else |
05cbd757 | 10774 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10775 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10776 | else | |
10777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10778 | for as_dir in $PATH | |
10779 | do | |
10780 | IFS=$as_save_IFS | |
10781 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10782 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10784 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10786 | break 2 |
10787 | fi | |
10788 | done | |
81ecdfbb RW |
10789 | done |
10790 | IFS=$as_save_IFS | |
c6b750e1 | 10791 | |
55db4b87 PB |
10792 | fi |
10793 | fi | |
c6b750e1 | 10794 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10795 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10797 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10798 | else |
81ecdfbb RW |
10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10800 | $as_echo "no" >&6; } | |
55db4b87 | 10801 | fi |
c6b750e1 | 10802 | |
81ecdfbb | 10803 | |
2429c060 PB |
10804 | fi |
10805 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10806 | done | |
10807 | fi | |
c6b750e1 | 10808 | |
05cbd757 PB |
10809 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10810 | set dummy gfortran | |
10811 | if test $build = $target ; then | |
10812 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10813 | else |
05cbd757 | 10814 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10815 | fi |
d3f5afc4 MS |
10816 | else |
10817 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10818 | fi |
10819 | ||
2429c060 PB |
10820 | |
10821 | ||
e552509b ILT |
10822 | if test -n "$GOC_FOR_TARGET"; then |
10823 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10824 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10825 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10826 | fi | |
10827 | ||
10828 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10829 | for ncn_progname in gccgo; do | |
10830 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10831 | set dummy ${ncn_progname}; ac_word=$2 | |
10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10833 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10834 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10835 | $as_echo_n "(cached) " >&6 |
10836 | else | |
10837 | if test -n "$GOC_FOR_TARGET"; then | |
10838 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10839 | else | |
10840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10841 | for as_dir in $PATH | |
10842 | do | |
10843 | IFS=$as_save_IFS | |
10844 | test -z "$as_dir" && as_dir=. | |
10845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10846 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10847 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10849 | break 2 | |
10850 | fi | |
10851 | done | |
10852 | done | |
10853 | IFS=$as_save_IFS | |
10854 | ||
10855 | fi | |
10856 | fi | |
10857 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10858 | if test -n "$GOC_FOR_TARGET"; then | |
10859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10860 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10861 | else | |
10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10863 | $as_echo "no" >&6; } | |
10864 | fi | |
10865 | ||
10866 | ||
10867 | done | |
10868 | fi | |
10869 | ||
10870 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10871 | for ncn_progname in gccgo; do | |
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10873 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10874 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10875 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10877 | $as_echo "yes" >&6; } | |
10878 | break | |
10879 | else | |
10880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10881 | $as_echo "no" >&6; } | |
10882 | fi | |
10883 | done | |
10884 | fi | |
10885 | ||
10886 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10887 | for ncn_progname in gccgo; do | |
10888 | if test -n "$ncn_target_tool_prefix"; then | |
10889 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10890 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10892 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10893 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10894 | $as_echo_n "(cached) " >&6 |
10895 | else | |
10896 | if test -n "$GOC_FOR_TARGET"; then | |
10897 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10898 | else | |
10899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10900 | for as_dir in $PATH | |
10901 | do | |
10902 | IFS=$as_save_IFS | |
10903 | test -z "$as_dir" && as_dir=. | |
10904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10906 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10908 | break 2 | |
10909 | fi | |
10910 | done | |
10911 | done | |
10912 | IFS=$as_save_IFS | |
10913 | ||
10914 | fi | |
10915 | fi | |
10916 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10917 | if test -n "$GOC_FOR_TARGET"; then | |
10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10919 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10920 | else | |
10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10922 | $as_echo "no" >&6; } | |
10923 | fi | |
10924 | ||
10925 | ||
10926 | fi | |
10927 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10928 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10929 | set dummy ${ncn_progname}; ac_word=$2 | |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10931 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10932 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10933 | $as_echo_n "(cached) " >&6 |
10934 | else | |
10935 | if test -n "$GOC_FOR_TARGET"; then | |
10936 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10937 | else | |
10938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10939 | for as_dir in $PATH | |
10940 | do | |
10941 | IFS=$as_save_IFS | |
10942 | test -z "$as_dir" && as_dir=. | |
10943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10945 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10947 | break 2 | |
10948 | fi | |
10949 | done | |
10950 | done | |
10951 | IFS=$as_save_IFS | |
10952 | ||
10953 | fi | |
10954 | fi | |
10955 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10956 | if test -n "$GOC_FOR_TARGET"; then | |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10958 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10959 | else | |
10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10961 | $as_echo "no" >&6; } | |
10962 | fi | |
10963 | ||
10964 | ||
10965 | fi | |
10966 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10967 | done | |
10968 | fi | |
10969 | ||
10970 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10971 | set dummy gccgo | |
10972 | if test $build = $target ; then | |
10973 | GOC_FOR_TARGET="$2" | |
10974 | else | |
10975 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10976 | fi | |
10977 | else | |
10978 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10979 | fi | |
10980 | ||
10981 | ||
10982 | ||
f948b2de NC |
10983 | if test -n "$GDC_FOR_TARGET"; then |
10984 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
10985 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
10986 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
10987 | fi | |
10988 | ||
10989 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
10990 | for ncn_progname in gdc; do | |
10991 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10992 | set dummy ${ncn_progname}; ac_word=$2 | |
10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10994 | $as_echo_n "checking for $ac_word... " >&6; } | |
10995 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : | |
10996 | $as_echo_n "(cached) " >&6 | |
10997 | else | |
10998 | if test -n "$GDC_FOR_TARGET"; then | |
10999 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11000 | else | |
11001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11002 | for as_dir in $PATH | |
11003 | do | |
11004 | IFS=$as_save_IFS | |
11005 | test -z "$as_dir" && as_dir=. | |
11006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11008 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" | |
11009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11010 | break 2 | |
11011 | fi | |
11012 | done | |
11013 | done | |
11014 | IFS=$as_save_IFS | |
11015 | ||
11016 | fi | |
11017 | fi | |
11018 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11019 | if test -n "$GDC_FOR_TARGET"; then | |
11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11021 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11022 | else | |
11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11024 | $as_echo "no" >&6; } | |
11025 | fi | |
11026 | ||
11027 | ||
11028 | done | |
11029 | fi | |
11030 | ||
11031 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11032 | for ncn_progname in gdc; do | |
11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11034 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11035 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11036 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11038 | $as_echo "yes" >&6; } | |
11039 | break | |
11040 | else | |
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11042 | $as_echo "no" >&6; } | |
11043 | fi | |
11044 | done | |
11045 | fi | |
11046 | ||
11047 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
11048 | for ncn_progname in gdc; do | |
11049 | if test -n "$ncn_target_tool_prefix"; then | |
11050 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11051 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11053 | $as_echo_n "checking for $ac_word... " >&6; } | |
11054 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : | |
11055 | $as_echo_n "(cached) " >&6 | |
11056 | else | |
11057 | if test -n "$GDC_FOR_TARGET"; then | |
11058 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11059 | else | |
11060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11061 | for as_dir in $PATH | |
11062 | do | |
11063 | IFS=$as_save_IFS | |
11064 | test -z "$as_dir" && as_dir=. | |
11065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11066 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11067 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
11068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11069 | break 2 | |
11070 | fi | |
11071 | done | |
11072 | done | |
11073 | IFS=$as_save_IFS | |
11074 | ||
11075 | fi | |
11076 | fi | |
11077 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11078 | if test -n "$GDC_FOR_TARGET"; then | |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11080 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11081 | else | |
11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11083 | $as_echo "no" >&6; } | |
11084 | fi | |
11085 | ||
11086 | ||
11087 | fi | |
11088 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
11089 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11090 | set dummy ${ncn_progname}; ac_word=$2 | |
11091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11092 | $as_echo_n "checking for $ac_word... " >&6; } | |
11093 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : | |
11094 | $as_echo_n "(cached) " >&6 | |
11095 | else | |
11096 | if test -n "$GDC_FOR_TARGET"; then | |
11097 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11098 | else | |
11099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11100 | for as_dir in $PATH | |
11101 | do | |
11102 | IFS=$as_save_IFS | |
11103 | test -z "$as_dir" && as_dir=. | |
11104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11106 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" | |
11107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11108 | break 2 | |
11109 | fi | |
11110 | done | |
11111 | done | |
11112 | IFS=$as_save_IFS | |
11113 | ||
11114 | fi | |
11115 | fi | |
11116 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11117 | if test -n "$GDC_FOR_TARGET"; then | |
11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11119 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11120 | else | |
11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11122 | $as_echo "no" >&6; } | |
11123 | fi | |
11124 | ||
11125 | ||
11126 | fi | |
11127 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
11128 | done | |
11129 | fi | |
11130 | ||
11131 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
11132 | set dummy gdc | |
11133 | if test $build = $target ; then | |
11134 | GDC_FOR_TARGET="$2" | |
11135 | else | |
11136 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11137 | fi | |
11138 | else | |
11139 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
11140 | fi | |
11141 | ||
11142 | ||
11143 | ||
2429c060 PB |
11144 | cat > conftest.c << \EOF |
11145 | #ifdef __GNUC__ | |
11146 | gcc_yay; | |
11147 | #endif | |
11148 | EOF | |
11149 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
11150 | have_gcc_for_target=yes | |
859789af | 11151 | else |
2429c060 PB |
11152 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
11153 | have_gcc_for_target=no | |
859789af | 11154 | fi |
2429c060 PB |
11155 | rm conftest.c |
11156 | ||
11157 | ||
11158 | ||
859789af | 11159 | |
2429c060 PB |
11160 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
11161 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
11163 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11164 | if test -x $with_build_time_tools/ar; then |
11165 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
11166 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
11168 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 11169 | else |
81ecdfbb RW |
11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11171 | $as_echo "no" >&6; } | |
3a35eeb3 | 11172 | fi |
2429c060 PB |
11173 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11174 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
11175 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
11176 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 11177 | fi |
2429c060 | 11178 | fi |
c6b750e1 | 11179 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11180 | # Extract the first word of "ar", so it can be a program name with args. |
11181 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11183 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11184 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11185 | $as_echo_n "(cached) " >&6 |
859789af | 11186 | else |
c6b750e1 DJ |
11187 | case $AR_FOR_TARGET in |
11188 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11189 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11190 | ;; | |
2429c060 | 11191 | *) |
c6b750e1 DJ |
11192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11193 | for as_dir in $gcc_cv_tool_dirs | |
11194 | do | |
11195 | IFS=$as_save_IFS | |
11196 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11197 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11198 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11199 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11201 | break 2 |
11202 | fi | |
11203 | done | |
81ecdfbb RW |
11204 | done |
11205 | IFS=$as_save_IFS | |
c6b750e1 | 11206 | |
2429c060 PB |
11207 | ;; |
11208 | esac | |
859789af | 11209 | fi |
c6b750e1 | 11210 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 11211 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11213 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 11214 | else |
81ecdfbb RW |
11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11216 | $as_echo "no" >&6; } | |
859789af | 11217 | fi |
05cbd757 | 11218 | |
81ecdfbb | 11219 | |
2429c060 PB |
11220 | fi |
11221 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
11222 | |
11223 | ||
11224 | if test -n "$AR_FOR_TARGET"; then | |
11225 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11226 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11227 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11228 | fi | |
11229 | ||
11230 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11231 | for ncn_progname in ar; do | |
11232 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11233 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11235 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11236 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11237 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11238 | else |
11239 | if test -n "$AR_FOR_TARGET"; then | |
11240 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11241 | else | |
11242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11243 | for as_dir in $PATH | |
11244 | do | |
11245 | IFS=$as_save_IFS | |
11246 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11247 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11248 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11249 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11250 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11251 | break 2 |
11252 | fi | |
11253 | done | |
81ecdfbb RW |
11254 | done |
11255 | IFS=$as_save_IFS | |
9a819804 AO |
11256 | |
11257 | fi | |
11258 | fi | |
11259 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11260 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
11261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11262 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 11263 | else |
81ecdfbb RW |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11265 | $as_echo "no" >&6; } | |
9a819804 AO |
11266 | fi |
11267 | ||
81ecdfbb | 11268 | |
9a819804 AO |
11269 | done |
11270 | fi | |
11271 | ||
11272 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11273 | for ncn_progname in ar; do |
81ecdfbb RW |
11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11275 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11276 | if test -x $with_build_time_tools/${ncn_progname}; then |
11277 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11279 | $as_echo "yes" >&6; } | |
2429c060 PB |
11280 | break |
11281 | else | |
81ecdfbb RW |
11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11283 | $as_echo "no" >&6; } | |
2429c060 PB |
11284 | fi |
11285 | done | |
859789af AC |
11286 | fi |
11287 | ||
2429c060 PB |
11288 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11289 | for ncn_progname in ar; do | |
11290 | if test -n "$ncn_target_tool_prefix"; then | |
11291 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11292 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11294 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11295 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11296 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 11297 | else |
2429c060 PB |
11298 | if test -n "$AR_FOR_TARGET"; then |
11299 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 11300 | else |
c6b750e1 DJ |
11301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11302 | for as_dir in $PATH | |
11303 | do | |
11304 | IFS=$as_save_IFS | |
11305 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11306 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11308 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11310 | break 2 |
11311 | fi | |
11312 | done | |
81ecdfbb RW |
11313 | done |
11314 | IFS=$as_save_IFS | |
c6b750e1 | 11315 | |
7e0f7140 GK |
11316 | fi |
11317 | fi | |
c6b750e1 | 11318 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11319 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11321 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11322 | else |
81ecdfbb RW |
11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11324 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11325 | fi |
11326 | ||
81ecdfbb | 11327 | |
2429c060 PB |
11328 | fi |
11329 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11330 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11331 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11333 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11334 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11335 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 11336 | else |
2429c060 PB |
11337 | if test -n "$AR_FOR_TARGET"; then |
11338 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11339 | else |
c6b750e1 DJ |
11340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11341 | for as_dir in $PATH | |
11342 | do | |
11343 | IFS=$as_save_IFS | |
11344 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11345 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11347 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11349 | break 2 |
11350 | fi | |
11351 | done | |
81ecdfbb RW |
11352 | done |
11353 | IFS=$as_save_IFS | |
c6b750e1 | 11354 | |
7e0f7140 GK |
11355 | fi |
11356 | fi | |
c6b750e1 | 11357 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11358 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11360 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11361 | else |
81ecdfbb RW |
11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11363 | $as_echo "no" >&6; } | |
7e0f7140 | 11364 | fi |
c6b750e1 | 11365 | |
81ecdfbb | 11366 | |
2429c060 PB |
11367 | fi |
11368 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11369 | done | |
11370 | fi | |
c6b750e1 | 11371 | |
2429c060 PB |
11372 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11373 | set dummy ar | |
7e0f7140 | 11374 | if test $build = $target ; then |
2429c060 | 11375 | AR_FOR_TARGET="$2" |
7e0f7140 | 11376 | else |
2429c060 | 11377 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11378 | fi |
d3f5afc4 MS |
11379 | else |
11380 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11381 | fi |
11382 | ||
3a35eeb3 PB |
11383 | else |
11384 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11385 | fi |
11386 | ||
11387 | ||
11388 | ||
11389 | ||
11390 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11391 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11393 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11394 | if test -x $with_build_time_tools/as; then |
11395 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11396 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11398 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11399 | else |
81ecdfbb RW |
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11401 | $as_echo "no" >&6; } | |
3a35eeb3 | 11402 | fi |
2429c060 PB |
11403 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11404 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11405 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11406 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11407 | fi |
11408 | fi | |
c6b750e1 | 11409 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11410 | # Extract the first word of "as", so it can be a program name with args. |
11411 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11413 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11414 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11415 | $as_echo_n "(cached) " >&6 |
2429c060 | 11416 | else |
c6b750e1 DJ |
11417 | case $AS_FOR_TARGET in |
11418 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11419 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11420 | ;; | |
2429c060 | 11421 | *) |
c6b750e1 DJ |
11422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11423 | for as_dir in $gcc_cv_tool_dirs | |
11424 | do | |
11425 | IFS=$as_save_IFS | |
11426 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11427 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11428 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11429 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11431 | break 2 |
11432 | fi | |
11433 | done | |
81ecdfbb RW |
11434 | done |
11435 | IFS=$as_save_IFS | |
c6b750e1 | 11436 | |
2429c060 PB |
11437 | ;; |
11438 | esac | |
11439 | fi | |
c6b750e1 | 11440 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11441 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11443 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11444 | else |
81ecdfbb RW |
11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11446 | $as_echo "no" >&6; } | |
2429c060 PB |
11447 | fi |
11448 | ||
81ecdfbb | 11449 | |
2429c060 PB |
11450 | fi |
11451 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11452 | |
11453 | ||
11454 | if test -n "$AS_FOR_TARGET"; then | |
11455 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11456 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11457 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11458 | fi | |
11459 | ||
11460 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11461 | for ncn_progname in as; do | |
11462 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11463 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11465 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11466 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11467 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11468 | else |
11469 | if test -n "$AS_FOR_TARGET"; then | |
11470 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11471 | else | |
11472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11473 | for as_dir in $PATH | |
11474 | do | |
11475 | IFS=$as_save_IFS | |
11476 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11477 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11479 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11481 | break 2 |
11482 | fi | |
11483 | done | |
81ecdfbb RW |
11484 | done |
11485 | IFS=$as_save_IFS | |
9a819804 AO |
11486 | |
11487 | fi | |
11488 | fi | |
11489 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11490 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11492 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11493 | else |
81ecdfbb RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11495 | $as_echo "no" >&6; } | |
9a819804 AO |
11496 | fi |
11497 | ||
81ecdfbb | 11498 | |
9a819804 AO |
11499 | done |
11500 | fi | |
11501 | ||
11502 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11503 | for ncn_progname in as; do |
81ecdfbb RW |
11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11505 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11506 | if test -x $with_build_time_tools/${ncn_progname}; then |
11507 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11509 | $as_echo "yes" >&6; } | |
2429c060 PB |
11510 | break |
11511 | else | |
81ecdfbb RW |
11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11513 | $as_echo "no" >&6; } | |
2429c060 PB |
11514 | fi |
11515 | done | |
11516 | fi | |
11517 | ||
11518 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11519 | for ncn_progname in as; do | |
11520 | if test -n "$ncn_target_tool_prefix"; then | |
11521 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11522 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11524 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11525 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11526 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11527 | else |
11528 | if test -n "$AS_FOR_TARGET"; then | |
11529 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11530 | else | |
c6b750e1 DJ |
11531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11532 | for as_dir in $PATH | |
11533 | do | |
11534 | IFS=$as_save_IFS | |
11535 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11536 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11538 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11540 | break 2 |
11541 | fi | |
11542 | done | |
81ecdfbb RW |
11543 | done |
11544 | IFS=$as_save_IFS | |
c6b750e1 | 11545 | |
2429c060 PB |
11546 | fi |
11547 | fi | |
c6b750e1 | 11548 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11549 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11551 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11552 | else |
81ecdfbb RW |
11553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11554 | $as_echo "no" >&6; } | |
2429c060 PB |
11555 | fi |
11556 | ||
81ecdfbb | 11557 | |
2429c060 PB |
11558 | fi |
11559 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11560 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11561 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11563 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11564 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11565 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11566 | else |
11567 | if test -n "$AS_FOR_TARGET"; then | |
11568 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11569 | else | |
c6b750e1 DJ |
11570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11571 | for as_dir in $PATH | |
11572 | do | |
11573 | IFS=$as_save_IFS | |
11574 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11575 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11577 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11579 | break 2 |
11580 | fi | |
11581 | done | |
81ecdfbb RW |
11582 | done |
11583 | IFS=$as_save_IFS | |
c6b750e1 | 11584 | |
2429c060 PB |
11585 | fi |
11586 | fi | |
c6b750e1 | 11587 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11588 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11590 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11591 | else |
81ecdfbb RW |
11592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11593 | $as_echo "no" >&6; } | |
2429c060 | 11594 | fi |
c6b750e1 | 11595 | |
81ecdfbb | 11596 | |
2429c060 PB |
11597 | fi |
11598 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11599 | done | |
11600 | fi | |
c6b750e1 | 11601 | |
2429c060 PB |
11602 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11603 | set dummy as | |
11604 | if test $build = $target ; then | |
11605 | AS_FOR_TARGET="$2" | |
11606 | else | |
11607 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11608 | fi | |
d3f5afc4 MS |
11609 | else |
11610 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11611 | fi |
11612 | ||
3a35eeb3 PB |
11613 | else |
11614 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11615 | fi |
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11621 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11623 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11624 | if test -x $with_build_time_tools/dlltool; then |
11625 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11626 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11628 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11629 | else |
81ecdfbb RW |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11631 | $as_echo "no" >&6; } | |
3a35eeb3 | 11632 | fi |
2429c060 PB |
11633 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11634 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11635 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11636 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11637 | fi |
11638 | fi | |
c6b750e1 | 11639 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11640 | # Extract the first word of "dlltool", so it can be a program name with args. |
11641 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11643 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11644 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11645 | $as_echo_n "(cached) " >&6 |
2429c060 | 11646 | else |
c6b750e1 DJ |
11647 | case $DLLTOOL_FOR_TARGET in |
11648 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11649 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11650 | ;; | |
2429c060 | 11651 | *) |
c6b750e1 DJ |
11652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11653 | for as_dir in $gcc_cv_tool_dirs | |
11654 | do | |
11655 | IFS=$as_save_IFS | |
11656 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11657 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11658 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11659 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11661 | break 2 |
11662 | fi | |
11663 | done | |
81ecdfbb RW |
11664 | done |
11665 | IFS=$as_save_IFS | |
c6b750e1 | 11666 | |
2429c060 PB |
11667 | ;; |
11668 | esac | |
11669 | fi | |
c6b750e1 | 11670 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11671 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11673 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11674 | else |
81ecdfbb RW |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11676 | $as_echo "no" >&6; } | |
2429c060 PB |
11677 | fi |
11678 | ||
81ecdfbb | 11679 | |
2429c060 PB |
11680 | fi |
11681 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11682 | |
11683 | ||
11684 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11685 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11686 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11687 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11688 | fi | |
11689 | ||
11690 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11691 | for ncn_progname in dlltool; do | |
11692 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11693 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11695 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11696 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11697 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11698 | else |
11699 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11700 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11701 | else | |
11702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11703 | for as_dir in $PATH | |
11704 | do | |
11705 | IFS=$as_save_IFS | |
11706 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11707 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11708 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11709 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11711 | break 2 |
11712 | fi | |
11713 | done | |
81ecdfbb RW |
11714 | done |
11715 | IFS=$as_save_IFS | |
9a819804 AO |
11716 | |
11717 | fi | |
11718 | fi | |
11719 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11720 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11722 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11723 | else |
81ecdfbb RW |
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11725 | $as_echo "no" >&6; } | |
9a819804 AO |
11726 | fi |
11727 | ||
81ecdfbb | 11728 | |
9a819804 AO |
11729 | done |
11730 | fi | |
11731 | ||
11732 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11733 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11735 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11736 | if test -x $with_build_time_tools/${ncn_progname}; then |
11737 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11739 | $as_echo "yes" >&6; } | |
2429c060 PB |
11740 | break |
11741 | else | |
81ecdfbb RW |
11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11743 | $as_echo "no" >&6; } | |
2429c060 PB |
11744 | fi |
11745 | done | |
11746 | fi | |
11747 | ||
11748 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11749 | for ncn_progname in dlltool; do | |
11750 | if test -n "$ncn_target_tool_prefix"; then | |
11751 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11752 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11754 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11755 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11756 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11757 | else |
11758 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11759 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11760 | else | |
c6b750e1 DJ |
11761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11762 | for as_dir in $PATH | |
11763 | do | |
11764 | IFS=$as_save_IFS | |
11765 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11766 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11768 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11770 | break 2 |
11771 | fi | |
11772 | done | |
81ecdfbb RW |
11773 | done |
11774 | IFS=$as_save_IFS | |
c6b750e1 | 11775 | |
2429c060 PB |
11776 | fi |
11777 | fi | |
c6b750e1 | 11778 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11779 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11781 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11782 | else |
81ecdfbb RW |
11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11784 | $as_echo "no" >&6; } | |
2429c060 PB |
11785 | fi |
11786 | ||
81ecdfbb | 11787 | |
2429c060 PB |
11788 | fi |
11789 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11790 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11791 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11793 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11794 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11795 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11796 | else |
11797 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11798 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11799 | else | |
c6b750e1 DJ |
11800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11801 | for as_dir in $PATH | |
11802 | do | |
11803 | IFS=$as_save_IFS | |
11804 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11805 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11807 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11809 | break 2 |
11810 | fi | |
11811 | done | |
81ecdfbb RW |
11812 | done |
11813 | IFS=$as_save_IFS | |
c6b750e1 | 11814 | |
2429c060 PB |
11815 | fi |
11816 | fi | |
c6b750e1 | 11817 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11818 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11820 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11821 | else |
81ecdfbb RW |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11823 | $as_echo "no" >&6; } | |
2429c060 | 11824 | fi |
c6b750e1 | 11825 | |
81ecdfbb | 11826 | |
2429c060 PB |
11827 | fi |
11828 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11829 | done | |
11830 | fi | |
c6b750e1 | 11831 | |
2429c060 PB |
11832 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11833 | set dummy dlltool | |
11834 | if test $build = $target ; then | |
11835 | DLLTOOL_FOR_TARGET="$2" | |
11836 | else | |
11837 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11838 | fi | |
d3f5afc4 MS |
11839 | else |
11840 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11841 | fi |
11842 | ||
3a35eeb3 PB |
11843 | else |
11844 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11845 | fi |
11846 | ||
11847 | ||
11848 | ||
11849 | ||
11850 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11851 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11853 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11854 | if test -x $with_build_time_tools/ld; then |
11855 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11856 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11858 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11859 | else |
81ecdfbb RW |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11861 | $as_echo "no" >&6; } | |
3a35eeb3 | 11862 | fi |
2429c060 PB |
11863 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11864 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11865 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11866 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11867 | fi |
11868 | fi | |
c6b750e1 | 11869 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11870 | # Extract the first word of "ld", so it can be a program name with args. |
11871 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11873 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11874 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11875 | $as_echo_n "(cached) " >&6 |
2429c060 | 11876 | else |
c6b750e1 DJ |
11877 | case $LD_FOR_TARGET in |
11878 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11879 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11880 | ;; | |
2429c060 | 11881 | *) |
c6b750e1 DJ |
11882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11883 | for as_dir in $gcc_cv_tool_dirs | |
11884 | do | |
11885 | IFS=$as_save_IFS | |
11886 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11887 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11888 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11889 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11891 | break 2 |
11892 | fi | |
11893 | done | |
81ecdfbb RW |
11894 | done |
11895 | IFS=$as_save_IFS | |
c6b750e1 | 11896 | |
2429c060 PB |
11897 | ;; |
11898 | esac | |
11899 | fi | |
c6b750e1 | 11900 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11901 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11903 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11904 | else |
81ecdfbb RW |
11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11906 | $as_echo "no" >&6; } | |
2429c060 PB |
11907 | fi |
11908 | ||
81ecdfbb | 11909 | |
2429c060 PB |
11910 | fi |
11911 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11912 | |
11913 | ||
11914 | if test -n "$LD_FOR_TARGET"; then | |
11915 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11916 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11917 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11918 | fi | |
11919 | ||
11920 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11921 | for ncn_progname in ld; do | |
11922 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11923 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11925 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11926 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11927 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11928 | else |
11929 | if test -n "$LD_FOR_TARGET"; then | |
11930 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11931 | else | |
11932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11933 | for as_dir in $PATH | |
11934 | do | |
11935 | IFS=$as_save_IFS | |
11936 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11937 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11939 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11941 | break 2 |
11942 | fi | |
11943 | done | |
81ecdfbb RW |
11944 | done |
11945 | IFS=$as_save_IFS | |
9a819804 AO |
11946 | |
11947 | fi | |
11948 | fi | |
11949 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11950 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11952 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11953 | else |
81ecdfbb RW |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11955 | $as_echo "no" >&6; } | |
9a819804 AO |
11956 | fi |
11957 | ||
81ecdfbb | 11958 | |
9a819804 AO |
11959 | done |
11960 | fi | |
11961 | ||
11962 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11963 | for ncn_progname in ld; do |
81ecdfbb RW |
11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11965 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11966 | if test -x $with_build_time_tools/${ncn_progname}; then |
11967 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11969 | $as_echo "yes" >&6; } | |
2429c060 PB |
11970 | break |
11971 | else | |
81ecdfbb RW |
11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11973 | $as_echo "no" >&6; } | |
2429c060 PB |
11974 | fi |
11975 | done | |
11976 | fi | |
11977 | ||
11978 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11979 | for ncn_progname in ld; do | |
11980 | if test -n "$ncn_target_tool_prefix"; then | |
11981 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11982 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11984 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11985 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11986 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11987 | else |
11988 | if test -n "$LD_FOR_TARGET"; then | |
11989 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11990 | else | |
c6b750e1 DJ |
11991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11992 | for as_dir in $PATH | |
11993 | do | |
11994 | IFS=$as_save_IFS | |
11995 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11996 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11998 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12000 | break 2 |
12001 | fi | |
12002 | done | |
81ecdfbb RW |
12003 | done |
12004 | IFS=$as_save_IFS | |
c6b750e1 | 12005 | |
2429c060 PB |
12006 | fi |
12007 | fi | |
c6b750e1 | 12008 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 12009 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
12010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12011 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 12012 | else |
81ecdfbb RW |
12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12014 | $as_echo "no" >&6; } | |
2429c060 PB |
12015 | fi |
12016 | ||
81ecdfbb | 12017 | |
2429c060 PB |
12018 | fi |
12019 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
12020 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12021 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12023 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12024 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 12025 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
12026 | else |
12027 | if test -n "$LD_FOR_TARGET"; then | |
12028 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
12029 | else | |
c6b750e1 DJ |
12030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12031 | for as_dir in $PATH | |
12032 | do | |
12033 | IFS=$as_save_IFS | |
12034 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12035 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12036 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12037 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12039 | break 2 |
12040 | fi | |
12041 | done | |
81ecdfbb RW |
12042 | done |
12043 | IFS=$as_save_IFS | |
c6b750e1 | 12044 | |
2429c060 PB |
12045 | fi |
12046 | fi | |
c6b750e1 | 12047 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 12048 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
12049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12050 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 12051 | else |
81ecdfbb RW |
12052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12053 | $as_echo "no" >&6; } | |
2429c060 | 12054 | fi |
c6b750e1 | 12055 | |
81ecdfbb | 12056 | |
2429c060 PB |
12057 | fi |
12058 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
12059 | done | |
12060 | fi | |
c6b750e1 | 12061 | |
2429c060 PB |
12062 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
12063 | set dummy ld | |
12064 | if test $build = $target ; then | |
12065 | LD_FOR_TARGET="$2" | |
12066 | else | |
12067 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12068 | fi | |
d3f5afc4 MS |
12069 | else |
12070 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
12071 | fi |
12072 | ||
3a35eeb3 PB |
12073 | else |
12074 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
12075 | fi |
12076 | ||
12077 | ||
12078 | ||
12079 | ||
12080 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12081 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
12083 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12084 | if test -x $with_build_time_tools/lipo; then |
12085 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
12086 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
12088 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 12089 | else |
81ecdfbb RW |
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12091 | $as_echo "no" >&6; } | |
3a35eeb3 | 12092 | fi |
2429c060 PB |
12093 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12094 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
12095 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
12096 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
12097 | fi |
12098 | fi | |
9a819804 AO |
12099 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
12100 | # Extract the first word of "lipo", so it can be a program name with args. | |
12101 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12103 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12104 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12105 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12106 | else |
12107 | case $LIPO_FOR_TARGET in | |
12108 | [\\/]* | ?:[\\/]*) | |
12109 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
12110 | ;; | |
12111 | *) | |
12112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12113 | for as_dir in $gcc_cv_tool_dirs | |
12114 | do | |
12115 | IFS=$as_save_IFS | |
12116 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12117 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12119 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12121 | break 2 |
12122 | fi | |
12123 | done | |
81ecdfbb RW |
12124 | done |
12125 | IFS=$as_save_IFS | |
9a819804 AO |
12126 | |
12127 | ;; | |
12128 | esac | |
12129 | fi | |
12130 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 12131 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12133 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 12134 | else |
81ecdfbb RW |
12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12136 | $as_echo "no" >&6; } | |
9a819804 AO |
12137 | fi |
12138 | ||
81ecdfbb | 12139 | |
9a819804 AO |
12140 | fi |
12141 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12142 | ||
12143 | ||
12144 | if test -n "$LIPO_FOR_TARGET"; then | |
12145 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
12146 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12147 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
12148 | fi | |
12149 | ||
12150 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12151 | for ncn_progname in lipo; do | |
12152 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12153 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12155 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12156 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12157 | $as_echo_n "(cached) " >&6 |
2429c060 | 12158 | else |
9a819804 AO |
12159 | if test -n "$LIPO_FOR_TARGET"; then |
12160 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12161 | else | |
12162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12163 | for as_dir in $PATH | |
c6b750e1 DJ |
12164 | do |
12165 | IFS=$as_save_IFS | |
12166 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12167 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12169 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12171 | break 2 |
12172 | fi | |
12173 | done | |
81ecdfbb RW |
12174 | done |
12175 | IFS=$as_save_IFS | |
c6b750e1 | 12176 | |
2429c060 | 12177 | fi |
9a819804 AO |
12178 | fi |
12179 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 12180 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12182 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12183 | else |
81ecdfbb RW |
12184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12185 | $as_echo "no" >&6; } | |
2429c060 PB |
12186 | fi |
12187 | ||
81ecdfbb | 12188 | |
9a819804 | 12189 | done |
2429c060 | 12190 | fi |
9a819804 AO |
12191 | |
12192 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12193 | for ncn_progname in lipo; do |
81ecdfbb RW |
12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12195 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12196 | if test -x $with_build_time_tools/${ncn_progname}; then |
12197 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12199 | $as_echo "yes" >&6; } | |
2429c060 PB |
12200 | break |
12201 | else | |
81ecdfbb RW |
12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12203 | $as_echo "no" >&6; } | |
2429c060 PB |
12204 | fi |
12205 | done | |
12206 | fi | |
12207 | ||
12208 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12209 | for ncn_progname in lipo; do | |
12210 | if test -n "$ncn_target_tool_prefix"; then | |
12211 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12212 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12214 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12215 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12216 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
12217 | else |
12218 | if test -n "$LIPO_FOR_TARGET"; then | |
12219 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12220 | else | |
c6b750e1 DJ |
12221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12222 | for as_dir in $PATH | |
12223 | do | |
12224 | IFS=$as_save_IFS | |
12225 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12226 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12228 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12230 | break 2 |
12231 | fi | |
12232 | done | |
81ecdfbb RW |
12233 | done |
12234 | IFS=$as_save_IFS | |
c6b750e1 | 12235 | |
2429c060 PB |
12236 | fi |
12237 | fi | |
c6b750e1 | 12238 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12239 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12241 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12242 | else |
81ecdfbb RW |
12243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12244 | $as_echo "no" >&6; } | |
2429c060 PB |
12245 | fi |
12246 | ||
81ecdfbb | 12247 | |
2429c060 PB |
12248 | fi |
12249 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12251 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12253 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12254 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12255 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
12256 | else |
12257 | if test -n "$LIPO_FOR_TARGET"; then | |
12258 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12259 | else | |
c6b750e1 DJ |
12260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12261 | for as_dir in $PATH | |
12262 | do | |
12263 | IFS=$as_save_IFS | |
12264 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12265 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12267 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12269 | break 2 |
12270 | fi | |
12271 | done | |
81ecdfbb RW |
12272 | done |
12273 | IFS=$as_save_IFS | |
c6b750e1 | 12274 | |
2429c060 PB |
12275 | fi |
12276 | fi | |
c6b750e1 | 12277 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12278 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12280 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12281 | else |
81ecdfbb RW |
12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12283 | $as_echo "no" >&6; } | |
2429c060 | 12284 | fi |
c6b750e1 | 12285 | |
81ecdfbb | 12286 | |
2429c060 PB |
12287 | fi |
12288 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12289 | done | |
12290 | fi | |
c6b750e1 | 12291 | |
2429c060 PB |
12292 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12293 | set dummy lipo | |
12294 | if test $build = $target ; then | |
12295 | LIPO_FOR_TARGET="$2" | |
12296 | else | |
12297 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12298 | fi | |
d3f5afc4 MS |
12299 | else |
12300 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
12301 | fi |
12302 | ||
3a35eeb3 PB |
12303 | else |
12304 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
12305 | fi |
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12311 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12313 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12314 | if test -x $with_build_time_tools/nm; then |
12315 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12316 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12318 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12319 | else |
81ecdfbb RW |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12321 | $as_echo "no" >&6; } | |
3a35eeb3 | 12322 | fi |
2429c060 PB |
12323 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12324 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12325 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12326 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12327 | fi |
12328 | fi | |
c6b750e1 | 12329 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12330 | # Extract the first word of "nm", so it can be a program name with args. |
12331 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12333 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12334 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12335 | $as_echo_n "(cached) " >&6 |
2429c060 | 12336 | else |
c6b750e1 DJ |
12337 | case $NM_FOR_TARGET in |
12338 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12339 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12340 | ;; | |
2429c060 | 12341 | *) |
c6b750e1 DJ |
12342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12343 | for as_dir in $gcc_cv_tool_dirs | |
12344 | do | |
12345 | IFS=$as_save_IFS | |
12346 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12347 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12349 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12351 | break 2 |
12352 | fi | |
12353 | done | |
81ecdfbb RW |
12354 | done |
12355 | IFS=$as_save_IFS | |
c6b750e1 | 12356 | |
2429c060 PB |
12357 | ;; |
12358 | esac | |
12359 | fi | |
c6b750e1 | 12360 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12361 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12363 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12364 | else |
81ecdfbb RW |
12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12366 | $as_echo "no" >&6; } | |
2429c060 PB |
12367 | fi |
12368 | ||
81ecdfbb | 12369 | |
2429c060 PB |
12370 | fi |
12371 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12372 | |
12373 | ||
12374 | if test -n "$NM_FOR_TARGET"; then | |
12375 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12376 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12377 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12378 | fi | |
12379 | ||
12380 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12381 | for ncn_progname in nm; do | |
12382 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12383 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12385 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12386 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12387 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12388 | else |
12389 | if test -n "$NM_FOR_TARGET"; then | |
12390 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12391 | else | |
12392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12393 | for as_dir in $PATH | |
12394 | do | |
12395 | IFS=$as_save_IFS | |
12396 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12397 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12399 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12401 | break 2 |
12402 | fi | |
12403 | done | |
81ecdfbb RW |
12404 | done |
12405 | IFS=$as_save_IFS | |
9a819804 AO |
12406 | |
12407 | fi | |
12408 | fi | |
12409 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12410 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12412 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12413 | else |
81ecdfbb RW |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12415 | $as_echo "no" >&6; } | |
9a819804 AO |
12416 | fi |
12417 | ||
81ecdfbb | 12418 | |
9a819804 AO |
12419 | done |
12420 | fi | |
12421 | ||
12422 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12423 | for ncn_progname in nm; do |
81ecdfbb RW |
12424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12425 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12426 | if test -x $with_build_time_tools/${ncn_progname}; then |
12427 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12429 | $as_echo "yes" >&6; } | |
2429c060 PB |
12430 | break |
12431 | else | |
81ecdfbb RW |
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12433 | $as_echo "no" >&6; } | |
2429c060 PB |
12434 | fi |
12435 | done | |
12436 | fi | |
12437 | ||
12438 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12439 | for ncn_progname in nm; do | |
12440 | if test -n "$ncn_target_tool_prefix"; then | |
12441 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12442 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12444 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12445 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12446 | $as_echo_n "(cached) " >&6 |
859789af | 12447 | else |
55db4b87 PB |
12448 | if test -n "$NM_FOR_TARGET"; then |
12449 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12450 | else |
c6b750e1 DJ |
12451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12452 | for as_dir in $PATH | |
12453 | do | |
12454 | IFS=$as_save_IFS | |
12455 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12456 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12458 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12460 | break 2 |
12461 | fi | |
12462 | done | |
81ecdfbb RW |
12463 | done |
12464 | IFS=$as_save_IFS | |
c6b750e1 | 12465 | |
859789af AC |
12466 | fi |
12467 | fi | |
c6b750e1 | 12468 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12469 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12471 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12472 | else |
81ecdfbb RW |
12473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12474 | $as_echo "no" >&6; } | |
859789af AC |
12475 | fi |
12476 | ||
81ecdfbb | 12477 | |
2429c060 PB |
12478 | fi |
12479 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12480 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12481 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12483 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12484 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12485 | $as_echo_n "(cached) " >&6 |
859789af | 12486 | else |
05cbd757 PB |
12487 | if test -n "$NM_FOR_TARGET"; then |
12488 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12489 | else |
c6b750e1 DJ |
12490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12491 | for as_dir in $PATH | |
12492 | do | |
12493 | IFS=$as_save_IFS | |
12494 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12495 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12496 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12497 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12499 | break 2 |
12500 | fi | |
12501 | done | |
81ecdfbb RW |
12502 | done |
12503 | IFS=$as_save_IFS | |
c6b750e1 | 12504 | |
859789af AC |
12505 | fi |
12506 | fi | |
c6b750e1 | 12507 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12508 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12510 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12511 | else |
81ecdfbb RW |
12512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12513 | $as_echo "no" >&6; } | |
859789af | 12514 | fi |
c6b750e1 | 12515 | |
81ecdfbb | 12516 | |
2429c060 PB |
12517 | fi |
12518 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12519 | done | |
12520 | fi | |
c6b750e1 | 12521 | |
05cbd757 PB |
12522 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12523 | set dummy nm | |
12524 | if test $build = $target ; then | |
12525 | NM_FOR_TARGET="$2" | |
859789af | 12526 | else |
05cbd757 | 12527 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12528 | fi |
d3f5afc4 MS |
12529 | else |
12530 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12531 | fi |
12532 | ||
3a35eeb3 PB |
12533 | else |
12534 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12535 | fi |
12536 | ||
12537 | ||
12538 | ||
12539 | ||
6b91c541 AP |
12540 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12541 | if test -n "$with_build_time_tools"; then | |
12542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12543 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12544 | if test -x $with_build_time_tools/objcopy; then | |
12545 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12546 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12548 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12549 | else | |
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12551 | $as_echo "no" >&6; } | |
12552 | fi | |
12553 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12554 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12555 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12556 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12557 | fi | |
12558 | fi | |
12559 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12560 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12561 | set dummy objcopy; ac_word=$2 | |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12563 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12564 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12565 | $as_echo_n "(cached) " >&6 |
12566 | else | |
12567 | case $OBJCOPY_FOR_TARGET in | |
12568 | [\\/]* | ?:[\\/]*) | |
12569 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12570 | ;; | |
12571 | *) | |
12572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12573 | for as_dir in $gcc_cv_tool_dirs | |
12574 | do | |
12575 | IFS=$as_save_IFS | |
12576 | test -z "$as_dir" && as_dir=. | |
12577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12579 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12581 | break 2 | |
12582 | fi | |
12583 | done | |
12584 | done | |
12585 | IFS=$as_save_IFS | |
12586 | ||
12587 | ;; | |
12588 | esac | |
12589 | fi | |
12590 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12591 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12593 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12594 | else | |
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12596 | $as_echo "no" >&6; } | |
12597 | fi | |
12598 | ||
12599 | ||
12600 | fi | |
12601 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12602 | ||
12603 | ||
12604 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12605 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12606 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12607 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12608 | fi | |
12609 | ||
12610 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12611 | for ncn_progname in objcopy; do | |
12612 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12613 | set dummy ${ncn_progname}; ac_word=$2 | |
12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12615 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12616 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12617 | $as_echo_n "(cached) " >&6 |
12618 | else | |
12619 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12620 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12621 | else | |
12622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12623 | for as_dir in $PATH | |
12624 | do | |
12625 | IFS=$as_save_IFS | |
12626 | test -z "$as_dir" && as_dir=. | |
12627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12629 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12631 | break 2 | |
12632 | fi | |
12633 | done | |
12634 | done | |
12635 | IFS=$as_save_IFS | |
12636 | ||
12637 | fi | |
12638 | fi | |
12639 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12640 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12642 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12643 | else | |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12645 | $as_echo "no" >&6; } | |
12646 | fi | |
12647 | ||
12648 | ||
12649 | done | |
12650 | fi | |
12651 | ||
12652 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12653 | for ncn_progname in objcopy; do | |
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12655 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12656 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12657 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12659 | $as_echo "yes" >&6; } | |
12660 | break | |
12661 | else | |
12662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12663 | $as_echo "no" >&6; } | |
12664 | fi | |
12665 | done | |
12666 | fi | |
12667 | ||
12668 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12669 | for ncn_progname in objcopy; do | |
12670 | if test -n "$ncn_target_tool_prefix"; then | |
12671 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12672 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12674 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12675 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12676 | $as_echo_n "(cached) " >&6 |
12677 | else | |
12678 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12679 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12680 | else | |
12681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12682 | for as_dir in $PATH | |
12683 | do | |
12684 | IFS=$as_save_IFS | |
12685 | test -z "$as_dir" && as_dir=. | |
12686 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12688 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12690 | break 2 | |
12691 | fi | |
12692 | done | |
12693 | done | |
12694 | IFS=$as_save_IFS | |
12695 | ||
12696 | fi | |
12697 | fi | |
12698 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12699 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12701 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12702 | else | |
12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12704 | $as_echo "no" >&6; } | |
12705 | fi | |
12706 | ||
12707 | ||
12708 | fi | |
12709 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12710 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12711 | set dummy ${ncn_progname}; ac_word=$2 | |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12713 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12714 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12715 | $as_echo_n "(cached) " >&6 |
12716 | else | |
12717 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12718 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12719 | else | |
12720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12721 | for as_dir in $PATH | |
12722 | do | |
12723 | IFS=$as_save_IFS | |
12724 | test -z "$as_dir" && as_dir=. | |
12725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12727 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12729 | break 2 | |
12730 | fi | |
12731 | done | |
12732 | done | |
12733 | IFS=$as_save_IFS | |
12734 | ||
12735 | fi | |
12736 | fi | |
12737 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12738 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12740 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12741 | else | |
12742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12743 | $as_echo "no" >&6; } | |
12744 | fi | |
12745 | ||
12746 | ||
12747 | fi | |
12748 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12749 | done | |
12750 | fi | |
12751 | ||
12752 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12753 | set dummy objcopy | |
12754 | if test $build = $target ; then | |
12755 | OBJCOPY_FOR_TARGET="$2" | |
12756 | else | |
12757 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12758 | fi | |
12759 | else | |
12760 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12761 | fi | |
12762 | ||
12763 | else | |
12764 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12765 | fi | |
12766 | ||
12767 | ||
12768 | ||
12769 | ||
2429c060 PB |
12770 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12771 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12773 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12774 | if test -x $with_build_time_tools/objdump; then |
12775 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12776 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12778 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12779 | else |
81ecdfbb RW |
12780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12781 | $as_echo "no" >&6; } | |
3a35eeb3 | 12782 | fi |
2429c060 PB |
12783 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12784 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12785 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12786 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12787 | fi |
12788 | fi | |
c6b750e1 | 12789 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12790 | # Extract the first word of "objdump", so it can be a program name with args. |
12791 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12793 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12794 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12795 | $as_echo_n "(cached) " >&6 |
2429c060 | 12796 | else |
c6b750e1 DJ |
12797 | case $OBJDUMP_FOR_TARGET in |
12798 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12799 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12800 | ;; | |
2429c060 | 12801 | *) |
c6b750e1 DJ |
12802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12803 | for as_dir in $gcc_cv_tool_dirs | |
12804 | do | |
12805 | IFS=$as_save_IFS | |
12806 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12807 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12808 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12809 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12811 | break 2 |
12812 | fi | |
12813 | done | |
81ecdfbb RW |
12814 | done |
12815 | IFS=$as_save_IFS | |
c6b750e1 | 12816 | |
2429c060 PB |
12817 | ;; |
12818 | esac | |
12819 | fi | |
c6b750e1 | 12820 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12821 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12823 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12824 | else |
81ecdfbb RW |
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12826 | $as_echo "no" >&6; } | |
2429c060 PB |
12827 | fi |
12828 | ||
81ecdfbb | 12829 | |
2429c060 PB |
12830 | fi |
12831 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12832 | |
12833 | ||
12834 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12835 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12836 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12837 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12838 | fi | |
12839 | ||
12840 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12841 | for ncn_progname in objdump; do | |
12842 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12843 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12845 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12846 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12847 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12848 | else |
12849 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12850 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12851 | else | |
12852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12853 | for as_dir in $PATH | |
12854 | do | |
12855 | IFS=$as_save_IFS | |
12856 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12857 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12859 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12861 | break 2 |
12862 | fi | |
12863 | done | |
81ecdfbb RW |
12864 | done |
12865 | IFS=$as_save_IFS | |
9a819804 AO |
12866 | |
12867 | fi | |
12868 | fi | |
12869 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12870 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12872 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12873 | else |
81ecdfbb RW |
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12875 | $as_echo "no" >&6; } | |
9a819804 AO |
12876 | fi |
12877 | ||
81ecdfbb | 12878 | |
9a819804 AO |
12879 | done |
12880 | fi | |
12881 | ||
12882 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12883 | for ncn_progname in objdump; do |
81ecdfbb RW |
12884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12885 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12886 | if test -x $with_build_time_tools/${ncn_progname}; then |
12887 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12889 | $as_echo "yes" >&6; } | |
2429c060 PB |
12890 | break |
12891 | else | |
81ecdfbb RW |
12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12893 | $as_echo "no" >&6; } | |
2429c060 PB |
12894 | fi |
12895 | done | |
12896 | fi | |
12897 | ||
12898 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12899 | for ncn_progname in objdump; do | |
12900 | if test -n "$ncn_target_tool_prefix"; then | |
12901 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12902 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12904 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12905 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12906 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12907 | else |
12908 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12909 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12910 | else | |
c6b750e1 DJ |
12911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12912 | for as_dir in $PATH | |
12913 | do | |
12914 | IFS=$as_save_IFS | |
12915 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12916 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12917 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12918 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12920 | break 2 |
12921 | fi | |
12922 | done | |
81ecdfbb RW |
12923 | done |
12924 | IFS=$as_save_IFS | |
c6b750e1 | 12925 | |
5ae72758 DJ |
12926 | fi |
12927 | fi | |
c6b750e1 | 12928 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12929 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12931 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12932 | else |
81ecdfbb RW |
12933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12934 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12935 | fi |
12936 | ||
81ecdfbb | 12937 | |
2429c060 PB |
12938 | fi |
12939 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12940 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12941 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12943 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12944 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12945 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12946 | else |
12947 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12948 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12949 | else | |
c6b750e1 DJ |
12950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12951 | for as_dir in $PATH | |
12952 | do | |
12953 | IFS=$as_save_IFS | |
12954 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12955 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12957 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12959 | break 2 |
12960 | fi | |
12961 | done | |
81ecdfbb RW |
12962 | done |
12963 | IFS=$as_save_IFS | |
c6b750e1 | 12964 | |
5ae72758 DJ |
12965 | fi |
12966 | fi | |
c6b750e1 | 12967 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12968 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12970 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12971 | else |
81ecdfbb RW |
12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12973 | $as_echo "no" >&6; } | |
5ae72758 | 12974 | fi |
c6b750e1 | 12975 | |
81ecdfbb | 12976 | |
2429c060 PB |
12977 | fi |
12978 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12979 | done | |
12980 | fi | |
c6b750e1 | 12981 | |
5ae72758 DJ |
12982 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12983 | set dummy objdump | |
12984 | if test $build = $target ; then | |
12985 | OBJDUMP_FOR_TARGET="$2" | |
12986 | else | |
12987 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12988 | fi | |
d3f5afc4 MS |
12989 | else |
12990 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12991 | fi |
12992 | ||
3a35eeb3 PB |
12993 | else |
12994 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12995 | fi |
12996 | ||
12997 | ||
12998 | ||
12999 | ||
f948b2de NC |
13000 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
13001 | if test -n "$with_build_time_tools"; then | |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
13003 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
13004 | if test -x $with_build_time_tools/otool; then | |
13005 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
13006 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
13008 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
13009 | else | |
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13011 | $as_echo "no" >&6; } | |
13012 | fi | |
13013 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13014 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
13015 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
13016 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13017 | fi | |
13018 | fi | |
13019 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13020 | # Extract the first word of "otool", so it can be a program name with args. | |
13021 | set dummy otool; ac_word=$2 | |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13023 | $as_echo_n "checking for $ac_word... " >&6; } | |
13024 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
13025 | $as_echo_n "(cached) " >&6 | |
13026 | else | |
13027 | case $OTOOL_FOR_TARGET in | |
13028 | [\\/]* | ?:[\\/]*) | |
13029 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
13030 | ;; | |
13031 | *) | |
13032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13033 | for as_dir in $gcc_cv_tool_dirs | |
13034 | do | |
13035 | IFS=$as_save_IFS | |
13036 | test -z "$as_dir" && as_dir=. | |
13037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13039 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13041 | break 2 | |
13042 | fi | |
13043 | done | |
13044 | done | |
13045 | IFS=$as_save_IFS | |
13046 | ||
13047 | ;; | |
13048 | esac | |
13049 | fi | |
13050 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13051 | if test -n "$OTOOL_FOR_TARGET"; then | |
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13053 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13054 | else | |
13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13056 | $as_echo "no" >&6; } | |
13057 | fi | |
13058 | ||
13059 | ||
13060 | fi | |
13061 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
13062 | ||
13063 | ||
13064 | if test -n "$OTOOL_FOR_TARGET"; then | |
13065 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13066 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13067 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13068 | fi | |
13069 | ||
13070 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13071 | for ncn_progname in otool; do | |
13072 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13073 | set dummy ${ncn_progname}; ac_word=$2 | |
13074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13075 | $as_echo_n "checking for $ac_word... " >&6; } | |
13076 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13077 | $as_echo_n "(cached) " >&6 | |
13078 | else | |
13079 | if test -n "$OTOOL_FOR_TARGET"; then | |
13080 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13081 | else | |
13082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13083 | for as_dir in $PATH | |
13084 | do | |
13085 | IFS=$as_save_IFS | |
13086 | test -z "$as_dir" && as_dir=. | |
13087 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13088 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13089 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13091 | break 2 | |
13092 | fi | |
13093 | done | |
13094 | done | |
13095 | IFS=$as_save_IFS | |
13096 | ||
13097 | fi | |
13098 | fi | |
13099 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13100 | if test -n "$OTOOL_FOR_TARGET"; then | |
13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13102 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13103 | else | |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13105 | $as_echo "no" >&6; } | |
13106 | fi | |
13107 | ||
13108 | ||
13109 | done | |
13110 | fi | |
13111 | ||
13112 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13113 | for ncn_progname in otool; do | |
13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13115 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13116 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13117 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13119 | $as_echo "yes" >&6; } | |
13120 | break | |
13121 | else | |
13122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13123 | $as_echo "no" >&6; } | |
13124 | fi | |
13125 | done | |
13126 | fi | |
13127 | ||
13128 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13129 | for ncn_progname in otool; do | |
13130 | if test -n "$ncn_target_tool_prefix"; then | |
13131 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13132 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13134 | $as_echo_n "checking for $ac_word... " >&6; } | |
13135 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13136 | $as_echo_n "(cached) " >&6 | |
13137 | else | |
13138 | if test -n "$OTOOL_FOR_TARGET"; then | |
13139 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13140 | else | |
13141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13142 | for as_dir in $PATH | |
13143 | do | |
13144 | IFS=$as_save_IFS | |
13145 | test -z "$as_dir" && as_dir=. | |
13146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13147 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13148 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13150 | break 2 | |
13151 | fi | |
13152 | done | |
13153 | done | |
13154 | IFS=$as_save_IFS | |
13155 | ||
13156 | fi | |
13157 | fi | |
13158 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13159 | if test -n "$OTOOL_FOR_TARGET"; then | |
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13161 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13162 | else | |
13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13164 | $as_echo "no" >&6; } | |
13165 | fi | |
13166 | ||
13167 | ||
13168 | fi | |
13169 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
13170 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13171 | set dummy ${ncn_progname}; ac_word=$2 | |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13173 | $as_echo_n "checking for $ac_word... " >&6; } | |
13174 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13175 | $as_echo_n "(cached) " >&6 | |
13176 | else | |
13177 | if test -n "$OTOOL_FOR_TARGET"; then | |
13178 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13179 | else | |
13180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13181 | for as_dir in $PATH | |
13182 | do | |
13183 | IFS=$as_save_IFS | |
13184 | test -z "$as_dir" && as_dir=. | |
13185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13187 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13189 | break 2 | |
13190 | fi | |
13191 | done | |
13192 | done | |
13193 | IFS=$as_save_IFS | |
13194 | ||
13195 | fi | |
13196 | fi | |
13197 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13198 | if test -n "$OTOOL_FOR_TARGET"; then | |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13200 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13201 | else | |
13202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13203 | $as_echo "no" >&6; } | |
13204 | fi | |
13205 | ||
13206 | ||
13207 | fi | |
13208 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
13209 | done | |
13210 | fi | |
13211 | ||
13212 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
13213 | set dummy otool | |
13214 | if test $build = $target ; then | |
13215 | OTOOL_FOR_TARGET="$2" | |
13216 | else | |
13217 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13218 | fi | |
13219 | else | |
13220 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
13221 | fi | |
13222 | ||
13223 | else | |
13224 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13225 | fi | |
13226 | ||
13227 | ||
13228 | ||
13229 | ||
2429c060 PB |
13230 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
13231 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
13233 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13234 | if test -x $with_build_time_tools/ranlib; then |
13235 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
13236 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
13238 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 13239 | else |
81ecdfbb RW |
13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13241 | $as_echo "no" >&6; } | |
3a35eeb3 | 13242 | fi |
2429c060 PB |
13243 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13244 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
13245 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
13246 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
13247 | fi |
13248 | fi | |
c6b750e1 | 13249 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13250 | # Extract the first word of "ranlib", so it can be a program name with args. |
13251 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13253 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13254 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 13255 | $as_echo_n "(cached) " >&6 |
2429c060 | 13256 | else |
c6b750e1 DJ |
13257 | case $RANLIB_FOR_TARGET in |
13258 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13259 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
13260 | ;; | |
2429c060 | 13261 | *) |
c6b750e1 DJ |
13262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13263 | for as_dir in $gcc_cv_tool_dirs | |
13264 | do | |
13265 | IFS=$as_save_IFS | |
13266 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13267 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13269 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13271 | break 2 |
13272 | fi | |
13273 | done | |
81ecdfbb RW |
13274 | done |
13275 | IFS=$as_save_IFS | |
c6b750e1 | 13276 | |
2429c060 PB |
13277 | ;; |
13278 | esac | |
13279 | fi | |
c6b750e1 | 13280 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 13281 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13283 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 13284 | else |
81ecdfbb RW |
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13286 | $as_echo "no" >&6; } | |
2429c060 PB |
13287 | fi |
13288 | ||
81ecdfbb | 13289 | |
2429c060 PB |
13290 | fi |
13291 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
13292 | |
13293 | ||
13294 | if test -n "$RANLIB_FOR_TARGET"; then | |
13295 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
13296 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13297 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13298 | fi | |
13299 | ||
13300 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13301 | for ncn_progname in ranlib; do | |
13302 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13303 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13305 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13306 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 13307 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13308 | else |
13309 | if test -n "$RANLIB_FOR_TARGET"; then | |
13310 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
13311 | else | |
13312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13313 | for as_dir in $PATH | |
13314 | do | |
13315 | IFS=$as_save_IFS | |
13316 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13317 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13319 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13321 | break 2 |
13322 | fi | |
13323 | done | |
81ecdfbb RW |
13324 | done |
13325 | IFS=$as_save_IFS | |
9a819804 AO |
13326 | |
13327 | fi | |
13328 | fi | |
13329 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13330 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
13331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13332 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 13333 | else |
81ecdfbb RW |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13335 | $as_echo "no" >&6; } | |
9a819804 AO |
13336 | fi |
13337 | ||
81ecdfbb | 13338 | |
9a819804 AO |
13339 | done |
13340 | fi | |
13341 | ||
13342 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13343 | for ncn_progname in ranlib; do |
81ecdfbb RW |
13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13345 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13346 | if test -x $with_build_time_tools/${ncn_progname}; then |
13347 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13349 | $as_echo "yes" >&6; } | |
2429c060 PB |
13350 | break |
13351 | else | |
81ecdfbb RW |
13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13353 | $as_echo "no" >&6; } | |
2429c060 PB |
13354 | fi |
13355 | done | |
13356 | fi | |
13357 | ||
13358 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13359 | for ncn_progname in ranlib; do | |
13360 | if test -n "$ncn_target_tool_prefix"; then | |
13361 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 13362 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13364 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13365 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 13366 | $as_echo_n "(cached) " >&6 |
859789af | 13367 | else |
55db4b87 PB |
13368 | if test -n "$RANLIB_FOR_TARGET"; then |
13369 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 13370 | else |
c6b750e1 DJ |
13371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13372 | for as_dir in $PATH | |
13373 | do | |
13374 | IFS=$as_save_IFS | |
13375 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13376 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13377 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13378 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13380 | break 2 |
13381 | fi | |
13382 | done | |
81ecdfbb RW |
13383 | done |
13384 | IFS=$as_save_IFS | |
c6b750e1 | 13385 | |
859789af AC |
13386 | fi |
13387 | fi | |
c6b750e1 | 13388 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 13389 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13391 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 13392 | else |
81ecdfbb RW |
13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13394 | $as_echo "no" >&6; } | |
859789af AC |
13395 | fi |
13396 | ||
81ecdfbb | 13397 | |
2429c060 PB |
13398 | fi |
13399 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
13400 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13401 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13403 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13404 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 13405 | $as_echo_n "(cached) " >&6 |
859789af | 13406 | else |
05cbd757 PB |
13407 | if test -n "$RANLIB_FOR_TARGET"; then |
13408 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 13409 | else |
c6b750e1 DJ |
13410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13411 | for as_dir in $PATH | |
13412 | do | |
13413 | IFS=$as_save_IFS | |
13414 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13415 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13416 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13417 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13418 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13419 | break 2 |
13420 | fi | |
13421 | done | |
81ecdfbb RW |
13422 | done |
13423 | IFS=$as_save_IFS | |
c6b750e1 | 13424 | |
859789af AC |
13425 | fi |
13426 | fi | |
c6b750e1 | 13427 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 13428 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
13429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13430 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 13431 | else |
81ecdfbb RW |
13432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13433 | $as_echo "no" >&6; } | |
859789af | 13434 | fi |
c6b750e1 | 13435 | |
81ecdfbb | 13436 | |
2429c060 PB |
13437 | fi |
13438 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
13439 | done | |
13440 | fi | |
c6b750e1 | 13441 | |
2429c060 PB |
13442 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13443 | set dummy ranlib | |
13444 | if test $build = $target ; then | |
13445 | RANLIB_FOR_TARGET="$2" | |
13446 | else | |
13447 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 13448 | fi |
d3f5afc4 MS |
13449 | else |
13450 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 13451 | fi |
05cbd757 | 13452 | |
3a35eeb3 PB |
13453 | else |
13454 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
13455 | fi |
13456 | ||
2429c060 PB |
13457 | |
13458 | ||
13459 | ||
b121d7d4 DD |
13460 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13461 | if test -n "$with_build_time_tools"; then | |
13462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13463 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13464 | if test -x $with_build_time_tools/readelf; then | |
13465 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13466 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13468 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13469 | else | |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13471 | $as_echo "no" >&6; } | |
13472 | fi | |
13473 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13474 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13475 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13476 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13477 | fi | |
13478 | fi | |
13479 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13480 | # Extract the first word of "readelf", so it can be a program name with args. | |
13481 | set dummy readelf; ac_word=$2 | |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13483 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13484 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13485 | $as_echo_n "(cached) " >&6 |
13486 | else | |
13487 | case $READELF_FOR_TARGET in | |
13488 | [\\/]* | ?:[\\/]*) | |
13489 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13490 | ;; | |
13491 | *) | |
13492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13493 | for as_dir in $gcc_cv_tool_dirs | |
13494 | do | |
13495 | IFS=$as_save_IFS | |
13496 | test -z "$as_dir" && as_dir=. | |
13497 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13498 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13499 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13501 | break 2 | |
13502 | fi | |
13503 | done | |
13504 | done | |
13505 | IFS=$as_save_IFS | |
13506 | ||
13507 | ;; | |
13508 | esac | |
13509 | fi | |
13510 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13511 | if test -n "$READELF_FOR_TARGET"; then | |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13513 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13514 | else | |
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13516 | $as_echo "no" >&6; } | |
13517 | fi | |
13518 | ||
13519 | ||
13520 | fi | |
13521 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13522 | ||
13523 | ||
13524 | if test -n "$READELF_FOR_TARGET"; then | |
13525 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13526 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13527 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13528 | fi | |
13529 | ||
13530 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13531 | for ncn_progname in readelf; do | |
13532 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13533 | set dummy ${ncn_progname}; ac_word=$2 | |
13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13535 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13536 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13537 | $as_echo_n "(cached) " >&6 |
13538 | else | |
13539 | if test -n "$READELF_FOR_TARGET"; then | |
13540 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13541 | else | |
13542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13543 | for as_dir in $PATH | |
13544 | do | |
13545 | IFS=$as_save_IFS | |
13546 | test -z "$as_dir" && as_dir=. | |
13547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13549 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13551 | break 2 | |
13552 | fi | |
13553 | done | |
13554 | done | |
13555 | IFS=$as_save_IFS | |
13556 | ||
13557 | fi | |
13558 | fi | |
13559 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13560 | if test -n "$READELF_FOR_TARGET"; then | |
13561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13562 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13563 | else | |
13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13565 | $as_echo "no" >&6; } | |
13566 | fi | |
13567 | ||
13568 | ||
13569 | done | |
13570 | fi | |
13571 | ||
13572 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13573 | for ncn_progname in readelf; do | |
13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13575 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13576 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13577 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13579 | $as_echo "yes" >&6; } | |
13580 | break | |
13581 | else | |
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13583 | $as_echo "no" >&6; } | |
13584 | fi | |
13585 | done | |
13586 | fi | |
13587 | ||
13588 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13589 | for ncn_progname in readelf; do | |
13590 | if test -n "$ncn_target_tool_prefix"; then | |
13591 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13592 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13594 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13595 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13596 | $as_echo_n "(cached) " >&6 |
13597 | else | |
13598 | if test -n "$READELF_FOR_TARGET"; then | |
13599 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13600 | else | |
13601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13602 | for as_dir in $PATH | |
13603 | do | |
13604 | IFS=$as_save_IFS | |
13605 | test -z "$as_dir" && as_dir=. | |
13606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13607 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13608 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13609 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13610 | break 2 | |
13611 | fi | |
13612 | done | |
13613 | done | |
13614 | IFS=$as_save_IFS | |
13615 | ||
13616 | fi | |
13617 | fi | |
13618 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13619 | if test -n "$READELF_FOR_TARGET"; then | |
13620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13621 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13622 | else | |
13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13624 | $as_echo "no" >&6; } | |
13625 | fi | |
13626 | ||
13627 | ||
13628 | fi | |
13629 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13630 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13631 | set dummy ${ncn_progname}; ac_word=$2 | |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13633 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13634 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13635 | $as_echo_n "(cached) " >&6 |
13636 | else | |
13637 | if test -n "$READELF_FOR_TARGET"; then | |
13638 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13639 | else | |
13640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13641 | for as_dir in $PATH | |
13642 | do | |
13643 | IFS=$as_save_IFS | |
13644 | test -z "$as_dir" && as_dir=. | |
13645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13646 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13647 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13649 | break 2 | |
13650 | fi | |
13651 | done | |
13652 | done | |
13653 | IFS=$as_save_IFS | |
13654 | ||
13655 | fi | |
13656 | fi | |
13657 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13658 | if test -n "$READELF_FOR_TARGET"; then | |
13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13660 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13661 | else | |
13662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13663 | $as_echo "no" >&6; } | |
13664 | fi | |
13665 | ||
13666 | ||
13667 | fi | |
13668 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13669 | done | |
13670 | fi | |
13671 | ||
13672 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13673 | set dummy readelf | |
13674 | if test $build = $target ; then | |
13675 | READELF_FOR_TARGET="$2" | |
13676 | else | |
13677 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13678 | fi | |
13679 | else | |
13680 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13681 | fi | |
13682 | ||
13683 | else | |
13684 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13685 | fi | |
13686 | ||
13687 | ||
13688 | ||
13689 | ||
2429c060 PB |
13690 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13691 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13693 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13694 | if test -x $with_build_time_tools/strip; then |
13695 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13696 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13698 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13699 | else |
81ecdfbb RW |
13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13701 | $as_echo "no" >&6; } | |
3a35eeb3 | 13702 | fi |
2429c060 PB |
13703 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13704 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13705 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13706 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13707 | fi |
13708 | fi | |
c6b750e1 | 13709 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13710 | # Extract the first word of "strip", so it can be a program name with args. |
13711 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13713 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13714 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13715 | $as_echo_n "(cached) " >&6 |
2429c060 | 13716 | else |
c6b750e1 DJ |
13717 | case $STRIP_FOR_TARGET in |
13718 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13719 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13720 | ;; | |
2429c060 | 13721 | *) |
c6b750e1 DJ |
13722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13723 | for as_dir in $gcc_cv_tool_dirs | |
13724 | do | |
13725 | IFS=$as_save_IFS | |
13726 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13727 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13729 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13731 | break 2 |
13732 | fi | |
13733 | done | |
81ecdfbb RW |
13734 | done |
13735 | IFS=$as_save_IFS | |
c6b750e1 | 13736 | |
2429c060 PB |
13737 | ;; |
13738 | esac | |
13739 | fi | |
c6b750e1 | 13740 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13741 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13743 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13744 | else |
81ecdfbb RW |
13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13746 | $as_echo "no" >&6; } | |
2429c060 PB |
13747 | fi |
13748 | ||
81ecdfbb | 13749 | |
2429c060 PB |
13750 | fi |
13751 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13752 | |
13753 | ||
13754 | if test -n "$STRIP_FOR_TARGET"; then | |
13755 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13756 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13757 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13758 | fi | |
13759 | ||
13760 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13761 | for ncn_progname in strip; do | |
13762 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13763 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13765 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13766 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13767 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13768 | else |
13769 | if test -n "$STRIP_FOR_TARGET"; then | |
13770 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13771 | else | |
13772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13773 | for as_dir in $PATH | |
13774 | do | |
13775 | IFS=$as_save_IFS | |
13776 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13777 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13779 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13781 | break 2 |
13782 | fi | |
13783 | done | |
81ecdfbb RW |
13784 | done |
13785 | IFS=$as_save_IFS | |
9a819804 AO |
13786 | |
13787 | fi | |
13788 | fi | |
13789 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13790 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13792 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13793 | else |
81ecdfbb RW |
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13795 | $as_echo "no" >&6; } | |
9a819804 AO |
13796 | fi |
13797 | ||
81ecdfbb | 13798 | |
9a819804 AO |
13799 | done |
13800 | fi | |
13801 | ||
13802 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13803 | for ncn_progname in strip; do |
81ecdfbb RW |
13804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13805 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13806 | if test -x $with_build_time_tools/${ncn_progname}; then |
13807 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13809 | $as_echo "yes" >&6; } | |
2429c060 PB |
13810 | break |
13811 | else | |
81ecdfbb RW |
13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13813 | $as_echo "no" >&6; } | |
2429c060 PB |
13814 | fi |
13815 | done | |
13816 | fi | |
13817 | ||
13818 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13819 | for ncn_progname in strip; do | |
13820 | if test -n "$ncn_target_tool_prefix"; then | |
13821 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13822 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13824 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13825 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13826 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13827 | else |
13828 | if test -n "$STRIP_FOR_TARGET"; then | |
13829 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13830 | else |
13831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13832 | for as_dir in $PATH | |
13833 | do | |
13834 | IFS=$as_save_IFS | |
13835 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13836 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13838 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13840 | break 2 |
13841 | fi | |
13842 | done | |
81ecdfbb RW |
13843 | done |
13844 | IFS=$as_save_IFS | |
c6b750e1 | 13845 | |
7e0f7140 GK |
13846 | fi |
13847 | fi | |
c6b750e1 | 13848 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13849 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13851 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13852 | else |
81ecdfbb RW |
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13854 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13855 | fi |
13856 | ||
81ecdfbb | 13857 | |
2429c060 PB |
13858 | fi |
13859 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13860 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13861 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13863 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13864 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13865 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13866 | else |
13867 | if test -n "$STRIP_FOR_TARGET"; then | |
13868 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13869 | else | |
c6b750e1 DJ |
13870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13871 | for as_dir in $PATH | |
13872 | do | |
13873 | IFS=$as_save_IFS | |
13874 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13875 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13877 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13879 | break 2 |
13880 | fi | |
13881 | done | |
81ecdfbb RW |
13882 | done |
13883 | IFS=$as_save_IFS | |
c6b750e1 | 13884 | |
7e0f7140 GK |
13885 | fi |
13886 | fi | |
c6b750e1 | 13887 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13888 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13890 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13891 | else |
81ecdfbb RW |
13892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13893 | $as_echo "no" >&6; } | |
7e0f7140 | 13894 | fi |
c6b750e1 | 13895 | |
81ecdfbb | 13896 | |
2429c060 PB |
13897 | fi |
13898 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13899 | done | |
13900 | fi | |
c6b750e1 | 13901 | |
7e0f7140 GK |
13902 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13903 | set dummy strip | |
13904 | if test $build = $target ; then | |
13905 | STRIP_FOR_TARGET="$2" | |
13906 | else | |
13907 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13908 | fi | |
d3f5afc4 MS |
13909 | else |
13910 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13911 | fi |
13912 | ||
3a35eeb3 PB |
13913 | else |
13914 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13915 | fi |
13916 | ||
13917 | ||
13918 | ||
13919 | ||
13920 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13921 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13923 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13924 | if test -x $with_build_time_tools/windres; then |
13925 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13926 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13928 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13929 | else |
81ecdfbb RW |
13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13931 | $as_echo "no" >&6; } | |
3a35eeb3 | 13932 | fi |
2429c060 PB |
13933 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13934 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13935 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13936 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13937 | fi |
13938 | fi | |
c6b750e1 | 13939 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13940 | # Extract the first word of "windres", so it can be a program name with args. |
13941 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13943 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13944 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13945 | $as_echo_n "(cached) " >&6 |
2429c060 | 13946 | else |
c6b750e1 DJ |
13947 | case $WINDRES_FOR_TARGET in |
13948 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13949 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13950 | ;; | |
2429c060 | 13951 | *) |
c6b750e1 DJ |
13952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13953 | for as_dir in $gcc_cv_tool_dirs | |
13954 | do | |
13955 | IFS=$as_save_IFS | |
13956 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13957 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13959 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13961 | break 2 |
13962 | fi | |
13963 | done | |
81ecdfbb RW |
13964 | done |
13965 | IFS=$as_save_IFS | |
c6b750e1 | 13966 | |
2429c060 PB |
13967 | ;; |
13968 | esac | |
13969 | fi | |
c6b750e1 | 13970 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13971 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13973 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13974 | else |
81ecdfbb RW |
13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13976 | $as_echo "no" >&6; } | |
2429c060 PB |
13977 | fi |
13978 | ||
81ecdfbb | 13979 | |
2429c060 PB |
13980 | fi |
13981 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13982 | |
13983 | ||
13984 | if test -n "$WINDRES_FOR_TARGET"; then | |
13985 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13986 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13987 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13988 | fi | |
13989 | ||
13990 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13991 | for ncn_progname in windres; do | |
13992 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13993 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13995 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13996 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13997 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13998 | else |
13999 | if test -n "$WINDRES_FOR_TARGET"; then | |
14000 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
14001 | else | |
14002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14003 | for as_dir in $PATH | |
14004 | do | |
14005 | IFS=$as_save_IFS | |
14006 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14007 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14008 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14009 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14011 | break 2 |
14012 | fi | |
14013 | done | |
81ecdfbb RW |
14014 | done |
14015 | IFS=$as_save_IFS | |
9a819804 AO |
14016 | |
14017 | fi | |
14018 | fi | |
14019 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
14020 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14022 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 14023 | else |
81ecdfbb RW |
14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14025 | $as_echo "no" >&6; } | |
9a819804 AO |
14026 | fi |
14027 | ||
81ecdfbb | 14028 | |
9a819804 AO |
14029 | done |
14030 | fi | |
14031 | ||
14032 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14033 | for ncn_progname in windres; do |
81ecdfbb RW |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14035 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14036 | if test -x $with_build_time_tools/${ncn_progname}; then |
14037 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14039 | $as_echo "yes" >&6; } | |
2429c060 PB |
14040 | break |
14041 | else | |
81ecdfbb RW |
14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14043 | $as_echo "no" >&6; } | |
2429c060 PB |
14044 | fi |
14045 | done | |
14046 | fi | |
14047 | ||
14048 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
14049 | for ncn_progname in windres; do | |
14050 | if test -n "$ncn_target_tool_prefix"; then | |
14051 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 14052 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14054 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14055 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 14056 | $as_echo_n "(cached) " >&6 |
859789af | 14057 | else |
55db4b87 PB |
14058 | if test -n "$WINDRES_FOR_TARGET"; then |
14059 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 14060 | else |
c6b750e1 DJ |
14061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14062 | for as_dir in $PATH | |
14063 | do | |
14064 | IFS=$as_save_IFS | |
14065 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14066 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14067 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14068 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14070 | break 2 |
14071 | fi | |
14072 | done | |
81ecdfbb RW |
14073 | done |
14074 | IFS=$as_save_IFS | |
c6b750e1 | 14075 | |
859789af AC |
14076 | fi |
14077 | fi | |
c6b750e1 | 14078 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 14079 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
14080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14081 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 14082 | else |
81ecdfbb RW |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14084 | $as_echo "no" >&6; } | |
859789af AC |
14085 | fi |
14086 | ||
81ecdfbb | 14087 | |
2429c060 PB |
14088 | fi |
14089 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
14090 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 14091 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14093 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14094 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 14095 | $as_echo_n "(cached) " >&6 |
859789af | 14096 | else |
05cbd757 PB |
14097 | if test -n "$WINDRES_FOR_TARGET"; then |
14098 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 14099 | else |
c6b750e1 DJ |
14100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14101 | for as_dir in $PATH | |
14102 | do | |
14103 | IFS=$as_save_IFS | |
14104 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14105 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14107 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14109 | break 2 |
14110 | fi | |
14111 | done | |
81ecdfbb RW |
14112 | done |
14113 | IFS=$as_save_IFS | |
c6b750e1 | 14114 | |
859789af AC |
14115 | fi |
14116 | fi | |
c6b750e1 | 14117 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 14118 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14120 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 14121 | else |
81ecdfbb RW |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14123 | $as_echo "no" >&6; } | |
859789af | 14124 | fi |
c6b750e1 | 14125 | |
81ecdfbb | 14126 | |
2429c060 PB |
14127 | fi |
14128 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
14129 | done | |
14130 | fi | |
c6b750e1 | 14131 | |
05cbd757 PB |
14132 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
14133 | set dummy windres | |
14134 | if test $build = $target ; then | |
14135 | WINDRES_FOR_TARGET="$2" | |
859789af | 14136 | else |
05cbd757 | 14137 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 14138 | fi |
d3f5afc4 MS |
14139 | else |
14140 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
14141 | fi |
14142 | ||
3a35eeb3 PB |
14143 | else |
14144 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
14145 | fi |
14146 | ||
852e5f18 | 14147 | |
0c24b341 NC |
14148 | |
14149 | ||
14150 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14151 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
14153 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
14154 | if test -x $with_build_time_tools/windmc; then |
14155 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
14156 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
14157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
14158 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14159 | else |
81ecdfbb RW |
14160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14161 | $as_echo "no" >&6; } | |
0c24b341 NC |
14162 | fi |
14163 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14164 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
14165 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
14166 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
14167 | fi | |
14168 | fi | |
14169 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14170 | # Extract the first word of "windmc", so it can be a program name with args. | |
14171 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14173 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14174 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 14175 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
14176 | else |
14177 | case $WINDMC_FOR_TARGET in | |
14178 | [\\/]* | ?:[\\/]*) | |
14179 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
14180 | ;; | |
14181 | *) | |
14182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14183 | for as_dir in $gcc_cv_tool_dirs | |
14184 | do | |
14185 | IFS=$as_save_IFS | |
14186 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14187 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 14189 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
14191 | break 2 |
14192 | fi | |
14193 | done | |
81ecdfbb RW |
14194 | done |
14195 | IFS=$as_save_IFS | |
0c24b341 NC |
14196 | |
14197 | ;; | |
14198 | esac | |
14199 | fi | |
14200 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 14201 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
14202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14203 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14204 | else |
81ecdfbb RW |
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14206 | $as_echo "no" >&6; } | |
0c24b341 NC |
14207 | fi |
14208 | ||
81ecdfbb | 14209 | |
0c24b341 NC |
14210 | fi |
14211 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14212 | ||
14213 | ||
14214 | if test -n "$WINDMC_FOR_TARGET"; then | |
14215 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
14216 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14217 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14218 | fi | |
14219 | ||
14220 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14221 | for ncn_progname in windmc; do | |
14222 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14223 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14225 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14226 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 14227 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
14228 | else |
14229 | if test -n "$WINDMC_FOR_TARGET"; then | |
14230 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14231 | else | |
14232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14233 | for as_dir in $PATH | |
14234 | do | |
14235 | IFS=$as_save_IFS | |
14236 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14237 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14238 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 14239 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
14241 | break 2 |
14242 | fi | |
14243 | done | |
81ecdfbb RW |
14244 | done |
14245 | IFS=$as_save_IFS | |
0c24b341 NC |
14246 | |
14247 | fi | |
14248 | fi | |
14249 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14250 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14252 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14253 | else |
81ecdfbb RW |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14255 | $as_echo "no" >&6; } | |
0c24b341 NC |
14256 | fi |
14257 | ||
81ecdfbb | 14258 | |
0c24b341 NC |
14259 | done |
14260 | fi | |
14261 | ||
14262 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14263 | for ncn_progname in windmc; do | |
81ecdfbb RW |
14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14265 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
14266 | if test -x $with_build_time_tools/${ncn_progname}; then |
14267 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14269 | $as_echo "yes" >&6; } | |
0c24b341 NC |
14270 | break |
14271 | else | |
81ecdfbb RW |
14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14273 | $as_echo "no" >&6; } | |
0c24b341 NC |
14274 | fi |
14275 | done | |
14276 | fi | |
14277 | ||
14278 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14279 | for ncn_progname in windmc; do | |
14280 | if test -n "$ncn_target_tool_prefix"; then | |
14281 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14282 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14284 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14285 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 14286 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
14287 | else |
14288 | if test -n "$WINDMC_FOR_TARGET"; then | |
14289 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14290 | else | |
14291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14292 | for as_dir in $PATH | |
14293 | do | |
14294 | IFS=$as_save_IFS | |
14295 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14296 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 14298 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
14300 | break 2 |
14301 | fi | |
14302 | done | |
81ecdfbb RW |
14303 | done |
14304 | IFS=$as_save_IFS | |
0c24b341 NC |
14305 | |
14306 | fi | |
14307 | fi | |
14308 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14309 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14311 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14312 | else |
81ecdfbb RW |
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14314 | $as_echo "no" >&6; } | |
0c24b341 NC |
14315 | fi |
14316 | ||
81ecdfbb | 14317 | |
0c24b341 NC |
14318 | fi |
14319 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
14320 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14321 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14323 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14324 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 14325 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
14326 | else |
14327 | if test -n "$WINDMC_FOR_TARGET"; then | |
14328 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14329 | else | |
14330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14331 | for as_dir in $PATH | |
14332 | do | |
14333 | IFS=$as_save_IFS | |
14334 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14335 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 14337 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
14339 | break 2 |
14340 | fi | |
14341 | done | |
81ecdfbb RW |
14342 | done |
14343 | IFS=$as_save_IFS | |
0c24b341 NC |
14344 | |
14345 | fi | |
14346 | fi | |
14347 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14348 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
14349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14350 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14351 | else |
81ecdfbb RW |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14353 | $as_echo "no" >&6; } | |
0c24b341 NC |
14354 | fi |
14355 | ||
81ecdfbb | 14356 | |
0c24b341 NC |
14357 | fi |
14358 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
14359 | done | |
14360 | fi | |
14361 | ||
14362 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
14363 | set dummy windmc | |
14364 | if test $build = $target ; then | |
14365 | WINDMC_FOR_TARGET="$2" | |
14366 | else | |
14367 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14368 | fi | |
14369 | else | |
14370 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
14371 | fi | |
14372 | ||
14373 | else | |
14374 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
14375 | fi | |
14376 | ||
14377 | ||
be01d343 PB |
14378 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
14379 | ||
81ecdfbb RW |
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
14381 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 14382 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14383 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14384 | # We already found the complete path | |
b8025f34 | 14385 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14387 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14388 | else |
14389 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14391 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14392 | fi |
be01d343 PB |
14393 | else |
14394 | ok=yes | |
14395 | case " ${configdirs} " in | |
14396 | *" binutils "*) ;; | |
14397 | *) ok=no ;; | |
14398 | esac | |
c6b750e1 | 14399 | |
be01d343 PB |
14400 | if test $ok = yes; then |
14401 | # An in-tree tool is available and we can use it | |
14402 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
14403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14404 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14405 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14406 | # We already found the complete path | |
b8025f34 | 14407 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14409 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14410 | elif test "x$target" = "x$host"; then |
14411 | # We can use an host tool | |
14412 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14414 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14415 | else |
14416 | # We need a cross tool | |
81ecdfbb RW |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14418 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14419 | fi |
14420 | fi | |
4b900473 | 14421 | |
81ecdfbb RW |
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
14423 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 14424 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14425 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14426 | # We already found the complete path | |
b8025f34 | 14427 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14429 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14430 | else |
14431 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14433 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14434 | fi |
be01d343 PB |
14435 | else |
14436 | ok=yes | |
14437 | case " ${configdirs} " in | |
14438 | *" gas "*) ;; | |
14439 | *) ok=no ;; | |
14440 | esac | |
c6b750e1 | 14441 | |
be01d343 PB |
14442 | if test $ok = yes; then |
14443 | # An in-tree tool is available and we can use it | |
14444 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
14445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14446 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14447 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14448 | # We already found the complete path | |
b8025f34 | 14449 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14451 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14452 | elif test "x$target" = "x$host"; then |
14453 | # We can use an host tool | |
14454 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14456 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14457 | else |
14458 | # We need a cross tool | |
81ecdfbb RW |
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14460 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14461 | fi |
14462 | fi | |
4b900473 | 14463 | |
81ecdfbb RW |
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14465 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 14466 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14467 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14468 | # We already found the complete path | |
b8025f34 | 14469 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14471 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14472 | else |
14473 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14475 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14476 | fi |
be01d343 PB |
14477 | else |
14478 | ok=yes | |
14479 | case " ${configdirs} " in | |
14480 | *" gcc "*) ;; | |
14481 | *) ok=no ;; | |
14482 | esac | |
c6b750e1 | 14483 | |
be01d343 PB |
14484 | if test $ok = yes; then |
14485 | # An in-tree tool is available and we can use it | |
14486 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14488 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14489 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14490 | # We already found the complete path | |
b8025f34 | 14491 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14493 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14494 | elif test "x$target" = "x$host"; then |
14495 | # We can use an host tool | |
14496 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14498 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14499 | else |
14500 | # We need a cross tool | |
81ecdfbb RW |
14501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14502 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14503 | fi |
14504 | fi | |
4b900473 | 14505 | |
81ecdfbb RW |
14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14507 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 14508 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14509 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14510 | # We already found the complete path | |
b8025f34 | 14511 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14513 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14514 | else |
14515 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14517 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14518 | fi |
be01d343 PB |
14519 | else |
14520 | ok=yes | |
14521 | case " ${configdirs} " in | |
14522 | *" gcc "*) ;; | |
14523 | *) ok=no ;; | |
14524 | esac | |
14525 | case ,${enable_languages}, in | |
14526 | *,c++,*) ;; | |
14527 | *) ok=no ;; | |
14528 | esac | |
14529 | if test $ok = yes; then | |
14530 | # An in-tree tool is available and we can use it | |
95e43135 | 14531 | 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 |
14532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14533 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14534 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14535 | # We already found the complete path | |
b8025f34 | 14536 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14538 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14539 | elif test "x$target" = "x$host"; then |
14540 | # We can use an host tool | |
14541 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14543 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14544 | else |
14545 | # We need a cross tool | |
81ecdfbb RW |
14546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14547 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14548 | fi |
14549 | fi | |
4b900473 | 14550 | |
81ecdfbb RW |
14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14552 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 14553 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14554 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14555 | # We already found the complete path | |
b8025f34 | 14556 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14558 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14559 | else |
14560 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14562 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14563 | fi |
be01d343 PB |
14564 | else |
14565 | ok=yes | |
14566 | case " ${configdirs} " in | |
14567 | *" gcc "*) ;; | |
14568 | *) ok=no ;; | |
14569 | esac | |
14570 | case ,${enable_languages}, in | |
14571 | *,c++,*) ;; | |
14572 | *) ok=no ;; | |
14573 | esac | |
14574 | if test $ok = yes; then | |
14575 | # An in-tree tool is available and we can use it | |
95e43135 | 14576 | 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 |
14577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14578 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14579 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14580 | # We already found the complete path | |
b8025f34 | 14581 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14583 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14584 | elif test "x$target" = "x$host"; then |
14585 | # We can use an host tool | |
14586 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14588 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14589 | else |
14590 | # We need a cross tool | |
81ecdfbb RW |
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14592 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14593 | fi |
14594 | fi | |
4b900473 | 14595 | |
81ecdfbb RW |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14597 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 14598 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14599 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14600 | # We already found the complete path | |
b8025f34 | 14601 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14603 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14604 | else |
14605 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14607 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14608 | fi |
be01d343 PB |
14609 | else |
14610 | ok=yes | |
14611 | case " ${configdirs} " in | |
14612 | *" binutils "*) ;; | |
14613 | *) ok=no ;; | |
14614 | esac | |
c6b750e1 | 14615 | |
be01d343 PB |
14616 | if test $ok = yes; then |
14617 | # An in-tree tool is available and we can use it | |
14618 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14620 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14621 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14622 | # We already found the complete path | |
b8025f34 | 14623 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14625 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14626 | elif test "x$target" = "x$host"; then |
14627 | # We can use an host tool | |
14628 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14630 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14631 | else |
14632 | # We need a cross tool | |
81ecdfbb RW |
14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14634 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14635 | fi |
14636 | fi | |
4b900473 | 14637 | |
81ecdfbb RW |
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14639 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14640 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14641 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14642 | # We already found the complete path | |
b8025f34 | 14643 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14645 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14646 | else |
14647 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14649 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14650 | fi |
be01d343 PB |
14651 | else |
14652 | ok=yes | |
14653 | case " ${configdirs} " in | |
14654 | *" gcc "*) ;; | |
14655 | *) ok=no ;; | |
14656 | esac | |
c6b750e1 | 14657 | |
be01d343 PB |
14658 | if test $ok = yes; then |
14659 | # An in-tree tool is available and we can use it | |
14660 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14662 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14663 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14664 | # We already found the complete path | |
b8025f34 | 14665 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14667 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14668 | elif test "x$target" = "x$host"; then |
14669 | # We can use an host tool | |
14670 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14672 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14673 | else |
14674 | # We need a cross tool | |
81ecdfbb RW |
14675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14676 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14677 | fi |
14678 | fi | |
4b900473 | 14679 | |
81ecdfbb RW |
14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14681 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14682 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14683 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14684 | # We already found the complete path | |
b8025f34 | 14685 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14687 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14688 | else |
14689 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14691 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14692 | fi |
be01d343 PB |
14693 | else |
14694 | ok=yes | |
14695 | case " ${configdirs} " in | |
14696 | *" gcc "*) ;; | |
14697 | *) ok=no ;; | |
14698 | esac | |
14699 | case ,${enable_languages}, in | |
14700 | *,fortran,*) ;; | |
14701 | *) ok=no ;; | |
14702 | esac | |
14703 | if test $ok = yes; then | |
14704 | # An in-tree tool is available and we can use it | |
14705 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14707 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14708 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14709 | # We already found the complete path | |
b8025f34 | 14710 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14712 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14713 | elif test "x$target" = "x$host"; then |
14714 | # We can use an host tool | |
14715 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14717 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14718 | else |
14719 | # We need a cross tool | |
81ecdfbb RW |
14720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14721 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14722 | fi |
14723 | fi | |
4b900473 | 14724 | |
e552509b ILT |
14725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14726 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14727 | if test "x${build}" != "x${host}" ; then | |
14728 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14729 | # We already found the complete path | |
14730 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14732 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14733 | else | |
14734 | # Canadian cross, just use what we found | |
14735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14736 | $as_echo "pre-installed" >&6; } | |
14737 | fi | |
14738 | else | |
14739 | ok=yes | |
14740 | case " ${configdirs} " in | |
14741 | *" gcc "*) ;; | |
14742 | *) ok=no ;; | |
14743 | esac | |
14744 | case ,${enable_languages}, in | |
14745 | *,go,*) ;; | |
14746 | *) ok=no ;; | |
14747 | esac | |
14748 | if test $ok = yes; then | |
14749 | # An in-tree tool is available and we can use it | |
14750 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14752 | $as_echo "just compiled" >&6; } | |
14753 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14754 | # We already found the complete path | |
14755 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14757 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14758 | elif test "x$target" = "x$host"; then | |
14759 | # We can use an host tool | |
14760 | GOC_FOR_TARGET='$(GOC)' | |
14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14762 | $as_echo "host tool" >&6; } | |
14763 | else | |
14764 | # We need a cross tool | |
14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14766 | $as_echo "pre-installed" >&6; } | |
14767 | fi | |
14768 | fi | |
14769 | ||
f948b2de NC |
14770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
14771 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
14772 | if test "x${build}" != "x${host}" ; then | |
14773 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14774 | # We already found the complete path | |
14775 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14777 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14778 | else | |
14779 | # Canadian cross, just use what we found | |
14780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14781 | $as_echo "pre-installed" >&6; } | |
14782 | fi | |
14783 | else | |
14784 | ok=yes | |
14785 | case " ${configdirs} " in | |
14786 | *" gcc "*) ;; | |
14787 | *) ok=no ;; | |
14788 | esac | |
14789 | case ,${enable_languages}, in | |
14790 | *,d,*) ;; | |
14791 | *) ok=no ;; | |
14792 | esac | |
14793 | if test $ok = yes; then | |
14794 | # An in-tree tool is available and we can use it | |
14795 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14797 | $as_echo "just compiled" >&6; } | |
14798 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14799 | # We already found the complete path | |
14800 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14802 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14803 | elif test "x$target" = "x$host"; then | |
14804 | # We can use an host tool | |
14805 | GDC_FOR_TARGET='$(GDC)' | |
14806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14807 | $as_echo "host tool" >&6; } | |
14808 | else | |
14809 | # We need a cross tool | |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14811 | $as_echo "pre-installed" >&6; } | |
14812 | fi | |
14813 | fi | |
14814 | ||
81ecdfbb RW |
14815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14816 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14817 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14818 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14819 | # We already found the complete path | |
b8025f34 | 14820 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14822 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14823 | else |
14824 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14826 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14827 | fi |
be01d343 PB |
14828 | else |
14829 | ok=yes | |
14830 | case " ${configdirs} " in | |
14831 | *" ld "*) ;; | |
14832 | *) ok=no ;; | |
14833 | esac | |
c6b750e1 | 14834 | |
be01d343 PB |
14835 | if test $ok = yes; then |
14836 | # An in-tree tool is available and we can use it | |
14837 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14839 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14840 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14841 | # We already found the complete path | |
b8025f34 | 14842 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14844 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14845 | elif test "x$target" = "x$host"; then |
14846 | # We can use an host tool | |
14847 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14849 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14850 | else |
14851 | # We need a cross tool | |
81ecdfbb RW |
14852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14853 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14854 | fi |
14855 | fi | |
4b900473 | 14856 | |
81ecdfbb RW |
14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14858 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14859 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14860 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14861 | # We already found the complete path | |
b8025f34 | 14862 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14864 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14865 | else |
14866 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14868 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14869 | fi |
be01d343 | 14870 | else |
2429c060 PB |
14871 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14872 | # We already found the complete path | |
b8025f34 | 14873 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14875 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14876 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14877 | # We can use an host tool |
14878 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14880 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14881 | else |
14882 | # We need a cross tool | |
81ecdfbb RW |
14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14884 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14885 | fi |
14886 | fi | |
4b900473 | 14887 | |
81ecdfbb RW |
14888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14889 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14890 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14891 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14892 | # We already found the complete path | |
b8025f34 | 14893 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14895 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14896 | else |
14897 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14899 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14900 | fi |
be01d343 PB |
14901 | else |
14902 | ok=yes | |
14903 | case " ${configdirs} " in | |
14904 | *" binutils "*) ;; | |
14905 | *) ok=no ;; | |
14906 | esac | |
c6b750e1 | 14907 | |
be01d343 PB |
14908 | if test $ok = yes; then |
14909 | # An in-tree tool is available and we can use it | |
14910 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14912 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14913 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14914 | # We already found the complete path | |
b8025f34 | 14915 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14917 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14918 | elif test "x$target" = "x$host"; then |
14919 | # We can use an host tool | |
14920 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14922 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14923 | else |
14924 | # We need a cross tool | |
81ecdfbb RW |
14925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14926 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14927 | fi |
14928 | fi | |
4b900473 | 14929 | |
6b91c541 AP |
14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14931 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14932 | if test "x${build}" != "x${host}" ; then | |
14933 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14934 | # We already found the complete path | |
14935 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14937 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14938 | else | |
14939 | # Canadian cross, just use what we found | |
14940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14941 | $as_echo "pre-installed" >&6; } | |
14942 | fi | |
14943 | else | |
14944 | ok=yes | |
14945 | case " ${configdirs} " in | |
14946 | *" binutils "*) ;; | |
14947 | *) ok=no ;; | |
14948 | esac | |
14949 | ||
14950 | if test $ok = yes; then | |
14951 | # An in-tree tool is available and we can use it | |
14952 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14954 | $as_echo "just compiled" >&6; } | |
14955 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14956 | # We already found the complete path | |
14957 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14959 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14960 | elif test "x$target" = "x$host"; then | |
14961 | # We can use an host tool | |
1b6c0831 | 14962 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14964 | $as_echo "host tool" >&6; } | |
14965 | else | |
14966 | # We need a cross tool | |
14967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14968 | $as_echo "pre-installed" >&6; } | |
14969 | fi | |
14970 | fi | |
14971 | ||
81ecdfbb RW |
14972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14973 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14974 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14975 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14976 | # We already found the complete path | |
b8025f34 | 14977 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14979 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14980 | else |
14981 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14983 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14984 | fi |
be01d343 PB |
14985 | else |
14986 | ok=yes | |
14987 | case " ${configdirs} " in | |
14988 | *" binutils "*) ;; | |
14989 | *) ok=no ;; | |
14990 | esac | |
c6b750e1 | 14991 | |
be01d343 PB |
14992 | if test $ok = yes; then |
14993 | # An in-tree tool is available and we can use it | |
14994 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14996 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14997 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14998 | # We already found the complete path | |
b8025f34 | 14999 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
15000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15001 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
15002 | elif test "x$target" = "x$host"; then |
15003 | # We can use an host tool | |
15004 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
15005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15006 | $as_echo "host tool" >&6; } | |
be01d343 PB |
15007 | else |
15008 | # We need a cross tool | |
81ecdfbb RW |
15009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15010 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
15011 | fi |
15012 | fi | |
4b900473 | 15013 | |
f948b2de NC |
15014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
15015 | $as_echo_n "checking where to find the target otool... " >&6; } | |
15016 | if test "x${build}" != "x${host}" ; then | |
15017 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
15018 | # We already found the complete path | |
15019 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
15020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15021 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15022 | else | |
15023 | # Canadian cross, just use what we found | |
15024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15025 | $as_echo "pre-installed" >&6; } | |
15026 | fi | |
15027 | else | |
15028 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
15029 | # We already found the complete path | |
15030 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15032 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15033 | elif test "x$target" = "x$host"; then | |
15034 | # We can use an host tool | |
15035 | OTOOL_FOR_TARGET='$(OTOOL)' | |
15036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15037 | $as_echo "host tool" >&6; } | |
15038 | else | |
15039 | # We need a cross tool | |
15040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15041 | $as_echo "pre-installed" >&6; } | |
15042 | fi | |
15043 | fi | |
15044 | ||
81ecdfbb RW |
15045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
15046 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 15047 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
15048 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15049 | # We already found the complete path | |
b8025f34 | 15050 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
15051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15052 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
15053 | else |
15054 | # Canadian cross, just use what we found | |
81ecdfbb RW |
15055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15056 | $as_echo "pre-installed" >&6; } | |
2429c060 | 15057 | fi |
be01d343 PB |
15058 | else |
15059 | ok=yes | |
15060 | case " ${configdirs} " in | |
15061 | *" binutils "*) ;; | |
15062 | *) ok=no ;; | |
15063 | esac | |
c6b750e1 | 15064 | |
be01d343 PB |
15065 | if test $ok = yes; then |
15066 | # An in-tree tool is available and we can use it | |
15067 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
15068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15069 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
15070 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15071 | # We already found the complete path | |
b8025f34 | 15072 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15074 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
15075 | elif test "x$target" = "x$host"; then |
15076 | # We can use an host tool | |
15077 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
15078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15079 | $as_echo "host tool" >&6; } | |
be01d343 PB |
15080 | else |
15081 | # We need a cross tool | |
81ecdfbb RW |
15082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15083 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
15084 | fi |
15085 | fi | |
4b900473 | 15086 | |
b121d7d4 DD |
15087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
15088 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
15089 | if test "x${build}" != "x${host}" ; then | |
15090 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15091 | # We already found the complete path | |
15092 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15094 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15095 | else | |
15096 | # Canadian cross, just use what we found | |
15097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15098 | $as_echo "pre-installed" >&6; } | |
15099 | fi | |
15100 | else | |
15101 | ok=yes | |
15102 | case " ${configdirs} " in | |
15103 | *" binutils "*) ;; | |
15104 | *) ok=no ;; | |
15105 | esac | |
15106 | ||
15107 | if test $ok = yes; then | |
15108 | # An in-tree tool is available and we can use it | |
15109 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
15110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15111 | $as_echo "just compiled" >&6; } | |
15112 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15113 | # We already found the complete path | |
15114 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15116 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15117 | elif test "x$target" = "x$host"; then | |
15118 | # We can use an host tool | |
15119 | READELF_FOR_TARGET='$(READELF)' | |
15120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15121 | $as_echo "host tool" >&6; } | |
15122 | else | |
15123 | # We need a cross tool | |
15124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15125 | $as_echo "pre-installed" >&6; } | |
15126 | fi | |
15127 | fi | |
15128 | ||
81ecdfbb RW |
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
15130 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 15131 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
15132 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15133 | # We already found the complete path | |
b8025f34 | 15134 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
15135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15136 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
15137 | else |
15138 | # Canadian cross, just use what we found | |
81ecdfbb RW |
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15140 | $as_echo "pre-installed" >&6; } | |
2429c060 | 15141 | fi |
be01d343 PB |
15142 | else |
15143 | ok=yes | |
15144 | case " ${configdirs} " in | |
15145 | *" binutils "*) ;; | |
15146 | *) ok=no ;; | |
15147 | esac | |
c6b750e1 | 15148 | |
be01d343 PB |
15149 | if test $ok = yes; then |
15150 | # An in-tree tool is available and we can use it | |
9b980aa1 | 15151 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
15152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15153 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
15154 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15155 | # We already found the complete path | |
b8025f34 | 15156 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
15157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15158 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
15159 | elif test "x$target" = "x$host"; then |
15160 | # We can use an host tool | |
15161 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
15162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15163 | $as_echo "host tool" >&6; } | |
be01d343 PB |
15164 | else |
15165 | # We need a cross tool | |
81ecdfbb RW |
15166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15167 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
15168 | fi |
15169 | fi | |
4b900473 | 15170 | |
81ecdfbb RW |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
15172 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 15173 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
15174 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15175 | # We already found the complete path | |
b8025f34 | 15176 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
15177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15178 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
15179 | else |
15180 | # Canadian cross, just use what we found | |
81ecdfbb RW |
15181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15182 | $as_echo "pre-installed" >&6; } | |
2429c060 | 15183 | fi |
be01d343 PB |
15184 | else |
15185 | ok=yes | |
15186 | case " ${configdirs} " in | |
15187 | *" binutils "*) ;; | |
15188 | *) ok=no ;; | |
15189 | esac | |
c6b750e1 | 15190 | |
be01d343 PB |
15191 | if test $ok = yes; then |
15192 | # An in-tree tool is available and we can use it | |
15193 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
15194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15195 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
15196 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15197 | # We already found the complete path | |
b8025f34 | 15198 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
15199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15200 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
15201 | elif test "x$target" = "x$host"; then |
15202 | # We can use an host tool | |
15203 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
15204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15205 | $as_echo "host tool" >&6; } | |
be01d343 PB |
15206 | else |
15207 | # We need a cross tool | |
81ecdfbb RW |
15208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15209 | $as_echo "pre-installed" >&6; } | |
be01d343 | 15210 | fi |
a0da8069 | 15211 | fi |
54752a6b | 15212 | |
81ecdfbb RW |
15213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
15214 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
15215 | if test "x${build}" != "x${host}" ; then |
15216 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
15217 | # We already found the complete path | |
15218 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
15219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15220 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
15221 | else |
15222 | # Canadian cross, just use what we found | |
81ecdfbb RW |
15223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15224 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
15225 | fi |
15226 | else | |
15227 | ok=yes | |
15228 | case " ${configdirs} " in | |
15229 | *" binutils "*) ;; | |
15230 | *) ok=no ;; | |
15231 | esac | |
15232 | ||
15233 | if test $ok = yes; then | |
15234 | # An in-tree tool is available and we can use it | |
15235 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
15236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15237 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
15238 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
15239 | # We already found the complete path | |
15240 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
15241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15242 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
15243 | elif test "x$target" = "x$host"; then |
15244 | # We can use an host tool | |
15245 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15247 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
15248 | else |
15249 | # We need a cross tool | |
81ecdfbb RW |
15250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15251 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
15252 | fi |
15253 | fi | |
15254 | ||
54752a6b NN |
15255 | |
15256 | ||
be01d343 | 15257 | |
4b900473 | 15258 | |
a0da8069 NN |
15259 | # Certain tools may need extra flags. |
15260 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
15261 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
15262 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
15263 | ||
be01d343 PB |
15264 | # When building target libraries, except in a Canadian cross, we use |
15265 | # the same toolchain as the compiler we just built. | |
15266 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
15267 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
15268 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
15269 | if test $host = $build; then | |
15270 | case " $configdirs " in | |
15271 | *" gcc "*) | |
15272 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
15273 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
15274 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
15275 | ;; | |
15276 | esac | |
15277 | fi | |
15278 | ||
15279 | ||
15280 | ||
15281 | ||
15282 | ||
81ecdfbb RW |
15283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
15284 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
15285 | # Check whether --enable-maintainer-mode was given. | |
15286 | if test "${enable_maintainer_mode+set}" = set; then : | |
15287 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
15288 | else |
15289 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
15290 | fi |
15291 | ||
15292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
15293 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
15294 | |
15295 | ||
15296 | if test "$USE_MAINTAINER_MODE" = yes; then | |
15297 | MAINTAINER_MODE_TRUE= | |
15298 | MAINTAINER_MODE_FALSE='#' | |
15299 | else | |
15300 | MAINTAINER_MODE_TRUE='#' | |
15301 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 15302 | fi |
3d5e36ae AO |
15303 | MAINT=$MAINTAINER_MODE_TRUE |
15304 | ||
1d39f329 NN |
15305 | # --------------------- |
15306 | # GCC bootstrap support | |
15307 | # --------------------- | |
15308 | ||
15309 | # Stage specific cflags for build. | |
15310 | stage1_cflags="-g" | |
15311 | case $build in | |
15312 | vax-*-*) | |
15313 | case ${GCC} in | |
15314 | yes) stage1_cflags="-g -Wa,-J" ;; | |
15315 | *) stage1_cflags="-g -J" ;; | |
15316 | esac ;; | |
1d39f329 NN |
15317 | esac |
15318 | ||
1d89b610 | 15319 | |
1d39f329 | 15320 | |
8a0d8a5c | 15321 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
15322 | # Check whether --enable-stage1-checking was given. |
15323 | if test "${enable_stage1_checking+set}" = set; then : | |
15324 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 15325 | else |
5566c1fa | 15326 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
15327 | # For --disable-checking or implicit --enable-checking=release, avoid |
15328 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
15329 | # bootstraps. See PR62077. | |
ce6c656d L |
15330 | case $BUILD_CONFIG in |
15331 | *lto*) | |
05a13254 NC |
15332 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
15333 | *) | |
15334 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 15335 | esac |
05a13254 NC |
15336 | if test "x$enable_checking" = x && \ |
15337 | test -d ${srcdir}/gcc && \ | |
15338 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
15339 | stage1_checking=--enable-checking=yes,types,extra | |
15340 | fi | |
8a0d8a5c | 15341 | else |
5566c1fa | 15342 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 15343 | fi |
81ecdfbb | 15344 | fi |
8a0d8a5c PB |
15345 | |
15346 | ||
c6b750e1 | 15347 | |
81ecdfbb RW |
15348 | # Enable -Werror in bootstrap stage2 and later. |
15349 | # Check whether --enable-werror was given. | |
15350 | if test "${enable_werror+set}" = set; then : | |
15351 | enableval=$enable_werror; | |
1a6f2dc7 NN |
15352 | case ${enable_werror} in |
15353 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
15354 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
15355 | esac |
15356 | ||
82033c9b | 15357 | else |
82033c9b | 15358 | |
bf41f30d NC |
15359 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
15360 | case $BUILD_CONFIG in | |
15361 | bootstrap-debug) | |
15362 | stage2_werror_flag="--enable-werror-always" ;; | |
15363 | "") | |
15364 | stage2_werror_flag="--enable-werror-always" ;; | |
15365 | esac | |
15366 | fi | |
82033c9b | 15367 | |
bf41f30d | 15368 | fi |
82033c9b | 15369 | |
1b6c0831 | 15370 | |
1b6c0831 | 15371 | |
1b6c0831 | 15372 | |
e8a5fa9c RW |
15373 | # Specify what files to not compare during bootstrap. |
15374 | ||
15375 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
15376 | case "$target" in | |
15377 | hppa*64*-*-hpux*) ;; | |
bf41f30d | 15378 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
1488e230 | 15379 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
15380 | esac |
15381 | ||
15382 | ||
81ecdfbb RW |
15383 | ac_config_files="$ac_config_files Makefile" |
15384 | ||
c6b750e1 | 15385 | cat >confcache <<\_ACEOF |
a0da8069 NN |
15386 | # This file is a shell script that caches the results of configure |
15387 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
15388 | # scripts and configure runs, see configure's option --config-cache. |
15389 | # It is not useful on other systems. If it contains results you don't | |
15390 | # want to keep, you may remove or edit it. | |
a0da8069 | 15391 | # |
c6b750e1 DJ |
15392 | # config.status only pays attention to the cache file if you give it |
15393 | # the --recheck option to rerun configure. | |
a0da8069 | 15394 | # |
c6b750e1 DJ |
15395 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15396 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15397 | # following values. | |
15398 | ||
15399 | _ACEOF | |
15400 | ||
a0da8069 NN |
15401 | # The following way of writing the cache mishandles newlines in values, |
15402 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 15403 | # So, we kill variables containing newlines. |
a0da8069 NN |
15404 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15405 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
15406 | ( |
15407 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15408 | eval ac_val=\$$ac_var | |
15409 | case $ac_val in #( | |
15410 | *${as_nl}*) | |
15411 | case $ac_var in #( | |
15412 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15413 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15414 | esac | |
15415 | case $ac_var in #( | |
15416 | _ | IFS | as_nl) ;; #( | |
15417 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15418 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15419 | esac ;; | |
15420 | esac | |
15421 | done | |
15422 | ||
c6b750e1 | 15423 | (set) 2>&1 | |
81ecdfbb RW |
15424 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15425 | *${as_nl}ac_space=\ *) | |
15426 | # `set' does not quote correctly, so add quotes: double-quote | |
15427 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
15428 | sed -n \ |
15429 | "s/'/'\\\\''/g; | |
15430 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 15431 | ;; #( |
c6b750e1 DJ |
15432 | *) |
15433 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 15434 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 15435 | ;; |
81ecdfbb RW |
15436 | esac | |
15437 | sort | |
15438 | ) | | |
c6b750e1 | 15439 | sed ' |
81ecdfbb | 15440 | /^ac_cv_env_/b end |
c6b750e1 | 15441 | t clear |
81ecdfbb | 15442 | :clear |
c6b750e1 DJ |
15443 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15444 | t end | |
81ecdfbb RW |
15445 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15446 | :end' >>confcache | |
15447 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15448 | if test -w "$cache_file"; then | |
d0ac1c44 | 15449 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
15450 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15451 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
15452 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15453 | cat confcache >"$cache_file" | |
15454 | else | |
15455 | case $cache_file in #( | |
15456 | */* | ?:*) | |
15457 | mv -f confcache "$cache_file"$$ && | |
15458 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15459 | *) | |
15460 | mv -f confcache "$cache_file" ;; | |
15461 | esac | |
15462 | fi | |
15463 | fi | |
a0da8069 | 15464 | else |
81ecdfbb RW |
15465 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15466 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 15467 | fi |
852e5f18 | 15468 | fi |
a0da8069 | 15469 | rm -f confcache |
852e5f18 | 15470 | |
a0da8069 NN |
15471 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15472 | # Let make expand exec_prefix. | |
15473 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 15474 | |
a0da8069 NN |
15475 | # Transform confdefs.h into DEFS. |
15476 | # Protect against shell expansion while executing Makefile rules. | |
15477 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
15478 | # |
15479 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 15480 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 15481 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
15482 | ac_script=' |
15483 | :mline | |
15484 | /\\$/{ | |
15485 | N | |
15486 | s,\\\n,, | |
15487 | b mline | |
15488 | } | |
c6b750e1 | 15489 | t clear |
81ecdfbb RW |
15490 | :clear |
15491 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 15492 | t quote |
81ecdfbb | 15493 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 15494 | t quote |
81ecdfbb RW |
15495 | b any |
15496 | :quote | |
15497 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15498 | s/\[/\\&/g | |
15499 | s/\]/\\&/g | |
15500 | s/\$/$$/g | |
15501 | H | |
15502 | :any | |
15503 | ${ | |
15504 | g | |
15505 | s/^\n// | |
15506 | s/\n/ /g | |
15507 | p | |
15508 | } | |
15509 | ' | |
15510 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
15511 | |
15512 | ||
15513 | ac_libobjs= | |
15514 | ac_ltlibobjs= | |
d0ac1c44 | 15515 | U= |
c6b750e1 DJ |
15516 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15517 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
15518 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15519 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15520 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15521 | # will be set to the directory where LIBOBJS objects are built. | |
15522 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15523 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
15524 | done |
15525 | LIBOBJS=$ac_libobjs | |
852e5f18 | 15526 | |
c6b750e1 | 15527 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 15528 | |
cac3d6c4 | 15529 | |
c6b750e1 | 15530 | |
d0ac1c44 | 15531 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 15532 | ac_write_fail=0 |
c6b750e1 DJ |
15533 | ac_clean_files_save=$ac_clean_files |
15534 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
15535 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15536 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15537 | as_write_fail=0 | |
15538 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
15539 | #! $SHELL |
15540 | # Generated by $as_me. | |
a0da8069 | 15541 | # Run this file to recreate the current configuration. |
a0da8069 | 15542 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 15543 | # configure, is in config.log if it exists. |
376a0e54 | 15544 | |
c6b750e1 DJ |
15545 | debug=false |
15546 | ac_cs_recheck=false | |
15547 | ac_cs_silent=false | |
c6b750e1 | 15548 | |
81ecdfbb RW |
15549 | SHELL=\${CONFIG_SHELL-$SHELL} |
15550 | export SHELL | |
15551 | _ASEOF | |
15552 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15553 | ## -------------------- ## | |
15554 | ## M4sh Initialization. ## | |
15555 | ## -------------------- ## | |
15556 | ||
15557 | # Be more Bourne compatible | |
15558 | DUALCASE=1; export DUALCASE # for MKS sh | |
15559 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
15560 | emulate sh |
15561 | NULLCMD=: | |
81ecdfbb | 15562 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
15563 | # is contrary to our usage. Disable this feature. |
15564 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
15565 | setopt NO_GLOB_SUBST |
15566 | else | |
15567 | case `(set -o) 2>/dev/null` in #( | |
15568 | *posix*) : | |
15569 | set -o posix ;; #( | |
15570 | *) : | |
15571 | ;; | |
15572 | esac | |
c6b750e1 | 15573 | fi |
c6b750e1 | 15574 | |
81ecdfbb RW |
15575 | |
15576 | as_nl=' | |
15577 | ' | |
15578 | export as_nl | |
15579 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15580 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15581 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15582 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15583 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15584 | # but without wasting forks for bash or zsh. | |
15585 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15586 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15587 | as_echo='print -r --' | |
15588 | as_echo_n='print -rn --' | |
15589 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15590 | as_echo='printf %s\n' | |
15591 | as_echo_n='printf %s' | |
15592 | else | |
15593 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15594 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15595 | as_echo_n='/usr/ucb/echo -n' | |
15596 | else | |
15597 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15598 | as_echo_n_body='eval | |
15599 | arg=$1; | |
15600 | case $arg in #( | |
15601 | *"$as_nl"*) | |
15602 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15603 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15604 | esac; | |
15605 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15606 | ' | |
15607 | export as_echo_n_body | |
15608 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15609 | fi | |
15610 | export as_echo_body | |
15611 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
15612 | fi |
15613 | ||
81ecdfbb RW |
15614 | # The user is always right. |
15615 | if test "${PATH_SEPARATOR+set}" != set; then | |
15616 | PATH_SEPARATOR=: | |
15617 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15618 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15619 | PATH_SEPARATOR=';' | |
15620 | } | |
15621 | fi | |
15622 | ||
15623 | ||
15624 | # IFS | |
15625 | # We need space, tab and new line, in precisely that order. Quoting is | |
15626 | # there to prevent editors from complaining about space-tab. | |
15627 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15628 | # splitting by setting IFS to empty value.) | |
15629 | IFS=" "" $as_nl" | |
15630 | ||
15631 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 15632 | as_myself= |
81ecdfbb RW |
15633 | case $0 in #(( |
15634 | *[\\/]* ) as_myself=$0 ;; | |
15635 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15636 | for as_dir in $PATH | |
15637 | do | |
15638 | IFS=$as_save_IFS | |
15639 | test -z "$as_dir" && as_dir=. | |
15640 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15641 | done | |
15642 | IFS=$as_save_IFS | |
15643 | ||
15644 | ;; | |
15645 | esac | |
15646 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15647 | # in which case we are not to be found in the path. | |
15648 | if test "x$as_myself" = x; then | |
15649 | as_myself=$0 | |
15650 | fi | |
15651 | if test ! -f "$as_myself"; then | |
15652 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15653 | exit 1 | |
15654 | fi | |
c6b750e1 | 15655 | |
81ecdfbb RW |
15656 | # Unset variables that we do not need and which cause bugs (e.g. in |
15657 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15658 | # suppresses any "Segmentation fault" message there. '((' could | |
15659 | # trigger a bug in pdksh 5.2.14. | |
15660 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15661 | do eval test x\${$as_var+set} = xset \ | |
15662 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15663 | done | |
c6b750e1 DJ |
15664 | PS1='$ ' |
15665 | PS2='> ' | |
15666 | PS4='+ ' | |
15667 | ||
15668 | # NLS nuisances. | |
81ecdfbb RW |
15669 | LC_ALL=C |
15670 | export LC_ALL | |
15671 | LANGUAGE=C | |
15672 | export LANGUAGE | |
15673 | ||
15674 | # CDPATH. | |
15675 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15676 | ||
15677 | ||
d0ac1c44 SM |
15678 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15679 | # ---------------------------------------- | |
81ecdfbb RW |
15680 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15681 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 15682 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
15683 | as_fn_error () |
15684 | { | |
d0ac1c44 SM |
15685 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15686 | if test "$4"; then | |
15687 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15688 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 15689 | fi |
d0ac1c44 | 15690 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
15691 | as_fn_exit $as_status |
15692 | } # as_fn_error | |
15693 | ||
15694 | ||
15695 | # as_fn_set_status STATUS | |
15696 | # ----------------------- | |
15697 | # Set $? to STATUS, without forking. | |
15698 | as_fn_set_status () | |
15699 | { | |
15700 | return $1 | |
15701 | } # as_fn_set_status | |
15702 | ||
15703 | # as_fn_exit STATUS | |
15704 | # ----------------- | |
15705 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15706 | as_fn_exit () | |
15707 | { | |
15708 | set +e | |
15709 | as_fn_set_status $1 | |
15710 | exit $1 | |
15711 | } # as_fn_exit | |
15712 | ||
15713 | # as_fn_unset VAR | |
15714 | # --------------- | |
15715 | # Portably unset VAR. | |
15716 | as_fn_unset () | |
15717 | { | |
15718 | { eval $1=; unset $1;} | |
15719 | } | |
15720 | as_unset=as_fn_unset | |
15721 | # as_fn_append VAR VALUE | |
15722 | # ---------------------- | |
15723 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15724 | # advantage of any shell optimizations that allow amortized linear growth over | |
15725 | # repeated appends, instead of the typical quadratic growth present in naive | |
15726 | # implementations. | |
15727 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15728 | eval 'as_fn_append () | |
15729 | { | |
15730 | eval $1+=\$2 | |
15731 | }' | |
15732 | else | |
15733 | as_fn_append () | |
15734 | { | |
15735 | eval $1=\$$1\$2 | |
15736 | } | |
15737 | fi # as_fn_append | |
15738 | ||
15739 | # as_fn_arith ARG... | |
15740 | # ------------------ | |
15741 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15742 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15743 | # must be portable across $(()) and expr. | |
15744 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15745 | eval 'as_fn_arith () | |
15746 | { | |
15747 | as_val=$(( $* )) | |
15748 | }' | |
15749 | else | |
15750 | as_fn_arith () | |
15751 | { | |
15752 | as_val=`expr "$@" || test $? -eq 1` | |
15753 | } | |
15754 | fi # as_fn_arith | |
15755 | ||
c6b750e1 | 15756 | |
81ecdfbb RW |
15757 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15758 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15759 | as_expr=expr |
15760 | else | |
15761 | as_expr=false | |
15762 | fi | |
15763 | ||
81ecdfbb | 15764 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15765 | as_basename=basename |
15766 | else | |
15767 | as_basename=false | |
15768 | fi | |
15769 | ||
81ecdfbb RW |
15770 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15771 | as_dirname=dirname | |
15772 | else | |
15773 | as_dirname=false | |
15774 | fi | |
c6b750e1 | 15775 | |
81ecdfbb | 15776 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15777 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15778 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15779 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15780 | $as_echo X/"$0" | | |
15781 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15782 | s//\1/ | |
15783 | q | |
15784 | } | |
15785 | /^X\/\(\/\/\)$/{ | |
15786 | s//\1/ | |
15787 | q | |
15788 | } | |
15789 | /^X\/\(\/\).*/{ | |
15790 | s//\1/ | |
15791 | q | |
15792 | } | |
15793 | s/.*/./; q'` | |
c6b750e1 | 15794 | |
c6b750e1 DJ |
15795 | # Avoid depending upon Character Ranges. |
15796 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15797 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15798 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15799 | as_cr_digits='0123456789' | |
15800 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15801 | ||
81ecdfbb RW |
15802 | ECHO_C= ECHO_N= ECHO_T= |
15803 | case `echo -n x` in #((((( | |
15804 | -n*) | |
15805 | case `echo 'xy\c'` in | |
15806 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15807 | xy) ECHO_C='\c';; | |
15808 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15809 | ECHO_T=' ';; | |
15810 | esac;; | |
15811 | *) | |
15812 | ECHO_N='-n';; | |
c6b750e1 DJ |
15813 | esac |
15814 | ||
81ecdfbb RW |
15815 | rm -f conf$$ conf$$.exe conf$$.file |
15816 | if test -d conf$$.dir; then | |
15817 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15818 | else |
81ecdfbb RW |
15819 | rm -f conf$$.dir |
15820 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15821 | fi |
81ecdfbb RW |
15822 | if (echo >conf$$.file) 2>/dev/null; then |
15823 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15824 | as_ln_s='ln -s' |
81ecdfbb RW |
15825 | # ... but there are two gotchas: |
15826 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15827 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15828 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15829 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15830 | as_ln_s='cp -pR' |
81ecdfbb RW |
15831 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15832 | as_ln_s=ln | |
15833 | else | |
d0ac1c44 | 15834 | as_ln_s='cp -pR' |
c6b750e1 | 15835 | fi |
c6b750e1 | 15836 | else |
d0ac1c44 | 15837 | as_ln_s='cp -pR' |
c6b750e1 | 15838 | fi |
81ecdfbb RW |
15839 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15840 | rmdir conf$$.dir 2>/dev/null | |
15841 | ||
15842 | ||
15843 | # as_fn_mkdir_p | |
15844 | # ------------- | |
15845 | # Create "$as_dir" as a directory, including parents if necessary. | |
15846 | as_fn_mkdir_p () | |
15847 | { | |
15848 | ||
15849 | case $as_dir in #( | |
15850 | -*) as_dir=./$as_dir;; | |
15851 | esac | |
15852 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15853 | as_dirs= | |
15854 | while :; do | |
15855 | case $as_dir in #( | |
15856 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15857 | *) as_qdir=$as_dir;; | |
15858 | esac | |
15859 | as_dirs="'$as_qdir' $as_dirs" | |
15860 | as_dir=`$as_dirname -- "$as_dir" || | |
15861 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15862 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15863 | X"$as_dir" : 'X\(//\)$' \| \ | |
15864 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15865 | $as_echo X"$as_dir" | | |
15866 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15867 | s//\1/ | |
15868 | q | |
15869 | } | |
15870 | /^X\(\/\/\)[^/].*/{ | |
15871 | s//\1/ | |
15872 | q | |
15873 | } | |
15874 | /^X\(\/\/\)$/{ | |
15875 | s//\1/ | |
15876 | q | |
15877 | } | |
15878 | /^X\(\/\).*/{ | |
15879 | s//\1/ | |
15880 | q | |
15881 | } | |
15882 | s/.*/./; q'` | |
15883 | test -d "$as_dir" && break | |
15884 | done | |
15885 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15886 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 15887 | |
c6b750e1 | 15888 | |
81ecdfbb | 15889 | } # as_fn_mkdir_p |
c6b750e1 | 15890 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15891 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15892 | else |
15893 | test -d ./-p && rmdir ./-p | |
15894 | as_mkdir_p=false | |
15895 | fi | |
15896 | ||
d0ac1c44 SM |
15897 | |
15898 | # as_fn_executable_p FILE | |
15899 | # ----------------------- | |
15900 | # Test if FILE is an executable regular file. | |
15901 | as_fn_executable_p () | |
15902 | { | |
15903 | test -f "$1" && test -x "$1" | |
15904 | } # as_fn_executable_p | |
15905 | as_test_x='test -x' | |
15906 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
15907 | |
15908 | # Sed expression to map a string onto a valid CPP name. | |
15909 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15910 | ||
15911 | # Sed expression to map a string onto a valid variable name. | |
15912 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15913 | ||
15914 | ||
c6b750e1 | 15915 | exec 6>&1 |
81ecdfbb RW |
15916 | ## ----------------------------------- ## |
15917 | ## Main body of $CONFIG_STATUS script. ## | |
15918 | ## ----------------------------------- ## | |
15919 | _ASEOF | |
15920 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15921 | ||
15922 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15923 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15924 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15925 | # values after options handling. |
15926 | ac_log=" | |
c6b750e1 | 15927 | This file was extended by $as_me, which was |
d0ac1c44 | 15928 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
15929 | |
15930 | CONFIG_FILES = $CONFIG_FILES | |
15931 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15932 | CONFIG_LINKS = $CONFIG_LINKS | |
15933 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15934 | $ $0 $@ | |
15935 | ||
81ecdfbb RW |
15936 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15937 | " | |
15938 | ||
c6b750e1 DJ |
15939 | _ACEOF |
15940 | ||
81ecdfbb RW |
15941 | case $ac_config_files in *" |
15942 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15943 | esac | |
c6b750e1 | 15944 | |
c6b750e1 | 15945 | |
c6b750e1 | 15946 | |
81ecdfbb RW |
15947 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15948 | # Files that config.status was made for. | |
15949 | config_files="$ac_config_files" | |
c6b750e1 | 15950 | |
81ecdfbb | 15951 | _ACEOF |
c6b750e1 | 15952 | |
81ecdfbb | 15953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15954 | ac_cs_usage="\ |
81ecdfbb RW |
15955 | \`$as_me' instantiates files and other configuration actions |
15956 | from templates according to the current configuration. Unless the files | |
15957 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15958 | |
81ecdfbb | 15959 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15960 | |
15961 | -h, --help print this help, then exit | |
81ecdfbb | 15962 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15963 | --config print configuration, then exit |
81ecdfbb RW |
15964 | -q, --quiet, --silent |
15965 | do not print progress messages | |
c6b750e1 DJ |
15966 | -d, --debug don't remove temporary files |
15967 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15968 | --file=FILE[:TEMPLATE] |
15969 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15970 | |
15971 | Configuration files: | |
15972 | $config_files | |
15973 | ||
81ecdfbb | 15974 | Report bugs to the package provider." |
c6b750e1 | 15975 | |
81ecdfbb RW |
15976 | _ACEOF |
15977 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15978 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
15979 | ac_cs_version="\\ |
15980 | config.status | |
d0ac1c44 SM |
15981 | configured by $0, generated by GNU Autoconf 2.69, |
15982 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 15983 | |
d0ac1c44 | 15984 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
15985 | This config.status script is free software; the Free Software Foundation |
15986 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15987 | |
15988 | ac_pwd='$ac_pwd' | |
15989 | srcdir='$srcdir' | |
15990 | INSTALL='$INSTALL' | |
8e957354 | 15991 | AWK='$AWK' |
81ecdfbb | 15992 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15993 | _ACEOF |
15994 | ||
81ecdfbb RW |
15995 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15996 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15997 | ac_need_defaults=: |
15998 | while test $# != 0 | |
a0da8069 | 15999 | do |
c6b750e1 | 16000 | case $1 in |
d0ac1c44 | 16001 | --*=?*) |
81ecdfbb RW |
16002 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16003 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
16004 | ac_shift=: |
16005 | ;; | |
d0ac1c44 SM |
16006 | --*=) |
16007 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16008 | ac_optarg= | |
16009 | ac_shift=: | |
16010 | ;; | |
81ecdfbb | 16011 | *) |
c6b750e1 DJ |
16012 | ac_option=$1 |
16013 | ac_optarg=$2 | |
16014 | ac_shift=shift | |
16015 | ;; | |
c6b750e1 DJ |
16016 | esac |
16017 | ||
16018 | case $ac_option in | |
16019 | # Handling of the options. | |
a0da8069 | 16020 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 16021 | ac_cs_recheck=: ;; |
81ecdfbb RW |
16022 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
16023 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
16024 | --config | --confi | --conf | --con | --co | --c ) |
16025 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 16026 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
16027 | debug=: ;; |
16028 | --file | --fil | --fi | --f ) | |
16029 | $ac_shift | |
81ecdfbb RW |
16030 | case $ac_optarg in |
16031 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 16032 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
16033 | esac |
16034 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 16035 | ac_need_defaults=false;; |
81ecdfbb RW |
16036 | --he | --h | --help | --hel | -h ) |
16037 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
16038 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16039 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16040 | ac_cs_silent=: ;; | |
16041 | ||
16042 | # This is an error. | |
d0ac1c44 | 16043 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 16044 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 16045 | |
81ecdfbb RW |
16046 | *) as_fn_append ac_config_targets " $1" |
16047 | ac_need_defaults=false ;; | |
c6b750e1 | 16048 | |
376a0e54 | 16049 | esac |
c6b750e1 | 16050 | shift |
376a0e54 CM |
16051 | done |
16052 | ||
c6b750e1 | 16053 | ac_configure_extra_args= |
376a0e54 | 16054 | |
c6b750e1 DJ |
16055 | if $ac_cs_silent; then |
16056 | exec 6>/dev/null | |
16057 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16058 | fi | |
376a0e54 | 16059 | |
c6b750e1 | 16060 | _ACEOF |
81ecdfbb | 16061 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 16062 | if \$ac_cs_recheck; then |
d0ac1c44 | 16063 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
16064 | shift |
16065 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16066 | CONFIG_SHELL='$SHELL' | |
16067 | export CONFIG_SHELL | |
16068 | exec "\$@" | |
c6b750e1 DJ |
16069 | fi |
16070 | ||
16071 | _ACEOF | |
81ecdfbb RW |
16072 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16073 | exec 5>>config.log | |
16074 | { | |
16075 | echo | |
16076 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16077 | ## Running $as_me. ## | |
16078 | _ASBOX | |
16079 | $as_echo "$ac_log" | |
16080 | } >&5 | |
c6b750e1 | 16081 | |
81ecdfbb RW |
16082 | _ACEOF |
16083 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
16084 | # |
16085 | # INIT-COMMANDS | |
16086 | # | |
16087 | extrasub_build="$extrasub_build" | |
16088 | extrasub_host="$extrasub_host" | |
16089 | extrasub_target="$extrasub_target" | |
16090 | ||
81ecdfbb | 16091 | _ACEOF |
c6b750e1 | 16092 | |
81ecdfbb | 16093 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 16094 | |
81ecdfbb | 16095 | # Handling of arguments. |
c6b750e1 DJ |
16096 | for ac_config_target in $ac_config_targets |
16097 | do | |
81ecdfbb RW |
16098 | case $ac_config_target in |
16099 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16100 | ||
d0ac1c44 | 16101 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
16102 | esac |
16103 | done | |
16104 | ||
81ecdfbb | 16105 | |
c6b750e1 DJ |
16106 | # If the user did not use the arguments to specify the items to instantiate, |
16107 | # then the envvar interface is used. Set only those that are not. | |
16108 | # We use the long form for the default assignment because of an extremely | |
16109 | # bizarre bug on SunOS 4.1.3. | |
16110 | if $ac_need_defaults; then | |
16111 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16112 | fi | |
16113 | ||
16114 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 16115 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 16116 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
16117 | # Hook for its removal unless debugging. |
16118 | # Note that there is a small window in which the directory will not be cleaned: | |
16119 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
16120 | $debug || |
16121 | { | |
d0ac1c44 | 16122 | tmp= ac_tmp= |
81ecdfbb | 16123 | trap 'exit_status=$? |
d0ac1c44 SM |
16124 | : "${ac_tmp:=$tmp}" |
16125 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
16126 | ' 0 |
16127 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 16128 | } |
c6b750e1 DJ |
16129 | # Create a (secure) tmp directory for tmp files. |
16130 | ||
16131 | { | |
81ecdfbb | 16132 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 16133 | test -d "$tmp" |
c6b750e1 DJ |
16134 | } || |
16135 | { | |
81ecdfbb RW |
16136 | tmp=./conf$$-$RANDOM |
16137 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
16138 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16139 | ac_tmp=$tmp | |
81ecdfbb RW |
16140 | |
16141 | # Set up the scripts for CONFIG_FILES section. | |
16142 | # No need to generate them if there are no CONFIG_FILES. | |
16143 | # This happens for instance with `./config.status config.h'. | |
16144 | if test -n "$CONFIG_FILES"; then | |
16145 | ||
16146 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
16147 | ac_cs_awk_getline=: | |
16148 | ac_cs_awk_pipe_init= | |
16149 | ac_cs_awk_read_file=' | |
16150 | while ((getline aline < (F[key])) > 0) | |
16151 | print(aline) | |
16152 | close(F[key])' | |
16153 | ac_cs_awk_pipe_fini= | |
16154 | else | |
16155 | ac_cs_awk_getline=false | |
16156 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16157 | ac_cs_awk_read_file=' | |
16158 | print "|#_!!_#|" | |
16159 | print "cat " F[key] " &&" | |
16160 | '$ac_cs_awk_pipe_init | |
16161 | # The final `:' finishes the AND list. | |
16162 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16163 | fi | |
16164 | ac_cr=`echo X | tr X '\015'` | |
16165 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16166 | # But we know of no other shell where ac_cr would be empty at this | |
16167 | # point, so we can use a bashism as a fallback. | |
16168 | if test "x$ac_cr" = x; then | |
16169 | eval ac_cr=\$\'\\r\' | |
16170 | fi | |
16171 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16172 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 16173 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
16174 | else |
16175 | ac_cs_awk_cr=$ac_cr | |
16176 | fi | |
16177 | ||
d0ac1c44 | 16178 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
16179 | _ACEOF |
16180 | ||
16181 | # Create commands to substitute file output variables. | |
c6b750e1 | 16182 | { |
81ecdfbb | 16183 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 16184 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
16185 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
16186 | echo "_ACAWK" && | |
16187 | echo "_ACEOF" | |
16188 | } >conf$$files.sh && | |
16189 | . ./conf$$files.sh || | |
d0ac1c44 | 16190 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 16191 | rm -f conf$$files.sh |
c6b750e1 | 16192 | |
81ecdfbb RW |
16193 | { |
16194 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16195 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16196 | echo "_ACEOF" | |
16197 | } >conf$$subs.sh || | |
d0ac1c44 SM |
16198 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16199 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
16200 | ac_delim='%!_!# ' |
16201 | for ac_last_try in false false false false false :; do | |
16202 | . ./conf$$subs.sh || | |
d0ac1c44 | 16203 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
16204 | |
16205 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16206 | if test $ac_delim_n = $ac_delim_num; then | |
16207 | break | |
16208 | elif $ac_last_try; then | |
d0ac1c44 | 16209 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
16210 | else |
16211 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16212 | fi | |
16213 | done | |
16214 | rm -f conf$$subs.sh | |
16215 | ||
16216 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 16217 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 16218 | _ACEOF |
81ecdfbb RW |
16219 | sed -n ' |
16220 | h | |
16221 | s/^/S["/; s/!.*/"]=/ | |
16222 | p | |
16223 | g | |
16224 | s/^[^!]*!// | |
16225 | :repl | |
16226 | t repl | |
16227 | s/'"$ac_delim"'$// | |
16228 | t delim | |
16229 | :nl | |
16230 | h | |
d0ac1c44 | 16231 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
16232 | t more1 |
16233 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16234 | p | |
16235 | n | |
16236 | b repl | |
16237 | :more1 | |
16238 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16239 | p | |
16240 | g | |
16241 | s/.\{148\}// | |
16242 | t nl | |
16243 | :delim | |
16244 | h | |
d0ac1c44 | 16245 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
16246 | t more2 |
16247 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16248 | p | |
16249 | b | |
16250 | :more2 | |
16251 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16252 | p | |
16253 | g | |
16254 | s/.\{148\}// | |
16255 | t delim | |
16256 | ' <conf$$subs.awk | sed ' | |
16257 | /^[^""]/{ | |
16258 | N | |
16259 | s/\n// | |
16260 | } | |
16261 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16262 | rm -f conf$$subs.awk | |
16263 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16264 | _ACAWK | |
d0ac1c44 | 16265 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
16266 | for (key in S) S_is_set[key] = 1 |
16267 | FS = "\a" | |
16268 | \$ac_cs_awk_pipe_init | |
16269 | } | |
16270 | { | |
16271 | line = $ 0 | |
16272 | nfields = split(line, field, "@") | |
16273 | substed = 0 | |
16274 | len = length(field[1]) | |
16275 | for (i = 2; i < nfields; i++) { | |
16276 | key = field[i] | |
16277 | keylen = length(key) | |
16278 | if (S_is_set[key]) { | |
16279 | value = S[key] | |
16280 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16281 | len += length(value) + length(field[++i]) | |
16282 | substed = 1 | |
16283 | } else | |
16284 | len += 1 + keylen | |
16285 | } | |
16286 | if (nfields == 3 && !substed) { | |
16287 | key = field[2] | |
16288 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16289 | \$ac_cs_awk_read_file | |
16290 | next | |
16291 | } | |
16292 | } | |
16293 | print line | |
16294 | } | |
16295 | \$ac_cs_awk_pipe_fini | |
16296 | _ACAWK | |
16297 | _ACEOF | |
16298 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16299 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16300 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16301 | else | |
16302 | cat | |
d0ac1c44 SM |
16303 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16304 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
16305 | _ACEOF |
16306 | ||
d0ac1c44 SM |
16307 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16308 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
16309 | # trailing colons and then remove the whole line if VPATH becomes empty |
16310 | # (actually we leave an empty line to preserve line numbers). | |
16311 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
16312 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16313 | h | |
16314 | s/// | |
16315 | s/^/:/ | |
16316 | s/[ ]*$/:/ | |
16317 | s/:\$(srcdir):/:/g | |
16318 | s/:\${srcdir}:/:/g | |
16319 | s/:@srcdir@:/:/g | |
16320 | s/^:*// | |
81ecdfbb | 16321 | s/:*$// |
d0ac1c44 SM |
16322 | x |
16323 | s/\(=[ ]*\).*/\1/ | |
16324 | G | |
16325 | s/\n// | |
81ecdfbb RW |
16326 | s/^[^=]*=[ ]*$// |
16327 | }' | |
16328 | fi | |
c6b750e1 | 16329 | |
81ecdfbb RW |
16330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16331 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 16332 | |
c6b750e1 | 16333 | |
81ecdfbb RW |
16334 | eval set X " :F $CONFIG_FILES " |
16335 | shift | |
16336 | for ac_tag | |
16337 | do | |
16338 | case $ac_tag in | |
16339 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16340 | esac | |
16341 | case $ac_mode$ac_tag in | |
16342 | :[FHL]*:*);; | |
d0ac1c44 | 16343 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
16344 | :[FH]-) ac_tag=-:-;; |
16345 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16346 | esac | |
16347 | ac_save_IFS=$IFS | |
16348 | IFS=: | |
16349 | set x $ac_tag | |
16350 | IFS=$ac_save_IFS | |
16351 | shift | |
16352 | ac_file=$1 | |
16353 | shift | |
252b5132 | 16354 | |
81ecdfbb RW |
16355 | case $ac_mode in |
16356 | :L) ac_source=$1;; | |
16357 | :[FH]) | |
16358 | ac_file_inputs= | |
16359 | for ac_f | |
16360 | do | |
16361 | case $ac_f in | |
d0ac1c44 | 16362 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
16363 | *) # Look for the file first in the build tree, then in the source tree |
16364 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16365 | # because $ac_f cannot contain `:'. | |
16366 | test -f "$ac_f" || | |
16367 | case $ac_f in | |
16368 | [\\/$]*) false;; | |
16369 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16370 | esac || | |
d0ac1c44 | 16371 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
16372 | esac |
16373 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16374 | as_fn_append ac_file_inputs " '$ac_f'" | |
16375 | done | |
c6b750e1 | 16376 | |
81ecdfbb RW |
16377 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16378 | # use $as_me), people would be surprised to read: | |
16379 | # /* config.h. Generated by config.status. */ | |
16380 | configure_input='Generated from '` | |
16381 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16382 | `' by configure.' | |
16383 | if test x"$ac_file" != x-; then | |
16384 | configure_input="$ac_file. $configure_input" | |
16385 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16386 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 16387 | fi |
81ecdfbb RW |
16388 | # Neutralize special characters interpreted by sed in replacement strings. |
16389 | case $configure_input in #( | |
16390 | *\&* | *\|* | *\\* ) | |
16391 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16392 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16393 | *) ac_sed_conf_input=$configure_input;; | |
16394 | esac | |
cac3d6c4 | 16395 | |
81ecdfbb | 16396 | case $ac_tag in |
d0ac1c44 SM |
16397 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16398 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
16399 | esac |
16400 | ;; | |
a0da8069 | 16401 | esac |
252b5132 | 16402 | |
81ecdfbb | 16403 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
16404 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16405 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16406 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16407 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16408 | $as_echo X"$ac_file" | | |
16409 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16410 | s//\1/ | |
16411 | q | |
16412 | } | |
16413 | /^X\(\/\/\)[^/].*/{ | |
16414 | s//\1/ | |
16415 | q | |
16416 | } | |
16417 | /^X\(\/\/\)$/{ | |
16418 | s//\1/ | |
16419 | q | |
16420 | } | |
16421 | /^X\(\/\).*/{ | |
16422 | s//\1/ | |
16423 | q | |
16424 | } | |
16425 | s/.*/./; q'` | |
16426 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 16427 | ac_builddir=. |
252b5132 | 16428 | |
81ecdfbb RW |
16429 | case "$ac_dir" in |
16430 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16431 | *) | |
16432 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16433 | # A ".." for each directory in $ac_dir_suffix. | |
16434 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16435 | case $ac_top_builddir_sub in | |
16436 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16437 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16438 | esac ;; | |
16439 | esac | |
16440 | ac_abs_top_builddir=$ac_pwd | |
16441 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16442 | # for backward compatibility: | |
16443 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
16444 | |
16445 | case $srcdir in | |
81ecdfbb | 16446 | .) # We are building in place. |
c6b750e1 | 16447 | ac_srcdir=. |
81ecdfbb RW |
16448 | ac_top_srcdir=$ac_top_builddir_sub |
16449 | ac_abs_top_srcdir=$ac_pwd ;; | |
16450 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 16451 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
16452 | ac_top_srcdir=$srcdir |
16453 | ac_abs_top_srcdir=$srcdir ;; | |
16454 | *) # Relative name. | |
16455 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16456 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16457 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 16458 | esac |
81ecdfbb | 16459 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 16460 | |
252b5132 | 16461 | |
81ecdfbb RW |
16462 | case $ac_mode in |
16463 | :F) | |
16464 | # | |
16465 | # CONFIG_FILE | |
16466 | # | |
c6b750e1 DJ |
16467 | |
16468 | case $INSTALL in | |
16469 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 16470 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 16471 | esac |
81ecdfbb | 16472 | _ACEOF |
252b5132 | 16473 | |
81ecdfbb RW |
16474 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16475 | # If the template does not know about datarootdir, expand it. | |
16476 | # FIXME: This hack should be removed a few years after 2.60. | |
16477 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16478 | ac_sed_dataroot=' | |
16479 | /datarootdir/ { | |
16480 | p | |
16481 | q | |
16482 | } | |
16483 | /@datadir@/p | |
16484 | /@docdir@/p | |
16485 | /@infodir@/p | |
16486 | /@localedir@/p | |
16487 | /@mandir@/p' | |
16488 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16489 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16490 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16491 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16492 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 16493 | _ACEOF |
81ecdfbb RW |
16494 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16495 | ac_datarootdir_hack=' | |
16496 | s&@datadir@&$datadir&g | |
16497 | s&@docdir@&$docdir&g | |
16498 | s&@infodir@&$infodir&g | |
16499 | s&@localedir@&$localedir&g | |
16500 | s&@mandir@&$mandir&g | |
16501 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16502 | esac | |
16503 | _ACEOF | |
16504 | ||
16505 | # Neutralize VPATH when `$srcdir' = `.'. | |
16506 | # Shell code in configure.ac might set extrasub. | |
16507 | # FIXME: do we really want to maintain this feature? | |
16508 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16509 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
16510 | $extrasub |
16511 | _ACEOF | |
81ecdfbb | 16512 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
16513 | :t |
16514 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
16515 | s|@configure_input@|$ac_sed_conf_input|;t t |
16516 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16517 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16518 | s&@srcdir@&$ac_srcdir&;t t | |
16519 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16520 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16521 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16522 | s&@builddir@&$ac_builddir&;t t | |
16523 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16524 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16525 | s&@INSTALL@&$ac_INSTALL&;t t | |
16526 | $ac_datarootdir_hack | |
16527 | " | |
16528 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16529 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 16530 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 16531 | else |
d0ac1c44 SM |
16532 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
16533 | fi \ | |
16534 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
16535 | |
16536 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
16537 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16538 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16539 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 16540 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16541 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 16542 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16543 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 16544 | |
d0ac1c44 | 16545 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 16546 | case $ac_file in |
d0ac1c44 SM |
16547 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16548 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 16549 | esac \ |
d0ac1c44 | 16550 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 16551 | ;; |
c148b4cb | 16552 | |
c148b4cb | 16553 | |
c148b4cb | 16554 | |
81ecdfbb RW |
16555 | esac |
16556 | ||
06a51eac RW |
16557 | |
16558 | case $ac_file$ac_mode in | |
16559 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16560 | sed "$extrasub_host" | | |
16561 | sed "$extrasub_target" > mf$$ | |
16562 | mv -f mf$$ Makefile ;; | |
16563 | ||
16564 | esac | |
81ecdfbb RW |
16565 | done # for ac_tag |
16566 | ||
16567 | ||
16568 | as_fn_exit 0 | |
c6b750e1 | 16569 | _ACEOF |
c6b750e1 DJ |
16570 | ac_clean_files=$ac_clean_files_save |
16571 | ||
81ecdfbb | 16572 | test $ac_write_fail = 0 || |
d0ac1c44 | 16573 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 16574 | |
c6b750e1 DJ |
16575 | |
16576 | # configure is writing to config.log, and then calls config.status. | |
16577 | # config.status does its own redirection, appending to config.log. | |
16578 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16579 | # by configure, so config.status won't be able to write to it; its | |
16580 | # output is simply discarded. So we exec the FD to /dev/null, | |
16581 | # effectively closing config.log, so it can be properly (re)opened and | |
16582 | # appended to by config.status. When coming back to configure, we | |
16583 | # need to make the FD available again. | |
16584 | if test "$no_create" != yes; then | |
16585 | ac_cs_success=: | |
16586 | ac_config_status_args= | |
16587 | test "$silent" = yes && | |
16588 | ac_config_status_args="$ac_config_status_args --quiet" | |
16589 | exec 5>/dev/null | |
16590 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16591 | exec 5>>config.log | |
16592 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16593 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 16594 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
16595 | fi |
16596 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16598 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 16599 | fi |
c148b4cb | 16600 |