Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
d0ac1c44 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
c6b750e1 DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 211 | do |
81ecdfbb RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
81ecdfbb RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 266 | else |
81ecdfbb RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 271 | fi |
81ecdfbb RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
c6b750e1 | 301 | |
81ecdfbb RW |
302 | # as_fn_exit STATUS |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
81ecdfbb RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
d0ac1c44 SM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
81ecdfbb RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 407 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
408 | as_fn_error () |
409 | { | |
d0ac1c44 SM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 414 | fi |
d0ac1c44 | 415 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
81ecdfbb | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
81ecdfbb RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
c6b750e1 | 437 | |
81ecdfbb | 438 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
c6b750e1 | 456 | |
c6b750e1 DJ |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
c6b750e1 | 464 | |
81ecdfbb RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
c6b750e1 | 474 | sed ' |
81ecdfbb RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
c6b750e1 | 479 | N |
81ecdfbb RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 482 | t loop |
81ecdfbb | 483 | s/-\n.*// |
c6b750e1 | 484 | ' >$as_me.lineno && |
81ecdfbb RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 | 487 | |
d0ac1c44 SM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
c6b750e1 DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
c6b750e1 DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
81ecdfbb RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
c6b750e1 DJ |
511 | esac |
512 | ||
81ecdfbb RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 516 | else |
81ecdfbb RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 519 | fi |
81ecdfbb RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 522 | as_ln_s='ln -s' |
81ecdfbb RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 526 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 528 | as_ln_s='cp -pR' |
81ecdfbb RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
c6b750e1 | 533 | fi |
c6b750e1 | 534 | else |
d0ac1c44 | 535 | as_ln_s='cp -pR' |
c6b750e1 | 536 | fi |
81ecdfbb RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
d0ac1c44 SM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
549 | |
550 | # Sed expression to map a string onto a valid CPP name. | |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
d0ac1c44 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
a0da8069 | 559 | |
c6b750e1 | 560 | # Name of the host. |
d0ac1c44 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
c6b750e1 DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
c6b750e1 DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
a0da8069 | 568 | ac_default_prefix=/usr/local |
81ecdfbb | 569 | ac_clean_files= |
c6b750e1 | 570 | ac_config_libobj_dir=. |
81ecdfbb | 571 | LIBOBJS= |
c6b750e1 DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
c6b750e1 DJ |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
81ecdfbb | 583 | PACKAGE_URL= |
c6b750e1 DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
590 | stage2_werror_flag | |
591 | stage1_checking | |
592 | stage1_cflags | |
593 | MAINT | |
594 | MAINTAINER_MODE_FALSE | |
595 | MAINTAINER_MODE_TRUE | |
596 | COMPILER_NM_FOR_TARGET | |
597 | COMPILER_LD_FOR_TARGET | |
598 | COMPILER_AS_FOR_TARGET | |
599 | FLAGS_FOR_TARGET | |
600 | RAW_CXX_FOR_TARGET | |
601 | WINDMC_FOR_TARGET | |
602 | WINDRES_FOR_TARGET | |
603 | STRIP_FOR_TARGET | |
b121d7d4 | 604 | READELF_FOR_TARGET |
81ecdfbb RW |
605 | RANLIB_FOR_TARGET |
606 | OBJDUMP_FOR_TARGET | |
6b91c541 | 607 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
608 | NM_FOR_TARGET |
609 | LIPO_FOR_TARGET | |
610 | LD_FOR_TARGET | |
611 | DLLTOOL_FOR_TARGET | |
612 | AS_FOR_TARGET | |
613 | AR_FOR_TARGET | |
e552509b | 614 | GOC_FOR_TARGET |
81ecdfbb | 615 | GFORTRAN_FOR_TARGET |
81ecdfbb RW |
616 | GCC_FOR_TARGET |
617 | CXX_FOR_TARGET | |
618 | CC_FOR_TARGET | |
b121d7d4 | 619 | READELF |
81ecdfbb RW |
620 | OBJDUMP |
621 | OBJCOPY | |
622 | WINDMC | |
623 | WINDRES | |
624 | STRIP | |
625 | RANLIB | |
626 | NM | |
627 | LIPO | |
628 | LD | |
629 | DLLTOOL | |
630 | AS | |
631 | AR | |
632 | RUNTEST | |
633 | EXPECT | |
634 | MAKEINFO | |
635 | FLEX | |
636 | LEX | |
637 | M4 | |
638 | BISON | |
639 | YACC | |
81ecdfbb RW |
640 | WINDRES_FOR_BUILD |
641 | WINDMC_FOR_BUILD | |
642 | RANLIB_FOR_BUILD | |
643 | NM_FOR_BUILD | |
644 | LD_FOR_BUILD | |
645 | LDFLAGS_FOR_BUILD | |
e552509b | 646 | GOC_FOR_BUILD |
81ecdfbb | 647 | GFORTRAN_FOR_BUILD |
81ecdfbb RW |
648 | DLLTOOL_FOR_BUILD |
649 | CXX_FOR_BUILD | |
650 | CXXFLAGS_FOR_BUILD | |
651 | CFLAGS_FOR_BUILD | |
652 | CC_FOR_BUILD | |
653 | AS_FOR_BUILD | |
654 | AR_FOR_BUILD | |
911e63d0 | 655 | target_configdirs |
81ecdfbb | 656 | configdirs |
81ecdfbb | 657 | build_configdirs |
81ecdfbb RW |
658 | INSTALL_GDB_TK |
659 | GDB_TK | |
660 | CONFIGURE_GDB_TK | |
661 | build_tooldir | |
662 | tooldir | |
663 | GCC_SHLIB_SUBDIR | |
664 | RPATH_ENVVAR | |
4074d5f2 RW |
665 | target_configargs |
666 | host_configargs | |
667 | build_configargs | |
96655cc4 | 668 | BUILD_CONFIG |
91c1f14c | 669 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
670 | CXXFLAGS_FOR_TARGET |
671 | CFLAGS_FOR_TARGET | |
672 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
673 | SYSROOT_CFLAGS_FOR_TARGET | |
bf41f30d | 674 | get_gcc_base_ver |
e81d5d05 | 675 | extra_host_zlib_configure_flags |
700d40ca | 676 | extra_host_libiberty_configure_flags |
1b6c0831 | 677 | stage1_languages |
bf41f30d | 678 | host_shared |
1b6c0831 L |
679 | extra_linker_plugin_flags |
680 | extra_linker_plugin_configure_flags | |
7ec59b9e | 681 | islinc |
1b6c0831 | 682 | isllibs |
81ecdfbb | 683 | poststage1_ldflags |
143754cd | 684 | poststage1_libs |
81ecdfbb | 685 | stage1_ldflags |
b3676d82 | 686 | stage1_libs |
7ec59b9e | 687 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
688 | extra_mpc_mpfr_configure_flags |
689 | extra_mpc_gmp_configure_flags | |
690 | extra_mpfr_configure_flags | |
691 | gmpinc | |
692 | gmplibs | |
301a9420 | 693 | LIBDEBUGINFOD |
81ecdfbb RW |
694 | do_compare |
695 | GNATMAKE | |
696 | GNATBIND | |
697 | ac_ct_CXX | |
698 | CXXFLAGS | |
699 | CXX | |
700 | OBJEXT | |
701 | EXEEXT | |
702 | ac_ct_CC | |
703 | CPPFLAGS | |
704 | LDFLAGS | |
705 | CFLAGS | |
706 | CC | |
1b6c0831 | 707 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
708 | target_subdir |
709 | host_subdir | |
710 | build_subdir | |
711 | build_libsubdir | |
8e957354 PB |
712 | AWK |
713 | SED | |
81ecdfbb RW |
714 | LN_S |
715 | LN | |
716 | INSTALL_DATA | |
717 | INSTALL_SCRIPT | |
718 | INSTALL_PROGRAM | |
719 | target_os | |
720 | target_vendor | |
721 | target_cpu | |
722 | target | |
723 | host_os | |
724 | host_vendor | |
725 | host_cpu | |
726 | host | |
727 | target_noncanonical | |
728 | host_noncanonical | |
729 | build_noncanonical | |
730 | build_os | |
731 | build_vendor | |
732 | build_cpu | |
733 | build | |
734 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
735 | target_alias | |
736 | host_alias | |
737 | build_alias | |
738 | LIBS | |
739 | ECHO_T | |
740 | ECHO_N | |
741 | ECHO_C | |
742 | DEFS | |
743 | mandir | |
744 | localedir | |
745 | libdir | |
746 | psdir | |
747 | pdfdir | |
748 | dvidir | |
749 | htmldir | |
750 | infodir | |
751 | docdir | |
752 | oldincludedir | |
753 | includedir | |
754 | localstatedir | |
755 | sharedstatedir | |
756 | sysconfdir | |
757 | datadir | |
758 | datarootdir | |
759 | libexecdir | |
760 | sbindir | |
761 | bindir | |
762 | program_transform_name | |
763 | prefix | |
764 | exec_prefix | |
765 | PACKAGE_URL | |
766 | PACKAGE_BUGREPORT | |
767 | PACKAGE_STRING | |
768 | PACKAGE_VERSION | |
769 | PACKAGE_TARNAME | |
770 | PACKAGE_NAME | |
771 | PATH_SEPARATOR | |
772 | SHELL' | |
773 | ac_subst_files='serialization_dependencies | |
774 | host_makefile_frag | |
775 | target_makefile_frag | |
776 | alphaieee_frag | |
777 | ospace_frag' | |
778 | ac_user_opts=' | |
779 | enable_option_checking | |
780 | with_build_libsubdir | |
cf39cfc5 | 781 | with_system_zlib |
1b6c0831 L |
782 | enable_as_accelerator_for |
783 | enable_offload_targets | |
81ecdfbb | 784 | enable_gold |
c7791212 | 785 | enable_ld |
edeefb67 | 786 | enable_compressed_debug_sections |
89a1e9c3 PB |
787 | enable_libquadmath |
788 | enable_libquadmath_support | |
81ecdfbb RW |
789 | enable_libada |
790 | enable_libssp | |
f66a9a70 | 791 | enable_libstdcxx |
1b6c0831 | 792 | enable_liboffloadmic |
ffdd6afc | 793 | enable_bootstrap |
301a9420 | 794 | with_debuginfod |
81ecdfbb RW |
795 | with_mpc |
796 | with_mpc_include | |
797 | with_mpc_lib | |
798 | with_mpfr_dir | |
799 | with_mpfr | |
800 | with_mpfr_include | |
801 | with_mpfr_lib | |
802 | with_gmp_dir | |
803 | with_gmp | |
804 | with_gmp_include | |
805 | with_gmp_lib | |
81ecdfbb | 806 | with_stage1_libs |
c1a5d03a | 807 | with_static_standard_libraries |
b3676d82 | 808 | with_stage1_ldflags |
81ecdfbb | 809 | with_boot_libs |
143754cd | 810 | with_boot_ldflags |
7ec59b9e L |
811 | with_isl |
812 | with_isl_include | |
813 | with_isl_lib | |
814 | enable_isl_version_check | |
700d40ca | 815 | enable_lto |
1b6c0831 L |
816 | enable_linker_plugin_configure_flags |
817 | enable_linker_plugin_flags | |
bf41f30d | 818 | enable_host_shared |
81ecdfbb RW |
819 | enable_stage1_languages |
820 | enable_objc_gc | |
05a13254 NC |
821 | with_target_bdw_gc |
822 | with_target_bdw_gc_include | |
823 | with_target_bdw_gc_lib | |
bf41f30d | 824 | with_gcc_major_version_only |
81ecdfbb RW |
825 | with_build_sysroot |
826 | with_debug_prefix_map | |
96655cc4 | 827 | with_build_config |
730af8ee | 828 | enable_vtable_verify |
81ecdfbb RW |
829 | enable_serial_configure |
830 | with_build_time_tools | |
831 | enable_maintainer_mode | |
832 | enable_stage1_checking | |
833 | enable_werror | |
81ecdfbb RW |
834 | ' |
835 | ac_precious_vars='build_alias | |
836 | host_alias | |
837 | target_alias | |
838 | CC | |
839 | CFLAGS | |
840 | LDFLAGS | |
841 | LIBS | |
842 | CPPFLAGS | |
843 | CXX | |
844 | CXXFLAGS | |
845 | CCC | |
4074d5f2 RW |
846 | build_configargs |
847 | host_configargs | |
848 | target_configargs | |
81ecdfbb RW |
849 | AR |
850 | AS | |
851 | DLLTOOL | |
852 | LD | |
853 | LIPO | |
854 | NM | |
855 | RANLIB | |
856 | STRIP | |
857 | WINDRES | |
858 | WINDMC | |
859 | OBJCOPY | |
860 | OBJDUMP | |
b121d7d4 | 861 | READELF |
81ecdfbb RW |
862 | CC_FOR_TARGET |
863 | CXX_FOR_TARGET | |
864 | GCC_FOR_TARGET | |
81ecdfbb | 865 | GFORTRAN_FOR_TARGET |
e552509b | 866 | GOC_FOR_TARGET |
81ecdfbb RW |
867 | AR_FOR_TARGET |
868 | AS_FOR_TARGET | |
869 | DLLTOOL_FOR_TARGET | |
870 | LD_FOR_TARGET | |
871 | LIPO_FOR_TARGET | |
872 | NM_FOR_TARGET | |
6b91c541 | 873 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
874 | OBJDUMP_FOR_TARGET |
875 | RANLIB_FOR_TARGET | |
b121d7d4 | 876 | READELF_FOR_TARGET |
81ecdfbb RW |
877 | STRIP_FOR_TARGET |
878 | WINDRES_FOR_TARGET | |
879 | WINDMC_FOR_TARGET' | |
880 | ||
a0da8069 NN |
881 | |
882 | # Initialize some variables set by options. | |
c6b750e1 DJ |
883 | ac_init_help= |
884 | ac_init_version=false | |
81ecdfbb RW |
885 | ac_unrecognized_opts= |
886 | ac_unrecognized_sep= | |
a0da8069 NN |
887 | # The variables have the same names as the options, with |
888 | # dashes changed to underlines. | |
c6b750e1 | 889 | cache_file=/dev/null |
a0da8069 | 890 | exec_prefix=NONE |
a0da8069 | 891 | no_create= |
a0da8069 NN |
892 | no_recursion= |
893 | prefix=NONE | |
894 | program_prefix=NONE | |
895 | program_suffix=NONE | |
896 | program_transform_name=s,x,x, | |
897 | silent= | |
898 | site= | |
899 | srcdir= | |
a0da8069 NN |
900 | verbose= |
901 | x_includes=NONE | |
902 | x_libraries=NONE | |
c6b750e1 DJ |
903 | |
904 | # Installation directory options. | |
905 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
906 | # and all the variables that are supposed to be based on exec_prefix | |
907 | # by default will actually change. | |
908 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 909 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
910 | bindir='${exec_prefix}/bin' |
911 | sbindir='${exec_prefix}/sbin' | |
912 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
913 | datarootdir='${prefix}/share' |
914 | datadir='${datarootdir}' | |
a0da8069 NN |
915 | sysconfdir='${prefix}/etc' |
916 | sharedstatedir='${prefix}/com' | |
917 | localstatedir='${prefix}/var' | |
a0da8069 NN |
918 | includedir='${prefix}/include' |
919 | oldincludedir='/usr/include' | |
81ecdfbb RW |
920 | docdir='${datarootdir}/doc/${PACKAGE}' |
921 | infodir='${datarootdir}/info' | |
922 | htmldir='${docdir}' | |
923 | dvidir='${docdir}' | |
924 | pdfdir='${docdir}' | |
925 | psdir='${docdir}' | |
926 | libdir='${exec_prefix}/lib' | |
927 | localedir='${datarootdir}/locale' | |
928 | mandir='${datarootdir}/man' | |
252b5132 | 929 | |
a0da8069 | 930 | ac_prev= |
81ecdfbb | 931 | ac_dashdash= |
a0da8069 NN |
932 | for ac_option |
933 | do | |
a0da8069 NN |
934 | # If the previous option needs an argument, assign it. |
935 | if test -n "$ac_prev"; then | |
81ecdfbb | 936 | eval $ac_prev=\$ac_option |
a0da8069 NN |
937 | ac_prev= |
938 | continue | |
939 | fi | |
252b5132 | 940 | |
81ecdfbb | 941 | case $ac_option in |
d0ac1c44 SM |
942 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
943 | *=) ac_optarg= ;; | |
944 | *) ac_optarg=yes ;; | |
81ecdfbb | 945 | esac |
a0da8069 NN |
946 | |
947 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
948 | ||
81ecdfbb RW |
949 | case $ac_dashdash$ac_option in |
950 | --) | |
951 | ac_dashdash=yes ;; | |
a0da8069 NN |
952 | |
953 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
954 | ac_prev=bindir ;; | |
955 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 956 | bindir=$ac_optarg ;; |
a0da8069 NN |
957 | |
958 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 959 | ac_prev=build_alias ;; |
a0da8069 | 960 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 961 | build_alias=$ac_optarg ;; |
a0da8069 NN |
962 | |
963 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
964 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
965 | ac_prev=cache_file ;; | |
966 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
967 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
968 | cache_file=$ac_optarg ;; |
969 | ||
970 | --config-cache | -C) | |
971 | cache_file=config.cache ;; | |
a0da8069 | 972 | |
81ecdfbb | 973 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 974 | ac_prev=datadir ;; |
81ecdfbb | 975 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 976 | datadir=$ac_optarg ;; |
a0da8069 | 977 | |
81ecdfbb RW |
978 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
979 | | --dataroo | --dataro | --datar) | |
980 | ac_prev=datarootdir ;; | |
981 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
982 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
983 | datarootdir=$ac_optarg ;; | |
984 | ||
a0da8069 | 985 | -disable-* | --disable-*) |
81ecdfbb | 986 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 987 | # Reject names that are not valid shell variable names. |
81ecdfbb | 988 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 989 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
990 | ac_useropt_orig=$ac_useropt |
991 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
992 | case $ac_user_opts in | |
993 | *" | |
994 | "enable_$ac_useropt" | |
995 | "*) ;; | |
996 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
997 | ac_unrecognized_sep=', ';; | |
998 | esac | |
999 | eval enable_$ac_useropt=no ;; | |
1000 | ||
1001 | -docdir | --docdir | --docdi | --doc | --do) | |
1002 | ac_prev=docdir ;; | |
1003 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1004 | docdir=$ac_optarg ;; | |
1005 | ||
1006 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1007 | ac_prev=dvidir ;; | |
1008 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1009 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
1010 | |
1011 | -enable-* | --enable-*) | |
81ecdfbb | 1012 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 1013 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1014 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1015 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1016 | ac_useropt_orig=$ac_useropt |
1017 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1018 | case $ac_user_opts in | |
1019 | *" | |
1020 | "enable_$ac_useropt" | |
1021 | "*) ;; | |
1022 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1023 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1024 | esac |
81ecdfbb | 1025 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1026 | |
1027 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1028 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1029 | | --exec | --exe | --ex) | |
1030 | ac_prev=exec_prefix ;; | |
1031 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1032 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1033 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1034 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1035 | |
1036 | -gas | --gas | --ga | --g) | |
1037 | # Obsolete; use --with-gas. | |
1038 | with_gas=yes ;; | |
1039 | ||
c6b750e1 DJ |
1040 | -help | --help | --hel | --he | -h) |
1041 | ac_init_help=long ;; | |
1042 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1043 | ac_init_help=recursive ;; | |
1044 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1045 | ac_init_help=short ;; | |
a0da8069 NN |
1046 | |
1047 | -host | --host | --hos | --ho) | |
c6b750e1 | 1048 | ac_prev=host_alias ;; |
a0da8069 | 1049 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1050 | host_alias=$ac_optarg ;; |
a0da8069 | 1051 | |
81ecdfbb RW |
1052 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1053 | ac_prev=htmldir ;; | |
1054 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1055 | | --ht=*) | |
1056 | htmldir=$ac_optarg ;; | |
1057 | ||
a0da8069 NN |
1058 | -includedir | --includedir | --includedi | --included | --include \ |
1059 | | --includ | --inclu | --incl | --inc) | |
1060 | ac_prev=includedir ;; | |
1061 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1062 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1063 | includedir=$ac_optarg ;; |
a0da8069 NN |
1064 | |
1065 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1066 | ac_prev=infodir ;; | |
1067 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1068 | infodir=$ac_optarg ;; |
a0da8069 NN |
1069 | |
1070 | -libdir | --libdir | --libdi | --libd) | |
1071 | ac_prev=libdir ;; | |
1072 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1073 | libdir=$ac_optarg ;; |
a0da8069 NN |
1074 | |
1075 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1076 | | --libexe | --libex | --libe) | |
1077 | ac_prev=libexecdir ;; | |
1078 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1079 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1080 | libexecdir=$ac_optarg ;; |
a0da8069 | 1081 | |
81ecdfbb RW |
1082 | -localedir | --localedir | --localedi | --localed | --locale) |
1083 | ac_prev=localedir ;; | |
1084 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1085 | localedir=$ac_optarg ;; | |
1086 | ||
a0da8069 | 1087 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1088 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1089 | ac_prev=localstatedir ;; |
1090 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1091 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1092 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1093 | |
1094 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1095 | ac_prev=mandir ;; | |
1096 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1097 | mandir=$ac_optarg ;; |
a0da8069 NN |
1098 | |
1099 | -nfp | --nfp | --nf) | |
1100 | # Obsolete; use --without-fp. | |
1101 | with_fp=no ;; | |
1102 | ||
1103 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1104 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1105 | no_create=yes ;; |
1106 | ||
1107 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1108 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1109 | no_recursion=yes ;; | |
1110 | ||
1111 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1112 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1113 | | --oldin | --oldi | --old | --ol | --o) | |
1114 | ac_prev=oldincludedir ;; | |
1115 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1116 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1117 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1118 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1119 | |
1120 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1121 | ac_prev=prefix ;; | |
1122 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1123 | prefix=$ac_optarg ;; |
a0da8069 NN |
1124 | |
1125 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1126 | | --program-pre | --program-pr | --program-p) | |
1127 | ac_prev=program_prefix ;; | |
1128 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1129 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1130 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1131 | |
1132 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1133 | | --program-suf | --program-su | --program-s) | |
1134 | ac_prev=program_suffix ;; | |
1135 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1136 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1137 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1138 | |
1139 | -program-transform-name | --program-transform-name \ | |
1140 | | --program-transform-nam | --program-transform-na \ | |
1141 | | --program-transform-n | --program-transform- \ | |
1142 | | --program-transform | --program-transfor \ | |
1143 | | --program-transfo | --program-transf \ | |
1144 | | --program-trans | --program-tran \ | |
1145 | | --progr-tra | --program-tr | --program-t) | |
1146 | ac_prev=program_transform_name ;; | |
1147 | -program-transform-name=* | --program-transform-name=* \ | |
1148 | | --program-transform-nam=* | --program-transform-na=* \ | |
1149 | | --program-transform-n=* | --program-transform-=* \ | |
1150 | | --program-transform=* | --program-transfor=* \ | |
1151 | | --program-transfo=* | --program-transf=* \ | |
1152 | | --program-trans=* | --program-tran=* \ | |
1153 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1154 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1155 | |
81ecdfbb RW |
1156 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1157 | ac_prev=pdfdir ;; | |
1158 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1159 | pdfdir=$ac_optarg ;; | |
1160 | ||
1161 | -psdir | --psdir | --psdi | --psd | --ps) | |
1162 | ac_prev=psdir ;; | |
1163 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1164 | psdir=$ac_optarg ;; | |
1165 | ||
a0da8069 NN |
1166 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1167 | | -silent | --silent | --silen | --sile | --sil) | |
1168 | silent=yes ;; | |
1169 | ||
1170 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1171 | ac_prev=sbindir ;; | |
1172 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1173 | | --sbi=* | --sb=*) | |
c6b750e1 | 1174 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1175 | |
1176 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1177 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1178 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1179 | | --sha | --sh) | |
1180 | ac_prev=sharedstatedir ;; | |
1181 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1182 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1183 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1184 | | --sha=* | --sh=*) | |
c6b750e1 | 1185 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1186 | |
1187 | -site | --site | --sit) | |
1188 | ac_prev=site ;; | |
1189 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1190 | site=$ac_optarg ;; |
a0da8069 NN |
1191 | |
1192 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1193 | ac_prev=srcdir ;; | |
1194 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1195 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1196 | |
1197 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1198 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1199 | ac_prev=sysconfdir ;; | |
1200 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1201 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1202 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1203 | |
1204 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1205 | ac_prev=target_alias ;; |
a0da8069 | 1206 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1207 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1208 | |
1209 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1210 | verbose=yes ;; | |
1211 | ||
c6b750e1 DJ |
1212 | -version | --version | --versio | --versi | --vers | -V) |
1213 | ac_init_version=: ;; | |
a0da8069 NN |
1214 | |
1215 | -with-* | --with-*) | |
81ecdfbb | 1216 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1217 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1218 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1219 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1220 | ac_useropt_orig=$ac_useropt |
1221 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1222 | case $ac_user_opts in | |
1223 | *" | |
1224 | "with_$ac_useropt" | |
1225 | "*) ;; | |
1226 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1227 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1228 | esac |
81ecdfbb | 1229 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1230 | |
1231 | -without-* | --without-*) | |
81ecdfbb | 1232 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1233 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1234 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1235 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1236 | ac_useropt_orig=$ac_useropt |
1237 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1238 | case $ac_user_opts in | |
1239 | *" | |
1240 | "with_$ac_useropt" | |
1241 | "*) ;; | |
1242 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1243 | ac_unrecognized_sep=', ';; | |
1244 | esac | |
1245 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1246 | |
1247 | --x) | |
1248 | # Obsolete; use --with-x. | |
1249 | with_x=yes ;; | |
1250 | ||
1251 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1252 | | --x-incl | --x-inc | --x-in | --x-i) | |
1253 | ac_prev=x_includes ;; | |
1254 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1255 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1256 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1257 | |
1258 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1259 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1260 | ac_prev=x_libraries ;; | |
1261 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1262 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1263 | x_libraries=$ac_optarg ;; |
a0da8069 | 1264 | |
d0ac1c44 SM |
1265 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1266 | Try \`$0 --help' for more information" | |
a0da8069 NN |
1267 | ;; |
1268 | ||
c6b750e1 DJ |
1269 | *=*) |
1270 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1271 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1272 | case $ac_envvar in #( |
1273 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1274 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1275 | esac |
1276 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1277 | export $ac_envvar ;; |
1278 | ||
a0da8069 | 1279 | *) |
c6b750e1 | 1280 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1281 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1282 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1283 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1284 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
a0da8069 NN |
1285 | ;; |
1286 | ||
1287 | esac | |
1288 | done | |
1289 | ||
1290 | if test -n "$ac_prev"; then | |
c6b750e1 | 1291 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1292 | as_fn_error $? "missing argument to $ac_option" |
a0da8069 | 1293 | fi |
a0da8069 | 1294 | |
81ecdfbb RW |
1295 | if test -n "$ac_unrecognized_opts"; then |
1296 | case $enable_option_checking in | |
1297 | no) ;; | |
d0ac1c44 | 1298 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1299 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
c6b750e1 | 1300 | esac |
81ecdfbb | 1301 | fi |
a0da8069 | 1302 | |
81ecdfbb RW |
1303 | # Check all directory arguments for consistency. |
1304 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1305 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1306 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1307 | libdir localedir mandir | |
a0da8069 | 1308 | do |
81ecdfbb RW |
1309 | eval ac_val=\$$ac_var |
1310 | # Remove trailing slashes. | |
1311 | case $ac_val in | |
1312 | */ ) | |
1313 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1314 | eval $ac_var=\$ac_val;; | |
1315 | esac | |
1316 | # Be sure to have absolute directory names. | |
c6b750e1 | 1317 | case $ac_val in |
81ecdfbb RW |
1318 | [\\/$]* | ?:[\\/]* ) continue;; |
1319 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1320 | esac |
d0ac1c44 | 1321 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1322 | done |
1323 | ||
c6b750e1 DJ |
1324 | # There might be people who depend on the old broken behavior: `$host' |
1325 | # used to hold the argument of --host etc. | |
1326 | # FIXME: To remove some day. | |
1327 | build=$build_alias | |
1328 | host=$host_alias | |
1329 | target=$target_alias | |
376a0e54 | 1330 | |
c6b750e1 DJ |
1331 | # FIXME: To remove some day. |
1332 | if test "x$host_alias" != x; then | |
1333 | if test "x$build_alias" = x; then | |
1334 | cross_compiling=maybe | |
c6b750e1 DJ |
1335 | elif test "x$build_alias" != "x$host_alias"; then |
1336 | cross_compiling=yes | |
1337 | fi | |
1338 | fi | |
1339 | ||
1340 | ac_tool_prefix= | |
1341 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1342 | ||
1343 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1344 | |
a0da8069 | 1345 | |
81ecdfbb RW |
1346 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1347 | ac_ls_di=`ls -di .` && | |
1348 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1349 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1350 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1351 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1352 | |
1353 | ||
a0da8069 NN |
1354 | # Find the source files, if location was not specified. |
1355 | if test -z "$srcdir"; then | |
1356 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1357 | # Try the directory containing this script, then the parent directory. |
1358 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1359 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1360 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1361 | X"$as_myself" : 'X\(//\)$' \| \ | |
1362 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1363 | $as_echo X"$as_myself" | | |
1364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1365 | s//\1/ | |
1366 | q | |
1367 | } | |
1368 | /^X\(\/\/\)[^/].*/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\/\)$/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\).*/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | s/.*/./; q'` | |
a0da8069 | 1381 | srcdir=$ac_confdir |
81ecdfbb | 1382 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1383 | srcdir=.. |
1384 | fi | |
1385 | else | |
1386 | ac_srcdir_defaulted=no | |
1387 | fi | |
81ecdfbb RW |
1388 | if test ! -r "$srcdir/$ac_unique_file"; then |
1389 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1390 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1391 | fi |
1392 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1393 | ac_abs_confdir=`( | |
d0ac1c44 | 1394 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1395 | pwd)` |
1396 | # When building in place, set srcdir=. | |
1397 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1398 | srcdir=. | |
1399 | fi | |
1400 | # Remove unnecessary trailing slashes from srcdir. | |
1401 | # Double slashes in file names in object file debugging info | |
1402 | # mess up M-x gdb in Emacs. | |
1403 | case $srcdir in | |
1404 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1405 | esac | |
6d0cd39e AM |
1406 | case $srcdir in |
1407 | *" "*) | |
d0ac1c44 | 1408 | as_fn_error $? "path to source, $srcdir, contains spaces" |
6d0cd39e AM |
1409 | ;; |
1410 | esac | |
9cc8ae67 PB |
1411 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1412 | ||
81ecdfbb RW |
1413 | for ac_var in $ac_precious_vars; do |
1414 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1415 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1416 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1417 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1418 | done | |
c6b750e1 DJ |
1419 | |
1420 | # | |
1421 | # Report the --help message. | |
1422 | # | |
1423 | if test "$ac_init_help" = "long"; then | |
1424 | # Omit some internal or obsolete options to make the list less imposing. | |
1425 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1426 | cat <<_ACEOF | |
1427 | \`configure' configures this package to adapt to many kinds of systems. | |
1428 | ||
1429 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1430 | ||
1431 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1432 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1433 | ||
1434 | Defaults for the options are specified in brackets. | |
1435 | ||
1436 | Configuration: | |
1437 | -h, --help display this help and exit | |
1438 | --help=short display options specific to this package | |
1439 | --help=recursive display the short help of all the included packages | |
1440 | -V, --version display version information and exit | |
d0ac1c44 | 1441 | -q, --quiet, --silent do not print \`checking ...' messages |
c6b750e1 DJ |
1442 | --cache-file=FILE cache test results in FILE [disabled] |
1443 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1444 | -n, --no-create do not create output files | |
1445 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1446 | ||
c6b750e1 DJ |
1447 | Installation directories: |
1448 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1449 | [$ac_default_prefix] |
c6b750e1 | 1450 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1451 | [PREFIX] |
c6b750e1 DJ |
1452 | |
1453 | By default, \`make install' will install all the files in | |
1454 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1455 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1456 | for instance \`--prefix=\$HOME'. | |
1457 | ||
1458 | For better control, use the options below. | |
1459 | ||
1460 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1461 | --bindir=DIR user executables [EPREFIX/bin] |
1462 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1463 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1464 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1465 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1466 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1467 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1468 | --includedir=DIR C header files [PREFIX/include] | |
1469 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1470 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1471 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1472 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1473 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1474 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1475 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1476 | --htmldir=DIR html documentation [DOCDIR] | |
1477 | --dvidir=DIR dvi documentation [DOCDIR] | |
1478 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1479 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1480 | _ACEOF |
1481 | ||
1482 | cat <<\_ACEOF | |
1483 | ||
1484 | Program names: | |
1485 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1486 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1487 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1488 | ||
1489 | System types: | |
1490 | --build=BUILD configure for building on BUILD [guessed] | |
1491 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1492 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1493 | _ACEOF | |
a0da8069 | 1494 | fi |
a0da8069 | 1495 | |
c6b750e1 DJ |
1496 | if test -n "$ac_init_help"; then |
1497 | ||
1498 | cat <<\_ACEOF | |
1499 | ||
1500 | Optional Features: | |
81ecdfbb | 1501 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1502 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1503 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1504 | --enable-as-accelerator-for=ARG |
1505 | build as offload target compiler. Specify offload | |
1506 | host triple by ARG | |
1507 | --enable-offload-targets=LIST | |
1508 | enable offloading to devices from comma-separated | |
1509 | LIST of TARGET[=DIR]. Use optional path to find | |
1510 | offload target compiler during the build | |
c7791212 | 1511 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1512 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
6c3bc0f8 | 1513 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1514 | Enable compressed debug sections for gas, gold or ld |
1515 | by default | |
89a1e9c3 PB |
1516 | --disable-libquadmath do not build libquadmath directory |
1517 | --disable-libquadmath-support | |
1518 | disable libquadmath support for Fortran | |
521ec477 DD |
1519 | --enable-libada build libada directory |
1520 | --enable-libssp build libssp directory | |
f66a9a70 | 1521 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1522 | --enable-liboffloadmic=ARG |
1523 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1524 | --enable-bootstrap enable bootstrapping [yes if native build] |
7ec59b9e | 1525 | --disable-isl-version-check |
4849dfd8 | 1526 | disable check for isl version |
700d40ca | 1527 | --enable-lto enable link time optimization support |
1b6c0831 L |
1528 | --enable-linker-plugin-configure-flags=FLAGS |
1529 | additional flags for configuring linker plugins | |
1530 | [none] | |
1531 | --enable-linker-plugin-flags=FLAGS | |
1532 | additional flags for configuring and building linker | |
1533 | plugins [none] | |
bf41f30d | 1534 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1535 | --enable-stage1-languages[=all] |
1536 | choose additional languages to build during stage1. | |
1537 | Mostly useful for compiler development | |
1538 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1539 | Objective-C runtime | |
ce6c656d | 1540 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1541 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1542 | force sequential configuration of sub-packages for |
1543 | the host, target or build machine, or all | |
1544 | sub-packages | |
1545 | --enable-maintainer-mode | |
1546 | enable make rules and dependencies not useful (and | |
1547 | sometimes confusing) to the casual installer | |
1548 | --enable-stage1-checking[=all] | |
1549 | choose additional checking for stage1 of the | |
1550 | compiler | |
c6b750e1 DJ |
1551 | --enable-werror enable -Werror in bootstrap stage2 and later |
1552 | ||
1553 | Optional Packages: | |
1554 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1555 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1556 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1557 | --with-system-zlib use installed libz |
301a9420 AM |
1558 | --with-debuginfod Enable debuginfo lookups with debuginfod |
1559 | (auto/yes/no) | |
7837304f AS |
1560 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1561 | Equivalent to --with-mpc-include=PATH/include plus | |
1562 | --with-mpc-lib=PATH/lib | |
1563 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1564 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1565 | --with-mpfr-dir=PATH this option has been REMOVED |
1566 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1567 | Equivalent to --with-mpfr-include=PATH/include plus |
1568 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1569 | --with-mpfr-include=PATH |
521ec477 DD |
1570 | specify directory for installed MPFR include files |
1571 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1572 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1573 | --with-gmp=PATH specify prefix directory for the installed GMP |
1574 | package. Equivalent to | |
1575 | --with-gmp-include=PATH/include plus | |
1576 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1577 | --with-gmp-include=PATH specify directory for installed GMP include files |
1578 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1579 | --with-stage1-libs=LIBS libraries for stage1 |
c1a5d03a TT |
1580 | --with-static-standard-libraries |
1581 | use -static-libstdc++ and -static-libgcc | |
1582 | (default=auto) | |
7837304f AS |
1583 | --with-stage1-ldflags=FLAGS |
1584 | linker flags for stage1 | |
7837304f AS |
1585 | --with-boot-libs=LIBS libraries for stage2 and later |
1586 | --with-boot-ldflags=FLAGS | |
1587 | linker flags for stage2 and later | |
4849dfd8 | 1588 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1589 | package. Equivalent to |
7ec59b9e L |
1590 | --with-isl-include=PATH/include plus |
1591 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1592 | --with-isl-include=PATH Specify directory for installed isl include files |
1593 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1594 | --with-target-bdw-gc=PATHLIST |
1595 | specify prefix directory for installed bdw-gc | |
1596 | package. Equivalent to | |
1597 | --with-target-bdw-gc-include=PATH/include plus | |
1598 | --with-target-bdw-gc-lib=PATH/lib | |
1599 | --with-target-bdw-gc-include=PATHLIST | |
1600 | specify directories for installed bdw-gc include | |
1601 | files | |
1602 | --with-target-bdw-gc-lib=PATHLIST | |
1603 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1604 | --with-gcc-major-version-only |
1605 | use only GCC major number in filesystem paths | |
521ec477 | 1606 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1607 | use sysroot as the system root during the build |
8a6ee3ab | 1608 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1609 | map A to B, C to D ... in debug information |
1610 | --with-build-config='NAME NAME2...' | |
1611 | use config/NAME.mk build configuration | |
521ec477 | 1612 | --with-build-time-tools=PATH |
c6b750e1 | 1613 | use given path to find target tools during the build |
c6b750e1 DJ |
1614 | |
1615 | Some influential environment variables: | |
1616 | CC C compiler command | |
1617 | CFLAGS C compiler flags | |
1618 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1619 | nonstandard directory <lib dir> | |
81ecdfbb | 1620 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1621 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1622 | you have headers in a nonstandard directory <include dir> |
18f6b6ee PB |
1623 | CXX C++ compiler command |
1624 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1625 | build_configargs |
1626 | additional configure arguments for build directories | |
1627 | host_configargs | |
1628 | additional configure arguments for host directories | |
1629 | target_configargs | |
1630 | additional configure arguments for target directories | |
9a819804 AO |
1631 | AR AR for the host |
1632 | AS AS for the host | |
1633 | DLLTOOL DLLTOOL for the host | |
1634 | LD LD for the host | |
1635 | LIPO LIPO for the host | |
1636 | NM NM for the host | |
1637 | RANLIB RANLIB for the host | |
1638 | STRIP STRIP for the host | |
1639 | WINDRES WINDRES for the host | |
0c24b341 | 1640 | WINDMC WINDMC for the host |
9a819804 AO |
1641 | OBJCOPY OBJCOPY for the host |
1642 | OBJDUMP OBJDUMP 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 | |
9a819804 AO |
1654 | AR_FOR_TARGET |
1655 | AR for the target | |
1656 | AS_FOR_TARGET | |
1657 | AS for the target | |
1658 | DLLTOOL_FOR_TARGET | |
1659 | DLLTOOL for the target | |
1660 | LD_FOR_TARGET | |
1661 | LD for the target | |
1662 | LIPO_FOR_TARGET | |
1663 | LIPO for the target | |
1664 | NM_FOR_TARGET | |
1665 | NM for the target | |
6b91c541 AP |
1666 | OBJCOPY_FOR_TARGET |
1667 | OBJCOPY for the target | |
9a819804 AO |
1668 | OBJDUMP_FOR_TARGET |
1669 | OBJDUMP for the target | |
1670 | RANLIB_FOR_TARGET | |
1671 | RANLIB for the target | |
b121d7d4 DD |
1672 | READELF_FOR_TARGET |
1673 | READELF for the target | |
9a819804 AO |
1674 | STRIP_FOR_TARGET |
1675 | STRIP for the target | |
1676 | WINDRES_FOR_TARGET | |
1677 | WINDRES for the target | |
0c24b341 NC |
1678 | WINDMC_FOR_TARGET |
1679 | WINDMC for the target | |
c6b750e1 DJ |
1680 | |
1681 | Use these variables to override the choices made by `configure' or to help | |
1682 | it to find libraries and programs with nonstandard names/locations. | |
1683 | ||
81ecdfbb | 1684 | Report bugs to the package provider. |
c6b750e1 | 1685 | _ACEOF |
81ecdfbb | 1686 | ac_status=$? |
c6b750e1 DJ |
1687 | fi |
1688 | ||
1689 | if test "$ac_init_help" = "recursive"; then | |
1690 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1691 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1692 | test -d "$ac_dir" || |
1693 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1694 | continue | |
c6b750e1 DJ |
1695 | ac_builddir=. |
1696 | ||
81ecdfbb RW |
1697 | case "$ac_dir" in |
1698 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1699 | *) | |
1700 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1701 | # A ".." for each directory in $ac_dir_suffix. | |
1702 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1703 | case $ac_top_builddir_sub in | |
1704 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1705 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1706 | esac ;; | |
1707 | esac | |
1708 | ac_abs_top_builddir=$ac_pwd | |
1709 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1710 | # for backward compatibility: | |
1711 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1712 | |
1713 | case $srcdir in | |
81ecdfbb | 1714 | .) # We are building in place. |
c6b750e1 | 1715 | ac_srcdir=. |
81ecdfbb RW |
1716 | ac_top_srcdir=$ac_top_builddir_sub |
1717 | ac_abs_top_srcdir=$ac_pwd ;; | |
1718 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1719 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1720 | ac_top_srcdir=$srcdir |
1721 | ac_abs_top_srcdir=$srcdir ;; | |
1722 | *) # Relative name. | |
1723 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1724 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1725 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1726 | esac |
81ecdfbb RW |
1727 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1728 | ||
1729 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1730 | # Check for guested configure. | |
1731 | if test -f "$ac_srcdir/configure.gnu"; then | |
1732 | echo && | |
1733 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1734 | elif test -f "$ac_srcdir/configure"; then | |
1735 | echo && | |
1736 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1737 | else |
81ecdfbb RW |
1738 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1739 | fi || ac_status=$? | |
1740 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1741 | done |
1742 | fi | |
1743 | ||
81ecdfbb | 1744 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1745 | if $ac_init_version; then |
1746 | cat <<\_ACEOF | |
81ecdfbb | 1747 | configure |
d0ac1c44 | 1748 | generated by GNU Autoconf 2.69 |
c6b750e1 | 1749 | |
d0ac1c44 | 1750 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
1751 | This configure script is free software; the Free Software Foundation |
1752 | gives unlimited permission to copy, distribute and modify it. | |
1753 | _ACEOF | |
81ecdfbb | 1754 | exit |
c6b750e1 | 1755 | fi |
81ecdfbb RW |
1756 | |
1757 | ## ------------------------ ## | |
1758 | ## Autoconf initialization. ## | |
1759 | ## ------------------------ ## | |
1760 | ||
1761 | # ac_fn_c_try_compile LINENO | |
1762 | # -------------------------- | |
1763 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1764 | ac_fn_c_try_compile () | |
1765 | { | |
1766 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1767 | rm -f conftest.$ac_objext | |
1768 | if { { ac_try="$ac_compile" | |
1769 | case "(($ac_try" in | |
1770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1771 | *) ac_try_echo=$ac_try;; | |
1772 | esac | |
1773 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1774 | $as_echo "$ac_try_echo"; } >&5 | |
1775 | (eval "$ac_compile") 2>conftest.err | |
1776 | ac_status=$? | |
1777 | if test -s conftest.err; then | |
1778 | grep -v '^ *+' conftest.err >conftest.er1 | |
1779 | cat conftest.er1 >&5 | |
1780 | mv -f conftest.er1 conftest.err | |
1781 | fi | |
1782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1783 | test $ac_status = 0; } && { | |
1784 | test -z "$ac_c_werror_flag" || | |
1785 | test ! -s conftest.err | |
1786 | } && test -s conftest.$ac_objext; then : | |
1787 | ac_retval=0 | |
1788 | else | |
1789 | $as_echo "$as_me: failed program was:" >&5 | |
1790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1791 | ||
1792 | ac_retval=1 | |
1793 | fi | |
d0ac1c44 SM |
1794 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1795 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1796 | |
1797 | } # ac_fn_c_try_compile | |
1798 | ||
1799 | # ac_fn_cxx_try_compile LINENO | |
1800 | # ---------------------------- | |
1801 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1802 | ac_fn_cxx_try_compile () | |
1803 | { | |
1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1805 | rm -f conftest.$ac_objext | |
1806 | if { { ac_try="$ac_compile" | |
1807 | case "(($ac_try" in | |
1808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1809 | *) ac_try_echo=$ac_try;; | |
1810 | esac | |
1811 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1812 | $as_echo "$ac_try_echo"; } >&5 | |
1813 | (eval "$ac_compile") 2>conftest.err | |
1814 | ac_status=$? | |
1815 | if test -s conftest.err; then | |
1816 | grep -v '^ *+' conftest.err >conftest.er1 | |
1817 | cat conftest.er1 >&5 | |
1818 | mv -f conftest.er1 conftest.err | |
1819 | fi | |
1820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1821 | test $ac_status = 0; } && { | |
1822 | test -z "$ac_cxx_werror_flag" || | |
1823 | test ! -s conftest.err | |
1824 | } && test -s conftest.$ac_objext; then : | |
1825 | ac_retval=0 | |
1826 | else | |
1827 | $as_echo "$as_me: failed program was:" >&5 | |
1828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1829 | ||
1830 | ac_retval=1 | |
1831 | fi | |
d0ac1c44 SM |
1832 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1833 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1834 | |
1835 | } # ac_fn_cxx_try_compile | |
1836 | ||
b3676d82 EB |
1837 | # ac_fn_cxx_try_link LINENO |
1838 | # ------------------------- | |
1839 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1840 | ac_fn_cxx_try_link () | |
1841 | { | |
1842 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1844 | if { { ac_try="$ac_link" | |
1845 | case "(($ac_try" in | |
1846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1847 | *) ac_try_echo=$ac_try;; | |
1848 | esac | |
1849 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1850 | $as_echo "$ac_try_echo"; } >&5 | |
1851 | (eval "$ac_link") 2>conftest.err | |
1852 | ac_status=$? | |
1853 | if test -s conftest.err; then | |
1854 | grep -v '^ *+' conftest.err >conftest.er1 | |
1855 | cat conftest.er1 >&5 | |
1856 | mv -f conftest.er1 conftest.err | |
1857 | fi | |
1858 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1859 | test $ac_status = 0; } && { | |
1860 | test -z "$ac_cxx_werror_flag" || | |
1861 | test ! -s conftest.err | |
1862 | } && test -s conftest$ac_exeext && { | |
1863 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1864 | test -x conftest$ac_exeext |
b3676d82 EB |
1865 | }; then : |
1866 | ac_retval=0 | |
1867 | else | |
1868 | $as_echo "$as_me: failed program was:" >&5 | |
1869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1870 | ||
1871 | ac_retval=1 | |
1872 | fi | |
1873 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1874 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1875 | # interfere with the next link command; also delete a directory that is | |
1876 | # left behind by Apple's compiler. We do this before executing the actions. | |
1877 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1878 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1879 | as_fn_set_status $ac_retval | |
b3676d82 EB |
1880 | |
1881 | } # ac_fn_cxx_try_link | |
1882 | ||
81ecdfbb RW |
1883 | # ac_fn_c_try_link LINENO |
1884 | # ----------------------- | |
1885 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1886 | ac_fn_c_try_link () | |
1887 | { | |
1888 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1890 | if { { ac_try="$ac_link" | |
1891 | case "(($ac_try" in | |
1892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1893 | *) ac_try_echo=$ac_try;; | |
1894 | esac | |
1895 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1896 | $as_echo "$ac_try_echo"; } >&5 | |
1897 | (eval "$ac_link") 2>conftest.err | |
1898 | ac_status=$? | |
1899 | if test -s conftest.err; then | |
1900 | grep -v '^ *+' conftest.err >conftest.er1 | |
1901 | cat conftest.er1 >&5 | |
1902 | mv -f conftest.er1 conftest.err | |
1903 | fi | |
1904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1905 | test $ac_status = 0; } && { | |
1906 | test -z "$ac_c_werror_flag" || | |
1907 | test ! -s conftest.err | |
1908 | } && test -s conftest$ac_exeext && { | |
1909 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1910 | test -x conftest$ac_exeext |
81ecdfbb RW |
1911 | }; then : |
1912 | ac_retval=0 | |
1913 | else | |
1914 | $as_echo "$as_me: failed program was:" >&5 | |
1915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1916 | ||
1917 | ac_retval=1 | |
1918 | fi | |
1919 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1920 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1921 | # interfere with the next link command; also delete a directory that is | |
1922 | # left behind by Apple's compiler. We do this before executing the actions. | |
1923 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1925 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1926 | |
1927 | } # ac_fn_c_try_link | |
301a9420 AM |
1928 | |
1929 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
1930 | # --------------------------------------------- | |
1931 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1932 | # accordingly. | |
1933 | ac_fn_c_check_decl () | |
1934 | { | |
1935 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1936 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1937 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1939 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1940 | if eval \${$3+:} false; then : | |
1941 | $as_echo_n "(cached) " >&6 | |
1942 | else | |
1943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1944 | /* end confdefs.h. */ | |
1945 | $4 | |
1946 | int | |
1947 | main () | |
1948 | { | |
1949 | #ifndef $as_decl_name | |
1950 | #ifdef __cplusplus | |
1951 | (void) $as_decl_use; | |
1952 | #else | |
1953 | (void) $as_decl_name; | |
1954 | #endif | |
1955 | #endif | |
1956 | ||
1957 | ; | |
1958 | return 0; | |
1959 | } | |
1960 | _ACEOF | |
1961 | if ac_fn_c_try_compile "$LINENO"; then : | |
1962 | eval "$3=yes" | |
1963 | else | |
1964 | eval "$3=no" | |
1965 | fi | |
1966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1967 | fi | |
1968 | eval ac_res=\$$3 | |
1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1970 | $as_echo "$ac_res" >&6; } | |
1971 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1972 | ||
1973 | } # ac_fn_c_check_decl | |
81ecdfbb | 1974 | cat >config.log <<_ACEOF |
c6b750e1 DJ |
1975 | This file contains any messages produced by compilers while |
1976 | running configure, to aid debugging if configure makes a mistake. | |
1977 | ||
1978 | It was created by $as_me, which was | |
d0ac1c44 | 1979 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
1980 | |
1981 | $ $0 $@ | |
1982 | ||
1983 | _ACEOF | |
81ecdfbb | 1984 | exec 5>>config.log |
c6b750e1 DJ |
1985 | { |
1986 | cat <<_ASUNAME | |
1987 | ## --------- ## | |
1988 | ## Platform. ## | |
1989 | ## --------- ## | |
1990 | ||
1991 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1992 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1993 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1994 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1995 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1996 | ||
1997 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1998 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1999 | ||
2000 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2001 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2002 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2003 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
2004 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2005 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2006 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2007 | ||
2008 | _ASUNAME | |
2009 | ||
2010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2011 | for as_dir in $PATH | |
2012 | do | |
2013 | IFS=$as_save_IFS | |
2014 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2015 | $as_echo "PATH: $as_dir" |
2016 | done | |
2017 | IFS=$as_save_IFS | |
c6b750e1 DJ |
2018 | |
2019 | } >&5 | |
2020 | ||
2021 | cat >&5 <<_ACEOF | |
2022 | ||
2023 | ||
2024 | ## ----------- ## | |
2025 | ## Core tests. ## | |
2026 | ## ----------- ## | |
2027 | ||
2028 | _ACEOF | |
2029 | ||
2030 | ||
2031 | # Keep a trace of the command line. | |
2032 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2033 | # Strip out --silent because we don't want to record it for future runs. | |
2034 | # Also quote any args containing shell meta-characters. | |
2035 | # Make two passes to allow for proper duplicate-argument suppression. | |
2036 | ac_configure_args= | |
2037 | ac_configure_args0= | |
2038 | ac_configure_args1= | |
c6b750e1 DJ |
2039 | ac_must_keep_next=false |
2040 | for ac_pass in 1 2 | |
2041 | do | |
2042 | for ac_arg | |
2043 | do | |
2044 | case $ac_arg in | |
2045 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2046 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2047 | | -silent | --silent | --silen | --sile | --sil) | |
2048 | continue ;; | |
81ecdfbb RW |
2049 | *\'*) |
2050 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
2051 | esac |
2052 | case $ac_pass in | |
81ecdfbb | 2053 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 2054 | 2) |
81ecdfbb | 2055 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
2056 | if test $ac_must_keep_next = true; then |
2057 | ac_must_keep_next=false # Got value, back to normal. | |
2058 | else | |
2059 | case $ac_arg in | |
2060 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2061 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2062 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2063 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2064 | case "$ac_configure_args0 " in | |
2065 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2066 | esac | |
2067 | ;; | |
2068 | -* ) ac_must_keep_next=true ;; | |
2069 | esac | |
2070 | fi | |
81ecdfbb | 2071 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2072 | ;; |
2073 | esac | |
2074 | done | |
2075 | done | |
81ecdfbb RW |
2076 | { ac_configure_args0=; unset ac_configure_args0;} |
2077 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2078 | |
2079 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2080 | # config.log. We remove comments because anyway the quotes in there | |
2081 | # would cause problems or look ugly. | |
81ecdfbb RW |
2082 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2083 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2084 | trap 'exit_status=$? |
2085 | # Save into config.log some information that might help in debugging. | |
2086 | { | |
2087 | echo | |
2088 | ||
d0ac1c44 | 2089 | $as_echo "## ---------------- ## |
c6b750e1 | 2090 | ## Cache variables. ## |
d0ac1c44 | 2091 | ## ---------------- ##" |
c6b750e1 DJ |
2092 | echo |
2093 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2094 | ( |
2095 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2096 | eval ac_val=\$$ac_var | |
2097 | case $ac_val in #( | |
2098 | *${as_nl}*) | |
2099 | case $ac_var in #( | |
2100 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2101 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2102 | esac | |
2103 | case $ac_var in #( | |
2104 | _ | IFS | as_nl) ;; #( | |
2105 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2106 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2107 | esac ;; | |
2108 | esac | |
2109 | done | |
c6b750e1 | 2110 | (set) 2>&1 | |
81ecdfbb RW |
2111 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2112 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2113 | sed -n \ |
81ecdfbb RW |
2114 | "s/'\''/'\''\\\\'\'''\''/g; |
2115 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2116 | ;; #( | |
c6b750e1 | 2117 | *) |
81ecdfbb | 2118 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2119 | ;; |
81ecdfbb RW |
2120 | esac | |
2121 | sort | |
2122 | ) | |
c6b750e1 DJ |
2123 | echo |
2124 | ||
d0ac1c44 | 2125 | $as_echo "## ----------------- ## |
c6b750e1 | 2126 | ## Output variables. ## |
d0ac1c44 | 2127 | ## ----------------- ##" |
c6b750e1 DJ |
2128 | echo |
2129 | for ac_var in $ac_subst_vars | |
2130 | do | |
81ecdfbb RW |
2131 | eval ac_val=\$$ac_var |
2132 | case $ac_val in | |
2133 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2134 | esac | |
2135 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2136 | done | sort |
2137 | echo | |
2138 | ||
2139 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2140 | $as_echo "## ------------------- ## |
81ecdfbb | 2141 | ## File substitutions. ## |
d0ac1c44 | 2142 | ## ------------------- ##" |
c6b750e1 DJ |
2143 | echo |
2144 | for ac_var in $ac_subst_files | |
2145 | do | |
81ecdfbb RW |
2146 | eval ac_val=\$$ac_var |
2147 | case $ac_val in | |
2148 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2149 | esac | |
2150 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2151 | done | sort |
2152 | echo | |
2153 | fi | |
2154 | ||
2155 | if test -s confdefs.h; then | |
d0ac1c44 | 2156 | $as_echo "## ----------- ## |
c6b750e1 | 2157 | ## confdefs.h. ## |
d0ac1c44 | 2158 | ## ----------- ##" |
c6b750e1 | 2159 | echo |
81ecdfbb | 2160 | cat confdefs.h |
c6b750e1 DJ |
2161 | echo |
2162 | fi | |
2163 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2164 | $as_echo "$as_me: caught signal $ac_signal" |
2165 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2166 | } >&5 |
81ecdfbb RW |
2167 | rm -f core *.core core.conftest.* && |
2168 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2169 | exit $exit_status |
81ecdfbb | 2170 | ' 0 |
c6b750e1 | 2171 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2172 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2173 | done |
2174 | ac_signal=0 | |
2175 | ||
2176 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2177 | rm -f -r conftest* confdefs.h |
2178 | ||
2179 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2180 | |
2181 | # Predefined preprocessor variables. | |
2182 | ||
2183 | cat >>confdefs.h <<_ACEOF | |
2184 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2185 | _ACEOF | |
2186 | ||
c6b750e1 DJ |
2187 | cat >>confdefs.h <<_ACEOF |
2188 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2189 | _ACEOF | |
2190 | ||
c6b750e1 DJ |
2191 | cat >>confdefs.h <<_ACEOF |
2192 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2193 | _ACEOF | |
2194 | ||
c6b750e1 DJ |
2195 | cat >>confdefs.h <<_ACEOF |
2196 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2197 | _ACEOF | |
2198 | ||
c6b750e1 DJ |
2199 | cat >>confdefs.h <<_ACEOF |
2200 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2201 | _ACEOF | |
2202 | ||
81ecdfbb RW |
2203 | cat >>confdefs.h <<_ACEOF |
2204 | #define PACKAGE_URL "$PACKAGE_URL" | |
2205 | _ACEOF | |
2206 | ||
c6b750e1 DJ |
2207 | |
2208 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2209 | # Prefer an explicitly selected file to automatically selected ones. |
2210 | ac_site_file1=NONE | |
2211 | ac_site_file2=NONE | |
2212 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2213 | # We do not want a PATH search for config.site. |
2214 | case $CONFIG_SITE in #(( | |
2215 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2216 | */*) ac_site_file1=$CONFIG_SITE;; | |
2217 | *) ac_site_file1=./$CONFIG_SITE;; | |
2218 | esac | |
81ecdfbb RW |
2219 | elif test "x$prefix" != xNONE; then |
2220 | ac_site_file1=$prefix/share/config.site | |
2221 | ac_site_file2=$prefix/etc/config.site | |
2222 | else | |
2223 | ac_site_file1=$ac_default_prefix/share/config.site | |
2224 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2225 | fi |
81ecdfbb RW |
2226 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2227 | do | |
2228 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2229 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2231 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2232 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2233 | . "$ac_site_file" \ |
2234 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2235 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2236 | as_fn_error $? "failed to load site script $ac_site_file | |
2237 | See \`config.log' for more details" "$LINENO" 5; } | |
a0da8069 NN |
2238 | fi |
2239 | done | |
2240 | ||
2241 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2242 | # Some versions of bash will fail to source /dev/null (special files |
2243 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2244 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2246 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2247 | case $cache_file in |
81ecdfbb RW |
2248 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2249 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2250 | esac |
2251 | fi | |
a0da8069 | 2252 | else |
81ecdfbb RW |
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2254 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2255 | >$cache_file |
2256 | fi | |
2257 | ||
2258 | # Check that the precious variables saved in the cache have kept the same | |
2259 | # value. | |
2260 | ac_cache_corrupted=false | |
81ecdfbb | 2261 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2262 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2263 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2264 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2265 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2266 | case $ac_old_set,$ac_new_set in |
2267 | set,) | |
81ecdfbb RW |
2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2269 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2270 | ac_cache_corrupted=: ;; |
2271 | ,set) | |
81ecdfbb RW |
2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2273 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2274 | ac_cache_corrupted=: ;; |
2275 | ,);; | |
2276 | *) | |
2277 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2278 | # differences in whitespace do not lead to failure. |
2279 | ac_old_val_w=`echo x $ac_old_val` | |
2280 | ac_new_val_w=`echo x $ac_new_val` | |
2281 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2283 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2284 | ac_cache_corrupted=: | |
2285 | else | |
2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2287 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2288 | eval $ac_var=\$ac_old_val | |
2289 | fi | |
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2291 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2293 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2294 | fi;; |
2295 | esac | |
2296 | # Pass precious variables to config.status. | |
2297 | if test "$ac_new_set" = set; then | |
2298 | case $ac_new_val in | |
81ecdfbb | 2299 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2300 | *) ac_arg=$ac_var=$ac_new_val ;; |
2301 | esac | |
2302 | case " $ac_configure_args " in | |
2303 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2304 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2305 | esac |
2306 | fi | |
2307 | done | |
2308 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2310 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2312 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2313 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
a0da8069 | 2314 | fi |
81ecdfbb RW |
2315 | ## -------------------- ## |
2316 | ## Main body of script. ## | |
2317 | ## -------------------- ## | |
a0da8069 NN |
2318 | |
2319 | ac_ext=c | |
a0da8069 | 2320 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2324 | ||
2325 | ||
2326 | ||
2327 | ||
c6b750e1 DJ |
2328 | |
2329 | ||
34a0f3cf | 2330 | |
c6b750e1 | 2331 | |
5b553f7e RW |
2332 | progname=$0 |
2333 | # if PWD already has a value, it is probably wrong. | |
2334 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2335 | ||
2336 | # Export original configure arguments for use by sub-configures. | |
2337 | # Quote arguments with shell meta charatcers. | |
2338 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2339 | set -- "$progname" "$@" | |
2340 | for ac_arg | |
2341 | do | |
2342 | case "$ac_arg" in | |
2343 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2344 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2345 | # if the argument is of the form -foo=baz, quote the baz part only | |
2346 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2347 | *) ;; | |
2348 | esac | |
2349 | # Add the quoted argument to the list. | |
2350 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2351 | done | |
2352 | if test "$silent" = yes; then | |
2353 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2354 | fi | |
2355 | # Remove the initial space we just introduced and, as these will be | |
2356 | # expanded by make, quote '$'. | |
2357 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2358 | ||
c6b750e1 DJ |
2359 | |
2360 | # Find the build, host, and target systems. | |
a0da8069 | 2361 | ac_aux_dir= |
81ecdfbb | 2362 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2363 | if test -f "$ac_dir/install-sh"; then |
2364 | ac_aux_dir=$ac_dir | |
2365 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2366 | break | |
2367 | elif test -f "$ac_dir/install.sh"; then | |
2368 | ac_aux_dir=$ac_dir | |
2369 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2370 | break | |
2371 | elif test -f "$ac_dir/shtool"; then | |
2372 | ac_aux_dir=$ac_dir | |
2373 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2374 | break | |
2375 | fi | |
a0da8069 NN |
2376 | done |
2377 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2378 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2379 | fi |
81ecdfbb RW |
2380 | |
2381 | # These three variables are undocumented and unsupported, | |
2382 | # and are intended to be withdrawn in a future Autoconf release. | |
2383 | # They can cause serious problems if a builder's source tree is in a directory | |
2384 | # whose full name contains unusual characters. | |
2385 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2386 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2387 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2388 | ||
a0da8069 | 2389 | |
c6b750e1 | 2390 | # Make sure we can run config.sub. |
81ecdfbb | 2391 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2392 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2393 | |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2395 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2396 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2397 | $as_echo_n "(cached) " >&6 |
2398 | else | |
2399 | ac_build_alias=$build_alias | |
2400 | test "x$ac_build_alias" = x && | |
2401 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2402 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2403 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2404 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2405 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2406 | |
2407 | fi | |
2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2409 | $as_echo "$ac_cv_build" >&6; } | |
2410 | case $ac_cv_build in | |
2411 | *-*-*) ;; | |
d0ac1c44 | 2412 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2413 | esac |
c6b750e1 | 2414 | build=$ac_cv_build |
81ecdfbb RW |
2415 | ac_save_IFS=$IFS; IFS='-' |
2416 | set x $ac_cv_build | |
2417 | shift | |
2418 | build_cpu=$1 | |
2419 | build_vendor=$2 | |
2420 | shift; shift | |
2421 | # Remember, the first character of IFS is used to create $*, | |
2422 | # except with old shells: | |
2423 | build_os=$* | |
2424 | IFS=$ac_save_IFS | |
2425 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2426 | |
a0da8069 | 2427 | |
c6b750e1 DJ |
2428 | case ${build_alias} in |
2429 | "") build_noncanonical=${build} ;; | |
2430 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2431 | esac |
2432 | ||
2433 | ||
cac3d6c4 | 2434 | |
c6b750e1 DJ |
2435 | case ${host_alias} in |
2436 | "") host_noncanonical=${build_noncanonical} ;; | |
2437 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2438 | esac |
2439 | ||
cac3d6c4 | 2440 | |
c6b750e1 DJ |
2441 | |
2442 | case ${target_alias} in | |
2443 | "") target_noncanonical=${host_noncanonical} ;; | |
2444 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2445 | esac |
2446 | ||
cac3d6c4 | 2447 | |
c6b750e1 DJ |
2448 | |
2449 | ||
2450 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2451 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2452 | NONENONEs,x,x, && | |
c6b750e1 | 2453 | program_transform_name=s,y,y, |
cac3d6c4 | 2454 | |
81ecdfbb RW |
2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2456 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2457 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2458 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 2459 | else |
81ecdfbb RW |
2460 | if test "x$host_alias" = x; then |
2461 | ac_cv_host=$ac_cv_build | |
2462 | else | |
2463 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2464 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2465 | fi |
c6b750e1 DJ |
2466 | |
2467 | fi | |
81ecdfbb RW |
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2469 | $as_echo "$ac_cv_host" >&6; } | |
2470 | case $ac_cv_host in | |
2471 | *-*-*) ;; | |
d0ac1c44 | 2472 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2473 | esac |
c6b750e1 | 2474 | host=$ac_cv_host |
81ecdfbb RW |
2475 | ac_save_IFS=$IFS; IFS='-' |
2476 | set x $ac_cv_host | |
2477 | shift | |
2478 | host_cpu=$1 | |
2479 | host_vendor=$2 | |
2480 | shift; shift | |
2481 | # Remember, the first character of IFS is used to create $*, | |
2482 | # except with old shells: | |
2483 | host_os=$* | |
2484 | IFS=$ac_save_IFS | |
2485 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2486 | |
2487 | ||
81ecdfbb RW |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2489 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2490 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2491 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 2492 | else |
81ecdfbb RW |
2493 | if test "x$target_alias" = x; then |
2494 | ac_cv_target=$ac_cv_host | |
2495 | else | |
2496 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2497 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2498 | fi |
c6b750e1 | 2499 | |
cac3d6c4 | 2500 | fi |
81ecdfbb RW |
2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2502 | $as_echo "$ac_cv_target" >&6; } | |
2503 | case $ac_cv_target in | |
2504 | *-*-*) ;; | |
d0ac1c44 | 2505 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2506 | esac |
c6b750e1 | 2507 | target=$ac_cv_target |
81ecdfbb RW |
2508 | ac_save_IFS=$IFS; IFS='-' |
2509 | set x $ac_cv_target | |
2510 | shift | |
2511 | target_cpu=$1 | |
2512 | target_vendor=$2 | |
2513 | shift; shift | |
2514 | # Remember, the first character of IFS is used to create $*, | |
2515 | # except with old shells: | |
2516 | target_os=$* | |
2517 | IFS=$ac_save_IFS | |
2518 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2519 | |
2520 | ||
2521 | # The aliases save the names the user supplied, while $host etc. | |
2522 | # will get canonicalized. | |
2523 | test -n "$target_alias" && | |
2524 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2525 | NONENONEs,x,x, && | |
2526 | program_prefix=${target_alias}- | |
81ecdfbb | 2527 | |
a0da8069 | 2528 | test "$program_prefix" != NONE && |
81ecdfbb | 2529 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2530 | # Use a double $ so make ignores it. |
2531 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2532 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2533 | # Double any \ or $. | |
c6b750e1 | 2534 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2535 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2536 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2537 | |
a0da8069 NN |
2538 | |
2539 | ||
e5c3f801 NN |
2540 | # Get 'install' or 'install-sh' and its variants. |
2541 | # Find a good install program. We prefer a C program (faster), | |
2542 | # so one script is as good as another. But avoid the broken or | |
2543 | # incompatible versions: | |
2544 | # SysV /etc/install, /usr/sbin/install | |
2545 | # SunOS /usr/etc/install | |
2546 | # IRIX /sbin/install | |
2547 | # AIX /bin/install | |
c6b750e1 | 2548 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2549 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2550 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2551 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2552 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2553 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2554 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2556 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2557 | if test -z "$INSTALL"; then |
d0ac1c44 | 2558 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2559 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
2560 | else |
2561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2562 | for as_dir in $PATH | |
2563 | do | |
2564 | IFS=$as_save_IFS | |
2565 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2566 | # Account for people who put trailing slashes in PATH elements. |
2567 | case $as_dir/ in #(( | |
2568 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2569 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2570 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2571 | /usr/ucb/* ) ;; |
2572 | *) | |
2573 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2574 | # Don't use installbsd from OSF since it installs stuff as root | |
2575 | # by default. | |
2576 | for ac_prog in ginstall scoinst install; do | |
2577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2578 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
e5c3f801 | 2579 | if test $ac_prog = install && |
c6b750e1 | 2580 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2581 | # AIX install. It has an incompatible calling convention. |
2582 | : | |
c6b750e1 DJ |
2583 | elif test $ac_prog = install && |
2584 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2585 | # program-specific install script used by HP pwplus--don't use. | |
2586 | : | |
e5c3f801 | 2587 | else |
58c85be7 RW |
2588 | rm -rf conftest.one conftest.two conftest.dir |
2589 | echo one > conftest.one | |
2590 | echo two > conftest.two | |
2591 | mkdir conftest.dir | |
2592 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2593 | test -s conftest.one && test -s conftest.two && | |
2594 | test -s conftest.dir/conftest.one && | |
2595 | test -s conftest.dir/conftest.two | |
2596 | then | |
2597 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2598 | break 3 | |
2599 | fi | |
e5c3f801 NN |
2600 | fi |
2601 | fi | |
2602 | done | |
c6b750e1 DJ |
2603 | done |
2604 | ;; | |
2605 | esac | |
81ecdfbb RW |
2606 | |
2607 | done | |
2608 | IFS=$as_save_IFS | |
c6b750e1 | 2609 | |
58c85be7 | 2610 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2611 | |
2612 | fi | |
2613 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2614 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2615 | else |
58c85be7 RW |
2616 | # As a last resort, use the slow shell script. Don't cache a |
2617 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2618 | # break other packages using the cache if that directory is |
58c85be7 | 2619 | # removed, or if the value is a relative name. |
c6b750e1 | 2620 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2621 | fi |
2622 | fi | |
81ecdfbb RW |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2624 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2625 | |
2626 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2627 | # It thinks the first close brace ends the variable substitution. | |
2628 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2629 | ||
c6b750e1 | 2630 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2631 | |
2632 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2633 | ||
81ecdfbb RW |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2635 | $as_echo_n "checking whether ln works... " >&6; } | |
d0ac1c44 | 2636 | if ${acx_cv_prog_LN+:} false; then : |
81ecdfbb | 2637 | $as_echo_n "(cached) " >&6 |
656fdd47 PB |
2638 | else |
2639 | rm -f conftestdata_t | |
2640 | echo >conftestdata_f | |
2641 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2642 | then | |
2643 | acx_cv_prog_LN=ln | |
2644 | else | |
2645 | acx_cv_prog_LN=no | |
2646 | fi | |
2647 | rm -f conftestdata_f conftestdata_t | |
2648 | ||
2649 | fi | |
2650 | if test $acx_cv_prog_LN = no; then | |
2651 | LN="cp" | |
81ecdfbb RW |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2653 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2654 | else |
2655 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2657 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2658 | fi |
2659 | ||
81ecdfbb RW |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2661 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2662 | LN_S=$as_ln_s |
2663 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2665 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2666 | else |
81ecdfbb RW |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2668 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2669 | fi |
2670 | ||
8e957354 PB |
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2672 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 2673 | if ${ac_cv_path_SED+:} false; then : |
8e957354 PB |
2674 | $as_echo_n "(cached) " >&6 |
2675 | else | |
2676 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2677 | for ac_i in 1 2 3 4 5 6 7; do | |
2678 | ac_script="$ac_script$as_nl$ac_script" | |
2679 | done | |
2680 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2681 | { ac_script=; unset ac_script;} | |
2682 | if test -z "$SED"; then | |
2683 | ac_path_SED_found=false | |
2684 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2686 | for as_dir in $PATH | |
2687 | do | |
2688 | IFS=$as_save_IFS | |
2689 | test -z "$as_dir" && as_dir=. | |
2690 | for ac_prog in sed gsed; do | |
2691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2692 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 2693 | as_fn_executable_p "$ac_path_SED" || continue |
8e957354 PB |
2694 | # Check for GNU ac_path_SED and select it if it is found. |
2695 | # Check for GNU $ac_path_SED | |
2696 | case `"$ac_path_SED" --version 2>&1` in | |
2697 | *GNU*) | |
2698 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2699 | *) | |
2700 | ac_count=0 | |
2701 | $as_echo_n 0123456789 >"conftest.in" | |
2702 | while : | |
2703 | do | |
2704 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2705 | mv "conftest.tmp" "conftest.in" | |
2706 | cp "conftest.in" "conftest.nl" | |
2707 | $as_echo '' >> "conftest.nl" | |
2708 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2709 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2710 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2711 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2712 | # Best one so far, save it but keep looking for a better one | |
2713 | ac_cv_path_SED="$ac_path_SED" | |
2714 | ac_path_SED_max=$ac_count | |
2715 | fi | |
2716 | # 10*(2^10) chars as input seems more than enough | |
2717 | test $ac_count -gt 10 && break | |
2718 | done | |
2719 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2720 | esac | |
2721 | ||
2722 | $ac_path_SED_found && break 3 | |
2723 | done | |
2724 | done | |
2725 | done | |
2726 | IFS=$as_save_IFS | |
2727 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 2728 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8e957354 PB |
2729 | fi |
2730 | else | |
2731 | ac_cv_path_SED=$SED | |
2732 | fi | |
2733 | ||
2734 | fi | |
2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2736 | $as_echo "$ac_cv_path_SED" >&6; } | |
2737 | SED="$ac_cv_path_SED" | |
2738 | rm -f conftest.sed | |
2739 | ||
2740 | for ac_prog in gawk mawk nawk awk | |
2741 | do | |
2742 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2743 | set dummy $ac_prog; ac_word=$2 | |
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2745 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2746 | if ${ac_cv_prog_AWK+:} false; then : |
8e957354 PB |
2747 | $as_echo_n "(cached) " >&6 |
2748 | else | |
2749 | if test -n "$AWK"; then | |
2750 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2751 | else | |
2752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2753 | for as_dir in $PATH | |
2754 | do | |
2755 | IFS=$as_save_IFS | |
2756 | test -z "$as_dir" && as_dir=. | |
2757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8e957354 PB |
2759 | ac_cv_prog_AWK="$ac_prog" |
2760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2761 | break 2 | |
2762 | fi | |
2763 | done | |
2764 | done | |
2765 | IFS=$as_save_IFS | |
2766 | ||
2767 | fi | |
2768 | fi | |
2769 | AWK=$ac_cv_prog_AWK | |
2770 | if test -n "$AWK"; then | |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2772 | $as_echo "$AWK" >&6; } | |
2773 | else | |
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2775 | $as_echo "no" >&6; } | |
2776 | fi | |
2777 | ||
2778 | ||
2779 | test -n "$AWK" && break | |
2780 | done | |
2781 | ||
e5c3f801 | 2782 | |
0fdbe983 DJ |
2783 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2784 | ||
2785 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2786 | # a relative path. | |
2787 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2788 | INSTALL="${srcpwd}/install-sh -c" | |
2789 | fi | |
2790 | ||
a0da8069 NN |
2791 | # Set srcdir to "." if that's what it is. |
2792 | # This is important for multilib support. | |
2793 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2794 | if test "${pwd}" = "${srcpwd}" ; then |
2795 | srcdir=. | |
252b5132 RH |
2796 | fi |
2797 | ||
a0da8069 | 2798 | topsrcdir=$srcpwd |
252b5132 | 2799 | |
a0da8069 | 2800 | extra_host_args= |
afefada0 | 2801 | |
a0da8069 NN |
2802 | ### To add a new directory to the tree, first choose whether it is a target |
2803 | ### or a host dependent tool. Then put it into the appropriate list | |
2804 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2805 | |
c6b750e1 | 2806 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2807 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2808 | |
c6b750e1 DJ |
2809 | # Dependency sorting is only needed when *configuration* must be done in |
2810 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2811 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2812 | |
a0da8069 NN |
2813 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2814 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2815 | |
6a9cf61e PB |
2816 | # these library is used by various programs built for the build |
2817 | # environment | |
2818 | # | |
1b6c0831 | 2819 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2820 | |
2821 | # these tools are built for the build environment | |
a90ef4bf | 2822 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2823 | |
a0da8069 | 2824 | # these libraries are used by various programs built for the host environment |
1b6c0831 | 2825 | #f |
0e65dfba | 2826 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
a0da8069 | 2827 | |
a0da8069 NN |
2828 | # these tools are built for the host environment |
2829 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2830 | # know that we are building the simulator. | |
2831 | # binutils, gas and ld appear in that order because it makes sense to run | |
2832 | # "make check" in that particular order. | |
e6de499b | 2833 | # If --enable-gold is used, "gold" may replace "ld". |
919adfe8 | 2834 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
a0da8069 | 2835 | |
a0da8069 NN |
2836 | # these libraries are built for the target environment, and are built after |
2837 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2838 | # Note that libiberty is not a target library. |
b1299c4e | 2839 | target_libraries="target-libgcc \ |
2bf680c4 | 2840 | target-libbacktrace \ |
a0da8069 NN |
2841 | target-libgloss \ |
2842 | target-newlib \ | |
cff87f51 | 2843 | target-libgomp \ |
1b6c0831 | 2844 | target-liboffloadmic \ |
bf41f30d | 2845 | target-libhsail-rt \ |
7ec59b9e | 2846 | target-libatomic \ |
d32e2926 | 2847 | target-libitm \ |
b9459e83 | 2848 | target-libstdc++-v3 \ |
5286fdef | 2849 | target-libsanitizer \ |
95e43135 | 2850 | target-libvtv \ |
bb780410 | 2851 | target-libssp \ |
e552509b | 2852 | target-libquadmath \ |
4b1cb4fe | 2853 | target-libgfortran \ |
05a13254 | 2854 | target-libffi \ |
a2592b1b | 2855 | target-libobjc \ |
e552509b | 2856 | target-libada \ |
e3f56a99 | 2857 | target-libgo" |
a0da8069 | 2858 | |
9c14acb8 NN |
2859 | # these tools are built using the target libraries, and are intended to |
2860 | # run only in the target environment | |
a0da8069 | 2861 | # |
9c14acb8 | 2862 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2863 | # list belongs in this list. |
a0da8069 | 2864 | # |
a90ef4bf | 2865 | target_tools="target-rda" |
252b5132 | 2866 | |
a0da8069 | 2867 | ################################################################################ |
252b5132 | 2868 | |
a0da8069 NN |
2869 | ## All tools belong in one of the four categories, and are assigned above |
2870 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2871 | ## is important because configure will choke if they ever get through. | |
2872 | ## ${configdirs} is directories we build using the host tools. | |
2873 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2874 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2875 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2876 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2877 | |
9cc8ae67 PB |
2878 | |
2879 | ||
a0da8069 | 2880 | ################################################################################ |
252b5132 | 2881 | |
a0da8069 | 2882 | srcname="gnu development package" |
252b5132 | 2883 | |
a0da8069 NN |
2884 | # This gets set non-empty for some net releases of packages. |
2885 | appdirs="" | |
252b5132 | 2886 | |
a0da8069 NN |
2887 | # Define is_cross_compiler to save on calls to 'test'. |
2888 | is_cross_compiler= | |
2889 | if test x"${host}" = x"${target}" ; then | |
2890 | is_cross_compiler=no | |
252b5132 | 2891 | else |
a0da8069 | 2892 | is_cross_compiler=yes |
c6b750e1 | 2893 | fi |
252b5132 | 2894 | |
9175bfc0 | 2895 | # Find the build and target subdir names. |
dd12c3a8 | 2896 | |
66a79c16 DJ |
2897 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2898 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2899 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2900 | # However, they still use the build modules, because the corresponding | |
2901 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2902 | # finishes. So: | |
2903 | # - build_subdir is where we find build modules, and never changes. | |
2904 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2905 | ||
2906 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2907 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2908 | |
81ecdfbb RW |
2909 | # Check whether --with-build-libsubdir was given. |
2910 | if test "${with_build_libsubdir+set}" = set; then : | |
2911 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2912 | else |
2913 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2914 | fi |
2915 | ||
b00612cc PB |
2916 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2917 | if ( test $srcdir = . && test -d gcc ) \ | |
2918 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2919 | host_subdir="host-${host_noncanonical}" | |
2920 | else | |
2921 | host_subdir=. | |
2922 | fi | |
dd12c3a8 NN |
2923 | # No prefix. |
2924 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2925 | |
2fd0b40b RW |
2926 | # Be sure to cover against remnants of an in-tree build. |
2927 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
d0ac1c44 | 2928 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
2fd0b40b RW |
2929 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2930 | fi | |
252b5132 | 2931 | |
a0da8069 NN |
2932 | # Skipdirs are removed silently. |
2933 | skipdirs= | |
2934 | # Noconfigdirs are removed loudly. | |
2935 | noconfigdirs="" | |
252b5132 | 2936 | |
a0da8069 NN |
2937 | use_gnu_ld= |
2938 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2939 | if test x$with_gnu_ld = xno ; then | |
2940 | use_gnu_ld=no | |
93f9b408 | 2941 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2942 | fi |
2943 | ||
a0da8069 NN |
2944 | use_gnu_as= |
2945 | # Make sure we don't let GNU as be added if we didn't want it. | |
2946 | if test x$with_gnu_as = xno ; then | |
2947 | use_gnu_as=no | |
2948 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2949 | fi |
2950 | ||
700d40ca | 2951 | use_included_zlib= |
cf39cfc5 L |
2952 | |
2953 | # Check whether --with-system-zlib was given. | |
2954 | if test "${with_system_zlib+set}" = set; then : | |
2955 | withval=$with_system_zlib; | |
2956 | fi | |
2957 | ||
700d40ca ILT |
2958 | # Make sure we don't let ZLIB be added if we didn't want it. |
2959 | if test x$with_system_zlib = xyes ; then | |
2960 | use_included_zlib=no | |
2961 | noconfigdirs="$noconfigdirs zlib" | |
2962 | fi | |
2963 | ||
69961a84 ДП |
2964 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2965 | # is provided. | |
2966 | if test x$with_system_readline = xyes ; then | |
2967 | noconfigdirs="$noconfigdirs readline" | |
2968 | fi | |
2969 | ||
c6b750e1 | 2970 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2971 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2972 | |
a0da8069 NN |
2973 | case ${with_x} in |
2974 | yes | "") ;; # the default value for this tree is that X11 is available | |
2975 | no) | |
675c6968 | 2976 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2977 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2978 | enable_gdbtk=no |
a0da8069 NN |
2979 | ;; |
2980 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2981 | esac | |
252b5132 | 2982 | |
0377a422 | 2983 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2984 | # Remove these if host=target. |
2985 | cross_only="target-libgloss target-newlib target-opcodes" | |
2986 | ||
2987 | case $is_cross_compiler in | |
2988 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2989 | esac |
252b5132 | 2990 | |
a0da8069 NN |
2991 | # If both --with-headers and --with-libs are specified, default to |
2992 | # --without-newlib. | |
32be62b5 RS |
2993 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2994 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2995 | if test x"${with_newlib}" = x ; then |
2996 | with_newlib=no | |
2997 | fi | |
252b5132 RH |
2998 | fi |
2999 | ||
a0da8069 NN |
3000 | # Recognize --with-newlib/--without-newlib. |
3001 | case ${with_newlib} in | |
3002 | no) skipdirs="${skipdirs} target-newlib" ;; | |
3003 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
3004 | esac | |
252b5132 | 3005 | |
1b6c0831 L |
3006 | # Check whether --enable-as-accelerator-for was given. |
3007 | if test "${enable_as_accelerator_for+set}" = set; then : | |
3008 | enableval=$enable_as_accelerator_for; | |
3009 | fi | |
3010 | ||
3011 | ||
3012 | # Check whether --enable-offload-targets was given. | |
3013 | if test "${enable_offload_targets+set}" = set; then : | |
3014 | enableval=$enable_offload_targets; | |
3015 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 3016 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
3017 | fi |
3018 | ||
3019 | else | |
3020 | enable_offload_targets= | |
3021 | fi | |
3022 | ||
3023 | ||
c7791212 NC |
3024 | # Handle --enable-gold, --enable-ld. |
3025 | # --disable-gold [--enable-ld] | |
3026 | # Build only ld. Default option. | |
d3b50760 L |
3027 | # --enable-gold [--enable-ld] |
3028 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3029 | # as "ld.bfd" and "ld". | |
3030 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
3031 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3032 | # install ld as "ld.bfd". | |
3033 | # --enable-gold[=default] --disable-ld | |
3034 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3035 | # --enable-gold --enable-ld=default | |
d3b50760 L |
3036 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3037 | # and ld.bfd). | |
c7791212 NC |
3038 | # In other words, ld is default |
3039 | # --enable-gold=default --enable-ld=default | |
3040 | # Error. | |
3041 | ||
3042 | default_ld= | |
81ecdfbb RW |
3043 | # Check whether --enable-gold was given. |
3044 | if test "${enable_gold+set}" = set; then : | |
3045 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
3046 | else |
3047 | ENABLE_GOLD=no | |
81ecdfbb RW |
3048 | fi |
3049 | ||
c7791212 NC |
3050 | case "${ENABLE_GOLD}" in |
3051 | yes|default) | |
e6de499b NC |
3052 | # Check for ELF target. |
3053 | is_elf=no | |
3054 | case "${target}" in | |
3055 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 3056 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 3057 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
bf41f30d | 3058 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
3059 | case "${target}" in |
3060 | *-*-linux*aout* | *-*-linux*oldld*) | |
3061 | ;; | |
3062 | *) | |
3063 | is_elf=yes | |
3064 | ;; | |
3065 | esac | |
3066 | esac | |
3067 | ||
3068 | if test "$is_elf" = "yes"; then | |
3069 | # Check for target supported by gold. | |
93f9b408 | 3070 | case "${target}" in |
6d26190c | 3071 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 3072 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
3073 | configdirs="$configdirs gold" |
3074 | if test x${ENABLE_GOLD} = xdefault; then | |
3075 | default_ld=gold | |
3076 | fi | |
e6de499b | 3077 | ENABLE_GOLD=yes |
93f9b408 ILT |
3078 | ;; |
3079 | esac | |
e6de499b NC |
3080 | fi |
3081 | ;; | |
3082 | no) | |
3083 | ;; | |
3084 | *) | |
d0ac1c44 | 3085 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3086 | ;; |
c7791212 NC |
3087 | esac |
3088 | ||
3089 | # Check whether --enable-ld was given. | |
3090 | if test "${enable_ld+set}" = set; then : | |
3091 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3092 | else | |
3093 | ENABLE_LD=yes | |
3094 | fi | |
3095 | ||
3096 | ||
3097 | case "${ENABLE_LD}" in | |
3098 | default) | |
d3b50760 | 3099 | if test x${default_ld} != x; then |
d0ac1c44 | 3100 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3101 | fi |
3102 | ;; | |
3103 | yes) | |
3104 | ;; | |
3105 | no) | |
3106 | if test x${ENABLE_GOLD} != xyes; then | |
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3108 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3109 | fi | |
3110 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3111 | ;; | |
3112 | *) | |
d0ac1c44 | 3113 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3114 | ;; |
3115 | esac | |
93f9b408 | 3116 | |
edeefb67 L |
3117 | # PR gas/19109 |
3118 | # Decide the default method for compressing debug sections. | |
3119 | # Provide a configure time option to override our default. | |
3120 | # Check whether --enable-compressed_debug_sections was given. | |
3121 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3122 | enableval=$enable_compressed_debug_sections; | |
3123 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3124 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3125 | fi |
3126 | ||
3127 | else | |
3128 | enable_compressed_debug_sections= | |
3129 | fi | |
3130 | ||
3131 | ||
a0da8069 | 3132 | # Configure extra directories which are host specific |
252b5132 | 3133 | |
a0da8069 NN |
3134 | case "${host}" in |
3135 | *-cygwin*) | |
3136 | configdirs="$configdirs libtermcap" ;; | |
3137 | esac | |
252b5132 | 3138 | |
59f7ec45 HPN |
3139 | # A target can indicate whether a language isn't supported for some reason. |
3140 | # Only spaces may be used in this macro; not newlines or tabs. | |
3141 | unsupported_languages= | |
3142 | ||
c6b750e1 | 3143 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3144 | # target this usually means that a port of the program doesn't |
3145 | # exist yet. | |
252b5132 | 3146 | |
a0da8069 | 3147 | case "${host}" in |
3516a403 | 3148 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3149 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3150 | ;; |
a0da8069 | 3151 | esac |
252b5132 | 3152 | |
4b1cb4fe | 3153 | |
89a1e9c3 PB |
3154 | # Check whether --enable-libquadmath was given. |
3155 | if test "${enable_libquadmath+set}" = set; then : | |
3156 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3157 | else | |
3158 | ENABLE_LIBQUADMATH=yes | |
3159 | fi | |
3160 | ||
3161 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3162 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3163 | fi | |
3164 | ||
3165 | ||
3166 | # Check whether --enable-libquadmath-support was given. | |
3167 | if test "${enable_libquadmath_support+set}" = set; then : | |
3168 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3169 | else | |
3170 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3171 | fi | |
3172 | ||
3173 | enable_libquadmath_support= | |
3174 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3175 | enable_libquadmath_support=no | |
3176 | fi | |
3177 | ||
3178 | ||
81ecdfbb RW |
3179 | # Check whether --enable-libada was given. |
3180 | if test "${enable_libada+set}" = set; then : | |
3181 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3182 | else |
3183 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3184 | fi |
3185 | ||
a2592b1b | 3186 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3187 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3188 | fi |
3189 | ||
81ecdfbb RW |
3190 | # Check whether --enable-libssp was given. |
3191 | if test "${enable_libssp+set}" = set; then : | |
3192 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3193 | else |
3194 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3195 | fi |
3196 | ||
5f128533 | 3197 | |
f66a9a70 L |
3198 | # Check whether --enable-libstdcxx was given. |
3199 | if test "${enable_libstdcxx+set}" = set; then : | |
3200 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3201 | else | |
3202 | ENABLE_LIBSTDCXX=default | |
3203 | fi | |
3204 | ||
3205 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3206 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3207 | fi | |
3208 | ||
3209 | # If this is accelerator compiler and its target is intelmic we enable | |
3210 | # target liboffloadmic by default. If this is compiler with offloading | |
3211 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3212 | # liboffloadmic is disabled by default. | |
3213 | # Check whether --enable-liboffloadmic was given. | |
3214 | if test "${enable_liboffloadmic+set}" = set; then : | |
3215 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3216 | no | host | target) | |
3217 | enable_liboffloadmic=$enableval ;; | |
3218 | *) | |
d0ac1c44 | 3219 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3220 | esac |
3221 | else | |
3222 | if test x"$enable_as_accelerator_for" != x; then | |
3223 | case "${target}" in | |
3224 | *-intelmic-* | *-intelmicemul-*) | |
3225 | enable_liboffloadmic=target | |
3226 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3227 | ;; | |
3228 | *) | |
3229 | enable_liboffloadmic=no | |
3230 | ;; | |
3231 | esac | |
3232 | else | |
3233 | case "${enable_offload_targets}" in | |
3234 | *-intelmic-* | *-intelmicemul-*) | |
3235 | enable_liboffloadmic=host | |
3236 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3237 | ;; | |
3238 | *) | |
3239 | enable_liboffloadmic=no | |
3240 | ;; | |
3241 | esac | |
3242 | fi | |
f66a9a70 L |
3243 | fi |
3244 | ||
1b6c0831 L |
3245 | |
3246 | ||
68996839 | 3247 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3248 | if test x$enable_libgomp = x ; then |
b3ded179 | 3249 | case "${target}" in |
29383458 | 3250 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3251 | ;; |
5b806d27 | 3252 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3253 | ;; |
2479f722 | 3254 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3255 | ;; |
3256 | *-*-darwin* | *-*-aix*) | |
3257 | ;; | |
68996839 NC |
3258 | nvptx*-*-*) |
3259 | ;; | |
b3ded179 PB |
3260 | *) |
3261 | noconfigdirs="$noconfigdirs target-libgomp" | |
3262 | ;; | |
3263 | esac | |
a6df5a19 | 3264 | fi |
b3ded179 | 3265 | |
7ec59b9e L |
3266 | # Disable libatomic on unsupported systems. |
3267 | if test -d ${srcdir}/libatomic; then | |
3268 | if test x$enable_libatomic = x; then | |
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3270 | $as_echo_n "checking for libatomic support... " >&6; } | |
3271 | if (srcdir=${srcdir}/libatomic; \ | |
3272 | . ${srcdir}/configure.tgt; \ | |
3273 | test -n "$UNSUPPORTED") | |
3274 | then | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3276 | $as_echo "no" >&6; } | |
3277 | noconfigdirs="$noconfigdirs target-libatomic" | |
3278 | else | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3280 | $as_echo "yes" >&6; } | |
3281 | fi | |
3282 | fi | |
3283 | fi | |
3284 | ||
1b6c0831 L |
3285 | # Disable liboffloadmic on unsupported systems. |
3286 | if test -d ${srcdir}/liboffloadmic; then | |
3287 | if test x$enable_liboffloadmic != xno; then | |
3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3289 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3290 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3291 | . ${srcdir}/configure.tgt; \ | |
3292 | test -n "$UNSUPPORTED") | |
3293 | then | |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3295 | $as_echo "no" >&6; } | |
3296 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3297 | else | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3299 | $as_echo "yes" >&6; } | |
3300 | fi | |
3301 | fi | |
3302 | fi | |
3303 | ||
d32e2926 RH |
3304 | # Disable libitm on unsupported systems. |
3305 | if test -d ${srcdir}/libitm; then | |
3306 | if test x$enable_libitm = x; then | |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3308 | $as_echo_n "checking for libitm support... " >&6; } | |
3309 | if (srcdir=${srcdir}/libitm; \ | |
3310 | . ${srcdir}/configure.tgt; \ | |
3311 | test -n "$UNSUPPORTED") | |
3312 | then | |
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3314 | $as_echo "no" >&6; } | |
3315 | noconfigdirs="$noconfigdirs target-libitm" | |
3316 | else | |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3318 | $as_echo "yes" >&6; } | |
3319 | fi | |
3320 | fi | |
3321 | fi | |
3322 | ||
5286fdef L |
3323 | # Disable libsanitizer on unsupported systems. |
3324 | if test -d ${srcdir}/libsanitizer; then | |
3325 | if test x$enable_libsanitizer = x; then | |
3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3327 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3328 | if (srcdir=${srcdir}/libsanitizer; \ | |
3329 | . ${srcdir}/configure.tgt; \ | |
3330 | test -n "$UNSUPPORTED") | |
3331 | then | |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3333 | $as_echo "no" >&6; } | |
3334 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3335 | else | |
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3337 | $as_echo "yes" >&6; } | |
3338 | fi | |
3339 | fi | |
3340 | fi | |
3341 | ||
95e43135 JBG |
3342 | # Disable libvtv on unsupported systems. |
3343 | if test -d ${srcdir}/libvtv; then | |
3344 | if test x$enable_libvtv = x; then | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3346 | $as_echo_n "checking for libvtv support... " >&6; } | |
3347 | if (srcdir=${srcdir}/libvtv; \ | |
3348 | . ${srcdir}/configure.tgt; \ | |
3349 | test "$VTV_SUPPORTED" != "yes") | |
3350 | then | |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3352 | $as_echo "no" >&6; } | |
3353 | noconfigdirs="$noconfigdirs target-libvtv" | |
3354 | else | |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3356 | $as_echo "yes" >&6; } | |
3357 | fi | |
3358 | fi | |
3359 | fi | |
3360 | ||
1b6c0831 | 3361 | |
bf41f30d NC |
3362 | # Disable libhsail-rt on unsupported systems. |
3363 | if test -d ${srcdir}/libhsail-rt; then | |
3364 | if test x$enable_libhsail_rt = x; then | |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3366 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3367 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3368 | . ${srcdir}/configure.tgt; \ | |
3369 | test -n "$UNSUPPORTED") | |
3370 | then | |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3372 | $as_echo "no" >&6; } | |
3373 | unsupported_languages="$unsupported_languages brig" | |
3374 | # This implicitly disables also target-libhsail-rt as it won't | |
3375 | # get added to the build without BRIG FE. | |
3376 | else | |
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3378 | $as_echo "yes" >&6; } | |
3379 | fi | |
3380 | fi | |
3381 | fi | |
1b6c0831 L |
3382 | |
3383 | ||
1488e230 DE |
3384 | # Disable libquadmath for some systems. |
3385 | case "${target}" in | |
5286fdef L |
3386 | avr-*-*) |
3387 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3388 | ;; | |
1488e230 DE |
3389 | # libquadmath is unused on AIX and libquadmath build process use of |
3390 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3391 | powerpc-*-aix* | rs6000-*-aix*) | |
3392 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3393 | ;; | |
3394 | esac | |
3395 | ||
065a5627 JM |
3396 | # Disable libssp for some systems. |
3397 | case "${target}" in | |
3398 | avr-*-*) | |
c5f5c3c2 | 3399 | # No hosted I/O support. |
065a5627 JM |
3400 | noconfigdirs="$noconfigdirs target-libssp" |
3401 | ;; | |
3402 | powerpc-*-aix* | rs6000-*-aix*) | |
3403 | noconfigdirs="$noconfigdirs target-libssp" | |
3404 | ;; | |
99c513f6 | 3405 | rl78-*-*) |
202e2356 NC |
3406 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3407 | # doesn't fault for those - instead, it gives a build-time error | |
3408 | # for explicit misaligned loads. | |
99c513f6 DD |
3409 | noconfigdirs="$noconfigdirs target-libssp" |
3410 | ;; | |
1b6c0831 L |
3411 | visium-*-*) |
3412 | # No hosted I/O support. | |
3413 | noconfigdirs="$noconfigdirs target-libssp" | |
3414 | ;; | |
065a5627 JM |
3415 | esac |
3416 | ||
065a5627 | 3417 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3418 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3419 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3420 | case "${target}" in | |
3421 | *-*-vxworks*) | |
3422 | # VxWorks uses the Dinkumware C++ library. | |
3423 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3424 | ;; | |
3425 | arm*-wince-pe*) | |
3426 | # the C++ libraries don't build on top of CE's C libraries | |
3427 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3428 | ;; | |
3429 | avr-*-*) | |
3430 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3431 | ;; | |
969b1713 L |
3432 | ft32-*-*) |
3433 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3434 | ;; | |
f66a9a70 L |
3435 | esac |
3436 | fi | |
065a5627 JM |
3437 | |
3438 | # Disable Fortran for some systems. | |
3439 | case "${target}" in | |
3440 | mmix-*-*) | |
3441 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3442 | unsupported_languages="$unsupported_languages fortran" | |
3443 | ;; | |
3444 | esac | |
3445 | ||
05a13254 | 3446 | # Disable libffi for some systems. |
0827f9a6 | 3447 | case "${target}" in |
9863d716 JM |
3448 | powerpc-*-darwin*) |
3449 | ;; | |
3450 | i[3456789]86-*-darwin*) | |
3451 | ;; | |
3452 | x86_64-*-darwin[912]*) | |
3453 | ;; | |
3454 | *-*-darwin*) | |
05a13254 | 3455 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3456 | ;; |
9863d716 | 3457 | *-*-netware*) |
05a13254 NC |
3458 | noconfigdirs="$noconfigdirs target-libffi" |
3459 | ;; | |
3460 | *-*-phoenix*) | |
3461 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3462 | ;; |
3463 | *-*-rtems*) | |
05a13254 | 3464 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3465 | ;; |
3466 | *-*-tpf*) | |
05a13254 | 3467 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3468 | ;; |
3469 | *-*-uclinux*) | |
05a13254 | 3470 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3471 | ;; |
3472 | *-*-vxworks*) | |
05a13254 NC |
3473 | noconfigdirs="$noconfigdirs target-libffi" |
3474 | ;; | |
3475 | aarch64*-*-freebsd*) | |
3476 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3477 | ;; |
9863d716 | 3478 | alpha*-*-*vms*) |
05a13254 | 3479 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3480 | ;; |
1b6c0831 | 3481 | arm*-*-freebsd*) |
05a13254 | 3482 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3483 | ;; |
0827f9a6 | 3484 | arm-wince-pe) |
05a13254 | 3485 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3486 | ;; |
9863d716 | 3487 | arm*-*-symbianelf*) |
05a13254 | 3488 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3489 | ;; |
9863d716 | 3490 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3491 | case "${target}" in |
3492 | *-*-linux*) | |
3493 | ;; | |
3494 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3495 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3496 | esac |
3497 | ;; | |
82ae827f | 3498 | hppa*64*-*-hpux*) |
05a13254 | 3499 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3500 | ;; |
3501 | hppa*-hp-hpux11*) | |
3502 | ;; | |
82ae827f | 3503 | hppa*-*-hpux*) |
05a13254 | 3504 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3505 | ;; |
9863d716 | 3506 | ia64*-*-*vms*) |
05a13254 | 3507 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3508 | ;; |
9863d716 | 3509 | i[3456789]86-w64-mingw*) |
05a13254 | 3510 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3511 | ;; |
3512 | i[3456789]86-*-mingw*) | |
05a13254 | 3513 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3514 | ;; |
3515 | x86_64-*-mingw*) | |
05a13254 | 3516 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3517 | ;; |
9863d716 | 3518 | mmix-*-*) |
05a13254 | 3519 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3520 | ;; |
3521 | powerpc-*-aix*) | |
9863d716 | 3522 | ;; |
9863d716 | 3523 | rs6000-*-aix*) |
9863d716 | 3524 | ;; |
3f8107ab | 3525 | ft32-*-*) |
05a13254 | 3526 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3527 | ;; |
9863d716 | 3528 | *-*-lynxos*) |
05a13254 | 3529 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3530 | ;; |
9863d716 JM |
3531 | esac |
3532 | ||
1b6c0831 L |
3533 | # Disable the go frontend on systems where it is known to not work. Please keep |
3534 | # this in sync with contrib/config-list.mk. | |
3535 | case "${target}" in | |
bf41f30d | 3536 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
1b6c0831 L |
3537 | unsupported_languages="$unsupported_languages go" |
3538 | ;; | |
3539 | esac | |
3540 | ||
919adfe8 TT |
3541 | # Only allow gdbserver on some systems. |
3542 | if test -d ${srcdir}/gdbserver; then | |
3543 | if test x$enable_gdbserver = x; then | |
3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3545 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3546 | if (srcdir=${srcdir}/gdbserver; \ | |
3547 | . ${srcdir}/configure.srv; \ | |
3548 | test -n "$UNSUPPORTED") | |
3549 | then | |
3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3551 | $as_echo "no" >&6; } | |
3552 | noconfigdirs="$noconfigdirs gdbserver" | |
3553 | else | |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3555 | $as_echo "yes" >&6; } | |
3556 | fi | |
3557 | fi | |
3558 | fi | |
3559 | ||
a413f71a ILT |
3560 | # Disable libgo for some systems where it is known to not work. |
3561 | # For testing, you can easily override this with --enable-libgo. | |
3562 | if test x$enable_libgo = x; then | |
3563 | case "${target}" in | |
3564 | *-*-darwin*) | |
3565 | # PR 46986 | |
3566 | noconfigdirs="$noconfigdirs target-libgo" | |
3567 | ;; | |
3568 | *-*-cygwin* | *-*-mingw*) | |
3569 | noconfigdirs="$noconfigdirs target-libgo" | |
3570 | ;; | |
a413f71a ILT |
3571 | esac |
3572 | fi | |
3573 | ||
691bb5a1 DD |
3574 | # Default libgloss CPU subdirectory. |
3575 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3576 | |
ff46fb8f JM |
3577 | case "${target}" in |
3578 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3579 | libgloss_dir=wince | |
3580 | ;; | |
f1dd87fc YZ |
3581 | aarch64*-*-* ) |
3582 | libgloss_dir=aarch64 | |
3583 | ;; | |
ff46fb8f JM |
3584 | arm*-*-*) |
3585 | libgloss_dir=arm | |
3586 | ;; | |
3587 | cris-*-* | crisv32-*-*) | |
3588 | libgloss_dir=cris | |
3589 | ;; | |
3590 | hppa*-*-*) | |
3591 | libgloss_dir=pa | |
3592 | ;; | |
3593 | i[3456789]86-*-*) | |
3594 | libgloss_dir=i386 | |
3595 | ;; | |
3596 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3597 | libgloss_dir=m68hc11 | |
3598 | ;; | |
3599 | m68*-*-* | fido-*-*) | |
3600 | libgloss_dir=m68k | |
3601 | ;; | |
3602 | mips*-*-*) | |
3603 | libgloss_dir=mips | |
3604 | ;; | |
3605 | powerpc*-*-*) | |
3606 | libgloss_dir=rs6000 | |
3607 | ;; | |
3608 | sparc*-*-*) | |
3609 | libgloss_dir=sparc | |
3610 | ;; | |
3611 | esac | |
3612 | ||
c7e4b184 | 3613 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3614 | case "${target}" in |
c7e4b184 JM |
3615 | alpha*-dec-osf*) |
3616 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3617 | ;; | |
3618 | i[3456789]86-*-linux*) | |
3619 | # This section makes it possible to build newlib natively on linux. | |
3620 | # If we are using a cross compiler then don't configure newlib. | |
3621 | if test x${is_cross_compiler} != xno ; then | |
3622 | noconfigdirs="$noconfigdirs target-newlib" | |
3623 | fi | |
3624 | noconfigdirs="$noconfigdirs target-libgloss" | |
3625 | # If we are not using a cross compiler, do configure newlib. | |
3626 | # Note however, that newlib will only be configured in this situation | |
3627 | # if the --with-newlib option has been given, because otherwise | |
3628 | # 'target-newlib' will appear in skipdirs. | |
3629 | ;; | |
3630 | i[3456789]86-*-rdos*) | |
3631 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3632 | ;; | |
3633 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3634 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3635 | ;; | |
3636 | sparc-*-sunos4*) | |
3637 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3638 | ;; | |
3639 | *-*-aix*) | |
3640 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3641 | ;; | |
3642 | *-*-beos*) | |
3643 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3644 | ;; | |
a0da8069 | 3645 | *-*-chorusos) |
b2f14e4a | 3646 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3647 | ;; |
c7e4b184 JM |
3648 | *-*-dragonfly*) |
3649 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3650 | ;; | |
3651 | *-*-freebsd*) | |
3652 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3653 | ;; | |
3654 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3655 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3656 | ;; | |
3657 | *-*-lynxos*) | |
3658 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3659 | ;; | |
3660 | *-*-mingw*) | |
3661 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3662 | ;; | |
3663 | *-*-netbsd*) | |
3664 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3665 | ;; | |
3666 | *-*-netware*) | |
3667 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3668 | ;; | |
3669 | *-*-tpf*) | |
3670 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3671 | ;; | |
3672 | *-*-uclinux*) | |
3673 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3674 | ;; | |
3675 | *-*-vxworks*) | |
3676 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3677 | ;; | |
3678 | esac | |
3679 | ||
3680 | case "${target}" in | |
3681 | *-*-chorusos) | |
3682 | ;; | |
f075eb5e TG |
3683 | aarch64-*-darwin*) |
3684 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3685 | noconfigdirs="$noconfigdirs sim target-rda" | |
3686 | ;; | |
3687 | arm-*-darwin*) | |
3688 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3689 | noconfigdirs="$noconfigdirs sim target-rda" | |
3690 | ;; | |
24741ab2 | 3691 | powerpc-*-darwin*) |
9d39db92 | 3692 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3693 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3694 | ;; |
85bd1942 TG |
3695 | i[3456789]86-*-darwin*) |
3696 | noconfigdirs="$noconfigdirs ld gprof" | |
3697 | noconfigdirs="$noconfigdirs sim target-rda" | |
3698 | ;; | |
e8a5fa9c | 3699 | x86_64-*-darwin[912]*) |
652dec25 TG |
3700 | noconfigdirs="$noconfigdirs ld gas gprof" |
3701 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3702 | ;; |
04d1ab34 | 3703 | *-*-darwin*) |
d320aacb | 3704 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3705 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3706 | ;; |
5b806d27 | 3707 | *-*-dragonfly*) |
5b806d27 | 3708 | ;; |
de0b4a87 | 3709 | *-*-freebsd*) |
4b1cb4fe DD |
3710 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3711 | && test -f /usr/local/include/gmp.h; then | |
3712 | with_gmp=/usr/local | |
3713 | fi | |
4b1cb4fe | 3714 | ;; |
f8a495c8 NC |
3715 | *-*-kaos*) |
3716 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3717 | noconfigdirs="$noconfigdirs target-libgloss" |
3718 | ;; | |
a0da8069 | 3719 | *-*-netbsd*) |
a0da8069 | 3720 | ;; |
2a3124ca | 3721 | *-*-netware*) |
a0da8069 | 3722 | ;; |
05a13254 NC |
3723 | *-*-phoenix*) |
3724 | noconfigdirs="$noconfigdirs target-libgloss" | |
3725 | ;; | |
a0da8069 | 3726 | *-*-rtems*) |
9863d716 | 3727 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3728 | ;; |
1587117a EC |
3729 | # The tpf target doesn't support gdb yet. |
3730 | *-*-tpf*) | |
c7e4b184 | 3731 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3732 | ;; |
c1968181 | 3733 | *-*-uclinux*) |
c7e4b184 | 3734 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3735 | ;; |
a0da8069 | 3736 | *-*-vxworks*) |
a0da8069 NN |
3737 | ;; |
3738 | alpha*-dec-osf*) | |
3739 | # ld works, but does not support shared libraries. | |
a0da8069 | 3740 | # gas doesn't generate exception information. |
c7e4b184 | 3741 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3742 | ;; |
3743 | alpha*-*-*vms*) | |
9863d716 | 3744 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3745 | ;; |
a0da8069 NN |
3746 | alpha*-*-*) |
3747 | # newlib is not 64 bit ready | |
9863d716 | 3748 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3749 | ;; |
a0da8069 | 3750 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3751 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3752 | ;; |
05a13254 NC |
3753 | arc*-*-*) |
3754 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3755 | ;; |
a0da8069 | 3756 | arm-*-pe*) |
9863d716 | 3757 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3758 | ;; |
a0da8069 | 3759 | arm-*-riscix*) |
b2f14e4a | 3760 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3761 | ;; |
8e71395b L |
3762 | avr-*-*) |
3763 | if test x${with_avrlibc} != xno; then | |
3764 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3765 | fi | |
3766 | ;; | |
a0da8069 | 3767 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3768 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3769 | ;; |
b2f14e4a JM |
3770 | tic54x-*-*) |
3771 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3772 | ;; |
a0da8069 | 3773 | d10v-*-*) |
b2f14e4a | 3774 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3775 | ;; |
3776 | d30v-*-*) | |
b2f14e4a | 3777 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3778 | ;; |
3779 | fr30-*-elf*) | |
9863d716 | 3780 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3781 | ;; |
3f8107ab AM |
3782 | ft32-*-*) |
3783 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3784 | ;; | |
20135e4c | 3785 | moxie-*-*) |
10b8fe5e | 3786 | noconfigdirs="$noconfigdirs" |
20135e4c | 3787 | ;; |
a0da8069 | 3788 | h8300*-*-*) |
9863d716 | 3789 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3790 | ;; |
3791 | h8500-*-*) | |
b2f14e4a | 3792 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3793 | ;; |
caeba88f | 3794 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3795 | ;; |
5569a85f JDA |
3796 | hppa*64*-*-hpux*) |
3797 | noconfigdirs="$noconfigdirs gdb" | |
3798 | ;; | |
3799 | hppa*-*-hpux11*) | |
3800 | noconfigdirs="$noconfigdirs gdb ld" | |
3801 | ;; | |
93cc359e | 3802 | hppa*64*-*-linux*) |
a0da8069 | 3803 | ;; |
f0ff0f90 | 3804 | hppa*-*-linux*) |
5dcac624 | 3805 | ;; |
a0da8069 | 3806 | hppa*-*-*elf* | \ |
a0da8069 NN |
3807 | hppa*-*-lites* | \ |
3808 | hppa*-*-openbsd* | \ | |
3809 | hppa*64*-*-*) | |
4f0ef2d8 | 3810 | ;; |
691bb5a1 | 3811 | hppa*-*-pro*) |
691bb5a1 | 3812 | ;; |
a0da8069 | 3813 | hppa*-*-*) |
9863d716 | 3814 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3815 | ;; |
b07c2aad | 3816 | i960-*-*) |
b2f14e4a | 3817 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3818 | ;; |
a0da8069 NN |
3819 | ia64*-*-elf*) |
3820 | # No gdb support yet. | |
0377a422 | 3821 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3822 | ;; |
3823 | ia64*-**-hpux*) | |
92c9a463 | 3824 | # No ld support yet. |
5569a85f | 3825 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3826 | ;; |
19e99079 | 3827 | ia64*-*-*vms*) |
7ec59b9e L |
3828 | # No ld support yet. |
3829 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3830 | ;; |
1f53ca9a | 3831 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3832 | ;; |
3833 | i[3456789]86-*-mingw*) | |
45055374 | 3834 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3835 | ;; |
a0da8069 NN |
3836 | *-*-cygwin*) |
3837 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3838 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3839 | # always build newlib if winsup directory is present. |
45055374 | 3840 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3841 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3842 | elif test -d "$srcdir/newlib"; then |
45055374 | 3843 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3844 | fi |
c6b750e1 | 3845 | ;; |
ec11bdc6 | 3846 | i[3456789]86-*-pe) |
782cb41f | 3847 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3848 | ;; |
ec11bdc6 | 3849 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3850 | # The linker does not yet know about weak symbols in COFF, |
3851 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3852 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3853 | ;; |
ec11bdc6 | 3854 | i[3456789]86-*-sco*) |
b2f14e4a | 3855 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3856 | ;; |
cff32a7c | 3857 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3858 | noconfigdirs="$noconfigdirs target-libgloss" |
3859 | ;; | |
ec11bdc6 | 3860 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3861 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3862 | ;; |
ec11bdc6 | 3863 | i[3456789]86-*-beos*) |
c7e4b184 | 3864 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3865 | ;; |
b59bea8a | 3866 | i[3456789]86-*-rdos*) |
c7e4b184 | 3867 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3868 | ;; |
a0da8069 | 3869 | mmix-*-*) |
9863d716 | 3870 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3871 | ;; |
4970f871 | 3872 | mt-*-*) |
cdb9b172 AH |
3873 | noconfigdirs="$noconfigdirs sim" |
3874 | ;; | |
1063beb5 FT |
3875 | nfp-*-*) |
3876 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3877 | noconfigdirs="$noconfigdirs $target_libraries" | |
3878 | ;; | |
11104e42 SC |
3879 | pdp11-*-*) |
3880 | noconfigdirs="$noconfigdirs gdb gprof" | |
3881 | ;; | |
a0da8069 NN |
3882 | powerpc-*-aix*) |
3883 | # copied from rs6000-*-* entry | |
c7e4b184 | 3884 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3885 | ;; |
93cc359e | 3886 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3887 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3888 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3889 | # always build newlib. |
3890 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3891 | ;; | |
3892 | # This is temporary until we can link against shared libraries | |
3893 | powerpcle-*-solaris*) | |
b2f14e4a | 3894 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3895 | ;; |
3896 | powerpc-*-beos*) | |
c7e4b184 | 3897 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3898 | ;; |
a0da8069 | 3899 | rs6000-*-lynxos*) |
c7e4b184 | 3900 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3901 | ;; |
3902 | rs6000-*-aix*) | |
c7e4b184 | 3903 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3904 | ;; |
3905 | rs6000-*-*) | |
9863d716 | 3906 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3907 | ;; |
3908 | m68k-apollo-*) | |
b2f14e4a | 3909 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3910 | ;; |
25a07265 | 3911 | microblaze*) |
9863d716 | 3912 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3913 | ;; |
a9d58c06 | 3914 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3915 | if test x$with_newlib = xyes; then |
3916 | noconfigdirs="$noconfigdirs gprof" | |
3917 | fi | |
5bd8be13 | 3918 | ;; |
a0da8069 | 3919 | mips*-*-irix5*) |
b2f14e4a | 3920 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3921 | ;; |
3922 | mips*-*-irix6*) | |
9863d716 | 3923 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3924 | ;; |
a0da8069 | 3925 | mips*-*-bsd*) |
e8044f35 | 3926 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3927 | ;; |
a0da8069 | 3928 | mips*-*-linux*) |
a0da8069 | 3929 | ;; |
e8044f35 RS |
3930 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3931 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3932 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3933 | ;; | |
a0da8069 | 3934 | mips*-*-*) |
9863d716 | 3935 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3936 | ;; |
1b6c0831 | 3937 | nvptx*-*-*) |
1b6c0831 L |
3938 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3939 | ;; | |
05a13254 | 3940 | sh-*-*) |
e8a5fa9c RW |
3941 | case "${target}" in |
3942 | sh*-*-elf) | |
9863d716 | 3943 | ;; |
e8a5fa9c | 3944 | *) |
9863d716 | 3945 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3946 | esac |
a0da8069 | 3947 | ;; |
a0da8069 | 3948 | sparc-*-sunos4*) |
c7e4b184 | 3949 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3950 | use_gnu_ld=no |
3951 | fi | |
3952 | ;; | |
619a3713 | 3953 | tic6x-*-*) |
40ae9136 | 3954 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3955 | ;; |
05a13254 | 3956 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3957 | noconfigdirs="$noconfigdirs sim" |
3958 | ;; | |
a0da8069 | 3959 | v810-*-*) |
b2f14e4a | 3960 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3961 | ;; |
3962 | vax-*-*) | |
9863d716 | 3963 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3964 | ;; |
b29d2641 MR |
3965 | wasm32-*-*) |
3966 | noconfigdirs="$noconfigdirs ld" | |
3967 | ;; | |
a0da8069 | 3968 | esac |
252b5132 | 3969 | |
a0da8069 NN |
3970 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3971 | # depends upon some newlib header files. | |
3972 | case "${noconfigdirs}" in | |
3973 | *target-libgloss*) ;; | |
3974 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3975 | esac | |
3976 | ||
a0da8069 | 3977 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3978 | host_makefile_frag=/dev/null |
3979 | if test -d ${srcdir}/config ; then | |
3980 | case "${host}" in | |
ec11bdc6 | 3981 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3982 | host_makefile_frag="config/mh-djgpp" |
3983 | ;; | |
3984 | *-cygwin*) | |
e33b51a6 | 3985 | |
81ecdfbb RW |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3987 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3988 | echo a >cygwin-cat-check |
1f53ca9a | 3989 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3990 | rm cygwin-cat-check |
81ecdfbb RW |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3992 | $as_echo "yes" >&6; } | |
e33b51a6 | 3993 | else |
8ade07e9 | 3994 | rm cygwin-cat-check |
81ecdfbb RW |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3996 | $as_echo "no" >&6; } | |
d0ac1c44 | 3997 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
3998 | Please either mount the build directory in binary mode or run the following |
3999 | commands before running any configure script: | |
4000 | set -o igncr | |
4001 | export SHELLOPTS | |
81ecdfbb | 4002 | " "$LINENO" 5 |
e33b51a6 | 4003 | fi |
e33b51a6 | 4004 | |
a0da8069 NN |
4005 | host_makefile_frag="config/mh-cygwin" |
4006 | ;; | |
8a1599ab | 4007 | *-mingw*) |
84e7906e | 4008 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 4009 | ;; |
ce6c656d L |
4010 | alpha*-linux*) |
4011 | host_makefile_frag="config/mh-alpha-linux" | |
4012 | ;; | |
da888c87 | 4013 | hppa*-hp-hpux10*) |
da888c87 | 4014 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 4015 | ;; |
3516a403 | 4016 | hppa*-hp-hpux*) |
da888c87 PB |
4017 | host_makefile_frag="config/mh-pa" |
4018 | ;; | |
4019 | hppa*-*) | |
4020 | host_makefile_frag="config/mh-pa" | |
4021 | ;; | |
e552509b ILT |
4022 | *-*-darwin*) |
4023 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 4024 | ;; |
f6d183c0 PB |
4025 | powerpc-*-aix*) |
4026 | host_makefile_frag="config/mh-ppc-aix" | |
4027 | ;; | |
4028 | rs6000-*-aix*) | |
4029 | host_makefile_frag="config/mh-ppc-aix" | |
4030 | ;; | |
a0da8069 NN |
4031 | esac |
4032 | fi | |
4033 | ||
9e07f89d | 4034 | if test "${build}" != "${host}" ; then |
1576798e PB |
4035 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4036 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4037 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e | 4038 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
1576798e | 4039 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 4040 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
4041 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4042 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4043 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4044 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4045 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4046 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4047 | else | |
4048 | AR_FOR_BUILD="\$(AR)" | |
4049 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4050 | CC_FOR_BUILD="\$(CC)" |
1576798e | 4051 | CXX_FOR_BUILD="\$(CXX)" |
1576798e | 4052 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 4053 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
4054 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4055 | LD_FOR_BUILD="\$(LD)" | |
4056 | NM_FOR_BUILD="\$(NM)" | |
4057 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4058 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4059 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4060 | fi |
4061 | ||
4062 | ac_ext=c | |
c6b750e1 DJ |
4063 | ac_cpp='$CPP $CPPFLAGS' |
4064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4067 | if test -n "$ac_tool_prefix"; then | |
4068 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4069 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4071 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4072 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4073 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4074 | else |
4075 | if test -n "$CC"; then | |
4076 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4077 | else | |
4078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4079 | for as_dir in $PATH | |
4080 | do | |
4081 | IFS=$as_save_IFS | |
4082 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4083 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4084 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4085 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4087 | break 2 |
4088 | fi | |
4089 | done | |
81ecdfbb RW |
4090 | done |
4091 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4092 | |
4093 | fi | |
4094 | fi | |
4095 | CC=$ac_cv_prog_CC | |
4096 | if test -n "$CC"; then | |
81ecdfbb RW |
4097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4098 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4099 | else |
81ecdfbb RW |
4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4101 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4102 | fi |
4103 | ||
81ecdfbb | 4104 | |
c6b750e1 DJ |
4105 | fi |
4106 | if test -z "$ac_cv_prog_CC"; then | |
4107 | ac_ct_CC=$CC | |
6a9cf61e | 4108 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4109 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4111 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4112 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4113 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4114 | else |
4115 | if test -n "$ac_ct_CC"; then | |
4116 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4117 | else | |
4118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4119 | for as_dir in $PATH | |
4120 | do | |
4121 | IFS=$as_save_IFS | |
4122 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4123 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4124 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4125 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4127 | break 2 |
4128 | fi | |
4129 | done | |
81ecdfbb RW |
4130 | done |
4131 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4132 | |
4133 | fi | |
4134 | fi | |
4135 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4136 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4138 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4139 | else |
81ecdfbb RW |
4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4141 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4142 | fi |
4143 | ||
81ecdfbb RW |
4144 | if test "x$ac_ct_CC" = x; then |
4145 | CC="" | |
4146 | else | |
4147 | case $cross_compiling:$ac_tool_warned in | |
4148 | yes:) | |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4150 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4151 | ac_tool_warned=yes ;; | |
4152 | esac | |
4153 | CC=$ac_ct_CC | |
4154 | fi | |
c6b750e1 DJ |
4155 | else |
4156 | CC="$ac_cv_prog_CC" | |
4157 | fi | |
4158 | ||
4159 | if test -z "$CC"; then | |
81ecdfbb RW |
4160 | if test -n "$ac_tool_prefix"; then |
4161 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4162 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4164 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4165 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4166 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4167 | else |
4168 | if test -n "$CC"; then | |
4169 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4170 | else | |
c6b750e1 DJ |
4171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4172 | for as_dir in $PATH | |
4173 | do | |
4174 | IFS=$as_save_IFS | |
4175 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4176 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4177 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4178 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4180 | break 2 |
4181 | fi | |
4182 | done | |
81ecdfbb RW |
4183 | done |
4184 | IFS=$as_save_IFS | |
c6b750e1 | 4185 | |
9e07f89d NN |
4186 | fi |
4187 | fi | |
c6b750e1 | 4188 | CC=$ac_cv_prog_CC |
9e07f89d | 4189 | if test -n "$CC"; then |
81ecdfbb RW |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4191 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4192 | else |
81ecdfbb RW |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4194 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4195 | fi |
4196 | ||
c6b750e1 | 4197 | |
81ecdfbb | 4198 | fi |
c6b750e1 | 4199 | fi |
9e07f89d NN |
4200 | if test -z "$CC"; then |
4201 | # Extract the first word of "cc", so it can be a program name with args. | |
4202 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4204 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4205 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4206 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4207 | else |
4208 | if test -n "$CC"; then | |
4209 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4210 | else | |
9e07f89d | 4211 | ac_prog_rejected=no |
c6b750e1 DJ |
4212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4213 | for as_dir in $PATH | |
4214 | do | |
4215 | IFS=$as_save_IFS | |
4216 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4217 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4219 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4220 | ac_prog_rejected=yes | |
4221 | continue | |
4222 | fi | |
4223 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4225 | break 2 |
4226 | fi | |
4227 | done | |
81ecdfbb RW |
4228 | done |
4229 | IFS=$as_save_IFS | |
c6b750e1 | 4230 | |
9e07f89d NN |
4231 | if test $ac_prog_rejected = yes; then |
4232 | # We found a bogon in the path, so make sure we never use it. | |
4233 | set dummy $ac_cv_prog_CC | |
4234 | shift | |
c6b750e1 | 4235 | if test $# != 0; then |
9e07f89d NN |
4236 | # We chose a different compiler from the bogus one. |
4237 | # However, it has the same basename, so the bogon will be chosen | |
4238 | # first if we set CC to just the basename; use the full file name. | |
4239 | shift | |
c6b750e1 | 4240 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4241 | fi |
4242 | fi | |
4243 | fi | |
4244 | fi | |
c6b750e1 | 4245 | CC=$ac_cv_prog_CC |
9e07f89d | 4246 | if test -n "$CC"; then |
81ecdfbb RW |
4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4248 | $as_echo "$CC" >&6; } | |
9e07f89d | 4249 | else |
81ecdfbb RW |
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4251 | $as_echo "no" >&6; } | |
9e07f89d NN |
4252 | fi |
4253 | ||
81ecdfbb | 4254 | |
c6b750e1 DJ |
4255 | fi |
4256 | if test -z "$CC"; then | |
4257 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4258 | for ac_prog in cl.exe |
c6b750e1 DJ |
4259 | do |
4260 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4261 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4263 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4264 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4265 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4266 | else |
4267 | if test -n "$CC"; then | |
4268 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4269 | else | |
c6b750e1 DJ |
4270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4271 | for as_dir in $PATH | |
4272 | do | |
4273 | IFS=$as_save_IFS | |
4274 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4275 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4277 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4279 | break 2 |
376a0e54 | 4280 | fi |
c6b750e1 | 4281 | done |
81ecdfbb RW |
4282 | done |
4283 | IFS=$as_save_IFS | |
cac3d6c4 | 4284 | |
c6b750e1 DJ |
4285 | fi |
4286 | fi | |
4287 | CC=$ac_cv_prog_CC | |
4288 | if test -n "$CC"; then | |
81ecdfbb RW |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4290 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4291 | else |
81ecdfbb RW |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4293 | $as_echo "no" >&6; } | |
9e07f89d | 4294 | fi |
cac3d6c4 | 4295 | |
81ecdfbb | 4296 | |
c6b750e1 DJ |
4297 | test -n "$CC" && break |
4298 | done | |
cac3d6c4 | 4299 | fi |
c6b750e1 DJ |
4300 | if test -z "$CC"; then |
4301 | ac_ct_CC=$CC | |
81ecdfbb | 4302 | for ac_prog in cl.exe |
c6b750e1 DJ |
4303 | do |
4304 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4305 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4307 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4308 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4309 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4310 | else |
c6b750e1 DJ |
4311 | if test -n "$ac_ct_CC"; then |
4312 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4313 | else |
c6b750e1 DJ |
4314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4315 | for as_dir in $PATH | |
4316 | do | |
4317 | IFS=$as_save_IFS | |
4318 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4319 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4321 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4323 | break 2 |
4324 | fi | |
4325 | done | |
81ecdfbb RW |
4326 | done |
4327 | IFS=$as_save_IFS | |
c6b750e1 | 4328 | |
cac3d6c4 CM |
4329 | fi |
4330 | fi | |
c6b750e1 DJ |
4331 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4332 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4334 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4335 | else |
81ecdfbb RW |
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4337 | $as_echo "no" >&6; } | |
cac3d6c4 | 4338 | fi |
376a0e54 | 4339 | |
81ecdfbb | 4340 | |
c6b750e1 DJ |
4341 | test -n "$ac_ct_CC" && break |
4342 | done | |
4343 | ||
81ecdfbb RW |
4344 | if test "x$ac_ct_CC" = x; then |
4345 | CC="" | |
4346 | else | |
4347 | case $cross_compiling:$ac_tool_warned in | |
4348 | yes:) | |
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4350 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4351 | ac_tool_warned=yes ;; | |
4352 | esac | |
4353 | CC=$ac_ct_CC | |
4354 | fi | |
c6b750e1 DJ |
4355 | fi |
4356 | ||
4357 | fi | |
4358 | ||
4359 | ||
81ecdfbb RW |
4360 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4361 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4362 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4363 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4364 | |
4365 | # Provide some information about the compiler. | |
81ecdfbb RW |
4366 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4367 | set X $ac_compile | |
4368 | ac_compiler=$2 | |
4369 | for ac_option in --version -v -V -qversion; do | |
4370 | { { ac_try="$ac_compiler $ac_option >&5" | |
4371 | case "(($ac_try" in | |
4372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4373 | *) ac_try_echo=$ac_try;; | |
4374 | esac | |
4375 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4376 | $as_echo "$ac_try_echo"; } >&5 | |
4377 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4378 | ac_status=$? |
81ecdfbb RW |
4379 | if test -s conftest.err; then |
4380 | sed '10a\ | |
4381 | ... rest of stderr output deleted ... | |
4382 | 10q' conftest.err >conftest.er1 | |
4383 | cat conftest.er1 >&5 | |
81ecdfbb | 4384 | fi |
d0ac1c44 | 4385 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4387 | test $ac_status = 0; } | |
4388 | done | |
c6b750e1 | 4389 | |
81ecdfbb | 4390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4391 | /* end confdefs.h. */ |
4392 | ||
4393 | int | |
4394 | main () | |
4395 | { | |
4396 | ||
4397 | ; | |
4398 | return 0; | |
4399 | } | |
4400 | _ACEOF | |
4401 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4402 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4403 | # Try to create an executable without -o first, disregard a.out. |
4404 | # It will help us diagnose broken compilers, and finding out an intuition | |
4405 | # of exeext. | |
d0ac1c44 SM |
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4407 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4408 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4409 | ||
4410 | # The possible output files: | |
4411 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4412 | ||
4413 | ac_rmfiles= | |
4414 | for ac_file in $ac_files | |
4415 | do | |
4416 | case $ac_file in | |
4417 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4418 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4419 | esac | |
4420 | done | |
4421 | rm -f $ac_rmfiles | |
4422 | ||
4423 | if { { ac_try="$ac_link_default" | |
4424 | case "(($ac_try" in | |
4425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4426 | *) ac_try_echo=$ac_try;; | |
4427 | esac | |
4428 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4429 | $as_echo "$ac_try_echo"; } >&5 | |
4430 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4431 | ac_status=$? |
81ecdfbb RW |
4432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4433 | test $ac_status = 0; }; then : | |
4434 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4435 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4436 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4437 | # so that the user can short-circuit this test for compilers unknown to | |
4438 | # Autoconf. | |
4439 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4440 | do |
4441 | test -f "$ac_file" || continue | |
4442 | case $ac_file in | |
81ecdfbb | 4443 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4444 | ;; |
4445 | [ab].out ) | |
4446 | # We found the default executable, but exeext='' is most | |
4447 | # certainly right. | |
4448 | break;; | |
4449 | *.* ) | |
81ecdfbb RW |
4450 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4451 | then :; else | |
4452 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4453 | fi | |
4454 | # We set ac_cv_exeext here because the later test for it is not | |
4455 | # safe: cross compilers may not add the suffix if given an `-o' | |
4456 | # argument, so we may need to know it at that point already. | |
4457 | # Even if this section looks crufty: it has the advantage of | |
4458 | # actually working. | |
c6b750e1 DJ |
4459 | break;; |
4460 | * ) | |
4461 | break;; | |
4462 | esac | |
4463 | done | |
81ecdfbb RW |
4464 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4465 | ||
c6b750e1 | 4466 | else |
81ecdfbb RW |
4467 | ac_file='' |
4468 | fi | |
81ecdfbb | 4469 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4471 | $as_echo "no" >&6; } | |
4472 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4473 | sed 's/^/| /' conftest.$ac_ext >&5 |
4474 | ||
81ecdfbb RW |
4475 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4476 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4477 | as_fn_error 77 "C compiler cannot create executables |
4478 | See \`config.log' for more details" "$LINENO" 5; } | |
4479 | else | |
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4481 | $as_echo "yes" >&6; } | |
c6b750e1 | 4482 | fi |
d0ac1c44 SM |
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4484 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4486 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4487 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4488 | |
d0ac1c44 | 4489 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4490 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4492 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4493 | if { { ac_try="$ac_link" | |
4494 | case "(($ac_try" in | |
4495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4496 | *) ac_try_echo=$ac_try;; | |
4497 | esac | |
4498 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4499 | $as_echo "$ac_try_echo"; } >&5 | |
4500 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4501 | ac_status=$? |
81ecdfbb RW |
4502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4503 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4504 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4505 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4506 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4507 | # `rm'. | |
4508 | for ac_file in conftest.exe conftest conftest.*; do | |
4509 | test -f "$ac_file" || continue | |
4510 | case $ac_file in | |
81ecdfbb | 4511 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4512 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4513 | break;; |
4514 | * ) break;; | |
4515 | esac | |
4516 | done | |
4517 | else | |
81ecdfbb RW |
4518 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4519 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4520 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4521 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4522 | fi |
d0ac1c44 | 4523 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4525 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4526 | |
4527 | rm -f conftest.$ac_ext | |
4528 | EXEEXT=$ac_cv_exeext | |
4529 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4531 | /* end confdefs.h. */ | |
4532 | #include <stdio.h> | |
4533 | int | |
4534 | main () | |
4535 | { | |
4536 | FILE *f = fopen ("conftest.out", "w"); | |
4537 | return ferror (f) || fclose (f) != 0; | |
4538 | ||
4539 | ; | |
4540 | return 0; | |
4541 | } | |
4542 | _ACEOF | |
4543 | ac_clean_files="$ac_clean_files conftest.out" | |
4544 | # Check that the compiler produces executables we can run. If not, either | |
4545 | # the compiler is broken, or we cross compile. | |
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4547 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4548 | if test "$cross_compiling" != yes; then | |
4549 | { { ac_try="$ac_link" | |
4550 | case "(($ac_try" in | |
4551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4552 | *) ac_try_echo=$ac_try;; | |
4553 | esac | |
4554 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4555 | $as_echo "$ac_try_echo"; } >&5 | |
4556 | (eval "$ac_link") 2>&5 | |
4557 | ac_status=$? | |
4558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4559 | test $ac_status = 0; } | |
4560 | if { ac_try='./conftest$ac_cv_exeext' | |
4561 | { { case "(($ac_try" in | |
4562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4563 | *) ac_try_echo=$ac_try;; | |
4564 | esac | |
4565 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4566 | $as_echo "$ac_try_echo"; } >&5 | |
4567 | (eval "$ac_try") 2>&5 | |
4568 | ac_status=$? | |
4569 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4570 | test $ac_status = 0; }; }; then | |
4571 | cross_compiling=no | |
4572 | else | |
4573 | if test "$cross_compiling" = maybe; then | |
4574 | cross_compiling=yes | |
4575 | else | |
4576 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4577 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4578 | as_fn_error $? "cannot run C compiled programs. | |
4579 | If you meant to cross compile, use \`--host'. | |
4580 | See \`config.log' for more details" "$LINENO" 5; } | |
4581 | fi | |
4582 | fi | |
4583 | fi | |
4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4585 | $as_echo "$cross_compiling" >&6; } | |
4586 | ||
4587 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4588 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4590 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4591 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4592 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4593 | else |
81ecdfbb | 4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4595 | /* end confdefs.h. */ |
4596 | ||
4597 | int | |
4598 | main () | |
4599 | { | |
4600 | ||
4601 | ; | |
4602 | return 0; | |
4603 | } | |
4604 | _ACEOF | |
4605 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4606 | if { { ac_try="$ac_compile" |
4607 | case "(($ac_try" in | |
4608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4609 | *) ac_try_echo=$ac_try;; | |
4610 | esac | |
4611 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4612 | $as_echo "$ac_try_echo"; } >&5 | |
4613 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4614 | ac_status=$? |
81ecdfbb RW |
4615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4616 | test $ac_status = 0; }; then : | |
4617 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4618 | test -f "$ac_file" || continue; | |
c6b750e1 | 4619 | case $ac_file in |
81ecdfbb | 4620 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4621 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4622 | break;; | |
4623 | esac | |
4624 | done | |
cac3d6c4 | 4625 | else |
81ecdfbb | 4626 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4627 | sed 's/^/| /' conftest.$ac_ext >&5 |
4628 | ||
81ecdfbb RW |
4629 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4630 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4631 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4632 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4633 | fi |
c6b750e1 DJ |
4634 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4635 | fi | |
81ecdfbb RW |
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4637 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4638 | OBJEXT=$ac_cv_objext |
4639 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4641 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4642 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4643 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4644 | else |
81ecdfbb | 4645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4646 | /* end confdefs.h. */ |
4647 | ||
4648 | int | |
4649 | main () | |
4650 | { | |
4651 | #ifndef __GNUC__ | |
4652 | choke me | |
4653 | #endif | |
4654 | ||
4655 | ; | |
4656 | return 0; | |
4657 | } | |
4658 | _ACEOF | |
81ecdfbb | 4659 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4660 | ac_compiler_gnu=yes |
4661 | else | |
81ecdfbb | 4662 | ac_compiler_gnu=no |
c6b750e1 | 4663 | fi |
81ecdfbb | 4664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4665 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4666 | ||
4667 | fi | |
81ecdfbb RW |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4669 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4670 | if test $ac_compiler_gnu = yes; then | |
4671 | GCC=yes | |
4672 | else | |
4673 | GCC= | |
4674 | fi | |
c6b750e1 DJ |
4675 | ac_test_CFLAGS=${CFLAGS+set} |
4676 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4678 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4679 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4680 | $as_echo_n "(cached) " >&6 |
4681 | else | |
4682 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4683 | ac_c_werror_flag=yes | |
4684 | ac_cv_prog_cc_g=no | |
4685 | CFLAGS="-g" | |
4686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4687 | /* end confdefs.h. */ |
4688 | ||
4689 | int | |
4690 | main () | |
4691 | { | |
4692 | ||
4693 | ; | |
4694 | return 0; | |
4695 | } | |
4696 | _ACEOF | |
81ecdfbb | 4697 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4698 | ac_cv_prog_cc_g=yes |
4699 | else | |
81ecdfbb RW |
4700 | CFLAGS="" |
4701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4702 | /* end confdefs.h. */ | |
4703 | ||
4704 | int | |
4705 | main () | |
4706 | { | |
4707 | ||
4708 | ; | |
4709 | return 0; | |
4710 | } | |
4711 | _ACEOF | |
4712 | if ac_fn_c_try_compile "$LINENO"; then : | |
4713 | ||
4714 | else | |
4715 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4716 | CFLAGS="-g" | |
4717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4718 | /* end confdefs.h. */ | |
cac3d6c4 | 4719 | |
81ecdfbb RW |
4720 | int |
4721 | main () | |
4722 | { | |
4723 | ||
4724 | ; | |
4725 | return 0; | |
4726 | } | |
4727 | _ACEOF | |
4728 | if ac_fn_c_try_compile "$LINENO"; then : | |
4729 | ac_cv_prog_cc_g=yes | |
4730 | fi | |
4731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4732 | fi |
81ecdfbb | 4733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4734 | fi |
81ecdfbb RW |
4735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4736 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4737 | fi | |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4739 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4740 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4741 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4742 | elif test $ac_cv_prog_cc_g = yes; then |
4743 | if test "$GCC" = yes; then | |
4744 | CFLAGS="-g -O2" | |
4745 | else | |
4746 | CFLAGS="-g" | |
4747 | fi | |
4748 | else | |
4749 | if test "$GCC" = yes; then | |
4750 | CFLAGS="-O2" | |
4751 | else | |
4752 | CFLAGS= | |
4753 | fi | |
4754 | fi | |
81ecdfbb RW |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4756 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4757 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4758 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4759 | else |
81ecdfbb | 4760 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4761 | ac_save_CC=$CC |
81ecdfbb | 4762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4763 | /* end confdefs.h. */ |
4764 | #include <stdarg.h> | |
4765 | #include <stdio.h> | |
d0ac1c44 | 4766 | struct stat; |
c6b750e1 DJ |
4767 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4768 | struct buf { int x; }; | |
4769 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4770 | static char *e (p, i) | |
4771 | char **p; | |
4772 | int i; | |
4773 | { | |
4774 | return p[i]; | |
4775 | } | |
4776 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4777 | { | |
4778 | char *s; | |
4779 | va_list v; | |
4780 | va_start (v,p); | |
4781 | s = g (p, va_arg (v,int)); | |
4782 | va_end (v); | |
4783 | return s; | |
4784 | } | |
4785 | ||
4786 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4787 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4788 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4789 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4790 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4791 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4792 | that's true only with -std. */ |
c6b750e1 DJ |
4793 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4794 | ||
81ecdfbb RW |
4795 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4796 | inside strings and character constants. */ | |
4797 | #define FOO(x) 'x' | |
4798 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4799 | ||
c6b750e1 DJ |
4800 | int test (int i, double x); |
4801 | struct s1 {int (*f) (int a);}; | |
4802 | struct s2 {int (*f) (double a);}; | |
4803 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4804 | int argc; | |
4805 | char **argv; | |
4806 | int | |
4807 | main () | |
4808 | { | |
4809 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4810 | ; | |
4811 | return 0; | |
4812 | } | |
4813 | _ACEOF | |
81ecdfbb RW |
4814 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4815 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4816 | do |
4817 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4818 | if ac_fn_c_try_compile "$LINENO"; then : |
4819 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4820 | fi |
81ecdfbb RW |
4821 | rm -f core conftest.err conftest.$ac_objext |
4822 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4823 | done |
81ecdfbb | 4824 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4825 | CC=$ac_save_CC |
4826 | ||
4827 | fi | |
81ecdfbb RW |
4828 | # AC_CACHE_VAL |
4829 | case "x$ac_cv_prog_cc_c89" in | |
4830 | x) | |
4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4832 | $as_echo "none needed" >&6; } ;; | |
4833 | xno) | |
4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4835 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4836 | *) |
81ecdfbb RW |
4837 | CC="$CC $ac_cv_prog_cc_c89" |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4839 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4840 | esac |
81ecdfbb | 4841 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4842 | |
c6b750e1 DJ |
4843 | fi |
4844 | ||
c6b750e1 DJ |
4845 | ac_ext=c |
4846 | ac_cpp='$CPP $CPPFLAGS' | |
4847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4850 | |
81ecdfbb | 4851 | ac_ext=cpp |
18f6b6ee PB |
4852 | ac_cpp='$CXXCPP $CPPFLAGS' |
4853 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4854 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4855 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4856 | if test -z "$CXX"; then |
4857 | if test -n "$CCC"; then | |
4858 | CXX=$CCC | |
4859 | else | |
4860 | if test -n "$ac_tool_prefix"; then | |
4861 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4862 | do |
4863 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4864 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4866 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4867 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 4868 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4869 | else |
4870 | if test -n "$CXX"; then | |
4871 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4872 | else | |
4873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4874 | for as_dir in $PATH | |
4875 | do | |
4876 | IFS=$as_save_IFS | |
4877 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4878 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4880 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4882 | break 2 |
4883 | fi | |
4884 | done | |
81ecdfbb RW |
4885 | done |
4886 | IFS=$as_save_IFS | |
512b7dfb | 4887 | |
18f6b6ee PB |
4888 | fi |
4889 | fi | |
4890 | CXX=$ac_cv_prog_CXX | |
4891 | if test -n "$CXX"; then | |
81ecdfbb RW |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4893 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4894 | else |
81ecdfbb RW |
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4896 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4897 | fi |
4898 | ||
81ecdfbb | 4899 | |
18f6b6ee PB |
4900 | test -n "$CXX" && break |
4901 | done | |
4902 | fi | |
4903 | if test -z "$CXX"; then | |
4904 | ac_ct_CXX=$CXX | |
81ecdfbb | 4905 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4906 | do |
4907 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4908 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4910 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4911 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 4912 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4913 | else |
4914 | if test -n "$ac_ct_CXX"; then | |
4915 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4916 | else | |
4917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4918 | for as_dir in $PATH | |
4919 | do | |
4920 | IFS=$as_save_IFS | |
4921 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4922 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4924 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4926 | break 2 |
512b7dfb | 4927 | fi |
18f6b6ee | 4928 | done |
81ecdfbb RW |
4929 | done |
4930 | IFS=$as_save_IFS | |
512b7dfb | 4931 | |
18f6b6ee PB |
4932 | fi |
4933 | fi | |
4934 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4935 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4937 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4938 | else |
81ecdfbb RW |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4940 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4941 | fi |
4942 | ||
81ecdfbb | 4943 | |
18f6b6ee PB |
4944 | test -n "$ac_ct_CXX" && break |
4945 | done | |
18f6b6ee | 4946 | |
81ecdfbb RW |
4947 | if test "x$ac_ct_CXX" = x; then |
4948 | CXX="g++" | |
4949 | else | |
4950 | case $cross_compiling:$ac_tool_warned in | |
4951 | yes:) | |
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4953 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4954 | ac_tool_warned=yes ;; | |
4955 | esac | |
4956 | CXX=$ac_ct_CXX | |
4957 | fi | |
18f6b6ee PB |
4958 | fi |
4959 | ||
81ecdfbb RW |
4960 | fi |
4961 | fi | |
18f6b6ee | 4962 | # Provide some information about the compiler. |
81ecdfbb RW |
4963 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4964 | set X $ac_compile | |
4965 | ac_compiler=$2 | |
4966 | for ac_option in --version -v -V -qversion; do | |
4967 | { { ac_try="$ac_compiler $ac_option >&5" | |
4968 | case "(($ac_try" in | |
4969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4970 | *) ac_try_echo=$ac_try;; | |
4971 | esac | |
4972 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4973 | $as_echo "$ac_try_echo"; } >&5 | |
4974 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4975 | ac_status=$? |
81ecdfbb RW |
4976 | if test -s conftest.err; then |
4977 | sed '10a\ | |
4978 | ... rest of stderr output deleted ... | |
4979 | 10q' conftest.err >conftest.er1 | |
4980 | cat conftest.er1 >&5 | |
81ecdfbb | 4981 | fi |
d0ac1c44 | 4982 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4984 | test $ac_status = 0; } | |
4985 | done | |
18f6b6ee | 4986 | |
81ecdfbb RW |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4988 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 4989 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 4990 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 4991 | else |
81ecdfbb | 4992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4993 | /* end confdefs.h. */ |
4994 | ||
4995 | int | |
4996 | main () | |
4997 | { | |
4998 | #ifndef __GNUC__ | |
4999 | choke me | |
5000 | #endif | |
5001 | ||
5002 | ; | |
5003 | return 0; | |
5004 | } | |
5005 | _ACEOF | |
81ecdfbb | 5006 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5007 | ac_compiler_gnu=yes |
5008 | else | |
81ecdfbb | 5009 | ac_compiler_gnu=no |
18f6b6ee | 5010 | fi |
81ecdfbb | 5011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
5012 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5013 | ||
5014 | fi | |
81ecdfbb RW |
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5016 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5017 | if test $ac_compiler_gnu = yes; then | |
5018 | GXX=yes | |
5019 | else | |
5020 | GXX= | |
5021 | fi | |
18f6b6ee PB |
5022 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5023 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5025 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 5026 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
5027 | $as_echo_n "(cached) " >&6 |
5028 | else | |
5029 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5030 | ac_cxx_werror_flag=yes | |
5031 | ac_cv_prog_cxx_g=no | |
5032 | CXXFLAGS="-g" | |
5033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
5034 | /* end confdefs.h. */ |
5035 | ||
5036 | int | |
5037 | main () | |
5038 | { | |
5039 | ||
5040 | ; | |
5041 | return 0; | |
5042 | } | |
5043 | _ACEOF | |
81ecdfbb | 5044 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5045 | ac_cv_prog_cxx_g=yes |
5046 | else | |
81ecdfbb RW |
5047 | CXXFLAGS="" |
5048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5049 | /* end confdefs.h. */ |
81ecdfbb | 5050 | |
18f6b6ee PB |
5051 | int |
5052 | main () | |
5053 | { | |
81ecdfbb | 5054 | |
18f6b6ee PB |
5055 | ; |
5056 | return 0; | |
5057 | } | |
5058 | _ACEOF | |
81ecdfbb | 5059 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5060 | |
81ecdfbb RW |
5061 | else |
5062 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5063 | CXXFLAGS="-g" | |
5064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5065 | /* end confdefs.h. */ |
81ecdfbb | 5066 | |
18f6b6ee PB |
5067 | int |
5068 | main () | |
5069 | { | |
81ecdfbb | 5070 | |
18f6b6ee PB |
5071 | ; |
5072 | return 0; | |
5073 | } | |
5074 | _ACEOF | |
81ecdfbb RW |
5075 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5076 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5077 | fi |
81ecdfbb RW |
5078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5079 | fi | |
5080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5081 | fi | |
5082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5083 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5084 | fi | |
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5086 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5087 | if test "$ac_test_CXXFLAGS" = set; then | |
5088 | CXXFLAGS=$ac_save_CXXFLAGS | |
5089 | elif test $ac_cv_prog_cxx_g = yes; then | |
5090 | if test "$GXX" = yes; then | |
5091 | CXXFLAGS="-g -O2" | |
5092 | else | |
5093 | CXXFLAGS="-g" | |
5094 | fi | |
5095 | else | |
5096 | if test "$GXX" = yes; then | |
5097 | CXXFLAGS="-O2" | |
5098 | else | |
5099 | CXXFLAGS= | |
5100 | fi | |
18f6b6ee | 5101 | fi |
18f6b6ee PB |
5102 | ac_ext=c |
5103 | ac_cpp='$CPP $CPPFLAGS' | |
5104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5107 | ||
5108 | ||
5109 | # We must set the default linker to the linker used by gcc for the correct | |
5110 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5111 | # set the LD default to the ld used by gcc. | |
5112 | if test -z "$LD"; then | |
5113 | if test "$GCC" = yes; then | |
5114 | case $build in | |
5115 | *-*-mingw*) | |
5116 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5117 | *) | |
5118 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5119 | esac | |
5120 | case $gcc_prog_ld in | |
5121 | # Accept absolute paths. | |
5122 | [\\/]* | [A-Za-z]:[\\/]*) | |
5123 | LD="$gcc_prog_ld" ;; | |
5124 | esac | |
5125 | fi | |
512b7dfb PB |
5126 | fi |
5127 | ||
b3676d82 EB |
5128 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5129 | have_static_libs=no | |
5130 | if test "$GCC" = yes; then | |
5131 | saved_LDFLAGS="$LDFLAGS" | |
5132 | ||
5133 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5135 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5136 | ac_ext=cpp | |
5137 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5138 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5139 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5140 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5141 | ||
5142 | ||
5143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5144 | /* end confdefs.h. */ | |
a882be68 EB |
5145 | |
5146 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5147 | #error -static-libstdc++ not implemented | |
5148 | #endif | |
b3676d82 EB |
5149 | int main() {} |
5150 | _ACEOF | |
5151 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5153 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5154 | else | |
5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5156 | $as_echo "no" >&6; } | |
5157 | fi | |
5158 | rm -f core conftest.err conftest.$ac_objext \ | |
5159 | conftest$ac_exeext conftest.$ac_ext | |
5160 | ac_ext=c | |
5161 | ac_cpp='$CPP $CPPFLAGS' | |
5162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5165 | ||
5166 | ||
5167 | LDFLAGS="$saved_LDFLAGS" | |
5168 | fi | |
5169 | ||
512b7dfb PB |
5170 | |
5171 | ||
5172 | ||
c6b750e1 | 5173 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5174 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5175 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5177 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5178 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5179 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5180 | else |
512b7dfb PB |
5181 | if test -n "$GNATBIND"; then |
5182 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5183 | else |
c6b750e1 DJ |
5184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5185 | for as_dir in $PATH | |
5186 | do | |
5187 | IFS=$as_save_IFS | |
5188 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5189 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5191 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5193 | break 2 |
5194 | fi | |
5195 | done | |
81ecdfbb RW |
5196 | done |
5197 | IFS=$as_save_IFS | |
c6b750e1 | 5198 | |
9e07f89d NN |
5199 | fi |
5200 | fi | |
512b7dfb PB |
5201 | GNATBIND=$ac_cv_prog_GNATBIND |
5202 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5204 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5205 | else |
81ecdfbb RW |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5207 | $as_echo "no" >&6; } | |
9e07f89d NN |
5208 | fi |
5209 | ||
81ecdfbb | 5210 | |
c6b750e1 | 5211 | fi |
512b7dfb PB |
5212 | if test -z "$ac_cv_prog_GNATBIND"; then |
5213 | ac_ct_GNATBIND=$GNATBIND | |
5214 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5215 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5217 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5218 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5219 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5220 | else |
512b7dfb PB |
5221 | if test -n "$ac_ct_GNATBIND"; then |
5222 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5223 | else |
c6b750e1 DJ |
5224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5225 | for as_dir in $PATH | |
5226 | do | |
5227 | IFS=$as_save_IFS | |
5228 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5229 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5231 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5233 | break 2 |
5234 | fi | |
5235 | done | |
81ecdfbb RW |
5236 | done |
5237 | IFS=$as_save_IFS | |
c6b750e1 | 5238 | |
9e07f89d NN |
5239 | fi |
5240 | fi | |
512b7dfb PB |
5241 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5242 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5244 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5245 | else |
81ecdfbb RW |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5247 | $as_echo "no" >&6; } | |
9e07f89d NN |
5248 | fi |
5249 | ||
81ecdfbb RW |
5250 | if test "x$ac_ct_GNATBIND" = x; then |
5251 | GNATBIND="no" | |
5252 | else | |
5253 | case $cross_compiling:$ac_tool_warned in | |
5254 | yes:) | |
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5256 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5257 | ac_tool_warned=yes ;; | |
5258 | esac | |
5259 | GNATBIND=$ac_ct_GNATBIND | |
5260 | fi | |
24ff9987 | 5261 | else |
512b7dfb | 5262 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5263 | fi |
5264 | ||
7df2cd5d | 5265 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5266 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5267 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5269 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5270 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5271 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5272 | else |
512b7dfb PB |
5273 | if test -n "$GNATMAKE"; then |
5274 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5275 | else |
5276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5277 | for as_dir in $PATH | |
5278 | do | |
5279 | IFS=$as_save_IFS | |
5280 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5281 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5283 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5285 | break 2 |
5286 | fi | |
5287 | done | |
81ecdfbb RW |
5288 | done |
5289 | IFS=$as_save_IFS | |
7df2cd5d PB |
5290 | |
5291 | fi | |
5292 | fi | |
512b7dfb PB |
5293 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5294 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5296 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5297 | else |
81ecdfbb RW |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5299 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5300 | fi |
5301 | ||
81ecdfbb | 5302 | |
7df2cd5d | 5303 | fi |
512b7dfb PB |
5304 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5305 | ac_ct_GNATMAKE=$GNATMAKE | |
5306 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5307 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5309 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5310 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5311 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5312 | else |
512b7dfb PB |
5313 | if test -n "$ac_ct_GNATMAKE"; then |
5314 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5315 | else |
5316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5317 | for as_dir in $PATH | |
5318 | do | |
5319 | IFS=$as_save_IFS | |
5320 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5321 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5322 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5323 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5325 | break 2 |
5326 | fi | |
5327 | done | |
81ecdfbb RW |
5328 | done |
5329 | IFS=$as_save_IFS | |
7df2cd5d | 5330 | |
7df2cd5d PB |
5331 | fi |
5332 | fi | |
512b7dfb PB |
5333 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5334 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5336 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5337 | else |
81ecdfbb RW |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5339 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5340 | fi |
5341 | ||
81ecdfbb RW |
5342 | if test "x$ac_ct_GNATMAKE" = x; then |
5343 | GNATMAKE="no" | |
5344 | else | |
5345 | case $cross_compiling:$ac_tool_warned in | |
5346 | yes:) | |
5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5348 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5349 | ac_tool_warned=yes ;; | |
5350 | esac | |
5351 | GNATMAKE=$ac_ct_GNATMAKE | |
5352 | fi | |
7df2cd5d | 5353 | else |
512b7dfb | 5354 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5355 | fi |
5356 | ||
81ecdfbb RW |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5358 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
d0ac1c44 | 5359 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5360 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5361 | else |
5362 | cat >conftest.adb <<EOF | |
5363 | procedure conftest is begin null; end conftest; | |
5364 | EOF | |
5365 | acx_cv_cc_gcc_supports_ada=no | |
5366 | # There is a bug in old released versions of GCC which causes the | |
5367 | # driver to exit successfully when the appropriate language module | |
5368 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5369 | # Therefore we must check for the error message as well as an | |
5370 | # unsuccessful exit. | |
b8908782 DD |
5371 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5372 | # given a .adb file, but produce no object file. So we must check | |
5373 | # if an object file was really produced to guard against this. | |
9e07f89d | 5374 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5375 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5376 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5377 | fi |
5378 | rm -f conftest.* | |
5379 | fi | |
81ecdfbb RW |
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5381 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5382 | |
64b986c0 | 5383 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5384 | have_gnat=yes |
5385 | else | |
5386 | have_gnat=no | |
5387 | fi | |
5388 | ||
81ecdfbb RW |
5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5390 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5391 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5392 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5393 | else |
5394 | echo abfoo >t1 | |
5395 | echo cdfoo >t2 | |
da17fe9d | 5396 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5397 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5398 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5399 | : | |
5400 | else | |
5401 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5402 | fi | |
5403 | fi | |
b8908782 DD |
5404 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5405 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5406 | : |
b8908782 DD |
5407 | else |
5408 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5409 | fi | |
5410 | fi | |
5411 | rm t1 t2 | |
5412 | ||
5413 | fi | |
81ecdfbb RW |
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5415 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5416 | do_compare="$gcc_cv_prog_cmp_skip" |
5417 | ||
5418 | ||
9e07f89d | 5419 | |
ffdd6afc ILT |
5420 | # Check whether --enable-bootstrap was given. |
5421 | if test "${enable_bootstrap+set}" = set; then : | |
5422 | enableval=$enable_bootstrap; | |
5423 | else | |
5424 | enable_bootstrap=default | |
5425 | fi | |
5426 | ||
5427 | ||
5428 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5429 | if test -r $srcdir/gcc/configure; then | |
5430 | have_compiler=yes | |
5431 | else | |
5432 | have_compiler=no | |
5433 | fi | |
5434 | ||
5435 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5436 | *:*:*:no) ;; | |
5437 | ||
5438 | # Default behavior. Enable bootstrap if we have a compiler | |
5439 | # and we are in a native configuration. | |
5440 | yes:$build:$build:default) | |
5441 | enable_bootstrap=yes ;; | |
5442 | ||
5443 | *:*:*:default) | |
5444 | enable_bootstrap=no ;; | |
5445 | ||
5446 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5447 | yes:$build:$build:yes) | |
5448 | ;; | |
5449 | ||
5450 | # Other configurations, but we have a compiler. Assume the user knows | |
5451 | # what he's doing. | |
5452 | yes:*:*:yes) | |
5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5454 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5455 | ;; | |
5456 | ||
5457 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5458 | no:*:*:yes) | |
d0ac1c44 | 5459 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5460 | |
5461 | # Fail if wrong command line | |
5462 | *) | |
d0ac1c44 | 5463 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5464 | ;; |
5465 | esac | |
5466 | ||
ce6c656d L |
5467 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5468 | # C++98 compiler can still start the bootstrap. | |
5469 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5470 | CXX="$CXX -std=gnu++98" | |
5471 | fi | |
5472 | ||
d5f2ee2e KG |
5473 | # Used for setting $lt_cv_objdir |
5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5475 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 5476 | if ${lt_cv_objdir+:} false; then : |
d5f2ee2e KG |
5477 | $as_echo_n "(cached) " >&6 |
5478 | else | |
5479 | rm -f .libs 2>/dev/null | |
5480 | mkdir .libs 2>/dev/null | |
5481 | if test -d .libs; then | |
5482 | lt_cv_objdir=.libs | |
5483 | else | |
5484 | # MS-DOS does not allow filenames that begin with a dot. | |
5485 | lt_cv_objdir=_libs | |
5486 | fi | |
5487 | rmdir .libs 2>/dev/null | |
5488 | fi | |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5490 | $as_echo "$lt_cv_objdir" >&6; } | |
5491 | objdir=$lt_cv_objdir | |
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | cat >>confdefs.h <<_ACEOF | |
5498 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5499 | _ACEOF | |
5500 | ||
5501 | ||
5502 | ||
e8a5fa9c | 5503 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5504 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5505 | gmpinc= |
4b900473 | 5506 | have_gmp=no |
e8a5fa9c | 5507 | |
301a9420 AM |
5508 | # Check for debuginfod |
5509 | ||
5510 | ||
5511 | # Enable debuginfod | |
5512 | ||
5513 | # Check whether --with-debuginfod was given. | |
5514 | if test "${with_debuginfod+set}" = set; then : | |
5515 | withval=$with_debuginfod; | |
5516 | else | |
5517 | with_debuginfod=auto | |
5518 | fi | |
5519 | ||
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5 | |
5521 | $as_echo_n "checking whether to use debuginfod... " >&6; } | |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5 | |
5523 | $as_echo "$with_debuginfod" >&6; } | |
5524 | ||
5525 | if test "${with_debuginfod}" = no; then | |
5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5 | |
5527 | $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;} | |
5528 | else | |
5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debuginfod_begin in -ldebuginfod" >&5 | |
5530 | $as_echo_n "checking for debuginfod_begin in -ldebuginfod... " >&6; } | |
5531 | if ${ac_cv_lib_debuginfod_debuginfod_begin+:} false; then : | |
5532 | $as_echo_n "(cached) " >&6 | |
5533 | else | |
5534 | ac_check_lib_save_LIBS=$LIBS | |
5535 | LIBS="-ldebuginfod $LIBS" | |
5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5537 | /* end confdefs.h. */ | |
5538 | ||
5539 | /* Override any GCC internal prototype to avoid an error. | |
5540 | Use char because int might match the return type of a GCC | |
5541 | builtin and then its argument prototype would still apply. */ | |
5542 | #ifdef __cplusplus | |
5543 | extern "C" | |
5544 | #endif | |
5545 | char debuginfod_begin (); | |
5546 | int | |
5547 | main () | |
5548 | { | |
5549 | return debuginfod_begin (); | |
5550 | ; | |
5551 | return 0; | |
5552 | } | |
5553 | _ACEOF | |
5554 | if ac_fn_c_try_link "$LINENO"; then : | |
5555 | ac_cv_lib_debuginfod_debuginfod_begin=yes | |
5556 | else | |
5557 | ac_cv_lib_debuginfod_debuginfod_begin=no | |
5558 | fi | |
5559 | rm -f core conftest.err conftest.$ac_objext \ | |
5560 | conftest$ac_exeext conftest.$ac_ext | |
5561 | LIBS=$ac_check_lib_save_LIBS | |
5562 | fi | |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_debuginfod_debuginfod_begin" >&5 | |
5564 | $as_echo "$ac_cv_lib_debuginfod_debuginfod_begin" >&6; } | |
5565 | if test "x$ac_cv_lib_debuginfod_debuginfod_begin" = xyes; then : | |
5566 | have_debuginfod_lib=yes | |
5567 | fi | |
5568 | ||
5569 | ac_fn_c_check_decl "$LINENO" "debuginfod_begin" "ac_cv_have_decl_debuginfod_begin" "#include <elfutils/debuginfod.h> | |
5570 | " | |
5571 | if test "x$ac_cv_have_decl_debuginfod_begin" = xyes; then : | |
5572 | have_debuginfod_h=yes | |
5573 | fi | |
5574 | ||
5575 | if test "x$have_debuginfod_lib" = "xyes" -a \ | |
5576 | "x$have_debuginfod_h" = "xyes"; then | |
5577 | ||
5578 | $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h | |
5579 | ||
5580 | LIBDEBUGINFOD="-ldebuginfod" | |
5581 | ||
5582 | else | |
5583 | ||
5584 | if test "$with_debuginfod" = yes; then | |
5585 | as_fn_error $? "debuginfod is missing or unusable" "$LINENO" 5 | |
5586 | else | |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&5 | |
5588 | $as_echo "$as_me: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&2;} | |
5589 | fi | |
5590 | fi | |
5591 | fi | |
5592 | ||
5593 | ||
e8a5fa9c RW |
5594 | # Specify a location for mpc |
5595 | # check for this first so it ends up on the link line before mpfr. | |
5596 | ||
81ecdfbb RW |
5597 | # Check whether --with-mpc was given. |
5598 | if test "${with_mpc+set}" = set; then : | |
5599 | withval=$with_mpc; | |
5600 | fi | |
e8a5fa9c | 5601 | |
e8a5fa9c | 5602 | |
e552509b | 5603 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5604 | if test "${with_mpc_include+set}" = set; then : |
5605 | withval=$with_mpc_include; | |
5606 | fi | |
e8a5fa9c | 5607 | |
e8a5fa9c | 5608 | |
e552509b | 5609 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5610 | if test "${with_mpc_lib+set}" = set; then : |
5611 | withval=$with_mpc_lib; | |
5612 | fi | |
e8a5fa9c | 5613 | |
e8a5fa9c RW |
5614 | |
5615 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5616 | gmplibs="-L$with_mpc/lib $gmplibs" |
5617 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5618 | fi |
5619 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5620 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5621 | fi |
5622 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5623 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5624 | fi |
5625 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5626 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5627 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5628 | # Do not test the mpc version. Assume that it is sufficient, since |
5629 | # it is in the source tree, and the library has not been built yet | |
5630 | # but it would be included on the link line in the version check below | |
5631 | # hence making the test fail. | |
d9b76ff9 | 5632 | have_gmp=yes |
e8a5fa9c | 5633 | fi |
4b900473 | 5634 | |
11b04d1f DD |
5635 | # Specify a location for mpfr |
5636 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5637 | |
81ecdfbb RW |
5638 | # Check whether --with-mpfr-dir was given. |
5639 | if test "${with_mpfr_dir+set}" = set; then : | |
d0ac1c44 | 5640 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
81ecdfbb RW |
5641 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5642 | fi | |
5643 | ||
11b04d1f DD |
5644 | |
5645 | ||
81ecdfbb RW |
5646 | # Check whether --with-mpfr was given. |
5647 | if test "${with_mpfr+set}" = set; then : | |
5648 | withval=$with_mpfr; | |
5649 | fi | |
c6b750e1 | 5650 | |
11b04d1f | 5651 | |
e552509b | 5652 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5653 | if test "${with_mpfr_include+set}" = set; then : |
5654 | withval=$with_mpfr_include; | |
5655 | fi | |
c6b750e1 | 5656 | |
8a0d8a5c | 5657 | |
e552509b | 5658 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5659 | if test "${with_mpfr_lib+set}" = set; then : |
5660 | withval=$with_mpfr_lib; | |
5661 | fi | |
8a0d8a5c | 5662 | |
11b04d1f DD |
5663 | |
5664 | if test "x$with_mpfr" != x; then | |
5665 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5666 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5667 | fi |
8a0d8a5c | 5668 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5669 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5670 | fi |
5671 | if test "x$with_mpfr_lib" != x; then | |
5672 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5673 | fi | |
4b900473 | 5674 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 5675 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 5676 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 5677 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 5678 | fi |
05a13254 NC |
5679 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5680 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5681 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
5682 | # Do not test the mpfr version. Assume that it is sufficient, since |
5683 | # it is in the source tree, and the library has not been built yet | |
5684 | # but it would be included on the link line in the version check below | |
5685 | # hence making the test fail. | |
5686 | have_gmp=yes | |
5687 | fi | |
11b04d1f | 5688 | |
4b1cb4fe | 5689 | # Specify a location for gmp |
c6b750e1 | 5690 | |
81ecdfbb RW |
5691 | # Check whether --with-gmp-dir was given. |
5692 | if test "${with_gmp_dir+set}" = set; then : | |
d0ac1c44 | 5693 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
81ecdfbb RW |
5694 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5695 | fi | |
5696 | ||
4b1cb4fe DD |
5697 | |
5698 | ||
81ecdfbb RW |
5699 | # Check whether --with-gmp was given. |
5700 | if test "${with_gmp+set}" = set; then : | |
5701 | withval=$with_gmp; | |
5702 | fi | |
c6b750e1 | 5703 | |
4b1cb4fe | 5704 | |
e552509b | 5705 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5706 | if test "${with_gmp_include+set}" = set; then : |
5707 | withval=$with_gmp_include; | |
5708 | fi | |
c6b750e1 | 5709 | |
8a0d8a5c | 5710 | |
e552509b | 5711 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5712 | if test "${with_gmp_lib+set}" = set; then : |
5713 | withval=$with_gmp_lib; | |
5714 | fi | |
8a0d8a5c PB |
5715 | |
5716 | ||
4b1cb4fe | 5717 | |
11b04d1f DD |
5718 | if test "x$with_gmp" != x; then |
5719 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5720 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5721 | fi |
8a0d8a5c PB |
5722 | if test "x$with_gmp_include" != x; then |
5723 | gmpinc="-I$with_gmp_include $gmpinc" | |
5724 | fi | |
5725 | if test "x$with_gmp_lib" != x; then | |
5726 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5727 | fi | |
4b900473 | 5728 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5729 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5730 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5731 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5732 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5733 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5734 | # Do not test the gmp version. Assume that it is sufficient, since |
5735 | # it is in the source tree, and the library has not been built yet | |
5736 | # but it would be included on the link line in the version check below | |
5737 | # hence making the test fail. | |
5738 | have_gmp=yes | |
5739 | fi | |
4b1cb4fe | 5740 | |
ceb92e78 | 5741 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5742 | have_gmp=yes |
5743 | saved_CFLAGS="$CFLAGS" | |
5744 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5745 | # Check for the recommended and required versions of GMP. |
5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5747 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
301a9420 | 5748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a6b5846e KG |
5749 | /* end confdefs.h. */ |
5750 | #include "gmp.h" | |
5751 | int | |
5752 | main () | |
5753 | { | |
5754 | ||
5755 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5756 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5757 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5758 | choke me |
5759 | #endif | |
5760 | ||
5761 | ; | |
5762 | return 0; | |
5763 | } | |
5764 | _ACEOF | |
5765 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5767 | /* end confdefs.h. */ |
a6b5846e | 5768 | #include <gmp.h> |
c6b750e1 DJ |
5769 | int |
5770 | main () | |
5771 | { | |
4b1cb4fe | 5772 | |
a6b5846e KG |
5773 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5774 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5775 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5776 | choke me |
5777 | #endif | |
c6b750e1 DJ |
5778 | |
5779 | ; | |
5780 | return 0; | |
5781 | } | |
5782 | _ACEOF | |
81ecdfbb RW |
5783 | if ac_fn_c_try_compile "$LINENO"; then : |
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5785 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5786 | else |
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5788 | $as_echo "buggy but acceptable" >&6; } | |
5789 | fi | |
5790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5791 | else |
81ecdfbb RW |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5793 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5794 | fi |
81ecdfbb | 5795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5796 | |
e8a5fa9c | 5797 | # If we have GMP, check the MPFR version. |
4b900473 | 5798 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5799 | # Check for the recommended and required versions of MPFR. |
5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5801 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5803 | /* end confdefs.h. */ |
9b134994 | 5804 | #include <gmp.h> |
4b900473 | 5805 | #include <mpfr.h> |
c6b750e1 DJ |
5806 | int |
5807 | main () | |
5808 | { | |
9b134994 | 5809 | |
7ec59b9e | 5810 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5811 | choke me |
5812 | #endif | |
c6b750e1 DJ |
5813 | |
5814 | ; | |
5815 | return 0; | |
5816 | } | |
5817 | _ACEOF | |
81ecdfbb RW |
5818 | if ac_fn_c_try_compile "$LINENO"; then : |
5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5820 | /* end confdefs.h. */ |
4b1cb4fe | 5821 | #include <gmp.h> |
4b900473 | 5822 | #include <mpfr.h> |
c6b750e1 DJ |
5823 | int |
5824 | main () | |
5825 | { | |
9dbaa842 | 5826 | |
a6b5846e | 5827 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5828 | choke me |
5829 | #endif | |
e8a5fa9c RW |
5830 | |
5831 | ; | |
5832 | return 0; | |
5833 | } | |
5834 | _ACEOF | |
81ecdfbb RW |
5835 | if ac_fn_c_try_compile "$LINENO"; then : |
5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5837 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5838 | else |
81ecdfbb RW |
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5840 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5841 | fi |
81ecdfbb | 5842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5843 | else |
81ecdfbb RW |
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5845 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5846 | fi |
81ecdfbb | 5847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5848 | fi |
5849 | ||
5850 | # Check for the MPC header version. | |
d9b76ff9 | 5851 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5852 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5854 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5856 | /* end confdefs.h. */ |
5857 | #include <mpc.h> | |
5858 | int | |
5859 | main () | |
5860 | { | |
5861 | ||
a6b5846e KG |
5862 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5863 | choke me | |
5864 | #endif | |
5865 | ||
5866 | ; | |
5867 | return 0; | |
5868 | } | |
5869 | _ACEOF | |
5870 | if ac_fn_c_try_compile "$LINENO"; then : | |
5871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5872 | /* end confdefs.h. */ | |
5873 | #include <mpc.h> | |
5874 | int | |
5875 | main () | |
5876 | { | |
5877 | ||
5878 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5879 | choke me |
5880 | #endif | |
5881 | ||
5882 | ; | |
5883 | return 0; | |
5884 | } | |
5885 | _ACEOF | |
81ecdfbb RW |
5886 | if ac_fn_c_try_compile "$LINENO"; then : |
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5888 | $as_echo "yes" >&6; } |
a6b5846e KG |
5889 | else |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5891 | $as_echo "buggy but acceptable" >&6; } | |
5892 | fi | |
5893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5894 | else |
81ecdfbb | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5896 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5897 | fi |
81ecdfbb | 5898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5899 | fi |
5900 | ||
5901 | # Now check the MPFR library. | |
5902 | if test x"$have_gmp" = xyes; then | |
5903 | saved_LIBS="$LIBS" | |
5904 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5906 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5908 | /* end confdefs.h. */ |
d9b76ff9 | 5909 | #include <mpc.h> |
e8a5fa9c RW |
5910 | int |
5911 | main () | |
5912 | { | |
5913 | ||
5914 | mpfr_t n; | |
5915 | mpfr_t x; | |
d9b76ff9 | 5916 | mpc_t c; |
e8a5fa9c RW |
5917 | int t; |
5918 | mpfr_init (n); | |
5919 | mpfr_init (x); | |
5920 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5921 | mpfr_erfc (n, x, GMP_RNDN); | |
5922 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5923 | mpfr_clear(n); |
5924 | mpfr_clear(x); | |
5925 | mpc_init2 (c, 53); | |
5926 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5927 | mpc_cosh (c, c, MPC_RNDNN); | |
5928 | mpc_pow (c, c, c, MPC_RNDNN); | |
5929 | mpc_acosh (c, c, MPC_RNDNN); | |
5930 | mpc_clear (c); | |
c6b750e1 DJ |
5931 | |
5932 | ; | |
5933 | return 0; | |
5934 | } | |
5935 | _ACEOF | |
81ecdfbb RW |
5936 | if ac_fn_c_try_link "$LINENO"; then : |
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5938 | $as_echo "yes" >&6; } | |
c6b750e1 | 5939 | else |
81ecdfbb RW |
5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5941 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5942 | fi |
81ecdfbb RW |
5943 | rm -f core conftest.err conftest.$ac_objext \ |
5944 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5945 | LIBS="$saved_LIBS" |
5946 | fi | |
5947 | ||
4b900473 | 5948 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5949 | |
a6b5846e KG |
5950 | # The library versions listed in the error message below should match |
5951 | # the HARD-minimums enforced above. | |
4b900473 | 5952 | if test x$have_gmp != xyes; then |
d0ac1c44 | 5953 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5954 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5955 | their locations. Source code for these libraries can be found at | |
5956 | their respective hosting sites as well as at | |
5957 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5958 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5959 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5960 | make sure that you have installed both the libraries and the header | |
5961 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5962 | fi |
9dbaa842 DD |
5963 | fi |
5964 | ||
e8a5fa9c RW |
5965 | # Flags needed for both GMP, MPFR and/or MPC. |
5966 | ||
5967 | ||
5968 | ||
4b1cb4fe DD |
5969 | |
5970 | ||
5971 | ||
7ec59b9e | 5972 | |
b3676d82 | 5973 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5974 | |
b3676d82 EB |
5975 | # Check whether --with-stage1-libs was given. |
5976 | if test "${with_stage1_libs+set}" = set; then : | |
5977 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5978 | stage1_libs= | |
e8a5fa9c | 5979 | else |
b3676d82 | 5980 | stage1_libs=$withval |
e8a5fa9c RW |
5981 | fi |
5982 | else | |
68996839 | 5983 | stage1_libs= |
81ecdfbb RW |
5984 | fi |
5985 | ||
e8a5fa9c RW |
5986 | |
5987 | ||
c1a5d03a TT |
5988 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
5989 | # default is yes if gcc is being built; no otherwise. The reason for | |
5990 | # this default is that gdb is sometimes linked against GNU Source | |
5991 | # Highlight, which is a shared library that uses C++ exceptions. In | |
5992 | # this case, -static-libstdc++ will cause crashes. | |
5993 | ||
5994 | # Check whether --with-static-standard-libraries was given. | |
5995 | if test "${with_static_standard_libraries+set}" = set; then : | |
5996 | withval=$with_static_standard_libraries; | |
5997 | else | |
5998 | with_static_standard_libraries=auto | |
5999 | fi | |
6000 | ||
6001 | if test "$with_static_standard_libraries" = auto; then | |
6002 | with_static_standard_libraries=$have_compiler | |
6003 | fi | |
6004 | ||
b3676d82 | 6005 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 6006 | |
b3676d82 EB |
6007 | # Check whether --with-stage1-ldflags was given. |
6008 | if test "${with_stage1_ldflags+set}" = set; then : | |
6009 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6010 | stage1_ldflags= | |
e8a5fa9c | 6011 | else |
b3676d82 | 6012 | stage1_ldflags=$withval |
e8a5fa9c RW |
6013 | fi |
6014 | else | |
b3676d82 EB |
6015 | stage1_ldflags= |
6016 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
6017 | # if supported. But if the user explicitly specified the libraries to use, | |
6018 | # trust that they are doing what they want. | |
c1a5d03a TT |
6019 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
6020 | -a "$have_static_libs" = yes; then | |
b3676d82 EB |
6021 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
6022 | fi | |
81ecdfbb RW |
6023 | fi |
6024 | ||
e8a5fa9c RW |
6025 | |
6026 | ||
68996839 | 6027 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 6028 | |
81ecdfbb RW |
6029 | # Check whether --with-boot-libs was given. |
6030 | if test "${with_boot_libs+set}" = set; then : | |
6031 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
6032 | poststage1_libs= |
6033 | else | |
6034 | poststage1_libs=$withval | |
6035 | fi | |
6036 | else | |
68996839 | 6037 | poststage1_libs= |
81ecdfbb RW |
6038 | fi |
6039 | ||
e8a5fa9c RW |
6040 | |
6041 | ||
143754cd NC |
6042 | # Linker flags to use for stage2 and later builds. |
6043 | ||
6044 | # Check whether --with-boot-ldflags was given. | |
6045 | if test "${with_boot_ldflags+set}" = set; then : | |
6046 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6047 | poststage1_ldflags= | |
6048 | else | |
6049 | poststage1_ldflags=$withval | |
6050 | fi | |
6051 | else | |
6052 | poststage1_ldflags= | |
4f11b223 ILT |
6053 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
6054 | # statically. But if the user explicitly specified the libraries to | |
6055 | # use, trust that they are doing what they want. | |
6056 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
6057 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
6058 | fi | |
6059 | fi | |
6060 | ||
6061 | ||
6062 | ||
4849dfd8 | 6063 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 6064 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
6065 | |
6066 | ||
7ec59b9e L |
6067 | # Check whether --with-isl was given. |
6068 | if test "${with_isl+set}" = set; then : | |
6069 | withval=$with_isl; | |
81ecdfbb | 6070 | fi |
e28c595f | 6071 | |
e28c595f | 6072 | |
1b6c0831 | 6073 | # Treat --without-isl as a request to disable |
8e71395b | 6074 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 6075 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 6076 | # Check for isl |
8e71395b L |
6077 | |
6078 | ||
7ec59b9e L |
6079 | # Check whether --with-isl-include was given. |
6080 | if test "${with_isl_include+set}" = set; then : | |
6081 | withval=$with_isl_include; | |
81ecdfbb RW |
6082 | fi |
6083 | ||
e28c595f | 6084 | |
7ec59b9e L |
6085 | # Check whether --with-isl-lib was given. |
6086 | if test "${with_isl_lib+set}" = set; then : | |
6087 | withval=$with_isl_lib; | |
81ecdfbb | 6088 | fi |
e28c595f | 6089 | |
e28c595f | 6090 | |
7ec59b9e L |
6091 | # Check whether --enable-isl-version-check was given. |
6092 | if test "${enable_isl_version_check+set}" = set; then : | |
6093 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
6094 | else | |
6095 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
6096 | fi |
6097 | ||
6098 | ||
7ec59b9e L |
6099 | # Initialize isllibs and islinc. |
6100 | case $with_isl in | |
6101 | no) | |
6102 | isllibs= | |
6103 | islinc= | |
6104 | ;; | |
6105 | "" | yes) | |
6106 | ;; | |
6107 | *) | |
6108 | isllibs="-L$with_isl/lib" | |
6109 | islinc="-I$with_isl/include" | |
6110 | ;; | |
6111 | esac | |
6112 | if test "x${with_isl_include}" != x ; then | |
6113 | islinc="-I$with_isl_include" | |
6114 | fi | |
6115 | if test "x${with_isl_lib}" != x; then | |
6116 | isllibs="-L$with_isl_lib" | |
6117 | fi | |
6118 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
6119 | && test -d ${srcdir}/isl; then | |
6120 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
6121 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
6122 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
6124 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 6125 | fi |
b123da99 | 6126 | |
1b6c0831 | 6127 | isllibs="${isllibs} -lisl" |
b123da99 | 6128 | |
e28c595f | 6129 | |
b3fc79f8 JBG |
6130 | |
6131 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
6132 | _isl_saved_CFLAGS=$CFLAGS | |
6133 | _isl_saved_LDFLAGS=$LDFLAGS | |
6134 | _isl_saved_LIBS=$LIBS | |
6135 | ||
6136 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
6137 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6138 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 6139 | |
bf41f30d NC |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
6141 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 6142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 6143 | /* end confdefs.h. */ |
bf41f30d | 6144 | #include <isl/schedule.h> |
b3fc79f8 JBG |
6145 | int |
6146 | main () | |
6147 | { | |
bf41f30d | 6148 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
6149 | ; |
6150 | return 0; | |
6151 | } | |
6152 | _ACEOF | |
1b6c0831 | 6153 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
6154 | gcc_cv_isl=yes |
6155 | else | |
6156 | gcc_cv_isl=no | |
6157 | fi | |
1b6c0831 L |
6158 | rm -f core conftest.err conftest.$ac_objext \ |
6159 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6161 | $as_echo "$gcc_cv_isl" >&6; } | |
6162 | ||
4849dfd8 | 6163 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
6164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
6165 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
6166 | fi |
6167 | ||
b3fc79f8 JBG |
6168 | CFLAGS=$_isl_saved_CFLAGS |
6169 | LDFLAGS=$_isl_saved_LDFLAGS | |
6170 | LIBS=$_isl_saved_LIBS | |
6171 | fi | |
6172 | ||
6173 | ||
e28c595f | 6174 | |
e28c595f | 6175 | |
7ec59b9e L |
6176 | |
6177 | ||
7ec59b9e L |
6178 | if test "x${with_isl}" = xno; then |
6179 | graphite_requested=no | |
6180 | elif test "x${with_isl}" != x \ | |
6181 | || test "x${with_isl_include}" != x \ | |
6182 | || test "x${with_isl_lib}" != x ; then | |
6183 | graphite_requested=yes | |
6184 | else | |
6185 | graphite_requested=no | |
b123da99 | 6186 | fi |
e28c595f | 6187 | |
e28c595f JM |
6188 | |
6189 | ||
7ec59b9e L |
6190 | if test "${gcc_cv_isl}" = no ; then |
6191 | isllibs= | |
6192 | islinc= | |
6193 | fi | |
e28c595f | 6194 | |
7ec59b9e L |
6195 | if test "${graphite_requested}" = yes \ |
6196 | && test "x${isllibs}" = x \ | |
6197 | && test "x${islinc}" = x ; then | |
e28c595f | 6198 | |
d0ac1c44 | 6199 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 6200 | fi |
e552509b | 6201 | |
e28c595f | 6202 | |
e552509b ILT |
6203 | fi |
6204 | ||
4849dfd8 | 6205 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 6206 | if test "x$with_isl" = xno || |
8e71395b | 6207 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6208 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6209 | islinc= |
7ec59b9e L |
6210 | fi |
6211 | ||
8e71395b L |
6212 | |
6213 | ||
6214 | ||
700d40ca ILT |
6215 | # Check for LTO support. |
6216 | # Check whether --enable-lto was given. | |
6217 | if test "${enable_lto+set}" = set; then : | |
6218 | enableval=$enable_lto; enable_lto=$enableval | |
6219 | else | |
6220 | enable_lto=yes; default_enable_lto=yes | |
6221 | fi | |
6222 | ||
6223 | ||
143754cd | 6224 | |
e49e5c92 DK |
6225 | |
6226 | ||
6227 | target_elf=no | |
6228 | case $target in | |
6229 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6230 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6231 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6232 | nvptx-*-none) | |
e49e5c92 DK |
6233 | target_elf=no |
6234 | ;; | |
6235 | *) | |
6236 | target_elf=yes | |
6237 | ;; | |
6238 | esac | |
6239 | ||
6240 | if test $target_elf = yes; then : | |
74cea91b DK |
6241 | # ELF platforms build the lto-plugin always. |
6242 | build_lto_plugin=yes | |
e49e5c92 | 6243 | |
e49e5c92 DK |
6244 | else |
6245 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6246 | case $target in |
bf41f30d | 6247 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6248 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6249 | *) enable_lto=no ;; |
6250 | esac | |
e49e5c92 | 6251 | else |
29821356 RW |
6252 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6253 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6254 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6255 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6256 | # -flto it won't be needed until after installation anyway. | |
6257 | case $target in | |
52cf9762 | 6258 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 6259 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 6260 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
6261 | fi |
6262 | ;; | |
6263 | esac | |
6264 | fi | |
a8eb3f0a | 6265 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6266 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6267 | case $target in |
74cea91b | 6268 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6269 | *) ;; |
6270 | esac | |
74cea91b | 6271 | |
e49e5c92 DK |
6272 | fi |
6273 | ||
700d40ca | 6274 | |
1b6c0831 L |
6275 | # Check whether --enable-linker-plugin-configure-flags was given. |
6276 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6277 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6278 | else | |
6279 | extra_linker_plugin_configure_flags= | |
6280 | fi | |
6281 | ||
6282 | ||
6283 | # Check whether --enable-linker-plugin-flags was given. | |
6284 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6285 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6286 | else | |
6287 | extra_linker_plugin_flags= | |
6288 | fi | |
6289 | ||
6290 | ||
6291 | ||
bf41f30d NC |
6292 | # Enable --enable-host-shared. |
6293 | # Checked early to determine whether jit is an 'all' language | |
6294 | # Check whether --enable-host-shared was given. | |
6295 | if test "${enable_host_shared+set}" = set; then : | |
6296 | enableval=$enable_host_shared; host_shared=$enableval | |
6297 | else | |
6298 | host_shared=no | |
6299 | fi | |
6300 | ||
6301 | ||
e28c595f | 6302 | |
7ec59b9e | 6303 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6304 | stage1_languages=,c, |
1d39f329 | 6305 | |
e8a5fa9c | 6306 | # Target libraries that we bootstrap. |
2aa2364a | 6307 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6308 | |
9e07f89d NN |
6309 | # Figure out what language subdirectories are present. |
6310 | # Look if the user specified --enable-languages="..."; if not, use | |
6311 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6312 | # go away some day. | |
6313 | # NB: embedded tabs in this IF block -- do not untabify | |
6314 | if test -d ${srcdir}/gcc; then | |
6315 | if test x"${enable_languages+set}" != xset; then | |
6316 | if test x"${LANGUAGES+set}" = xset; then | |
6317 | enable_languages="${LANGUAGES}" | |
136bb21f | 6318 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 6319 | else |
bf41f30d | 6320 | enable_languages=default |
9e07f89d NN |
6321 | fi |
6322 | else | |
6323 | if test x"${enable_languages}" = x || | |
6324 | test x"${enable_languages}" = xyes; | |
6325 | then | |
136bb21f | 6326 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6327 | exit 1 |
6328 | fi | |
6329 | fi | |
6330 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6331 | ||
096f7d00 DE |
6332 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6333 | # and make the substitution. | |
6334 | case ,${enable_languages}, in | |
6335 | *,f95,*) | |
136bb21f | 6336 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6337 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6338 | ;; | |
6339 | esac | |
6340 | ||
7ec59b9e L |
6341 | # If bootstrapping, C++ must be enabled. |
6342 | case ",$enable_languages,:$enable_bootstrap" in | |
6343 | *,c++,*:*) ;; | |
6344 | *:yes) | |
ffdd6afc ILT |
6345 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6346 | enable_languages="${enable_languages},c++" | |
6347 | else | |
d0ac1c44 | 6348 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6349 | fi |
6350 | ;; | |
6351 | esac | |
6352 | ||
9e07f89d NN |
6353 | # First scan to see if an enabled language requires some other language. |
6354 | # We assume that a given config-lang.in will list all the language | |
6355 | # front ends it requires, even if some are required indirectly. | |
6356 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6357 | case ${lang_frag} in | |
6358 | ..) ;; | |
6359 | # The odd quoting in the next line works around | |
6360 | # an apparent bug in bash 1.12 on linux. | |
6361 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6362 | *) | |
e552509b ILT |
6363 | # From the config-lang.in, get $language, $lang_requires, and |
6364 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6365 | language= |
6366 | lang_requires= | |
e552509b | 6367 | lang_requires_boot_languages= |
bf41f30d NC |
6368 | # set srcdir during sourcing lang_frag to the gcc dir. |
6369 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6370 | # polutes this shell | |
6371 | saved_srcdir=${srcdir} | |
6372 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6373 | srcdir=${saved_srcdir} | |
e552509b | 6374 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6375 | case ,${enable_languages}, in |
6376 | *,$other,*) ;; | |
bf41f30d | 6377 | *,default,*) ;; |
9e07f89d NN |
6378 | *,all,*) ;; |
6379 | *,$language,*) | |
6380 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6381 | enable_languages="${enable_languages},${other}" | |
6382 | ;; | |
6383 | esac | |
6384 | done | |
e552509b ILT |
6385 | for other in ${lang_requires_boot_languages} ; do |
6386 | if test "$other" != "c"; then | |
6387 | case ,${enable_stage1_languages}, in | |
6388 | *,$other,*) ;; | |
bf41f30d | 6389 | *,default,*) ;; |
e552509b ILT |
6390 | *,all,*) ;; |
6391 | *) | |
6392 | case ,${enable_languages}, in | |
6393 | *,$language,*) | |
6394 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6395 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6396 | ;; | |
6397 | esac | |
6398 | ;; | |
6399 | esac | |
6400 | fi | |
6401 | done | |
9e07f89d NN |
6402 | ;; |
6403 | esac | |
6404 | done | |
6405 | ||
9b134994 | 6406 | new_enable_languages=,c, |
700d40ca ILT |
6407 | |
6408 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6409 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6410 | case ,${enable_languages}, in |
6411 | *,lto,*) ;; | |
6412 | *) enable_languages="${enable_languages},lto" ;; | |
6413 | esac | |
a8eb3f0a | 6414 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6415 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6416 | fi |
6417 | fi | |
6418 | ||
1b6c0831 L |
6419 | # If we're building an offloading compiler, add the LTO front end. |
6420 | if test x"$enable_as_accelerator_for" != x ; then | |
6421 | case ,${enable_languages}, in | |
6422 | *,lto,*) ;; | |
6423 | *) enable_languages="${enable_languages},lto" ;; | |
6424 | esac | |
6425 | fi | |
700d40ca | 6426 | |
bf41f30d | 6427 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6428 | potential_languages=,c, |
9e07f89d | 6429 | |
9e1a94f4 ILT |
6430 | enabled_target_libs= |
6431 | disabled_target_libs= | |
6432 | ||
9e07f89d NN |
6433 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6434 | case ${lang_frag} in | |
6435 | ..) ;; | |
6436 | # The odd quoting in the next line works around | |
6437 | # an apparent bug in bash 1.12 on linux. | |
6438 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6439 | *) | |
c6b750e1 | 6440 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6441 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6442 | language= |
6443 | target_libs= | |
6444 | lang_dirs= | |
64ce424c | 6445 | subdir_requires= |
9b134994 PB |
6446 | boot_language=no |
6447 | build_by_default=yes | |
bf41f30d NC |
6448 | # set srcdir during sourcing. See above about save & restore |
6449 | saved_srcdir=${srcdir} | |
6450 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6451 | srcdir=${saved_srcdir} | |
9b134994 PB |
6452 | if test x${language} = x; then |
6453 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6454 | exit 1 | |
6455 | fi | |
6456 | ||
ffdd6afc | 6457 | if test "$language" = "c++"; then |
7ec59b9e | 6458 | boot_language=yes |
e8a5fa9c RW |
6459 | fi |
6460 | ||
8e71395b | 6461 | add_this_lang=no |
bf41f30d NC |
6462 | # C is always enabled, so no need to add it again |
6463 | if test "$language" != "c"; then | |
6464 | case ,${enable_languages}, in | |
6465 | *,${language},*) | |
6466 | # Language was explicitly selected; include it | |
7ec59b9e | 6467 | add_this_lang=yes |
bf41f30d NC |
6468 | ;; |
6469 | *,all,*) | |
6470 | # All languages are enabled | |
6471 | add_this_lang=all | |
6472 | ;; | |
6473 | *,default,*) | |
6474 | # 'default' was selected, select it if it is a default language | |
8e71395b | 6475 | add_this_lang=${build_by_default} |
bf41f30d NC |
6476 | ;; |
6477 | esac | |
6478 | fi | |
4b1cb4fe | 6479 | |
64ce424c | 6480 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6481 | for i in $subdir_requires; do |
3d3adb43 | 6482 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
6483 | case ${add_this_lang} in |
6484 | yes) | |
64ce424c | 6485 | # Specifically requested language; tell them. |
d0ac1c44 | 6486 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 6487 | ;; |
bf41f30d NC |
6488 | all) |
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6490 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6491 | add_this_lang=unsupported | |
6492 | ;; | |
64ce424c PB |
6493 | *) |
6494 | # Silently disable. | |
9b134994 | 6495 | add_this_lang=unsupported |
64ce424c PB |
6496 | ;; |
6497 | esac | |
6498 | done | |
6499 | ||
9b134994 | 6500 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
6501 | case ${add_this_lang}:${language}:${have_gnat} in |
6502 | yes:ada:no) | |
9b134994 | 6503 | # Specifically requested language; tell them. |
d0ac1c44 | 6504 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 6505 | ;; |
bf41f30d NC |
6506 | all:ada:no) |
6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6508 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6509 | add_this_lang=unsupported | |
6510 | ;; | |
9b134994 PB |
6511 | *:ada:no) |
6512 | # Silently disable. | |
6513 | add_this_lang=unsupported | |
6514 | ;; | |
6515 | esac | |
6516 | ||
bf41f30d NC |
6517 | # Disable jit if -enable-host-shared not specified |
6518 | case ${add_this_lang}:${language}:${host_shared} in | |
6519 | yes:jit:no) | |
6520 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 6521 | as_fn_error $? " |
bf41f30d NC |
6522 | Enabling language \"jit\" requires --enable-host-shared. |
6523 | ||
6524 | --enable-host-shared typically slows the rest of the compiler down by | |
6525 | a few %, so you must explicitly enable it. | |
6526 | ||
6527 | If you want to build both the jit and the regular compiler, it is often | |
6528 | best to do this via two separate configure/builds, in separate | |
6529 | directories, to avoid imposing the performance cost of | |
6530 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6531 | ;; | |
6532 | all:jit:no) | |
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6534 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6535 | add_this_lang=unsupported | |
6536 | ;; | |
6537 | *:jit:no) | |
6538 | # Silently disable. | |
6539 | add_this_lang=unsupported | |
6540 | ;; | |
6541 | esac | |
6542 | ||
6543 | # Disable a language that is unsupported by the target. | |
6544 | case "${add_this_lang}: $unsupported_languages " in | |
6545 | no:*) ;; | |
6546 | unsupported:*) ;; | |
6547 | *:*" $language "*) | |
6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6549 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 6550 | add_this_lang=unsupported |
59f7ec45 HPN |
6551 | ;; |
6552 | esac | |
6553 | ||
4b1cb4fe | 6554 | case $add_this_lang in |
9b134994 | 6555 | unsupported) |
9e07f89d | 6556 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6557 | disabled_target_libs="$disabled_target_libs $target_libs" |
6558 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6559 | ;; |
9b134994 PB |
6560 | no) |
6561 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6562 | disabled_target_libs="$disabled_target_libs $target_libs" |
6563 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6564 | potential_languages="${potential_languages}${language}," |
6565 | ;; | |
bf41f30d | 6566 | all|yes) |
9b134994 PB |
6567 | new_enable_languages="${new_enable_languages}${language}," |
6568 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6569 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6570 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6571 | case "${boot_language}:,$enable_stage1_languages," in |
6572 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6573 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6574 | case ",$stage1_languages," in |
6575 | *,$language,* | ,yes, | ,all,) ;; | |
6576 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6577 | esac | |
e8a5fa9c RW |
6578 | # We need to bootstrap any supporting libraries. |
6579 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6580 | ;; |
6581 | esac | |
6582 | ;; | |
9e07f89d NN |
6583 | esac |
6584 | ;; | |
6585 | esac | |
6586 | done | |
6587 | ||
9e1a94f4 ILT |
6588 | # Add target libraries which are only needed for disabled languages |
6589 | # to noconfigdirs. | |
6590 | if test -n "$disabled_target_libs"; then | |
6591 | for dir in $disabled_target_libs; do | |
6592 | case " $enabled_target_libs " in | |
6593 | *" ${dir} "*) ;; | |
6594 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6595 | esac | |
6596 | done | |
6597 | fi | |
6598 | ||
81ecdfbb RW |
6599 | # Check whether --enable-stage1-languages was given. |
6600 | if test "${enable_stage1_languages+set}" = set; then : | |
6601 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6602 | ,no,|,,) |
6603 | # Set it to something that will have no effect in the loop below | |
6604 | enable_stage1_languages=c ;; | |
6605 | ,yes,) | |
6606 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6607 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6608 | *,all,*) | |
6609 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6610 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6611 | esac | |
6612 | ||
6613 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6614 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6615 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6616 | case $potential_languages in | |
6617 | *,$i,*) | |
6618 | case $stage1_languages in | |
6619 | *,$i,*) ;; | |
6620 | *) stage1_languages="$stage1_languages$i," ;; | |
6621 | esac ;; | |
6622 | *) | |
6623 | case $missing_languages in | |
6624 | *,$i,*) ;; | |
6625 | *) missing_languages="$missing_languages$i," ;; | |
6626 | esac ;; | |
6627 | esac | |
6628 | done | |
81ecdfbb RW |
6629 | fi |
6630 | ||
9b134994 PB |
6631 | |
6632 | # Remove leading/trailing commas that were added for simplicity | |
6633 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6634 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6635 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6636 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6637 | ||
9e07f89d | 6638 | if test "x$missing_languages" != x; then |
d0ac1c44 | 6639 | as_fn_error $? " |
27258dd4 | 6640 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6641 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6642 | fi |
9e07f89d NN |
6643 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6644 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6645 | enable_languages="$new_enable_languages" |
9e07f89d | 6646 | fi |
9b134994 | 6647 | |
c6b750e1 | 6648 | |
81ec575a | 6649 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6650 | fi |
6651 | ||
a6df5a19 PB |
6652 | # Handle --disable-<component> generically. |
6653 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6654 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6655 | varname=`echo $dirname | sed -e s/+/_/g` |
6656 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6657 | noconfigdirs="$noconfigdirs $dir" |
6658 | fi | |
6659 | done | |
6660 | ||
4f0ef2d8 | 6661 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6662 | # Check whether --enable-objc-gc was given. |
6663 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 6664 | enableval=$enable_objc_gc; |
81ecdfbb RW |
6665 | fi |
6666 | ||
4f0ef2d8 | 6667 | |
05a13254 NC |
6668 | # Check whether --with-target-bdw-gc was given. |
6669 | if test "${with_target_bdw_gc+set}" = set; then : | |
6670 | withval=$with_target_bdw_gc; | |
6671 | fi | |
6672 | ||
6673 | ||
6674 | # Check whether --with-target-bdw-gc-include was given. | |
6675 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6676 | withval=$with_target_bdw_gc_include; | |
6677 | fi | |
6678 | ||
6679 | ||
6680 | # Check whether --with-target-bdw-gc-lib was given. | |
6681 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6682 | withval=$with_target_bdw_gc_lib; | |
6683 | fi | |
6684 | ||
6685 | ||
6686 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6688 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6689 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
6691 | $as_echo "using bdw-gc in default locations" >&6; } | |
6692 | else | |
6693 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 6694 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 6695 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 6696 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
6697 | else |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6699 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 6700 | fi |
05a13254 | 6701 | fi |
4f0ef2d8 CD |
6702 | esac |
6703 | ||
bf41f30d | 6704 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6705 | case ,${enable_languages}, in |
1b6c0831 | 6706 | *,c++,*) |
bf41f30d | 6707 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
6708 | case "${noconfigdirs}" in |
6709 | *target-libstdc++-v3*) | |
bf41f30d | 6710 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
6711 | ;; |
6712 | *) ;; | |
6713 | esac | |
6714 | ;; | |
7ec59b9e | 6715 | *) |
bf41f30d | 6716 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6717 | ;; |
6718 | esac | |
6719 | ||
caeba88f AL |
6720 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6721 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6722 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6723 | ||
6724 | notsupp="" | |
6725 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6726 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6727 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6728 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6729 | if test -r $srcdir/$dirname/configure ; then | |
6730 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6731 | true | |
6732 | else | |
6733 | notsupp="$notsupp $dir" | |
6734 | fi | |
6735 | fi | |
6736 | fi | |
caeba88f AL |
6737 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6738 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6739 | if test -r $srcdir/$dirname/configure ; then | |
6740 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6741 | true | |
6742 | else | |
6743 | notsupp="$notsupp $dir" | |
6744 | fi | |
6745 | fi | |
6746 | fi | |
9e07f89d NN |
6747 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6748 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6749 | if test -r $srcdir/$dirname/configure ; then | |
6750 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6751 | true | |
6752 | else | |
6753 | notsupp="$notsupp $dir" | |
6754 | fi | |
6755 | fi | |
6756 | fi | |
6757 | done | |
6758 | ||
9e07f89d NN |
6759 | # Quietly strip out all directories which aren't configurable in this tree. |
6760 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6761 | # is now the case. | |
6a9cf61e PB |
6762 | build_configdirs_all="$build_configdirs" |
6763 | build_configdirs= | |
6764 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6765 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6766 | if test -f ${srcdir}/$j/configure ; then |
6767 | build_configdirs="${build_configdirs} $i" | |
6768 | fi | |
6769 | done | |
6770 | ||
9e07f89d NN |
6771 | configdirs_all="$configdirs" |
6772 | configdirs= | |
6773 | for i in ${configdirs_all} ; do | |
6774 | if test -f ${srcdir}/$i/configure ; then | |
6775 | configdirs="${configdirs} $i" | |
6776 | fi | |
6777 | done | |
6a9cf61e | 6778 | |
9e07f89d NN |
6779 | target_configdirs_all="$target_configdirs" |
6780 | target_configdirs= | |
6781 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6782 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6783 | if test -f ${srcdir}/$j/configure ; then |
6784 | target_configdirs="${target_configdirs} $i" | |
6785 | fi | |
6786 | done | |
6787 | ||
1b6c0831 L |
6788 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6789 | # so we have to add it after the preceding checks. | |
6790 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6791 | then | |
6792 | case " $configdirs " in | |
6793 | *" libiberty "*) | |
6794 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6795 | configdirs="$configdirs libiberty-linker-plugin" | |
6796 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6797 | --with-libiberty=../libiberty-linker-plugin";; | |
6798 | *) | |
d0ac1c44 | 6799 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
6800 | esac |
6801 | fi | |
6802 | ||
6803 | # Sometimes we have special requirements for the host libiberty. | |
6804 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6805 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6806 | case " $configdirs " in |
6807 | *" lto-plugin "* | *" libcc1 "*) | |
6808 | # When these are to be built as shared libraries, the same applies to | |
6809 | # libiberty. | |
6810 | extra_host_libiberty_configure_flags=--enable-shared | |
6811 | ;; | |
e81d5d05 L |
6812 | *" bfd "*) |
6813 | # When bfd is to be built as a shared library, the same applies to | |
6814 | # zlib. | |
6815 | if test "$enable_shared" = "yes"; then | |
6816 | extra_host_zlib_configure_flags=--enable-host-shared | |
6817 | fi | |
6818 | ;; | |
1b6c0831 L |
6819 | esac |
6820 | ||
6821 | ||
e81d5d05 | 6822 | |
9e07f89d NN |
6823 | # Produce a warning message for the subdirs we can't configure. |
6824 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6825 | # FSF releases, it's important to let people know when their machine isn't | |
6826 | # supported by the one or two programs in a package. | |
6827 | ||
6828 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6829 | # If $appdirs is non-empty, at least one of those directories must still | |
6830 | # be configured, or we error out. (E.g., if the gas release supports a | |
6831 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6832 | # pretend that all is well.) | |
6833 | if test -n "$appdirs" ; then | |
6834 | for dir in $appdirs ; do | |
6835 | if test -r $dir/Makefile.in ; then | |
6836 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6837 | appdirs="" | |
6838 | break | |
6839 | fi | |
6a9cf61e | 6840 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6841 | appdirs="" |
6842 | break | |
6843 | fi | |
6844 | fi | |
6845 | done | |
6846 | if test -n "$appdirs" ; then | |
6847 | echo "*** This configuration is not supported by this package." 1>&2 | |
6848 | exit 1 | |
6849 | fi | |
6850 | fi | |
6851 | # Okay, some application will build, or we don't care to check. Still | |
6852 | # notify of subdirs not getting built. | |
6853 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6854 | echo " ${notsupp}" 1>&2 | |
6855 | echo " (Any other directories should still work fine.)" 1>&2 | |
6856 | fi | |
6857 | ||
6858 | case "$host" in | |
6859 | *msdosdjgpp*) | |
6860 | enable_gdbtk=no ;; | |
6861 | esac | |
6862 | ||
18f6b6ee PB |
6863 | # To find our prefix, in gcc_cv_tool_prefix. |
6864 | ||
6865 | # The user is always right. | |
6866 | if test "${PATH_SEPARATOR+set}" != set; then | |
6867 | echo "#! /bin/sh" >conf$$.sh | |
6868 | echo "exit 0" >>conf$$.sh | |
6869 | chmod +x conf$$.sh | |
6870 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6871 | PATH_SEPARATOR=';' | |
6872 | else | |
6873 | PATH_SEPARATOR=: | |
6874 | fi | |
6875 | rm -f conf$$.sh | |
6876 | fi | |
6877 | ||
6878 | ||
bf41f30d NC |
6879 | get_gcc_base_ver="cat" |
6880 | ||
6881 | # Check whether --with-gcc-major-version-only was given. | |
6882 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6883 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 6884 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
6885 | fi |
6886 | ||
6887 | fi | |
6888 | ||
6889 | ||
6890 | ||
6891 | ||
6892 | ||
18f6b6ee PB |
6893 | |
6894 | if test "x$exec_prefix" = xNONE; then | |
6895 | if test "x$prefix" = xNONE; then | |
6896 | gcc_cv_tool_prefix=$ac_default_prefix | |
6897 | else | |
6898 | gcc_cv_tool_prefix=$prefix | |
6899 | fi | |
6900 | else | |
6901 | gcc_cv_tool_prefix=$exec_prefix | |
6902 | fi | |
6903 | ||
6904 | # If there is no compiler in the tree, use the PATH only. In any | |
6905 | # case, if there is no compiler in the tree nobody should use | |
6906 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6907 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
6908 | if test x$with_gcc_major_version_only = xyes ; then |
6909 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6910 | else | |
6911 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6912 | fi | |
18f6b6ee PB |
6913 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6914 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6915 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6916 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6917 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6918 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6919 | else | |
6920 | gcc_cv_tool_dirs= | |
6921 | fi | |
6922 | ||
6923 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6924 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6925 | fi | |
6926 | ||
6927 | ||
6928 | ||
9e07f89d NN |
6929 | copy_dirs= |
6930 | ||
c6b750e1 | 6931 | |
81ecdfbb RW |
6932 | # Check whether --with-build-sysroot was given. |
6933 | if test "${with_build_sysroot+set}" = set; then : | |
6934 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6935 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6936 | fi | |
6937 | else | |
6938 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6939 | fi |
a19b6204 MM |
6940 | |
6941 | ||
8a6ee3ab | 6942 | |
81ecdfbb RW |
6943 | |
6944 | # Check whether --with-debug-prefix-map was given. | |
6945 | if test "${with_debug_prefix_map+set}" = set; then : | |
6946 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6947 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6948 | for debug_map in $withval; do | |
6949 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6950 | done | |
6951 | fi | |
6952 | else | |
6953 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6954 | fi |
6955 | ||
8a6ee3ab JM |
6956 | |
6957 | ||
7f6ef0c0 PB |
6958 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6959 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6960 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6961 | # We want to ensure that TARGET libraries (which we know are built with | |
6962 | # gcc) are built with "-O2 -g", so include those options when setting | |
6963 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6964 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6965 | if test "x${is_cross_compiler}" = xyes; then |
6966 | CFLAGS_FOR_TARGET="-g -O2" | |
6967 | else | |
6968 | CFLAGS_FOR_TARGET=$CFLAGS | |
6969 | case " $CFLAGS " in | |
6970 | *" -O2 "*) ;; | |
6971 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6972 | esac | |
6973 | case " $CFLAGS " in | |
6974 | *" -g "* | *" -g3 "*) ;; | |
6975 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6976 | esac | |
6977 | fi | |
7f6ef0c0 PB |
6978 | fi |
6979 | ||
6980 | ||
6981 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6982 | if test "x${is_cross_compiler}" = xyes; then |
6983 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6984 | else | |
6985 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6986 | case " $CXXFLAGS " in | |
6987 | *" -O2 "*) ;; | |
6988 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6989 | esac | |
6990 | case " $CXXFLAGS " in | |
6991 | *" -g "* | *" -g3 "*) ;; | |
6992 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6993 | esac | |
6994 | fi | |
7f6ef0c0 PB |
6995 | fi |
6996 | ||
6997 | ||
91c1f14c DK |
6998 | |
6999 | ||
9e07f89d NN |
7000 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
7001 | # the named directory are copied to $(tooldir)/sys-include. | |
7002 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
7003 | if test x${is_cross_compiler} = xno ; then | |
7004 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
7005 | exit 1 | |
7006 | fi | |
7007 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 7008 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 7009 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
7010 | fi |
7011 | fi | |
7012 | ||
7013 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
7014 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
7015 | # are permitted. | |
7016 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
7017 | if test x${is_cross_compiler} = xno ; then | |
7018 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
7019 | exit 1 | |
7020 | fi | |
7021 | if test x"${with_libs}" != xyes ; then | |
7022 | # Copy the libraries in reverse order, so that files in the first named | |
7023 | # library override files in subsequent libraries. | |
18f6b6ee | 7024 | x=${gcc_cv_tool_prefix} |
9e07f89d | 7025 | for l in ${with_libs}; do |
c6b750e1 | 7026 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
7027 | done |
7028 | fi | |
7029 | fi | |
7030 | ||
700d40ca | 7031 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
7032 | # |
7033 | # This is done by determining whether or not the appropriate directory | |
7034 | # is available, and by checking whether or not specific configurations | |
7035 | # have requested that this magic not happen. | |
c6b750e1 DJ |
7036 | # |
7037 | # The command line options always override the explicit settings in | |
136bb21f | 7038 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 7039 | # |
c6b750e1 | 7040 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 7041 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
7042 | # --without-gnu-ld options for the configure script. Similarly, if |
7043 | # the default is to use the included zlib and you don't want to do that, | |
7044 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
7045 | |
7046 | if test x${use_gnu_as} = x && | |
7047 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
7048 | with_gnu_as=yes | |
7049 | extra_host_args="$extra_host_args --with-gnu-as" | |
7050 | fi | |
7051 | ||
7052 | if test x${use_gnu_ld} = x && | |
93f9b408 | 7053 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
7054 | with_gnu_ld=yes |
7055 | extra_host_args="$extra_host_args --with-gnu-ld" | |
7056 | fi | |
7057 | ||
700d40ca ILT |
7058 | if test x${use_included_zlib} = x && |
7059 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
7060 | : | |
7061 | else | |
7062 | with_system_zlib=yes | |
7063 | extra_host_args="$extra_host_args --with-system-zlib" | |
7064 | fi | |
7065 | ||
2429c060 PB |
7066 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
7067 | # can detect this case. | |
7068 | ||
7069 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
7070 | with_newlib=yes | |
7071 | extra_host_args="$extra_host_args --with-newlib" | |
7072 | fi | |
7073 | ||
9e07f89d NN |
7074 | # Handle ${copy_dirs} |
7075 | set fnord ${copy_dirs} | |
7076 | shift | |
7077 | while test $# != 0 ; do | |
7078 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
7079 | : | |
7080 | else | |
7081 | echo Copying $1 to $2 | |
7082 | ||
7083 | # Use the install script to create the directory and all required | |
7084 | # parent directories. | |
7085 | if test -d $2 ; then | |
7086 | : | |
7087 | else | |
7088 | echo >config.temp | |
7089 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
7090 | fi | |
7091 | ||
7092 | # Copy the directory, assuming we have tar. | |
7093 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
7094 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
7095 | ||
7096 | # It is the responsibility of the user to correctly adjust all | |
7097 | # symlinks. If somebody can figure out how to handle them correctly | |
7098 | # here, feel free to add the code. | |
7099 | ||
7100 | echo $1 > $2/COPIED | |
7101 | fi | |
7102 | shift; shift | |
7103 | done | |
7104 | ||
2429c060 PB |
7105 | # Determine a target-dependent exec_prefix that the installed |
7106 | # gcc will search in. Keep this list sorted by triplet, with | |
7107 | # the *-*-osname triplets last. | |
7108 | md_exec_prefix= | |
7109 | case "${target}" in | |
521ec477 | 7110 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
7111 | md_exec_prefix=/dev/env/DJDIR/bin |
7112 | ;; | |
2429c060 | 7113 | *-*-hpux* | \ |
2429c060 | 7114 | *-*-nto-qnx* | \ |
1f111696 | 7115 | *-*-solaris2*) |
2429c060 PB |
7116 | md_exec_prefix=/usr/ccs/bin |
7117 | ;; | |
7118 | esac | |
7119 | ||
a0da8069 NN |
7120 | extra_arflags_for_target= |
7121 | extra_nmflags_for_target= | |
7122 | extra_ranlibflags_for_target= | |
7123 | target_makefile_frag=/dev/null | |
7124 | case "${target}" in | |
77d7106f AM |
7125 | spu-*-*) |
7126 | target_makefile_frag="config/mt-spu" | |
7127 | ;; | |
a9d58c06 | 7128 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
7129 | target_makefile_frag="config/mt-sde" |
7130 | ;; | |
f3b1e08e RS |
7131 | mipsisa*-*-elfoabi*) |
7132 | target_makefile_frag="config/mt-mips-elfoabi" | |
7133 | ;; | |
e7c8859c RS |
7134 | mips*-*-*linux* | mips*-*-gnu*) |
7135 | target_makefile_frag="config/mt-mips-gnu" | |
7136 | ;; | |
d9e042ac SL |
7137 | nios2-*-elf*) |
7138 | target_makefile_frag="config/mt-nios2-elf" | |
7139 | ;; | |
bf41f30d NC |
7140 | *-*-linux-android*) |
7141 | target_makefile_frag="config/mt-android" | |
7142 | ;; | |
29383458 | 7143 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 7144 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
7145 | ;; |
7146 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 7147 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
7148 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7149 | # harmless if we're using GNU nm or ar. | |
7150 | extra_arflags_for_target=" -X32_64" | |
7151 | extra_nmflags_for_target=" -B -X32_64" | |
7152 | ;; | |
a0da8069 NN |
7153 | esac |
7154 | ||
7155 | alphaieee_frag=/dev/null | |
7156 | case $target in | |
7157 | alpha*-*-*) | |
7158 | # This just makes sure to use the -mieee option to build target libs. | |
7159 | # This should probably be set individually by each library. | |
7160 | alphaieee_frag="config/mt-alphaieee" | |
7161 | ;; | |
7162 | esac | |
7163 | ||
7164 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7165 | # the target libraries, similarly if it is not specified, use -Os | |
7166 | # on selected platforms. | |
7167 | ospace_frag=/dev/null | |
7168 | case "${enable_target_optspace}:${target}" in | |
7169 | yes:*) | |
7170 | ospace_frag="config/mt-ospace" | |
7171 | ;; | |
7172 | :d30v-*) | |
7173 | ospace_frag="config/mt-d30v" | |
7174 | ;; | |
16beab3d | 7175 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
7176 | ospace_frag="config/mt-ospace" |
7177 | ;; | |
7178 | no:* | :*) | |
7179 | ;; | |
7180 | *) | |
7181 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7182 | ;; | |
7183 | esac | |
7184 | ||
a0da8069 NN |
7185 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7186 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7187 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7188 | build_tooldir=${tooldir} |
7189 | ||
a0da8069 NN |
7190 | # Create a .gdbinit file which runs the one in srcdir |
7191 | # and tells GDB to look there for source files. | |
7192 | ||
7193 | if test -r ${srcdir}/.gdbinit ; then | |
7194 | case ${srcdir} in | |
7195 | .) ;; | |
7196 | *) cat > ./.gdbinit <<EOF | |
7197 | # ${NO_EDIT} | |
7198 | dir ${srcdir} | |
7199 | dir . | |
7200 | source ${srcdir}/.gdbinit | |
7201 | EOF | |
7202 | ;; | |
7203 | esac | |
7204 | fi | |
7205 | ||
a0da8069 NN |
7206 | # Make sure that the compiler is able to generate an executable. If it |
7207 | # can't, we are probably in trouble. We don't care whether we can run the | |
7208 | # executable--we might be using a cross compiler--we only care whether it | |
7209 | # can be created. At this point the main configure script has set CC. | |
7210 | we_are_ok=no | |
7211 | echo "int main () { return 0; }" > conftest.c | |
7212 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7213 | if test $? = 0 ; then | |
7214 | if test -s conftest || test -s conftest.exe ; then | |
7215 | we_are_ok=yes | |
7216 | fi | |
c6b750e1 | 7217 | fi |
a0da8069 NN |
7218 | case $we_are_ok in |
7219 | no) | |
7220 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7221 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7222 | rm -f conftest* | |
7223 | exit 1 | |
7224 | ;; | |
7225 | esac | |
7226 | rm -f conftest* | |
7227 | ||
3bbd2f8f | 7228 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7229 | case "${host}" in |
7230 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7231 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7232 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7233 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7234 | esac | |
7235 | ||
3bbd2f8f | 7236 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7237 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7238 | # built executables to PATH. | |
3bbd2f8f AL |
7239 | if test "$RPATH_ENVVAR" = PATH; then |
7240 | GCC_SHLIB_SUBDIR=/shlib | |
7241 | else | |
7242 | GCC_SHLIB_SUBDIR= | |
7243 | fi | |
7244 | ||
730af8ee | 7245 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7246 | case $enable_bootstrap in | |
7247 | yes) | |
7248 | bootstrap_suffix=bootstrap | |
7249 | BUILD_CONFIG=bootstrap-debug | |
7250 | ;; | |
7251 | no) | |
7252 | bootstrap_suffix=no-bootstrap | |
7253 | BUILD_CONFIG= | |
7254 | ;; | |
7255 | esac | |
7256 | ||
7257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7258 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7259 | ||
7260 | ||
7261 | # Check whether --with-build-config was given. | |
7262 | if test "${with_build_config+set}" = set; then : | |
7263 | withval=$with_build_config; case $with_build_config in | |
7264 | yes) with_build_config= ;; | |
7265 | no) with_build_config= BUILD_CONFIG= ;; | |
7266 | esac | |
7267 | fi | |
7268 | ||
7269 | ||
7270 | if test "x${with_build_config}" != x; then | |
7271 | BUILD_CONFIG=$with_build_config | |
7272 | else | |
7273 | case $BUILD_CONFIG in | |
7274 | bootstrap-debug) | |
7275 | if echo "int f (void) { return 0; }" > conftest.c && | |
7276 | ${CC} -c conftest.c && | |
7277 | mv conftest.o conftest.o.g0 && | |
7278 | ${CC} -c -g conftest.c && | |
7279 | mv conftest.o conftest.o.g && | |
7280 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7281 | : | |
7282 | else | |
7283 | BUILD_CONFIG= | |
7284 | fi | |
7285 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7286 | ;; | |
7287 | esac | |
7288 | fi | |
7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7290 | $as_echo "$BUILD_CONFIG" >&6; } | |
7291 | ||
7292 | ||
7293 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7295 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7296 | # Check whether --enable-vtable-verify was given. | |
7297 | if test "${enable_vtable_verify+set}" = set; then : | |
7298 | enableval=$enable_vtable_verify; case "$enableval" in | |
7299 | yes) enable_vtable_verify=yes ;; | |
7300 | no) enable_vtable_verify=no ;; | |
7301 | *) enable_vtable_verify=no;; | |
7302 | esac | |
7303 | else | |
7304 | enable_vtable_verify=no | |
7305 | fi | |
7306 | ||
7307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7308 | $as_echo "$enable_vtable_verify" >&6; } | |
7309 | ||
a0da8069 NN |
7310 | # Record target_configdirs and the configure arguments for target and |
7311 | # build configuration in Makefile. | |
7312 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7313 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7314 | bootstrap_fixincludes=no |
a0da8069 | 7315 | |
2aa2364a JR |
7316 | # If we are building libgomp, bootstrap it. |
7317 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7318 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7319 | fi | |
7320 | ||
730af8ee | 7321 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7322 | # or bootstrap-ubsan, bootstrap it. | |
7323 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7324 | case "$BUILD_CONFIG" in | |
7325 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7326 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7327 | bootstrap_fixincludes=yes |
730af8ee | 7328 | ;; |
7329 | esac | |
5eb08693 L |
7330 | fi |
7331 | ||
730af8ee | 7332 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7333 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7334 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7335 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7336 | fi | |
7337 | ||
a0da8069 NN |
7338 | # Determine whether gdb needs tk/tcl or not. |
7339 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7340 | # and in that case we want gdb to be built without tk. Ugh! | |
7341 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7342 | # so we should be able to put the 'maybe's in unconditionally and | |
7343 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7344 | # 100% sure that that's safe though. | |
c180f501 | 7345 | |
675c6968 | 7346 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7347 | case "$enable_gdbtk" in |
7348 | no) | |
7349 | GDB_TK="" ;; | |
c180f501 AC |
7350 | yes) |
7351 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7352 | *) |
c180f501 AC |
7353 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7354 | # distro. Eventually someone will fix this and move Insight, nee | |
7355 | # gdbtk to a separate directory. | |
7356 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7357 | GDB_TK="${gdb_tk}" | |
7358 | else | |
7359 | GDB_TK="" | |
7360 | fi | |
7361 | ;; | |
a0da8069 | 7362 | esac |
907be67c DJ |
7363 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7364 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7365 | |
b6f9caee TT |
7366 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
7367 | # else does, only include them if one of these is built. The Makefile | |
7368 | # provides the ordering, so it's enough here to add to the list. | |
7369 | case " ${configdirs} " in | |
7370 | *\ gdb\ *) | |
7371 | configdirs="${configdirs} gnulib gdbsupport" | |
7372 | ;; | |
7373 | *\ gdbserver\ *) | |
7374 | configdirs="${configdirs} gnulib gdbsupport" | |
7375 | ;; | |
7376 | esac | |
73cc7272 | 7377 | |
6bd3dfaa | 7378 | # Strip out unwanted targets. |
dd12c3a8 NN |
7379 | |
7380 | # While at that, we remove Makefiles if we were started for recursive | |
7381 | # configuration, so that the top-level Makefile reconfigures them, | |
7382 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7383 | |
06a51eac RW |
7384 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7385 | # but now we're fixing up the Makefile ourselves with the additional | |
7386 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7387 | # extrasub-{build,host,target} not because there is any reason to split | |
7388 | # the substitutions up that way, but only to remain below the limit of | |
7389 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
7390 | |
7391 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7392 | # configure will not warn you at all. | |
dd12c3a8 | 7393 | |
16b1ad29 RW |
7394 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7395 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7396 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 7397 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
7398 | ;; |
7399 | esac | |
7400 | ||
06a51eac | 7401 | extrasub_build= |
6a9cf61e | 7402 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7403 | if test -z "${no_recursion}" \ |
7404 | && test -f ${build_subdir}/${module}/Makefile; then | |
7405 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7406 | rm -f ${build_subdir}/${module}/Makefile | |
7407 | fi | |
06a51eac | 7408 | extrasub_build="$extrasub_build |
498d4a71 CF |
7409 | /^@if build-$module\$/d |
7410 | /^@endif build-$module\$/d | |
4119873a | 7411 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 7412 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
7413 | /^@endif build-$module-$bootstrap_suffix\$/d |
7414 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 7415 | done |
06a51eac | 7416 | extrasub_host= |
498d4a71 | 7417 | for module in ${configdirs} ; do |
80911fe1 | 7418 | if test -z "${no_recursion}"; then |
8cf39b1b | 7419 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7420 | if test -f ${file}; then |
7421 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7422 | rm -f ${file} | |
7423 | fi | |
7424 | done | |
498d4a71 | 7425 | fi |
201f096f | 7426 | case ${module},${bootstrap_fixincludes} in |
7427 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7428 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7429 | esac | |
06a51eac | 7430 | extrasub_host="$extrasub_host |
498d4a71 CF |
7431 | /^@if $module\$/d |
7432 | /^@endif $module\$/d | |
4119873a | 7433 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 7434 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
7435 | /^@endif $module-$host_bootstrap_suffix\$/d |
7436 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7437 | done |
06a51eac | 7438 | extrasub_target= |
498d4a71 CF |
7439 | for module in ${target_configdirs} ; do |
7440 | if test -z "${no_recursion}" \ | |
7441 | && test -f ${target_subdir}/${module}/Makefile; then | |
7442 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7443 | rm -f ${target_subdir}/${module}/Makefile | |
7444 | fi | |
e8a5fa9c RW |
7445 | |
7446 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7447 | case $bootstrap_target_libs in | |
7448 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7449 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7450 | esac | |
7451 | ||
06a51eac | 7452 | extrasub_target="$extrasub_target |
498d4a71 CF |
7453 | /^@if target-$module\$/d |
7454 | /^@endif target-$module\$/d | |
4119873a | 7455 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 7456 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
7457 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7458 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7459 | done |
7460 | ||
06a51eac RW |
7461 | # Do the final fixup along with target modules. |
7462 | extrasub_target="$extrasub_target | |
4119873a AO |
7463 | /^@if /,/^@endif /d |
7464 | /^@unless /d | |
7465 | /^@endunless /d" | |
a0da8069 NN |
7466 | |
7467 | # Create the serialization dependencies. This uses a temporary file. | |
7468 | ||
81ecdfbb RW |
7469 | # Check whether --enable-serial-configure was given. |
7470 | if test "${enable_serial_configure+set}" = set; then : | |
7471 | enableval=$enable_serial_configure; | |
7472 | fi | |
e6bfb94a AO |
7473 | |
7474 | ||
1047cb91 DD |
7475 | case ${enable_serial_configure} in |
7476 | yes) | |
7477 | enable_serial_build_configure=yes | |
7478 | enable_serial_host_configure=yes | |
7479 | enable_serial_target_configure=yes | |
7480 | ;; | |
7481 | esac | |
7482 | ||
a0da8069 NN |
7483 | # These force 'configure's to be done one at a time, to avoid problems |
7484 | # with contention over a shared config.cache. | |
7485 | rm -f serdep.tmp | |
e6bfb94a | 7486 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7487 | olditem= |
1047cb91 | 7488 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7489 | for item in ${build_configdirs} ; do |
7490 | case ${olditem} in | |
7491 | "") ;; | |
e6bfb94a | 7492 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7493 | esac |
7494 | olditem=${item} | |
7495 | done | |
7496 | olditem= | |
1047cb91 | 7497 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7498 | for item in ${configdirs} ; do |
7499 | case ${olditem} in | |
7500 | "") ;; | |
e6bfb94a | 7501 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7502 | esac |
7503 | olditem=${item} | |
7504 | done | |
7505 | olditem= | |
1047cb91 | 7506 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7507 | for item in ${target_configdirs} ; do |
7508 | case ${olditem} in | |
7509 | "") ;; | |
e6bfb94a | 7510 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7511 | esac |
7512 | olditem=${item} | |
7513 | done | |
7514 | serialization_dependencies=serdep.tmp | |
7515 | ||
7516 | ||
e6bfb94a | 7517 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7518 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7519 | # might not want to pass down to subconfigures. The exception being |
7520 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7521 | # files altogether, and which should be passed on to subconfigures. | |
7522 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7523 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7524 | baseargs= |
65b4571a | 7525 | tbaseargs= |
c6b750e1 DJ |
7526 | keep_next=no |
7527 | skip_next=no | |
7528 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7529 | for ac_arg |
7530 | do | |
c6b750e1 DJ |
7531 | if test X"$skip_next" = X"yes"; then |
7532 | skip_next=no | |
7533 | continue | |
7534 | fi | |
7535 | if test X"$keep_next" = X"yes"; then | |
7536 | case $ac_arg in | |
7537 | *\'*) | |
7538 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7539 | esac | |
7540 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7541 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7542 | keep_next=no |
7543 | continue | |
7544 | fi | |
7545 | ||
7546 | # Handle separated arguments. Based on the logic generated by | |
7547 | # autoconf 2.59. | |
7548 | case $ac_arg in | |
7549 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7550 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7551 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7552 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7553 | separate_arg=no | |
7554 | ;; | |
7555 | -*) | |
7556 | separate_arg=yes | |
7557 | ;; | |
7558 | *) | |
7559 | separate_arg=no | |
7560 | ;; | |
7561 | esac | |
7562 | ||
65b4571a AO |
7563 | skip_targ=no |
7564 | case $ac_arg in | |
7565 | ||
7566 | --with-* | --without-*) | |
7567 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7568 | ||
7569 | case $libopt in | |
7570 | *[-_]include) | |
7571 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7572 | ;; | |
7573 | *[-_]lib) | |
7574 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7575 | ;; | |
7576 | *) | |
7577 | lib=$libopt | |
7578 | ;; | |
7579 | esac | |
7580 | ||
7581 | ||
7582 | case $lib in | |
1b6c0831 | 7583 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7584 | # If we're processing --with-$lib, --with-$lib-include or |
7585 | # --with-$lib-lib, for one of the libs above, and target is | |
7586 | # different from host, don't pass the current argument to any | |
7587 | # target library's configure. | |
7588 | if test x$is_cross_compiler = xyes; then | |
7589 | skip_targ=yes | |
7590 | fi | |
7591 | ;; | |
7592 | esac | |
7593 | ;; | |
7594 | esac | |
7595 | ||
c6b750e1 | 7596 | case "$ac_arg" in |
30167e0a NC |
7597 | --cache-file=/dev/null | \ |
7598 | -cache-file=/dev/null ) | |
7599 | # Handled here to avoid the test to skip args below. | |
7600 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7601 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7602 | # Assert: $separate_arg should always be no. |
7603 | keep_next=$separate_arg | |
7604 | ;; | |
c6b750e1 DJ |
7605 | --no*) |
7606 | continue | |
7607 | ;; | |
7608 | --c* | \ | |
7609 | --sr* | \ | |
7610 | --ho* | \ | |
7611 | --bu* | \ | |
7612 | --t* | \ | |
7613 | --program-* | \ | |
7614 | -cache_file* | \ | |
7615 | -srcdir* | \ | |
7616 | -host* | \ | |
7617 | -build* | \ | |
7618 | -target* | \ | |
7619 | -program-prefix* | \ | |
7620 | -program-suffix* | \ | |
7621 | -program-transform-name* ) | |
7622 | skip_next=$separate_arg | |
7623 | continue | |
7624 | ;; | |
7625 | -*) | |
7626 | # An option. Add it. | |
7627 | case $ac_arg in | |
7628 | *\'*) | |
7629 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7630 | esac | |
7631 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7632 | if test X"$skip_targ" = Xno; then |
7633 | tbaseargs="$tbaseargs '$ac_arg'" | |
7634 | fi | |
c6b750e1 DJ |
7635 | keep_next=$separate_arg |
7636 | ;; | |
7637 | *) | |
7638 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7639 | # pass it down; let the Makefile handle this. | |
7640 | continue | |
7641 | ;; | |
7642 | esac | |
7643 | done | |
7644 | # Remove the initial space we just introduced and, as these will be | |
7645 | # expanded by make, quote '$'. | |
7646 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7647 | |
f27d4f92 DJ |
7648 | # Add in --program-transform-name, after --program-prefix and |
7649 | # --program-suffix have been applied to it. Autoconf has already | |
7650 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7651 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7652 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7653 | # Also, because we want to override the logic in subdir configure scripts to |
7654 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7655 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7656 | ${program_transform_name} | |
7657 | EOF_SED | |
7658 | gcc_transform_name=`cat conftestsed.out` | |
7659 | rm -f conftestsed.out | |
7660 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7661 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7662 | if test "$silent" = yes; then |
7663 | baseargs="$baseargs --silent" | |
65b4571a | 7664 | tbaseargs="$tbaseargs --silent" |
2444379b | 7665 | fi |
34a0f3cf | 7666 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7667 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7668 | |
4074d5f2 RW |
7669 | # Record and document user additions to sub configure arguments. |
7670 | ||
7671 | ||
7672 | ||
7673 | ||
a0da8069 NN |
7674 | # For the build-side libraries, we just need to pretend we're native, |
7675 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7676 | # desired. We can't even use the same cache file for all build-side |
7677 | # libraries, as they're compiled differently; some with C, some with | |
7678 | # C++ or with different feature-enabling options. | |
7679 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7680 | |
7681 | # For host modules, accept cache file option, or specification as blank. | |
7682 | case "${cache_file}" in | |
7683 | "") # empty | |
7684 | cache_file_option="" ;; | |
7685 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7686 | cache_file_option="--cache-file=${cache_file}" ;; | |
7687 | *) # relative path | |
7688 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7689 | esac | |
7690 | ||
82252c06 NN |
7691 | # Host dirs don't like to share a cache file either, horribly enough. |
7692 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7693 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7694 | |
65b4571a | 7695 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7696 | |
7697 | # Passing a --with-cross-host argument lets the target libraries know | |
7698 | # whether they are being built with a cross-compiler or being built | |
7699 | # native. However, it would be better to use other mechanisms to make the | |
7700 | # sorts of decisions they want to make on this basis. Please consider | |
7701 | # this option to be deprecated. FIXME. | |
7702 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7703 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7704 | fi |
7705 | ||
afc0578d | 7706 | # Special user-friendly check for native x86_64-linux build, if |
7707 | # multilib is not explicitly enabled. | |
7708 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7709 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7710 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7711 | dev64=no |
7712 | echo "int main () { return 0; }" > conftest.c | |
7713 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7714 | if test $? = 0 ; then | |
7715 | if test -s conftest || test -s conftest.exe ; then | |
7716 | dev64=yes | |
7717 | fi | |
7718 | fi | |
7719 | rm -f conftest* | |
7720 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 7721 | 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 | 7722 | fi |
7723 | ;; | |
7724 | esac | |
7725 | ||
938d2b74 RW |
7726 | # Default to --enable-multilib. |
7727 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7728 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7729 | fi |
a0da8069 NN |
7730 | |
7731 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7732 | # changed from the earlier setting of with_newlib. | |
7733 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7734 | target_configargs="--with-newlib ${target_configargs}" | |
7735 | fi | |
7736 | ||
95036d20 NN |
7737 | # Different target subdirs use different values of certain variables |
7738 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7739 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7740 | # it doesn't automatically accept command-line overrides of them. | |
7741 | # This means it's not safe for target subdirs to share a cache file, | |
7742 | # which is disgusting, but there you have it. Hopefully this can be | |
7743 | # fixed in future. It's still worthwhile to use a cache file for each | |
7744 | # directory. I think. | |
7745 | ||
ae380b45 MS |
7746 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7747 | # We need to pass --target, as newer autoconf's requires consistency | |
7748 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7749 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7750 | |
a0da8069 NN |
7751 | FLAGS_FOR_TARGET= |
7752 | case " $target_configdirs " in | |
7753 | *" newlib "*) | |
7754 | case " $target_configargs " in | |
7755 | *" --with-newlib "*) | |
7756 | case "$target" in | |
1f53ca9a | 7757 | *-cygwin*) |
6d94c122 | 7758 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7759 | ;; |
a0da8069 NN |
7760 | esac |
7761 | ||
7762 | # If we're not building GCC, don't discard standard headers. | |
7763 | if test -d ${srcdir}/gcc; then | |
7764 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7765 | ||
7766 | if test "${build}" != "${host}"; then | |
7767 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7768 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7769 | # to it. This is right: we don't want to search that directory | |
7770 | # for binaries, but we want the header files in there, so add | |
7771 | # them explicitly. | |
e552509b | 7772 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7773 | |
7774 | # Someone might think of using the pre-installed headers on | |
7775 | # Canadian crosses, in case the installed compiler is not fully | |
7776 | # compatible with the compiler being built. In this case, it | |
7777 | # would be better to flag an error than risking having | |
7778 | # incompatible object files being constructed. We can't | |
7779 | # guarantee that an error will be flagged, but let's hope the | |
7780 | # compiler will do it, when presented with incompatible header | |
7781 | # files. | |
7782 | fi | |
7783 | fi | |
7784 | ||
7785 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7786 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7787 | # Here host == target, so we don't need to build gcc, |
7788 | # so we don't want to discard standard headers. | |
7789 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7790 | ;; | |
7791 | *) | |
7792 | # If we're building newlib, use its generic headers last, but search | |
7793 | # for any libc-related directories first (so make it the last -B | |
7794 | # switch). | |
7795 | 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 |
7796 | |
7797 | # If we're building libgloss, find the startup file, simulator library | |
7798 | # and linker script. | |
7799 | case " $target_configdirs " in | |
7800 | *" libgloss "*) | |
7801 | # Look for startup file, simulator library and maybe linker script. | |
7802 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7803 | # Look for libnosys.a in case the target needs it. | |
7804 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7805 | # Most targets have the linker script in the source directory. | |
7806 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7807 | ;; | |
7808 | esac | |
a0da8069 NN |
7809 | ;; |
7810 | esac | |
7811 | ;; | |
7812 | esac | |
7813 | ;; | |
7814 | esac | |
1f53ca9a | 7815 | |
45055374 | 7816 | case "$target" in |
1f53ca9a AO |
7817 | x86_64-*mingw* | *-w64-mingw*) |
7818 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7819 | # however, use a symlink named 'mingw' in ${prefix} . | |
7820 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7821 | ;; | |
7822 | *-mingw*) | |
7823 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7824 | 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' | |
7825 | ;; | |
45055374 | 7826 | esac |
a0da8069 | 7827 | |
5fbad20a DD |
7828 | # Allow the user to override the flags for |
7829 | # our build compiler if desired. | |
c66487f8 NC |
7830 | if test x"${build}" = x"${host}" ; then |
7831 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7832 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7833 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7834 | fi | |
5fbad20a | 7835 | |
a0da8069 NN |
7836 | # On Canadian crosses, we'll be searching the right directories for |
7837 | # the previously-installed cross compiler, so don't bother to add | |
7838 | # flags for directories within the install tree of the compiler | |
7839 | # being built; programs in there won't even run. | |
7840 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7841 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7842 | 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 |
7843 | fi |
7844 | ||
7845 | if test "x${use_gnu_ld}" = x && | |
7846 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7847 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7848 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7849 | fi |
7850 | ||
a481dbb7 DD |
7851 | # Search for other target-specific linker scripts and such. |
7852 | case "${target}" in | |
4e206d7e DB |
7853 | mep*) |
7854 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7855 | ;; | |
7856 | esac | |
7857 | ||
a0da8069 | 7858 | # Makefile fragments. |
3e707e94 PB |
7859 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7860 | do | |
7861 | eval fragval=\$$frag | |
7862 | if test $fragval != /dev/null; then | |
7863 | eval $frag=${srcdir}/$fragval | |
7864 | fi | |
7865 | done | |
a0da8069 NN |
7866 | |
7867 | ||
7868 | ||
7869 | ||
7870 | ||
7871 | # Miscellanea: directories, flags, etc. | |
7872 | ||
7873 | ||
7874 | ||
7875 | ||
7876 | ||
7877 | ||
7878 | ||
3bbd2f8f | 7879 | |
6a9cf61e | 7880 | # Build module lists & subconfigure args. |
a0da8069 NN |
7881 | |
7882 | ||
7883 | ||
be01d343 PB |
7884 | # Host module lists & subconfigure args. |
7885 | ||
7886 | ||
7887 | ||
911e63d0 | 7888 | |
be01d343 PB |
7889 | # Target module lists & subconfigure args. |
7890 | ||
7891 | ||
7892 | ||
7893 | # Build tools. | |
7894 | ||
7895 | ||
7896 | ||
1576798e PB |
7897 | |
7898 | ||
7899 | ||
7900 | ||
7901 | ||
7902 | ||
7903 | ||
7904 | ||
7905 | ||
7906 | ||
7907 | ||
7908 | ||
7909 | ||
be01d343 PB |
7910 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7911 | # on the build machine. These are used if the Makefile can't locate these | |
7912 | # programs in objdir. | |
7913 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7914 | ||
7915 | for ac_prog in 'bison -y' byacc yacc | |
7916 | do | |
c6b750e1 | 7917 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7918 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7920 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7921 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 7922 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7923 | else |
7924 | if test -n "$YACC"; then | |
7925 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7926 | else | |
c6b750e1 DJ |
7927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7928 | for as_dir in $PATH | |
7929 | do | |
7930 | IFS=$as_save_IFS | |
7931 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7932 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7934 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7936 | break 2 |
7937 | fi | |
7938 | done | |
81ecdfbb RW |
7939 | done |
7940 | IFS=$as_save_IFS | |
c6b750e1 | 7941 | |
be01d343 PB |
7942 | fi |
7943 | fi | |
c6b750e1 | 7944 | YACC=$ac_cv_prog_YACC |
be01d343 | 7945 | if test -n "$YACC"; then |
81ecdfbb RW |
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7947 | $as_echo "$YACC" >&6; } | |
be01d343 | 7948 | else |
81ecdfbb RW |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7950 | $as_echo "no" >&6; } | |
be01d343 PB |
7951 | fi |
7952 | ||
81ecdfbb | 7953 | |
c6b750e1 | 7954 | test -n "$YACC" && break |
be01d343 PB |
7955 | done |
7956 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7957 | ||
7958 | case " $build_configdirs " in | |
7959 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7960 | esac |
7961 | ||
7962 | for ac_prog in bison | |
7963 | do | |
c6b750e1 | 7964 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7965 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7967 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7968 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 7969 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7970 | else |
7971 | if test -n "$BISON"; then | |
7972 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7973 | else | |
c6b750e1 DJ |
7974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7975 | for as_dir in $PATH | |
7976 | do | |
7977 | IFS=$as_save_IFS | |
7978 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7979 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7981 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7983 | break 2 |
7984 | fi | |
7985 | done | |
81ecdfbb RW |
7986 | done |
7987 | IFS=$as_save_IFS | |
c6b750e1 | 7988 | |
be01d343 PB |
7989 | fi |
7990 | fi | |
c6b750e1 | 7991 | BISON=$ac_cv_prog_BISON |
be01d343 | 7992 | if test -n "$BISON"; then |
81ecdfbb RW |
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7994 | $as_echo "$BISON" >&6; } | |
be01d343 | 7995 | else |
81ecdfbb RW |
7996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7997 | $as_echo "no" >&6; } | |
be01d343 PB |
7998 | fi |
7999 | ||
81ecdfbb | 8000 | |
c6b750e1 | 8001 | test -n "$BISON" && break |
be01d343 PB |
8002 | done |
8003 | test -n "$BISON" || BISON="$MISSING bison" | |
8004 | ||
8005 | case " $build_configdirs " in | |
8006 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
8007 | esac | |
8008 | ||
8009 | for ac_prog in gm4 gnum4 m4 | |
8010 | do | |
c6b750e1 | 8011 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8012 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8014 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8015 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 8016 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8017 | else |
8018 | if test -n "$M4"; then | |
8019 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
8020 | else | |
c6b750e1 DJ |
8021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8022 | for as_dir in $PATH | |
8023 | do | |
8024 | IFS=$as_save_IFS | |
8025 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8026 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8028 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 8029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8030 | break 2 |
8031 | fi | |
8032 | done | |
81ecdfbb RW |
8033 | done |
8034 | IFS=$as_save_IFS | |
c6b750e1 | 8035 | |
be01d343 PB |
8036 | fi |
8037 | fi | |
c6b750e1 | 8038 | M4=$ac_cv_prog_M4 |
be01d343 | 8039 | if test -n "$M4"; then |
81ecdfbb RW |
8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
8041 | $as_echo "$M4" >&6; } | |
be01d343 | 8042 | else |
81ecdfbb RW |
8043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8044 | $as_echo "no" >&6; } | |
be01d343 PB |
8045 | fi |
8046 | ||
81ecdfbb | 8047 | |
c6b750e1 | 8048 | test -n "$M4" && break |
be01d343 PB |
8049 | done |
8050 | test -n "$M4" || M4="$MISSING m4" | |
8051 | ||
8052 | case " $build_configdirs " in | |
8053 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
8054 | esac | |
8055 | ||
8056 | for ac_prog in flex lex | |
8057 | do | |
c6b750e1 | 8058 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8059 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8061 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8062 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 8063 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8064 | else |
8065 | if test -n "$LEX"; then | |
8066 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8067 | else | |
c6b750e1 DJ |
8068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8069 | for as_dir in $PATH | |
8070 | do | |
8071 | IFS=$as_save_IFS | |
8072 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8073 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8075 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 8076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8077 | break 2 |
8078 | fi | |
8079 | done | |
81ecdfbb RW |
8080 | done |
8081 | IFS=$as_save_IFS | |
c6b750e1 | 8082 | |
be01d343 PB |
8083 | fi |
8084 | fi | |
c6b750e1 | 8085 | LEX=$ac_cv_prog_LEX |
be01d343 | 8086 | if test -n "$LEX"; then |
81ecdfbb RW |
8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
8088 | $as_echo "$LEX" >&6; } | |
be01d343 | 8089 | else |
81ecdfbb RW |
8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8091 | $as_echo "no" >&6; } | |
be01d343 PB |
8092 | fi |
8093 | ||
81ecdfbb | 8094 | |
c6b750e1 | 8095 | test -n "$LEX" && break |
be01d343 PB |
8096 | done |
8097 | test -n "$LEX" || LEX="$MISSING flex" | |
8098 | ||
8099 | case " $build_configdirs " in | |
8100 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8101 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
8102 | esac | |
8103 | ||
8104 | for ac_prog in flex | |
8105 | do | |
c6b750e1 | 8106 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8107 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8109 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8110 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 8111 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8112 | else |
8113 | if test -n "$FLEX"; then | |
8114 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
8115 | else | |
c6b750e1 DJ |
8116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8117 | for as_dir in $PATH | |
8118 | do | |
8119 | IFS=$as_save_IFS | |
8120 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8121 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8122 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8123 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 8124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8125 | break 2 |
8126 | fi | |
8127 | done | |
81ecdfbb RW |
8128 | done |
8129 | IFS=$as_save_IFS | |
c6b750e1 | 8130 | |
be01d343 PB |
8131 | fi |
8132 | fi | |
c6b750e1 | 8133 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 8134 | if test -n "$FLEX"; then |
81ecdfbb RW |
8135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
8136 | $as_echo "$FLEX" >&6; } | |
be01d343 | 8137 | else |
81ecdfbb RW |
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8139 | $as_echo "no" >&6; } | |
be01d343 PB |
8140 | fi |
8141 | ||
81ecdfbb | 8142 | |
c6b750e1 | 8143 | test -n "$FLEX" && break |
be01d343 PB |
8144 | done |
8145 | test -n "$FLEX" || FLEX="$MISSING flex" | |
8146 | ||
8147 | case " $build_configdirs " in | |
8148 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8149 | esac | |
8150 | ||
8151 | for ac_prog in makeinfo | |
8152 | do | |
c6b750e1 | 8153 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8154 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8156 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8157 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 8158 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8159 | else |
8160 | if test -n "$MAKEINFO"; then | |
8161 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8162 | else | |
c6b750e1 DJ |
8163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8164 | for as_dir in $PATH | |
8165 | do | |
8166 | IFS=$as_save_IFS | |
8167 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8168 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8169 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8170 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 8171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8172 | break 2 |
8173 | fi | |
8174 | done | |
81ecdfbb RW |
8175 | done |
8176 | IFS=$as_save_IFS | |
c6b750e1 | 8177 | |
be01d343 PB |
8178 | fi |
8179 | fi | |
c6b750e1 | 8180 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 8181 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8183 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 8184 | else |
81ecdfbb RW |
8185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8186 | $as_echo "no" >&6; } | |
be01d343 PB |
8187 | fi |
8188 | ||
81ecdfbb | 8189 | |
c6b750e1 | 8190 | test -n "$MAKEINFO" && break |
be01d343 PB |
8191 | done |
8192 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8193 | ||
8194 | case " $build_configdirs " in | |
8195 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8196 | *) | |
8197 | ||
10ad8ef3 | 8198 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
8199 | # higher, else we use the "missing" dummy. |
8200 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 8201 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
8202 | : |
8203 | else | |
8204 | MAKEINFO="$MISSING makeinfo" | |
8205 | fi | |
8206 | ;; | |
8207 | ||
8208 | esac | |
a0da8069 | 8209 | |
be01d343 | 8210 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8211 | |
be01d343 PB |
8212 | for ac_prog in expect |
8213 | do | |
c6b750e1 | 8214 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8215 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8217 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8218 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 8219 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8220 | else |
8221 | if test -n "$EXPECT"; then | |
8222 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8223 | else | |
c6b750e1 DJ |
8224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8225 | for as_dir in $PATH | |
8226 | do | |
8227 | IFS=$as_save_IFS | |
8228 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8229 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8231 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8233 | break 2 |
8234 | fi | |
8235 | done | |
81ecdfbb RW |
8236 | done |
8237 | IFS=$as_save_IFS | |
c6b750e1 | 8238 | |
be01d343 PB |
8239 | fi |
8240 | fi | |
c6b750e1 | 8241 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8242 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8244 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8245 | else |
81ecdfbb RW |
8246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8247 | $as_echo "no" >&6; } | |
be01d343 | 8248 | fi |
a0da8069 | 8249 | |
81ecdfbb | 8250 | |
c6b750e1 | 8251 | test -n "$EXPECT" && break |
be01d343 PB |
8252 | done |
8253 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8254 | |
be01d343 PB |
8255 | case " $configdirs " in |
8256 | *" expect "*) | |
8257 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8258 | ;; | |
8259 | esac | |
a0da8069 | 8260 | |
be01d343 PB |
8261 | for ac_prog in runtest |
8262 | do | |
c6b750e1 | 8263 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8264 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8266 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8267 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 8268 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8269 | else |
8270 | if test -n "$RUNTEST"; then | |
8271 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8272 | else | |
c6b750e1 DJ |
8273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8274 | for as_dir in $PATH | |
8275 | do | |
8276 | IFS=$as_save_IFS | |
8277 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8278 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8280 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8282 | break 2 |
8283 | fi | |
8284 | done | |
81ecdfbb RW |
8285 | done |
8286 | IFS=$as_save_IFS | |
c6b750e1 | 8287 | |
be01d343 PB |
8288 | fi |
8289 | fi | |
c6b750e1 | 8290 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8291 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8293 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8294 | else |
81ecdfbb RW |
8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8296 | $as_echo "no" >&6; } | |
be01d343 | 8297 | fi |
a0da8069 | 8298 | |
81ecdfbb | 8299 | |
c6b750e1 | 8300 | test -n "$RUNTEST" && break |
be01d343 PB |
8301 | done |
8302 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8303 | |
be01d343 PB |
8304 | case " $configdirs " in |
8305 | *" dejagnu "*) | |
6b89cc21 | 8306 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8307 | ;; |
8308 | esac | |
a0da8069 NN |
8309 | |
8310 | ||
a0da8069 | 8311 | # Host tools. |
859789af AC |
8312 | ncn_tool_prefix= |
8313 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8314 | ncn_target_tool_prefix= | |
8315 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8316 | ||
9a819804 AO |
8317 | |
8318 | ||
8319 | if test -n "$AR"; then | |
8320 | ac_cv_prog_AR=$AR | |
8321 | elif test -n "$ac_cv_prog_AR"; then | |
8322 | AR=$ac_cv_prog_AR | |
8323 | fi | |
8324 | ||
8325 | if test -n "$ac_cv_prog_AR"; then | |
8326 | for ncn_progname in ar; do | |
8327 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8328 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8330 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8331 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8332 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8333 | else |
8334 | if test -n "$AR"; then | |
8335 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8336 | else | |
8337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8338 | for as_dir in $PATH | |
8339 | do | |
8340 | IFS=$as_save_IFS | |
8341 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8342 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8343 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8344 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8346 | break 2 |
8347 | fi | |
8348 | done | |
81ecdfbb RW |
8349 | done |
8350 | IFS=$as_save_IFS | |
9a819804 AO |
8351 | |
8352 | fi | |
8353 | fi | |
8354 | AR=$ac_cv_prog_AR | |
8355 | if test -n "$AR"; then | |
81ecdfbb RW |
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8357 | $as_echo "$AR" >&6; } | |
9a819804 | 8358 | else |
81ecdfbb RW |
8359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8360 | $as_echo "no" >&6; } | |
9a819804 AO |
8361 | fi |
8362 | ||
81ecdfbb | 8363 | |
9a819804 AO |
8364 | done |
8365 | fi | |
8366 | ||
8367 | for ncn_progname in ar; do | |
05cbd757 PB |
8368 | if test -n "$ncn_tool_prefix"; then |
8369 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8370 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8372 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8373 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8374 | $as_echo_n "(cached) " >&6 |
859789af AC |
8375 | else |
8376 | if test -n "$AR"; then | |
8377 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8378 | else | |
c6b750e1 DJ |
8379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8380 | for as_dir in $PATH | |
8381 | do | |
8382 | IFS=$as_save_IFS | |
8383 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8384 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8386 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8388 | break 2 |
8389 | fi | |
8390 | done | |
81ecdfbb RW |
8391 | done |
8392 | IFS=$as_save_IFS | |
c6b750e1 | 8393 | |
859789af AC |
8394 | fi |
8395 | fi | |
c6b750e1 | 8396 | AR=$ac_cv_prog_AR |
859789af | 8397 | if test -n "$AR"; then |
81ecdfbb RW |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8399 | $as_echo "$AR" >&6; } | |
859789af | 8400 | else |
81ecdfbb RW |
8401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8402 | $as_echo "no" >&6; } | |
859789af AC |
8403 | fi |
8404 | ||
81ecdfbb | 8405 | |
05cbd757 PB |
8406 | fi |
8407 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8408 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8409 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8411 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8412 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8413 | $as_echo_n "(cached) " >&6 |
859789af | 8414 | else |
05cbd757 PB |
8415 | if test -n "$AR"; then |
8416 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8417 | else |
c6b750e1 DJ |
8418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8419 | for as_dir in $PATH | |
8420 | do | |
8421 | IFS=$as_save_IFS | |
8422 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8423 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8424 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8425 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8426 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8427 | break 2 |
8428 | fi | |
8429 | done | |
81ecdfbb RW |
8430 | done |
8431 | IFS=$as_save_IFS | |
c6b750e1 | 8432 | |
859789af AC |
8433 | fi |
8434 | fi | |
c6b750e1 | 8435 | AR=$ac_cv_prog_AR |
05cbd757 | 8436 | if test -n "$AR"; then |
81ecdfbb RW |
8437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8438 | $as_echo "$AR" >&6; } | |
859789af | 8439 | else |
81ecdfbb RW |
8440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8441 | $as_echo "no" >&6; } | |
859789af | 8442 | fi |
c6b750e1 | 8443 | |
81ecdfbb | 8444 | |
05cbd757 PB |
8445 | fi |
8446 | test -n "$ac_cv_prog_AR" && break | |
8447 | done | |
8448 | ||
8449 | if test -z "$ac_cv_prog_AR" ; then | |
8450 | set dummy ar | |
8451 | if test $build = $host ; then | |
8452 | AR="$2" | |
859789af | 8453 | else |
05cbd757 | 8454 | AR="${ncn_tool_prefix}$2" |
859789af | 8455 | fi |
859789af AC |
8456 | fi |
8457 | ||
9a819804 AO |
8458 | |
8459 | ||
8460 | if test -n "$AS"; then | |
8461 | ac_cv_prog_AS=$AS | |
8462 | elif test -n "$ac_cv_prog_AS"; then | |
8463 | AS=$ac_cv_prog_AS | |
8464 | fi | |
8465 | ||
8466 | if test -n "$ac_cv_prog_AS"; then | |
8467 | for ncn_progname in as; do | |
8468 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8469 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8471 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8472 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8473 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8474 | else |
8475 | if test -n "$AS"; then | |
8476 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8477 | else | |
8478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8479 | for as_dir in $PATH | |
8480 | do | |
8481 | IFS=$as_save_IFS | |
8482 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8483 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8484 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8485 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8487 | break 2 |
8488 | fi | |
8489 | done | |
81ecdfbb RW |
8490 | done |
8491 | IFS=$as_save_IFS | |
9a819804 AO |
8492 | |
8493 | fi | |
8494 | fi | |
8495 | AS=$ac_cv_prog_AS | |
8496 | if test -n "$AS"; then | |
81ecdfbb RW |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8498 | $as_echo "$AS" >&6; } | |
9a819804 | 8499 | else |
81ecdfbb RW |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8501 | $as_echo "no" >&6; } | |
9a819804 AO |
8502 | fi |
8503 | ||
81ecdfbb | 8504 | |
9a819804 AO |
8505 | done |
8506 | fi | |
8507 | ||
8508 | for ncn_progname in as; do | |
05cbd757 PB |
8509 | if test -n "$ncn_tool_prefix"; then |
8510 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8511 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8513 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8514 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8515 | $as_echo_n "(cached) " >&6 |
859789af AC |
8516 | else |
8517 | if test -n "$AS"; then | |
8518 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8519 | else |
8520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8521 | for as_dir in $PATH | |
8522 | do | |
8523 | IFS=$as_save_IFS | |
8524 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8525 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8526 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8527 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8529 | break 2 |
8530 | fi | |
8531 | done | |
81ecdfbb RW |
8532 | done |
8533 | IFS=$as_save_IFS | |
c6b750e1 | 8534 | |
859789af AC |
8535 | fi |
8536 | fi | |
c6b750e1 | 8537 | AS=$ac_cv_prog_AS |
859789af | 8538 | if test -n "$AS"; then |
81ecdfbb RW |
8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8540 | $as_echo "$AS" >&6; } | |
859789af | 8541 | else |
81ecdfbb RW |
8542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8543 | $as_echo "no" >&6; } | |
859789af AC |
8544 | fi |
8545 | ||
81ecdfbb | 8546 | |
05cbd757 PB |
8547 | fi |
8548 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8549 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8550 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8552 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8553 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8554 | $as_echo_n "(cached) " >&6 |
859789af | 8555 | else |
05cbd757 PB |
8556 | if test -n "$AS"; then |
8557 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8558 | else |
c6b750e1 DJ |
8559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8560 | for as_dir in $PATH | |
8561 | do | |
8562 | IFS=$as_save_IFS | |
8563 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8564 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8565 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8566 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8568 | break 2 |
8569 | fi | |
8570 | done | |
81ecdfbb RW |
8571 | done |
8572 | IFS=$as_save_IFS | |
c6b750e1 | 8573 | |
859789af AC |
8574 | fi |
8575 | fi | |
c6b750e1 | 8576 | AS=$ac_cv_prog_AS |
05cbd757 | 8577 | if test -n "$AS"; then |
81ecdfbb RW |
8578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8579 | $as_echo "$AS" >&6; } | |
859789af | 8580 | else |
81ecdfbb RW |
8581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8582 | $as_echo "no" >&6; } | |
859789af | 8583 | fi |
c6b750e1 | 8584 | |
81ecdfbb | 8585 | |
05cbd757 PB |
8586 | fi |
8587 | test -n "$ac_cv_prog_AS" && break | |
8588 | done | |
8589 | ||
8590 | if test -z "$ac_cv_prog_AS" ; then | |
8591 | set dummy as | |
8592 | if test $build = $host ; then | |
8593 | AS="$2" | |
859789af | 8594 | else |
05cbd757 | 8595 | AS="${ncn_tool_prefix}$2" |
859789af | 8596 | fi |
859789af AC |
8597 | fi |
8598 | ||
9a819804 AO |
8599 | |
8600 | ||
8601 | if test -n "$DLLTOOL"; then | |
8602 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8603 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8604 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8605 | fi | |
8606 | ||
8607 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8608 | for ncn_progname in dlltool; do | |
8609 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8610 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8612 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8613 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8614 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8615 | else |
8616 | if test -n "$DLLTOOL"; then | |
8617 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8618 | else | |
8619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8620 | for as_dir in $PATH | |
8621 | do | |
8622 | IFS=$as_save_IFS | |
8623 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8624 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8625 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8626 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8628 | break 2 |
8629 | fi | |
8630 | done | |
81ecdfbb RW |
8631 | done |
8632 | IFS=$as_save_IFS | |
9a819804 AO |
8633 | |
8634 | fi | |
8635 | fi | |
8636 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8637 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8639 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8640 | else |
81ecdfbb RW |
8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8642 | $as_echo "no" >&6; } | |
9a819804 AO |
8643 | fi |
8644 | ||
81ecdfbb | 8645 | |
9a819804 AO |
8646 | done |
8647 | fi | |
8648 | ||
8649 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8650 | if test -n "$ncn_tool_prefix"; then |
8651 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8652 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8654 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8655 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8656 | $as_echo_n "(cached) " >&6 |
859789af AC |
8657 | else |
8658 | if test -n "$DLLTOOL"; then | |
8659 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8660 | else | |
c6b750e1 DJ |
8661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8662 | for as_dir in $PATH | |
8663 | do | |
8664 | IFS=$as_save_IFS | |
8665 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8666 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8667 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8668 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8670 | break 2 |
8671 | fi | |
8672 | done | |
81ecdfbb RW |
8673 | done |
8674 | IFS=$as_save_IFS | |
c6b750e1 | 8675 | |
859789af AC |
8676 | fi |
8677 | fi | |
c6b750e1 | 8678 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8679 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8681 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8682 | else |
81ecdfbb RW |
8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8684 | $as_echo "no" >&6; } | |
859789af AC |
8685 | fi |
8686 | ||
81ecdfbb | 8687 | |
05cbd757 PB |
8688 | fi |
8689 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8690 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8691 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8693 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8694 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8695 | $as_echo_n "(cached) " >&6 |
859789af | 8696 | else |
05cbd757 PB |
8697 | if test -n "$DLLTOOL"; then |
8698 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8699 | else |
c6b750e1 DJ |
8700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8701 | for as_dir in $PATH | |
8702 | do | |
8703 | IFS=$as_save_IFS | |
8704 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8705 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8706 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8707 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8709 | break 2 |
8710 | fi | |
8711 | done | |
81ecdfbb RW |
8712 | done |
8713 | IFS=$as_save_IFS | |
c6b750e1 | 8714 | |
859789af AC |
8715 | fi |
8716 | fi | |
c6b750e1 | 8717 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8718 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8720 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8721 | else |
81ecdfbb RW |
8722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8723 | $as_echo "no" >&6; } | |
859789af | 8724 | fi |
c6b750e1 | 8725 | |
81ecdfbb | 8726 | |
05cbd757 PB |
8727 | fi |
8728 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8729 | done | |
8730 | ||
8731 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8732 | set dummy dlltool | |
8733 | if test $build = $host ; then | |
8734 | DLLTOOL="$2" | |
859789af | 8735 | else |
05cbd757 | 8736 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8737 | fi |
859789af AC |
8738 | fi |
8739 | ||
9a819804 AO |
8740 | |
8741 | ||
8742 | if test -n "$LD"; then | |
8743 | ac_cv_prog_LD=$LD | |
8744 | elif test -n "$ac_cv_prog_LD"; then | |
8745 | LD=$ac_cv_prog_LD | |
8746 | fi | |
8747 | ||
8748 | if test -n "$ac_cv_prog_LD"; then | |
8749 | for ncn_progname in ld; do | |
8750 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8751 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8753 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8754 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8755 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8756 | else |
8757 | if test -n "$LD"; then | |
8758 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8759 | else | |
8760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8761 | for as_dir in $PATH | |
8762 | do | |
8763 | IFS=$as_save_IFS | |
8764 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8765 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8766 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8767 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8769 | break 2 |
8770 | fi | |
8771 | done | |
81ecdfbb RW |
8772 | done |
8773 | IFS=$as_save_IFS | |
9a819804 AO |
8774 | |
8775 | fi | |
8776 | fi | |
8777 | LD=$ac_cv_prog_LD | |
8778 | if test -n "$LD"; then | |
81ecdfbb RW |
8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8780 | $as_echo "$LD" >&6; } | |
9a819804 | 8781 | else |
81ecdfbb RW |
8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8783 | $as_echo "no" >&6; } | |
9a819804 AO |
8784 | fi |
8785 | ||
81ecdfbb | 8786 | |
9a819804 AO |
8787 | done |
8788 | fi | |
8789 | ||
8790 | for ncn_progname in ld; do | |
05cbd757 PB |
8791 | if test -n "$ncn_tool_prefix"; then |
8792 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8793 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8795 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8796 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8797 | $as_echo_n "(cached) " >&6 |
859789af AC |
8798 | else |
8799 | if test -n "$LD"; then | |
8800 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8801 | else | |
c6b750e1 DJ |
8802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8803 | for as_dir in $PATH | |
8804 | do | |
8805 | IFS=$as_save_IFS | |
8806 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8807 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8808 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8809 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8811 | break 2 |
8812 | fi | |
8813 | done | |
81ecdfbb RW |
8814 | done |
8815 | IFS=$as_save_IFS | |
c6b750e1 | 8816 | |
859789af AC |
8817 | fi |
8818 | fi | |
c6b750e1 | 8819 | LD=$ac_cv_prog_LD |
859789af | 8820 | if test -n "$LD"; then |
81ecdfbb RW |
8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8822 | $as_echo "$LD" >&6; } | |
859789af | 8823 | else |
81ecdfbb RW |
8824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8825 | $as_echo "no" >&6; } | |
859789af AC |
8826 | fi |
8827 | ||
81ecdfbb | 8828 | |
05cbd757 PB |
8829 | fi |
8830 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8831 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8832 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8834 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8835 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8836 | $as_echo_n "(cached) " >&6 |
859789af | 8837 | else |
05cbd757 PB |
8838 | if test -n "$LD"; then |
8839 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8840 | else |
c6b750e1 DJ |
8841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8842 | for as_dir in $PATH | |
8843 | do | |
8844 | IFS=$as_save_IFS | |
8845 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8846 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8848 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8850 | break 2 |
8851 | fi | |
8852 | done | |
81ecdfbb RW |
8853 | done |
8854 | IFS=$as_save_IFS | |
c6b750e1 | 8855 | |
859789af AC |
8856 | fi |
8857 | fi | |
c6b750e1 | 8858 | LD=$ac_cv_prog_LD |
05cbd757 | 8859 | if test -n "$LD"; then |
81ecdfbb RW |
8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8861 | $as_echo "$LD" >&6; } | |
859789af | 8862 | else |
81ecdfbb RW |
8863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8864 | $as_echo "no" >&6; } | |
859789af | 8865 | fi |
c6b750e1 | 8866 | |
81ecdfbb | 8867 | |
05cbd757 PB |
8868 | fi |
8869 | test -n "$ac_cv_prog_LD" && break | |
8870 | done | |
8871 | ||
8872 | if test -z "$ac_cv_prog_LD" ; then | |
8873 | set dummy ld | |
8874 | if test $build = $host ; then | |
8875 | LD="$2" | |
859789af | 8876 | else |
05cbd757 | 8877 | LD="${ncn_tool_prefix}$2" |
859789af | 8878 | fi |
859789af AC |
8879 | fi |
8880 | ||
9a819804 AO |
8881 | |
8882 | ||
8883 | if test -n "$LIPO"; then | |
8884 | ac_cv_prog_LIPO=$LIPO | |
8885 | elif test -n "$ac_cv_prog_LIPO"; then | |
8886 | LIPO=$ac_cv_prog_LIPO | |
8887 | fi | |
8888 | ||
8889 | if test -n "$ac_cv_prog_LIPO"; then | |
8890 | for ncn_progname in lipo; do | |
8891 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8892 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8894 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8895 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8896 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8897 | else |
8898 | if test -n "$LIPO"; then | |
8899 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8900 | else | |
8901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8902 | for as_dir in $PATH | |
8903 | do | |
8904 | IFS=$as_save_IFS | |
8905 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8906 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8907 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8908 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8910 | break 2 |
8911 | fi | |
8912 | done | |
81ecdfbb RW |
8913 | done |
8914 | IFS=$as_save_IFS | |
9a819804 AO |
8915 | |
8916 | fi | |
8917 | fi | |
8918 | LIPO=$ac_cv_prog_LIPO | |
8919 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8921 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8922 | else |
81ecdfbb RW |
8923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8924 | $as_echo "no" >&6; } | |
9a819804 AO |
8925 | fi |
8926 | ||
81ecdfbb | 8927 | |
9a819804 AO |
8928 | done |
8929 | fi | |
8930 | ||
8931 | for ncn_progname in lipo; do | |
be01d343 PB |
8932 | if test -n "$ncn_tool_prefix"; then |
8933 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8934 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8936 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8937 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8938 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8939 | else |
8940 | if test -n "$LIPO"; then | |
8941 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8942 | else | |
c6b750e1 DJ |
8943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8944 | for as_dir in $PATH | |
8945 | do | |
8946 | IFS=$as_save_IFS | |
8947 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8948 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8950 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8952 | break 2 |
8953 | fi | |
8954 | done | |
81ecdfbb RW |
8955 | done |
8956 | IFS=$as_save_IFS | |
c6b750e1 | 8957 | |
be01d343 PB |
8958 | fi |
8959 | fi | |
c6b750e1 | 8960 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8961 | if test -n "$LIPO"; then |
81ecdfbb RW |
8962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8963 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8964 | else |
81ecdfbb RW |
8965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8966 | $as_echo "no" >&6; } | |
be01d343 PB |
8967 | fi |
8968 | ||
81ecdfbb | 8969 | |
be01d343 PB |
8970 | fi |
8971 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8972 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8973 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8975 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8976 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8977 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8978 | else |
8979 | if test -n "$LIPO"; then | |
8980 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8981 | else | |
c6b750e1 DJ |
8982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8983 | for as_dir in $PATH | |
8984 | do | |
8985 | IFS=$as_save_IFS | |
8986 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8987 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8989 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8991 | break 2 |
8992 | fi | |
8993 | done | |
81ecdfbb RW |
8994 | done |
8995 | IFS=$as_save_IFS | |
c6b750e1 | 8996 | |
be01d343 PB |
8997 | fi |
8998 | fi | |
c6b750e1 | 8999 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 9000 | if test -n "$LIPO"; then |
81ecdfbb RW |
9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9002 | $as_echo "$LIPO" >&6; } | |
be01d343 | 9003 | else |
81ecdfbb RW |
9004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9005 | $as_echo "no" >&6; } | |
be01d343 | 9006 | fi |
c6b750e1 | 9007 | |
81ecdfbb | 9008 | |
be01d343 PB |
9009 | fi |
9010 | test -n "$ac_cv_prog_LIPO" && break | |
9011 | done | |
9012 | ||
9013 | if test -z "$ac_cv_prog_LIPO" ; then | |
9014 | set dummy lipo | |
9015 | if test $build = $host ; then | |
9016 | LIPO="$2" | |
9017 | else | |
9018 | LIPO="${ncn_tool_prefix}$2" | |
9019 | fi | |
9020 | fi | |
9021 | ||
9a819804 AO |
9022 | |
9023 | ||
9024 | if test -n "$NM"; then | |
9025 | ac_cv_prog_NM=$NM | |
9026 | elif test -n "$ac_cv_prog_NM"; then | |
9027 | NM=$ac_cv_prog_NM | |
9028 | fi | |
9029 | ||
9030 | if test -n "$ac_cv_prog_NM"; then | |
9031 | for ncn_progname in nm; do | |
9032 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9033 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9035 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9036 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 9037 | $as_echo_n "(cached) " >&6 |
859789af AC |
9038 | else |
9039 | if test -n "$NM"; then | |
9040 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9041 | else | |
c6b750e1 DJ |
9042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9043 | for as_dir in $PATH | |
9044 | do | |
9045 | IFS=$as_save_IFS | |
9046 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9047 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9049 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 9050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9051 | break 2 |
9052 | fi | |
9053 | done | |
81ecdfbb RW |
9054 | done |
9055 | IFS=$as_save_IFS | |
c6b750e1 | 9056 | |
859789af AC |
9057 | fi |
9058 | fi | |
c6b750e1 | 9059 | NM=$ac_cv_prog_NM |
859789af | 9060 | if test -n "$NM"; then |
81ecdfbb RW |
9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9062 | $as_echo "$NM" >&6; } | |
859789af | 9063 | else |
81ecdfbb RW |
9064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9065 | $as_echo "no" >&6; } | |
859789af AC |
9066 | fi |
9067 | ||
81ecdfbb | 9068 | |
9a819804 AO |
9069 | done |
9070 | fi | |
9071 | ||
9072 | for ncn_progname in nm; do | |
9073 | if test -n "$ncn_tool_prefix"; then | |
9074 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9075 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9077 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9078 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 9079 | $as_echo_n "(cached) " >&6 |
859789af | 9080 | else |
05cbd757 PB |
9081 | if test -n "$NM"; then |
9082 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 9083 | else |
c6b750e1 DJ |
9084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9085 | for as_dir in $PATH | |
9086 | do | |
9087 | IFS=$as_save_IFS | |
9088 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9089 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9090 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9091 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9093 | break 2 |
9094 | fi | |
9095 | done | |
81ecdfbb RW |
9096 | done |
9097 | IFS=$as_save_IFS | |
c6b750e1 | 9098 | |
859789af AC |
9099 | fi |
9100 | fi | |
c6b750e1 | 9101 | NM=$ac_cv_prog_NM |
05cbd757 | 9102 | if test -n "$NM"; then |
81ecdfbb RW |
9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9104 | $as_echo "$NM" >&6; } | |
859789af | 9105 | else |
81ecdfbb RW |
9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9107 | $as_echo "no" >&6; } | |
859789af | 9108 | fi |
c6b750e1 | 9109 | |
81ecdfbb | 9110 | |
05cbd757 | 9111 | fi |
9a819804 AO |
9112 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
9113 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9114 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9116 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9117 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 9118 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9119 | else |
9120 | if test -n "$NM"; then | |
9121 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9122 | else | |
9123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9124 | for as_dir in $PATH | |
9125 | do | |
9126 | IFS=$as_save_IFS | |
9127 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9128 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9129 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9130 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 9131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9132 | break 2 |
9133 | fi | |
9134 | done | |
81ecdfbb RW |
9135 | done |
9136 | IFS=$as_save_IFS | |
9a819804 AO |
9137 | |
9138 | fi | |
9139 | fi | |
9140 | NM=$ac_cv_prog_NM | |
9141 | if test -n "$NM"; then | |
81ecdfbb RW |
9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9143 | $as_echo "$NM" >&6; } | |
9a819804 | 9144 | else |
81ecdfbb RW |
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9146 | $as_echo "no" >&6; } | |
9a819804 AO |
9147 | fi |
9148 | ||
81ecdfbb | 9149 | |
9a819804 AO |
9150 | fi |
9151 | test -n "$ac_cv_prog_NM" && break | |
9152 | done | |
9153 | ||
9154 | if test -z "$ac_cv_prog_NM" ; then | |
9155 | set dummy nm | |
9156 | if test $build = $host ; then | |
9157 | NM="$2" | |
9158 | else | |
9159 | NM="${ncn_tool_prefix}$2" | |
9160 | fi | |
9161 | fi | |
9162 | ||
9163 | ||
9164 | ||
9165 | if test -n "$RANLIB"; then | |
9166 | ac_cv_prog_RANLIB=$RANLIB | |
9167 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9168 | RANLIB=$ac_cv_prog_RANLIB | |
9169 | fi | |
9170 | ||
9171 | if test -n "$ac_cv_prog_RANLIB"; then | |
9172 | for ncn_progname in ranlib; do | |
9173 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9174 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9176 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9177 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9178 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9179 | else |
9180 | if test -n "$RANLIB"; then | |
9181 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9182 | else | |
9183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9184 | for as_dir in $PATH | |
9185 | do | |
9186 | IFS=$as_save_IFS | |
9187 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9188 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9189 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9190 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9192 | break 2 |
9193 | fi | |
9194 | done | |
81ecdfbb RW |
9195 | done |
9196 | IFS=$as_save_IFS | |
9a819804 AO |
9197 | |
9198 | fi | |
9199 | fi | |
9200 | RANLIB=$ac_cv_prog_RANLIB | |
9201 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9203 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 9204 | else |
81ecdfbb RW |
9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9206 | $as_echo "no" >&6; } | |
9a819804 AO |
9207 | fi |
9208 | ||
81ecdfbb | 9209 | |
9a819804 AO |
9210 | done |
9211 | fi | |
859789af | 9212 | |
9a819804 | 9213 | for ncn_progname in ranlib; do |
05cbd757 PB |
9214 | if test -n "$ncn_tool_prefix"; then |
9215 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9216 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9218 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9219 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9220 | $as_echo_n "(cached) " >&6 |
859789af AC |
9221 | else |
9222 | if test -n "$RANLIB"; then | |
9223 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9224 | else | |
c6b750e1 DJ |
9225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9226 | for as_dir in $PATH | |
9227 | do | |
9228 | IFS=$as_save_IFS | |
9229 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9230 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9232 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9234 | break 2 |
9235 | fi | |
9236 | done | |
81ecdfbb RW |
9237 | done |
9238 | IFS=$as_save_IFS | |
c6b750e1 | 9239 | |
859789af AC |
9240 | fi |
9241 | fi | |
c6b750e1 | 9242 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9243 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9245 | $as_echo "$RANLIB" >&6; } | |
859789af | 9246 | else |
81ecdfbb RW |
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9248 | $as_echo "no" >&6; } | |
859789af AC |
9249 | fi |
9250 | ||
81ecdfbb | 9251 | |
05cbd757 PB |
9252 | fi |
9253 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9254 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9255 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9257 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9258 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9259 | $as_echo_n "(cached) " >&6 |
859789af | 9260 | else |
05cbd757 PB |
9261 | if test -n "$RANLIB"; then |
9262 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9263 | else |
c6b750e1 DJ |
9264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9265 | for as_dir in $PATH | |
9266 | do | |
9267 | IFS=$as_save_IFS | |
9268 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9269 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9271 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9273 | break 2 |
9274 | fi | |
9275 | done | |
81ecdfbb RW |
9276 | done |
9277 | IFS=$as_save_IFS | |
c6b750e1 | 9278 | |
859789af AC |
9279 | fi |
9280 | fi | |
c6b750e1 | 9281 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9282 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9284 | $as_echo "$RANLIB" >&6; } | |
859789af | 9285 | else |
81ecdfbb RW |
9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9287 | $as_echo "no" >&6; } | |
859789af | 9288 | fi |
c6b750e1 | 9289 | |
81ecdfbb | 9290 | |
859789af | 9291 | fi |
05cbd757 PB |
9292 | test -n "$ac_cv_prog_RANLIB" && break |
9293 | done | |
9294 | ||
9295 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9296 | RANLIB="true" |
859789af AC |
9297 | fi |
9298 | ||
9a819804 AO |
9299 | |
9300 | ||
9301 | if test -n "$STRIP"; then | |
9302 | ac_cv_prog_STRIP=$STRIP | |
9303 | elif test -n "$ac_cv_prog_STRIP"; then | |
9304 | STRIP=$ac_cv_prog_STRIP | |
9305 | fi | |
9306 | ||
9307 | if test -n "$ac_cv_prog_STRIP"; then | |
9308 | for ncn_progname in strip; do | |
9309 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9310 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9312 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9313 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9314 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9315 | else |
9316 | if test -n "$STRIP"; then | |
9317 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9318 | else | |
9319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9320 | for as_dir in $PATH | |
9321 | do | |
9322 | IFS=$as_save_IFS | |
9323 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9324 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9326 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9328 | break 2 |
9329 | fi | |
9330 | done | |
81ecdfbb RW |
9331 | done |
9332 | IFS=$as_save_IFS | |
9a819804 AO |
9333 | |
9334 | fi | |
9335 | fi | |
9336 | STRIP=$ac_cv_prog_STRIP | |
9337 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9339 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9340 | else |
81ecdfbb RW |
9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9342 | $as_echo "no" >&6; } | |
9a819804 AO |
9343 | fi |
9344 | ||
81ecdfbb | 9345 | |
9a819804 AO |
9346 | done |
9347 | fi | |
9348 | ||
9349 | for ncn_progname in strip; do | |
be01d343 PB |
9350 | if test -n "$ncn_tool_prefix"; then |
9351 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9352 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9354 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9355 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9356 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9357 | else |
9358 | if test -n "$STRIP"; then | |
9359 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9360 | else | |
c6b750e1 DJ |
9361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9362 | for as_dir in $PATH | |
9363 | do | |
9364 | IFS=$as_save_IFS | |
9365 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9366 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9368 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9370 | break 2 |
9371 | fi | |
9372 | done | |
81ecdfbb RW |
9373 | done |
9374 | IFS=$as_save_IFS | |
c6b750e1 | 9375 | |
be01d343 PB |
9376 | fi |
9377 | fi | |
c6b750e1 | 9378 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9379 | if test -n "$STRIP"; then |
81ecdfbb RW |
9380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9381 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9382 | else |
81ecdfbb RW |
9383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9384 | $as_echo "no" >&6; } | |
be01d343 PB |
9385 | fi |
9386 | ||
81ecdfbb | 9387 | |
be01d343 PB |
9388 | fi |
9389 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9390 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9391 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9393 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9394 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9395 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9396 | else |
9397 | if test -n "$STRIP"; then | |
9398 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9399 | else | |
c6b750e1 DJ |
9400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9401 | for as_dir in $PATH | |
9402 | do | |
9403 | IFS=$as_save_IFS | |
9404 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9405 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9406 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9407 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9409 | break 2 |
9410 | fi | |
9411 | done | |
81ecdfbb RW |
9412 | done |
9413 | IFS=$as_save_IFS | |
c6b750e1 | 9414 | |
be01d343 PB |
9415 | fi |
9416 | fi | |
c6b750e1 | 9417 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9418 | if test -n "$STRIP"; then |
81ecdfbb RW |
9419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9420 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9421 | else |
81ecdfbb RW |
9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9423 | $as_echo "no" >&6; } | |
be01d343 | 9424 | fi |
c6b750e1 | 9425 | |
81ecdfbb | 9426 | |
be01d343 PB |
9427 | fi |
9428 | test -n "$ac_cv_prog_STRIP" && break | |
9429 | done | |
9430 | ||
9431 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9432 | STRIP="true" |
be01d343 PB |
9433 | fi |
9434 | ||
9a819804 AO |
9435 | |
9436 | ||
9437 | if test -n "$WINDRES"; then | |
9438 | ac_cv_prog_WINDRES=$WINDRES | |
9439 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9440 | WINDRES=$ac_cv_prog_WINDRES | |
9441 | fi | |
9442 | ||
9443 | if test -n "$ac_cv_prog_WINDRES"; then | |
9444 | for ncn_progname in windres; do | |
9445 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9446 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9448 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9449 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9450 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9451 | else |
9452 | if test -n "$WINDRES"; then | |
9453 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9454 | else | |
9455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9456 | for as_dir in $PATH | |
9457 | do | |
9458 | IFS=$as_save_IFS | |
9459 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9460 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9462 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9464 | break 2 |
9465 | fi | |
9466 | done | |
81ecdfbb RW |
9467 | done |
9468 | IFS=$as_save_IFS | |
9a819804 AO |
9469 | |
9470 | fi | |
9471 | fi | |
9472 | WINDRES=$ac_cv_prog_WINDRES | |
9473 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9475 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9476 | else |
81ecdfbb RW |
9477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9478 | $as_echo "no" >&6; } | |
9a819804 AO |
9479 | fi |
9480 | ||
81ecdfbb | 9481 | |
9a819804 AO |
9482 | done |
9483 | fi | |
9484 | ||
9485 | for ncn_progname in windres; do | |
05cbd757 PB |
9486 | if test -n "$ncn_tool_prefix"; then |
9487 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9488 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9490 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9491 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9492 | $as_echo_n "(cached) " >&6 |
859789af AC |
9493 | else |
9494 | if test -n "$WINDRES"; then | |
9495 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9496 | else | |
c6b750e1 DJ |
9497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9498 | for as_dir in $PATH | |
9499 | do | |
9500 | IFS=$as_save_IFS | |
9501 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9502 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9503 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9504 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9505 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9506 | break 2 |
9507 | fi | |
9508 | done | |
81ecdfbb RW |
9509 | done |
9510 | IFS=$as_save_IFS | |
c6b750e1 | 9511 | |
859789af AC |
9512 | fi |
9513 | fi | |
c6b750e1 | 9514 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9515 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9517 | $as_echo "$WINDRES" >&6; } | |
859789af | 9518 | else |
81ecdfbb RW |
9519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9520 | $as_echo "no" >&6; } | |
859789af AC |
9521 | fi |
9522 | ||
81ecdfbb | 9523 | |
05cbd757 PB |
9524 | fi |
9525 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9526 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9527 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9529 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9530 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9531 | $as_echo_n "(cached) " >&6 |
859789af | 9532 | else |
05cbd757 PB |
9533 | if test -n "$WINDRES"; then |
9534 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9535 | else |
c6b750e1 DJ |
9536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9537 | for as_dir in $PATH | |
9538 | do | |
9539 | IFS=$as_save_IFS | |
9540 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9541 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9542 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9543 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9545 | break 2 |
9546 | fi | |
9547 | done | |
81ecdfbb RW |
9548 | done |
9549 | IFS=$as_save_IFS | |
c6b750e1 | 9550 | |
859789af AC |
9551 | fi |
9552 | fi | |
c6b750e1 | 9553 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9554 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9556 | $as_echo "$WINDRES" >&6; } | |
859789af | 9557 | else |
81ecdfbb RW |
9558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9559 | $as_echo "no" >&6; } | |
859789af | 9560 | fi |
c6b750e1 | 9561 | |
81ecdfbb | 9562 | |
05cbd757 PB |
9563 | fi |
9564 | test -n "$ac_cv_prog_WINDRES" && break | |
9565 | done | |
9566 | ||
9567 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9568 | set dummy windres | |
9569 | if test $build = $host ; then | |
9570 | WINDRES="$2" | |
859789af | 9571 | else |
05cbd757 | 9572 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9573 | fi |
859789af AC |
9574 | fi |
9575 | ||
9a819804 AO |
9576 | |
9577 | ||
0c24b341 NC |
9578 | if test -n "$WINDMC"; then |
9579 | ac_cv_prog_WINDMC=$WINDMC | |
9580 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9581 | WINDMC=$ac_cv_prog_WINDMC | |
9582 | fi | |
9583 | ||
9584 | if test -n "$ac_cv_prog_WINDMC"; then | |
9585 | for ncn_progname in windmc; do | |
9586 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9587 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9589 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9590 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9591 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9592 | else |
9593 | if test -n "$WINDMC"; then | |
9594 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9595 | else | |
9596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9597 | for as_dir in $PATH | |
9598 | do | |
9599 | IFS=$as_save_IFS | |
9600 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9601 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9602 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9603 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9605 | break 2 |
9606 | fi | |
9607 | done | |
81ecdfbb RW |
9608 | done |
9609 | IFS=$as_save_IFS | |
0c24b341 NC |
9610 | |
9611 | fi | |
9612 | fi | |
9613 | WINDMC=$ac_cv_prog_WINDMC | |
9614 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9616 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9617 | else |
81ecdfbb RW |
9618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9619 | $as_echo "no" >&6; } | |
0c24b341 NC |
9620 | fi |
9621 | ||
81ecdfbb | 9622 | |
0c24b341 NC |
9623 | done |
9624 | fi | |
9625 | ||
9626 | for ncn_progname in windmc; do | |
9627 | if test -n "$ncn_tool_prefix"; then | |
9628 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9629 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9631 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9632 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9633 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9634 | else |
9635 | if test -n "$WINDMC"; then | |
9636 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9637 | else | |
9638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9639 | for as_dir in $PATH | |
9640 | do | |
9641 | IFS=$as_save_IFS | |
9642 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9643 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9645 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9647 | break 2 |
9648 | fi | |
9649 | done | |
81ecdfbb RW |
9650 | done |
9651 | IFS=$as_save_IFS | |
0c24b341 NC |
9652 | |
9653 | fi | |
9654 | fi | |
9655 | WINDMC=$ac_cv_prog_WINDMC | |
9656 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9658 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9659 | else |
81ecdfbb RW |
9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9661 | $as_echo "no" >&6; } | |
0c24b341 NC |
9662 | fi |
9663 | ||
81ecdfbb | 9664 | |
0c24b341 NC |
9665 | fi |
9666 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9667 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9668 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9670 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9671 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9672 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9673 | else |
9674 | if test -n "$WINDMC"; then | |
9675 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9676 | else | |
9677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9678 | for as_dir in $PATH | |
9679 | do | |
9680 | IFS=$as_save_IFS | |
9681 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9682 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9684 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9686 | break 2 |
9687 | fi | |
9688 | done | |
81ecdfbb RW |
9689 | done |
9690 | IFS=$as_save_IFS | |
0c24b341 NC |
9691 | |
9692 | fi | |
9693 | fi | |
9694 | WINDMC=$ac_cv_prog_WINDMC | |
9695 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9697 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9698 | else |
81ecdfbb RW |
9699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9700 | $as_echo "no" >&6; } | |
0c24b341 NC |
9701 | fi |
9702 | ||
81ecdfbb | 9703 | |
0c24b341 NC |
9704 | fi |
9705 | test -n "$ac_cv_prog_WINDMC" && break | |
9706 | done | |
9707 | ||
9708 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9709 | set dummy windmc | |
9710 | if test $build = $host ; then | |
9711 | WINDMC="$2" | |
9712 | else | |
9713 | WINDMC="${ncn_tool_prefix}$2" | |
9714 | fi | |
9715 | fi | |
9716 | ||
9717 | ||
9718 | ||
9a819804 AO |
9719 | if test -n "$OBJCOPY"; then |
9720 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9721 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9722 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9723 | fi | |
9724 | ||
9725 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9726 | for ncn_progname in objcopy; do | |
9727 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9728 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9730 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9731 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9732 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9733 | else |
9734 | if test -n "$OBJCOPY"; then | |
9735 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9736 | else | |
9737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9738 | for as_dir in $PATH | |
9739 | do | |
9740 | IFS=$as_save_IFS | |
9741 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9742 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9744 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9746 | break 2 |
9747 | fi | |
9748 | done | |
81ecdfbb RW |
9749 | done |
9750 | IFS=$as_save_IFS | |
9a819804 AO |
9751 | |
9752 | fi | |
9753 | fi | |
9754 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9755 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9757 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9758 | else |
81ecdfbb RW |
9759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9760 | $as_echo "no" >&6; } | |
9a819804 AO |
9761 | fi |
9762 | ||
81ecdfbb | 9763 | |
9a819804 AO |
9764 | done |
9765 | fi | |
9766 | ||
9767 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9768 | if test -n "$ncn_tool_prefix"; then |
9769 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9770 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9772 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9773 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9774 | $as_echo_n "(cached) " >&6 |
859789af AC |
9775 | else |
9776 | if test -n "$OBJCOPY"; then | |
9777 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9778 | else | |
c6b750e1 DJ |
9779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9780 | for as_dir in $PATH | |
9781 | do | |
9782 | IFS=$as_save_IFS | |
9783 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9784 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9786 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9788 | break 2 |
9789 | fi | |
9790 | done | |
81ecdfbb RW |
9791 | done |
9792 | IFS=$as_save_IFS | |
c6b750e1 | 9793 | |
859789af AC |
9794 | fi |
9795 | fi | |
c6b750e1 | 9796 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9797 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9799 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9800 | else |
81ecdfbb RW |
9801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9802 | $as_echo "no" >&6; } | |
859789af AC |
9803 | fi |
9804 | ||
81ecdfbb | 9805 | |
05cbd757 PB |
9806 | fi |
9807 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9808 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9809 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9811 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9812 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9813 | $as_echo_n "(cached) " >&6 |
859789af | 9814 | else |
05cbd757 PB |
9815 | if test -n "$OBJCOPY"; then |
9816 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9817 | else |
c6b750e1 DJ |
9818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9819 | for as_dir in $PATH | |
9820 | do | |
9821 | IFS=$as_save_IFS | |
9822 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9823 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9825 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9827 | break 2 |
9828 | fi | |
9829 | done | |
81ecdfbb RW |
9830 | done |
9831 | IFS=$as_save_IFS | |
c6b750e1 | 9832 | |
859789af AC |
9833 | fi |
9834 | fi | |
c6b750e1 | 9835 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9836 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9838 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9839 | else |
81ecdfbb RW |
9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9841 | $as_echo "no" >&6; } | |
859789af | 9842 | fi |
c6b750e1 | 9843 | |
81ecdfbb | 9844 | |
05cbd757 PB |
9845 | fi |
9846 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9847 | done | |
9848 | ||
9849 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9850 | set dummy objcopy | |
9851 | if test $build = $host ; then | |
9852 | OBJCOPY="$2" | |
859789af | 9853 | else |
05cbd757 | 9854 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9855 | fi |
859789af AC |
9856 | fi |
9857 | ||
9a819804 AO |
9858 | |
9859 | ||
9860 | if test -n "$OBJDUMP"; then | |
9861 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9862 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9863 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9864 | fi | |
9865 | ||
9866 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9867 | for ncn_progname in objdump; do | |
9868 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9869 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9871 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9872 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9873 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9874 | else |
9875 | if test -n "$OBJDUMP"; then | |
9876 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9877 | else | |
9878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9879 | for as_dir in $PATH | |
9880 | do | |
9881 | IFS=$as_save_IFS | |
9882 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9883 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9885 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9887 | break 2 |
9888 | fi | |
9889 | done | |
81ecdfbb RW |
9890 | done |
9891 | IFS=$as_save_IFS | |
9a819804 AO |
9892 | |
9893 | fi | |
9894 | fi | |
9895 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9896 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9898 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9899 | else |
81ecdfbb RW |
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9901 | $as_echo "no" >&6; } | |
9a819804 AO |
9902 | fi |
9903 | ||
81ecdfbb | 9904 | |
9a819804 AO |
9905 | done |
9906 | fi | |
9907 | ||
9908 | for ncn_progname in objdump; do | |
05cbd757 PB |
9909 | if test -n "$ncn_tool_prefix"; then |
9910 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9911 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9913 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9914 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9915 | $as_echo_n "(cached) " >&6 |
859789af AC |
9916 | else |
9917 | if test -n "$OBJDUMP"; then | |
9918 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9919 | else | |
c6b750e1 DJ |
9920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9921 | for as_dir in $PATH | |
9922 | do | |
9923 | IFS=$as_save_IFS | |
9924 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9925 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9926 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9927 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9929 | break 2 |
9930 | fi | |
9931 | done | |
81ecdfbb RW |
9932 | done |
9933 | IFS=$as_save_IFS | |
c6b750e1 | 9934 | |
859789af AC |
9935 | fi |
9936 | fi | |
c6b750e1 | 9937 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9938 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9940 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9941 | else |
81ecdfbb RW |
9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9943 | $as_echo "no" >&6; } | |
859789af AC |
9944 | fi |
9945 | ||
81ecdfbb | 9946 | |
05cbd757 PB |
9947 | fi |
9948 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9949 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9950 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9952 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9953 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9954 | $as_echo_n "(cached) " >&6 |
859789af | 9955 | else |
05cbd757 PB |
9956 | if test -n "$OBJDUMP"; then |
9957 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9958 | else |
c6b750e1 DJ |
9959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9960 | for as_dir in $PATH | |
9961 | do | |
9962 | IFS=$as_save_IFS | |
9963 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9964 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9965 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9966 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9968 | break 2 |
9969 | fi | |
9970 | done | |
81ecdfbb RW |
9971 | done |
9972 | IFS=$as_save_IFS | |
c6b750e1 | 9973 | |
859789af AC |
9974 | fi |
9975 | fi | |
c6b750e1 | 9976 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9977 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9979 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9980 | else |
81ecdfbb RW |
9981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9982 | $as_echo "no" >&6; } | |
859789af | 9983 | fi |
c6b750e1 | 9984 | |
81ecdfbb | 9985 | |
05cbd757 PB |
9986 | fi |
9987 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9988 | done | |
9989 | ||
9990 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9991 | set dummy objdump | |
9992 | if test $build = $host ; then | |
9993 | OBJDUMP="$2" | |
859789af | 9994 | else |
05cbd757 | 9995 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9996 | fi |
859789af AC |
9997 | fi |
9998 | ||
a0da8069 NN |
9999 | |
10000 | ||
b121d7d4 DD |
10001 | if test -n "$READELF"; then |
10002 | ac_cv_prog_READELF=$READELF | |
10003 | elif test -n "$ac_cv_prog_READELF"; then | |
10004 | READELF=$ac_cv_prog_READELF | |
10005 | fi | |
10006 | ||
10007 | if test -n "$ac_cv_prog_READELF"; then | |
10008 | for ncn_progname in readelf; do | |
10009 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10010 | set dummy ${ncn_progname}; ac_word=$2 | |
10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10012 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10013 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
10014 | $as_echo_n "(cached) " >&6 |
10015 | else | |
10016 | if test -n "$READELF"; then | |
10017 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10018 | else | |
10019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10020 | for as_dir in $PATH | |
10021 | do | |
10022 | IFS=$as_save_IFS | |
10023 | test -z "$as_dir" && as_dir=. | |
10024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
10026 | ac_cv_prog_READELF="${ncn_progname}" |
10027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10028 | break 2 | |
10029 | fi | |
10030 | done | |
10031 | done | |
10032 | IFS=$as_save_IFS | |
10033 | ||
10034 | fi | |
10035 | fi | |
10036 | READELF=$ac_cv_prog_READELF | |
10037 | if test -n "$READELF"; then | |
10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10039 | $as_echo "$READELF" >&6; } | |
10040 | else | |
10041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10042 | $as_echo "no" >&6; } | |
10043 | fi | |
10044 | ||
10045 | ||
10046 | done | |
10047 | fi | |
10048 | ||
10049 | for ncn_progname in readelf; do | |
10050 | if test -n "$ncn_tool_prefix"; then | |
10051 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10052 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10054 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10055 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
10056 | $as_echo_n "(cached) " >&6 |
10057 | else | |
10058 | if test -n "$READELF"; then | |
10059 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10060 | else | |
10061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10062 | for as_dir in $PATH | |
10063 | do | |
10064 | IFS=$as_save_IFS | |
10065 | test -z "$as_dir" && as_dir=. | |
10066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10067 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
10068 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
10069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10070 | break 2 | |
10071 | fi | |
10072 | done | |
10073 | done | |
10074 | IFS=$as_save_IFS | |
10075 | ||
10076 | fi | |
10077 | fi | |
10078 | READELF=$ac_cv_prog_READELF | |
10079 | if test -n "$READELF"; then | |
10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10081 | $as_echo "$READELF" >&6; } | |
10082 | else | |
10083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10084 | $as_echo "no" >&6; } | |
10085 | fi | |
10086 | ||
10087 | ||
10088 | fi | |
10089 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
10090 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10091 | set dummy ${ncn_progname}; ac_word=$2 | |
10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10093 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10094 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
10095 | $as_echo_n "(cached) " >&6 |
10096 | else | |
10097 | if test -n "$READELF"; then | |
10098 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10099 | else | |
10100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10101 | for as_dir in $PATH | |
10102 | do | |
10103 | IFS=$as_save_IFS | |
10104 | test -z "$as_dir" && as_dir=. | |
10105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
10107 | ac_cv_prog_READELF="${ncn_progname}" |
10108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10109 | break 2 | |
10110 | fi | |
10111 | done | |
10112 | done | |
10113 | IFS=$as_save_IFS | |
10114 | ||
10115 | fi | |
10116 | fi | |
10117 | READELF=$ac_cv_prog_READELF | |
10118 | if test -n "$READELF"; then | |
10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10120 | $as_echo "$READELF" >&6; } | |
10121 | else | |
10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10123 | $as_echo "no" >&6; } | |
10124 | fi | |
10125 | ||
10126 | ||
10127 | fi | |
10128 | test -n "$ac_cv_prog_READELF" && break | |
10129 | done | |
10130 | ||
10131 | if test -z "$ac_cv_prog_READELF" ; then | |
10132 | set dummy readelf | |
10133 | if test $build = $host ; then | |
10134 | READELF="$2" | |
10135 | else | |
10136 | READELF="${ncn_tool_prefix}$2" | |
10137 | fi | |
10138 | fi | |
10139 | ||
10140 | ||
10141 | ||
a0da8069 NN |
10142 | |
10143 | ||
10144 | ||
be01d343 | 10145 | # Target tools. |
c6b750e1 | 10146 | |
81ecdfbb RW |
10147 | # Check whether --with-build-time-tools was given. |
10148 | if test "${with_build_time_tools+set}" = set; then : | |
10149 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
10150 | x/*) ;; |
10151 | *) | |
10152 | with_build_time_tools= | |
81ecdfbb RW |
10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10154 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
10155 | ;; |
10156 | esac | |
859789af | 10157 | else |
2429c060 | 10158 | with_build_time_tools= |
81ecdfbb RW |
10159 | fi |
10160 | ||
859789af | 10161 | |
9a819804 AO |
10162 | |
10163 | ||
10164 | if test -n "$CC_FOR_TARGET"; then | |
10165 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10166 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10167 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10168 | fi | |
10169 | ||
10170 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10171 | for ncn_progname in cc gcc; do | |
10172 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10173 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10175 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10176 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10177 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10178 | else |
10179 | if test -n "$CC_FOR_TARGET"; then | |
10180 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10181 | else | |
10182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10183 | for as_dir in $PATH | |
10184 | do | |
10185 | IFS=$as_save_IFS | |
10186 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10187 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10189 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10191 | break 2 |
10192 | fi | |
10193 | done | |
81ecdfbb RW |
10194 | done |
10195 | IFS=$as_save_IFS | |
9a819804 AO |
10196 | |
10197 | fi | |
10198 | fi | |
10199 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10200 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10202 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 10203 | else |
81ecdfbb RW |
10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10205 | $as_echo "no" >&6; } | |
9a819804 AO |
10206 | fi |
10207 | ||
81ecdfbb | 10208 | |
9a819804 AO |
10209 | done |
10210 | fi | |
10211 | ||
10212 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10213 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10215 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10216 | if test -x $with_build_time_tools/${ncn_progname}; then |
10217 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10219 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10220 | break |
2429c060 | 10221 | else |
81ecdfbb RW |
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10223 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10224 | fi |
10225 | done | |
55db4b87 PB |
10226 | fi |
10227 | ||
2429c060 PB |
10228 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10229 | for ncn_progname in cc gcc; do | |
10230 | if test -n "$ncn_target_tool_prefix"; then | |
10231 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10232 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10234 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10235 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10236 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10237 | else |
10238 | if test -n "$CC_FOR_TARGET"; then | |
10239 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10240 | else | |
c6b750e1 DJ |
10241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10242 | for as_dir in $PATH | |
10243 | do | |
10244 | IFS=$as_save_IFS | |
10245 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10246 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10248 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10250 | break 2 |
10251 | fi | |
10252 | done | |
81ecdfbb RW |
10253 | done |
10254 | IFS=$as_save_IFS | |
c6b750e1 | 10255 | |
55db4b87 PB |
10256 | fi |
10257 | fi | |
c6b750e1 | 10258 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10259 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10261 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10262 | else |
81ecdfbb RW |
10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10264 | $as_echo "no" >&6; } | |
55db4b87 PB |
10265 | fi |
10266 | ||
81ecdfbb | 10267 | |
2429c060 PB |
10268 | fi |
10269 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10270 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10271 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10273 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10274 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10275 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10276 | else |
05cbd757 PB |
10277 | if test -n "$CC_FOR_TARGET"; then |
10278 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10279 | else |
c6b750e1 DJ |
10280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10281 | for as_dir in $PATH | |
10282 | do | |
10283 | IFS=$as_save_IFS | |
10284 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10285 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10287 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10289 | break 2 |
10290 | fi | |
10291 | done | |
81ecdfbb RW |
10292 | done |
10293 | IFS=$as_save_IFS | |
c6b750e1 | 10294 | |
55db4b87 PB |
10295 | fi |
10296 | fi | |
c6b750e1 | 10297 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10298 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10300 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10301 | else |
81ecdfbb RW |
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10303 | $as_echo "no" >&6; } | |
55db4b87 | 10304 | fi |
c6b750e1 | 10305 | |
81ecdfbb | 10306 | |
2429c060 PB |
10307 | fi |
10308 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10309 | done | |
10310 | fi | |
c6b750e1 | 10311 | |
05cbd757 PB |
10312 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10313 | set dummy cc gcc | |
10314 | if test $build = $target ; then | |
10315 | CC_FOR_TARGET="$2" | |
55db4b87 | 10316 | else |
05cbd757 | 10317 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10318 | fi |
d3f5afc4 MS |
10319 | else |
10320 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10321 | fi |
10322 | ||
9a819804 AO |
10323 | |
10324 | ||
10325 | if test -n "$CXX_FOR_TARGET"; then | |
10326 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10327 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10328 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10329 | fi | |
10330 | ||
10331 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10332 | for ncn_progname in c++ g++ cxx gxx; do | |
10333 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10334 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10336 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10337 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10338 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10339 | else |
10340 | if test -n "$CXX_FOR_TARGET"; then | |
10341 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10342 | else | |
10343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10344 | for as_dir in $PATH | |
10345 | do | |
10346 | IFS=$as_save_IFS | |
10347 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10348 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10350 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10352 | break 2 |
10353 | fi | |
10354 | done | |
81ecdfbb RW |
10355 | done |
10356 | IFS=$as_save_IFS | |
9a819804 AO |
10357 | |
10358 | fi | |
10359 | fi | |
10360 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10361 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10363 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10364 | else |
81ecdfbb RW |
10365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10366 | $as_echo "no" >&6; } | |
9a819804 AO |
10367 | fi |
10368 | ||
81ecdfbb | 10369 | |
9a819804 AO |
10370 | done |
10371 | fi | |
10372 | ||
10373 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10374 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10376 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10377 | if test -x $with_build_time_tools/${ncn_progname}; then |
10378 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10380 | $as_echo "yes" >&6; } | |
2429c060 PB |
10381 | break |
10382 | else | |
81ecdfbb RW |
10383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10384 | $as_echo "no" >&6; } | |
2429c060 PB |
10385 | fi |
10386 | done | |
10387 | fi | |
10388 | ||
10389 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10390 | for ncn_progname in c++ g++ cxx gxx; do | |
10391 | if test -n "$ncn_target_tool_prefix"; then | |
10392 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10393 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10395 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10396 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10397 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10398 | else |
10399 | if test -n "$CXX_FOR_TARGET"; then | |
10400 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10401 | else | |
c6b750e1 DJ |
10402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10403 | for as_dir in $PATH | |
10404 | do | |
10405 | IFS=$as_save_IFS | |
10406 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10407 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10409 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10411 | break 2 |
10412 | fi | |
10413 | done | |
81ecdfbb RW |
10414 | done |
10415 | IFS=$as_save_IFS | |
c6b750e1 | 10416 | |
55db4b87 PB |
10417 | fi |
10418 | fi | |
c6b750e1 | 10419 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10420 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10422 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10423 | else |
81ecdfbb RW |
10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10425 | $as_echo "no" >&6; } | |
55db4b87 PB |
10426 | fi |
10427 | ||
81ecdfbb | 10428 | |
2429c060 PB |
10429 | fi |
10430 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10431 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10432 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10434 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10435 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10436 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10437 | else |
05cbd757 PB |
10438 | if test -n "$CXX_FOR_TARGET"; then |
10439 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10440 | else |
c6b750e1 DJ |
10441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10442 | for as_dir in $PATH | |
10443 | do | |
10444 | IFS=$as_save_IFS | |
10445 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10446 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10447 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10448 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10450 | break 2 |
10451 | fi | |
10452 | done | |
81ecdfbb RW |
10453 | done |
10454 | IFS=$as_save_IFS | |
c6b750e1 | 10455 | |
55db4b87 PB |
10456 | fi |
10457 | fi | |
c6b750e1 | 10458 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10459 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10461 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10462 | else |
81ecdfbb RW |
10463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10464 | $as_echo "no" >&6; } | |
55db4b87 | 10465 | fi |
c6b750e1 | 10466 | |
81ecdfbb | 10467 | |
2429c060 PB |
10468 | fi |
10469 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10470 | done | |
10471 | fi | |
c6b750e1 | 10472 | |
05cbd757 PB |
10473 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10474 | set dummy c++ g++ cxx gxx | |
10475 | if test $build = $target ; then | |
10476 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10477 | else |
05cbd757 | 10478 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10479 | fi |
d3f5afc4 MS |
10480 | else |
10481 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10482 | fi |
10483 | ||
9a819804 AO |
10484 | |
10485 | ||
10486 | if test -n "$GCC_FOR_TARGET"; then | |
10487 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10488 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10489 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10490 | fi | |
10491 | ||
10492 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10493 | for ncn_progname in gcc; do | |
10494 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10495 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10497 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10498 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10499 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10500 | else |
10501 | if test -n "$GCC_FOR_TARGET"; then | |
10502 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10503 | else | |
10504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10505 | for as_dir in $PATH | |
10506 | do | |
10507 | IFS=$as_save_IFS | |
10508 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10509 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10511 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10513 | break 2 |
10514 | fi | |
10515 | done | |
81ecdfbb RW |
10516 | done |
10517 | IFS=$as_save_IFS | |
9a819804 AO |
10518 | |
10519 | fi | |
10520 | fi | |
10521 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10522 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10524 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10525 | else |
81ecdfbb RW |
10526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10527 | $as_echo "no" >&6; } | |
9a819804 AO |
10528 | fi |
10529 | ||
81ecdfbb | 10530 | |
9a819804 AO |
10531 | done |
10532 | fi | |
10533 | ||
10534 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10535 | for ncn_progname in gcc; do |
81ecdfbb RW |
10536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10537 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10538 | if test -x $with_build_time_tools/${ncn_progname}; then |
10539 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10541 | $as_echo "yes" >&6; } | |
2429c060 PB |
10542 | break |
10543 | else | |
81ecdfbb RW |
10544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10545 | $as_echo "no" >&6; } | |
2429c060 PB |
10546 | fi |
10547 | done | |
10548 | fi | |
10549 | ||
10550 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10551 | for ncn_progname in gcc; do | |
10552 | if test -n "$ncn_target_tool_prefix"; then | |
10553 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10554 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10556 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10557 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10558 | $as_echo_n "(cached) " >&6 |
859789af | 10559 | else |
2429c060 PB |
10560 | if test -n "$GCC_FOR_TARGET"; then |
10561 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10562 | else |
c6b750e1 DJ |
10563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10564 | for as_dir in $PATH | |
10565 | do | |
10566 | IFS=$as_save_IFS | |
10567 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10568 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10569 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10570 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10572 | break 2 |
10573 | fi | |
10574 | done | |
81ecdfbb RW |
10575 | done |
10576 | IFS=$as_save_IFS | |
c6b750e1 | 10577 | |
55db4b87 PB |
10578 | fi |
10579 | fi | |
c6b750e1 | 10580 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10581 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10583 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10584 | else |
81ecdfbb RW |
10585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10586 | $as_echo "no" >&6; } | |
55db4b87 PB |
10587 | fi |
10588 | ||
81ecdfbb | 10589 | |
2429c060 PB |
10590 | fi |
10591 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10592 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10593 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10595 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10596 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10597 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10598 | else |
05cbd757 PB |
10599 | if test -n "$GCC_FOR_TARGET"; then |
10600 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10601 | else |
c6b750e1 DJ |
10602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10603 | for as_dir in $PATH | |
10604 | do | |
10605 | IFS=$as_save_IFS | |
10606 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10607 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10608 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10609 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10611 | break 2 |
10612 | fi | |
10613 | done | |
81ecdfbb RW |
10614 | done |
10615 | IFS=$as_save_IFS | |
c6b750e1 | 10616 | |
55db4b87 PB |
10617 | fi |
10618 | fi | |
c6b750e1 | 10619 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10620 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10622 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10623 | else |
81ecdfbb RW |
10624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10625 | $as_echo "no" >&6; } | |
55db4b87 | 10626 | fi |
c6b750e1 | 10627 | |
81ecdfbb | 10628 | |
2429c060 PB |
10629 | fi |
10630 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10631 | done | |
10632 | fi | |
c6b750e1 | 10633 | |
05cbd757 PB |
10634 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10635 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10636 | else |
10637 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10638 | fi |
10639 | ||
9a819804 AO |
10640 | |
10641 | ||
9a819804 AO |
10642 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10643 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10644 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10645 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10646 | fi |
10647 | ||
9a819804 AO |
10648 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10649 | for ncn_progname in gfortran; do | |
10650 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10651 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10653 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10654 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10655 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10656 | else |
9a819804 AO |
10657 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10658 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10659 | else |
c6b750e1 DJ |
10660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10661 | for as_dir in $PATH | |
10662 | do | |
10663 | IFS=$as_save_IFS | |
10664 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10665 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10666 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10667 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10669 | break 2 |
10670 | fi | |
10671 | done | |
81ecdfbb RW |
10672 | done |
10673 | IFS=$as_save_IFS | |
c6b750e1 | 10674 | |
55db4b87 PB |
10675 | fi |
10676 | fi | |
9a819804 AO |
10677 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10678 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10680 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10681 | else |
81ecdfbb RW |
10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10683 | $as_echo "no" >&6; } | |
55db4b87 | 10684 | fi |
c6b750e1 | 10685 | |
81ecdfbb | 10686 | |
2429c060 PB |
10687 | done |
10688 | fi | |
c6b750e1 | 10689 | |
9a819804 | 10690 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10691 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10693 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10694 | if test -x $with_build_time_tools/${ncn_progname}; then |
10695 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10697 | $as_echo "yes" >&6; } | |
2429c060 PB |
10698 | break |
10699 | else | |
81ecdfbb RW |
10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10701 | $as_echo "no" >&6; } | |
2429c060 PB |
10702 | fi |
10703 | done | |
10704 | fi | |
10705 | ||
10706 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10707 | for ncn_progname in gfortran; do | |
10708 | if test -n "$ncn_target_tool_prefix"; then | |
10709 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10710 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10712 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10713 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10714 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10715 | else |
10716 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10717 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10718 | else | |
c6b750e1 DJ |
10719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10720 | for as_dir in $PATH | |
10721 | do | |
10722 | IFS=$as_save_IFS | |
10723 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10724 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10726 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10728 | break 2 |
10729 | fi | |
10730 | done | |
81ecdfbb RW |
10731 | done |
10732 | IFS=$as_save_IFS | |
c6b750e1 | 10733 | |
55db4b87 PB |
10734 | fi |
10735 | fi | |
c6b750e1 | 10736 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10737 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10739 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10740 | else |
81ecdfbb RW |
10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10742 | $as_echo "no" >&6; } | |
55db4b87 PB |
10743 | fi |
10744 | ||
81ecdfbb | 10745 | |
2429c060 PB |
10746 | fi |
10747 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10748 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10749 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10751 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10752 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10753 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10754 | else |
05cbd757 | 10755 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10756 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10757 | else | |
10758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10759 | for as_dir in $PATH | |
10760 | do | |
10761 | IFS=$as_save_IFS | |
10762 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10763 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10764 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10765 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10767 | break 2 |
10768 | fi | |
10769 | done | |
81ecdfbb RW |
10770 | done |
10771 | IFS=$as_save_IFS | |
c6b750e1 | 10772 | |
55db4b87 PB |
10773 | fi |
10774 | fi | |
c6b750e1 | 10775 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10776 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10778 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10779 | else |
81ecdfbb RW |
10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10781 | $as_echo "no" >&6; } | |
55db4b87 | 10782 | fi |
c6b750e1 | 10783 | |
81ecdfbb | 10784 | |
2429c060 PB |
10785 | fi |
10786 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10787 | done | |
10788 | fi | |
c6b750e1 | 10789 | |
05cbd757 PB |
10790 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10791 | set dummy gfortran | |
10792 | if test $build = $target ; then | |
10793 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10794 | else |
05cbd757 | 10795 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10796 | fi |
d3f5afc4 MS |
10797 | else |
10798 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10799 | fi |
10800 | ||
2429c060 PB |
10801 | |
10802 | ||
e552509b ILT |
10803 | if test -n "$GOC_FOR_TARGET"; then |
10804 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10805 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10806 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10807 | fi | |
10808 | ||
10809 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10810 | for ncn_progname in gccgo; do | |
10811 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10812 | set dummy ${ncn_progname}; ac_word=$2 | |
10813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10814 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10815 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10816 | $as_echo_n "(cached) " >&6 |
10817 | else | |
10818 | if test -n "$GOC_FOR_TARGET"; then | |
10819 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10820 | else | |
10821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10822 | for as_dir in $PATH | |
10823 | do | |
10824 | IFS=$as_save_IFS | |
10825 | test -z "$as_dir" && as_dir=. | |
10826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10828 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10830 | break 2 | |
10831 | fi | |
10832 | done | |
10833 | done | |
10834 | IFS=$as_save_IFS | |
10835 | ||
10836 | fi | |
10837 | fi | |
10838 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10839 | if test -n "$GOC_FOR_TARGET"; then | |
10840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10841 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10842 | else | |
10843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10844 | $as_echo "no" >&6; } | |
10845 | fi | |
10846 | ||
10847 | ||
10848 | done | |
10849 | fi | |
10850 | ||
10851 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10852 | for ncn_progname in gccgo; do | |
10853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10854 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10855 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10856 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10858 | $as_echo "yes" >&6; } | |
10859 | break | |
10860 | else | |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10862 | $as_echo "no" >&6; } | |
10863 | fi | |
10864 | done | |
10865 | fi | |
10866 | ||
10867 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10868 | for ncn_progname in gccgo; do | |
10869 | if test -n "$ncn_target_tool_prefix"; then | |
10870 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10871 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10873 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10874 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10875 | $as_echo_n "(cached) " >&6 |
10876 | else | |
10877 | if test -n "$GOC_FOR_TARGET"; then | |
10878 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10879 | else | |
10880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10881 | for as_dir in $PATH | |
10882 | do | |
10883 | IFS=$as_save_IFS | |
10884 | test -z "$as_dir" && as_dir=. | |
10885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10887 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10889 | break 2 | |
10890 | fi | |
10891 | done | |
10892 | done | |
10893 | IFS=$as_save_IFS | |
10894 | ||
10895 | fi | |
10896 | fi | |
10897 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10898 | if test -n "$GOC_FOR_TARGET"; then | |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10900 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10901 | else | |
10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10903 | $as_echo "no" >&6; } | |
10904 | fi | |
10905 | ||
10906 | ||
10907 | fi | |
10908 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10909 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10910 | set dummy ${ncn_progname}; ac_word=$2 | |
10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10912 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10913 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10914 | $as_echo_n "(cached) " >&6 |
10915 | else | |
10916 | if test -n "$GOC_FOR_TARGET"; then | |
10917 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10918 | else | |
10919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10920 | for as_dir in $PATH | |
10921 | do | |
10922 | IFS=$as_save_IFS | |
10923 | test -z "$as_dir" && as_dir=. | |
10924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10926 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10928 | break 2 | |
10929 | fi | |
10930 | done | |
10931 | done | |
10932 | IFS=$as_save_IFS | |
10933 | ||
10934 | fi | |
10935 | fi | |
10936 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10937 | if test -n "$GOC_FOR_TARGET"; then | |
10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10939 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10940 | else | |
10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10942 | $as_echo "no" >&6; } | |
10943 | fi | |
10944 | ||
10945 | ||
10946 | fi | |
10947 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10948 | done | |
10949 | fi | |
10950 | ||
10951 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10952 | set dummy gccgo | |
10953 | if test $build = $target ; then | |
10954 | GOC_FOR_TARGET="$2" | |
10955 | else | |
10956 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10957 | fi | |
10958 | else | |
10959 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10960 | fi | |
10961 | ||
10962 | ||
10963 | ||
2429c060 PB |
10964 | cat > conftest.c << \EOF |
10965 | #ifdef __GNUC__ | |
10966 | gcc_yay; | |
10967 | #endif | |
10968 | EOF | |
10969 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10970 | have_gcc_for_target=yes | |
859789af | 10971 | else |
2429c060 PB |
10972 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10973 | have_gcc_for_target=no | |
859789af | 10974 | fi |
2429c060 PB |
10975 | rm conftest.c |
10976 | ||
10977 | ||
10978 | ||
859789af | 10979 | |
2429c060 PB |
10980 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10981 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10983 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10984 | if test -x $with_build_time_tools/ar; then |
10985 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10986 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10988 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10989 | else |
81ecdfbb RW |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10991 | $as_echo "no" >&6; } | |
3a35eeb3 | 10992 | fi |
2429c060 PB |
10993 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10994 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10995 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10996 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10997 | fi |
2429c060 | 10998 | fi |
c6b750e1 | 10999 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11000 | # Extract the first word of "ar", so it can be a program name with args. |
11001 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11003 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11004 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11005 | $as_echo_n "(cached) " >&6 |
859789af | 11006 | else |
c6b750e1 DJ |
11007 | case $AR_FOR_TARGET in |
11008 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11009 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11010 | ;; | |
2429c060 | 11011 | *) |
c6b750e1 DJ |
11012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11013 | for as_dir in $gcc_cv_tool_dirs | |
11014 | do | |
11015 | IFS=$as_save_IFS | |
11016 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11017 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11019 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11021 | break 2 |
11022 | fi | |
11023 | done | |
81ecdfbb RW |
11024 | done |
11025 | IFS=$as_save_IFS | |
c6b750e1 | 11026 | |
2429c060 PB |
11027 | ;; |
11028 | esac | |
859789af | 11029 | fi |
c6b750e1 | 11030 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 11031 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11033 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 11034 | else |
81ecdfbb RW |
11035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11036 | $as_echo "no" >&6; } | |
859789af | 11037 | fi |
05cbd757 | 11038 | |
81ecdfbb | 11039 | |
2429c060 PB |
11040 | fi |
11041 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
11042 | |
11043 | ||
11044 | if test -n "$AR_FOR_TARGET"; then | |
11045 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11046 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11047 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11048 | fi | |
11049 | ||
11050 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11051 | for ncn_progname in ar; do | |
11052 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11053 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11055 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11056 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11057 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11058 | else |
11059 | if test -n "$AR_FOR_TARGET"; then | |
11060 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11061 | else | |
11062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11063 | for as_dir in $PATH | |
11064 | do | |
11065 | IFS=$as_save_IFS | |
11066 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11067 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11069 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11071 | break 2 |
11072 | fi | |
11073 | done | |
81ecdfbb RW |
11074 | done |
11075 | IFS=$as_save_IFS | |
9a819804 AO |
11076 | |
11077 | fi | |
11078 | fi | |
11079 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11080 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
11081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11082 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 11083 | else |
81ecdfbb RW |
11084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11085 | $as_echo "no" >&6; } | |
9a819804 AO |
11086 | fi |
11087 | ||
81ecdfbb | 11088 | |
9a819804 AO |
11089 | done |
11090 | fi | |
11091 | ||
11092 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11093 | for ncn_progname in ar; do |
81ecdfbb RW |
11094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11095 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11096 | if test -x $with_build_time_tools/${ncn_progname}; then |
11097 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11099 | $as_echo "yes" >&6; } | |
2429c060 PB |
11100 | break |
11101 | else | |
81ecdfbb RW |
11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11103 | $as_echo "no" >&6; } | |
2429c060 PB |
11104 | fi |
11105 | done | |
859789af AC |
11106 | fi |
11107 | ||
2429c060 PB |
11108 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11109 | for ncn_progname in ar; do | |
11110 | if test -n "$ncn_target_tool_prefix"; then | |
11111 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11112 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11114 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11115 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11116 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 11117 | else |
2429c060 PB |
11118 | if test -n "$AR_FOR_TARGET"; then |
11119 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 11120 | else |
c6b750e1 DJ |
11121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11122 | for as_dir in $PATH | |
11123 | do | |
11124 | IFS=$as_save_IFS | |
11125 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11126 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11128 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11130 | break 2 |
11131 | fi | |
11132 | done | |
81ecdfbb RW |
11133 | done |
11134 | IFS=$as_save_IFS | |
c6b750e1 | 11135 | |
7e0f7140 GK |
11136 | fi |
11137 | fi | |
c6b750e1 | 11138 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11139 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11141 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11142 | else |
81ecdfbb RW |
11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11144 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11145 | fi |
11146 | ||
81ecdfbb | 11147 | |
2429c060 PB |
11148 | fi |
11149 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11150 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11151 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11153 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11154 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11155 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 11156 | else |
2429c060 PB |
11157 | if test -n "$AR_FOR_TARGET"; then |
11158 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11159 | else |
c6b750e1 DJ |
11160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11161 | for as_dir in $PATH | |
11162 | do | |
11163 | IFS=$as_save_IFS | |
11164 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11165 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11167 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11169 | break 2 |
11170 | fi | |
11171 | done | |
81ecdfbb RW |
11172 | done |
11173 | IFS=$as_save_IFS | |
c6b750e1 | 11174 | |
7e0f7140 GK |
11175 | fi |
11176 | fi | |
c6b750e1 | 11177 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11178 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11180 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11181 | else |
81ecdfbb RW |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11183 | $as_echo "no" >&6; } | |
7e0f7140 | 11184 | fi |
c6b750e1 | 11185 | |
81ecdfbb | 11186 | |
2429c060 PB |
11187 | fi |
11188 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11189 | done | |
11190 | fi | |
c6b750e1 | 11191 | |
2429c060 PB |
11192 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11193 | set dummy ar | |
7e0f7140 | 11194 | if test $build = $target ; then |
2429c060 | 11195 | AR_FOR_TARGET="$2" |
7e0f7140 | 11196 | else |
2429c060 | 11197 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11198 | fi |
d3f5afc4 MS |
11199 | else |
11200 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11201 | fi |
11202 | ||
3a35eeb3 PB |
11203 | else |
11204 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11205 | fi |
11206 | ||
11207 | ||
11208 | ||
11209 | ||
11210 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11211 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11213 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11214 | if test -x $with_build_time_tools/as; then |
11215 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11216 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11218 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11219 | else |
81ecdfbb RW |
11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11221 | $as_echo "no" >&6; } | |
3a35eeb3 | 11222 | fi |
2429c060 PB |
11223 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11224 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11225 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11226 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11227 | fi |
11228 | fi | |
c6b750e1 | 11229 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11230 | # Extract the first word of "as", so it can be a program name with args. |
11231 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11233 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11234 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11235 | $as_echo_n "(cached) " >&6 |
2429c060 | 11236 | else |
c6b750e1 DJ |
11237 | case $AS_FOR_TARGET in |
11238 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11239 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11240 | ;; | |
2429c060 | 11241 | *) |
c6b750e1 DJ |
11242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11243 | for as_dir in $gcc_cv_tool_dirs | |
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 |
c6b750e1 | 11249 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11250 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11251 | break 2 |
11252 | fi | |
11253 | done | |
81ecdfbb RW |
11254 | done |
11255 | IFS=$as_save_IFS | |
c6b750e1 | 11256 | |
2429c060 PB |
11257 | ;; |
11258 | esac | |
11259 | fi | |
c6b750e1 | 11260 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11261 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11263 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11264 | else |
81ecdfbb RW |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11266 | $as_echo "no" >&6; } | |
2429c060 PB |
11267 | fi |
11268 | ||
81ecdfbb | 11269 | |
2429c060 PB |
11270 | fi |
11271 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11272 | |
11273 | ||
11274 | if test -n "$AS_FOR_TARGET"; then | |
11275 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11276 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11277 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11278 | fi | |
11279 | ||
11280 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11281 | for ncn_progname in as; do | |
11282 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11283 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11285 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11286 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11287 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11288 | else |
11289 | if test -n "$AS_FOR_TARGET"; then | |
11290 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11291 | else | |
11292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11293 | for as_dir in $PATH | |
11294 | do | |
11295 | IFS=$as_save_IFS | |
11296 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11297 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11299 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11301 | break 2 |
11302 | fi | |
11303 | done | |
81ecdfbb RW |
11304 | done |
11305 | IFS=$as_save_IFS | |
9a819804 AO |
11306 | |
11307 | fi | |
11308 | fi | |
11309 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11310 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11312 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11313 | else |
81ecdfbb RW |
11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11315 | $as_echo "no" >&6; } | |
9a819804 AO |
11316 | fi |
11317 | ||
81ecdfbb | 11318 | |
9a819804 AO |
11319 | done |
11320 | fi | |
11321 | ||
11322 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11323 | for ncn_progname in as; do |
81ecdfbb RW |
11324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11325 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11326 | if test -x $with_build_time_tools/${ncn_progname}; then |
11327 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11329 | $as_echo "yes" >&6; } | |
2429c060 PB |
11330 | break |
11331 | else | |
81ecdfbb RW |
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11333 | $as_echo "no" >&6; } | |
2429c060 PB |
11334 | fi |
11335 | done | |
11336 | fi | |
11337 | ||
11338 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11339 | for ncn_progname in as; do | |
11340 | if test -n "$ncn_target_tool_prefix"; then | |
11341 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11342 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11344 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11345 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11346 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11347 | else |
11348 | if test -n "$AS_FOR_TARGET"; then | |
11349 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11350 | else | |
c6b750e1 DJ |
11351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11352 | for as_dir in $PATH | |
11353 | do | |
11354 | IFS=$as_save_IFS | |
11355 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11356 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11357 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11358 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11360 | break 2 |
11361 | fi | |
11362 | done | |
81ecdfbb RW |
11363 | done |
11364 | IFS=$as_save_IFS | |
c6b750e1 | 11365 | |
2429c060 PB |
11366 | fi |
11367 | fi | |
c6b750e1 | 11368 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11369 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11371 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11372 | else |
81ecdfbb RW |
11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11374 | $as_echo "no" >&6; } | |
2429c060 PB |
11375 | fi |
11376 | ||
81ecdfbb | 11377 | |
2429c060 PB |
11378 | fi |
11379 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11380 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11381 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11383 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11384 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11385 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11386 | else |
11387 | if test -n "$AS_FOR_TARGET"; then | |
11388 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11389 | else | |
c6b750e1 DJ |
11390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11391 | for as_dir in $PATH | |
11392 | do | |
11393 | IFS=$as_save_IFS | |
11394 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11395 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11396 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11397 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11399 | break 2 |
11400 | fi | |
11401 | done | |
81ecdfbb RW |
11402 | done |
11403 | IFS=$as_save_IFS | |
c6b750e1 | 11404 | |
2429c060 PB |
11405 | fi |
11406 | fi | |
c6b750e1 | 11407 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11408 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11410 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11411 | else |
81ecdfbb RW |
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11413 | $as_echo "no" >&6; } | |
2429c060 | 11414 | fi |
c6b750e1 | 11415 | |
81ecdfbb | 11416 | |
2429c060 PB |
11417 | fi |
11418 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11419 | done | |
11420 | fi | |
c6b750e1 | 11421 | |
2429c060 PB |
11422 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11423 | set dummy as | |
11424 | if test $build = $target ; then | |
11425 | AS_FOR_TARGET="$2" | |
11426 | else | |
11427 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11428 | fi | |
d3f5afc4 MS |
11429 | else |
11430 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11431 | fi |
11432 | ||
3a35eeb3 PB |
11433 | else |
11434 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11435 | fi |
11436 | ||
11437 | ||
11438 | ||
11439 | ||
11440 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11441 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11443 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11444 | if test -x $with_build_time_tools/dlltool; then |
11445 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11446 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11448 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11449 | else |
81ecdfbb RW |
11450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11451 | $as_echo "no" >&6; } | |
3a35eeb3 | 11452 | fi |
2429c060 PB |
11453 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11454 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11455 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11456 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11457 | fi |
11458 | fi | |
c6b750e1 | 11459 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11460 | # Extract the first word of "dlltool", so it can be a program name with args. |
11461 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11463 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11464 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11465 | $as_echo_n "(cached) " >&6 |
2429c060 | 11466 | else |
c6b750e1 DJ |
11467 | case $DLLTOOL_FOR_TARGET in |
11468 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11469 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11470 | ;; | |
2429c060 | 11471 | *) |
c6b750e1 DJ |
11472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11473 | for as_dir in $gcc_cv_tool_dirs | |
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 |
c6b750e1 | 11479 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11481 | break 2 |
11482 | fi | |
11483 | done | |
81ecdfbb RW |
11484 | done |
11485 | IFS=$as_save_IFS | |
c6b750e1 | 11486 | |
2429c060 PB |
11487 | ;; |
11488 | esac | |
11489 | fi | |
c6b750e1 | 11490 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11491 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11493 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11494 | else |
81ecdfbb RW |
11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11496 | $as_echo "no" >&6; } | |
2429c060 PB |
11497 | fi |
11498 | ||
81ecdfbb | 11499 | |
2429c060 PB |
11500 | fi |
11501 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11502 | |
11503 | ||
11504 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11505 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11506 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11507 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11508 | fi | |
11509 | ||
11510 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11511 | for ncn_progname in dlltool; do | |
11512 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11513 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11515 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11516 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11517 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11518 | else |
11519 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11520 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11521 | else | |
11522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11523 | for as_dir in $PATH | |
11524 | do | |
11525 | IFS=$as_save_IFS | |
11526 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11527 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11528 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11529 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11531 | break 2 |
11532 | fi | |
11533 | done | |
81ecdfbb RW |
11534 | done |
11535 | IFS=$as_save_IFS | |
9a819804 AO |
11536 | |
11537 | fi | |
11538 | fi | |
11539 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11540 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11542 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11543 | else |
81ecdfbb RW |
11544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11545 | $as_echo "no" >&6; } | |
9a819804 AO |
11546 | fi |
11547 | ||
81ecdfbb | 11548 | |
9a819804 AO |
11549 | done |
11550 | fi | |
11551 | ||
11552 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11553 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11555 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11556 | if test -x $with_build_time_tools/${ncn_progname}; then |
11557 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11559 | $as_echo "yes" >&6; } | |
2429c060 PB |
11560 | break |
11561 | else | |
81ecdfbb RW |
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11563 | $as_echo "no" >&6; } | |
2429c060 PB |
11564 | fi |
11565 | done | |
11566 | fi | |
11567 | ||
11568 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11569 | for ncn_progname in dlltool; do | |
11570 | if test -n "$ncn_target_tool_prefix"; then | |
11571 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11572 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11574 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11575 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11576 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11577 | else |
11578 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11579 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11580 | else | |
c6b750e1 DJ |
11581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11582 | for as_dir in $PATH | |
11583 | do | |
11584 | IFS=$as_save_IFS | |
11585 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11586 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11588 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11590 | break 2 |
11591 | fi | |
11592 | done | |
81ecdfbb RW |
11593 | done |
11594 | IFS=$as_save_IFS | |
c6b750e1 | 11595 | |
2429c060 PB |
11596 | fi |
11597 | fi | |
c6b750e1 | 11598 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11599 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11601 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11602 | else |
81ecdfbb RW |
11603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11604 | $as_echo "no" >&6; } | |
2429c060 PB |
11605 | fi |
11606 | ||
81ecdfbb | 11607 | |
2429c060 PB |
11608 | fi |
11609 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11610 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11611 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11613 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11614 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11615 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11616 | else |
11617 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11618 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11619 | else | |
c6b750e1 DJ |
11620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11621 | for as_dir in $PATH | |
11622 | do | |
11623 | IFS=$as_save_IFS | |
11624 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11625 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11626 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11627 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11629 | break 2 |
11630 | fi | |
11631 | done | |
81ecdfbb RW |
11632 | done |
11633 | IFS=$as_save_IFS | |
c6b750e1 | 11634 | |
2429c060 PB |
11635 | fi |
11636 | fi | |
c6b750e1 | 11637 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11638 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11640 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11641 | else |
81ecdfbb RW |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11643 | $as_echo "no" >&6; } | |
2429c060 | 11644 | fi |
c6b750e1 | 11645 | |
81ecdfbb | 11646 | |
2429c060 PB |
11647 | fi |
11648 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11649 | done | |
11650 | fi | |
c6b750e1 | 11651 | |
2429c060 PB |
11652 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11653 | set dummy dlltool | |
11654 | if test $build = $target ; then | |
11655 | DLLTOOL_FOR_TARGET="$2" | |
11656 | else | |
11657 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11658 | fi | |
d3f5afc4 MS |
11659 | else |
11660 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11661 | fi |
11662 | ||
3a35eeb3 PB |
11663 | else |
11664 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11665 | fi |
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11671 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11673 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11674 | if test -x $with_build_time_tools/ld; then |
11675 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11676 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11678 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11679 | else |
81ecdfbb RW |
11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11681 | $as_echo "no" >&6; } | |
3a35eeb3 | 11682 | fi |
2429c060 PB |
11683 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11684 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11685 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11686 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11687 | fi |
11688 | fi | |
c6b750e1 | 11689 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11690 | # Extract the first word of "ld", so it can be a program name with args. |
11691 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11693 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11694 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11695 | $as_echo_n "(cached) " >&6 |
2429c060 | 11696 | else |
c6b750e1 DJ |
11697 | case $LD_FOR_TARGET in |
11698 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11699 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11700 | ;; | |
2429c060 | 11701 | *) |
c6b750e1 DJ |
11702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11703 | for as_dir in $gcc_cv_tool_dirs | |
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 |
c6b750e1 | 11709 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11711 | break 2 |
11712 | fi | |
11713 | done | |
81ecdfbb RW |
11714 | done |
11715 | IFS=$as_save_IFS | |
c6b750e1 | 11716 | |
2429c060 PB |
11717 | ;; |
11718 | esac | |
11719 | fi | |
c6b750e1 | 11720 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11721 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11723 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11724 | else |
81ecdfbb RW |
11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11726 | $as_echo "no" >&6; } | |
2429c060 PB |
11727 | fi |
11728 | ||
81ecdfbb | 11729 | |
2429c060 PB |
11730 | fi |
11731 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11732 | |
11733 | ||
11734 | if test -n "$LD_FOR_TARGET"; then | |
11735 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11736 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11737 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11738 | fi | |
11739 | ||
11740 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11741 | for ncn_progname in ld; do | |
11742 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11743 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11745 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11746 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11747 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11748 | else |
11749 | if test -n "$LD_FOR_TARGET"; then | |
11750 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11751 | else | |
11752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11753 | for as_dir in $PATH | |
11754 | do | |
11755 | IFS=$as_save_IFS | |
11756 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11757 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11759 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11761 | break 2 |
11762 | fi | |
11763 | done | |
81ecdfbb RW |
11764 | done |
11765 | IFS=$as_save_IFS | |
9a819804 AO |
11766 | |
11767 | fi | |
11768 | fi | |
11769 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11770 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11772 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11773 | else |
81ecdfbb RW |
11774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11775 | $as_echo "no" >&6; } | |
9a819804 AO |
11776 | fi |
11777 | ||
81ecdfbb | 11778 | |
9a819804 AO |
11779 | done |
11780 | fi | |
11781 | ||
11782 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11783 | for ncn_progname in ld; do |
81ecdfbb RW |
11784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11785 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11786 | if test -x $with_build_time_tools/${ncn_progname}; then |
11787 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11789 | $as_echo "yes" >&6; } | |
2429c060 PB |
11790 | break |
11791 | else | |
81ecdfbb RW |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11793 | $as_echo "no" >&6; } | |
2429c060 PB |
11794 | fi |
11795 | done | |
11796 | fi | |
11797 | ||
11798 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11799 | for ncn_progname in ld; do | |
11800 | if test -n "$ncn_target_tool_prefix"; then | |
11801 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11802 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11804 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11805 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11806 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11807 | else |
11808 | if test -n "$LD_FOR_TARGET"; then | |
11809 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11810 | else | |
c6b750e1 DJ |
11811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11812 | for as_dir in $PATH | |
11813 | do | |
11814 | IFS=$as_save_IFS | |
11815 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11816 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11818 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11820 | break 2 |
11821 | fi | |
11822 | done | |
81ecdfbb RW |
11823 | done |
11824 | IFS=$as_save_IFS | |
c6b750e1 | 11825 | |
2429c060 PB |
11826 | fi |
11827 | fi | |
c6b750e1 | 11828 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11829 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11831 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11832 | else |
81ecdfbb RW |
11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11834 | $as_echo "no" >&6; } | |
2429c060 PB |
11835 | fi |
11836 | ||
81ecdfbb | 11837 | |
2429c060 PB |
11838 | fi |
11839 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11840 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11841 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11843 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11844 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11845 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11846 | else |
11847 | if test -n "$LD_FOR_TARGET"; then | |
11848 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11849 | else | |
c6b750e1 DJ |
11850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11851 | for as_dir in $PATH | |
11852 | do | |
11853 | IFS=$as_save_IFS | |
11854 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11855 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11857 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11859 | break 2 |
11860 | fi | |
11861 | done | |
81ecdfbb RW |
11862 | done |
11863 | IFS=$as_save_IFS | |
c6b750e1 | 11864 | |
2429c060 PB |
11865 | fi |
11866 | fi | |
c6b750e1 | 11867 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11868 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11870 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11871 | else |
81ecdfbb RW |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11873 | $as_echo "no" >&6; } | |
2429c060 | 11874 | fi |
c6b750e1 | 11875 | |
81ecdfbb | 11876 | |
2429c060 PB |
11877 | fi |
11878 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11879 | done | |
11880 | fi | |
c6b750e1 | 11881 | |
2429c060 PB |
11882 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11883 | set dummy ld | |
11884 | if test $build = $target ; then | |
11885 | LD_FOR_TARGET="$2" | |
11886 | else | |
11887 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11888 | fi | |
d3f5afc4 MS |
11889 | else |
11890 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11891 | fi |
11892 | ||
3a35eeb3 PB |
11893 | else |
11894 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11895 | fi |
11896 | ||
11897 | ||
11898 | ||
11899 | ||
11900 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11901 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11903 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11904 | if test -x $with_build_time_tools/lipo; then |
11905 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11906 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11908 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11909 | else |
81ecdfbb RW |
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11911 | $as_echo "no" >&6; } | |
3a35eeb3 | 11912 | fi |
2429c060 PB |
11913 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11914 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11915 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11916 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11917 | fi |
11918 | fi | |
9a819804 AO |
11919 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11920 | # Extract the first word of "lipo", so it can be a program name with args. | |
11921 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11923 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11924 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11925 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11926 | else |
11927 | case $LIPO_FOR_TARGET in | |
11928 | [\\/]* | ?:[\\/]*) | |
11929 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11930 | ;; | |
11931 | *) | |
11932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11933 | for as_dir in $gcc_cv_tool_dirs | |
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_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
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 | ;; | |
11948 | esac | |
11949 | fi | |
11950 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11951 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11953 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11954 | else |
81ecdfbb RW |
11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11956 | $as_echo "no" >&6; } | |
9a819804 AO |
11957 | fi |
11958 | ||
81ecdfbb | 11959 | |
9a819804 AO |
11960 | fi |
11961 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11962 | ||
11963 | ||
11964 | if test -n "$LIPO_FOR_TARGET"; then | |
11965 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11966 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11967 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11968 | fi | |
11969 | ||
11970 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11971 | for ncn_progname in lipo; do | |
11972 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11973 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11975 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11976 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11977 | $as_echo_n "(cached) " >&6 |
2429c060 | 11978 | else |
9a819804 AO |
11979 | if test -n "$LIPO_FOR_TARGET"; then |
11980 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11981 | else | |
11982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11983 | for as_dir in $PATH | |
c6b750e1 DJ |
11984 | do |
11985 | IFS=$as_save_IFS | |
11986 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11987 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11989 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11991 | break 2 |
11992 | fi | |
11993 | done | |
81ecdfbb RW |
11994 | done |
11995 | IFS=$as_save_IFS | |
c6b750e1 | 11996 | |
2429c060 | 11997 | fi |
9a819804 AO |
11998 | fi |
11999 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 12000 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12002 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12003 | else |
81ecdfbb RW |
12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12005 | $as_echo "no" >&6; } | |
2429c060 PB |
12006 | fi |
12007 | ||
81ecdfbb | 12008 | |
9a819804 | 12009 | done |
2429c060 | 12010 | fi |
9a819804 AO |
12011 | |
12012 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12013 | for ncn_progname in lipo; do |
81ecdfbb RW |
12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12015 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12016 | if test -x $with_build_time_tools/${ncn_progname}; then |
12017 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12019 | $as_echo "yes" >&6; } | |
2429c060 PB |
12020 | break |
12021 | else | |
81ecdfbb RW |
12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12023 | $as_echo "no" >&6; } | |
2429c060 PB |
12024 | fi |
12025 | done | |
12026 | fi | |
12027 | ||
12028 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12029 | for ncn_progname in lipo; do | |
12030 | if test -n "$ncn_target_tool_prefix"; then | |
12031 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12032 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12034 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12035 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12036 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
12037 | else |
12038 | if test -n "$LIPO_FOR_TARGET"; then | |
12039 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12040 | else | |
c6b750e1 DJ |
12041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12042 | for as_dir in $PATH | |
12043 | do | |
12044 | IFS=$as_save_IFS | |
12045 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12046 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12048 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12050 | break 2 |
12051 | fi | |
12052 | done | |
81ecdfbb RW |
12053 | done |
12054 | IFS=$as_save_IFS | |
c6b750e1 | 12055 | |
2429c060 PB |
12056 | fi |
12057 | fi | |
c6b750e1 | 12058 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12059 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12061 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12062 | else |
81ecdfbb RW |
12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12064 | $as_echo "no" >&6; } | |
2429c060 PB |
12065 | fi |
12066 | ||
81ecdfbb | 12067 | |
2429c060 PB |
12068 | fi |
12069 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12070 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12071 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12073 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12074 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12075 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
12076 | else |
12077 | if test -n "$LIPO_FOR_TARGET"; then | |
12078 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12079 | else | |
c6b750e1 DJ |
12080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12081 | for as_dir in $PATH | |
12082 | do | |
12083 | IFS=$as_save_IFS | |
12084 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12085 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12086 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12087 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12089 | break 2 |
12090 | fi | |
12091 | done | |
81ecdfbb RW |
12092 | done |
12093 | IFS=$as_save_IFS | |
c6b750e1 | 12094 | |
2429c060 PB |
12095 | fi |
12096 | fi | |
c6b750e1 | 12097 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12098 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12100 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12101 | else |
81ecdfbb RW |
12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12103 | $as_echo "no" >&6; } | |
2429c060 | 12104 | fi |
c6b750e1 | 12105 | |
81ecdfbb | 12106 | |
2429c060 PB |
12107 | fi |
12108 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12109 | done | |
12110 | fi | |
c6b750e1 | 12111 | |
2429c060 PB |
12112 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12113 | set dummy lipo | |
12114 | if test $build = $target ; then | |
12115 | LIPO_FOR_TARGET="$2" | |
12116 | else | |
12117 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12118 | fi | |
d3f5afc4 MS |
12119 | else |
12120 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
12121 | fi |
12122 | ||
3a35eeb3 PB |
12123 | else |
12124 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
12125 | fi |
12126 | ||
12127 | ||
12128 | ||
12129 | ||
12130 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12131 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12133 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12134 | if test -x $with_build_time_tools/nm; then |
12135 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12136 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12138 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12139 | else |
81ecdfbb RW |
12140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12141 | $as_echo "no" >&6; } | |
3a35eeb3 | 12142 | fi |
2429c060 PB |
12143 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12144 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12145 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12146 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12147 | fi |
12148 | fi | |
c6b750e1 | 12149 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12150 | # Extract the first word of "nm", so it can be a program name with args. |
12151 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12153 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12154 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12155 | $as_echo_n "(cached) " >&6 |
2429c060 | 12156 | else |
c6b750e1 DJ |
12157 | case $NM_FOR_TARGET in |
12158 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12159 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12160 | ;; | |
2429c060 | 12161 | *) |
c6b750e1 DJ |
12162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12163 | for as_dir in $gcc_cv_tool_dirs | |
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 |
c6b750e1 | 12169 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
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 PB |
12177 | ;; |
12178 | esac | |
12179 | fi | |
c6b750e1 | 12180 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12181 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12183 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12184 | else |
81ecdfbb RW |
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12186 | $as_echo "no" >&6; } | |
2429c060 PB |
12187 | fi |
12188 | ||
81ecdfbb | 12189 | |
2429c060 PB |
12190 | fi |
12191 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12192 | |
12193 | ||
12194 | if test -n "$NM_FOR_TARGET"; then | |
12195 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12196 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12197 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12198 | fi | |
12199 | ||
12200 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12201 | for ncn_progname in nm; do | |
12202 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12203 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12205 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12206 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12207 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12208 | else |
12209 | if test -n "$NM_FOR_TARGET"; then | |
12210 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12211 | else | |
12212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12213 | for as_dir in $PATH | |
12214 | do | |
12215 | IFS=$as_save_IFS | |
12216 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12217 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12219 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12221 | break 2 |
12222 | fi | |
12223 | done | |
81ecdfbb RW |
12224 | done |
12225 | IFS=$as_save_IFS | |
9a819804 AO |
12226 | |
12227 | fi | |
12228 | fi | |
12229 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12230 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12232 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12233 | else |
81ecdfbb RW |
12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12235 | $as_echo "no" >&6; } | |
9a819804 AO |
12236 | fi |
12237 | ||
81ecdfbb | 12238 | |
9a819804 AO |
12239 | done |
12240 | fi | |
12241 | ||
12242 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12243 | for ncn_progname in nm; do |
81ecdfbb RW |
12244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12245 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12246 | if test -x $with_build_time_tools/${ncn_progname}; then |
12247 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12249 | $as_echo "yes" >&6; } | |
2429c060 PB |
12250 | break |
12251 | else | |
81ecdfbb RW |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12253 | $as_echo "no" >&6; } | |
2429c060 PB |
12254 | fi |
12255 | done | |
12256 | fi | |
12257 | ||
12258 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12259 | for ncn_progname in nm; do | |
12260 | if test -n "$ncn_target_tool_prefix"; then | |
12261 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12262 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12264 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12265 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12266 | $as_echo_n "(cached) " >&6 |
859789af | 12267 | else |
55db4b87 PB |
12268 | if test -n "$NM_FOR_TARGET"; then |
12269 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12270 | else |
c6b750e1 DJ |
12271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12272 | for as_dir in $PATH | |
12273 | do | |
12274 | IFS=$as_save_IFS | |
12275 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12276 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12278 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12280 | break 2 |
12281 | fi | |
12282 | done | |
81ecdfbb RW |
12283 | done |
12284 | IFS=$as_save_IFS | |
c6b750e1 | 12285 | |
859789af AC |
12286 | fi |
12287 | fi | |
c6b750e1 | 12288 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12289 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12291 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12292 | else |
81ecdfbb RW |
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12294 | $as_echo "no" >&6; } | |
859789af AC |
12295 | fi |
12296 | ||
81ecdfbb | 12297 | |
2429c060 PB |
12298 | fi |
12299 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12300 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12301 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12303 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12304 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12305 | $as_echo_n "(cached) " >&6 |
859789af | 12306 | else |
05cbd757 PB |
12307 | if test -n "$NM_FOR_TARGET"; then |
12308 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12309 | else |
c6b750e1 DJ |
12310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12311 | for as_dir in $PATH | |
12312 | do | |
12313 | IFS=$as_save_IFS | |
12314 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12315 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12317 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12319 | break 2 |
12320 | fi | |
12321 | done | |
81ecdfbb RW |
12322 | done |
12323 | IFS=$as_save_IFS | |
c6b750e1 | 12324 | |
859789af AC |
12325 | fi |
12326 | fi | |
c6b750e1 | 12327 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12328 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12330 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12331 | else |
81ecdfbb RW |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12333 | $as_echo "no" >&6; } | |
859789af | 12334 | fi |
c6b750e1 | 12335 | |
81ecdfbb | 12336 | |
2429c060 PB |
12337 | fi |
12338 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12339 | done | |
12340 | fi | |
c6b750e1 | 12341 | |
05cbd757 PB |
12342 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12343 | set dummy nm | |
12344 | if test $build = $target ; then | |
12345 | NM_FOR_TARGET="$2" | |
859789af | 12346 | else |
05cbd757 | 12347 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12348 | fi |
d3f5afc4 MS |
12349 | else |
12350 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12351 | fi |
12352 | ||
3a35eeb3 PB |
12353 | else |
12354 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12355 | fi |
12356 | ||
12357 | ||
12358 | ||
12359 | ||
6b91c541 AP |
12360 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12361 | if test -n "$with_build_time_tools"; then | |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12363 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12364 | if test -x $with_build_time_tools/objcopy; then | |
12365 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12366 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12368 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12369 | else | |
12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12371 | $as_echo "no" >&6; } | |
12372 | fi | |
12373 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12374 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12375 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12376 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12377 | fi | |
12378 | fi | |
12379 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12380 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12381 | set dummy objcopy; ac_word=$2 | |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12383 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12384 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12385 | $as_echo_n "(cached) " >&6 |
12386 | else | |
12387 | case $OBJCOPY_FOR_TARGET in | |
12388 | [\\/]* | ?:[\\/]*) | |
12389 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12390 | ;; | |
12391 | *) | |
12392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12393 | for as_dir in $gcc_cv_tool_dirs | |
12394 | do | |
12395 | IFS=$as_save_IFS | |
12396 | test -z "$as_dir" && as_dir=. | |
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 |
6b91c541 AP |
12399 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12401 | break 2 | |
12402 | fi | |
12403 | done | |
12404 | done | |
12405 | IFS=$as_save_IFS | |
12406 | ||
12407 | ;; | |
12408 | esac | |
12409 | fi | |
12410 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12411 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12413 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12414 | else | |
12415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12416 | $as_echo "no" >&6; } | |
12417 | fi | |
12418 | ||
12419 | ||
12420 | fi | |
12421 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12422 | ||
12423 | ||
12424 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12425 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12426 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12427 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12428 | fi | |
12429 | ||
12430 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12431 | for ncn_progname in objcopy; do | |
12432 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12433 | set dummy ${ncn_progname}; ac_word=$2 | |
12434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12435 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12436 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12437 | $as_echo_n "(cached) " >&6 |
12438 | else | |
12439 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12440 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12441 | else | |
12442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12443 | for as_dir in $PATH | |
12444 | do | |
12445 | IFS=$as_save_IFS | |
12446 | test -z "$as_dir" && as_dir=. | |
12447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12449 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12451 | break 2 | |
12452 | fi | |
12453 | done | |
12454 | done | |
12455 | IFS=$as_save_IFS | |
12456 | ||
12457 | fi | |
12458 | fi | |
12459 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12460 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12462 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12463 | else | |
12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12465 | $as_echo "no" >&6; } | |
12466 | fi | |
12467 | ||
12468 | ||
12469 | done | |
12470 | fi | |
12471 | ||
12472 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12473 | for ncn_progname in objcopy; do | |
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12475 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12476 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12477 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12479 | $as_echo "yes" >&6; } | |
12480 | break | |
12481 | else | |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12483 | $as_echo "no" >&6; } | |
12484 | fi | |
12485 | done | |
12486 | fi | |
12487 | ||
12488 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12489 | for ncn_progname in objcopy; do | |
12490 | if test -n "$ncn_target_tool_prefix"; then | |
12491 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12492 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12494 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12495 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12496 | $as_echo_n "(cached) " >&6 |
12497 | else | |
12498 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12499 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12500 | else | |
12501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12502 | for as_dir in $PATH | |
12503 | do | |
12504 | IFS=$as_save_IFS | |
12505 | test -z "$as_dir" && as_dir=. | |
12506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12508 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12510 | break 2 | |
12511 | fi | |
12512 | done | |
12513 | done | |
12514 | IFS=$as_save_IFS | |
12515 | ||
12516 | fi | |
12517 | fi | |
12518 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12519 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12521 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12522 | else | |
12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12524 | $as_echo "no" >&6; } | |
12525 | fi | |
12526 | ||
12527 | ||
12528 | fi | |
12529 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12530 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12531 | set dummy ${ncn_progname}; ac_word=$2 | |
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12533 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12534 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12535 | $as_echo_n "(cached) " >&6 |
12536 | else | |
12537 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12538 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12539 | else | |
12540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12541 | for as_dir in $PATH | |
12542 | do | |
12543 | IFS=$as_save_IFS | |
12544 | test -z "$as_dir" && as_dir=. | |
12545 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12547 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12549 | break 2 | |
12550 | fi | |
12551 | done | |
12552 | done | |
12553 | IFS=$as_save_IFS | |
12554 | ||
12555 | fi | |
12556 | fi | |
12557 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12558 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12560 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12561 | else | |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12563 | $as_echo "no" >&6; } | |
12564 | fi | |
12565 | ||
12566 | ||
12567 | fi | |
12568 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12569 | done | |
12570 | fi | |
12571 | ||
12572 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12573 | set dummy objcopy | |
12574 | if test $build = $target ; then | |
12575 | OBJCOPY_FOR_TARGET="$2" | |
12576 | else | |
12577 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12578 | fi | |
12579 | else | |
12580 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12581 | fi | |
12582 | ||
12583 | else | |
12584 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12585 | fi | |
12586 | ||
12587 | ||
12588 | ||
12589 | ||
2429c060 PB |
12590 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12591 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12593 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12594 | if test -x $with_build_time_tools/objdump; then |
12595 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12596 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12598 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12599 | else |
81ecdfbb RW |
12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12601 | $as_echo "no" >&6; } | |
3a35eeb3 | 12602 | fi |
2429c060 PB |
12603 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12604 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12605 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12606 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12607 | fi |
12608 | fi | |
c6b750e1 | 12609 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12610 | # Extract the first word of "objdump", so it can be a program name with args. |
12611 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12613 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12614 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12615 | $as_echo_n "(cached) " >&6 |
2429c060 | 12616 | else |
c6b750e1 DJ |
12617 | case $OBJDUMP_FOR_TARGET in |
12618 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12619 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12620 | ;; | |
2429c060 | 12621 | *) |
c6b750e1 DJ |
12622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12623 | for as_dir in $gcc_cv_tool_dirs | |
12624 | do | |
12625 | IFS=$as_save_IFS | |
12626 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 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 |
c6b750e1 | 12629 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12631 | break 2 |
12632 | fi | |
12633 | done | |
81ecdfbb RW |
12634 | done |
12635 | IFS=$as_save_IFS | |
c6b750e1 | 12636 | |
2429c060 PB |
12637 | ;; |
12638 | esac | |
12639 | fi | |
c6b750e1 | 12640 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12641 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12643 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12644 | else |
81ecdfbb RW |
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12646 | $as_echo "no" >&6; } | |
2429c060 PB |
12647 | fi |
12648 | ||
81ecdfbb | 12649 | |
2429c060 PB |
12650 | fi |
12651 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12652 | |
12653 | ||
12654 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12655 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12656 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12657 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12658 | fi | |
12659 | ||
12660 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12661 | for ncn_progname in objdump; do | |
12662 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12663 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12665 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12666 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12667 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12668 | else |
12669 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12670 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12671 | else | |
12672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12673 | for as_dir in $PATH | |
12674 | do | |
12675 | IFS=$as_save_IFS | |
12676 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12677 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12679 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12681 | break 2 |
12682 | fi | |
12683 | done | |
81ecdfbb RW |
12684 | done |
12685 | IFS=$as_save_IFS | |
9a819804 AO |
12686 | |
12687 | fi | |
12688 | fi | |
12689 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12690 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12692 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12693 | else |
81ecdfbb RW |
12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12695 | $as_echo "no" >&6; } | |
9a819804 AO |
12696 | fi |
12697 | ||
81ecdfbb | 12698 | |
9a819804 AO |
12699 | done |
12700 | fi | |
12701 | ||
12702 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12703 | for ncn_progname in objdump; do |
81ecdfbb RW |
12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12705 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12706 | if test -x $with_build_time_tools/${ncn_progname}; then |
12707 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12709 | $as_echo "yes" >&6; } | |
2429c060 PB |
12710 | break |
12711 | else | |
81ecdfbb RW |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12713 | $as_echo "no" >&6; } | |
2429c060 PB |
12714 | fi |
12715 | done | |
12716 | fi | |
12717 | ||
12718 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12719 | for ncn_progname in objdump; do | |
12720 | if test -n "$ncn_target_tool_prefix"; then | |
12721 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12722 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12724 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12725 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12726 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12727 | else |
12728 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12729 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12730 | else | |
c6b750e1 DJ |
12731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12732 | for as_dir in $PATH | |
12733 | do | |
12734 | IFS=$as_save_IFS | |
12735 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12736 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12738 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12740 | break 2 |
12741 | fi | |
12742 | done | |
81ecdfbb RW |
12743 | done |
12744 | IFS=$as_save_IFS | |
c6b750e1 | 12745 | |
5ae72758 DJ |
12746 | fi |
12747 | fi | |
c6b750e1 | 12748 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12749 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12751 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12752 | else |
81ecdfbb RW |
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12754 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12755 | fi |
12756 | ||
81ecdfbb | 12757 | |
2429c060 PB |
12758 | fi |
12759 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12760 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12761 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12763 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12764 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12765 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12766 | else |
12767 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12768 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12769 | else | |
c6b750e1 DJ |
12770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12771 | for as_dir in $PATH | |
12772 | do | |
12773 | IFS=$as_save_IFS | |
12774 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12775 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12777 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12779 | break 2 |
12780 | fi | |
12781 | done | |
81ecdfbb RW |
12782 | done |
12783 | IFS=$as_save_IFS | |
c6b750e1 | 12784 | |
5ae72758 DJ |
12785 | fi |
12786 | fi | |
c6b750e1 | 12787 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12788 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12790 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12791 | else |
81ecdfbb RW |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12793 | $as_echo "no" >&6; } | |
5ae72758 | 12794 | fi |
c6b750e1 | 12795 | |
81ecdfbb | 12796 | |
2429c060 PB |
12797 | fi |
12798 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12799 | done | |
12800 | fi | |
c6b750e1 | 12801 | |
5ae72758 DJ |
12802 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12803 | set dummy objdump | |
12804 | if test $build = $target ; then | |
12805 | OBJDUMP_FOR_TARGET="$2" | |
12806 | else | |
12807 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12808 | fi | |
d3f5afc4 MS |
12809 | else |
12810 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12811 | fi |
12812 | ||
3a35eeb3 PB |
12813 | else |
12814 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12815 | fi |
12816 | ||
12817 | ||
12818 | ||
12819 | ||
12820 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12821 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12823 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12824 | if test -x $with_build_time_tools/ranlib; then |
12825 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12826 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12828 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12829 | else |
81ecdfbb RW |
12830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12831 | $as_echo "no" >&6; } | |
3a35eeb3 | 12832 | fi |
2429c060 PB |
12833 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12834 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12835 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12836 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12837 | fi |
12838 | fi | |
c6b750e1 | 12839 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12840 | # Extract the first word of "ranlib", so it can be a program name with args. |
12841 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12843 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12844 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12845 | $as_echo_n "(cached) " >&6 |
2429c060 | 12846 | else |
c6b750e1 DJ |
12847 | case $RANLIB_FOR_TARGET in |
12848 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12849 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12850 | ;; | |
2429c060 | 12851 | *) |
c6b750e1 DJ |
12852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12853 | for as_dir in $gcc_cv_tool_dirs | |
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 |
c6b750e1 | 12859 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12861 | break 2 |
12862 | fi | |
12863 | done | |
81ecdfbb RW |
12864 | done |
12865 | IFS=$as_save_IFS | |
c6b750e1 | 12866 | |
2429c060 PB |
12867 | ;; |
12868 | esac | |
12869 | fi | |
c6b750e1 | 12870 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12871 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12873 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12874 | else |
81ecdfbb RW |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12876 | $as_echo "no" >&6; } | |
2429c060 PB |
12877 | fi |
12878 | ||
81ecdfbb | 12879 | |
2429c060 PB |
12880 | fi |
12881 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12882 | |
12883 | ||
12884 | if test -n "$RANLIB_FOR_TARGET"; then | |
12885 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12886 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12887 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12888 | fi | |
12889 | ||
12890 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12891 | for ncn_progname in ranlib; do | |
12892 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12893 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12895 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12896 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12897 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12898 | else |
12899 | if test -n "$RANLIB_FOR_TARGET"; then | |
12900 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12901 | else | |
12902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12903 | for as_dir in $PATH | |
12904 | do | |
12905 | IFS=$as_save_IFS | |
12906 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12907 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12908 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12909 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12911 | break 2 |
12912 | fi | |
12913 | done | |
81ecdfbb RW |
12914 | done |
12915 | IFS=$as_save_IFS | |
9a819804 AO |
12916 | |
12917 | fi | |
12918 | fi | |
12919 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12920 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12922 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12923 | else |
81ecdfbb RW |
12924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12925 | $as_echo "no" >&6; } | |
9a819804 AO |
12926 | fi |
12927 | ||
81ecdfbb | 12928 | |
9a819804 AO |
12929 | done |
12930 | fi | |
12931 | ||
12932 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12933 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12935 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12936 | if test -x $with_build_time_tools/${ncn_progname}; then |
12937 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12939 | $as_echo "yes" >&6; } | |
2429c060 PB |
12940 | break |
12941 | else | |
81ecdfbb RW |
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12943 | $as_echo "no" >&6; } | |
2429c060 PB |
12944 | fi |
12945 | done | |
12946 | fi | |
12947 | ||
12948 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12949 | for ncn_progname in ranlib; do | |
12950 | if test -n "$ncn_target_tool_prefix"; then | |
12951 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12952 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12954 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12955 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12956 | $as_echo_n "(cached) " >&6 |
859789af | 12957 | else |
55db4b87 PB |
12958 | if test -n "$RANLIB_FOR_TARGET"; then |
12959 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12960 | else |
c6b750e1 DJ |
12961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12962 | for as_dir in $PATH | |
12963 | do | |
12964 | IFS=$as_save_IFS | |
12965 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12966 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12968 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12970 | break 2 |
12971 | fi | |
12972 | done | |
81ecdfbb RW |
12973 | done |
12974 | IFS=$as_save_IFS | |
c6b750e1 | 12975 | |
859789af AC |
12976 | fi |
12977 | fi | |
c6b750e1 | 12978 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12979 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12981 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12982 | else |
81ecdfbb RW |
12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12984 | $as_echo "no" >&6; } | |
859789af AC |
12985 | fi |
12986 | ||
81ecdfbb | 12987 | |
2429c060 PB |
12988 | fi |
12989 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12990 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12991 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12993 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12994 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12995 | $as_echo_n "(cached) " >&6 |
859789af | 12996 | else |
05cbd757 PB |
12997 | if test -n "$RANLIB_FOR_TARGET"; then |
12998 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12999 | else |
c6b750e1 DJ |
13000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13001 | for as_dir in $PATH | |
13002 | do | |
13003 | IFS=$as_save_IFS | |
13004 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13005 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13006 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13007 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13009 | break 2 |
13010 | fi | |
13011 | done | |
81ecdfbb RW |
13012 | done |
13013 | IFS=$as_save_IFS | |
c6b750e1 | 13014 | |
859789af AC |
13015 | fi |
13016 | fi | |
c6b750e1 | 13017 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 13018 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13020 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 13021 | else |
81ecdfbb RW |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13023 | $as_echo "no" >&6; } | |
859789af | 13024 | fi |
c6b750e1 | 13025 | |
81ecdfbb | 13026 | |
2429c060 PB |
13027 | fi |
13028 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
13029 | done | |
13030 | fi | |
c6b750e1 | 13031 | |
2429c060 PB |
13032 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13033 | set dummy ranlib | |
13034 | if test $build = $target ; then | |
13035 | RANLIB_FOR_TARGET="$2" | |
13036 | else | |
13037 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 13038 | fi |
d3f5afc4 MS |
13039 | else |
13040 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 13041 | fi |
05cbd757 | 13042 | |
3a35eeb3 PB |
13043 | else |
13044 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
13045 | fi |
13046 | ||
2429c060 PB |
13047 | |
13048 | ||
13049 | ||
b121d7d4 DD |
13050 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13051 | if test -n "$with_build_time_tools"; then | |
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13053 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13054 | if test -x $with_build_time_tools/readelf; then | |
13055 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13056 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13058 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13059 | else | |
13060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13061 | $as_echo "no" >&6; } | |
13062 | fi | |
13063 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13064 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13065 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13066 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13067 | fi | |
13068 | fi | |
13069 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13070 | # Extract the first word of "readelf", so it can be a program name with args. | |
13071 | set dummy readelf; ac_word=$2 | |
13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13073 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13074 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13075 | $as_echo_n "(cached) " >&6 |
13076 | else | |
13077 | case $READELF_FOR_TARGET in | |
13078 | [\\/]* | ?:[\\/]*) | |
13079 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13080 | ;; | |
13081 | *) | |
13082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13083 | for as_dir in $gcc_cv_tool_dirs | |
13084 | do | |
13085 | IFS=$as_save_IFS | |
13086 | test -z "$as_dir" && as_dir=. | |
13087 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13088 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13089 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
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 | ;; | |
13098 | esac | |
13099 | fi | |
13100 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13101 | if test -n "$READELF_FOR_TARGET"; then | |
13102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13103 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13104 | else | |
13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13106 | $as_echo "no" >&6; } | |
13107 | fi | |
13108 | ||
13109 | ||
13110 | fi | |
13111 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13112 | ||
13113 | ||
13114 | if test -n "$READELF_FOR_TARGET"; then | |
13115 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13116 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13117 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13118 | fi | |
13119 | ||
13120 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13121 | for ncn_progname in readelf; do | |
13122 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13123 | set dummy ${ncn_progname}; ac_word=$2 | |
13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13125 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13126 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13127 | $as_echo_n "(cached) " >&6 |
13128 | else | |
13129 | if test -n "$READELF_FOR_TARGET"; then | |
13130 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13131 | else | |
13132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13133 | for as_dir in $PATH | |
13134 | do | |
13135 | IFS=$as_save_IFS | |
13136 | test -z "$as_dir" && as_dir=. | |
13137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13138 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13139 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13141 | break 2 | |
13142 | fi | |
13143 | done | |
13144 | done | |
13145 | IFS=$as_save_IFS | |
13146 | ||
13147 | fi | |
13148 | fi | |
13149 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13150 | if test -n "$READELF_FOR_TARGET"; then | |
13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13152 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13153 | else | |
13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13155 | $as_echo "no" >&6; } | |
13156 | fi | |
13157 | ||
13158 | ||
13159 | done | |
13160 | fi | |
13161 | ||
13162 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13163 | for ncn_progname in readelf; do | |
13164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13165 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13166 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13167 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13169 | $as_echo "yes" >&6; } | |
13170 | break | |
13171 | else | |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13173 | $as_echo "no" >&6; } | |
13174 | fi | |
13175 | done | |
13176 | fi | |
13177 | ||
13178 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13179 | for ncn_progname in readelf; do | |
13180 | if test -n "$ncn_target_tool_prefix"; then | |
13181 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13182 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13184 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13185 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13186 | $as_echo_n "(cached) " >&6 |
13187 | else | |
13188 | if test -n "$READELF_FOR_TARGET"; then | |
13189 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13190 | else | |
13191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13192 | for as_dir in $PATH | |
13193 | do | |
13194 | IFS=$as_save_IFS | |
13195 | test -z "$as_dir" && as_dir=. | |
13196 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13197 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13198 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13200 | break 2 | |
13201 | fi | |
13202 | done | |
13203 | done | |
13204 | IFS=$as_save_IFS | |
13205 | ||
13206 | fi | |
13207 | fi | |
13208 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13209 | if test -n "$READELF_FOR_TARGET"; then | |
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13211 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13212 | else | |
13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13214 | $as_echo "no" >&6; } | |
13215 | fi | |
13216 | ||
13217 | ||
13218 | fi | |
13219 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13220 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13221 | set dummy ${ncn_progname}; ac_word=$2 | |
13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13223 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13224 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13225 | $as_echo_n "(cached) " >&6 |
13226 | else | |
13227 | if test -n "$READELF_FOR_TARGET"; then | |
13228 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13229 | else | |
13230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13231 | for as_dir in $PATH | |
13232 | do | |
13233 | IFS=$as_save_IFS | |
13234 | test -z "$as_dir" && as_dir=. | |
13235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13237 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13239 | break 2 | |
13240 | fi | |
13241 | done | |
13242 | done | |
13243 | IFS=$as_save_IFS | |
13244 | ||
13245 | fi | |
13246 | fi | |
13247 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13248 | if test -n "$READELF_FOR_TARGET"; then | |
13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13250 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13251 | else | |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13253 | $as_echo "no" >&6; } | |
13254 | fi | |
13255 | ||
13256 | ||
13257 | fi | |
13258 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13259 | done | |
13260 | fi | |
13261 | ||
13262 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13263 | set dummy readelf | |
13264 | if test $build = $target ; then | |
13265 | READELF_FOR_TARGET="$2" | |
13266 | else | |
13267 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13268 | fi | |
13269 | else | |
13270 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13271 | fi | |
13272 | ||
13273 | else | |
13274 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13275 | fi | |
13276 | ||
13277 | ||
13278 | ||
13279 | ||
2429c060 PB |
13280 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13281 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13283 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13284 | if test -x $with_build_time_tools/strip; then |
13285 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13286 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13288 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13289 | else |
81ecdfbb RW |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13291 | $as_echo "no" >&6; } | |
3a35eeb3 | 13292 | fi |
2429c060 PB |
13293 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13294 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13295 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13296 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13297 | fi |
13298 | fi | |
c6b750e1 | 13299 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13300 | # Extract the first word of "strip", so it can be a program name with args. |
13301 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13303 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13304 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13305 | $as_echo_n "(cached) " >&6 |
2429c060 | 13306 | else |
c6b750e1 DJ |
13307 | case $STRIP_FOR_TARGET in |
13308 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13309 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13310 | ;; | |
2429c060 | 13311 | *) |
c6b750e1 DJ |
13312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13313 | for as_dir in $gcc_cv_tool_dirs | |
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 |
c6b750e1 | 13319 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13321 | break 2 |
13322 | fi | |
13323 | done | |
81ecdfbb RW |
13324 | done |
13325 | IFS=$as_save_IFS | |
c6b750e1 | 13326 | |
2429c060 PB |
13327 | ;; |
13328 | esac | |
13329 | fi | |
c6b750e1 | 13330 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13331 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13333 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13334 | else |
81ecdfbb RW |
13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13336 | $as_echo "no" >&6; } | |
2429c060 PB |
13337 | fi |
13338 | ||
81ecdfbb | 13339 | |
2429c060 PB |
13340 | fi |
13341 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13342 | |
13343 | ||
13344 | if test -n "$STRIP_FOR_TARGET"; then | |
13345 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13346 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13347 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13348 | fi | |
13349 | ||
13350 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13351 | for ncn_progname in strip; do | |
13352 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13353 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13355 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13356 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13357 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13358 | else |
13359 | if test -n "$STRIP_FOR_TARGET"; then | |
13360 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13361 | else | |
13362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13363 | for as_dir in $PATH | |
13364 | do | |
13365 | IFS=$as_save_IFS | |
13366 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13367 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13369 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13371 | break 2 |
13372 | fi | |
13373 | done | |
81ecdfbb RW |
13374 | done |
13375 | IFS=$as_save_IFS | |
9a819804 AO |
13376 | |
13377 | fi | |
13378 | fi | |
13379 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13380 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13382 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13383 | else |
81ecdfbb RW |
13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13385 | $as_echo "no" >&6; } | |
9a819804 AO |
13386 | fi |
13387 | ||
81ecdfbb | 13388 | |
9a819804 AO |
13389 | done |
13390 | fi | |
13391 | ||
13392 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13393 | for ncn_progname in strip; do |
81ecdfbb RW |
13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13395 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13396 | if test -x $with_build_time_tools/${ncn_progname}; then |
13397 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13399 | $as_echo "yes" >&6; } | |
2429c060 PB |
13400 | break |
13401 | else | |
81ecdfbb RW |
13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13403 | $as_echo "no" >&6; } | |
2429c060 PB |
13404 | fi |
13405 | done | |
13406 | fi | |
13407 | ||
13408 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13409 | for ncn_progname in strip; do | |
13410 | if test -n "$ncn_target_tool_prefix"; then | |
13411 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13412 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13414 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13415 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13416 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13417 | else |
13418 | if test -n "$STRIP_FOR_TARGET"; then | |
13419 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13420 | else |
13421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13422 | for as_dir in $PATH | |
13423 | do | |
13424 | IFS=$as_save_IFS | |
13425 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13426 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13427 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13428 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13430 | break 2 |
13431 | fi | |
13432 | done | |
81ecdfbb RW |
13433 | done |
13434 | IFS=$as_save_IFS | |
c6b750e1 | 13435 | |
7e0f7140 GK |
13436 | fi |
13437 | fi | |
c6b750e1 | 13438 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13439 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13441 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13442 | else |
81ecdfbb RW |
13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13444 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13445 | fi |
13446 | ||
81ecdfbb | 13447 | |
2429c060 PB |
13448 | fi |
13449 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13450 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13451 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13453 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13454 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13455 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13456 | else |
13457 | if test -n "$STRIP_FOR_TARGET"; then | |
13458 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13459 | else | |
c6b750e1 DJ |
13460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13461 | for as_dir in $PATH | |
13462 | do | |
13463 | IFS=$as_save_IFS | |
13464 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13465 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13466 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13467 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13469 | break 2 |
13470 | fi | |
13471 | done | |
81ecdfbb RW |
13472 | done |
13473 | IFS=$as_save_IFS | |
c6b750e1 | 13474 | |
7e0f7140 GK |
13475 | fi |
13476 | fi | |
c6b750e1 | 13477 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13478 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13480 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13481 | else |
81ecdfbb RW |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13483 | $as_echo "no" >&6; } | |
7e0f7140 | 13484 | fi |
c6b750e1 | 13485 | |
81ecdfbb | 13486 | |
2429c060 PB |
13487 | fi |
13488 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13489 | done | |
13490 | fi | |
c6b750e1 | 13491 | |
7e0f7140 GK |
13492 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13493 | set dummy strip | |
13494 | if test $build = $target ; then | |
13495 | STRIP_FOR_TARGET="$2" | |
13496 | else | |
13497 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13498 | fi | |
d3f5afc4 MS |
13499 | else |
13500 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13501 | fi |
13502 | ||
3a35eeb3 PB |
13503 | else |
13504 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13505 | fi |
13506 | ||
13507 | ||
13508 | ||
13509 | ||
13510 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13511 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13513 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13514 | if test -x $with_build_time_tools/windres; then |
13515 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13516 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13518 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13519 | else |
81ecdfbb RW |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13521 | $as_echo "no" >&6; } | |
3a35eeb3 | 13522 | fi |
2429c060 PB |
13523 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13524 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13525 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13526 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13527 | fi |
13528 | fi | |
c6b750e1 | 13529 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13530 | # Extract the first word of "windres", so it can be a program name with args. |
13531 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13533 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13534 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13535 | $as_echo_n "(cached) " >&6 |
2429c060 | 13536 | else |
c6b750e1 DJ |
13537 | case $WINDRES_FOR_TARGET in |
13538 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13539 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13540 | ;; | |
2429c060 | 13541 | *) |
c6b750e1 DJ |
13542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13543 | for as_dir in $gcc_cv_tool_dirs | |
13544 | do | |
13545 | IFS=$as_save_IFS | |
13546 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 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 |
c6b750e1 | 13549 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13551 | break 2 |
13552 | fi | |
13553 | done | |
81ecdfbb RW |
13554 | done |
13555 | IFS=$as_save_IFS | |
c6b750e1 | 13556 | |
2429c060 PB |
13557 | ;; |
13558 | esac | |
13559 | fi | |
c6b750e1 | 13560 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13561 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13563 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13564 | else |
81ecdfbb RW |
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13566 | $as_echo "no" >&6; } | |
2429c060 PB |
13567 | fi |
13568 | ||
81ecdfbb | 13569 | |
2429c060 PB |
13570 | fi |
13571 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13572 | |
13573 | ||
13574 | if test -n "$WINDRES_FOR_TARGET"; then | |
13575 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13576 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13577 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13578 | fi | |
13579 | ||
13580 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13581 | for ncn_progname in windres; do | |
13582 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13583 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13585 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13586 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13587 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13588 | else |
13589 | if test -n "$WINDRES_FOR_TARGET"; then | |
13590 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13591 | else | |
13592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13593 | for as_dir in $PATH | |
13594 | do | |
13595 | IFS=$as_save_IFS | |
13596 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13597 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13599 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13601 | break 2 |
13602 | fi | |
13603 | done | |
81ecdfbb RW |
13604 | done |
13605 | IFS=$as_save_IFS | |
9a819804 AO |
13606 | |
13607 | fi | |
13608 | fi | |
13609 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13610 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13612 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13613 | else |
81ecdfbb RW |
13614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13615 | $as_echo "no" >&6; } | |
9a819804 AO |
13616 | fi |
13617 | ||
81ecdfbb | 13618 | |
9a819804 AO |
13619 | done |
13620 | fi | |
13621 | ||
13622 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13623 | for ncn_progname in windres; do |
81ecdfbb RW |
13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13625 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13626 | if test -x $with_build_time_tools/${ncn_progname}; then |
13627 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13629 | $as_echo "yes" >&6; } | |
2429c060 PB |
13630 | break |
13631 | else | |
81ecdfbb RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13633 | $as_echo "no" >&6; } | |
2429c060 PB |
13634 | fi |
13635 | done | |
13636 | fi | |
13637 | ||
13638 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13639 | for ncn_progname in windres; do | |
13640 | if test -n "$ncn_target_tool_prefix"; then | |
13641 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13642 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13644 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13645 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13646 | $as_echo_n "(cached) " >&6 |
859789af | 13647 | else |
55db4b87 PB |
13648 | if test -n "$WINDRES_FOR_TARGET"; then |
13649 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13650 | else |
c6b750e1 DJ |
13651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13652 | for as_dir in $PATH | |
13653 | do | |
13654 | IFS=$as_save_IFS | |
13655 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13656 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13658 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13660 | break 2 |
13661 | fi | |
13662 | done | |
81ecdfbb RW |
13663 | done |
13664 | IFS=$as_save_IFS | |
c6b750e1 | 13665 | |
859789af AC |
13666 | fi |
13667 | fi | |
c6b750e1 | 13668 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13669 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13671 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13672 | else |
81ecdfbb RW |
13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13674 | $as_echo "no" >&6; } | |
859789af AC |
13675 | fi |
13676 | ||
81ecdfbb | 13677 | |
2429c060 PB |
13678 | fi |
13679 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13680 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13681 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13683 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13684 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13685 | $as_echo_n "(cached) " >&6 |
859789af | 13686 | else |
05cbd757 PB |
13687 | if test -n "$WINDRES_FOR_TARGET"; then |
13688 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13689 | else |
c6b750e1 DJ |
13690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13691 | for as_dir in $PATH | |
13692 | do | |
13693 | IFS=$as_save_IFS | |
13694 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13695 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13697 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13699 | break 2 |
13700 | fi | |
13701 | done | |
81ecdfbb RW |
13702 | done |
13703 | IFS=$as_save_IFS | |
c6b750e1 | 13704 | |
859789af AC |
13705 | fi |
13706 | fi | |
c6b750e1 | 13707 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13708 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13710 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13711 | else |
81ecdfbb RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13713 | $as_echo "no" >&6; } | |
859789af | 13714 | fi |
c6b750e1 | 13715 | |
81ecdfbb | 13716 | |
2429c060 PB |
13717 | fi |
13718 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13719 | done | |
13720 | fi | |
c6b750e1 | 13721 | |
05cbd757 PB |
13722 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13723 | set dummy windres | |
13724 | if test $build = $target ; then | |
13725 | WINDRES_FOR_TARGET="$2" | |
859789af | 13726 | else |
05cbd757 | 13727 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13728 | fi |
d3f5afc4 MS |
13729 | else |
13730 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13731 | fi |
13732 | ||
3a35eeb3 PB |
13733 | else |
13734 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13735 | fi |
13736 | ||
852e5f18 | 13737 | |
0c24b341 NC |
13738 | |
13739 | ||
13740 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13741 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13743 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13744 | if test -x $with_build_time_tools/windmc; then |
13745 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13746 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13748 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13749 | else |
81ecdfbb RW |
13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13751 | $as_echo "no" >&6; } | |
0c24b341 NC |
13752 | fi |
13753 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13754 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13755 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13756 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13757 | fi | |
13758 | fi | |
13759 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13760 | # Extract the first word of "windmc", so it can be a program name with args. | |
13761 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13763 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13764 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13765 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13766 | else |
13767 | case $WINDMC_FOR_TARGET in | |
13768 | [\\/]* | ?:[\\/]*) | |
13769 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13770 | ;; | |
13771 | *) | |
13772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13773 | for as_dir in $gcc_cv_tool_dirs | |
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 |
0c24b341 | 13779 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13781 | break 2 |
13782 | fi | |
13783 | done | |
81ecdfbb RW |
13784 | done |
13785 | IFS=$as_save_IFS | |
0c24b341 NC |
13786 | |
13787 | ;; | |
13788 | esac | |
13789 | fi | |
13790 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13791 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13793 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13794 | else |
81ecdfbb RW |
13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13796 | $as_echo "no" >&6; } | |
0c24b341 NC |
13797 | fi |
13798 | ||
81ecdfbb | 13799 | |
0c24b341 NC |
13800 | fi |
13801 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13802 | ||
13803 | ||
13804 | if test -n "$WINDMC_FOR_TARGET"; then | |
13805 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13806 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13807 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13808 | fi | |
13809 | ||
13810 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13811 | for ncn_progname in windmc; do | |
13812 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13813 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13815 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13816 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13817 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13818 | else |
13819 | if test -n "$WINDMC_FOR_TARGET"; then | |
13820 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13821 | else | |
13822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13823 | for as_dir in $PATH | |
13824 | do | |
13825 | IFS=$as_save_IFS | |
13826 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13827 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13829 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13831 | break 2 |
13832 | fi | |
13833 | done | |
81ecdfbb RW |
13834 | done |
13835 | IFS=$as_save_IFS | |
0c24b341 NC |
13836 | |
13837 | fi | |
13838 | fi | |
13839 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13840 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13842 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13843 | else |
81ecdfbb RW |
13844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13845 | $as_echo "no" >&6; } | |
0c24b341 NC |
13846 | fi |
13847 | ||
81ecdfbb | 13848 | |
0c24b341 NC |
13849 | done |
13850 | fi | |
13851 | ||
13852 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13853 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13855 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13856 | if test -x $with_build_time_tools/${ncn_progname}; then |
13857 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13859 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13860 | break |
13861 | else | |
81ecdfbb RW |
13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13863 | $as_echo "no" >&6; } | |
0c24b341 NC |
13864 | fi |
13865 | done | |
13866 | fi | |
13867 | ||
13868 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13869 | for ncn_progname in windmc; do | |
13870 | if test -n "$ncn_target_tool_prefix"; then | |
13871 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13872 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13874 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13875 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13876 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13877 | else |
13878 | if test -n "$WINDMC_FOR_TARGET"; then | |
13879 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13880 | else | |
13881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13882 | for as_dir in $PATH | |
13883 | do | |
13884 | IFS=$as_save_IFS | |
13885 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13886 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13888 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13890 | break 2 |
13891 | fi | |
13892 | done | |
81ecdfbb RW |
13893 | done |
13894 | IFS=$as_save_IFS | |
0c24b341 NC |
13895 | |
13896 | fi | |
13897 | fi | |
13898 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13899 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13901 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13902 | else |
81ecdfbb RW |
13903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13904 | $as_echo "no" >&6; } | |
0c24b341 NC |
13905 | fi |
13906 | ||
81ecdfbb | 13907 | |
0c24b341 NC |
13908 | fi |
13909 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13910 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13911 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13913 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13914 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13915 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13916 | else |
13917 | if test -n "$WINDMC_FOR_TARGET"; then | |
13918 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13919 | else | |
13920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13921 | for as_dir in $PATH | |
13922 | do | |
13923 | IFS=$as_save_IFS | |
13924 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13925 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13926 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13927 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13929 | break 2 |
13930 | fi | |
13931 | done | |
81ecdfbb RW |
13932 | done |
13933 | IFS=$as_save_IFS | |
0c24b341 NC |
13934 | |
13935 | fi | |
13936 | fi | |
13937 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13938 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13940 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13941 | else |
81ecdfbb RW |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13943 | $as_echo "no" >&6; } | |
0c24b341 NC |
13944 | fi |
13945 | ||
81ecdfbb | 13946 | |
0c24b341 NC |
13947 | fi |
13948 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13949 | done | |
13950 | fi | |
13951 | ||
13952 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13953 | set dummy windmc | |
13954 | if test $build = $target ; then | |
13955 | WINDMC_FOR_TARGET="$2" | |
13956 | else | |
13957 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13958 | fi | |
13959 | else | |
13960 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13961 | fi | |
13962 | ||
13963 | else | |
13964 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13965 | fi | |
13966 | ||
13967 | ||
be01d343 PB |
13968 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13969 | ||
81ecdfbb RW |
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13971 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13972 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13973 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13974 | # We already found the complete path | |
b8025f34 | 13975 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13977 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13978 | else |
13979 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13981 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13982 | fi |
be01d343 PB |
13983 | else |
13984 | ok=yes | |
13985 | case " ${configdirs} " in | |
13986 | *" binutils "*) ;; | |
13987 | *) ok=no ;; | |
13988 | esac | |
c6b750e1 | 13989 | |
be01d343 PB |
13990 | if test $ok = yes; then |
13991 | # An in-tree tool is available and we can use it | |
13992 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13994 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13995 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13996 | # We already found the complete path | |
b8025f34 | 13997 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13999 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14000 | elif test "x$target" = "x$host"; then |
14001 | # We can use an host tool | |
14002 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14004 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14005 | else |
14006 | # We need a cross tool | |
81ecdfbb RW |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14008 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14009 | fi |
14010 | fi | |
4b900473 | 14011 | |
81ecdfbb RW |
14012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
14013 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 14014 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14015 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14016 | # We already found the complete path | |
b8025f34 | 14017 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14019 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14020 | else |
14021 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14023 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14024 | fi |
be01d343 PB |
14025 | else |
14026 | ok=yes | |
14027 | case " ${configdirs} " in | |
14028 | *" gas "*) ;; | |
14029 | *) ok=no ;; | |
14030 | esac | |
c6b750e1 | 14031 | |
be01d343 PB |
14032 | if test $ok = yes; then |
14033 | # An in-tree tool is available and we can use it | |
14034 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14036 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14037 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14038 | # We already found the complete path | |
b8025f34 | 14039 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14041 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14042 | elif test "x$target" = "x$host"; then |
14043 | # We can use an host tool | |
14044 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
14045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14046 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14047 | else |
14048 | # We need a cross tool | |
81ecdfbb RW |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14050 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14051 | fi |
14052 | fi | |
4b900473 | 14053 | |
81ecdfbb RW |
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14055 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 14056 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14057 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14058 | # We already found the complete path | |
b8025f34 | 14059 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
14060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14061 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14062 | else |
14063 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14065 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14066 | fi |
be01d343 PB |
14067 | else |
14068 | ok=yes | |
14069 | case " ${configdirs} " in | |
14070 | *" gcc "*) ;; | |
14071 | *) ok=no ;; | |
14072 | esac | |
c6b750e1 | 14073 | |
be01d343 PB |
14074 | if test $ok = yes; then |
14075 | # An in-tree tool is available and we can use it | |
14076 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14078 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14079 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14080 | # We already found the complete path | |
b8025f34 | 14081 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14083 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14084 | elif test "x$target" = "x$host"; then |
14085 | # We can use an host tool | |
14086 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
14087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14088 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14089 | else |
14090 | # We need a cross tool | |
81ecdfbb RW |
14091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14092 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14093 | fi |
14094 | fi | |
4b900473 | 14095 | |
81ecdfbb RW |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14097 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 14098 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14099 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14100 | # We already found the complete path | |
b8025f34 | 14101 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14103 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14104 | else |
14105 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14107 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14108 | fi |
be01d343 PB |
14109 | else |
14110 | ok=yes | |
14111 | case " ${configdirs} " in | |
14112 | *" gcc "*) ;; | |
14113 | *) ok=no ;; | |
14114 | esac | |
14115 | case ,${enable_languages}, in | |
14116 | *,c++,*) ;; | |
14117 | *) ok=no ;; | |
14118 | esac | |
14119 | if test $ok = yes; then | |
14120 | # An in-tree tool is available and we can use it | |
95e43135 | 14121 | 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 |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14123 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14124 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14125 | # We already found the complete path | |
b8025f34 | 14126 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14128 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14129 | elif test "x$target" = "x$host"; then |
14130 | # We can use an host tool | |
14131 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14133 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14134 | else |
14135 | # We need a cross tool | |
81ecdfbb RW |
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14137 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14138 | fi |
14139 | fi | |
4b900473 | 14140 | |
81ecdfbb RW |
14141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14142 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 14143 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14144 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14145 | # We already found the complete path | |
b8025f34 | 14146 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14148 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14149 | else |
14150 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14152 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14153 | fi |
be01d343 PB |
14154 | else |
14155 | ok=yes | |
14156 | case " ${configdirs} " in | |
14157 | *" gcc "*) ;; | |
14158 | *) ok=no ;; | |
14159 | esac | |
14160 | case ,${enable_languages}, in | |
14161 | *,c++,*) ;; | |
14162 | *) ok=no ;; | |
14163 | esac | |
14164 | if test $ok = yes; then | |
14165 | # An in-tree tool is available and we can use it | |
95e43135 | 14166 | 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 |
14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14168 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14169 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14170 | # We already found the complete path | |
b8025f34 | 14171 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14173 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14174 | elif test "x$target" = "x$host"; then |
14175 | # We can use an host tool | |
14176 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14178 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14179 | else |
14180 | # We need a cross tool | |
81ecdfbb RW |
14181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14182 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14183 | fi |
14184 | fi | |
4b900473 | 14185 | |
81ecdfbb RW |
14186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14187 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 14188 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14189 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14190 | # We already found the complete path | |
b8025f34 | 14191 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14193 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14194 | else |
14195 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14197 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14198 | fi |
be01d343 PB |
14199 | else |
14200 | ok=yes | |
14201 | case " ${configdirs} " in | |
14202 | *" binutils "*) ;; | |
14203 | *) ok=no ;; | |
14204 | esac | |
c6b750e1 | 14205 | |
be01d343 PB |
14206 | if test $ok = yes; then |
14207 | # An in-tree tool is available and we can use it | |
14208 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14210 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14211 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14212 | # We already found the complete path | |
b8025f34 | 14213 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14215 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14216 | elif test "x$target" = "x$host"; then |
14217 | # We can use an host tool | |
14218 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14220 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14221 | else |
14222 | # We need a cross tool | |
81ecdfbb RW |
14223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14224 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14225 | fi |
14226 | fi | |
4b900473 | 14227 | |
81ecdfbb RW |
14228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14229 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14230 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14231 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14232 | # We already found the complete path | |
b8025f34 | 14233 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14235 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14236 | else |
14237 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14239 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14240 | fi |
be01d343 PB |
14241 | else |
14242 | ok=yes | |
14243 | case " ${configdirs} " in | |
14244 | *" gcc "*) ;; | |
14245 | *) ok=no ;; | |
14246 | esac | |
c6b750e1 | 14247 | |
be01d343 PB |
14248 | if test $ok = yes; then |
14249 | # An in-tree tool is available and we can use it | |
14250 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14252 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14253 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14254 | # We already found the complete path | |
b8025f34 | 14255 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14257 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14258 | elif test "x$target" = "x$host"; then |
14259 | # We can use an host tool | |
14260 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14262 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14263 | else |
14264 | # We need a cross tool | |
81ecdfbb RW |
14265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14266 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14267 | fi |
14268 | fi | |
4b900473 | 14269 | |
81ecdfbb RW |
14270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14271 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14272 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14273 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14274 | # We already found the complete path | |
b8025f34 | 14275 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14277 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14278 | else |
14279 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14281 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14282 | fi |
be01d343 PB |
14283 | else |
14284 | ok=yes | |
14285 | case " ${configdirs} " in | |
14286 | *" gcc "*) ;; | |
14287 | *) ok=no ;; | |
14288 | esac | |
14289 | case ,${enable_languages}, in | |
14290 | *,fortran,*) ;; | |
14291 | *) ok=no ;; | |
14292 | esac | |
14293 | if test $ok = yes; then | |
14294 | # An in-tree tool is available and we can use it | |
14295 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14297 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14298 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14299 | # We already found the complete path | |
b8025f34 | 14300 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14302 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14303 | elif test "x$target" = "x$host"; then |
14304 | # We can use an host tool | |
14305 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14307 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14308 | else |
14309 | # We need a cross tool | |
81ecdfbb RW |
14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14311 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14312 | fi |
14313 | fi | |
4b900473 | 14314 | |
e552509b ILT |
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14316 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14317 | if test "x${build}" != "x${host}" ; then | |
14318 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14319 | # We already found the complete path | |
14320 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14322 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14323 | else | |
14324 | # Canadian cross, just use what we found | |
14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14326 | $as_echo "pre-installed" >&6; } | |
14327 | fi | |
14328 | else | |
14329 | ok=yes | |
14330 | case " ${configdirs} " in | |
14331 | *" gcc "*) ;; | |
14332 | *) ok=no ;; | |
14333 | esac | |
14334 | case ,${enable_languages}, in | |
14335 | *,go,*) ;; | |
14336 | *) ok=no ;; | |
14337 | esac | |
14338 | if test $ok = yes; then | |
14339 | # An in-tree tool is available and we can use it | |
14340 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14342 | $as_echo "just compiled" >&6; } | |
14343 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14344 | # We already found the complete path | |
14345 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14347 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14348 | elif test "x$target" = "x$host"; then | |
14349 | # We can use an host tool | |
14350 | GOC_FOR_TARGET='$(GOC)' | |
14351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14352 | $as_echo "host tool" >&6; } | |
14353 | else | |
14354 | # We need a cross tool | |
14355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14356 | $as_echo "pre-installed" >&6; } | |
14357 | fi | |
14358 | fi | |
14359 | ||
81ecdfbb RW |
14360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14361 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14362 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14363 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14364 | # We already found the complete path | |
b8025f34 | 14365 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14367 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14368 | else |
14369 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14371 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14372 | fi |
be01d343 PB |
14373 | else |
14374 | ok=yes | |
14375 | case " ${configdirs} " in | |
14376 | *" ld "*) ;; | |
14377 | *) ok=no ;; | |
14378 | esac | |
c6b750e1 | 14379 | |
be01d343 PB |
14380 | if test $ok = yes; then |
14381 | # An in-tree tool is available and we can use it | |
14382 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14384 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14385 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14386 | # We already found the complete path | |
b8025f34 | 14387 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14389 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14390 | elif test "x$target" = "x$host"; then |
14391 | # We can use an host tool | |
14392 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14394 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14395 | else |
14396 | # We need a cross tool | |
81ecdfbb RW |
14397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14398 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14399 | fi |
14400 | fi | |
4b900473 | 14401 | |
81ecdfbb RW |
14402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14403 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14404 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14405 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14406 | # We already found the complete path | |
b8025f34 | 14407 | ac_dir=`dirname $LIPO_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; } | |
2429c060 PB |
14410 | else |
14411 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14413 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14414 | fi |
be01d343 | 14415 | else |
2429c060 PB |
14416 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14417 | # We already found the complete path | |
b8025f34 | 14418 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14420 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14421 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14422 | # We can use an host tool |
14423 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14425 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14426 | else |
14427 | # We need a cross tool | |
81ecdfbb RW |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14429 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14430 | fi |
14431 | fi | |
4b900473 | 14432 | |
81ecdfbb RW |
14433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14434 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14435 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14436 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14437 | # We already found the complete path | |
b8025f34 | 14438 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14440 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14441 | else |
14442 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14444 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14445 | fi |
be01d343 PB |
14446 | else |
14447 | ok=yes | |
14448 | case " ${configdirs} " in | |
14449 | *" binutils "*) ;; | |
14450 | *) ok=no ;; | |
14451 | esac | |
c6b750e1 | 14452 | |
be01d343 PB |
14453 | if test $ok = yes; then |
14454 | # An in-tree tool is available and we can use it | |
14455 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14457 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14458 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14459 | # We already found the complete path | |
b8025f34 | 14460 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14462 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14463 | elif test "x$target" = "x$host"; then |
14464 | # We can use an host tool | |
14465 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14467 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14468 | else |
14469 | # We need a cross tool | |
81ecdfbb RW |
14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14471 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14472 | fi |
14473 | fi | |
4b900473 | 14474 | |
6b91c541 AP |
14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14476 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14477 | if test "x${build}" != "x${host}" ; then | |
14478 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14479 | # We already found the complete path | |
14480 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14482 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14483 | else | |
14484 | # Canadian cross, just use what we found | |
14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14486 | $as_echo "pre-installed" >&6; } | |
14487 | fi | |
14488 | else | |
14489 | ok=yes | |
14490 | case " ${configdirs} " in | |
14491 | *" binutils "*) ;; | |
14492 | *) ok=no ;; | |
14493 | esac | |
14494 | ||
14495 | if test $ok = yes; then | |
14496 | # An in-tree tool is available and we can use it | |
14497 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14499 | $as_echo "just compiled" >&6; } | |
14500 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14501 | # We already found the complete path | |
14502 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14504 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14505 | elif test "x$target" = "x$host"; then | |
14506 | # We can use an host tool | |
1b6c0831 | 14507 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14509 | $as_echo "host tool" >&6; } | |
14510 | else | |
14511 | # We need a cross tool | |
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14513 | $as_echo "pre-installed" >&6; } | |
14514 | fi | |
14515 | fi | |
14516 | ||
81ecdfbb RW |
14517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14518 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14519 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14520 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14521 | # We already found the complete path | |
b8025f34 | 14522 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14524 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14525 | else |
14526 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14528 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14529 | fi |
be01d343 PB |
14530 | else |
14531 | ok=yes | |
14532 | case " ${configdirs} " in | |
14533 | *" binutils "*) ;; | |
14534 | *) ok=no ;; | |
14535 | esac | |
c6b750e1 | 14536 | |
be01d343 PB |
14537 | if test $ok = yes; then |
14538 | # An in-tree tool is available and we can use it | |
14539 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14541 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14542 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14543 | # We already found the complete path | |
b8025f34 | 14544 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14546 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14547 | elif test "x$target" = "x$host"; then |
14548 | # We can use an host tool | |
14549 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14551 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14552 | else |
14553 | # We need a cross tool | |
81ecdfbb RW |
14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14555 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14556 | fi |
14557 | fi | |
4b900473 | 14558 | |
81ecdfbb RW |
14559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14560 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14561 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14562 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14563 | # We already found the complete path | |
b8025f34 | 14564 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14566 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14567 | else |
14568 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14570 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14571 | fi |
be01d343 PB |
14572 | else |
14573 | ok=yes | |
14574 | case " ${configdirs} " in | |
14575 | *" binutils "*) ;; | |
14576 | *) ok=no ;; | |
14577 | esac | |
c6b750e1 | 14578 | |
be01d343 PB |
14579 | if test $ok = yes; then |
14580 | # An in-tree tool is available and we can use it | |
14581 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14583 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14584 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14585 | # We already found the complete path | |
b8025f34 | 14586 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14588 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14589 | elif test "x$target" = "x$host"; then |
14590 | # We can use an host tool | |
14591 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14593 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14594 | else |
14595 | # We need a cross tool | |
81ecdfbb RW |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14597 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14598 | fi |
14599 | fi | |
4b900473 | 14600 | |
b121d7d4 DD |
14601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14602 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14603 | if test "x${build}" != "x${host}" ; then | |
14604 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14605 | # We already found the complete path | |
14606 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14608 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14609 | else | |
14610 | # Canadian cross, just use what we found | |
14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14612 | $as_echo "pre-installed" >&6; } | |
14613 | fi | |
14614 | else | |
14615 | ok=yes | |
14616 | case " ${configdirs} " in | |
14617 | *" binutils "*) ;; | |
14618 | *) ok=no ;; | |
14619 | esac | |
14620 | ||
14621 | if test $ok = yes; then | |
14622 | # An in-tree tool is available and we can use it | |
14623 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14625 | $as_echo "just compiled" >&6; } | |
14626 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14627 | # We already found the complete path | |
14628 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14630 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14631 | elif test "x$target" = "x$host"; then | |
14632 | # We can use an host tool | |
14633 | READELF_FOR_TARGET='$(READELF)' | |
14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14635 | $as_echo "host tool" >&6; } | |
14636 | else | |
14637 | # We need a cross tool | |
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14639 | $as_echo "pre-installed" >&6; } | |
14640 | fi | |
14641 | fi | |
14642 | ||
81ecdfbb RW |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14644 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14645 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14646 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14647 | # We already found the complete path | |
b8025f34 | 14648 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14650 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14651 | else |
14652 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14654 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14655 | fi |
be01d343 PB |
14656 | else |
14657 | ok=yes | |
14658 | case " ${configdirs} " in | |
14659 | *" binutils "*) ;; | |
14660 | *) ok=no ;; | |
14661 | esac | |
c6b750e1 | 14662 | |
be01d343 PB |
14663 | if test $ok = yes; then |
14664 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14665 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14667 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14668 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14669 | # We already found the complete path | |
b8025f34 | 14670 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14672 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14673 | elif test "x$target" = "x$host"; then |
14674 | # We can use an host tool | |
14675 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14677 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14678 | else |
14679 | # We need a cross tool | |
81ecdfbb RW |
14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14681 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14682 | fi |
14683 | fi | |
4b900473 | 14684 | |
81ecdfbb RW |
14685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14686 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14687 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14688 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14689 | # We already found the complete path | |
b8025f34 | 14690 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14692 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14693 | else |
14694 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14696 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14697 | fi |
be01d343 PB |
14698 | else |
14699 | ok=yes | |
14700 | case " ${configdirs} " in | |
14701 | *" binutils "*) ;; | |
14702 | *) ok=no ;; | |
14703 | esac | |
c6b750e1 | 14704 | |
be01d343 PB |
14705 | if test $ok = yes; then |
14706 | # An in-tree tool is available and we can use it | |
14707 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14709 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14710 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14711 | # We already found the complete path | |
b8025f34 | 14712 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14714 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14715 | elif test "x$target" = "x$host"; then |
14716 | # We can use an host tool | |
14717 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14719 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14720 | else |
14721 | # We need a cross tool | |
81ecdfbb RW |
14722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14723 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14724 | fi |
a0da8069 | 14725 | fi |
54752a6b | 14726 | |
81ecdfbb RW |
14727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14728 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14729 | if test "x${build}" != "x${host}" ; then |
14730 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14731 | # We already found the complete path | |
14732 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14734 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14735 | else |
14736 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14738 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14739 | fi |
14740 | else | |
14741 | ok=yes | |
14742 | case " ${configdirs} " in | |
14743 | *" binutils "*) ;; | |
14744 | *) ok=no ;; | |
14745 | esac | |
14746 | ||
14747 | if test $ok = yes; then | |
14748 | # An in-tree tool is available and we can use it | |
14749 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14751 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14752 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14753 | # We already found the complete path | |
14754 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14756 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14757 | elif test "x$target" = "x$host"; then |
14758 | # We can use an host tool | |
14759 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14761 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14762 | else |
14763 | # We need a cross tool | |
81ecdfbb RW |
14764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14765 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14766 | fi |
14767 | fi | |
14768 | ||
54752a6b NN |
14769 | |
14770 | ||
be01d343 | 14771 | |
4b900473 | 14772 | |
a0da8069 NN |
14773 | # Certain tools may need extra flags. |
14774 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14775 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14776 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14777 | ||
be01d343 PB |
14778 | # When building target libraries, except in a Canadian cross, we use |
14779 | # the same toolchain as the compiler we just built. | |
14780 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14781 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14782 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14783 | if test $host = $build; then | |
14784 | case " $configdirs " in | |
14785 | *" gcc "*) | |
14786 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14787 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14788 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14789 | ;; | |
14790 | esac | |
14791 | fi | |
14792 | ||
14793 | ||
14794 | ||
14795 | ||
14796 | ||
81ecdfbb RW |
14797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14798 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14799 | # Check whether --enable-maintainer-mode was given. | |
14800 | if test "${enable_maintainer_mode+set}" = set; then : | |
14801 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14802 | else |
14803 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14804 | fi |
14805 | ||
14806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14807 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14808 | |
14809 | ||
14810 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14811 | MAINTAINER_MODE_TRUE= | |
14812 | MAINTAINER_MODE_FALSE='#' | |
14813 | else | |
14814 | MAINTAINER_MODE_TRUE='#' | |
14815 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14816 | fi |
3d5e36ae AO |
14817 | MAINT=$MAINTAINER_MODE_TRUE |
14818 | ||
1d39f329 NN |
14819 | # --------------------- |
14820 | # GCC bootstrap support | |
14821 | # --------------------- | |
14822 | ||
14823 | # Stage specific cflags for build. | |
14824 | stage1_cflags="-g" | |
14825 | case $build in | |
14826 | vax-*-*) | |
14827 | case ${GCC} in | |
14828 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14829 | *) stage1_cflags="-g -J" ;; | |
14830 | esac ;; | |
1d39f329 NN |
14831 | esac |
14832 | ||
1d89b610 | 14833 | |
1d39f329 | 14834 | |
8a0d8a5c | 14835 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14836 | # Check whether --enable-stage1-checking was given. |
14837 | if test "${enable_stage1_checking+set}" = set; then : | |
14838 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14839 | else |
5566c1fa | 14840 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
14841 | # For --disable-checking or implicit --enable-checking=release, avoid |
14842 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14843 | # bootstraps. See PR62077. | |
ce6c656d L |
14844 | case $BUILD_CONFIG in |
14845 | *lto*) | |
05a13254 NC |
14846 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14847 | *) | |
14848 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 14849 | esac |
05a13254 NC |
14850 | if test "x$enable_checking" = x && \ |
14851 | test -d ${srcdir}/gcc && \ | |
14852 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14853 | stage1_checking=--enable-checking=yes,types,extra | |
14854 | fi | |
8a0d8a5c | 14855 | else |
5566c1fa | 14856 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14857 | fi |
81ecdfbb | 14858 | fi |
8a0d8a5c PB |
14859 | |
14860 | ||
c6b750e1 | 14861 | |
81ecdfbb RW |
14862 | # Enable -Werror in bootstrap stage2 and later. |
14863 | # Check whether --enable-werror was given. | |
14864 | if test "${enable_werror+set}" = set; then : | |
14865 | enableval=$enable_werror; | |
1a6f2dc7 NN |
14866 | case ${enable_werror} in |
14867 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14868 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14869 | esac |
14870 | ||
82033c9b | 14871 | else |
82033c9b | 14872 | |
bf41f30d NC |
14873 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
14874 | case $BUILD_CONFIG in | |
14875 | bootstrap-debug) | |
14876 | stage2_werror_flag="--enable-werror-always" ;; | |
14877 | "") | |
14878 | stage2_werror_flag="--enable-werror-always" ;; | |
14879 | esac | |
14880 | fi | |
82033c9b | 14881 | |
bf41f30d | 14882 | fi |
82033c9b | 14883 | |
1b6c0831 | 14884 | |
1b6c0831 | 14885 | |
1b6c0831 | 14886 | |
e8a5fa9c RW |
14887 | # Specify what files to not compare during bootstrap. |
14888 | ||
14889 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14890 | case "$target" in | |
14891 | hppa*64*-*-hpux*) ;; | |
bf41f30d | 14892 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
1488e230 | 14893 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14894 | esac |
14895 | ||
14896 | ||
81ecdfbb RW |
14897 | ac_config_files="$ac_config_files Makefile" |
14898 | ||
c6b750e1 | 14899 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14900 | # This file is a shell script that caches the results of configure |
14901 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14902 | # scripts and configure runs, see configure's option --config-cache. |
14903 | # It is not useful on other systems. If it contains results you don't | |
14904 | # want to keep, you may remove or edit it. | |
a0da8069 | 14905 | # |
c6b750e1 DJ |
14906 | # config.status only pays attention to the cache file if you give it |
14907 | # the --recheck option to rerun configure. | |
a0da8069 | 14908 | # |
c6b750e1 DJ |
14909 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14910 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14911 | # following values. | |
14912 | ||
14913 | _ACEOF | |
14914 | ||
a0da8069 NN |
14915 | # The following way of writing the cache mishandles newlines in values, |
14916 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14917 | # So, we kill variables containing newlines. |
a0da8069 NN |
14918 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14919 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14920 | ( |
14921 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14922 | eval ac_val=\$$ac_var | |
14923 | case $ac_val in #( | |
14924 | *${as_nl}*) | |
14925 | case $ac_var in #( | |
14926 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14927 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14928 | esac | |
14929 | case $ac_var in #( | |
14930 | _ | IFS | as_nl) ;; #( | |
14931 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14932 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14933 | esac ;; | |
14934 | esac | |
14935 | done | |
14936 | ||
c6b750e1 | 14937 | (set) 2>&1 | |
81ecdfbb RW |
14938 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14939 | *${as_nl}ac_space=\ *) | |
14940 | # `set' does not quote correctly, so add quotes: double-quote | |
14941 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14942 | sed -n \ |
14943 | "s/'/'\\\\''/g; | |
14944 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14945 | ;; #( |
c6b750e1 DJ |
14946 | *) |
14947 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14948 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14949 | ;; |
81ecdfbb RW |
14950 | esac | |
14951 | sort | |
14952 | ) | | |
c6b750e1 | 14953 | sed ' |
81ecdfbb | 14954 | /^ac_cv_env_/b end |
c6b750e1 | 14955 | t clear |
81ecdfbb | 14956 | :clear |
c6b750e1 DJ |
14957 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14958 | t end | |
81ecdfbb RW |
14959 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14960 | :end' >>confcache | |
14961 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14962 | if test -w "$cache_file"; then | |
d0ac1c44 | 14963 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14964 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14965 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14966 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14967 | cat confcache >"$cache_file" | |
14968 | else | |
14969 | case $cache_file in #( | |
14970 | */* | ?:*) | |
14971 | mv -f confcache "$cache_file"$$ && | |
14972 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14973 | *) | |
14974 | mv -f confcache "$cache_file" ;; | |
14975 | esac | |
14976 | fi | |
14977 | fi | |
a0da8069 | 14978 | else |
81ecdfbb RW |
14979 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14980 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14981 | fi |
852e5f18 | 14982 | fi |
a0da8069 | 14983 | rm -f confcache |
852e5f18 | 14984 | |
a0da8069 NN |
14985 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14986 | # Let make expand exec_prefix. | |
14987 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14988 | |
a0da8069 NN |
14989 | # Transform confdefs.h into DEFS. |
14990 | # Protect against shell expansion while executing Makefile rules. | |
14991 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14992 | # |
14993 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14994 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14995 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14996 | ac_script=' |
14997 | :mline | |
14998 | /\\$/{ | |
14999 | N | |
15000 | s,\\\n,, | |
15001 | b mline | |
15002 | } | |
c6b750e1 | 15003 | t clear |
81ecdfbb RW |
15004 | :clear |
15005 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 15006 | t quote |
81ecdfbb | 15007 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 15008 | t quote |
81ecdfbb RW |
15009 | b any |
15010 | :quote | |
15011 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15012 | s/\[/\\&/g | |
15013 | s/\]/\\&/g | |
15014 | s/\$/$$/g | |
15015 | H | |
15016 | :any | |
15017 | ${ | |
15018 | g | |
15019 | s/^\n// | |
15020 | s/\n/ /g | |
15021 | p | |
15022 | } | |
15023 | ' | |
15024 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
15025 | |
15026 | ||
15027 | ac_libobjs= | |
15028 | ac_ltlibobjs= | |
d0ac1c44 | 15029 | U= |
c6b750e1 DJ |
15030 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15031 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
15032 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15033 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15034 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15035 | # will be set to the directory where LIBOBJS objects are built. | |
15036 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15037 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
15038 | done |
15039 | LIBOBJS=$ac_libobjs | |
852e5f18 | 15040 | |
c6b750e1 | 15041 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 15042 | |
cac3d6c4 | 15043 | |
c6b750e1 | 15044 | |
d0ac1c44 | 15045 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 15046 | ac_write_fail=0 |
c6b750e1 DJ |
15047 | ac_clean_files_save=$ac_clean_files |
15048 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
15049 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15050 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15051 | as_write_fail=0 | |
15052 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
15053 | #! $SHELL |
15054 | # Generated by $as_me. | |
a0da8069 | 15055 | # Run this file to recreate the current configuration. |
a0da8069 | 15056 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 15057 | # configure, is in config.log if it exists. |
376a0e54 | 15058 | |
c6b750e1 DJ |
15059 | debug=false |
15060 | ac_cs_recheck=false | |
15061 | ac_cs_silent=false | |
c6b750e1 | 15062 | |
81ecdfbb RW |
15063 | SHELL=\${CONFIG_SHELL-$SHELL} |
15064 | export SHELL | |
15065 | _ASEOF | |
15066 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15067 | ## -------------------- ## | |
15068 | ## M4sh Initialization. ## | |
15069 | ## -------------------- ## | |
15070 | ||
15071 | # Be more Bourne compatible | |
15072 | DUALCASE=1; export DUALCASE # for MKS sh | |
15073 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
15074 | emulate sh |
15075 | NULLCMD=: | |
81ecdfbb | 15076 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
15077 | # is contrary to our usage. Disable this feature. |
15078 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
15079 | setopt NO_GLOB_SUBST |
15080 | else | |
15081 | case `(set -o) 2>/dev/null` in #( | |
15082 | *posix*) : | |
15083 | set -o posix ;; #( | |
15084 | *) : | |
15085 | ;; | |
15086 | esac | |
c6b750e1 | 15087 | fi |
c6b750e1 | 15088 | |
81ecdfbb RW |
15089 | |
15090 | as_nl=' | |
15091 | ' | |
15092 | export as_nl | |
15093 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15094 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15095 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15096 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15097 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15098 | # but without wasting forks for bash or zsh. | |
15099 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15100 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15101 | as_echo='print -r --' | |
15102 | as_echo_n='print -rn --' | |
15103 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15104 | as_echo='printf %s\n' | |
15105 | as_echo_n='printf %s' | |
15106 | else | |
15107 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15108 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15109 | as_echo_n='/usr/ucb/echo -n' | |
15110 | else | |
15111 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15112 | as_echo_n_body='eval | |
15113 | arg=$1; | |
15114 | case $arg in #( | |
15115 | *"$as_nl"*) | |
15116 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15117 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15118 | esac; | |
15119 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15120 | ' | |
15121 | export as_echo_n_body | |
15122 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15123 | fi | |
15124 | export as_echo_body | |
15125 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
15126 | fi |
15127 | ||
81ecdfbb RW |
15128 | # The user is always right. |
15129 | if test "${PATH_SEPARATOR+set}" != set; then | |
15130 | PATH_SEPARATOR=: | |
15131 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15132 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15133 | PATH_SEPARATOR=';' | |
15134 | } | |
15135 | fi | |
15136 | ||
15137 | ||
15138 | # IFS | |
15139 | # We need space, tab and new line, in precisely that order. Quoting is | |
15140 | # there to prevent editors from complaining about space-tab. | |
15141 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15142 | # splitting by setting IFS to empty value.) | |
15143 | IFS=" "" $as_nl" | |
15144 | ||
15145 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 15146 | as_myself= |
81ecdfbb RW |
15147 | case $0 in #(( |
15148 | *[\\/]* ) as_myself=$0 ;; | |
15149 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15150 | for as_dir in $PATH | |
15151 | do | |
15152 | IFS=$as_save_IFS | |
15153 | test -z "$as_dir" && as_dir=. | |
15154 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15155 | done | |
15156 | IFS=$as_save_IFS | |
15157 | ||
15158 | ;; | |
15159 | esac | |
15160 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15161 | # in which case we are not to be found in the path. | |
15162 | if test "x$as_myself" = x; then | |
15163 | as_myself=$0 | |
15164 | fi | |
15165 | if test ! -f "$as_myself"; then | |
15166 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15167 | exit 1 | |
15168 | fi | |
c6b750e1 | 15169 | |
81ecdfbb RW |
15170 | # Unset variables that we do not need and which cause bugs (e.g. in |
15171 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15172 | # suppresses any "Segmentation fault" message there. '((' could | |
15173 | # trigger a bug in pdksh 5.2.14. | |
15174 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15175 | do eval test x\${$as_var+set} = xset \ | |
15176 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15177 | done | |
c6b750e1 DJ |
15178 | PS1='$ ' |
15179 | PS2='> ' | |
15180 | PS4='+ ' | |
15181 | ||
15182 | # NLS nuisances. | |
81ecdfbb RW |
15183 | LC_ALL=C |
15184 | export LC_ALL | |
15185 | LANGUAGE=C | |
15186 | export LANGUAGE | |
15187 | ||
15188 | # CDPATH. | |
15189 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15190 | ||
15191 | ||
d0ac1c44 SM |
15192 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15193 | # ---------------------------------------- | |
81ecdfbb RW |
15194 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15195 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 15196 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
15197 | as_fn_error () |
15198 | { | |
d0ac1c44 SM |
15199 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15200 | if test "$4"; then | |
15201 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15202 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 15203 | fi |
d0ac1c44 | 15204 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
15205 | as_fn_exit $as_status |
15206 | } # as_fn_error | |
15207 | ||
15208 | ||
15209 | # as_fn_set_status STATUS | |
15210 | # ----------------------- | |
15211 | # Set $? to STATUS, without forking. | |
15212 | as_fn_set_status () | |
15213 | { | |
15214 | return $1 | |
15215 | } # as_fn_set_status | |
15216 | ||
15217 | # as_fn_exit STATUS | |
15218 | # ----------------- | |
15219 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15220 | as_fn_exit () | |
15221 | { | |
15222 | set +e | |
15223 | as_fn_set_status $1 | |
15224 | exit $1 | |
15225 | } # as_fn_exit | |
15226 | ||
15227 | # as_fn_unset VAR | |
15228 | # --------------- | |
15229 | # Portably unset VAR. | |
15230 | as_fn_unset () | |
15231 | { | |
15232 | { eval $1=; unset $1;} | |
15233 | } | |
15234 | as_unset=as_fn_unset | |
15235 | # as_fn_append VAR VALUE | |
15236 | # ---------------------- | |
15237 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15238 | # advantage of any shell optimizations that allow amortized linear growth over | |
15239 | # repeated appends, instead of the typical quadratic growth present in naive | |
15240 | # implementations. | |
15241 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15242 | eval 'as_fn_append () | |
15243 | { | |
15244 | eval $1+=\$2 | |
15245 | }' | |
15246 | else | |
15247 | as_fn_append () | |
15248 | { | |
15249 | eval $1=\$$1\$2 | |
15250 | } | |
15251 | fi # as_fn_append | |
15252 | ||
15253 | # as_fn_arith ARG... | |
15254 | # ------------------ | |
15255 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15256 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15257 | # must be portable across $(()) and expr. | |
15258 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15259 | eval 'as_fn_arith () | |
15260 | { | |
15261 | as_val=$(( $* )) | |
15262 | }' | |
15263 | else | |
15264 | as_fn_arith () | |
15265 | { | |
15266 | as_val=`expr "$@" || test $? -eq 1` | |
15267 | } | |
15268 | fi # as_fn_arith | |
15269 | ||
c6b750e1 | 15270 | |
81ecdfbb RW |
15271 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15272 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15273 | as_expr=expr |
15274 | else | |
15275 | as_expr=false | |
15276 | fi | |
15277 | ||
81ecdfbb | 15278 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15279 | as_basename=basename |
15280 | else | |
15281 | as_basename=false | |
15282 | fi | |
15283 | ||
81ecdfbb RW |
15284 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15285 | as_dirname=dirname | |
15286 | else | |
15287 | as_dirname=false | |
15288 | fi | |
c6b750e1 | 15289 | |
81ecdfbb | 15290 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15291 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15292 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15293 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15294 | $as_echo X/"$0" | | |
15295 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15296 | s//\1/ | |
15297 | q | |
15298 | } | |
15299 | /^X\/\(\/\/\)$/{ | |
15300 | s//\1/ | |
15301 | q | |
15302 | } | |
15303 | /^X\/\(\/\).*/{ | |
15304 | s//\1/ | |
15305 | q | |
15306 | } | |
15307 | s/.*/./; q'` | |
c6b750e1 | 15308 | |
c6b750e1 DJ |
15309 | # Avoid depending upon Character Ranges. |
15310 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15311 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15312 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15313 | as_cr_digits='0123456789' | |
15314 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15315 | ||
81ecdfbb RW |
15316 | ECHO_C= ECHO_N= ECHO_T= |
15317 | case `echo -n x` in #((((( | |
15318 | -n*) | |
15319 | case `echo 'xy\c'` in | |
15320 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15321 | xy) ECHO_C='\c';; | |
15322 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15323 | ECHO_T=' ';; | |
15324 | esac;; | |
15325 | *) | |
15326 | ECHO_N='-n';; | |
c6b750e1 DJ |
15327 | esac |
15328 | ||
81ecdfbb RW |
15329 | rm -f conf$$ conf$$.exe conf$$.file |
15330 | if test -d conf$$.dir; then | |
15331 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15332 | else |
81ecdfbb RW |
15333 | rm -f conf$$.dir |
15334 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15335 | fi |
81ecdfbb RW |
15336 | if (echo >conf$$.file) 2>/dev/null; then |
15337 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15338 | as_ln_s='ln -s' |
81ecdfbb RW |
15339 | # ... but there are two gotchas: |
15340 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15341 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15342 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15343 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15344 | as_ln_s='cp -pR' |
81ecdfbb RW |
15345 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15346 | as_ln_s=ln | |
15347 | else | |
d0ac1c44 | 15348 | as_ln_s='cp -pR' |
c6b750e1 | 15349 | fi |
c6b750e1 | 15350 | else |
d0ac1c44 | 15351 | as_ln_s='cp -pR' |
c6b750e1 | 15352 | fi |
81ecdfbb RW |
15353 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15354 | rmdir conf$$.dir 2>/dev/null | |
15355 | ||
15356 | ||
15357 | # as_fn_mkdir_p | |
15358 | # ------------- | |
15359 | # Create "$as_dir" as a directory, including parents if necessary. | |
15360 | as_fn_mkdir_p () | |
15361 | { | |
15362 | ||
15363 | case $as_dir in #( | |
15364 | -*) as_dir=./$as_dir;; | |
15365 | esac | |
15366 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15367 | as_dirs= | |
15368 | while :; do | |
15369 | case $as_dir in #( | |
15370 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15371 | *) as_qdir=$as_dir;; | |
15372 | esac | |
15373 | as_dirs="'$as_qdir' $as_dirs" | |
15374 | as_dir=`$as_dirname -- "$as_dir" || | |
15375 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15376 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15377 | X"$as_dir" : 'X\(//\)$' \| \ | |
15378 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15379 | $as_echo X"$as_dir" | | |
15380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15381 | s//\1/ | |
15382 | q | |
15383 | } | |
15384 | /^X\(\/\/\)[^/].*/{ | |
15385 | s//\1/ | |
15386 | q | |
15387 | } | |
15388 | /^X\(\/\/\)$/{ | |
15389 | s//\1/ | |
15390 | q | |
15391 | } | |
15392 | /^X\(\/\).*/{ | |
15393 | s//\1/ | |
15394 | q | |
15395 | } | |
15396 | s/.*/./; q'` | |
15397 | test -d "$as_dir" && break | |
15398 | done | |
15399 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15400 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 15401 | |
c6b750e1 | 15402 | |
81ecdfbb | 15403 | } # as_fn_mkdir_p |
c6b750e1 | 15404 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15405 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15406 | else |
15407 | test -d ./-p && rmdir ./-p | |
15408 | as_mkdir_p=false | |
15409 | fi | |
15410 | ||
d0ac1c44 SM |
15411 | |
15412 | # as_fn_executable_p FILE | |
15413 | # ----------------------- | |
15414 | # Test if FILE is an executable regular file. | |
15415 | as_fn_executable_p () | |
15416 | { | |
15417 | test -f "$1" && test -x "$1" | |
15418 | } # as_fn_executable_p | |
15419 | as_test_x='test -x' | |
15420 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
15421 | |
15422 | # Sed expression to map a string onto a valid CPP name. | |
15423 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15424 | ||
15425 | # Sed expression to map a string onto a valid variable name. | |
15426 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15427 | ||
15428 | ||
c6b750e1 | 15429 | exec 6>&1 |
81ecdfbb RW |
15430 | ## ----------------------------------- ## |
15431 | ## Main body of $CONFIG_STATUS script. ## | |
15432 | ## ----------------------------------- ## | |
15433 | _ASEOF | |
15434 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15435 | ||
15436 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15437 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15438 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15439 | # values after options handling. |
15440 | ac_log=" | |
c6b750e1 | 15441 | This file was extended by $as_me, which was |
d0ac1c44 | 15442 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
15443 | |
15444 | CONFIG_FILES = $CONFIG_FILES | |
15445 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15446 | CONFIG_LINKS = $CONFIG_LINKS | |
15447 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15448 | $ $0 $@ | |
15449 | ||
81ecdfbb RW |
15450 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15451 | " | |
15452 | ||
c6b750e1 DJ |
15453 | _ACEOF |
15454 | ||
81ecdfbb RW |
15455 | case $ac_config_files in *" |
15456 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15457 | esac | |
c6b750e1 | 15458 | |
c6b750e1 | 15459 | |
c6b750e1 | 15460 | |
81ecdfbb RW |
15461 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15462 | # Files that config.status was made for. | |
15463 | config_files="$ac_config_files" | |
c6b750e1 | 15464 | |
81ecdfbb | 15465 | _ACEOF |
c6b750e1 | 15466 | |
81ecdfbb | 15467 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15468 | ac_cs_usage="\ |
81ecdfbb RW |
15469 | \`$as_me' instantiates files and other configuration actions |
15470 | from templates according to the current configuration. Unless the files | |
15471 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15472 | |
81ecdfbb | 15473 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15474 | |
15475 | -h, --help print this help, then exit | |
81ecdfbb | 15476 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15477 | --config print configuration, then exit |
81ecdfbb RW |
15478 | -q, --quiet, --silent |
15479 | do not print progress messages | |
c6b750e1 DJ |
15480 | -d, --debug don't remove temporary files |
15481 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15482 | --file=FILE[:TEMPLATE] |
15483 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15484 | |
15485 | Configuration files: | |
15486 | $config_files | |
15487 | ||
81ecdfbb | 15488 | Report bugs to the package provider." |
c6b750e1 | 15489 | |
81ecdfbb RW |
15490 | _ACEOF |
15491 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15492 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
15493 | ac_cs_version="\\ |
15494 | config.status | |
d0ac1c44 SM |
15495 | configured by $0, generated by GNU Autoconf 2.69, |
15496 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 15497 | |
d0ac1c44 | 15498 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
15499 | This config.status script is free software; the Free Software Foundation |
15500 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15501 | |
15502 | ac_pwd='$ac_pwd' | |
15503 | srcdir='$srcdir' | |
15504 | INSTALL='$INSTALL' | |
8e957354 | 15505 | AWK='$AWK' |
81ecdfbb | 15506 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15507 | _ACEOF |
15508 | ||
81ecdfbb RW |
15509 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15510 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15511 | ac_need_defaults=: |
15512 | while test $# != 0 | |
a0da8069 | 15513 | do |
c6b750e1 | 15514 | case $1 in |
d0ac1c44 | 15515 | --*=?*) |
81ecdfbb RW |
15516 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15517 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15518 | ac_shift=: |
15519 | ;; | |
d0ac1c44 SM |
15520 | --*=) |
15521 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15522 | ac_optarg= | |
15523 | ac_shift=: | |
15524 | ;; | |
81ecdfbb | 15525 | *) |
c6b750e1 DJ |
15526 | ac_option=$1 |
15527 | ac_optarg=$2 | |
15528 | ac_shift=shift | |
15529 | ;; | |
c6b750e1 DJ |
15530 | esac |
15531 | ||
15532 | case $ac_option in | |
15533 | # Handling of the options. | |
a0da8069 | 15534 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15535 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15536 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15537 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
15538 | --config | --confi | --conf | --con | --co | --c ) |
15539 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 15540 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
15541 | debug=: ;; |
15542 | --file | --fil | --fi | --f ) | |
15543 | $ac_shift | |
81ecdfbb RW |
15544 | case $ac_optarg in |
15545 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 15546 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
15547 | esac |
15548 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15549 | ac_need_defaults=false;; |
81ecdfbb RW |
15550 | --he | --h | --help | --hel | -h ) |
15551 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15552 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15553 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15554 | ac_cs_silent=: ;; | |
15555 | ||
15556 | # This is an error. | |
d0ac1c44 | 15557 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 15558 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 15559 | |
81ecdfbb RW |
15560 | *) as_fn_append ac_config_targets " $1" |
15561 | ac_need_defaults=false ;; | |
c6b750e1 | 15562 | |
376a0e54 | 15563 | esac |
c6b750e1 | 15564 | shift |
376a0e54 CM |
15565 | done |
15566 | ||
c6b750e1 | 15567 | ac_configure_extra_args= |
376a0e54 | 15568 | |
c6b750e1 DJ |
15569 | if $ac_cs_silent; then |
15570 | exec 6>/dev/null | |
15571 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15572 | fi | |
376a0e54 | 15573 | |
c6b750e1 | 15574 | _ACEOF |
81ecdfbb | 15575 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15576 | if \$ac_cs_recheck; then |
d0ac1c44 | 15577 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
15578 | shift |
15579 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15580 | CONFIG_SHELL='$SHELL' | |
15581 | export CONFIG_SHELL | |
15582 | exec "\$@" | |
c6b750e1 DJ |
15583 | fi |
15584 | ||
15585 | _ACEOF | |
81ecdfbb RW |
15586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15587 | exec 5>>config.log | |
15588 | { | |
15589 | echo | |
15590 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15591 | ## Running $as_me. ## | |
15592 | _ASBOX | |
15593 | $as_echo "$ac_log" | |
15594 | } >&5 | |
c6b750e1 | 15595 | |
81ecdfbb RW |
15596 | _ACEOF |
15597 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15598 | # |
15599 | # INIT-COMMANDS | |
15600 | # | |
15601 | extrasub_build="$extrasub_build" | |
15602 | extrasub_host="$extrasub_host" | |
15603 | extrasub_target="$extrasub_target" | |
15604 | ||
81ecdfbb | 15605 | _ACEOF |
c6b750e1 | 15606 | |
81ecdfbb | 15607 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15608 | |
81ecdfbb | 15609 | # Handling of arguments. |
c6b750e1 DJ |
15610 | for ac_config_target in $ac_config_targets |
15611 | do | |
81ecdfbb RW |
15612 | case $ac_config_target in |
15613 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15614 | ||
d0ac1c44 | 15615 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
15616 | esac |
15617 | done | |
15618 | ||
81ecdfbb | 15619 | |
c6b750e1 DJ |
15620 | # If the user did not use the arguments to specify the items to instantiate, |
15621 | # then the envvar interface is used. Set only those that are not. | |
15622 | # We use the long form for the default assignment because of an extremely | |
15623 | # bizarre bug on SunOS 4.1.3. | |
15624 | if $ac_need_defaults; then | |
15625 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15626 | fi | |
15627 | ||
15628 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15629 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15630 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15631 | # Hook for its removal unless debugging. |
15632 | # Note that there is a small window in which the directory will not be cleaned: | |
15633 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15634 | $debug || |
15635 | { | |
d0ac1c44 | 15636 | tmp= ac_tmp= |
81ecdfbb | 15637 | trap 'exit_status=$? |
d0ac1c44 SM |
15638 | : "${ac_tmp:=$tmp}" |
15639 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15640 | ' 0 |
15641 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15642 | } |
c6b750e1 DJ |
15643 | # Create a (secure) tmp directory for tmp files. |
15644 | ||
15645 | { | |
81ecdfbb | 15646 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15647 | test -d "$tmp" |
c6b750e1 DJ |
15648 | } || |
15649 | { | |
81ecdfbb RW |
15650 | tmp=./conf$$-$RANDOM |
15651 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15652 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15653 | ac_tmp=$tmp | |
81ecdfbb RW |
15654 | |
15655 | # Set up the scripts for CONFIG_FILES section. | |
15656 | # No need to generate them if there are no CONFIG_FILES. | |
15657 | # This happens for instance with `./config.status config.h'. | |
15658 | if test -n "$CONFIG_FILES"; then | |
15659 | ||
15660 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15661 | ac_cs_awk_getline=: | |
15662 | ac_cs_awk_pipe_init= | |
15663 | ac_cs_awk_read_file=' | |
15664 | while ((getline aline < (F[key])) > 0) | |
15665 | print(aline) | |
15666 | close(F[key])' | |
15667 | ac_cs_awk_pipe_fini= | |
15668 | else | |
15669 | ac_cs_awk_getline=false | |
15670 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15671 | ac_cs_awk_read_file=' | |
15672 | print "|#_!!_#|" | |
15673 | print "cat " F[key] " &&" | |
15674 | '$ac_cs_awk_pipe_init | |
15675 | # The final `:' finishes the AND list. | |
15676 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15677 | fi | |
15678 | ac_cr=`echo X | tr X '\015'` | |
15679 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15680 | # But we know of no other shell where ac_cr would be empty at this | |
15681 | # point, so we can use a bashism as a fallback. | |
15682 | if test "x$ac_cr" = x; then | |
15683 | eval ac_cr=\$\'\\r\' | |
15684 | fi | |
15685 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15686 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15687 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15688 | else |
15689 | ac_cs_awk_cr=$ac_cr | |
15690 | fi | |
15691 | ||
d0ac1c44 | 15692 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15693 | _ACEOF |
15694 | ||
15695 | # Create commands to substitute file output variables. | |
c6b750e1 | 15696 | { |
81ecdfbb | 15697 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 15698 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
15699 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
15700 | echo "_ACAWK" && | |
15701 | echo "_ACEOF" | |
15702 | } >conf$$files.sh && | |
15703 | . ./conf$$files.sh || | |
d0ac1c44 | 15704 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 15705 | rm -f conf$$files.sh |
c6b750e1 | 15706 | |
81ecdfbb RW |
15707 | { |
15708 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15709 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15710 | echo "_ACEOF" | |
15711 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15712 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15713 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15714 | ac_delim='%!_!# ' |
15715 | for ac_last_try in false false false false false :; do | |
15716 | . ./conf$$subs.sh || | |
d0ac1c44 | 15717 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15718 | |
15719 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15720 | if test $ac_delim_n = $ac_delim_num; then | |
15721 | break | |
15722 | elif $ac_last_try; then | |
d0ac1c44 | 15723 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15724 | else |
15725 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15726 | fi | |
15727 | done | |
15728 | rm -f conf$$subs.sh | |
15729 | ||
15730 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15731 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 15732 | _ACEOF |
81ecdfbb RW |
15733 | sed -n ' |
15734 | h | |
15735 | s/^/S["/; s/!.*/"]=/ | |
15736 | p | |
15737 | g | |
15738 | s/^[^!]*!// | |
15739 | :repl | |
15740 | t repl | |
15741 | s/'"$ac_delim"'$// | |
15742 | t delim | |
15743 | :nl | |
15744 | h | |
d0ac1c44 | 15745 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15746 | t more1 |
15747 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15748 | p | |
15749 | n | |
15750 | b repl | |
15751 | :more1 | |
15752 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15753 | p | |
15754 | g | |
15755 | s/.\{148\}// | |
15756 | t nl | |
15757 | :delim | |
15758 | h | |
d0ac1c44 | 15759 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15760 | t more2 |
15761 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15762 | p | |
15763 | b | |
15764 | :more2 | |
15765 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15766 | p | |
15767 | g | |
15768 | s/.\{148\}// | |
15769 | t delim | |
15770 | ' <conf$$subs.awk | sed ' | |
15771 | /^[^""]/{ | |
15772 | N | |
15773 | s/\n// | |
15774 | } | |
15775 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15776 | rm -f conf$$subs.awk | |
15777 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15778 | _ACAWK | |
d0ac1c44 | 15779 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15780 | for (key in S) S_is_set[key] = 1 |
15781 | FS = "\a" | |
15782 | \$ac_cs_awk_pipe_init | |
15783 | } | |
15784 | { | |
15785 | line = $ 0 | |
15786 | nfields = split(line, field, "@") | |
15787 | substed = 0 | |
15788 | len = length(field[1]) | |
15789 | for (i = 2; i < nfields; i++) { | |
15790 | key = field[i] | |
15791 | keylen = length(key) | |
15792 | if (S_is_set[key]) { | |
15793 | value = S[key] | |
15794 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15795 | len += length(value) + length(field[++i]) | |
15796 | substed = 1 | |
15797 | } else | |
15798 | len += 1 + keylen | |
15799 | } | |
15800 | if (nfields == 3 && !substed) { | |
15801 | key = field[2] | |
15802 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15803 | \$ac_cs_awk_read_file | |
15804 | next | |
15805 | } | |
15806 | } | |
15807 | print line | |
15808 | } | |
15809 | \$ac_cs_awk_pipe_fini | |
15810 | _ACAWK | |
15811 | _ACEOF | |
15812 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15813 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15814 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15815 | else | |
15816 | cat | |
d0ac1c44 SM |
15817 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15818 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
15819 | _ACEOF |
15820 | ||
d0ac1c44 SM |
15821 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15822 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15823 | # trailing colons and then remove the whole line if VPATH becomes empty |
15824 | # (actually we leave an empty line to preserve line numbers). | |
15825 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15826 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15827 | h | |
15828 | s/// | |
15829 | s/^/:/ | |
15830 | s/[ ]*$/:/ | |
15831 | s/:\$(srcdir):/:/g | |
15832 | s/:\${srcdir}:/:/g | |
15833 | s/:@srcdir@:/:/g | |
15834 | s/^:*// | |
81ecdfbb | 15835 | s/:*$// |
d0ac1c44 SM |
15836 | x |
15837 | s/\(=[ ]*\).*/\1/ | |
15838 | G | |
15839 | s/\n// | |
81ecdfbb RW |
15840 | s/^[^=]*=[ ]*$// |
15841 | }' | |
15842 | fi | |
c6b750e1 | 15843 | |
81ecdfbb RW |
15844 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15845 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15846 | |
c6b750e1 | 15847 | |
81ecdfbb RW |
15848 | eval set X " :F $CONFIG_FILES " |
15849 | shift | |
15850 | for ac_tag | |
15851 | do | |
15852 | case $ac_tag in | |
15853 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15854 | esac | |
15855 | case $ac_mode$ac_tag in | |
15856 | :[FHL]*:*);; | |
d0ac1c44 | 15857 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
15858 | :[FH]-) ac_tag=-:-;; |
15859 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15860 | esac | |
15861 | ac_save_IFS=$IFS | |
15862 | IFS=: | |
15863 | set x $ac_tag | |
15864 | IFS=$ac_save_IFS | |
15865 | shift | |
15866 | ac_file=$1 | |
15867 | shift | |
252b5132 | 15868 | |
81ecdfbb RW |
15869 | case $ac_mode in |
15870 | :L) ac_source=$1;; | |
15871 | :[FH]) | |
15872 | ac_file_inputs= | |
15873 | for ac_f | |
15874 | do | |
15875 | case $ac_f in | |
d0ac1c44 | 15876 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
15877 | *) # Look for the file first in the build tree, then in the source tree |
15878 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15879 | # because $ac_f cannot contain `:'. | |
15880 | test -f "$ac_f" || | |
15881 | case $ac_f in | |
15882 | [\\/$]*) false;; | |
15883 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15884 | esac || | |
d0ac1c44 | 15885 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
15886 | esac |
15887 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15888 | as_fn_append ac_file_inputs " '$ac_f'" | |
15889 | done | |
c6b750e1 | 15890 | |
81ecdfbb RW |
15891 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15892 | # use $as_me), people would be surprised to read: | |
15893 | # /* config.h. Generated by config.status. */ | |
15894 | configure_input='Generated from '` | |
15895 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15896 | `' by configure.' | |
15897 | if test x"$ac_file" != x-; then | |
15898 | configure_input="$ac_file. $configure_input" | |
15899 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15900 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15901 | fi |
81ecdfbb RW |
15902 | # Neutralize special characters interpreted by sed in replacement strings. |
15903 | case $configure_input in #( | |
15904 | *\&* | *\|* | *\\* ) | |
15905 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15906 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15907 | *) ac_sed_conf_input=$configure_input;; | |
15908 | esac | |
cac3d6c4 | 15909 | |
81ecdfbb | 15910 | case $ac_tag in |
d0ac1c44 SM |
15911 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15912 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
15913 | esac |
15914 | ;; | |
a0da8069 | 15915 | esac |
252b5132 | 15916 | |
81ecdfbb | 15917 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15918 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15919 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15920 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15921 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15922 | $as_echo X"$ac_file" | | |
15923 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15924 | s//\1/ | |
15925 | q | |
15926 | } | |
15927 | /^X\(\/\/\)[^/].*/{ | |
15928 | s//\1/ | |
15929 | q | |
15930 | } | |
15931 | /^X\(\/\/\)$/{ | |
15932 | s//\1/ | |
15933 | q | |
15934 | } | |
15935 | /^X\(\/\).*/{ | |
15936 | s//\1/ | |
15937 | q | |
15938 | } | |
15939 | s/.*/./; q'` | |
15940 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15941 | ac_builddir=. |
252b5132 | 15942 | |
81ecdfbb RW |
15943 | case "$ac_dir" in |
15944 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15945 | *) | |
15946 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15947 | # A ".." for each directory in $ac_dir_suffix. | |
15948 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15949 | case $ac_top_builddir_sub in | |
15950 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15951 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15952 | esac ;; | |
15953 | esac | |
15954 | ac_abs_top_builddir=$ac_pwd | |
15955 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15956 | # for backward compatibility: | |
15957 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15958 | |
15959 | case $srcdir in | |
81ecdfbb | 15960 | .) # We are building in place. |
c6b750e1 | 15961 | ac_srcdir=. |
81ecdfbb RW |
15962 | ac_top_srcdir=$ac_top_builddir_sub |
15963 | ac_abs_top_srcdir=$ac_pwd ;; | |
15964 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15965 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15966 | ac_top_srcdir=$srcdir |
15967 | ac_abs_top_srcdir=$srcdir ;; | |
15968 | *) # Relative name. | |
15969 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15970 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15971 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15972 | esac |
81ecdfbb | 15973 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15974 | |
252b5132 | 15975 | |
81ecdfbb RW |
15976 | case $ac_mode in |
15977 | :F) | |
15978 | # | |
15979 | # CONFIG_FILE | |
15980 | # | |
c6b750e1 DJ |
15981 | |
15982 | case $INSTALL in | |
15983 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15984 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15985 | esac |
81ecdfbb | 15986 | _ACEOF |
252b5132 | 15987 | |
81ecdfbb RW |
15988 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15989 | # If the template does not know about datarootdir, expand it. | |
15990 | # FIXME: This hack should be removed a few years after 2.60. | |
15991 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15992 | ac_sed_dataroot=' | |
15993 | /datarootdir/ { | |
15994 | p | |
15995 | q | |
15996 | } | |
15997 | /@datadir@/p | |
15998 | /@docdir@/p | |
15999 | /@infodir@/p | |
16000 | /@localedir@/p | |
16001 | /@mandir@/p' | |
16002 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16003 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16004 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16005 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16006 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 16007 | _ACEOF |
81ecdfbb RW |
16008 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16009 | ac_datarootdir_hack=' | |
16010 | s&@datadir@&$datadir&g | |
16011 | s&@docdir@&$docdir&g | |
16012 | s&@infodir@&$infodir&g | |
16013 | s&@localedir@&$localedir&g | |
16014 | s&@mandir@&$mandir&g | |
16015 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16016 | esac | |
16017 | _ACEOF | |
16018 | ||
16019 | # Neutralize VPATH when `$srcdir' = `.'. | |
16020 | # Shell code in configure.ac might set extrasub. | |
16021 | # FIXME: do we really want to maintain this feature? | |
16022 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16023 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
16024 | $extrasub |
16025 | _ACEOF | |
81ecdfbb | 16026 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
16027 | :t |
16028 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
16029 | s|@configure_input@|$ac_sed_conf_input|;t t |
16030 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16031 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16032 | s&@srcdir@&$ac_srcdir&;t t | |
16033 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16034 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16035 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16036 | s&@builddir@&$ac_builddir&;t t | |
16037 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16038 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16039 | s&@INSTALL@&$ac_INSTALL&;t t | |
16040 | $ac_datarootdir_hack | |
16041 | " | |
16042 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16043 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 16044 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 16045 | else |
d0ac1c44 SM |
16046 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
16047 | fi \ | |
16048 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
16049 | |
16050 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
16051 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16052 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16053 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 16054 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16055 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 16056 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16057 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 16058 | |
d0ac1c44 | 16059 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 16060 | case $ac_file in |
d0ac1c44 SM |
16061 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16062 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 16063 | esac \ |
d0ac1c44 | 16064 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 16065 | ;; |
c148b4cb | 16066 | |
c148b4cb | 16067 | |
c148b4cb | 16068 | |
81ecdfbb RW |
16069 | esac |
16070 | ||
06a51eac RW |
16071 | |
16072 | case $ac_file$ac_mode in | |
16073 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16074 | sed "$extrasub_host" | | |
16075 | sed "$extrasub_target" > mf$$ | |
16076 | mv -f mf$$ Makefile ;; | |
16077 | ||
16078 | esac | |
81ecdfbb RW |
16079 | done # for ac_tag |
16080 | ||
16081 | ||
16082 | as_fn_exit 0 | |
c6b750e1 | 16083 | _ACEOF |
c6b750e1 DJ |
16084 | ac_clean_files=$ac_clean_files_save |
16085 | ||
81ecdfbb | 16086 | test $ac_write_fail = 0 || |
d0ac1c44 | 16087 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 16088 | |
c6b750e1 DJ |
16089 | |
16090 | # configure is writing to config.log, and then calls config.status. | |
16091 | # config.status does its own redirection, appending to config.log. | |
16092 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16093 | # by configure, so config.status won't be able to write to it; its | |
16094 | # output is simply discarded. So we exec the FD to /dev/null, | |
16095 | # effectively closing config.log, so it can be properly (re)opened and | |
16096 | # appended to by config.status. When coming back to configure, we | |
16097 | # need to make the FD available again. | |
16098 | if test "$no_create" != yes; then | |
16099 | ac_cs_success=: | |
16100 | ac_config_status_args= | |
16101 | test "$silent" = yes && | |
16102 | ac_config_status_args="$ac_config_status_args --quiet" | |
16103 | exec 5>/dev/null | |
16104 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16105 | exec 5>>config.log | |
16106 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16107 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 16108 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
16109 | fi |
16110 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16111 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16112 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 16113 | fi |
c148b4cb | 16114 |