]>
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 | |
50ad1254 L |
619 | RANLIB_PLUGIN_OPTION |
620 | AR_PLUGIN_OPTION | |
de83289e | 621 | PKG_CONFIG_PATH |
b121d7d4 | 622 | READELF |
81ecdfbb RW |
623 | OBJDUMP |
624 | OBJCOPY | |
625 | WINDMC | |
626 | WINDRES | |
627 | STRIP | |
628 | RANLIB | |
629 | NM | |
630 | LIPO | |
631 | LD | |
632 | DLLTOOL | |
633 | AS | |
634 | AR | |
635 | RUNTEST | |
636 | EXPECT | |
637 | MAKEINFO | |
638 | FLEX | |
639 | LEX | |
640 | M4 | |
641 | BISON | |
642 | YACC | |
81ecdfbb RW |
643 | WINDRES_FOR_BUILD |
644 | WINDMC_FOR_BUILD | |
645 | RANLIB_FOR_BUILD | |
646 | NM_FOR_BUILD | |
647 | LD_FOR_BUILD | |
648 | LDFLAGS_FOR_BUILD | |
e552509b | 649 | GOC_FOR_BUILD |
81ecdfbb | 650 | GFORTRAN_FOR_BUILD |
81ecdfbb RW |
651 | DLLTOOL_FOR_BUILD |
652 | CXX_FOR_BUILD | |
653 | CXXFLAGS_FOR_BUILD | |
654 | CFLAGS_FOR_BUILD | |
655 | CC_FOR_BUILD | |
656 | AS_FOR_BUILD | |
657 | AR_FOR_BUILD | |
911e63d0 | 658 | target_configdirs |
81ecdfbb | 659 | configdirs |
81ecdfbb | 660 | build_configdirs |
81ecdfbb RW |
661 | INSTALL_GDB_TK |
662 | GDB_TK | |
663 | CONFIGURE_GDB_TK | |
664 | build_tooldir | |
665 | tooldir | |
666 | GCC_SHLIB_SUBDIR | |
667 | RPATH_ENVVAR | |
4074d5f2 RW |
668 | target_configargs |
669 | host_configargs | |
670 | build_configargs | |
96655cc4 | 671 | BUILD_CONFIG |
91c1f14c | 672 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
673 | CXXFLAGS_FOR_TARGET |
674 | CFLAGS_FOR_TARGET | |
675 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
676 | SYSROOT_CFLAGS_FOR_TARGET | |
bf41f30d | 677 | get_gcc_base_ver |
e81d5d05 | 678 | extra_host_zlib_configure_flags |
700d40ca | 679 | extra_host_libiberty_configure_flags |
1b6c0831 | 680 | stage1_languages |
bf41f30d | 681 | host_shared |
1b6c0831 L |
682 | extra_linker_plugin_flags |
683 | extra_linker_plugin_configure_flags | |
7ec59b9e | 684 | islinc |
1b6c0831 | 685 | isllibs |
81ecdfbb | 686 | poststage1_ldflags |
143754cd | 687 | poststage1_libs |
81ecdfbb | 688 | stage1_ldflags |
b3676d82 | 689 | stage1_libs |
7ec59b9e | 690 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
691 | extra_mpc_mpfr_configure_flags |
692 | extra_mpc_gmp_configure_flags | |
693 | extra_mpfr_configure_flags | |
694 | gmpinc | |
695 | gmplibs | |
af019bfd L |
696 | PGO_BUILD_LTO_CFLAGS |
697 | PGO_BUILD_USE_CFLAGS | |
698 | PGO_BUILD_GEN_CFLAGS | |
81ecdfbb RW |
699 | do_compare |
700 | GNATMAKE | |
701 | GNATBIND | |
702 | ac_ct_CXX | |
703 | CXXFLAGS | |
704 | CXX | |
705 | OBJEXT | |
706 | EXEEXT | |
707 | ac_ct_CC | |
708 | CPPFLAGS | |
709 | LDFLAGS | |
710 | CFLAGS | |
711 | CC | |
1b6c0831 | 712 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
713 | target_subdir |
714 | host_subdir | |
715 | build_subdir | |
716 | build_libsubdir | |
8e957354 PB |
717 | AWK |
718 | SED | |
81ecdfbb RW |
719 | LN_S |
720 | LN | |
721 | INSTALL_DATA | |
722 | INSTALL_SCRIPT | |
723 | INSTALL_PROGRAM | |
724 | target_os | |
725 | target_vendor | |
726 | target_cpu | |
727 | target | |
728 | host_os | |
729 | host_vendor | |
730 | host_cpu | |
731 | host | |
732 | target_noncanonical | |
733 | host_noncanonical | |
734 | build_noncanonical | |
735 | build_os | |
736 | build_vendor | |
737 | build_cpu | |
738 | build | |
739 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
740 | target_alias | |
741 | host_alias | |
742 | build_alias | |
743 | LIBS | |
744 | ECHO_T | |
745 | ECHO_N | |
746 | ECHO_C | |
747 | DEFS | |
748 | mandir | |
749 | localedir | |
750 | libdir | |
751 | psdir | |
752 | pdfdir | |
753 | dvidir | |
754 | htmldir | |
755 | infodir | |
756 | docdir | |
757 | oldincludedir | |
758 | includedir | |
759 | localstatedir | |
760 | sharedstatedir | |
761 | sysconfdir | |
762 | datadir | |
763 | datarootdir | |
764 | libexecdir | |
765 | sbindir | |
766 | bindir | |
767 | program_transform_name | |
768 | prefix | |
769 | exec_prefix | |
770 | PACKAGE_URL | |
771 | PACKAGE_BUGREPORT | |
772 | PACKAGE_STRING | |
773 | PACKAGE_VERSION | |
774 | PACKAGE_TARNAME | |
775 | PACKAGE_NAME | |
776 | PATH_SEPARATOR | |
777 | SHELL' | |
778 | ac_subst_files='serialization_dependencies | |
779 | host_makefile_frag | |
780 | target_makefile_frag | |
781 | alphaieee_frag | |
782 | ospace_frag' | |
783 | ac_user_opts=' | |
784 | enable_option_checking | |
785 | with_build_libsubdir | |
cf39cfc5 | 786 | with_system_zlib |
1b6c0831 L |
787 | enable_as_accelerator_for |
788 | enable_offload_targets | |
81ecdfbb | 789 | enable_gold |
c7791212 | 790 | enable_ld |
bb368aad | 791 | enable_gprofng |
edeefb67 | 792 | enable_compressed_debug_sections |
e5f2f7d9 | 793 | enable_year2038 |
89a1e9c3 PB |
794 | enable_libquadmath |
795 | enable_libquadmath_support | |
81ecdfbb RW |
796 | enable_libada |
797 | enable_libssp | |
f66a9a70 | 798 | enable_libstdcxx |
1b6c0831 | 799 | enable_liboffloadmic |
ffdd6afc | 800 | enable_bootstrap |
af019bfd | 801 | enable_pgo_build |
81ecdfbb RW |
802 | with_mpc |
803 | with_mpc_include | |
804 | with_mpc_lib | |
805 | with_mpfr_dir | |
806 | with_mpfr | |
807 | with_mpfr_include | |
808 | with_mpfr_lib | |
809 | with_gmp_dir | |
810 | with_gmp | |
811 | with_gmp_include | |
812 | with_gmp_lib | |
81ecdfbb | 813 | with_stage1_libs |
c1a5d03a | 814 | with_static_standard_libraries |
b3676d82 | 815 | with_stage1_ldflags |
81ecdfbb | 816 | with_boot_libs |
143754cd | 817 | with_boot_ldflags |
7ec59b9e L |
818 | with_isl |
819 | with_isl_include | |
820 | with_isl_lib | |
821 | enable_isl_version_check | |
700d40ca | 822 | enable_lto |
1b6c0831 L |
823 | enable_linker_plugin_configure_flags |
824 | enable_linker_plugin_flags | |
bf41f30d | 825 | enable_host_shared |
81ecdfbb RW |
826 | enable_stage1_languages |
827 | enable_objc_gc | |
05a13254 NC |
828 | with_target_bdw_gc |
829 | with_target_bdw_gc_include | |
830 | with_target_bdw_gc_lib | |
bf41f30d | 831 | with_gcc_major_version_only |
81ecdfbb RW |
832 | with_build_sysroot |
833 | with_debug_prefix_map | |
96655cc4 | 834 | with_build_config |
730af8ee | 835 | enable_vtable_verify |
81ecdfbb RW |
836 | enable_serial_configure |
837 | with_build_time_tools | |
838 | enable_maintainer_mode | |
839 | enable_stage1_checking | |
840 | enable_werror | |
81ecdfbb RW |
841 | ' |
842 | ac_precious_vars='build_alias | |
843 | host_alias | |
844 | target_alias | |
845 | CC | |
846 | CFLAGS | |
847 | LDFLAGS | |
848 | LIBS | |
849 | CPPFLAGS | |
850 | CXX | |
851 | CXXFLAGS | |
852 | CCC | |
4074d5f2 RW |
853 | build_configargs |
854 | host_configargs | |
855 | target_configargs | |
81ecdfbb RW |
856 | AR |
857 | AS | |
858 | DLLTOOL | |
859 | LD | |
860 | LIPO | |
861 | NM | |
862 | RANLIB | |
863 | STRIP | |
864 | WINDRES | |
865 | WINDMC | |
866 | OBJCOPY | |
867 | OBJDUMP | |
b121d7d4 | 868 | READELF |
81ecdfbb RW |
869 | CC_FOR_TARGET |
870 | CXX_FOR_TARGET | |
871 | GCC_FOR_TARGET | |
81ecdfbb | 872 | GFORTRAN_FOR_TARGET |
e552509b | 873 | GOC_FOR_TARGET |
81ecdfbb RW |
874 | AR_FOR_TARGET |
875 | AS_FOR_TARGET | |
876 | DLLTOOL_FOR_TARGET | |
877 | LD_FOR_TARGET | |
878 | LIPO_FOR_TARGET | |
879 | NM_FOR_TARGET | |
6b91c541 | 880 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
881 | OBJDUMP_FOR_TARGET |
882 | RANLIB_FOR_TARGET | |
b121d7d4 | 883 | READELF_FOR_TARGET |
81ecdfbb RW |
884 | STRIP_FOR_TARGET |
885 | WINDRES_FOR_TARGET | |
886 | WINDMC_FOR_TARGET' | |
887 | ||
a0da8069 NN |
888 | |
889 | # Initialize some variables set by options. | |
c6b750e1 DJ |
890 | ac_init_help= |
891 | ac_init_version=false | |
81ecdfbb RW |
892 | ac_unrecognized_opts= |
893 | ac_unrecognized_sep= | |
a0da8069 NN |
894 | # The variables have the same names as the options, with |
895 | # dashes changed to underlines. | |
c6b750e1 | 896 | cache_file=/dev/null |
a0da8069 | 897 | exec_prefix=NONE |
a0da8069 | 898 | no_create= |
a0da8069 NN |
899 | no_recursion= |
900 | prefix=NONE | |
901 | program_prefix=NONE | |
902 | program_suffix=NONE | |
903 | program_transform_name=s,x,x, | |
904 | silent= | |
905 | site= | |
906 | srcdir= | |
a0da8069 NN |
907 | verbose= |
908 | x_includes=NONE | |
909 | x_libraries=NONE | |
c6b750e1 DJ |
910 | |
911 | # Installation directory options. | |
912 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
913 | # and all the variables that are supposed to be based on exec_prefix | |
914 | # by default will actually change. | |
915 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 916 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
917 | bindir='${exec_prefix}/bin' |
918 | sbindir='${exec_prefix}/sbin' | |
919 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
920 | datarootdir='${prefix}/share' |
921 | datadir='${datarootdir}' | |
a0da8069 NN |
922 | sysconfdir='${prefix}/etc' |
923 | sharedstatedir='${prefix}/com' | |
924 | localstatedir='${prefix}/var' | |
a0da8069 NN |
925 | includedir='${prefix}/include' |
926 | oldincludedir='/usr/include' | |
81ecdfbb RW |
927 | docdir='${datarootdir}/doc/${PACKAGE}' |
928 | infodir='${datarootdir}/info' | |
929 | htmldir='${docdir}' | |
930 | dvidir='${docdir}' | |
931 | pdfdir='${docdir}' | |
932 | psdir='${docdir}' | |
933 | libdir='${exec_prefix}/lib' | |
934 | localedir='${datarootdir}/locale' | |
935 | mandir='${datarootdir}/man' | |
252b5132 | 936 | |
a0da8069 | 937 | ac_prev= |
81ecdfbb | 938 | ac_dashdash= |
a0da8069 NN |
939 | for ac_option |
940 | do | |
a0da8069 NN |
941 | # If the previous option needs an argument, assign it. |
942 | if test -n "$ac_prev"; then | |
81ecdfbb | 943 | eval $ac_prev=\$ac_option |
a0da8069 NN |
944 | ac_prev= |
945 | continue | |
946 | fi | |
252b5132 | 947 | |
81ecdfbb | 948 | case $ac_option in |
d0ac1c44 SM |
949 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
950 | *=) ac_optarg= ;; | |
951 | *) ac_optarg=yes ;; | |
81ecdfbb | 952 | esac |
a0da8069 NN |
953 | |
954 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
955 | ||
81ecdfbb RW |
956 | case $ac_dashdash$ac_option in |
957 | --) | |
958 | ac_dashdash=yes ;; | |
a0da8069 NN |
959 | |
960 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
961 | ac_prev=bindir ;; | |
962 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 963 | bindir=$ac_optarg ;; |
a0da8069 NN |
964 | |
965 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 966 | ac_prev=build_alias ;; |
a0da8069 | 967 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 968 | build_alias=$ac_optarg ;; |
a0da8069 NN |
969 | |
970 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
971 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
972 | ac_prev=cache_file ;; | |
973 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
974 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
975 | cache_file=$ac_optarg ;; |
976 | ||
977 | --config-cache | -C) | |
978 | cache_file=config.cache ;; | |
a0da8069 | 979 | |
81ecdfbb | 980 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 981 | ac_prev=datadir ;; |
81ecdfbb | 982 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 983 | datadir=$ac_optarg ;; |
a0da8069 | 984 | |
81ecdfbb RW |
985 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
986 | | --dataroo | --dataro | --datar) | |
987 | ac_prev=datarootdir ;; | |
988 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
989 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
990 | datarootdir=$ac_optarg ;; | |
991 | ||
a0da8069 | 992 | -disable-* | --disable-*) |
81ecdfbb | 993 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 994 | # Reject names that are not valid shell variable names. |
81ecdfbb | 995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 996 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
997 | ac_useropt_orig=$ac_useropt |
998 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
999 | case $ac_user_opts in | |
1000 | *" | |
1001 | "enable_$ac_useropt" | |
1002 | "*) ;; | |
1003 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1004 | ac_unrecognized_sep=', ';; | |
1005 | esac | |
1006 | eval enable_$ac_useropt=no ;; | |
1007 | ||
1008 | -docdir | --docdir | --docdi | --doc | --do) | |
1009 | ac_prev=docdir ;; | |
1010 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1011 | docdir=$ac_optarg ;; | |
1012 | ||
1013 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1014 | ac_prev=dvidir ;; | |
1015 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1016 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
1017 | |
1018 | -enable-* | --enable-*) | |
81ecdfbb | 1019 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 1020 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1021 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1022 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1023 | ac_useropt_orig=$ac_useropt |
1024 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1025 | case $ac_user_opts in | |
1026 | *" | |
1027 | "enable_$ac_useropt" | |
1028 | "*) ;; | |
1029 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1030 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1031 | esac |
81ecdfbb | 1032 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1033 | |
1034 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1035 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1036 | | --exec | --exe | --ex) | |
1037 | ac_prev=exec_prefix ;; | |
1038 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1039 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1040 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1041 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1042 | |
1043 | -gas | --gas | --ga | --g) | |
1044 | # Obsolete; use --with-gas. | |
1045 | with_gas=yes ;; | |
1046 | ||
c6b750e1 DJ |
1047 | -help | --help | --hel | --he | -h) |
1048 | ac_init_help=long ;; | |
1049 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1050 | ac_init_help=recursive ;; | |
1051 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1052 | ac_init_help=short ;; | |
a0da8069 NN |
1053 | |
1054 | -host | --host | --hos | --ho) | |
c6b750e1 | 1055 | ac_prev=host_alias ;; |
a0da8069 | 1056 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1057 | host_alias=$ac_optarg ;; |
a0da8069 | 1058 | |
81ecdfbb RW |
1059 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1060 | ac_prev=htmldir ;; | |
1061 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1062 | | --ht=*) | |
1063 | htmldir=$ac_optarg ;; | |
1064 | ||
a0da8069 NN |
1065 | -includedir | --includedir | --includedi | --included | --include \ |
1066 | | --includ | --inclu | --incl | --inc) | |
1067 | ac_prev=includedir ;; | |
1068 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1069 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1070 | includedir=$ac_optarg ;; |
a0da8069 NN |
1071 | |
1072 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1073 | ac_prev=infodir ;; | |
1074 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1075 | infodir=$ac_optarg ;; |
a0da8069 NN |
1076 | |
1077 | -libdir | --libdir | --libdi | --libd) | |
1078 | ac_prev=libdir ;; | |
1079 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1080 | libdir=$ac_optarg ;; |
a0da8069 NN |
1081 | |
1082 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1083 | | --libexe | --libex | --libe) | |
1084 | ac_prev=libexecdir ;; | |
1085 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1086 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1087 | libexecdir=$ac_optarg ;; |
a0da8069 | 1088 | |
81ecdfbb RW |
1089 | -localedir | --localedir | --localedi | --localed | --locale) |
1090 | ac_prev=localedir ;; | |
1091 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1092 | localedir=$ac_optarg ;; | |
1093 | ||
a0da8069 | 1094 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1095 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1096 | ac_prev=localstatedir ;; |
1097 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1098 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1099 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1100 | |
1101 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1102 | ac_prev=mandir ;; | |
1103 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1104 | mandir=$ac_optarg ;; |
a0da8069 NN |
1105 | |
1106 | -nfp | --nfp | --nf) | |
1107 | # Obsolete; use --without-fp. | |
1108 | with_fp=no ;; | |
1109 | ||
1110 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1111 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1112 | no_create=yes ;; |
1113 | ||
1114 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1115 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1116 | no_recursion=yes ;; | |
1117 | ||
1118 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1119 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1120 | | --oldin | --oldi | --old | --ol | --o) | |
1121 | ac_prev=oldincludedir ;; | |
1122 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1123 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1124 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1125 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1126 | |
1127 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1128 | ac_prev=prefix ;; | |
1129 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1130 | prefix=$ac_optarg ;; |
a0da8069 NN |
1131 | |
1132 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1133 | | --program-pre | --program-pr | --program-p) | |
1134 | ac_prev=program_prefix ;; | |
1135 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1136 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1137 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1138 | |
1139 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1140 | | --program-suf | --program-su | --program-s) | |
1141 | ac_prev=program_suffix ;; | |
1142 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1143 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1144 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1145 | |
1146 | -program-transform-name | --program-transform-name \ | |
1147 | | --program-transform-nam | --program-transform-na \ | |
1148 | | --program-transform-n | --program-transform- \ | |
1149 | | --program-transform | --program-transfor \ | |
1150 | | --program-transfo | --program-transf \ | |
1151 | | --program-trans | --program-tran \ | |
1152 | | --progr-tra | --program-tr | --program-t) | |
1153 | ac_prev=program_transform_name ;; | |
1154 | -program-transform-name=* | --program-transform-name=* \ | |
1155 | | --program-transform-nam=* | --program-transform-na=* \ | |
1156 | | --program-transform-n=* | --program-transform-=* \ | |
1157 | | --program-transform=* | --program-transfor=* \ | |
1158 | | --program-transfo=* | --program-transf=* \ | |
1159 | | --program-trans=* | --program-tran=* \ | |
1160 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1161 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1162 | |
81ecdfbb RW |
1163 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1164 | ac_prev=pdfdir ;; | |
1165 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1166 | pdfdir=$ac_optarg ;; | |
1167 | ||
1168 | -psdir | --psdir | --psdi | --psd | --ps) | |
1169 | ac_prev=psdir ;; | |
1170 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1171 | psdir=$ac_optarg ;; | |
1172 | ||
a0da8069 NN |
1173 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1174 | | -silent | --silent | --silen | --sile | --sil) | |
1175 | silent=yes ;; | |
1176 | ||
1177 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1178 | ac_prev=sbindir ;; | |
1179 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1180 | | --sbi=* | --sb=*) | |
c6b750e1 | 1181 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1182 | |
1183 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1184 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1185 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1186 | | --sha | --sh) | |
1187 | ac_prev=sharedstatedir ;; | |
1188 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1189 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1190 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1191 | | --sha=* | --sh=*) | |
c6b750e1 | 1192 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1193 | |
1194 | -site | --site | --sit) | |
1195 | ac_prev=site ;; | |
1196 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1197 | site=$ac_optarg ;; |
a0da8069 NN |
1198 | |
1199 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1200 | ac_prev=srcdir ;; | |
1201 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1202 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1203 | |
1204 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1205 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1206 | ac_prev=sysconfdir ;; | |
1207 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1208 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1209 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1210 | |
1211 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1212 | ac_prev=target_alias ;; |
a0da8069 | 1213 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1214 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1215 | |
1216 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1217 | verbose=yes ;; | |
1218 | ||
c6b750e1 DJ |
1219 | -version | --version | --versio | --versi | --vers | -V) |
1220 | ac_init_version=: ;; | |
a0da8069 NN |
1221 | |
1222 | -with-* | --with-*) | |
81ecdfbb | 1223 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1224 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1225 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1226 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1227 | ac_useropt_orig=$ac_useropt |
1228 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1229 | case $ac_user_opts in | |
1230 | *" | |
1231 | "with_$ac_useropt" | |
1232 | "*) ;; | |
1233 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1234 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1235 | esac |
81ecdfbb | 1236 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1237 | |
1238 | -without-* | --without-*) | |
81ecdfbb | 1239 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1240 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1241 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1242 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1243 | ac_useropt_orig=$ac_useropt |
1244 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1245 | case $ac_user_opts in | |
1246 | *" | |
1247 | "with_$ac_useropt" | |
1248 | "*) ;; | |
1249 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1250 | ac_unrecognized_sep=', ';; | |
1251 | esac | |
1252 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1253 | |
1254 | --x) | |
1255 | # Obsolete; use --with-x. | |
1256 | with_x=yes ;; | |
1257 | ||
1258 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1259 | | --x-incl | --x-inc | --x-in | --x-i) | |
1260 | ac_prev=x_includes ;; | |
1261 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1262 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1263 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1264 | |
1265 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1266 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1267 | ac_prev=x_libraries ;; | |
1268 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1269 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1270 | x_libraries=$ac_optarg ;; |
a0da8069 | 1271 | |
d0ac1c44 SM |
1272 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1273 | Try \`$0 --help' for more information" | |
a0da8069 NN |
1274 | ;; |
1275 | ||
c6b750e1 DJ |
1276 | *=*) |
1277 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1278 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1279 | case $ac_envvar in #( |
1280 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1281 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1282 | esac |
1283 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1284 | export $ac_envvar ;; |
1285 | ||
a0da8069 | 1286 | *) |
c6b750e1 | 1287 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1288 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1289 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1290 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1291 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
a0da8069 NN |
1292 | ;; |
1293 | ||
1294 | esac | |
1295 | done | |
1296 | ||
1297 | if test -n "$ac_prev"; then | |
c6b750e1 | 1298 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1299 | as_fn_error $? "missing argument to $ac_option" |
a0da8069 | 1300 | fi |
a0da8069 | 1301 | |
81ecdfbb RW |
1302 | if test -n "$ac_unrecognized_opts"; then |
1303 | case $enable_option_checking in | |
1304 | no) ;; | |
d0ac1c44 | 1305 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1306 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
c6b750e1 | 1307 | esac |
81ecdfbb | 1308 | fi |
a0da8069 | 1309 | |
81ecdfbb RW |
1310 | # Check all directory arguments for consistency. |
1311 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1312 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1313 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1314 | libdir localedir mandir | |
a0da8069 | 1315 | do |
81ecdfbb RW |
1316 | eval ac_val=\$$ac_var |
1317 | # Remove trailing slashes. | |
1318 | case $ac_val in | |
1319 | */ ) | |
1320 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1321 | eval $ac_var=\$ac_val;; | |
1322 | esac | |
1323 | # Be sure to have absolute directory names. | |
c6b750e1 | 1324 | case $ac_val in |
81ecdfbb RW |
1325 | [\\/$]* | ?:[\\/]* ) continue;; |
1326 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1327 | esac |
d0ac1c44 | 1328 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1329 | done |
1330 | ||
c6b750e1 DJ |
1331 | # There might be people who depend on the old broken behavior: `$host' |
1332 | # used to hold the argument of --host etc. | |
1333 | # FIXME: To remove some day. | |
1334 | build=$build_alias | |
1335 | host=$host_alias | |
1336 | target=$target_alias | |
376a0e54 | 1337 | |
c6b750e1 DJ |
1338 | # FIXME: To remove some day. |
1339 | if test "x$host_alias" != x; then | |
1340 | if test "x$build_alias" = x; then | |
1341 | cross_compiling=maybe | |
c6b750e1 DJ |
1342 | elif test "x$build_alias" != "x$host_alias"; then |
1343 | cross_compiling=yes | |
1344 | fi | |
1345 | fi | |
1346 | ||
1347 | ac_tool_prefix= | |
1348 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1349 | ||
1350 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1351 | |
a0da8069 | 1352 | |
81ecdfbb RW |
1353 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1354 | ac_ls_di=`ls -di .` && | |
1355 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1356 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1357 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1358 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1359 | |
1360 | ||
a0da8069 NN |
1361 | # Find the source files, if location was not specified. |
1362 | if test -z "$srcdir"; then | |
1363 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1364 | # Try the directory containing this script, then the parent directory. |
1365 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1366 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1367 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1368 | X"$as_myself" : 'X\(//\)$' \| \ | |
1369 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1370 | $as_echo X"$as_myself" | | |
1371 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1372 | s//\1/ | |
1373 | q | |
1374 | } | |
1375 | /^X\(\/\/\)[^/].*/{ | |
1376 | s//\1/ | |
1377 | q | |
1378 | } | |
1379 | /^X\(\/\/\)$/{ | |
1380 | s//\1/ | |
1381 | q | |
1382 | } | |
1383 | /^X\(\/\).*/{ | |
1384 | s//\1/ | |
1385 | q | |
1386 | } | |
1387 | s/.*/./; q'` | |
a0da8069 | 1388 | srcdir=$ac_confdir |
81ecdfbb | 1389 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1390 | srcdir=.. |
1391 | fi | |
1392 | else | |
1393 | ac_srcdir_defaulted=no | |
1394 | fi | |
81ecdfbb RW |
1395 | if test ! -r "$srcdir/$ac_unique_file"; then |
1396 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1397 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1398 | fi |
1399 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1400 | ac_abs_confdir=`( | |
d0ac1c44 | 1401 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1402 | pwd)` |
1403 | # When building in place, set srcdir=. | |
1404 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1405 | srcdir=. | |
1406 | fi | |
1407 | # Remove unnecessary trailing slashes from srcdir. | |
1408 | # Double slashes in file names in object file debugging info | |
1409 | # mess up M-x gdb in Emacs. | |
1410 | case $srcdir in | |
1411 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1412 | esac | |
6d0cd39e AM |
1413 | case $srcdir in |
1414 | *" "*) | |
d0ac1c44 | 1415 | as_fn_error $? "path to source, $srcdir, contains spaces" |
6d0cd39e AM |
1416 | ;; |
1417 | esac | |
9cc8ae67 PB |
1418 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1419 | ||
81ecdfbb RW |
1420 | for ac_var in $ac_precious_vars; do |
1421 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1422 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1423 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1424 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1425 | done | |
c6b750e1 DJ |
1426 | |
1427 | # | |
1428 | # Report the --help message. | |
1429 | # | |
1430 | if test "$ac_init_help" = "long"; then | |
1431 | # Omit some internal or obsolete options to make the list less imposing. | |
1432 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1433 | cat <<_ACEOF | |
1434 | \`configure' configures this package to adapt to many kinds of systems. | |
1435 | ||
1436 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1437 | ||
1438 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1439 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1440 | ||
1441 | Defaults for the options are specified in brackets. | |
1442 | ||
1443 | Configuration: | |
1444 | -h, --help display this help and exit | |
1445 | --help=short display options specific to this package | |
1446 | --help=recursive display the short help of all the included packages | |
1447 | -V, --version display version information and exit | |
d0ac1c44 | 1448 | -q, --quiet, --silent do not print \`checking ...' messages |
c6b750e1 DJ |
1449 | --cache-file=FILE cache test results in FILE [disabled] |
1450 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1451 | -n, --no-create do not create output files | |
1452 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1453 | ||
c6b750e1 DJ |
1454 | Installation directories: |
1455 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1456 | [$ac_default_prefix] |
c6b750e1 | 1457 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1458 | [PREFIX] |
c6b750e1 DJ |
1459 | |
1460 | By default, \`make install' will install all the files in | |
1461 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1462 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1463 | for instance \`--prefix=\$HOME'. | |
1464 | ||
1465 | For better control, use the options below. | |
1466 | ||
1467 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1468 | --bindir=DIR user executables [EPREFIX/bin] |
1469 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1470 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1471 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1472 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1473 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1474 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1475 | --includedir=DIR C header files [PREFIX/include] | |
1476 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1477 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1478 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1479 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1480 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1481 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1482 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1483 | --htmldir=DIR html documentation [DOCDIR] | |
1484 | --dvidir=DIR dvi documentation [DOCDIR] | |
1485 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1486 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1487 | _ACEOF |
1488 | ||
1489 | cat <<\_ACEOF | |
1490 | ||
1491 | Program names: | |
1492 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1493 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1494 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1495 | ||
1496 | System types: | |
1497 | --build=BUILD configure for building on BUILD [guessed] | |
1498 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1499 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1500 | _ACEOF | |
a0da8069 | 1501 | fi |
a0da8069 | 1502 | |
c6b750e1 DJ |
1503 | if test -n "$ac_init_help"; then |
1504 | ||
1505 | cat <<\_ACEOF | |
1506 | ||
1507 | Optional Features: | |
81ecdfbb | 1508 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1509 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1510 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1511 | --enable-as-accelerator-for=ARG |
1512 | build as offload target compiler. Specify offload | |
1513 | host triple by ARG | |
1514 | --enable-offload-targets=LIST | |
1515 | enable offloading to devices from comma-separated | |
1516 | LIST of TARGET[=DIR]. Use optional path to find | |
1517 | offload target compiler during the build | |
c7791212 | 1518 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1519 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
bb368aad | 1520 | --enable-gprofng[=ARG] build gprofng [ARG={yes,no}] |
6c3bc0f8 | 1521 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1522 | Enable compressed debug sections for gas, gold or ld |
1523 | by default | |
e5f2f7d9 | 1524 | --enable-year2038 enable support for timestamps past the year 2038 |
89a1e9c3 PB |
1525 | --disable-libquadmath do not build libquadmath directory |
1526 | --disable-libquadmath-support | |
1527 | disable libquadmath support for Fortran | |
521ec477 DD |
1528 | --enable-libada build libada directory |
1529 | --enable-libssp build libssp directory | |
f66a9a70 | 1530 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1531 | --enable-liboffloadmic=ARG |
1532 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1533 | --enable-bootstrap enable bootstrapping [yes if native build] |
af019bfd L |
1534 | --enable-pgo-build[=lto] |
1535 | enable the PGO build | |
7ec59b9e | 1536 | --disable-isl-version-check |
4849dfd8 | 1537 | disable check for isl version |
700d40ca | 1538 | --enable-lto enable link time optimization support |
1b6c0831 L |
1539 | --enable-linker-plugin-configure-flags=FLAGS |
1540 | additional flags for configuring linker plugins | |
1541 | [none] | |
1542 | --enable-linker-plugin-flags=FLAGS | |
1543 | additional flags for configuring and building linker | |
1544 | plugins [none] | |
bf41f30d | 1545 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1546 | --enable-stage1-languages[=all] |
1547 | choose additional languages to build during stage1. | |
1548 | Mostly useful for compiler development | |
1549 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1550 | Objective-C runtime | |
ce6c656d | 1551 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1552 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1553 | force sequential configuration of sub-packages for |
1554 | the host, target or build machine, or all | |
1555 | sub-packages | |
1556 | --enable-maintainer-mode | |
1557 | enable make rules and dependencies not useful (and | |
1558 | sometimes confusing) to the casual installer | |
1559 | --enable-stage1-checking[=all] | |
1560 | choose additional checking for stage1 of the | |
1561 | compiler | |
c6b750e1 DJ |
1562 | --enable-werror enable -Werror in bootstrap stage2 and later |
1563 | ||
1564 | Optional Packages: | |
1565 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1566 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1567 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1568 | --with-system-zlib use installed libz |
7837304f AS |
1569 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1570 | Equivalent to --with-mpc-include=PATH/include plus | |
1571 | --with-mpc-lib=PATH/lib | |
1572 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1573 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1574 | --with-mpfr-dir=PATH this option has been REMOVED |
1575 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1576 | Equivalent to --with-mpfr-include=PATH/include plus |
1577 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1578 | --with-mpfr-include=PATH |
521ec477 DD |
1579 | specify directory for installed MPFR include files |
1580 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1581 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1582 | --with-gmp=PATH specify prefix directory for the installed GMP |
1583 | package. Equivalent to | |
1584 | --with-gmp-include=PATH/include plus | |
1585 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1586 | --with-gmp-include=PATH specify directory for installed GMP include files |
1587 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1588 | --with-stage1-libs=LIBS libraries for stage1 |
c1a5d03a TT |
1589 | --with-static-standard-libraries |
1590 | use -static-libstdc++ and -static-libgcc | |
1591 | (default=auto) | |
7837304f AS |
1592 | --with-stage1-ldflags=FLAGS |
1593 | linker flags for stage1 | |
7837304f AS |
1594 | --with-boot-libs=LIBS libraries for stage2 and later |
1595 | --with-boot-ldflags=FLAGS | |
1596 | linker flags for stage2 and later | |
4849dfd8 | 1597 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1598 | package. Equivalent to |
7ec59b9e L |
1599 | --with-isl-include=PATH/include plus |
1600 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1601 | --with-isl-include=PATH Specify directory for installed isl include files |
1602 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1603 | --with-target-bdw-gc=PATHLIST |
1604 | specify prefix directory for installed bdw-gc | |
1605 | package. Equivalent to | |
1606 | --with-target-bdw-gc-include=PATH/include plus | |
1607 | --with-target-bdw-gc-lib=PATH/lib | |
1608 | --with-target-bdw-gc-include=PATHLIST | |
1609 | specify directories for installed bdw-gc include | |
1610 | files | |
1611 | --with-target-bdw-gc-lib=PATHLIST | |
1612 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1613 | --with-gcc-major-version-only |
1614 | use only GCC major number in filesystem paths | |
521ec477 | 1615 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1616 | use sysroot as the system root during the build |
8a6ee3ab | 1617 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1618 | map A to B, C to D ... in debug information |
1619 | --with-build-config='NAME NAME2...' | |
1620 | use config/NAME.mk build configuration | |
521ec477 | 1621 | --with-build-time-tools=PATH |
c6b750e1 | 1622 | use given path to find target tools during the build |
c6b750e1 DJ |
1623 | |
1624 | Some influential environment variables: | |
1625 | CC C compiler command | |
1626 | CFLAGS C compiler flags | |
1627 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1628 | nonstandard directory <lib dir> | |
81ecdfbb | 1629 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1630 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1631 | you have headers in a nonstandard directory <include dir> |
18f6b6ee PB |
1632 | CXX C++ compiler command |
1633 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1634 | build_configargs |
1635 | additional configure arguments for build directories | |
1636 | host_configargs | |
1637 | additional configure arguments for host directories | |
1638 | target_configargs | |
1639 | additional configure arguments for target directories | |
9a819804 AO |
1640 | AR AR for the host |
1641 | AS AS for the host | |
1642 | DLLTOOL DLLTOOL for the host | |
1643 | LD LD for the host | |
1644 | LIPO LIPO for the host | |
1645 | NM NM for the host | |
1646 | RANLIB RANLIB for the host | |
1647 | STRIP STRIP for the host | |
1648 | WINDRES WINDRES for the host | |
0c24b341 | 1649 | WINDMC WINDMC for the host |
9a819804 AO |
1650 | OBJCOPY OBJCOPY for the host |
1651 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1652 | READELF READELF for the host |
9a819804 AO |
1653 | CC_FOR_TARGET |
1654 | CC for the target | |
1655 | CXX_FOR_TARGET | |
1656 | CXX for the target | |
1657 | GCC_FOR_TARGET | |
1658 | GCC for the target | |
9a819804 AO |
1659 | GFORTRAN_FOR_TARGET |
1660 | GFORTRAN for the target | |
e552509b ILT |
1661 | GOC_FOR_TARGET |
1662 | GOC for the target | |
9a819804 AO |
1663 | AR_FOR_TARGET |
1664 | AR for the target | |
1665 | AS_FOR_TARGET | |
1666 | AS for the target | |
1667 | DLLTOOL_FOR_TARGET | |
1668 | DLLTOOL for the target | |
1669 | LD_FOR_TARGET | |
1670 | LD for the target | |
1671 | LIPO_FOR_TARGET | |
1672 | LIPO for the target | |
1673 | NM_FOR_TARGET | |
1674 | NM for the target | |
6b91c541 AP |
1675 | OBJCOPY_FOR_TARGET |
1676 | OBJCOPY for the target | |
9a819804 AO |
1677 | OBJDUMP_FOR_TARGET |
1678 | OBJDUMP for the target | |
1679 | RANLIB_FOR_TARGET | |
1680 | RANLIB for the target | |
b121d7d4 DD |
1681 | READELF_FOR_TARGET |
1682 | READELF for the target | |
9a819804 AO |
1683 | STRIP_FOR_TARGET |
1684 | STRIP for the target | |
1685 | WINDRES_FOR_TARGET | |
1686 | WINDRES for the target | |
0c24b341 NC |
1687 | WINDMC_FOR_TARGET |
1688 | WINDMC for the target | |
c6b750e1 DJ |
1689 | |
1690 | Use these variables to override the choices made by `configure' or to help | |
1691 | it to find libraries and programs with nonstandard names/locations. | |
1692 | ||
81ecdfbb | 1693 | Report bugs to the package provider. |
c6b750e1 | 1694 | _ACEOF |
81ecdfbb | 1695 | ac_status=$? |
c6b750e1 DJ |
1696 | fi |
1697 | ||
1698 | if test "$ac_init_help" = "recursive"; then | |
1699 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1700 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1701 | test -d "$ac_dir" || |
1702 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1703 | continue | |
c6b750e1 DJ |
1704 | ac_builddir=. |
1705 | ||
81ecdfbb RW |
1706 | case "$ac_dir" in |
1707 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1708 | *) | |
1709 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1710 | # A ".." for each directory in $ac_dir_suffix. | |
1711 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1712 | case $ac_top_builddir_sub in | |
1713 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1714 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1715 | esac ;; | |
1716 | esac | |
1717 | ac_abs_top_builddir=$ac_pwd | |
1718 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1719 | # for backward compatibility: | |
1720 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1721 | |
1722 | case $srcdir in | |
81ecdfbb | 1723 | .) # We are building in place. |
c6b750e1 | 1724 | ac_srcdir=. |
81ecdfbb RW |
1725 | ac_top_srcdir=$ac_top_builddir_sub |
1726 | ac_abs_top_srcdir=$ac_pwd ;; | |
1727 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1728 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1729 | ac_top_srcdir=$srcdir |
1730 | ac_abs_top_srcdir=$srcdir ;; | |
1731 | *) # Relative name. | |
1732 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1733 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1734 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1735 | esac |
81ecdfbb RW |
1736 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1737 | ||
1738 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1739 | # Check for guested configure. | |
1740 | if test -f "$ac_srcdir/configure.gnu"; then | |
1741 | echo && | |
1742 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1743 | elif test -f "$ac_srcdir/configure"; then | |
1744 | echo && | |
1745 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1746 | else |
81ecdfbb RW |
1747 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1748 | fi || ac_status=$? | |
1749 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1750 | done |
1751 | fi | |
1752 | ||
81ecdfbb | 1753 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1754 | if $ac_init_version; then |
1755 | cat <<\_ACEOF | |
81ecdfbb | 1756 | configure |
d0ac1c44 | 1757 | generated by GNU Autoconf 2.69 |
c6b750e1 | 1758 | |
d0ac1c44 | 1759 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
1760 | This configure script is free software; the Free Software Foundation |
1761 | gives unlimited permission to copy, distribute and modify it. | |
1762 | _ACEOF | |
81ecdfbb | 1763 | exit |
c6b750e1 | 1764 | fi |
81ecdfbb RW |
1765 | |
1766 | ## ------------------------ ## | |
1767 | ## Autoconf initialization. ## | |
1768 | ## ------------------------ ## | |
1769 | ||
1770 | # ac_fn_c_try_compile LINENO | |
1771 | # -------------------------- | |
1772 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1773 | ac_fn_c_try_compile () | |
1774 | { | |
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1776 | rm -f conftest.$ac_objext | |
1777 | if { { ac_try="$ac_compile" | |
1778 | case "(($ac_try" in | |
1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1780 | *) ac_try_echo=$ac_try;; | |
1781 | esac | |
1782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1783 | $as_echo "$ac_try_echo"; } >&5 | |
1784 | (eval "$ac_compile") 2>conftest.err | |
1785 | ac_status=$? | |
1786 | if test -s conftest.err; then | |
1787 | grep -v '^ *+' conftest.err >conftest.er1 | |
1788 | cat conftest.er1 >&5 | |
1789 | mv -f conftest.er1 conftest.err | |
1790 | fi | |
1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1792 | test $ac_status = 0; } && { | |
1793 | test -z "$ac_c_werror_flag" || | |
1794 | test ! -s conftest.err | |
1795 | } && test -s conftest.$ac_objext; then : | |
1796 | ac_retval=0 | |
1797 | else | |
1798 | $as_echo "$as_me: failed program was:" >&5 | |
1799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1800 | ||
1801 | ac_retval=1 | |
1802 | fi | |
d0ac1c44 SM |
1803 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1804 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1805 | |
1806 | } # ac_fn_c_try_compile | |
1807 | ||
1808 | # ac_fn_cxx_try_compile LINENO | |
1809 | # ---------------------------- | |
1810 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1811 | ac_fn_cxx_try_compile () | |
1812 | { | |
1813 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1814 | rm -f conftest.$ac_objext | |
1815 | if { { ac_try="$ac_compile" | |
1816 | case "(($ac_try" in | |
1817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1818 | *) ac_try_echo=$ac_try;; | |
1819 | esac | |
1820 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1821 | $as_echo "$ac_try_echo"; } >&5 | |
1822 | (eval "$ac_compile") 2>conftest.err | |
1823 | ac_status=$? | |
1824 | if test -s conftest.err; then | |
1825 | grep -v '^ *+' conftest.err >conftest.er1 | |
1826 | cat conftest.er1 >&5 | |
1827 | mv -f conftest.er1 conftest.err | |
1828 | fi | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1830 | test $ac_status = 0; } && { | |
1831 | test -z "$ac_cxx_werror_flag" || | |
1832 | test ! -s conftest.err | |
1833 | } && test -s conftest.$ac_objext; then : | |
1834 | ac_retval=0 | |
1835 | else | |
1836 | $as_echo "$as_me: failed program was:" >&5 | |
1837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1838 | ||
1839 | ac_retval=1 | |
1840 | fi | |
d0ac1c44 SM |
1841 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1842 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1843 | |
1844 | } # ac_fn_cxx_try_compile | |
1845 | ||
b3676d82 EB |
1846 | # ac_fn_cxx_try_link LINENO |
1847 | # ------------------------- | |
1848 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1849 | ac_fn_cxx_try_link () | |
1850 | { | |
1851 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1853 | if { { ac_try="$ac_link" | |
1854 | case "(($ac_try" in | |
1855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1856 | *) ac_try_echo=$ac_try;; | |
1857 | esac | |
1858 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1859 | $as_echo "$ac_try_echo"; } >&5 | |
1860 | (eval "$ac_link") 2>conftest.err | |
1861 | ac_status=$? | |
1862 | if test -s conftest.err; then | |
1863 | grep -v '^ *+' conftest.err >conftest.er1 | |
1864 | cat conftest.er1 >&5 | |
1865 | mv -f conftest.er1 conftest.err | |
1866 | fi | |
1867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1868 | test $ac_status = 0; } && { | |
1869 | test -z "$ac_cxx_werror_flag" || | |
1870 | test ! -s conftest.err | |
1871 | } && test -s conftest$ac_exeext && { | |
1872 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1873 | test -x conftest$ac_exeext |
b3676d82 EB |
1874 | }; then : |
1875 | ac_retval=0 | |
1876 | else | |
1877 | $as_echo "$as_me: failed program was:" >&5 | |
1878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1879 | ||
1880 | ac_retval=1 | |
1881 | fi | |
1882 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1883 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1884 | # interfere with the next link command; also delete a directory that is | |
1885 | # left behind by Apple's compiler. We do this before executing the actions. | |
1886 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1887 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1888 | as_fn_set_status $ac_retval | |
b3676d82 EB |
1889 | |
1890 | } # ac_fn_cxx_try_link | |
1891 | ||
81ecdfbb RW |
1892 | # ac_fn_c_try_link LINENO |
1893 | # ----------------------- | |
1894 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1895 | ac_fn_c_try_link () | |
1896 | { | |
1897 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1899 | if { { ac_try="$ac_link" | |
1900 | case "(($ac_try" in | |
1901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1902 | *) ac_try_echo=$ac_try;; | |
1903 | esac | |
1904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1905 | $as_echo "$ac_try_echo"; } >&5 | |
1906 | (eval "$ac_link") 2>conftest.err | |
1907 | ac_status=$? | |
1908 | if test -s conftest.err; then | |
1909 | grep -v '^ *+' conftest.err >conftest.er1 | |
1910 | cat conftest.er1 >&5 | |
1911 | mv -f conftest.er1 conftest.err | |
1912 | fi | |
1913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1914 | test $ac_status = 0; } && { | |
1915 | test -z "$ac_c_werror_flag" || | |
1916 | test ! -s conftest.err | |
1917 | } && test -s conftest$ac_exeext && { | |
1918 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1919 | test -x conftest$ac_exeext |
81ecdfbb RW |
1920 | }; then : |
1921 | ac_retval=0 | |
1922 | else | |
1923 | $as_echo "$as_me: failed program was:" >&5 | |
1924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1925 | ||
1926 | ac_retval=1 | |
1927 | fi | |
1928 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1929 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1930 | # interfere with the next link command; also delete a directory that is | |
1931 | # left behind by Apple's compiler. We do this before executing the actions. | |
1932 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1933 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1934 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1935 | |
1936 | } # ac_fn_c_try_link | |
1937 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1938 | This file contains any messages produced by compilers while |
1939 | running configure, to aid debugging if configure makes a mistake. | |
1940 | ||
1941 | It was created by $as_me, which was | |
d0ac1c44 | 1942 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
1943 | |
1944 | $ $0 $@ | |
1945 | ||
1946 | _ACEOF | |
81ecdfbb | 1947 | exec 5>>config.log |
c6b750e1 DJ |
1948 | { |
1949 | cat <<_ASUNAME | |
1950 | ## --------- ## | |
1951 | ## Platform. ## | |
1952 | ## --------- ## | |
1953 | ||
1954 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1955 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1956 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1957 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1958 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1959 | ||
1960 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1961 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1962 | ||
1963 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1964 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1965 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1966 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1967 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1968 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1969 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1970 | ||
1971 | _ASUNAME | |
1972 | ||
1973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1974 | for as_dir in $PATH | |
1975 | do | |
1976 | IFS=$as_save_IFS | |
1977 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1978 | $as_echo "PATH: $as_dir" |
1979 | done | |
1980 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1981 | |
1982 | } >&5 | |
1983 | ||
1984 | cat >&5 <<_ACEOF | |
1985 | ||
1986 | ||
1987 | ## ----------- ## | |
1988 | ## Core tests. ## | |
1989 | ## ----------- ## | |
1990 | ||
1991 | _ACEOF | |
1992 | ||
1993 | ||
1994 | # Keep a trace of the command line. | |
1995 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1996 | # Strip out --silent because we don't want to record it for future runs. | |
1997 | # Also quote any args containing shell meta-characters. | |
1998 | # Make two passes to allow for proper duplicate-argument suppression. | |
1999 | ac_configure_args= | |
2000 | ac_configure_args0= | |
2001 | ac_configure_args1= | |
c6b750e1 DJ |
2002 | ac_must_keep_next=false |
2003 | for ac_pass in 1 2 | |
2004 | do | |
2005 | for ac_arg | |
2006 | do | |
2007 | case $ac_arg in | |
2008 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2009 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2010 | | -silent | --silent | --silen | --sile | --sil) | |
2011 | continue ;; | |
81ecdfbb RW |
2012 | *\'*) |
2013 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
2014 | esac |
2015 | case $ac_pass in | |
81ecdfbb | 2016 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 2017 | 2) |
81ecdfbb | 2018 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
2019 | if test $ac_must_keep_next = true; then |
2020 | ac_must_keep_next=false # Got value, back to normal. | |
2021 | else | |
2022 | case $ac_arg in | |
2023 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2024 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2025 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2026 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2027 | case "$ac_configure_args0 " in | |
2028 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2029 | esac | |
2030 | ;; | |
2031 | -* ) ac_must_keep_next=true ;; | |
2032 | esac | |
2033 | fi | |
81ecdfbb | 2034 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2035 | ;; |
2036 | esac | |
2037 | done | |
2038 | done | |
81ecdfbb RW |
2039 | { ac_configure_args0=; unset ac_configure_args0;} |
2040 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2041 | |
2042 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2043 | # config.log. We remove comments because anyway the quotes in there | |
2044 | # would cause problems or look ugly. | |
81ecdfbb RW |
2045 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2046 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2047 | trap 'exit_status=$? |
2048 | # Save into config.log some information that might help in debugging. | |
2049 | { | |
2050 | echo | |
2051 | ||
d0ac1c44 | 2052 | $as_echo "## ---------------- ## |
c6b750e1 | 2053 | ## Cache variables. ## |
d0ac1c44 | 2054 | ## ---------------- ##" |
c6b750e1 DJ |
2055 | echo |
2056 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2057 | ( |
2058 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2059 | eval ac_val=\$$ac_var | |
2060 | case $ac_val in #( | |
2061 | *${as_nl}*) | |
2062 | case $ac_var in #( | |
2063 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2064 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2065 | esac | |
2066 | case $ac_var in #( | |
2067 | _ | IFS | as_nl) ;; #( | |
2068 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2069 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2070 | esac ;; | |
2071 | esac | |
2072 | done | |
c6b750e1 | 2073 | (set) 2>&1 | |
81ecdfbb RW |
2074 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2075 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2076 | sed -n \ |
81ecdfbb RW |
2077 | "s/'\''/'\''\\\\'\'''\''/g; |
2078 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2079 | ;; #( | |
c6b750e1 | 2080 | *) |
81ecdfbb | 2081 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2082 | ;; |
81ecdfbb RW |
2083 | esac | |
2084 | sort | |
2085 | ) | |
c6b750e1 DJ |
2086 | echo |
2087 | ||
d0ac1c44 | 2088 | $as_echo "## ----------------- ## |
c6b750e1 | 2089 | ## Output variables. ## |
d0ac1c44 | 2090 | ## ----------------- ##" |
c6b750e1 DJ |
2091 | echo |
2092 | for ac_var in $ac_subst_vars | |
2093 | do | |
81ecdfbb RW |
2094 | eval ac_val=\$$ac_var |
2095 | case $ac_val in | |
2096 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2097 | esac | |
2098 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2099 | done | sort |
2100 | echo | |
2101 | ||
2102 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2103 | $as_echo "## ------------------- ## |
81ecdfbb | 2104 | ## File substitutions. ## |
d0ac1c44 | 2105 | ## ------------------- ##" |
c6b750e1 DJ |
2106 | echo |
2107 | for ac_var in $ac_subst_files | |
2108 | do | |
81ecdfbb RW |
2109 | eval ac_val=\$$ac_var |
2110 | case $ac_val in | |
2111 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2112 | esac | |
2113 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2114 | done | sort |
2115 | echo | |
2116 | fi | |
2117 | ||
2118 | if test -s confdefs.h; then | |
d0ac1c44 | 2119 | $as_echo "## ----------- ## |
c6b750e1 | 2120 | ## confdefs.h. ## |
d0ac1c44 | 2121 | ## ----------- ##" |
c6b750e1 | 2122 | echo |
81ecdfbb | 2123 | cat confdefs.h |
c6b750e1 DJ |
2124 | echo |
2125 | fi | |
2126 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2127 | $as_echo "$as_me: caught signal $ac_signal" |
2128 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2129 | } >&5 |
81ecdfbb RW |
2130 | rm -f core *.core core.conftest.* && |
2131 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2132 | exit $exit_status |
81ecdfbb | 2133 | ' 0 |
c6b750e1 | 2134 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2135 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2136 | done |
2137 | ac_signal=0 | |
2138 | ||
2139 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2140 | rm -f -r conftest* confdefs.h |
2141 | ||
2142 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2143 | |
2144 | # Predefined preprocessor variables. | |
2145 | ||
2146 | cat >>confdefs.h <<_ACEOF | |
2147 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2148 | _ACEOF | |
2149 | ||
c6b750e1 DJ |
2150 | cat >>confdefs.h <<_ACEOF |
2151 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2152 | _ACEOF | |
2153 | ||
c6b750e1 DJ |
2154 | cat >>confdefs.h <<_ACEOF |
2155 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2156 | _ACEOF | |
2157 | ||
c6b750e1 DJ |
2158 | cat >>confdefs.h <<_ACEOF |
2159 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2160 | _ACEOF | |
2161 | ||
c6b750e1 DJ |
2162 | cat >>confdefs.h <<_ACEOF |
2163 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2164 | _ACEOF | |
2165 | ||
81ecdfbb RW |
2166 | cat >>confdefs.h <<_ACEOF |
2167 | #define PACKAGE_URL "$PACKAGE_URL" | |
2168 | _ACEOF | |
2169 | ||
c6b750e1 DJ |
2170 | |
2171 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2172 | # Prefer an explicitly selected file to automatically selected ones. |
2173 | ac_site_file1=NONE | |
2174 | ac_site_file2=NONE | |
2175 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2176 | # We do not want a PATH search for config.site. |
2177 | case $CONFIG_SITE in #(( | |
2178 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2179 | */*) ac_site_file1=$CONFIG_SITE;; | |
2180 | *) ac_site_file1=./$CONFIG_SITE;; | |
2181 | esac | |
81ecdfbb RW |
2182 | elif test "x$prefix" != xNONE; then |
2183 | ac_site_file1=$prefix/share/config.site | |
2184 | ac_site_file2=$prefix/etc/config.site | |
2185 | else | |
2186 | ac_site_file1=$ac_default_prefix/share/config.site | |
2187 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2188 | fi |
81ecdfbb RW |
2189 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2190 | do | |
2191 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2192 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2194 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2195 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2196 | . "$ac_site_file" \ |
2197 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2198 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2199 | as_fn_error $? "failed to load site script $ac_site_file | |
2200 | See \`config.log' for more details" "$LINENO" 5; } | |
a0da8069 NN |
2201 | fi |
2202 | done | |
2203 | ||
2204 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2205 | # Some versions of bash will fail to source /dev/null (special files |
2206 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2207 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2209 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2210 | case $cache_file in |
81ecdfbb RW |
2211 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2212 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2213 | esac |
2214 | fi | |
a0da8069 | 2215 | else |
81ecdfbb RW |
2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2217 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2218 | >$cache_file |
2219 | fi | |
2220 | ||
2221 | # Check that the precious variables saved in the cache have kept the same | |
2222 | # value. | |
2223 | ac_cache_corrupted=false | |
81ecdfbb | 2224 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2225 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2226 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2227 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2228 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2229 | case $ac_old_set,$ac_new_set in |
2230 | set,) | |
81ecdfbb RW |
2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2232 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2233 | ac_cache_corrupted=: ;; |
2234 | ,set) | |
81ecdfbb RW |
2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2236 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2237 | ac_cache_corrupted=: ;; |
2238 | ,);; | |
2239 | *) | |
2240 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2241 | # differences in whitespace do not lead to failure. |
2242 | ac_old_val_w=`echo x $ac_old_val` | |
2243 | ac_new_val_w=`echo x $ac_new_val` | |
2244 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2246 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2247 | ac_cache_corrupted=: | |
2248 | else | |
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2250 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2251 | eval $ac_var=\$ac_old_val | |
2252 | fi | |
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2254 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2256 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2257 | fi;; |
2258 | esac | |
2259 | # Pass precious variables to config.status. | |
2260 | if test "$ac_new_set" = set; then | |
2261 | case $ac_new_val in | |
81ecdfbb | 2262 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2263 | *) ac_arg=$ac_var=$ac_new_val ;; |
2264 | esac | |
2265 | case " $ac_configure_args " in | |
2266 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2267 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2268 | esac |
2269 | fi | |
2270 | done | |
2271 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2273 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2275 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2276 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
a0da8069 | 2277 | fi |
81ecdfbb RW |
2278 | ## -------------------- ## |
2279 | ## Main body of script. ## | |
2280 | ## -------------------- ## | |
a0da8069 NN |
2281 | |
2282 | ac_ext=c | |
a0da8069 | 2283 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2287 | ||
2288 | ||
2289 | ||
2290 | ||
c6b750e1 DJ |
2291 | |
2292 | ||
34a0f3cf | 2293 | |
c6b750e1 | 2294 | |
5b553f7e RW |
2295 | progname=$0 |
2296 | # if PWD already has a value, it is probably wrong. | |
2297 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2298 | ||
2299 | # Export original configure arguments for use by sub-configures. | |
2300 | # Quote arguments with shell meta charatcers. | |
2301 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2302 | set -- "$progname" "$@" | |
2303 | for ac_arg | |
2304 | do | |
2305 | case "$ac_arg" in | |
2306 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2307 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2308 | # if the argument is of the form -foo=baz, quote the baz part only | |
2309 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2310 | *) ;; | |
2311 | esac | |
2312 | # Add the quoted argument to the list. | |
2313 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2314 | done | |
2315 | if test "$silent" = yes; then | |
2316 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2317 | fi | |
2318 | # Remove the initial space we just introduced and, as these will be | |
2319 | # expanded by make, quote '$'. | |
2320 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2321 | ||
c6b750e1 DJ |
2322 | |
2323 | # Find the build, host, and target systems. | |
a0da8069 | 2324 | ac_aux_dir= |
81ecdfbb | 2325 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2326 | if test -f "$ac_dir/install-sh"; then |
2327 | ac_aux_dir=$ac_dir | |
2328 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2329 | break | |
2330 | elif test -f "$ac_dir/install.sh"; then | |
2331 | ac_aux_dir=$ac_dir | |
2332 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2333 | break | |
2334 | elif test -f "$ac_dir/shtool"; then | |
2335 | ac_aux_dir=$ac_dir | |
2336 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2337 | break | |
2338 | fi | |
a0da8069 NN |
2339 | done |
2340 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2341 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2342 | fi |
81ecdfbb RW |
2343 | |
2344 | # These three variables are undocumented and unsupported, | |
2345 | # and are intended to be withdrawn in a future Autoconf release. | |
2346 | # They can cause serious problems if a builder's source tree is in a directory | |
2347 | # whose full name contains unusual characters. | |
2348 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2349 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2350 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2351 | ||
a0da8069 | 2352 | |
c6b750e1 | 2353 | # Make sure we can run config.sub. |
81ecdfbb | 2354 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2355 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2356 | |
2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2358 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2359 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2360 | $as_echo_n "(cached) " >&6 |
2361 | else | |
2362 | ac_build_alias=$build_alias | |
2363 | test "x$ac_build_alias" = x && | |
2364 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2365 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2366 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2367 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2368 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2369 | |
2370 | fi | |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2372 | $as_echo "$ac_cv_build" >&6; } | |
2373 | case $ac_cv_build in | |
2374 | *-*-*) ;; | |
d0ac1c44 | 2375 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2376 | esac |
c6b750e1 | 2377 | build=$ac_cv_build |
81ecdfbb RW |
2378 | ac_save_IFS=$IFS; IFS='-' |
2379 | set x $ac_cv_build | |
2380 | shift | |
2381 | build_cpu=$1 | |
2382 | build_vendor=$2 | |
2383 | shift; shift | |
2384 | # Remember, the first character of IFS is used to create $*, | |
2385 | # except with old shells: | |
2386 | build_os=$* | |
2387 | IFS=$ac_save_IFS | |
2388 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2389 | |
a0da8069 | 2390 | |
c6b750e1 DJ |
2391 | case ${build_alias} in |
2392 | "") build_noncanonical=${build} ;; | |
2393 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2394 | esac |
2395 | ||
2396 | ||
cac3d6c4 | 2397 | |
c6b750e1 DJ |
2398 | case ${host_alias} in |
2399 | "") host_noncanonical=${build_noncanonical} ;; | |
2400 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2401 | esac |
2402 | ||
cac3d6c4 | 2403 | |
c6b750e1 DJ |
2404 | |
2405 | case ${target_alias} in | |
2406 | "") target_noncanonical=${host_noncanonical} ;; | |
2407 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2408 | esac |
2409 | ||
cac3d6c4 | 2410 | |
c6b750e1 DJ |
2411 | |
2412 | ||
2413 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2414 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2415 | NONENONEs,x,x, && | |
c6b750e1 | 2416 | program_transform_name=s,y,y, |
cac3d6c4 | 2417 | |
81ecdfbb RW |
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2419 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2420 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2421 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 2422 | else |
81ecdfbb RW |
2423 | if test "x$host_alias" = x; then |
2424 | ac_cv_host=$ac_cv_build | |
2425 | else | |
2426 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2427 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2428 | fi |
c6b750e1 DJ |
2429 | |
2430 | fi | |
81ecdfbb RW |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2432 | $as_echo "$ac_cv_host" >&6; } | |
2433 | case $ac_cv_host in | |
2434 | *-*-*) ;; | |
d0ac1c44 | 2435 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2436 | esac |
c6b750e1 | 2437 | host=$ac_cv_host |
81ecdfbb RW |
2438 | ac_save_IFS=$IFS; IFS='-' |
2439 | set x $ac_cv_host | |
2440 | shift | |
2441 | host_cpu=$1 | |
2442 | host_vendor=$2 | |
2443 | shift; shift | |
2444 | # Remember, the first character of IFS is used to create $*, | |
2445 | # except with old shells: | |
2446 | host_os=$* | |
2447 | IFS=$ac_save_IFS | |
2448 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2449 | |
2450 | ||
81ecdfbb RW |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2452 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2453 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2454 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 2455 | else |
81ecdfbb RW |
2456 | if test "x$target_alias" = x; then |
2457 | ac_cv_target=$ac_cv_host | |
2458 | else | |
2459 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2460 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2461 | fi |
c6b750e1 | 2462 | |
cac3d6c4 | 2463 | fi |
81ecdfbb RW |
2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2465 | $as_echo "$ac_cv_target" >&6; } | |
2466 | case $ac_cv_target in | |
2467 | *-*-*) ;; | |
d0ac1c44 | 2468 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2469 | esac |
c6b750e1 | 2470 | target=$ac_cv_target |
81ecdfbb RW |
2471 | ac_save_IFS=$IFS; IFS='-' |
2472 | set x $ac_cv_target | |
2473 | shift | |
2474 | target_cpu=$1 | |
2475 | target_vendor=$2 | |
2476 | shift; shift | |
2477 | # Remember, the first character of IFS is used to create $*, | |
2478 | # except with old shells: | |
2479 | target_os=$* | |
2480 | IFS=$ac_save_IFS | |
2481 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2482 | |
2483 | ||
2484 | # The aliases save the names the user supplied, while $host etc. | |
2485 | # will get canonicalized. | |
2486 | test -n "$target_alias" && | |
2487 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2488 | NONENONEs,x,x, && | |
2489 | program_prefix=${target_alias}- | |
81ecdfbb | 2490 | |
a0da8069 | 2491 | test "$program_prefix" != NONE && |
81ecdfbb | 2492 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2493 | # Use a double $ so make ignores it. |
2494 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2495 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2496 | # Double any \ or $. | |
c6b750e1 | 2497 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2498 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2499 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2500 | |
a0da8069 NN |
2501 | |
2502 | ||
e5c3f801 NN |
2503 | # Get 'install' or 'install-sh' and its variants. |
2504 | # Find a good install program. We prefer a C program (faster), | |
2505 | # so one script is as good as another. But avoid the broken or | |
2506 | # incompatible versions: | |
2507 | # SysV /etc/install, /usr/sbin/install | |
2508 | # SunOS /usr/etc/install | |
2509 | # IRIX /sbin/install | |
2510 | # AIX /bin/install | |
c6b750e1 | 2511 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2512 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2513 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2514 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2515 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2516 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2517 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2519 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2520 | if test -z "$INSTALL"; then |
d0ac1c44 | 2521 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2522 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
2523 | else |
2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2525 | for as_dir in $PATH | |
2526 | do | |
2527 | IFS=$as_save_IFS | |
2528 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2529 | # Account for people who put trailing slashes in PATH elements. |
2530 | case $as_dir/ in #(( | |
2531 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2532 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2533 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2534 | /usr/ucb/* ) ;; |
2535 | *) | |
2536 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2537 | # Don't use installbsd from OSF since it installs stuff as root | |
2538 | # by default. | |
2539 | for ac_prog in ginstall scoinst install; do | |
2540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2541 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
e5c3f801 | 2542 | if test $ac_prog = install && |
c6b750e1 | 2543 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2544 | # AIX install. It has an incompatible calling convention. |
2545 | : | |
c6b750e1 DJ |
2546 | elif test $ac_prog = install && |
2547 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2548 | # program-specific install script used by HP pwplus--don't use. | |
2549 | : | |
e5c3f801 | 2550 | else |
58c85be7 RW |
2551 | rm -rf conftest.one conftest.two conftest.dir |
2552 | echo one > conftest.one | |
2553 | echo two > conftest.two | |
2554 | mkdir conftest.dir | |
2555 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2556 | test -s conftest.one && test -s conftest.two && | |
2557 | test -s conftest.dir/conftest.one && | |
2558 | test -s conftest.dir/conftest.two | |
2559 | then | |
2560 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2561 | break 3 | |
2562 | fi | |
e5c3f801 NN |
2563 | fi |
2564 | fi | |
2565 | done | |
c6b750e1 DJ |
2566 | done |
2567 | ;; | |
2568 | esac | |
81ecdfbb RW |
2569 | |
2570 | done | |
2571 | IFS=$as_save_IFS | |
c6b750e1 | 2572 | |
58c85be7 | 2573 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2574 | |
2575 | fi | |
2576 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2577 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2578 | else |
58c85be7 RW |
2579 | # As a last resort, use the slow shell script. Don't cache a |
2580 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2581 | # break other packages using the cache if that directory is |
58c85be7 | 2582 | # removed, or if the value is a relative name. |
c6b750e1 | 2583 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2584 | fi |
2585 | fi | |
81ecdfbb RW |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2587 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2588 | |
2589 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2590 | # It thinks the first close brace ends the variable substitution. | |
2591 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2592 | ||
c6b750e1 | 2593 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2594 | |
2595 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2596 | ||
81ecdfbb RW |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2598 | $as_echo_n "checking whether ln works... " >&6; } | |
d0ac1c44 | 2599 | if ${acx_cv_prog_LN+:} false; then : |
81ecdfbb | 2600 | $as_echo_n "(cached) " >&6 |
656fdd47 PB |
2601 | else |
2602 | rm -f conftestdata_t | |
2603 | echo >conftestdata_f | |
2604 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2605 | then | |
2606 | acx_cv_prog_LN=ln | |
2607 | else | |
2608 | acx_cv_prog_LN=no | |
2609 | fi | |
2610 | rm -f conftestdata_f conftestdata_t | |
2611 | ||
2612 | fi | |
2613 | if test $acx_cv_prog_LN = no; then | |
2614 | LN="cp" | |
81ecdfbb RW |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2616 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2617 | else |
2618 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2620 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2621 | fi |
2622 | ||
81ecdfbb RW |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2624 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2625 | LN_S=$as_ln_s |
2626 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2628 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2629 | else |
81ecdfbb RW |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2631 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2632 | fi |
2633 | ||
8e957354 PB |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2635 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 2636 | if ${ac_cv_path_SED+:} false; then : |
8e957354 PB |
2637 | $as_echo_n "(cached) " >&6 |
2638 | else | |
2639 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2640 | for ac_i in 1 2 3 4 5 6 7; do | |
2641 | ac_script="$ac_script$as_nl$ac_script" | |
2642 | done | |
2643 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2644 | { ac_script=; unset ac_script;} | |
2645 | if test -z "$SED"; then | |
2646 | ac_path_SED_found=false | |
2647 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2649 | for as_dir in $PATH | |
2650 | do | |
2651 | IFS=$as_save_IFS | |
2652 | test -z "$as_dir" && as_dir=. | |
2653 | for ac_prog in sed gsed; do | |
2654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2655 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 2656 | as_fn_executable_p "$ac_path_SED" || continue |
8e957354 PB |
2657 | # Check for GNU ac_path_SED and select it if it is found. |
2658 | # Check for GNU $ac_path_SED | |
2659 | case `"$ac_path_SED" --version 2>&1` in | |
2660 | *GNU*) | |
2661 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2662 | *) | |
2663 | ac_count=0 | |
2664 | $as_echo_n 0123456789 >"conftest.in" | |
2665 | while : | |
2666 | do | |
2667 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2668 | mv "conftest.tmp" "conftest.in" | |
2669 | cp "conftest.in" "conftest.nl" | |
2670 | $as_echo '' >> "conftest.nl" | |
2671 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2672 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2673 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2674 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2675 | # Best one so far, save it but keep looking for a better one | |
2676 | ac_cv_path_SED="$ac_path_SED" | |
2677 | ac_path_SED_max=$ac_count | |
2678 | fi | |
2679 | # 10*(2^10) chars as input seems more than enough | |
2680 | test $ac_count -gt 10 && break | |
2681 | done | |
2682 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2683 | esac | |
2684 | ||
2685 | $ac_path_SED_found && break 3 | |
2686 | done | |
2687 | done | |
2688 | done | |
2689 | IFS=$as_save_IFS | |
2690 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 2691 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8e957354 PB |
2692 | fi |
2693 | else | |
2694 | ac_cv_path_SED=$SED | |
2695 | fi | |
2696 | ||
2697 | fi | |
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2699 | $as_echo "$ac_cv_path_SED" >&6; } | |
2700 | SED="$ac_cv_path_SED" | |
2701 | rm -f conftest.sed | |
2702 | ||
2703 | for ac_prog in gawk mawk nawk awk | |
2704 | do | |
2705 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2706 | set dummy $ac_prog; ac_word=$2 | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2708 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2709 | if ${ac_cv_prog_AWK+:} false; then : |
8e957354 PB |
2710 | $as_echo_n "(cached) " >&6 |
2711 | else | |
2712 | if test -n "$AWK"; then | |
2713 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2714 | else | |
2715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2716 | for as_dir in $PATH | |
2717 | do | |
2718 | IFS=$as_save_IFS | |
2719 | test -z "$as_dir" && as_dir=. | |
2720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8e957354 PB |
2722 | ac_cv_prog_AWK="$ac_prog" |
2723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2724 | break 2 | |
2725 | fi | |
2726 | done | |
2727 | done | |
2728 | IFS=$as_save_IFS | |
2729 | ||
2730 | fi | |
2731 | fi | |
2732 | AWK=$ac_cv_prog_AWK | |
2733 | if test -n "$AWK"; then | |
2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2735 | $as_echo "$AWK" >&6; } | |
2736 | else | |
2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2738 | $as_echo "no" >&6; } | |
2739 | fi | |
2740 | ||
2741 | ||
2742 | test -n "$AWK" && break | |
2743 | done | |
2744 | ||
e5c3f801 | 2745 | |
0fdbe983 DJ |
2746 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2747 | ||
2748 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2749 | # a relative path. | |
2750 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2751 | INSTALL="${srcpwd}/install-sh -c" | |
2752 | fi | |
2753 | ||
a0da8069 NN |
2754 | # Set srcdir to "." if that's what it is. |
2755 | # This is important for multilib support. | |
2756 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2757 | if test "${pwd}" = "${srcpwd}" ; then |
2758 | srcdir=. | |
252b5132 RH |
2759 | fi |
2760 | ||
a0da8069 | 2761 | topsrcdir=$srcpwd |
252b5132 | 2762 | |
a0da8069 | 2763 | extra_host_args= |
afefada0 | 2764 | |
a0da8069 NN |
2765 | ### To add a new directory to the tree, first choose whether it is a target |
2766 | ### or a host dependent tool. Then put it into the appropriate list | |
2767 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2768 | |
c6b750e1 | 2769 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2770 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2771 | |
c6b750e1 DJ |
2772 | # Dependency sorting is only needed when *configuration* must be done in |
2773 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2774 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2775 | |
a0da8069 NN |
2776 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2777 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2778 | |
6a9cf61e PB |
2779 | # these library is used by various programs built for the build |
2780 | # environment | |
2781 | # | |
1b6c0831 | 2782 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2783 | |
2784 | # these tools are built for the build environment | |
a90ef4bf | 2785 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2786 | |
a0da8069 | 2787 | # these libraries are used by various programs built for the host environment |
1b6c0831 | 2788 | #f |
0e65dfba | 2789 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
a0da8069 | 2790 | |
a0da8069 NN |
2791 | # these tools are built for the host environment |
2792 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2793 | # know that we are building the simulator. | |
2794 | # binutils, gas and ld appear in that order because it makes sense to run | |
2795 | # "make check" in that particular order. | |
e6de499b | 2796 | # If --enable-gold is used, "gold" may replace "ld". |
919adfe8 | 2797 | 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 | 2798 | |
a0da8069 NN |
2799 | # these libraries are built for the target environment, and are built after |
2800 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2801 | # Note that libiberty is not a target library. |
b1299c4e | 2802 | target_libraries="target-libgcc \ |
2bf680c4 | 2803 | target-libbacktrace \ |
a0da8069 NN |
2804 | target-libgloss \ |
2805 | target-newlib \ | |
cff87f51 | 2806 | target-libgomp \ |
1b6c0831 | 2807 | target-liboffloadmic \ |
bf41f30d | 2808 | target-libhsail-rt \ |
7ec59b9e | 2809 | target-libatomic \ |
d32e2926 | 2810 | target-libitm \ |
b9459e83 | 2811 | target-libstdc++-v3 \ |
5286fdef | 2812 | target-libsanitizer \ |
95e43135 | 2813 | target-libvtv \ |
bb780410 | 2814 | target-libssp \ |
e552509b | 2815 | target-libquadmath \ |
4b1cb4fe | 2816 | target-libgfortran \ |
05a13254 | 2817 | target-libffi \ |
a2592b1b | 2818 | target-libobjc \ |
e552509b | 2819 | target-libada \ |
e3f56a99 | 2820 | target-libgo" |
a0da8069 | 2821 | |
9c14acb8 NN |
2822 | # these tools are built using the target libraries, and are intended to |
2823 | # run only in the target environment | |
a0da8069 | 2824 | # |
9c14acb8 | 2825 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2826 | # list belongs in this list. |
a0da8069 | 2827 | # |
a90ef4bf | 2828 | target_tools="target-rda" |
252b5132 | 2829 | |
a0da8069 | 2830 | ################################################################################ |
252b5132 | 2831 | |
a0da8069 NN |
2832 | ## All tools belong in one of the four categories, and are assigned above |
2833 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2834 | ## is important because configure will choke if they ever get through. | |
2835 | ## ${configdirs} is directories we build using the host tools. | |
2836 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2837 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2838 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2839 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2840 | |
9cc8ae67 PB |
2841 | |
2842 | ||
a0da8069 | 2843 | ################################################################################ |
252b5132 | 2844 | |
a0da8069 | 2845 | srcname="gnu development package" |
252b5132 | 2846 | |
a0da8069 NN |
2847 | # This gets set non-empty for some net releases of packages. |
2848 | appdirs="" | |
252b5132 | 2849 | |
a0da8069 NN |
2850 | # Define is_cross_compiler to save on calls to 'test'. |
2851 | is_cross_compiler= | |
2852 | if test x"${host}" = x"${target}" ; then | |
2853 | is_cross_compiler=no | |
252b5132 | 2854 | else |
a0da8069 | 2855 | is_cross_compiler=yes |
c6b750e1 | 2856 | fi |
252b5132 | 2857 | |
9175bfc0 | 2858 | # Find the build and target subdir names. |
dd12c3a8 | 2859 | |
66a79c16 DJ |
2860 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2861 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2862 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2863 | # However, they still use the build modules, because the corresponding | |
2864 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2865 | # finishes. So: | |
2866 | # - build_subdir is where we find build modules, and never changes. | |
2867 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2868 | ||
2869 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2870 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2871 | |
81ecdfbb RW |
2872 | # Check whether --with-build-libsubdir was given. |
2873 | if test "${with_build_libsubdir+set}" = set; then : | |
2874 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2875 | else |
2876 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2877 | fi |
2878 | ||
b00612cc PB |
2879 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2880 | if ( test $srcdir = . && test -d gcc ) \ | |
2881 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2882 | host_subdir="host-${host_noncanonical}" | |
2883 | else | |
2884 | host_subdir=. | |
2885 | fi | |
dd12c3a8 NN |
2886 | # No prefix. |
2887 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2888 | |
2fd0b40b RW |
2889 | # Be sure to cover against remnants of an in-tree build. |
2890 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
d0ac1c44 | 2891 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
2fd0b40b RW |
2892 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2893 | fi | |
252b5132 | 2894 | |
a0da8069 NN |
2895 | # Skipdirs are removed silently. |
2896 | skipdirs= | |
2897 | # Noconfigdirs are removed loudly. | |
2898 | noconfigdirs="" | |
252b5132 | 2899 | |
a0da8069 NN |
2900 | use_gnu_ld= |
2901 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2902 | if test x$with_gnu_ld = xno ; then | |
2903 | use_gnu_ld=no | |
93f9b408 | 2904 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2905 | fi |
2906 | ||
a0da8069 NN |
2907 | use_gnu_as= |
2908 | # Make sure we don't let GNU as be added if we didn't want it. | |
2909 | if test x$with_gnu_as = xno ; then | |
2910 | use_gnu_as=no | |
2911 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2912 | fi |
2913 | ||
700d40ca | 2914 | use_included_zlib= |
cf39cfc5 L |
2915 | |
2916 | # Check whether --with-system-zlib was given. | |
2917 | if test "${with_system_zlib+set}" = set; then : | |
2918 | withval=$with_system_zlib; | |
2919 | fi | |
2920 | ||
700d40ca ILT |
2921 | # Make sure we don't let ZLIB be added if we didn't want it. |
2922 | if test x$with_system_zlib = xyes ; then | |
2923 | use_included_zlib=no | |
2924 | noconfigdirs="$noconfigdirs zlib" | |
2925 | fi | |
2926 | ||
69961a84 ДП |
2927 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2928 | # is provided. | |
2929 | if test x$with_system_readline = xyes ; then | |
2930 | noconfigdirs="$noconfigdirs readline" | |
2931 | fi | |
2932 | ||
c6b750e1 | 2933 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2934 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2935 | |
a0da8069 NN |
2936 | case ${with_x} in |
2937 | yes | "") ;; # the default value for this tree is that X11 is available | |
2938 | no) | |
675c6968 | 2939 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2940 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2941 | enable_gdbtk=no |
a0da8069 NN |
2942 | ;; |
2943 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2944 | esac | |
252b5132 | 2945 | |
0377a422 | 2946 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2947 | # Remove these if host=target. |
2948 | cross_only="target-libgloss target-newlib target-opcodes" | |
2949 | ||
2950 | case $is_cross_compiler in | |
2951 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2952 | esac |
252b5132 | 2953 | |
a0da8069 NN |
2954 | # If both --with-headers and --with-libs are specified, default to |
2955 | # --without-newlib. | |
32be62b5 RS |
2956 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2957 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2958 | if test x"${with_newlib}" = x ; then |
2959 | with_newlib=no | |
2960 | fi | |
252b5132 RH |
2961 | fi |
2962 | ||
a0da8069 NN |
2963 | # Recognize --with-newlib/--without-newlib. |
2964 | case ${with_newlib} in | |
2965 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2966 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2967 | esac | |
252b5132 | 2968 | |
1b6c0831 L |
2969 | # Check whether --enable-as-accelerator-for was given. |
2970 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2971 | enableval=$enable_as_accelerator_for; | |
2972 | fi | |
2973 | ||
2974 | ||
2975 | # Check whether --enable-offload-targets was given. | |
2976 | if test "${enable_offload_targets+set}" = set; then : | |
2977 | enableval=$enable_offload_targets; | |
2978 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 2979 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
2980 | fi |
2981 | ||
2982 | else | |
2983 | enable_offload_targets= | |
2984 | fi | |
2985 | ||
2986 | ||
c7791212 NC |
2987 | # Handle --enable-gold, --enable-ld. |
2988 | # --disable-gold [--enable-ld] | |
2989 | # Build only ld. Default option. | |
d3b50760 L |
2990 | # --enable-gold [--enable-ld] |
2991 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2992 | # as "ld.bfd" and "ld". | |
2993 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2994 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2995 | # install ld as "ld.bfd". | |
2996 | # --enable-gold[=default] --disable-ld | |
2997 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2998 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2999 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3000 | # and ld.bfd). | |
c7791212 NC |
3001 | # In other words, ld is default |
3002 | # --enable-gold=default --enable-ld=default | |
3003 | # Error. | |
3004 | ||
3005 | default_ld= | |
81ecdfbb RW |
3006 | # Check whether --enable-gold was given. |
3007 | if test "${enable_gold+set}" = set; then : | |
3008 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
3009 | else |
3010 | ENABLE_GOLD=no | |
81ecdfbb RW |
3011 | fi |
3012 | ||
c7791212 NC |
3013 | case "${ENABLE_GOLD}" in |
3014 | yes|default) | |
e6de499b NC |
3015 | # Check for ELF target. |
3016 | is_elf=no | |
3017 | case "${target}" in | |
3018 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 3019 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 3020 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
d85e70a3 | 3021 | | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*) |
e6de499b NC |
3022 | case "${target}" in |
3023 | *-*-linux*aout* | *-*-linux*oldld*) | |
3024 | ;; | |
3025 | *) | |
3026 | is_elf=yes | |
3027 | ;; | |
3028 | esac | |
3029 | esac | |
3030 | ||
3031 | if test "$is_elf" = "yes"; then | |
3032 | # Check for target supported by gold. | |
93f9b408 | 3033 | case "${target}" in |
6d26190c | 3034 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 3035 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
3036 | configdirs="$configdirs gold" |
3037 | if test x${ENABLE_GOLD} = xdefault; then | |
3038 | default_ld=gold | |
3039 | fi | |
e6de499b | 3040 | ENABLE_GOLD=yes |
93f9b408 ILT |
3041 | ;; |
3042 | esac | |
e6de499b NC |
3043 | fi |
3044 | ;; | |
3045 | no) | |
3046 | ;; | |
3047 | *) | |
d0ac1c44 | 3048 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3049 | ;; |
c7791212 NC |
3050 | esac |
3051 | ||
3052 | # Check whether --enable-ld was given. | |
3053 | if test "${enable_ld+set}" = set; then : | |
3054 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3055 | else | |
3056 | ENABLE_LD=yes | |
3057 | fi | |
3058 | ||
3059 | ||
3060 | case "${ENABLE_LD}" in | |
3061 | default) | |
d3b50760 | 3062 | if test x${default_ld} != x; then |
d0ac1c44 | 3063 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3064 | fi |
3065 | ;; | |
3066 | yes) | |
3067 | ;; | |
3068 | no) | |
3069 | if test x${ENABLE_GOLD} != xyes; then | |
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3071 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3072 | fi | |
3073 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3074 | ;; | |
3075 | *) | |
d0ac1c44 | 3076 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3077 | ;; |
3078 | esac | |
93f9b408 | 3079 | |
bb368aad VM |
3080 | # Check whether --enable-gprofng was given. |
3081 | if test "${enable_gprofng+set}" = set; then : | |
3082 | enableval=$enable_gprofng; enable_gprofng=$enableval | |
3083 | else | |
3084 | enable_gprofng=yes | |
3085 | fi | |
3086 | ||
3087 | if test "$enable_gprofng" = "yes"; then | |
3088 | case "${target}" in | |
3089 | x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*) | |
3090 | configdirs="$configdirs gprofng" | |
3091 | ;; | |
3092 | esac | |
3093 | fi | |
3094 | ||
3095 | ||
edeefb67 L |
3096 | # PR gas/19109 |
3097 | # Decide the default method for compressing debug sections. | |
3098 | # Provide a configure time option to override our default. | |
3099 | # Check whether --enable-compressed_debug_sections was given. | |
3100 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3101 | enableval=$enable_compressed_debug_sections; | |
3102 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3103 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3104 | fi |
3105 | ||
3106 | else | |
3107 | enable_compressed_debug_sections= | |
3108 | fi | |
3109 | ||
3110 | ||
a0da8069 | 3111 | # Configure extra directories which are host specific |
252b5132 | 3112 | |
a0da8069 NN |
3113 | case "${host}" in |
3114 | *-cygwin*) | |
3115 | configdirs="$configdirs libtermcap" ;; | |
3116 | esac | |
252b5132 | 3117 | |
59f7ec45 HPN |
3118 | # A target can indicate whether a language isn't supported for some reason. |
3119 | # Only spaces may be used in this macro; not newlines or tabs. | |
3120 | unsupported_languages= | |
3121 | ||
c6b750e1 | 3122 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3123 | # target this usually means that a port of the program doesn't |
3124 | # exist yet. | |
252b5132 | 3125 | |
a0da8069 | 3126 | case "${host}" in |
3516a403 | 3127 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3128 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3129 | ;; |
a0da8069 | 3130 | esac |
252b5132 | 3131 | |
e5f2f7d9 LM |
3132 | # Default to --disable-year2038 until we can handle differences between |
3133 | # projects that use gnulib (which understands year 2038) and projects that | |
3134 | # do not (like BFD). | |
3135 | # Check whether --enable-year2038 was given. | |
3136 | if test "${enable_year2038+set}" = set; then : | |
3137 | enableval=$enable_year2038; ENABLE_YEAR2038=$enableval | |
3138 | else | |
3139 | ENABLE_YEAR2038=no | |
3140 | fi | |
3141 | ||
3142 | enable_year2038= | |
3143 | if test "${ENABLE_YEAR2038}" = "no" ; then | |
3144 | enable_year2038=no | |
3145 | fi | |
4b1cb4fe | 3146 | |
89a1e9c3 PB |
3147 | # Check whether --enable-libquadmath was given. |
3148 | if test "${enable_libquadmath+set}" = set; then : | |
3149 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3150 | else | |
3151 | ENABLE_LIBQUADMATH=yes | |
3152 | fi | |
3153 | ||
3154 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3155 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3156 | fi | |
3157 | ||
3158 | ||
3159 | # Check whether --enable-libquadmath-support was given. | |
3160 | if test "${enable_libquadmath_support+set}" = set; then : | |
3161 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3162 | else | |
3163 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3164 | fi | |
3165 | ||
3166 | enable_libquadmath_support= | |
3167 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3168 | enable_libquadmath_support=no | |
3169 | fi | |
3170 | ||
3171 | ||
81ecdfbb RW |
3172 | # Check whether --enable-libada was given. |
3173 | if test "${enable_libada+set}" = set; then : | |
3174 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3175 | else |
3176 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3177 | fi |
3178 | ||
a2592b1b | 3179 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3180 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3181 | fi |
3182 | ||
81ecdfbb RW |
3183 | # Check whether --enable-libssp was given. |
3184 | if test "${enable_libssp+set}" = set; then : | |
3185 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3186 | else |
3187 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3188 | fi |
3189 | ||
5f128533 | 3190 | |
f66a9a70 L |
3191 | # Check whether --enable-libstdcxx was given. |
3192 | if test "${enable_libstdcxx+set}" = set; then : | |
3193 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3194 | else | |
3195 | ENABLE_LIBSTDCXX=default | |
3196 | fi | |
3197 | ||
3198 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3199 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3200 | fi | |
3201 | ||
3202 | # If this is accelerator compiler and its target is intelmic we enable | |
3203 | # target liboffloadmic by default. If this is compiler with offloading | |
3204 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3205 | # liboffloadmic is disabled by default. | |
3206 | # Check whether --enable-liboffloadmic was given. | |
3207 | if test "${enable_liboffloadmic+set}" = set; then : | |
3208 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3209 | no | host | target) | |
3210 | enable_liboffloadmic=$enableval ;; | |
3211 | *) | |
d0ac1c44 | 3212 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3213 | esac |
3214 | else | |
3215 | if test x"$enable_as_accelerator_for" != x; then | |
3216 | case "${target}" in | |
3217 | *-intelmic-* | *-intelmicemul-*) | |
3218 | enable_liboffloadmic=target | |
3219 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3220 | ;; | |
3221 | *) | |
3222 | enable_liboffloadmic=no | |
3223 | ;; | |
3224 | esac | |
3225 | else | |
3226 | case "${enable_offload_targets}" in | |
3227 | *-intelmic-* | *-intelmicemul-*) | |
3228 | enable_liboffloadmic=host | |
3229 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3230 | ;; | |
3231 | *) | |
3232 | enable_liboffloadmic=no | |
3233 | ;; | |
3234 | esac | |
3235 | fi | |
f66a9a70 L |
3236 | fi |
3237 | ||
1b6c0831 L |
3238 | |
3239 | ||
68996839 | 3240 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3241 | if test x$enable_libgomp = x ; then |
b3ded179 | 3242 | case "${target}" in |
29383458 | 3243 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3244 | ;; |
5b806d27 | 3245 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3246 | ;; |
2479f722 | 3247 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3248 | ;; |
3249 | *-*-darwin* | *-*-aix*) | |
3250 | ;; | |
68996839 NC |
3251 | nvptx*-*-*) |
3252 | ;; | |
b3ded179 PB |
3253 | *) |
3254 | noconfigdirs="$noconfigdirs target-libgomp" | |
3255 | ;; | |
3256 | esac | |
a6df5a19 | 3257 | fi |
b3ded179 | 3258 | |
7ec59b9e L |
3259 | # Disable libatomic on unsupported systems. |
3260 | if test -d ${srcdir}/libatomic; then | |
3261 | if test x$enable_libatomic = x; then | |
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3263 | $as_echo_n "checking for libatomic support... " >&6; } | |
3264 | if (srcdir=${srcdir}/libatomic; \ | |
3265 | . ${srcdir}/configure.tgt; \ | |
3266 | test -n "$UNSUPPORTED") | |
3267 | then | |
3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3269 | $as_echo "no" >&6; } | |
3270 | noconfigdirs="$noconfigdirs target-libatomic" | |
3271 | else | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3273 | $as_echo "yes" >&6; } | |
3274 | fi | |
3275 | fi | |
3276 | fi | |
3277 | ||
1b6c0831 L |
3278 | # Disable liboffloadmic on unsupported systems. |
3279 | if test -d ${srcdir}/liboffloadmic; then | |
3280 | if test x$enable_liboffloadmic != xno; then | |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3282 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3283 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3284 | . ${srcdir}/configure.tgt; \ | |
3285 | test -n "$UNSUPPORTED") | |
3286 | then | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3288 | $as_echo "no" >&6; } | |
3289 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3290 | else | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3292 | $as_echo "yes" >&6; } | |
3293 | fi | |
3294 | fi | |
3295 | fi | |
3296 | ||
d32e2926 RH |
3297 | # Disable libitm on unsupported systems. |
3298 | if test -d ${srcdir}/libitm; then | |
3299 | if test x$enable_libitm = x; then | |
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3301 | $as_echo_n "checking for libitm support... " >&6; } | |
3302 | if (srcdir=${srcdir}/libitm; \ | |
3303 | . ${srcdir}/configure.tgt; \ | |
3304 | test -n "$UNSUPPORTED") | |
3305 | then | |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3307 | $as_echo "no" >&6; } | |
3308 | noconfigdirs="$noconfigdirs target-libitm" | |
3309 | else | |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3311 | $as_echo "yes" >&6; } | |
3312 | fi | |
3313 | fi | |
3314 | fi | |
3315 | ||
5286fdef L |
3316 | # Disable libsanitizer on unsupported systems. |
3317 | if test -d ${srcdir}/libsanitizer; then | |
3318 | if test x$enable_libsanitizer = x; then | |
3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3320 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3321 | if (srcdir=${srcdir}/libsanitizer; \ | |
3322 | . ${srcdir}/configure.tgt; \ | |
3323 | test -n "$UNSUPPORTED") | |
3324 | then | |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3326 | $as_echo "no" >&6; } | |
3327 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3328 | else | |
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3330 | $as_echo "yes" >&6; } | |
3331 | fi | |
3332 | fi | |
3333 | fi | |
3334 | ||
95e43135 JBG |
3335 | # Disable libvtv on unsupported systems. |
3336 | if test -d ${srcdir}/libvtv; then | |
3337 | if test x$enable_libvtv = x; then | |
3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3339 | $as_echo_n "checking for libvtv support... " >&6; } | |
3340 | if (srcdir=${srcdir}/libvtv; \ | |
3341 | . ${srcdir}/configure.tgt; \ | |
3342 | test "$VTV_SUPPORTED" != "yes") | |
3343 | then | |
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3345 | $as_echo "no" >&6; } | |
3346 | noconfigdirs="$noconfigdirs target-libvtv" | |
3347 | else | |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3349 | $as_echo "yes" >&6; } | |
3350 | fi | |
3351 | fi | |
3352 | fi | |
3353 | ||
1b6c0831 | 3354 | |
bf41f30d NC |
3355 | # Disable libhsail-rt on unsupported systems. |
3356 | if test -d ${srcdir}/libhsail-rt; then | |
3357 | if test x$enable_libhsail_rt = x; then | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3359 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3360 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3361 | . ${srcdir}/configure.tgt; \ | |
3362 | test -n "$UNSUPPORTED") | |
3363 | then | |
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3365 | $as_echo "no" >&6; } | |
3366 | unsupported_languages="$unsupported_languages brig" | |
3367 | # This implicitly disables also target-libhsail-rt as it won't | |
3368 | # get added to the build without BRIG FE. | |
3369 | else | |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3371 | $as_echo "yes" >&6; } | |
3372 | fi | |
3373 | fi | |
3374 | fi | |
1b6c0831 L |
3375 | |
3376 | ||
1488e230 DE |
3377 | # Disable libquadmath for some systems. |
3378 | case "${target}" in | |
5286fdef L |
3379 | avr-*-*) |
3380 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3381 | ;; | |
1488e230 DE |
3382 | # libquadmath is unused on AIX and libquadmath build process use of |
3383 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3384 | powerpc-*-aix* | rs6000-*-aix*) | |
3385 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3386 | ;; | |
3387 | esac | |
3388 | ||
065a5627 JM |
3389 | # Disable libssp for some systems. |
3390 | case "${target}" in | |
3391 | avr-*-*) | |
c5f5c3c2 | 3392 | # No hosted I/O support. |
065a5627 JM |
3393 | noconfigdirs="$noconfigdirs target-libssp" |
3394 | ;; | |
3395 | powerpc-*-aix* | rs6000-*-aix*) | |
3396 | noconfigdirs="$noconfigdirs target-libssp" | |
3397 | ;; | |
99c513f6 | 3398 | rl78-*-*) |
202e2356 NC |
3399 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3400 | # doesn't fault for those - instead, it gives a build-time error | |
3401 | # for explicit misaligned loads. | |
99c513f6 DD |
3402 | noconfigdirs="$noconfigdirs target-libssp" |
3403 | ;; | |
1b6c0831 L |
3404 | visium-*-*) |
3405 | # No hosted I/O support. | |
3406 | noconfigdirs="$noconfigdirs target-libssp" | |
3407 | ;; | |
065a5627 JM |
3408 | esac |
3409 | ||
065a5627 | 3410 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3411 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3412 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3413 | case "${target}" in | |
3414 | *-*-vxworks*) | |
3415 | # VxWorks uses the Dinkumware C++ library. | |
3416 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3417 | ;; | |
3418 | arm*-wince-pe*) | |
3419 | # the C++ libraries don't build on top of CE's C libraries | |
3420 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3421 | ;; | |
3422 | avr-*-*) | |
3423 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3424 | ;; | |
969b1713 L |
3425 | ft32-*-*) |
3426 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3427 | ;; | |
f66a9a70 L |
3428 | esac |
3429 | fi | |
065a5627 JM |
3430 | |
3431 | # Disable Fortran for some systems. | |
3432 | case "${target}" in | |
3433 | mmix-*-*) | |
3434 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3435 | unsupported_languages="$unsupported_languages fortran" | |
3436 | ;; | |
3437 | esac | |
3438 | ||
05a13254 | 3439 | # Disable libffi for some systems. |
0827f9a6 | 3440 | case "${target}" in |
9863d716 JM |
3441 | powerpc-*-darwin*) |
3442 | ;; | |
3443 | i[3456789]86-*-darwin*) | |
3444 | ;; | |
3445 | x86_64-*-darwin[912]*) | |
3446 | ;; | |
3447 | *-*-darwin*) | |
05a13254 | 3448 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3449 | ;; |
9863d716 | 3450 | *-*-netware*) |
05a13254 NC |
3451 | noconfigdirs="$noconfigdirs target-libffi" |
3452 | ;; | |
3453 | *-*-phoenix*) | |
3454 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3455 | ;; |
3456 | *-*-rtems*) | |
05a13254 | 3457 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3458 | ;; |
3459 | *-*-tpf*) | |
05a13254 | 3460 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3461 | ;; |
3462 | *-*-uclinux*) | |
05a13254 | 3463 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3464 | ;; |
3465 | *-*-vxworks*) | |
05a13254 NC |
3466 | noconfigdirs="$noconfigdirs target-libffi" |
3467 | ;; | |
3468 | aarch64*-*-freebsd*) | |
3469 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3470 | ;; |
9863d716 | 3471 | alpha*-*-*vms*) |
05a13254 | 3472 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3473 | ;; |
1b6c0831 | 3474 | arm*-*-freebsd*) |
05a13254 | 3475 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3476 | ;; |
0827f9a6 | 3477 | arm-wince-pe) |
05a13254 | 3478 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3479 | ;; |
9863d716 | 3480 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3481 | case "${target}" in |
3482 | *-*-linux*) | |
3483 | ;; | |
3484 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3485 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3486 | esac |
3487 | ;; | |
82ae827f | 3488 | hppa*64*-*-hpux*) |
05a13254 | 3489 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3490 | ;; |
3491 | hppa*-hp-hpux11*) | |
3492 | ;; | |
82ae827f | 3493 | hppa*-*-hpux*) |
05a13254 | 3494 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3495 | ;; |
9863d716 | 3496 | ia64*-*-*vms*) |
05a13254 | 3497 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3498 | ;; |
9863d716 | 3499 | i[3456789]86-w64-mingw*) |
05a13254 | 3500 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3501 | ;; |
3502 | i[3456789]86-*-mingw*) | |
05a13254 | 3503 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3504 | ;; |
3505 | x86_64-*-mingw*) | |
05a13254 | 3506 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3507 | ;; |
9863d716 | 3508 | mmix-*-*) |
05a13254 | 3509 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3510 | ;; |
3511 | powerpc-*-aix*) | |
9863d716 | 3512 | ;; |
9863d716 | 3513 | rs6000-*-aix*) |
9863d716 | 3514 | ;; |
3f8107ab | 3515 | ft32-*-*) |
05a13254 | 3516 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3517 | ;; |
9863d716 | 3518 | *-*-lynxos*) |
05a13254 | 3519 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3520 | ;; |
9863d716 JM |
3521 | esac |
3522 | ||
1b6c0831 L |
3523 | # Disable the go frontend on systems where it is known to not work. Please keep |
3524 | # this in sync with contrib/config-list.mk. | |
3525 | case "${target}" in | |
bf41f30d | 3526 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
1b6c0831 L |
3527 | unsupported_languages="$unsupported_languages go" |
3528 | ;; | |
3529 | esac | |
3530 | ||
919adfe8 TT |
3531 | # Only allow gdbserver on some systems. |
3532 | if test -d ${srcdir}/gdbserver; then | |
3533 | if test x$enable_gdbserver = x; then | |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3535 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3536 | if (srcdir=${srcdir}/gdbserver; \ | |
3537 | . ${srcdir}/configure.srv; \ | |
3538 | test -n "$UNSUPPORTED") | |
3539 | then | |
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3541 | $as_echo "no" >&6; } | |
3542 | noconfigdirs="$noconfigdirs gdbserver" | |
3543 | else | |
3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3545 | $as_echo "yes" >&6; } | |
3546 | fi | |
3547 | fi | |
3548 | fi | |
3549 | ||
a413f71a ILT |
3550 | # Disable libgo for some systems where it is known to not work. |
3551 | # For testing, you can easily override this with --enable-libgo. | |
3552 | if test x$enable_libgo = x; then | |
3553 | case "${target}" in | |
3554 | *-*-darwin*) | |
3555 | # PR 46986 | |
3556 | noconfigdirs="$noconfigdirs target-libgo" | |
3557 | ;; | |
3558 | *-*-cygwin* | *-*-mingw*) | |
3559 | noconfigdirs="$noconfigdirs target-libgo" | |
3560 | ;; | |
a413f71a ILT |
3561 | esac |
3562 | fi | |
3563 | ||
691bb5a1 DD |
3564 | # Default libgloss CPU subdirectory. |
3565 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3566 | |
ff46fb8f JM |
3567 | case "${target}" in |
3568 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3569 | libgloss_dir=wince | |
3570 | ;; | |
f1dd87fc YZ |
3571 | aarch64*-*-* ) |
3572 | libgloss_dir=aarch64 | |
3573 | ;; | |
ff46fb8f JM |
3574 | arm*-*-*) |
3575 | libgloss_dir=arm | |
3576 | ;; | |
3577 | cris-*-* | crisv32-*-*) | |
3578 | libgloss_dir=cris | |
3579 | ;; | |
3580 | hppa*-*-*) | |
3581 | libgloss_dir=pa | |
3582 | ;; | |
3583 | i[3456789]86-*-*) | |
3584 | libgloss_dir=i386 | |
3585 | ;; | |
3586 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3587 | libgloss_dir=m68hc11 | |
3588 | ;; | |
3589 | m68*-*-* | fido-*-*) | |
3590 | libgloss_dir=m68k | |
3591 | ;; | |
3592 | mips*-*-*) | |
3593 | libgloss_dir=mips | |
3594 | ;; | |
3595 | powerpc*-*-*) | |
3596 | libgloss_dir=rs6000 | |
3597 | ;; | |
3598 | sparc*-*-*) | |
3599 | libgloss_dir=sparc | |
3600 | ;; | |
3601 | esac | |
3602 | ||
c7e4b184 | 3603 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3604 | case "${target}" in |
c7e4b184 JM |
3605 | alpha*-dec-osf*) |
3606 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3607 | ;; | |
3608 | i[3456789]86-*-linux*) | |
3609 | # This section makes it possible to build newlib natively on linux. | |
3610 | # If we are using a cross compiler then don't configure newlib. | |
3611 | if test x${is_cross_compiler} != xno ; then | |
3612 | noconfigdirs="$noconfigdirs target-newlib" | |
3613 | fi | |
3614 | noconfigdirs="$noconfigdirs target-libgloss" | |
3615 | # If we are not using a cross compiler, do configure newlib. | |
3616 | # Note however, that newlib will only be configured in this situation | |
3617 | # if the --with-newlib option has been given, because otherwise | |
3618 | # 'target-newlib' will appear in skipdirs. | |
3619 | ;; | |
3620 | i[3456789]86-*-rdos*) | |
3621 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3622 | ;; | |
3623 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3624 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3625 | ;; | |
3626 | sparc-*-sunos4*) | |
3627 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3628 | ;; | |
3629 | *-*-aix*) | |
3630 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3631 | ;; | |
3632 | *-*-beos*) | |
3633 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3634 | ;; | |
a0da8069 | 3635 | *-*-chorusos) |
b2f14e4a | 3636 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3637 | ;; |
c7e4b184 JM |
3638 | *-*-dragonfly*) |
3639 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3640 | ;; | |
3641 | *-*-freebsd*) | |
3642 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3643 | ;; | |
3644 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3645 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3646 | ;; | |
3647 | *-*-lynxos*) | |
3648 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3649 | ;; | |
3650 | *-*-mingw*) | |
3651 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3652 | ;; | |
3653 | *-*-netbsd*) | |
3654 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3655 | ;; | |
3656 | *-*-netware*) | |
3657 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3658 | ;; | |
3659 | *-*-tpf*) | |
3660 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3661 | ;; | |
3662 | *-*-uclinux*) | |
3663 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3664 | ;; | |
3665 | *-*-vxworks*) | |
3666 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3667 | ;; | |
3668 | esac | |
3669 | ||
3670 | case "${target}" in | |
3671 | *-*-chorusos) | |
3672 | ;; | |
f075eb5e TG |
3673 | aarch64-*-darwin*) |
3674 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3675 | noconfigdirs="$noconfigdirs sim target-rda" | |
3676 | ;; | |
3677 | arm-*-darwin*) | |
3678 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3679 | noconfigdirs="$noconfigdirs sim target-rda" | |
3680 | ;; | |
24741ab2 | 3681 | powerpc-*-darwin*) |
9d39db92 | 3682 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3683 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3684 | ;; |
85bd1942 TG |
3685 | i[3456789]86-*-darwin*) |
3686 | noconfigdirs="$noconfigdirs ld gprof" | |
3687 | noconfigdirs="$noconfigdirs sim target-rda" | |
3688 | ;; | |
e8a5fa9c | 3689 | x86_64-*-darwin[912]*) |
652dec25 TG |
3690 | noconfigdirs="$noconfigdirs ld gas gprof" |
3691 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3692 | ;; |
04d1ab34 | 3693 | *-*-darwin*) |
d320aacb | 3694 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3695 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3696 | ;; |
5b806d27 | 3697 | *-*-dragonfly*) |
5b806d27 | 3698 | ;; |
de0b4a87 | 3699 | *-*-freebsd*) |
4b1cb4fe DD |
3700 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3701 | && test -f /usr/local/include/gmp.h; then | |
3702 | with_gmp=/usr/local | |
3703 | fi | |
4b1cb4fe | 3704 | ;; |
f8a495c8 NC |
3705 | *-*-kaos*) |
3706 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3707 | noconfigdirs="$noconfigdirs target-libgloss" |
3708 | ;; | |
a0da8069 | 3709 | *-*-netbsd*) |
a0da8069 | 3710 | ;; |
2a3124ca | 3711 | *-*-netware*) |
a0da8069 | 3712 | ;; |
05a13254 NC |
3713 | *-*-phoenix*) |
3714 | noconfigdirs="$noconfigdirs target-libgloss" | |
3715 | ;; | |
a0da8069 | 3716 | *-*-rtems*) |
9863d716 | 3717 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3718 | ;; |
1587117a EC |
3719 | # The tpf target doesn't support gdb yet. |
3720 | *-*-tpf*) | |
c7e4b184 | 3721 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3722 | ;; |
c1968181 | 3723 | *-*-uclinux*) |
c7e4b184 | 3724 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3725 | ;; |
a0da8069 | 3726 | *-*-vxworks*) |
a0da8069 NN |
3727 | ;; |
3728 | alpha*-dec-osf*) | |
3729 | # ld works, but does not support shared libraries. | |
a0da8069 | 3730 | # gas doesn't generate exception information. |
c7e4b184 | 3731 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3732 | ;; |
3733 | alpha*-*-*vms*) | |
9863d716 | 3734 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3735 | ;; |
a0da8069 NN |
3736 | alpha*-*-*) |
3737 | # newlib is not 64 bit ready | |
9863d716 | 3738 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3739 | ;; |
a0da8069 | 3740 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3741 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3742 | ;; |
05a13254 NC |
3743 | arc*-*-*) |
3744 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3745 | ;; |
a0da8069 | 3746 | arm-*-pe*) |
9863d716 | 3747 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3748 | ;; |
a0da8069 | 3749 | arm-*-riscix*) |
b2f14e4a | 3750 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3751 | ;; |
8e71395b L |
3752 | avr-*-*) |
3753 | if test x${with_avrlibc} != xno; then | |
3754 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3755 | fi | |
3756 | ;; | |
a0da8069 | 3757 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3758 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3759 | ;; |
b2f14e4a JM |
3760 | tic54x-*-*) |
3761 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3762 | ;; |
a0da8069 | 3763 | d10v-*-*) |
b2f14e4a | 3764 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3765 | ;; |
3766 | d30v-*-*) | |
b2f14e4a | 3767 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3768 | ;; |
3769 | fr30-*-elf*) | |
9863d716 | 3770 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3771 | ;; |
3f8107ab AM |
3772 | ft32-*-*) |
3773 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3774 | ;; | |
20135e4c | 3775 | moxie-*-*) |
10b8fe5e | 3776 | noconfigdirs="$noconfigdirs" |
20135e4c | 3777 | ;; |
a0da8069 | 3778 | h8300*-*-*) |
9863d716 | 3779 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3780 | ;; |
3781 | h8500-*-*) | |
b2f14e4a | 3782 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3783 | ;; |
caeba88f | 3784 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3785 | ;; |
5569a85f JDA |
3786 | hppa*64*-*-hpux*) |
3787 | noconfigdirs="$noconfigdirs gdb" | |
3788 | ;; | |
3789 | hppa*-*-hpux11*) | |
3790 | noconfigdirs="$noconfigdirs gdb ld" | |
3791 | ;; | |
93cc359e | 3792 | hppa*64*-*-linux*) |
a0da8069 | 3793 | ;; |
f0ff0f90 | 3794 | hppa*-*-linux*) |
5dcac624 | 3795 | ;; |
a0da8069 | 3796 | hppa*-*-*elf* | \ |
a0da8069 NN |
3797 | hppa*-*-lites* | \ |
3798 | hppa*-*-openbsd* | \ | |
3799 | hppa*64*-*-*) | |
4f0ef2d8 | 3800 | ;; |
691bb5a1 | 3801 | hppa*-*-pro*) |
691bb5a1 | 3802 | ;; |
a0da8069 | 3803 | hppa*-*-*) |
9863d716 | 3804 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3805 | ;; |
b07c2aad | 3806 | i960-*-*) |
b2f14e4a | 3807 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3808 | ;; |
a0da8069 NN |
3809 | ia64*-*-elf*) |
3810 | # No gdb support yet. | |
0377a422 | 3811 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3812 | ;; |
3813 | ia64*-**-hpux*) | |
92c9a463 | 3814 | # No ld support yet. |
5569a85f | 3815 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3816 | ;; |
19e99079 | 3817 | ia64*-*-*vms*) |
7ec59b9e L |
3818 | # No ld support yet. |
3819 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3820 | ;; |
1f53ca9a | 3821 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3822 | ;; |
3823 | i[3456789]86-*-mingw*) | |
45055374 | 3824 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3825 | ;; |
a0da8069 NN |
3826 | *-*-cygwin*) |
3827 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3828 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3829 | # always build newlib if winsup directory is present. |
45055374 | 3830 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3831 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3832 | elif test -d "$srcdir/newlib"; then |
45055374 | 3833 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3834 | fi |
c6b750e1 | 3835 | ;; |
ec11bdc6 | 3836 | i[3456789]86-*-pe) |
782cb41f | 3837 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3838 | ;; |
ec11bdc6 | 3839 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3840 | # The linker does not yet know about weak symbols in COFF, |
3841 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3842 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3843 | ;; |
ec11bdc6 | 3844 | i[3456789]86-*-sco*) |
b2f14e4a | 3845 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3846 | ;; |
cff32a7c | 3847 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3848 | noconfigdirs="$noconfigdirs target-libgloss" |
3849 | ;; | |
ec11bdc6 | 3850 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3851 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3852 | ;; |
ec11bdc6 | 3853 | i[3456789]86-*-beos*) |
c7e4b184 | 3854 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3855 | ;; |
b59bea8a | 3856 | i[3456789]86-*-rdos*) |
c7e4b184 | 3857 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3858 | ;; |
a0da8069 | 3859 | mmix-*-*) |
9863d716 | 3860 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3861 | ;; |
4970f871 | 3862 | mt-*-*) |
cdb9b172 AH |
3863 | noconfigdirs="$noconfigdirs sim" |
3864 | ;; | |
1063beb5 FT |
3865 | nfp-*-*) |
3866 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3867 | noconfigdirs="$noconfigdirs $target_libraries" | |
3868 | ;; | |
11104e42 SC |
3869 | pdp11-*-*) |
3870 | noconfigdirs="$noconfigdirs gdb gprof" | |
3871 | ;; | |
a0da8069 NN |
3872 | powerpc-*-aix*) |
3873 | # copied from rs6000-*-* entry | |
c7e4b184 | 3874 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3875 | ;; |
93cc359e | 3876 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3877 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3878 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3879 | # always build newlib. |
3880 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3881 | ;; | |
3882 | # This is temporary until we can link against shared libraries | |
3883 | powerpcle-*-solaris*) | |
b2f14e4a | 3884 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3885 | ;; |
3886 | powerpc-*-beos*) | |
c7e4b184 | 3887 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3888 | ;; |
a0da8069 | 3889 | rs6000-*-lynxos*) |
c7e4b184 | 3890 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3891 | ;; |
3892 | rs6000-*-aix*) | |
c7e4b184 | 3893 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3894 | ;; |
3895 | rs6000-*-*) | |
9863d716 | 3896 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3897 | ;; |
3898 | m68k-apollo-*) | |
b2f14e4a | 3899 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3900 | ;; |
25a07265 | 3901 | microblaze*) |
9863d716 | 3902 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3903 | ;; |
a9d58c06 | 3904 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3905 | if test x$with_newlib = xyes; then |
3906 | noconfigdirs="$noconfigdirs gprof" | |
3907 | fi | |
5bd8be13 | 3908 | ;; |
a0da8069 | 3909 | mips*-*-irix5*) |
b2f14e4a | 3910 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3911 | ;; |
3912 | mips*-*-irix6*) | |
9863d716 | 3913 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3914 | ;; |
a0da8069 | 3915 | mips*-*-bsd*) |
e8044f35 | 3916 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3917 | ;; |
a0da8069 | 3918 | mips*-*-linux*) |
a0da8069 | 3919 | ;; |
e8044f35 RS |
3920 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3921 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3922 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3923 | ;; | |
a0da8069 | 3924 | mips*-*-*) |
9863d716 | 3925 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3926 | ;; |
1b6c0831 | 3927 | nvptx*-*-*) |
1b6c0831 L |
3928 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3929 | ;; | |
05a13254 | 3930 | sh-*-*) |
e8a5fa9c RW |
3931 | case "${target}" in |
3932 | sh*-*-elf) | |
9863d716 | 3933 | ;; |
e8a5fa9c | 3934 | *) |
9863d716 | 3935 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3936 | esac |
a0da8069 | 3937 | ;; |
a0da8069 | 3938 | sparc-*-sunos4*) |
c7e4b184 | 3939 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3940 | use_gnu_ld=no |
3941 | fi | |
3942 | ;; | |
619a3713 | 3943 | tic6x-*-*) |
40ae9136 | 3944 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3945 | ;; |
05a13254 | 3946 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3947 | noconfigdirs="$noconfigdirs sim" |
3948 | ;; | |
a0da8069 | 3949 | v810-*-*) |
b2f14e4a | 3950 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3951 | ;; |
3952 | vax-*-*) | |
9863d716 | 3953 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3954 | ;; |
b29d2641 MR |
3955 | wasm32-*-*) |
3956 | noconfigdirs="$noconfigdirs ld" | |
3957 | ;; | |
a0da8069 | 3958 | esac |
252b5132 | 3959 | |
a0da8069 NN |
3960 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3961 | # depends upon some newlib header files. | |
3962 | case "${noconfigdirs}" in | |
3963 | *target-libgloss*) ;; | |
3964 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3965 | esac | |
3966 | ||
a0da8069 | 3967 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3968 | host_makefile_frag=/dev/null |
3969 | if test -d ${srcdir}/config ; then | |
3970 | case "${host}" in | |
ec11bdc6 | 3971 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3972 | host_makefile_frag="config/mh-djgpp" |
3973 | ;; | |
3974 | *-cygwin*) | |
e33b51a6 | 3975 | |
81ecdfbb RW |
3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3977 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3978 | echo a >cygwin-cat-check |
1f53ca9a | 3979 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3980 | rm cygwin-cat-check |
81ecdfbb RW |
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3982 | $as_echo "yes" >&6; } | |
e33b51a6 | 3983 | else |
8ade07e9 | 3984 | rm cygwin-cat-check |
81ecdfbb RW |
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3986 | $as_echo "no" >&6; } | |
d0ac1c44 | 3987 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
3988 | Please either mount the build directory in binary mode or run the following |
3989 | commands before running any configure script: | |
3990 | set -o igncr | |
3991 | export SHELLOPTS | |
81ecdfbb | 3992 | " "$LINENO" 5 |
e33b51a6 | 3993 | fi |
e33b51a6 | 3994 | |
a0da8069 NN |
3995 | host_makefile_frag="config/mh-cygwin" |
3996 | ;; | |
8a1599ab | 3997 | *-mingw*) |
84e7906e | 3998 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3999 | ;; |
ce6c656d L |
4000 | alpha*-linux*) |
4001 | host_makefile_frag="config/mh-alpha-linux" | |
4002 | ;; | |
da888c87 | 4003 | hppa*-hp-hpux10*) |
da888c87 | 4004 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 4005 | ;; |
3516a403 | 4006 | hppa*-hp-hpux*) |
da888c87 PB |
4007 | host_makefile_frag="config/mh-pa" |
4008 | ;; | |
4009 | hppa*-*) | |
4010 | host_makefile_frag="config/mh-pa" | |
4011 | ;; | |
e552509b ILT |
4012 | *-*-darwin*) |
4013 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 4014 | ;; |
f6d183c0 PB |
4015 | powerpc-*-aix*) |
4016 | host_makefile_frag="config/mh-ppc-aix" | |
4017 | ;; | |
4018 | rs6000-*-aix*) | |
4019 | host_makefile_frag="config/mh-ppc-aix" | |
4020 | ;; | |
a0da8069 NN |
4021 | esac |
4022 | fi | |
4023 | ||
9e07f89d | 4024 | if test "${build}" != "${host}" ; then |
1576798e PB |
4025 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4026 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4027 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e | 4028 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
1576798e | 4029 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 4030 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
4031 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4032 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4033 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4034 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4035 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4036 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4037 | else | |
4038 | AR_FOR_BUILD="\$(AR)" | |
4039 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4040 | CC_FOR_BUILD="\$(CC)" |
1576798e | 4041 | CXX_FOR_BUILD="\$(CXX)" |
1576798e | 4042 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 4043 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
4044 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4045 | LD_FOR_BUILD="\$(LD)" | |
4046 | NM_FOR_BUILD="\$(NM)" | |
4047 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4048 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4049 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4050 | fi |
4051 | ||
4052 | ac_ext=c | |
c6b750e1 DJ |
4053 | ac_cpp='$CPP $CPPFLAGS' |
4054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4057 | if test -n "$ac_tool_prefix"; then | |
4058 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4059 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4061 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4062 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4063 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4064 | else |
4065 | if test -n "$CC"; then | |
4066 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4067 | else | |
4068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4069 | for as_dir in $PATH | |
4070 | do | |
4071 | IFS=$as_save_IFS | |
4072 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4073 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4075 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4077 | break 2 |
4078 | fi | |
4079 | done | |
81ecdfbb RW |
4080 | done |
4081 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4082 | |
4083 | fi | |
4084 | fi | |
4085 | CC=$ac_cv_prog_CC | |
4086 | if test -n "$CC"; then | |
81ecdfbb RW |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4088 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4089 | else |
81ecdfbb RW |
4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4091 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4092 | fi |
4093 | ||
81ecdfbb | 4094 | |
c6b750e1 DJ |
4095 | fi |
4096 | if test -z "$ac_cv_prog_CC"; then | |
4097 | ac_ct_CC=$CC | |
6a9cf61e | 4098 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4099 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4101 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4102 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4103 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4104 | else |
4105 | if test -n "$ac_ct_CC"; then | |
4106 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4107 | else | |
4108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4109 | for as_dir in $PATH | |
4110 | do | |
4111 | IFS=$as_save_IFS | |
4112 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4113 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4115 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4117 | break 2 |
4118 | fi | |
4119 | done | |
81ecdfbb RW |
4120 | done |
4121 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4122 | |
4123 | fi | |
4124 | fi | |
4125 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4126 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4128 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4129 | else |
81ecdfbb RW |
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4131 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4132 | fi |
4133 | ||
81ecdfbb RW |
4134 | if test "x$ac_ct_CC" = x; then |
4135 | CC="" | |
4136 | else | |
4137 | case $cross_compiling:$ac_tool_warned in | |
4138 | yes:) | |
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4140 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4141 | ac_tool_warned=yes ;; | |
4142 | esac | |
4143 | CC=$ac_ct_CC | |
4144 | fi | |
c6b750e1 DJ |
4145 | else |
4146 | CC="$ac_cv_prog_CC" | |
4147 | fi | |
4148 | ||
4149 | if test -z "$CC"; then | |
81ecdfbb RW |
4150 | if test -n "$ac_tool_prefix"; then |
4151 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4152 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4154 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4155 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4156 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4157 | else |
4158 | if test -n "$CC"; then | |
4159 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4160 | else | |
c6b750e1 DJ |
4161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4162 | for as_dir in $PATH | |
4163 | do | |
4164 | IFS=$as_save_IFS | |
4165 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4166 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4168 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4170 | break 2 |
4171 | fi | |
4172 | done | |
81ecdfbb RW |
4173 | done |
4174 | IFS=$as_save_IFS | |
c6b750e1 | 4175 | |
9e07f89d NN |
4176 | fi |
4177 | fi | |
c6b750e1 | 4178 | CC=$ac_cv_prog_CC |
9e07f89d | 4179 | if test -n "$CC"; then |
81ecdfbb RW |
4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4181 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4182 | else |
81ecdfbb RW |
4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4184 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4185 | fi |
4186 | ||
c6b750e1 | 4187 | |
81ecdfbb | 4188 | fi |
c6b750e1 | 4189 | fi |
9e07f89d NN |
4190 | if test -z "$CC"; then |
4191 | # Extract the first word of "cc", so it can be a program name with args. | |
4192 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4194 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4195 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4196 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4197 | else |
4198 | if test -n "$CC"; then | |
4199 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4200 | else | |
9e07f89d | 4201 | ac_prog_rejected=no |
c6b750e1 DJ |
4202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4203 | for as_dir in $PATH | |
4204 | do | |
4205 | IFS=$as_save_IFS | |
4206 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4207 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4209 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4210 | ac_prog_rejected=yes | |
4211 | continue | |
4212 | fi | |
4213 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4215 | break 2 |
4216 | fi | |
4217 | done | |
81ecdfbb RW |
4218 | done |
4219 | IFS=$as_save_IFS | |
c6b750e1 | 4220 | |
9e07f89d NN |
4221 | if test $ac_prog_rejected = yes; then |
4222 | # We found a bogon in the path, so make sure we never use it. | |
4223 | set dummy $ac_cv_prog_CC | |
4224 | shift | |
c6b750e1 | 4225 | if test $# != 0; then |
9e07f89d NN |
4226 | # We chose a different compiler from the bogus one. |
4227 | # However, it has the same basename, so the bogon will be chosen | |
4228 | # first if we set CC to just the basename; use the full file name. | |
4229 | shift | |
c6b750e1 | 4230 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4231 | fi |
4232 | fi | |
4233 | fi | |
4234 | fi | |
c6b750e1 | 4235 | CC=$ac_cv_prog_CC |
9e07f89d | 4236 | if test -n "$CC"; then |
81ecdfbb RW |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4238 | $as_echo "$CC" >&6; } | |
9e07f89d | 4239 | else |
81ecdfbb RW |
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4241 | $as_echo "no" >&6; } | |
9e07f89d NN |
4242 | fi |
4243 | ||
81ecdfbb | 4244 | |
c6b750e1 DJ |
4245 | fi |
4246 | if test -z "$CC"; then | |
4247 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4248 | for ac_prog in cl.exe |
c6b750e1 DJ |
4249 | do |
4250 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4251 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4253 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4254 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4255 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4256 | else |
4257 | if test -n "$CC"; then | |
4258 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4259 | else | |
c6b750e1 DJ |
4260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4261 | for as_dir in $PATH | |
4262 | do | |
4263 | IFS=$as_save_IFS | |
4264 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4265 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4267 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4269 | break 2 |
376a0e54 | 4270 | fi |
c6b750e1 | 4271 | done |
81ecdfbb RW |
4272 | done |
4273 | IFS=$as_save_IFS | |
cac3d6c4 | 4274 | |
c6b750e1 DJ |
4275 | fi |
4276 | fi | |
4277 | CC=$ac_cv_prog_CC | |
4278 | if test -n "$CC"; then | |
81ecdfbb RW |
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4280 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4281 | else |
81ecdfbb RW |
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4283 | $as_echo "no" >&6; } | |
9e07f89d | 4284 | fi |
cac3d6c4 | 4285 | |
81ecdfbb | 4286 | |
c6b750e1 DJ |
4287 | test -n "$CC" && break |
4288 | done | |
cac3d6c4 | 4289 | fi |
c6b750e1 DJ |
4290 | if test -z "$CC"; then |
4291 | ac_ct_CC=$CC | |
81ecdfbb | 4292 | for ac_prog in cl.exe |
c6b750e1 DJ |
4293 | do |
4294 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4295 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4297 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4298 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4299 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4300 | else |
c6b750e1 DJ |
4301 | if test -n "$ac_ct_CC"; then |
4302 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4303 | else |
c6b750e1 DJ |
4304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4305 | for as_dir in $PATH | |
4306 | do | |
4307 | IFS=$as_save_IFS | |
4308 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4309 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4310 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4311 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4313 | break 2 |
4314 | fi | |
4315 | done | |
81ecdfbb RW |
4316 | done |
4317 | IFS=$as_save_IFS | |
c6b750e1 | 4318 | |
cac3d6c4 CM |
4319 | fi |
4320 | fi | |
c6b750e1 DJ |
4321 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4322 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4324 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4325 | else |
81ecdfbb RW |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4327 | $as_echo "no" >&6; } | |
cac3d6c4 | 4328 | fi |
376a0e54 | 4329 | |
81ecdfbb | 4330 | |
c6b750e1 DJ |
4331 | test -n "$ac_ct_CC" && break |
4332 | done | |
4333 | ||
81ecdfbb RW |
4334 | if test "x$ac_ct_CC" = x; then |
4335 | CC="" | |
4336 | else | |
4337 | case $cross_compiling:$ac_tool_warned in | |
4338 | yes:) | |
4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4340 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4341 | ac_tool_warned=yes ;; | |
4342 | esac | |
4343 | CC=$ac_ct_CC | |
4344 | fi | |
c6b750e1 DJ |
4345 | fi |
4346 | ||
4347 | fi | |
4348 | ||
4349 | ||
81ecdfbb RW |
4350 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4351 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4352 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4353 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4354 | |
4355 | # Provide some information about the compiler. | |
81ecdfbb RW |
4356 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4357 | set X $ac_compile | |
4358 | ac_compiler=$2 | |
4359 | for ac_option in --version -v -V -qversion; do | |
4360 | { { ac_try="$ac_compiler $ac_option >&5" | |
4361 | case "(($ac_try" in | |
4362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4363 | *) ac_try_echo=$ac_try;; | |
4364 | esac | |
4365 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4366 | $as_echo "$ac_try_echo"; } >&5 | |
4367 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4368 | ac_status=$? |
81ecdfbb RW |
4369 | if test -s conftest.err; then |
4370 | sed '10a\ | |
4371 | ... rest of stderr output deleted ... | |
4372 | 10q' conftest.err >conftest.er1 | |
4373 | cat conftest.er1 >&5 | |
81ecdfbb | 4374 | fi |
d0ac1c44 | 4375 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4376 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4377 | test $ac_status = 0; } | |
4378 | done | |
c6b750e1 | 4379 | |
81ecdfbb | 4380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4381 | /* end confdefs.h. */ |
4382 | ||
4383 | int | |
4384 | main () | |
4385 | { | |
4386 | ||
4387 | ; | |
4388 | return 0; | |
4389 | } | |
4390 | _ACEOF | |
4391 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4392 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4393 | # Try to create an executable without -o first, disregard a.out. |
4394 | # It will help us diagnose broken compilers, and finding out an intuition | |
4395 | # of exeext. | |
d0ac1c44 SM |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4397 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4398 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4399 | ||
4400 | # The possible output files: | |
4401 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4402 | ||
4403 | ac_rmfiles= | |
4404 | for ac_file in $ac_files | |
4405 | do | |
4406 | case $ac_file in | |
4407 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4408 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4409 | esac | |
4410 | done | |
4411 | rm -f $ac_rmfiles | |
4412 | ||
4413 | if { { ac_try="$ac_link_default" | |
4414 | case "(($ac_try" in | |
4415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4416 | *) ac_try_echo=$ac_try;; | |
4417 | esac | |
4418 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4419 | $as_echo "$ac_try_echo"; } >&5 | |
4420 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4421 | ac_status=$? |
81ecdfbb RW |
4422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4423 | test $ac_status = 0; }; then : | |
4424 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4425 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4426 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4427 | # so that the user can short-circuit this test for compilers unknown to | |
4428 | # Autoconf. | |
4429 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4430 | do |
4431 | test -f "$ac_file" || continue | |
4432 | case $ac_file in | |
81ecdfbb | 4433 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4434 | ;; |
4435 | [ab].out ) | |
4436 | # We found the default executable, but exeext='' is most | |
4437 | # certainly right. | |
4438 | break;; | |
4439 | *.* ) | |
81ecdfbb RW |
4440 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4441 | then :; else | |
4442 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4443 | fi | |
4444 | # We set ac_cv_exeext here because the later test for it is not | |
4445 | # safe: cross compilers may not add the suffix if given an `-o' | |
4446 | # argument, so we may need to know it at that point already. | |
4447 | # Even if this section looks crufty: it has the advantage of | |
4448 | # actually working. | |
c6b750e1 DJ |
4449 | break;; |
4450 | * ) | |
4451 | break;; | |
4452 | esac | |
4453 | done | |
81ecdfbb RW |
4454 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4455 | ||
c6b750e1 | 4456 | else |
81ecdfbb RW |
4457 | ac_file='' |
4458 | fi | |
81ecdfbb | 4459 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4461 | $as_echo "no" >&6; } | |
4462 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4463 | sed 's/^/| /' conftest.$ac_ext >&5 |
4464 | ||
81ecdfbb RW |
4465 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4466 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4467 | as_fn_error 77 "C compiler cannot create executables |
4468 | See \`config.log' for more details" "$LINENO" 5; } | |
4469 | else | |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4471 | $as_echo "yes" >&6; } | |
c6b750e1 | 4472 | fi |
d0ac1c44 SM |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4474 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4476 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4477 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4478 | |
d0ac1c44 | 4479 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4480 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4482 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4483 | if { { ac_try="$ac_link" | |
4484 | case "(($ac_try" in | |
4485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4486 | *) ac_try_echo=$ac_try;; | |
4487 | esac | |
4488 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4489 | $as_echo "$ac_try_echo"; } >&5 | |
4490 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4491 | ac_status=$? |
81ecdfbb RW |
4492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4493 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4494 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4495 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4496 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4497 | # `rm'. | |
4498 | for ac_file in conftest.exe conftest conftest.*; do | |
4499 | test -f "$ac_file" || continue | |
4500 | case $ac_file in | |
81ecdfbb | 4501 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4502 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4503 | break;; |
4504 | * ) break;; | |
4505 | esac | |
4506 | done | |
4507 | else | |
81ecdfbb RW |
4508 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4509 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4510 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4511 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4512 | fi |
d0ac1c44 | 4513 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4515 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4516 | |
4517 | rm -f conftest.$ac_ext | |
4518 | EXEEXT=$ac_cv_exeext | |
4519 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4521 | /* end confdefs.h. */ | |
4522 | #include <stdio.h> | |
4523 | int | |
4524 | main () | |
4525 | { | |
4526 | FILE *f = fopen ("conftest.out", "w"); | |
4527 | return ferror (f) || fclose (f) != 0; | |
4528 | ||
4529 | ; | |
4530 | return 0; | |
4531 | } | |
4532 | _ACEOF | |
4533 | ac_clean_files="$ac_clean_files conftest.out" | |
4534 | # Check that the compiler produces executables we can run. If not, either | |
4535 | # the compiler is broken, or we cross compile. | |
4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4537 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4538 | if test "$cross_compiling" != yes; then | |
4539 | { { ac_try="$ac_link" | |
4540 | case "(($ac_try" in | |
4541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4542 | *) ac_try_echo=$ac_try;; | |
4543 | esac | |
4544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4545 | $as_echo "$ac_try_echo"; } >&5 | |
4546 | (eval "$ac_link") 2>&5 | |
4547 | ac_status=$? | |
4548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4549 | test $ac_status = 0; } | |
4550 | if { ac_try='./conftest$ac_cv_exeext' | |
4551 | { { case "(($ac_try" in | |
4552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4553 | *) ac_try_echo=$ac_try;; | |
4554 | esac | |
4555 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4556 | $as_echo "$ac_try_echo"; } >&5 | |
4557 | (eval "$ac_try") 2>&5 | |
4558 | ac_status=$? | |
4559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4560 | test $ac_status = 0; }; }; then | |
4561 | cross_compiling=no | |
4562 | else | |
4563 | if test "$cross_compiling" = maybe; then | |
4564 | cross_compiling=yes | |
4565 | else | |
4566 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4567 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4568 | as_fn_error $? "cannot run C compiled programs. | |
4569 | If you meant to cross compile, use \`--host'. | |
4570 | See \`config.log' for more details" "$LINENO" 5; } | |
4571 | fi | |
4572 | fi | |
4573 | fi | |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4575 | $as_echo "$cross_compiling" >&6; } | |
4576 | ||
4577 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4578 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4580 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4581 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4582 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4583 | else |
81ecdfbb | 4584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4585 | /* end confdefs.h. */ |
4586 | ||
4587 | int | |
4588 | main () | |
4589 | { | |
4590 | ||
4591 | ; | |
4592 | return 0; | |
4593 | } | |
4594 | _ACEOF | |
4595 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4596 | if { { ac_try="$ac_compile" |
4597 | case "(($ac_try" in | |
4598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4599 | *) ac_try_echo=$ac_try;; | |
4600 | esac | |
4601 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4602 | $as_echo "$ac_try_echo"; } >&5 | |
4603 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4604 | ac_status=$? |
81ecdfbb RW |
4605 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4606 | test $ac_status = 0; }; then : | |
4607 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4608 | test -f "$ac_file" || continue; | |
c6b750e1 | 4609 | case $ac_file in |
81ecdfbb | 4610 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4611 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4612 | break;; | |
4613 | esac | |
4614 | done | |
cac3d6c4 | 4615 | else |
81ecdfbb | 4616 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4617 | sed 's/^/| /' conftest.$ac_ext >&5 |
4618 | ||
81ecdfbb RW |
4619 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4620 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4621 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4622 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4623 | fi |
c6b750e1 DJ |
4624 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4625 | fi | |
81ecdfbb RW |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4627 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4628 | OBJEXT=$ac_cv_objext |
4629 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4631 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4632 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4633 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4634 | else |
81ecdfbb | 4635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4636 | /* end confdefs.h. */ |
4637 | ||
4638 | int | |
4639 | main () | |
4640 | { | |
4641 | #ifndef __GNUC__ | |
4642 | choke me | |
4643 | #endif | |
4644 | ||
4645 | ; | |
4646 | return 0; | |
4647 | } | |
4648 | _ACEOF | |
81ecdfbb | 4649 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4650 | ac_compiler_gnu=yes |
4651 | else | |
81ecdfbb | 4652 | ac_compiler_gnu=no |
c6b750e1 | 4653 | fi |
81ecdfbb | 4654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4655 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4656 | ||
4657 | fi | |
81ecdfbb RW |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4659 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4660 | if test $ac_compiler_gnu = yes; then | |
4661 | GCC=yes | |
4662 | else | |
4663 | GCC= | |
4664 | fi | |
c6b750e1 DJ |
4665 | ac_test_CFLAGS=${CFLAGS+set} |
4666 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4668 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4669 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4670 | $as_echo_n "(cached) " >&6 |
4671 | else | |
4672 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4673 | ac_c_werror_flag=yes | |
4674 | ac_cv_prog_cc_g=no | |
4675 | CFLAGS="-g" | |
4676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4677 | /* end confdefs.h. */ |
4678 | ||
4679 | int | |
4680 | main () | |
4681 | { | |
4682 | ||
4683 | ; | |
4684 | return 0; | |
4685 | } | |
4686 | _ACEOF | |
81ecdfbb | 4687 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4688 | ac_cv_prog_cc_g=yes |
4689 | else | |
81ecdfbb RW |
4690 | CFLAGS="" |
4691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4692 | /* end confdefs.h. */ | |
4693 | ||
4694 | int | |
4695 | main () | |
4696 | { | |
4697 | ||
4698 | ; | |
4699 | return 0; | |
4700 | } | |
4701 | _ACEOF | |
4702 | if ac_fn_c_try_compile "$LINENO"; then : | |
4703 | ||
4704 | else | |
4705 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4706 | CFLAGS="-g" | |
4707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4708 | /* end confdefs.h. */ | |
cac3d6c4 | 4709 | |
81ecdfbb RW |
4710 | int |
4711 | main () | |
4712 | { | |
4713 | ||
4714 | ; | |
4715 | return 0; | |
4716 | } | |
4717 | _ACEOF | |
4718 | if ac_fn_c_try_compile "$LINENO"; then : | |
4719 | ac_cv_prog_cc_g=yes | |
4720 | fi | |
4721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4722 | fi |
81ecdfbb | 4723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4724 | fi |
81ecdfbb RW |
4725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4726 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4727 | fi | |
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4729 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4730 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4731 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4732 | elif test $ac_cv_prog_cc_g = yes; then |
4733 | if test "$GCC" = yes; then | |
4734 | CFLAGS="-g -O2" | |
4735 | else | |
4736 | CFLAGS="-g" | |
4737 | fi | |
4738 | else | |
4739 | if test "$GCC" = yes; then | |
4740 | CFLAGS="-O2" | |
4741 | else | |
4742 | CFLAGS= | |
4743 | fi | |
4744 | fi | |
81ecdfbb RW |
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4746 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4747 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4748 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4749 | else |
81ecdfbb | 4750 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4751 | ac_save_CC=$CC |
81ecdfbb | 4752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4753 | /* end confdefs.h. */ |
4754 | #include <stdarg.h> | |
4755 | #include <stdio.h> | |
d0ac1c44 | 4756 | struct stat; |
c6b750e1 DJ |
4757 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4758 | struct buf { int x; }; | |
4759 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4760 | static char *e (p, i) | |
4761 | char **p; | |
4762 | int i; | |
4763 | { | |
4764 | return p[i]; | |
4765 | } | |
4766 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4767 | { | |
4768 | char *s; | |
4769 | va_list v; | |
4770 | va_start (v,p); | |
4771 | s = g (p, va_arg (v,int)); | |
4772 | va_end (v); | |
4773 | return s; | |
4774 | } | |
4775 | ||
4776 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4777 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4778 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4779 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4780 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4781 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4782 | that's true only with -std. */ |
c6b750e1 DJ |
4783 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4784 | ||
81ecdfbb RW |
4785 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4786 | inside strings and character constants. */ | |
4787 | #define FOO(x) 'x' | |
4788 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4789 | ||
c6b750e1 DJ |
4790 | int test (int i, double x); |
4791 | struct s1 {int (*f) (int a);}; | |
4792 | struct s2 {int (*f) (double a);}; | |
4793 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4794 | int argc; | |
4795 | char **argv; | |
4796 | int | |
4797 | main () | |
4798 | { | |
4799 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4800 | ; | |
4801 | return 0; | |
4802 | } | |
4803 | _ACEOF | |
81ecdfbb RW |
4804 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4805 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4806 | do |
4807 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4808 | if ac_fn_c_try_compile "$LINENO"; then : |
4809 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4810 | fi |
81ecdfbb RW |
4811 | rm -f core conftest.err conftest.$ac_objext |
4812 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4813 | done |
81ecdfbb | 4814 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4815 | CC=$ac_save_CC |
4816 | ||
4817 | fi | |
81ecdfbb RW |
4818 | # AC_CACHE_VAL |
4819 | case "x$ac_cv_prog_cc_c89" in | |
4820 | x) | |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4822 | $as_echo "none needed" >&6; } ;; | |
4823 | xno) | |
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4825 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4826 | *) |
81ecdfbb RW |
4827 | CC="$CC $ac_cv_prog_cc_c89" |
4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4829 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4830 | esac |
81ecdfbb | 4831 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4832 | |
c6b750e1 DJ |
4833 | fi |
4834 | ||
c6b750e1 DJ |
4835 | ac_ext=c |
4836 | ac_cpp='$CPP $CPPFLAGS' | |
4837 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4838 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4839 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4840 | |
a8d6316b NC |
4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4842 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4843 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4844 | $as_echo_n "(cached) " >&6 | |
4845 | else | |
4846 | ac_cv_prog_cc_c99=no | |
4847 | ac_save_CC=$CC | |
4848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4849 | /* end confdefs.h. */ | |
4850 | #include <stdarg.h> | |
4851 | #include <stdbool.h> | |
4852 | #include <stdlib.h> | |
4853 | #include <wchar.h> | |
4854 | #include <stdio.h> | |
4855 | ||
4856 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4857 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4858 | #define showlist(...) puts (#__VA_ARGS__) | |
4859 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4860 | static void | |
4861 | test_varargs_macros (void) | |
4862 | { | |
4863 | int x = 1234; | |
4864 | int y = 5678; | |
4865 | debug ("Flag"); | |
4866 | debug ("X = %d\n", x); | |
4867 | showlist (The first, second, and third items.); | |
4868 | report (x>y, "x is %d but y is %d", x, y); | |
4869 | } | |
4870 | ||
4871 | // Check long long types. | |
4872 | #define BIG64 18446744073709551615ull | |
4873 | #define BIG32 4294967295ul | |
4874 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4875 | #if !BIG_OK | |
4876 | your preprocessor is broken; | |
4877 | #endif | |
4878 | #if BIG_OK | |
4879 | #else | |
4880 | your preprocessor is broken; | |
4881 | #endif | |
4882 | static long long int bignum = -9223372036854775807LL; | |
4883 | static unsigned long long int ubignum = BIG64; | |
4884 | ||
4885 | struct incomplete_array | |
4886 | { | |
4887 | int datasize; | |
4888 | double data[]; | |
4889 | }; | |
4890 | ||
4891 | struct named_init { | |
4892 | int number; | |
4893 | const wchar_t *name; | |
4894 | double average; | |
4895 | }; | |
4896 | ||
4897 | typedef const char *ccp; | |
4898 | ||
4899 | static inline int | |
4900 | test_restrict (ccp restrict text) | |
4901 | { | |
4902 | // See if C++-style comments work. | |
4903 | // Iterate through items via the restricted pointer. | |
4904 | // Also check for declarations in for loops. | |
4905 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4906 | continue; | |
4907 | return 0; | |
4908 | } | |
4909 | ||
4910 | // Check varargs and va_copy. | |
4911 | static void | |
4912 | test_varargs (const char *format, ...) | |
4913 | { | |
4914 | va_list args; | |
4915 | va_start (args, format); | |
4916 | va_list args_copy; | |
4917 | va_copy (args_copy, args); | |
4918 | ||
4919 | const char *str; | |
4920 | int number; | |
4921 | float fnumber; | |
4922 | ||
4923 | while (*format) | |
4924 | { | |
4925 | switch (*format++) | |
4926 | { | |
4927 | case 's': // string | |
4928 | str = va_arg (args_copy, const char *); | |
4929 | break; | |
4930 | case 'd': // int | |
4931 | number = va_arg (args_copy, int); | |
4932 | break; | |
4933 | case 'f': // float | |
4934 | fnumber = va_arg (args_copy, double); | |
4935 | break; | |
4936 | default: | |
4937 | break; | |
4938 | } | |
4939 | } | |
4940 | va_end (args_copy); | |
4941 | va_end (args); | |
4942 | } | |
4943 | ||
4944 | int | |
4945 | main () | |
4946 | { | |
4947 | ||
4948 | // Check bool. | |
4949 | _Bool success = false; | |
4950 | ||
4951 | // Check restrict. | |
4952 | if (test_restrict ("String literal") == 0) | |
4953 | success = true; | |
4954 | char *restrict newvar = "Another string"; | |
4955 | ||
4956 | // Check varargs. | |
4957 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
4958 | test_varargs_macros (); | |
4959 | ||
4960 | // Check flexible array members. | |
4961 | struct incomplete_array *ia = | |
4962 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4963 | ia->datasize = 10; | |
4964 | for (int i = 0; i < ia->datasize; ++i) | |
4965 | ia->data[i] = i * 1.234; | |
4966 | ||
4967 | // Check named initializers. | |
4968 | struct named_init ni = { | |
4969 | .number = 34, | |
4970 | .name = L"Test wide string", | |
4971 | .average = 543.34343, | |
4972 | }; | |
4973 | ||
4974 | ni.number = 58; | |
4975 | ||
4976 | int dynamic_array[ni.number]; | |
4977 | dynamic_array[ni.number - 1] = 543; | |
4978 | ||
4979 | // work around unused variable warnings | |
4980 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4981 | || dynamic_array[ni.number - 1] != 543); | |
4982 | ||
4983 | ; | |
4984 | return 0; | |
4985 | } | |
4986 | _ACEOF | |
4987 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
4988 | do | |
4989 | CC="$ac_save_CC $ac_arg" | |
4990 | if ac_fn_c_try_compile "$LINENO"; then : | |
4991 | ac_cv_prog_cc_c99=$ac_arg | |
4992 | fi | |
4993 | rm -f core conftest.err conftest.$ac_objext | |
4994 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4995 | done | |
4996 | rm -f conftest.$ac_ext | |
4997 | CC=$ac_save_CC | |
4998 | ||
4999 | fi | |
5000 | # AC_CACHE_VAL | |
5001 | case "x$ac_cv_prog_cc_c99" in | |
5002 | x) | |
5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5004 | $as_echo "none needed" >&6; } ;; | |
5005 | xno) | |
5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5007 | $as_echo "unsupported" >&6; } ;; | |
5008 | *) | |
5009 | CC="$CC $ac_cv_prog_cc_c99" | |
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5011 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5012 | esac | |
5013 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5014 | ||
5015 | fi | |
5016 | ||
5017 | ||
81ecdfbb | 5018 | ac_ext=cpp |
18f6b6ee PB |
5019 | ac_cpp='$CXXCPP $CPPFLAGS' |
5020 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5021 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5022 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
5023 | if test -z "$CXX"; then |
5024 | if test -n "$CCC"; then | |
5025 | CXX=$CCC | |
5026 | else | |
5027 | if test -n "$ac_tool_prefix"; then | |
5028 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
5029 | do |
5030 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5031 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5033 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5034 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 5035 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5036 | else |
5037 | if test -n "$CXX"; then | |
5038 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5039 | else | |
5040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5041 | for as_dir in $PATH | |
5042 | do | |
5043 | IFS=$as_save_IFS | |
5044 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5045 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5046 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5047 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
5049 | break 2 |
5050 | fi | |
5051 | done | |
81ecdfbb RW |
5052 | done |
5053 | IFS=$as_save_IFS | |
512b7dfb | 5054 | |
18f6b6ee PB |
5055 | fi |
5056 | fi | |
5057 | CXX=$ac_cv_prog_CXX | |
5058 | if test -n "$CXX"; then | |
81ecdfbb RW |
5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5060 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 5061 | else |
81ecdfbb RW |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5063 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5064 | fi |
5065 | ||
81ecdfbb | 5066 | |
18f6b6ee PB |
5067 | test -n "$CXX" && break |
5068 | done | |
5069 | fi | |
5070 | if test -z "$CXX"; then | |
5071 | ac_ct_CXX=$CXX | |
81ecdfbb | 5072 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
5073 | do |
5074 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5075 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5077 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5078 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 5079 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5080 | else |
5081 | if test -n "$ac_ct_CXX"; then | |
5082 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5083 | else | |
5084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5085 | for as_dir in $PATH | |
5086 | do | |
5087 | IFS=$as_save_IFS | |
5088 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5089 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5090 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5091 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 5092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 5093 | break 2 |
512b7dfb | 5094 | fi |
18f6b6ee | 5095 | done |
81ecdfbb RW |
5096 | done |
5097 | IFS=$as_save_IFS | |
512b7dfb | 5098 | |
18f6b6ee PB |
5099 | fi |
5100 | fi | |
5101 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5102 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5104 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 5105 | else |
81ecdfbb RW |
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5107 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5108 | fi |
5109 | ||
81ecdfbb | 5110 | |
18f6b6ee PB |
5111 | test -n "$ac_ct_CXX" && break |
5112 | done | |
18f6b6ee | 5113 | |
81ecdfbb RW |
5114 | if test "x$ac_ct_CXX" = x; then |
5115 | CXX="g++" | |
5116 | else | |
5117 | case $cross_compiling:$ac_tool_warned in | |
5118 | yes:) | |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5120 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5121 | ac_tool_warned=yes ;; | |
5122 | esac | |
5123 | CXX=$ac_ct_CXX | |
5124 | fi | |
18f6b6ee PB |
5125 | fi |
5126 | ||
81ecdfbb RW |
5127 | fi |
5128 | fi | |
18f6b6ee | 5129 | # Provide some information about the compiler. |
81ecdfbb RW |
5130 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5131 | set X $ac_compile | |
5132 | ac_compiler=$2 | |
5133 | for ac_option in --version -v -V -qversion; do | |
5134 | { { ac_try="$ac_compiler $ac_option >&5" | |
5135 | case "(($ac_try" in | |
5136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5137 | *) ac_try_echo=$ac_try;; | |
5138 | esac | |
5139 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5140 | $as_echo "$ac_try_echo"; } >&5 | |
5141 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 5142 | ac_status=$? |
81ecdfbb RW |
5143 | if test -s conftest.err; then |
5144 | sed '10a\ | |
5145 | ... rest of stderr output deleted ... | |
5146 | 10q' conftest.err >conftest.er1 | |
5147 | cat conftest.er1 >&5 | |
81ecdfbb | 5148 | fi |
d0ac1c44 | 5149 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
5150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5151 | test $ac_status = 0; } | |
5152 | done | |
18f6b6ee | 5153 | |
81ecdfbb RW |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5155 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 5156 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 5157 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 5158 | else |
81ecdfbb | 5159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
5160 | /* end confdefs.h. */ |
5161 | ||
5162 | int | |
5163 | main () | |
5164 | { | |
5165 | #ifndef __GNUC__ | |
5166 | choke me | |
5167 | #endif | |
5168 | ||
5169 | ; | |
5170 | return 0; | |
5171 | } | |
5172 | _ACEOF | |
81ecdfbb | 5173 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5174 | ac_compiler_gnu=yes |
5175 | else | |
81ecdfbb | 5176 | ac_compiler_gnu=no |
18f6b6ee | 5177 | fi |
81ecdfbb | 5178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
5179 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5180 | ||
5181 | fi | |
81ecdfbb RW |
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5183 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5184 | if test $ac_compiler_gnu = yes; then | |
5185 | GXX=yes | |
5186 | else | |
5187 | GXX= | |
5188 | fi | |
18f6b6ee PB |
5189 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5190 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5192 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 5193 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
5194 | $as_echo_n "(cached) " >&6 |
5195 | else | |
5196 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5197 | ac_cxx_werror_flag=yes | |
5198 | ac_cv_prog_cxx_g=no | |
5199 | CXXFLAGS="-g" | |
5200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
5201 | /* end confdefs.h. */ |
5202 | ||
5203 | int | |
5204 | main () | |
5205 | { | |
5206 | ||
5207 | ; | |
5208 | return 0; | |
5209 | } | |
5210 | _ACEOF | |
81ecdfbb | 5211 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5212 | ac_cv_prog_cxx_g=yes |
5213 | else | |
81ecdfbb RW |
5214 | CXXFLAGS="" |
5215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5216 | /* end confdefs.h. */ |
81ecdfbb | 5217 | |
18f6b6ee PB |
5218 | int |
5219 | main () | |
5220 | { | |
81ecdfbb | 5221 | |
18f6b6ee PB |
5222 | ; |
5223 | return 0; | |
5224 | } | |
5225 | _ACEOF | |
81ecdfbb | 5226 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5227 | |
81ecdfbb RW |
5228 | else |
5229 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5230 | CXXFLAGS="-g" | |
5231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5232 | /* end confdefs.h. */ |
81ecdfbb | 5233 | |
18f6b6ee PB |
5234 | int |
5235 | main () | |
5236 | { | |
81ecdfbb | 5237 | |
18f6b6ee PB |
5238 | ; |
5239 | return 0; | |
5240 | } | |
5241 | _ACEOF | |
81ecdfbb RW |
5242 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5243 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5244 | fi |
81ecdfbb RW |
5245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5246 | fi | |
5247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5248 | fi | |
5249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5250 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5251 | fi | |
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5253 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5254 | if test "$ac_test_CXXFLAGS" = set; then | |
5255 | CXXFLAGS=$ac_save_CXXFLAGS | |
5256 | elif test $ac_cv_prog_cxx_g = yes; then | |
5257 | if test "$GXX" = yes; then | |
5258 | CXXFLAGS="-g -O2" | |
5259 | else | |
5260 | CXXFLAGS="-g" | |
5261 | fi | |
5262 | else | |
5263 | if test "$GXX" = yes; then | |
5264 | CXXFLAGS="-O2" | |
5265 | else | |
5266 | CXXFLAGS= | |
5267 | fi | |
18f6b6ee | 5268 | fi |
18f6b6ee PB |
5269 | ac_ext=c |
5270 | ac_cpp='$CPP $CPPFLAGS' | |
5271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5274 | ||
5275 | ||
5276 | # We must set the default linker to the linker used by gcc for the correct | |
5277 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5278 | # set the LD default to the ld used by gcc. | |
5279 | if test -z "$LD"; then | |
5280 | if test "$GCC" = yes; then | |
5281 | case $build in | |
5282 | *-*-mingw*) | |
5283 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5284 | *) | |
5285 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5286 | esac | |
5287 | case $gcc_prog_ld in | |
5288 | # Accept absolute paths. | |
5289 | [\\/]* | [A-Za-z]:[\\/]*) | |
5290 | LD="$gcc_prog_ld" ;; | |
5291 | esac | |
5292 | fi | |
512b7dfb PB |
5293 | fi |
5294 | ||
b3676d82 EB |
5295 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5296 | have_static_libs=no | |
5297 | if test "$GCC" = yes; then | |
5298 | saved_LDFLAGS="$LDFLAGS" | |
5299 | ||
5300 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5302 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5303 | ac_ext=cpp | |
5304 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5305 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5306 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5307 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5308 | ||
5309 | ||
5310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5311 | /* end confdefs.h. */ | |
a882be68 EB |
5312 | |
5313 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5314 | #error -static-libstdc++ not implemented | |
5315 | #endif | |
b3676d82 EB |
5316 | int main() {} |
5317 | _ACEOF | |
5318 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5320 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5321 | else | |
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5323 | $as_echo "no" >&6; } | |
5324 | fi | |
5325 | rm -f core conftest.err conftest.$ac_objext \ | |
5326 | conftest$ac_exeext conftest.$ac_ext | |
5327 | ac_ext=c | |
5328 | ac_cpp='$CPP $CPPFLAGS' | |
5329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5332 | ||
5333 | ||
5334 | LDFLAGS="$saved_LDFLAGS" | |
5335 | fi | |
5336 | ||
512b7dfb PB |
5337 | |
5338 | ||
5339 | ||
c6b750e1 | 5340 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5341 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5342 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5344 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5345 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5346 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5347 | else |
512b7dfb PB |
5348 | if test -n "$GNATBIND"; then |
5349 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5350 | else |
c6b750e1 DJ |
5351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5352 | for as_dir in $PATH | |
5353 | do | |
5354 | IFS=$as_save_IFS | |
5355 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5356 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5357 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5358 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5360 | break 2 |
5361 | fi | |
5362 | done | |
81ecdfbb RW |
5363 | done |
5364 | IFS=$as_save_IFS | |
c6b750e1 | 5365 | |
9e07f89d NN |
5366 | fi |
5367 | fi | |
512b7dfb PB |
5368 | GNATBIND=$ac_cv_prog_GNATBIND |
5369 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5371 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5372 | else |
81ecdfbb RW |
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5374 | $as_echo "no" >&6; } | |
9e07f89d NN |
5375 | fi |
5376 | ||
81ecdfbb | 5377 | |
c6b750e1 | 5378 | fi |
512b7dfb PB |
5379 | if test -z "$ac_cv_prog_GNATBIND"; then |
5380 | ac_ct_GNATBIND=$GNATBIND | |
5381 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5382 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5384 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5385 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5386 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5387 | else |
512b7dfb PB |
5388 | if test -n "$ac_ct_GNATBIND"; then |
5389 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5390 | else |
c6b750e1 DJ |
5391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5392 | for as_dir in $PATH | |
5393 | do | |
5394 | IFS=$as_save_IFS | |
5395 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5396 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5398 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5400 | break 2 |
5401 | fi | |
5402 | done | |
81ecdfbb RW |
5403 | done |
5404 | IFS=$as_save_IFS | |
c6b750e1 | 5405 | |
9e07f89d NN |
5406 | fi |
5407 | fi | |
512b7dfb PB |
5408 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5409 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5411 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5412 | else |
81ecdfbb RW |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5414 | $as_echo "no" >&6; } | |
9e07f89d NN |
5415 | fi |
5416 | ||
81ecdfbb RW |
5417 | if test "x$ac_ct_GNATBIND" = x; then |
5418 | GNATBIND="no" | |
5419 | else | |
5420 | case $cross_compiling:$ac_tool_warned in | |
5421 | yes:) | |
5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5423 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5424 | ac_tool_warned=yes ;; | |
5425 | esac | |
5426 | GNATBIND=$ac_ct_GNATBIND | |
5427 | fi | |
24ff9987 | 5428 | else |
512b7dfb | 5429 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5430 | fi |
5431 | ||
7df2cd5d | 5432 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5433 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5434 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5436 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5437 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5438 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5439 | else |
512b7dfb PB |
5440 | if test -n "$GNATMAKE"; then |
5441 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5442 | else |
5443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5444 | for as_dir in $PATH | |
5445 | do | |
5446 | IFS=$as_save_IFS | |
5447 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5448 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5449 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5450 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5451 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5452 | break 2 |
5453 | fi | |
5454 | done | |
81ecdfbb RW |
5455 | done |
5456 | IFS=$as_save_IFS | |
7df2cd5d PB |
5457 | |
5458 | fi | |
5459 | fi | |
512b7dfb PB |
5460 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5461 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5463 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5464 | else |
81ecdfbb RW |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5466 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5467 | fi |
5468 | ||
81ecdfbb | 5469 | |
7df2cd5d | 5470 | fi |
512b7dfb PB |
5471 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5472 | ac_ct_GNATMAKE=$GNATMAKE | |
5473 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5474 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5476 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5477 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5478 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5479 | else |
512b7dfb PB |
5480 | if test -n "$ac_ct_GNATMAKE"; then |
5481 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5482 | else |
5483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5484 | for as_dir in $PATH | |
5485 | do | |
5486 | IFS=$as_save_IFS | |
5487 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5488 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5490 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5492 | break 2 |
5493 | fi | |
5494 | done | |
81ecdfbb RW |
5495 | done |
5496 | IFS=$as_save_IFS | |
7df2cd5d | 5497 | |
7df2cd5d PB |
5498 | fi |
5499 | fi | |
512b7dfb PB |
5500 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5501 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5503 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5504 | else |
81ecdfbb RW |
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5506 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5507 | fi |
5508 | ||
81ecdfbb RW |
5509 | if test "x$ac_ct_GNATMAKE" = x; then |
5510 | GNATMAKE="no" | |
5511 | else | |
5512 | case $cross_compiling:$ac_tool_warned in | |
5513 | yes:) | |
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5515 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5516 | ac_tool_warned=yes ;; | |
5517 | esac | |
5518 | GNATMAKE=$ac_ct_GNATMAKE | |
5519 | fi | |
7df2cd5d | 5520 | else |
512b7dfb | 5521 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5522 | fi |
5523 | ||
81ecdfbb RW |
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5525 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
d0ac1c44 | 5526 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5527 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5528 | else |
5529 | cat >conftest.adb <<EOF | |
5530 | procedure conftest is begin null; end conftest; | |
5531 | EOF | |
5532 | acx_cv_cc_gcc_supports_ada=no | |
5533 | # There is a bug in old released versions of GCC which causes the | |
5534 | # driver to exit successfully when the appropriate language module | |
5535 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5536 | # Therefore we must check for the error message as well as an | |
5537 | # unsuccessful exit. | |
b8908782 DD |
5538 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5539 | # given a .adb file, but produce no object file. So we must check | |
5540 | # if an object file was really produced to guard against this. | |
9e07f89d | 5541 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5542 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5543 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5544 | fi |
5545 | rm -f conftest.* | |
5546 | fi | |
81ecdfbb RW |
5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5548 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5549 | |
64b986c0 | 5550 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5551 | have_gnat=yes |
5552 | else | |
5553 | have_gnat=no | |
5554 | fi | |
5555 | ||
81ecdfbb RW |
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5557 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5558 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5559 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5560 | else |
5561 | echo abfoo >t1 | |
5562 | echo cdfoo >t2 | |
da17fe9d | 5563 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5564 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5565 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5566 | : | |
5567 | else | |
5568 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5569 | fi | |
5570 | fi | |
b8908782 DD |
5571 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5572 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5573 | : |
b8908782 DD |
5574 | else |
5575 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5576 | fi | |
5577 | fi | |
5578 | rm t1 t2 | |
5579 | ||
5580 | fi | |
81ecdfbb RW |
5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5582 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5583 | do_compare="$gcc_cv_prog_cmp_skip" |
5584 | ||
5585 | ||
9e07f89d | 5586 | |
ffdd6afc ILT |
5587 | # Check whether --enable-bootstrap was given. |
5588 | if test "${enable_bootstrap+set}" = set; then : | |
5589 | enableval=$enable_bootstrap; | |
5590 | else | |
5591 | enable_bootstrap=default | |
5592 | fi | |
5593 | ||
5594 | ||
5595 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5596 | if test -r $srcdir/gcc/configure; then | |
5597 | have_compiler=yes | |
5598 | else | |
5599 | have_compiler=no | |
5600 | fi | |
5601 | ||
5602 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5603 | *:*:*:no) ;; | |
5604 | ||
5605 | # Default behavior. Enable bootstrap if we have a compiler | |
5606 | # and we are in a native configuration. | |
5607 | yes:$build:$build:default) | |
5608 | enable_bootstrap=yes ;; | |
5609 | ||
5610 | *:*:*:default) | |
5611 | enable_bootstrap=no ;; | |
5612 | ||
5613 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5614 | yes:$build:$build:yes) | |
5615 | ;; | |
5616 | ||
5617 | # Other configurations, but we have a compiler. Assume the user knows | |
5618 | # what he's doing. | |
5619 | yes:*:*:yes) | |
5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5621 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5622 | ;; | |
5623 | ||
5624 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5625 | no:*:*:yes) | |
d0ac1c44 | 5626 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5627 | |
5628 | # Fail if wrong command line | |
5629 | *) | |
d0ac1c44 | 5630 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5631 | ;; |
5632 | esac | |
5633 | ||
ce6c656d L |
5634 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5635 | # C++98 compiler can still start the bootstrap. | |
5636 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5637 | CXX="$CXX -std=gnu++98" | |
5638 | fi | |
5639 | ||
af019bfd L |
5640 | # Check whether --enable-pgo-build was given. |
5641 | if test "${enable_pgo_build+set}" = set; then : | |
5642 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
5643 | else | |
5644 | enable_pgo_build=no | |
5645 | fi | |
5646 | ||
5647 | ||
5648 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
5649 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
5650 | *:*:*:no) ;; | |
5651 | ||
5652 | # Allow the PGO build only if we aren't building a compiler and | |
5653 | # we are in a native configuration. | |
5654 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
5655 | ||
5656 | # Disallow the PGO bootstrap if we are building a compiler. | |
5657 | yes:*:*:yes | yes:*:*:lto) | |
5658 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
5659 | ||
5660 | *) | |
5661 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
5662 | ;; | |
5663 | esac | |
5664 | ||
5665 | if test "$enable_pgo_build" != "no"; then | |
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
5667 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
5668 | old_CFLAGS="$CFLAGS" | |
5669 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
5670 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
5671 | ||
5672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5673 | /* end confdefs.h. */ | |
5674 | int foo; | |
5675 | _ACEOF | |
5676 | if ac_fn_c_try_compile "$LINENO"; then : | |
5677 | ||
5678 | else | |
5679 | PGO_BUILD_GEN_CFLAGS= | |
5680 | fi | |
5681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5682 | CFLAGS="$old_CFLAGS" | |
5683 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5685 | $as_echo "yes" >&6; } | |
5686 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
5687 | else | |
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5689 | $as_echo "no" >&6; } | |
5690 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
5691 | fi | |
5692 | ||
5693 | if test "$enable_pgo_build" = "lto"; then | |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
5695 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
5696 | old_CFLAGS="$CFLAGS" | |
5697 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
5698 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
5699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5700 | /* end confdefs.h. */ | |
5701 | int foo; | |
5702 | _ACEOF | |
5703 | if ac_fn_c_try_compile "$LINENO"; then : | |
5704 | ||
5705 | else | |
5706 | PGO_BUILD_LTO_CFLAGS= | |
5707 | fi | |
5708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5709 | CFLAGS="$old_CFLAGS" | |
5710 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5712 | $as_echo "yes" >&6; } | |
5713 | else | |
5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5715 | $as_echo "no" >&6; } | |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
5717 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
5718 | fi | |
5719 | fi | |
5720 | fi | |
5721 | ||
5722 | ||
5723 | ||
5724 | ||
d5f2ee2e KG |
5725 | # Used for setting $lt_cv_objdir |
5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5727 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 5728 | if ${lt_cv_objdir+:} false; then : |
d5f2ee2e KG |
5729 | $as_echo_n "(cached) " >&6 |
5730 | else | |
5731 | rm -f .libs 2>/dev/null | |
5732 | mkdir .libs 2>/dev/null | |
5733 | if test -d .libs; then | |
5734 | lt_cv_objdir=.libs | |
5735 | else | |
5736 | # MS-DOS does not allow filenames that begin with a dot. | |
5737 | lt_cv_objdir=_libs | |
5738 | fi | |
5739 | rmdir .libs 2>/dev/null | |
5740 | fi | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5742 | $as_echo "$lt_cv_objdir" >&6; } | |
5743 | objdir=$lt_cv_objdir | |
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | cat >>confdefs.h <<_ACEOF | |
5750 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5751 | _ACEOF | |
5752 | ||
5753 | ||
5754 | ||
e8a5fa9c | 5755 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5756 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5757 | gmpinc= |
4b900473 | 5758 | have_gmp=no |
e8a5fa9c RW |
5759 | |
5760 | # Specify a location for mpc | |
5761 | # check for this first so it ends up on the link line before mpfr. | |
5762 | ||
81ecdfbb RW |
5763 | # Check whether --with-mpc was given. |
5764 | if test "${with_mpc+set}" = set; then : | |
5765 | withval=$with_mpc; | |
5766 | fi | |
e8a5fa9c | 5767 | |
e8a5fa9c | 5768 | |
e552509b | 5769 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5770 | if test "${with_mpc_include+set}" = set; then : |
5771 | withval=$with_mpc_include; | |
5772 | fi | |
e8a5fa9c | 5773 | |
e8a5fa9c | 5774 | |
e552509b | 5775 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5776 | if test "${with_mpc_lib+set}" = set; then : |
5777 | withval=$with_mpc_lib; | |
5778 | fi | |
e8a5fa9c | 5779 | |
e8a5fa9c RW |
5780 | |
5781 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5782 | gmplibs="-L$with_mpc/lib $gmplibs" |
5783 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5784 | fi |
5785 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5786 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5787 | fi |
5788 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5789 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5790 | fi |
5791 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5792 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5793 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5794 | # Do not test the mpc version. Assume that it is sufficient, since |
5795 | # it is in the source tree, and the library has not been built yet | |
5796 | # but it would be included on the link line in the version check below | |
5797 | # hence making the test fail. | |
d9b76ff9 | 5798 | have_gmp=yes |
e8a5fa9c | 5799 | fi |
4b900473 | 5800 | |
11b04d1f DD |
5801 | # Specify a location for mpfr |
5802 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5803 | |
81ecdfbb RW |
5804 | # Check whether --with-mpfr-dir was given. |
5805 | if test "${with_mpfr_dir+set}" = set; then : | |
d0ac1c44 | 5806 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
81ecdfbb RW |
5807 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5808 | fi | |
5809 | ||
11b04d1f DD |
5810 | |
5811 | ||
81ecdfbb RW |
5812 | # Check whether --with-mpfr was given. |
5813 | if test "${with_mpfr+set}" = set; then : | |
5814 | withval=$with_mpfr; | |
5815 | fi | |
c6b750e1 | 5816 | |
11b04d1f | 5817 | |
e552509b | 5818 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5819 | if test "${with_mpfr_include+set}" = set; then : |
5820 | withval=$with_mpfr_include; | |
5821 | fi | |
c6b750e1 | 5822 | |
8a0d8a5c | 5823 | |
e552509b | 5824 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5825 | if test "${with_mpfr_lib+set}" = set; then : |
5826 | withval=$with_mpfr_lib; | |
5827 | fi | |
8a0d8a5c | 5828 | |
11b04d1f DD |
5829 | |
5830 | if test "x$with_mpfr" != x; then | |
5831 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5832 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5833 | fi |
8a0d8a5c | 5834 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5835 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5836 | fi |
5837 | if test "x$with_mpfr_lib" != x; then | |
5838 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5839 | fi | |
4b900473 | 5840 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 5841 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 5842 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 5843 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 5844 | fi |
05a13254 NC |
5845 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5846 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5847 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
5848 | # Do not test the mpfr version. Assume that it is sufficient, since |
5849 | # it is in the source tree, and the library has not been built yet | |
5850 | # but it would be included on the link line in the version check below | |
5851 | # hence making the test fail. | |
5852 | have_gmp=yes | |
5853 | fi | |
11b04d1f | 5854 | |
4b1cb4fe | 5855 | # Specify a location for gmp |
c6b750e1 | 5856 | |
81ecdfbb RW |
5857 | # Check whether --with-gmp-dir was given. |
5858 | if test "${with_gmp_dir+set}" = set; then : | |
d0ac1c44 | 5859 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
81ecdfbb RW |
5860 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5861 | fi | |
5862 | ||
4b1cb4fe DD |
5863 | |
5864 | ||
81ecdfbb RW |
5865 | # Check whether --with-gmp was given. |
5866 | if test "${with_gmp+set}" = set; then : | |
5867 | withval=$with_gmp; | |
5868 | fi | |
c6b750e1 | 5869 | |
4b1cb4fe | 5870 | |
e552509b | 5871 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5872 | if test "${with_gmp_include+set}" = set; then : |
5873 | withval=$with_gmp_include; | |
5874 | fi | |
c6b750e1 | 5875 | |
8a0d8a5c | 5876 | |
e552509b | 5877 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5878 | if test "${with_gmp_lib+set}" = set; then : |
5879 | withval=$with_gmp_lib; | |
5880 | fi | |
8a0d8a5c PB |
5881 | |
5882 | ||
4b1cb4fe | 5883 | |
11b04d1f DD |
5884 | if test "x$with_gmp" != x; then |
5885 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5886 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5887 | fi |
8a0d8a5c PB |
5888 | if test "x$with_gmp_include" != x; then |
5889 | gmpinc="-I$with_gmp_include $gmpinc" | |
5890 | fi | |
5891 | if test "x$with_gmp_lib" != x; then | |
5892 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5893 | fi | |
4b900473 | 5894 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5895 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5896 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5897 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5898 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5899 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5900 | # Do not test the gmp version. Assume that it is sufficient, since |
5901 | # it is in the source tree, and the library has not been built yet | |
5902 | # but it would be included on the link line in the version check below | |
5903 | # hence making the test fail. | |
5904 | have_gmp=yes | |
5905 | fi | |
4b1cb4fe | 5906 | |
ceb92e78 | 5907 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5908 | have_gmp=yes |
5909 | saved_CFLAGS="$CFLAGS" | |
5910 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5911 | # Check for the recommended and required versions of GMP. |
5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5913 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
af019bfd | 5914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a6b5846e KG |
5915 | /* end confdefs.h. */ |
5916 | #include "gmp.h" | |
5917 | int | |
5918 | main () | |
5919 | { | |
5920 | ||
5921 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5922 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5923 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5924 | choke me |
5925 | #endif | |
5926 | ||
5927 | ; | |
5928 | return 0; | |
5929 | } | |
5930 | _ACEOF | |
5931 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5933 | /* end confdefs.h. */ |
a6b5846e | 5934 | #include <gmp.h> |
c6b750e1 DJ |
5935 | int |
5936 | main () | |
5937 | { | |
4b1cb4fe | 5938 | |
a6b5846e KG |
5939 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5940 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5941 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5942 | choke me |
5943 | #endif | |
c6b750e1 DJ |
5944 | |
5945 | ; | |
5946 | return 0; | |
5947 | } | |
5948 | _ACEOF | |
81ecdfbb RW |
5949 | if ac_fn_c_try_compile "$LINENO"; then : |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5951 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5952 | else |
5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5954 | $as_echo "buggy but acceptable" >&6; } | |
5955 | fi | |
5956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5957 | else |
81ecdfbb RW |
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5959 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5960 | fi |
81ecdfbb | 5961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5962 | |
e8a5fa9c | 5963 | # If we have GMP, check the MPFR version. |
4b900473 | 5964 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5965 | # Check for the recommended and required versions of MPFR. |
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5967 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5969 | /* end confdefs.h. */ |
9b134994 | 5970 | #include <gmp.h> |
4b900473 | 5971 | #include <mpfr.h> |
c6b750e1 DJ |
5972 | int |
5973 | main () | |
5974 | { | |
9b134994 | 5975 | |
7ec59b9e | 5976 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5977 | choke me |
5978 | #endif | |
c6b750e1 DJ |
5979 | |
5980 | ; | |
5981 | return 0; | |
5982 | } | |
5983 | _ACEOF | |
81ecdfbb RW |
5984 | if ac_fn_c_try_compile "$LINENO"; then : |
5985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5986 | /* end confdefs.h. */ |
4b1cb4fe | 5987 | #include <gmp.h> |
4b900473 | 5988 | #include <mpfr.h> |
c6b750e1 DJ |
5989 | int |
5990 | main () | |
5991 | { | |
9dbaa842 | 5992 | |
a6b5846e | 5993 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5994 | choke me |
5995 | #endif | |
e8a5fa9c RW |
5996 | |
5997 | ; | |
5998 | return 0; | |
5999 | } | |
6000 | _ACEOF | |
81ecdfbb RW |
6001 | if ac_fn_c_try_compile "$LINENO"; then : |
6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6003 | $as_echo "yes" >&6; } | |
e8a5fa9c | 6004 | else |
81ecdfbb RW |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
6006 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 6007 | fi |
81ecdfbb | 6008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 6009 | else |
81ecdfbb RW |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6011 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 6012 | fi |
81ecdfbb | 6013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
6014 | fi |
6015 | ||
6016 | # Check for the MPC header version. | |
d9b76ff9 | 6017 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 6018 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
6020 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
6021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
6022 | /* end confdefs.h. */ |
6023 | #include <mpc.h> | |
6024 | int | |
6025 | main () | |
6026 | { | |
6027 | ||
a6b5846e KG |
6028 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
6029 | choke me | |
6030 | #endif | |
6031 | ||
6032 | ; | |
6033 | return 0; | |
6034 | } | |
6035 | _ACEOF | |
6036 | if ac_fn_c_try_compile "$LINENO"; then : | |
6037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6038 | /* end confdefs.h. */ | |
6039 | #include <mpc.h> | |
6040 | int | |
6041 | main () | |
6042 | { | |
6043 | ||
6044 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
6045 | choke me |
6046 | #endif | |
6047 | ||
6048 | ; | |
6049 | return 0; | |
6050 | } | |
6051 | _ACEOF | |
81ecdfbb RW |
6052 | if ac_fn_c_try_compile "$LINENO"; then : |
6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 6054 | $as_echo "yes" >&6; } |
a6b5846e KG |
6055 | else |
6056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
6057 | $as_echo "buggy but acceptable" >&6; } | |
6058 | fi | |
6059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 6060 | else |
81ecdfbb | 6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 6062 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 6063 | fi |
81ecdfbb | 6064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
6065 | fi |
6066 | ||
6067 | # Now check the MPFR library. | |
6068 | if test x"$have_gmp" = xyes; then | |
6069 | saved_LIBS="$LIBS" | |
6070 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
6072 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 6073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 6074 | /* end confdefs.h. */ |
d9b76ff9 | 6075 | #include <mpc.h> |
e8a5fa9c RW |
6076 | int |
6077 | main () | |
6078 | { | |
6079 | ||
6080 | mpfr_t n; | |
6081 | mpfr_t x; | |
d9b76ff9 | 6082 | mpc_t c; |
e8a5fa9c RW |
6083 | int t; |
6084 | mpfr_init (n); | |
6085 | mpfr_init (x); | |
6086 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
6087 | mpfr_erfc (n, x, GMP_RNDN); | |
6088 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
6089 | mpfr_clear(n); |
6090 | mpfr_clear(x); | |
6091 | mpc_init2 (c, 53); | |
6092 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
6093 | mpc_cosh (c, c, MPC_RNDNN); | |
6094 | mpc_pow (c, c, c, MPC_RNDNN); | |
6095 | mpc_acosh (c, c, MPC_RNDNN); | |
6096 | mpc_clear (c); | |
c6b750e1 DJ |
6097 | |
6098 | ; | |
6099 | return 0; | |
6100 | } | |
6101 | _ACEOF | |
81ecdfbb RW |
6102 | if ac_fn_c_try_link "$LINENO"; then : |
6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6104 | $as_echo "yes" >&6; } | |
c6b750e1 | 6105 | else |
81ecdfbb RW |
6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6107 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 6108 | fi |
81ecdfbb RW |
6109 | rm -f core conftest.err conftest.$ac_objext \ |
6110 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
6111 | LIBS="$saved_LIBS" |
6112 | fi | |
6113 | ||
4b900473 | 6114 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 6115 | |
a6b5846e KG |
6116 | # The library versions listed in the error message below should match |
6117 | # the HARD-minimums enforced above. | |
4b900473 | 6118 | if test x$have_gmp != xyes; then |
d0ac1c44 | 6119 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
6120 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
6121 | their locations. Source code for these libraries can be found at | |
6122 | their respective hosting sites as well as at | |
6123 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
6124 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
6125 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
6126 | make sure that you have installed both the libraries and the header | |
6127 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 6128 | fi |
9dbaa842 DD |
6129 | fi |
6130 | ||
e8a5fa9c RW |
6131 | # Flags needed for both GMP, MPFR and/or MPC. |
6132 | ||
6133 | ||
6134 | ||
4b1cb4fe DD |
6135 | |
6136 | ||
6137 | ||
7ec59b9e | 6138 | |
b3676d82 | 6139 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 6140 | |
b3676d82 EB |
6141 | # Check whether --with-stage1-libs was given. |
6142 | if test "${with_stage1_libs+set}" = set; then : | |
6143 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6144 | stage1_libs= | |
e8a5fa9c | 6145 | else |
b3676d82 | 6146 | stage1_libs=$withval |
e8a5fa9c RW |
6147 | fi |
6148 | else | |
68996839 | 6149 | stage1_libs= |
81ecdfbb RW |
6150 | fi |
6151 | ||
e8a5fa9c RW |
6152 | |
6153 | ||
c1a5d03a TT |
6154 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
6155 | # default is yes if gcc is being built; no otherwise. The reason for | |
6156 | # this default is that gdb is sometimes linked against GNU Source | |
6157 | # Highlight, which is a shared library that uses C++ exceptions. In | |
6158 | # this case, -static-libstdc++ will cause crashes. | |
6159 | ||
6160 | # Check whether --with-static-standard-libraries was given. | |
6161 | if test "${with_static_standard_libraries+set}" = set; then : | |
6162 | withval=$with_static_standard_libraries; | |
6163 | else | |
6164 | with_static_standard_libraries=auto | |
6165 | fi | |
6166 | ||
6167 | if test "$with_static_standard_libraries" = auto; then | |
6168 | with_static_standard_libraries=$have_compiler | |
6169 | fi | |
6170 | ||
b3676d82 | 6171 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 6172 | |
b3676d82 EB |
6173 | # Check whether --with-stage1-ldflags was given. |
6174 | if test "${with_stage1_ldflags+set}" = set; then : | |
6175 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6176 | stage1_ldflags= | |
e8a5fa9c | 6177 | else |
b3676d82 | 6178 | stage1_ldflags=$withval |
e8a5fa9c RW |
6179 | fi |
6180 | else | |
b3676d82 EB |
6181 | stage1_ldflags= |
6182 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
6183 | # if supported. But if the user explicitly specified the libraries to use, | |
6184 | # trust that they are doing what they want. | |
c1a5d03a TT |
6185 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
6186 | -a "$have_static_libs" = yes; then | |
b3676d82 EB |
6187 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
6188 | fi | |
81ecdfbb RW |
6189 | fi |
6190 | ||
e8a5fa9c RW |
6191 | |
6192 | ||
68996839 | 6193 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 6194 | |
81ecdfbb RW |
6195 | # Check whether --with-boot-libs was given. |
6196 | if test "${with_boot_libs+set}" = set; then : | |
6197 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
6198 | poststage1_libs= |
6199 | else | |
6200 | poststage1_libs=$withval | |
6201 | fi | |
6202 | else | |
68996839 | 6203 | poststage1_libs= |
81ecdfbb RW |
6204 | fi |
6205 | ||
e8a5fa9c RW |
6206 | |
6207 | ||
143754cd NC |
6208 | # Linker flags to use for stage2 and later builds. |
6209 | ||
6210 | # Check whether --with-boot-ldflags was given. | |
6211 | if test "${with_boot_ldflags+set}" = set; then : | |
6212 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6213 | poststage1_ldflags= | |
6214 | else | |
6215 | poststage1_ldflags=$withval | |
6216 | fi | |
6217 | else | |
6218 | poststage1_ldflags= | |
4f11b223 ILT |
6219 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
6220 | # statically. But if the user explicitly specified the libraries to | |
6221 | # use, trust that they are doing what they want. | |
6222 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
6223 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
6224 | fi | |
6225 | fi | |
6226 | ||
6227 | ||
6228 | ||
4849dfd8 | 6229 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 6230 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
6231 | |
6232 | ||
7ec59b9e L |
6233 | # Check whether --with-isl was given. |
6234 | if test "${with_isl+set}" = set; then : | |
6235 | withval=$with_isl; | |
81ecdfbb | 6236 | fi |
e28c595f | 6237 | |
e28c595f | 6238 | |
1b6c0831 | 6239 | # Treat --without-isl as a request to disable |
8e71395b | 6240 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 6241 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 6242 | # Check for isl |
8e71395b L |
6243 | |
6244 | ||
7ec59b9e L |
6245 | # Check whether --with-isl-include was given. |
6246 | if test "${with_isl_include+set}" = set; then : | |
6247 | withval=$with_isl_include; | |
81ecdfbb RW |
6248 | fi |
6249 | ||
e28c595f | 6250 | |
7ec59b9e L |
6251 | # Check whether --with-isl-lib was given. |
6252 | if test "${with_isl_lib+set}" = set; then : | |
6253 | withval=$with_isl_lib; | |
81ecdfbb | 6254 | fi |
e28c595f | 6255 | |
e28c595f | 6256 | |
7ec59b9e L |
6257 | # Check whether --enable-isl-version-check was given. |
6258 | if test "${enable_isl_version_check+set}" = set; then : | |
6259 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
6260 | else | |
6261 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
6262 | fi |
6263 | ||
6264 | ||
7ec59b9e L |
6265 | # Initialize isllibs and islinc. |
6266 | case $with_isl in | |
6267 | no) | |
6268 | isllibs= | |
6269 | islinc= | |
6270 | ;; | |
6271 | "" | yes) | |
6272 | ;; | |
6273 | *) | |
6274 | isllibs="-L$with_isl/lib" | |
6275 | islinc="-I$with_isl/include" | |
6276 | ;; | |
6277 | esac | |
6278 | if test "x${with_isl_include}" != x ; then | |
6279 | islinc="-I$with_isl_include" | |
6280 | fi | |
6281 | if test "x${with_isl_lib}" != x; then | |
6282 | isllibs="-L$with_isl_lib" | |
6283 | fi | |
6284 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
6285 | && test -d ${srcdir}/isl; then | |
6286 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
6287 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
6288 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
6290 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 6291 | fi |
b123da99 | 6292 | |
1b6c0831 | 6293 | isllibs="${isllibs} -lisl" |
b123da99 | 6294 | |
e28c595f | 6295 | |
b3fc79f8 JBG |
6296 | |
6297 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
6298 | _isl_saved_CFLAGS=$CFLAGS | |
6299 | _isl_saved_LDFLAGS=$LDFLAGS | |
6300 | _isl_saved_LIBS=$LIBS | |
6301 | ||
6302 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
6303 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6304 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 6305 | |
bf41f30d NC |
6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
6307 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 6308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 6309 | /* end confdefs.h. */ |
bf41f30d | 6310 | #include <isl/schedule.h> |
b3fc79f8 JBG |
6311 | int |
6312 | main () | |
6313 | { | |
bf41f30d | 6314 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
6315 | ; |
6316 | return 0; | |
6317 | } | |
6318 | _ACEOF | |
1b6c0831 | 6319 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
6320 | gcc_cv_isl=yes |
6321 | else | |
6322 | gcc_cv_isl=no | |
6323 | fi | |
1b6c0831 L |
6324 | rm -f core conftest.err conftest.$ac_objext \ |
6325 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6327 | $as_echo "$gcc_cv_isl" >&6; } | |
6328 | ||
4849dfd8 | 6329 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
6331 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
6332 | fi |
6333 | ||
b3fc79f8 JBG |
6334 | CFLAGS=$_isl_saved_CFLAGS |
6335 | LDFLAGS=$_isl_saved_LDFLAGS | |
6336 | LIBS=$_isl_saved_LIBS | |
6337 | fi | |
6338 | ||
6339 | ||
e28c595f | 6340 | |
e28c595f | 6341 | |
7ec59b9e L |
6342 | |
6343 | ||
7ec59b9e L |
6344 | if test "x${with_isl}" = xno; then |
6345 | graphite_requested=no | |
6346 | elif test "x${with_isl}" != x \ | |
6347 | || test "x${with_isl_include}" != x \ | |
6348 | || test "x${with_isl_lib}" != x ; then | |
6349 | graphite_requested=yes | |
6350 | else | |
6351 | graphite_requested=no | |
b123da99 | 6352 | fi |
e28c595f | 6353 | |
e28c595f JM |
6354 | |
6355 | ||
7ec59b9e L |
6356 | if test "${gcc_cv_isl}" = no ; then |
6357 | isllibs= | |
6358 | islinc= | |
6359 | fi | |
e28c595f | 6360 | |
7ec59b9e L |
6361 | if test "${graphite_requested}" = yes \ |
6362 | && test "x${isllibs}" = x \ | |
6363 | && test "x${islinc}" = x ; then | |
e28c595f | 6364 | |
d0ac1c44 | 6365 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 6366 | fi |
e552509b | 6367 | |
e28c595f | 6368 | |
e552509b ILT |
6369 | fi |
6370 | ||
4849dfd8 | 6371 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 6372 | if test "x$with_isl" = xno || |
8e71395b | 6373 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6374 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6375 | islinc= |
7ec59b9e L |
6376 | fi |
6377 | ||
8e71395b L |
6378 | |
6379 | ||
6380 | ||
700d40ca ILT |
6381 | # Check for LTO support. |
6382 | # Check whether --enable-lto was given. | |
6383 | if test "${enable_lto+set}" = set; then : | |
6384 | enableval=$enable_lto; enable_lto=$enableval | |
6385 | else | |
6386 | enable_lto=yes; default_enable_lto=yes | |
6387 | fi | |
6388 | ||
6389 | ||
143754cd | 6390 | |
e49e5c92 DK |
6391 | |
6392 | ||
6393 | target_elf=no | |
6394 | case $target in | |
6395 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6396 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6397 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6398 | nvptx-*-none) | |
e49e5c92 DK |
6399 | target_elf=no |
6400 | ;; | |
6401 | *) | |
6402 | target_elf=yes | |
6403 | ;; | |
6404 | esac | |
6405 | ||
6406 | if test $target_elf = yes; then : | |
74cea91b DK |
6407 | # ELF platforms build the lto-plugin always. |
6408 | build_lto_plugin=yes | |
e49e5c92 | 6409 | |
e49e5c92 DK |
6410 | else |
6411 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6412 | case $target in |
bf41f30d | 6413 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6414 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6415 | *) enable_lto=no ;; |
6416 | esac | |
e49e5c92 | 6417 | else |
29821356 RW |
6418 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6419 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6420 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6421 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6422 | # -flto it won't be needed until after installation anyway. | |
6423 | case $target in | |
52cf9762 | 6424 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 6425 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 6426 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
6427 | fi |
6428 | ;; | |
6429 | esac | |
6430 | fi | |
a8eb3f0a | 6431 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6432 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6433 | case $target in |
74cea91b | 6434 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6435 | *) ;; |
6436 | esac | |
74cea91b | 6437 | |
e49e5c92 DK |
6438 | fi |
6439 | ||
700d40ca | 6440 | |
1b6c0831 L |
6441 | # Check whether --enable-linker-plugin-configure-flags was given. |
6442 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6443 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6444 | else | |
6445 | extra_linker_plugin_configure_flags= | |
6446 | fi | |
6447 | ||
6448 | ||
6449 | # Check whether --enable-linker-plugin-flags was given. | |
6450 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6451 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6452 | else | |
6453 | extra_linker_plugin_flags= | |
6454 | fi | |
6455 | ||
6456 | ||
6457 | ||
bf41f30d NC |
6458 | # Enable --enable-host-shared. |
6459 | # Checked early to determine whether jit is an 'all' language | |
6460 | # Check whether --enable-host-shared was given. | |
6461 | if test "${enable_host_shared+set}" = set; then : | |
6462 | enableval=$enable_host_shared; host_shared=$enableval | |
6463 | else | |
6464 | host_shared=no | |
6465 | fi | |
6466 | ||
6467 | ||
e28c595f | 6468 | |
7ec59b9e | 6469 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6470 | stage1_languages=,c, |
1d39f329 | 6471 | |
e8a5fa9c | 6472 | # Target libraries that we bootstrap. |
2aa2364a | 6473 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6474 | |
9e07f89d NN |
6475 | # Figure out what language subdirectories are present. |
6476 | # Look if the user specified --enable-languages="..."; if not, use | |
6477 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6478 | # go away some day. | |
6479 | # NB: embedded tabs in this IF block -- do not untabify | |
6480 | if test -d ${srcdir}/gcc; then | |
6481 | if test x"${enable_languages+set}" != xset; then | |
6482 | if test x"${LANGUAGES+set}" = xset; then | |
6483 | enable_languages="${LANGUAGES}" | |
136bb21f | 6484 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 6485 | else |
bf41f30d | 6486 | enable_languages=default |
9e07f89d NN |
6487 | fi |
6488 | else | |
6489 | if test x"${enable_languages}" = x || | |
6490 | test x"${enable_languages}" = xyes; | |
6491 | then | |
136bb21f | 6492 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6493 | exit 1 |
6494 | fi | |
6495 | fi | |
6496 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6497 | ||
096f7d00 DE |
6498 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6499 | # and make the substitution. | |
6500 | case ,${enable_languages}, in | |
6501 | *,f95,*) | |
136bb21f | 6502 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6503 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6504 | ;; | |
6505 | esac | |
6506 | ||
7ec59b9e L |
6507 | # If bootstrapping, C++ must be enabled. |
6508 | case ",$enable_languages,:$enable_bootstrap" in | |
6509 | *,c++,*:*) ;; | |
6510 | *:yes) | |
ffdd6afc ILT |
6511 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6512 | enable_languages="${enable_languages},c++" | |
6513 | else | |
d0ac1c44 | 6514 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6515 | fi |
6516 | ;; | |
6517 | esac | |
6518 | ||
9e07f89d NN |
6519 | # First scan to see if an enabled language requires some other language. |
6520 | # We assume that a given config-lang.in will list all the language | |
6521 | # front ends it requires, even if some are required indirectly. | |
6522 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6523 | case ${lang_frag} in | |
6524 | ..) ;; | |
6525 | # The odd quoting in the next line works around | |
6526 | # an apparent bug in bash 1.12 on linux. | |
6527 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6528 | *) | |
e552509b ILT |
6529 | # From the config-lang.in, get $language, $lang_requires, and |
6530 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6531 | language= |
6532 | lang_requires= | |
e552509b | 6533 | lang_requires_boot_languages= |
bf41f30d NC |
6534 | # set srcdir during sourcing lang_frag to the gcc dir. |
6535 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6536 | # polutes this shell | |
6537 | saved_srcdir=${srcdir} | |
6538 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6539 | srcdir=${saved_srcdir} | |
e552509b | 6540 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6541 | case ,${enable_languages}, in |
6542 | *,$other,*) ;; | |
bf41f30d | 6543 | *,default,*) ;; |
9e07f89d NN |
6544 | *,all,*) ;; |
6545 | *,$language,*) | |
6546 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6547 | enable_languages="${enable_languages},${other}" | |
6548 | ;; | |
6549 | esac | |
6550 | done | |
e552509b ILT |
6551 | for other in ${lang_requires_boot_languages} ; do |
6552 | if test "$other" != "c"; then | |
6553 | case ,${enable_stage1_languages}, in | |
6554 | *,$other,*) ;; | |
bf41f30d | 6555 | *,default,*) ;; |
e552509b ILT |
6556 | *,all,*) ;; |
6557 | *) | |
6558 | case ,${enable_languages}, in | |
6559 | *,$language,*) | |
6560 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6561 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6562 | ;; | |
6563 | esac | |
6564 | ;; | |
6565 | esac | |
6566 | fi | |
6567 | done | |
9e07f89d NN |
6568 | ;; |
6569 | esac | |
6570 | done | |
6571 | ||
9b134994 | 6572 | new_enable_languages=,c, |
700d40ca ILT |
6573 | |
6574 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6575 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6576 | case ,${enable_languages}, in |
6577 | *,lto,*) ;; | |
6578 | *) enable_languages="${enable_languages},lto" ;; | |
6579 | esac | |
a8eb3f0a | 6580 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6581 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6582 | fi |
6583 | fi | |
6584 | ||
1b6c0831 L |
6585 | # If we're building an offloading compiler, add the LTO front end. |
6586 | if test x"$enable_as_accelerator_for" != x ; then | |
6587 | case ,${enable_languages}, in | |
6588 | *,lto,*) ;; | |
6589 | *) enable_languages="${enable_languages},lto" ;; | |
6590 | esac | |
6591 | fi | |
700d40ca | 6592 | |
bf41f30d | 6593 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6594 | potential_languages=,c, |
9e07f89d | 6595 | |
9e1a94f4 ILT |
6596 | enabled_target_libs= |
6597 | disabled_target_libs= | |
6598 | ||
9e07f89d NN |
6599 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6600 | case ${lang_frag} in | |
6601 | ..) ;; | |
6602 | # The odd quoting in the next line works around | |
6603 | # an apparent bug in bash 1.12 on linux. | |
6604 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6605 | *) | |
c6b750e1 | 6606 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6607 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6608 | language= |
6609 | target_libs= | |
6610 | lang_dirs= | |
64ce424c | 6611 | subdir_requires= |
9b134994 PB |
6612 | boot_language=no |
6613 | build_by_default=yes | |
bf41f30d NC |
6614 | # set srcdir during sourcing. See above about save & restore |
6615 | saved_srcdir=${srcdir} | |
6616 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6617 | srcdir=${saved_srcdir} | |
9b134994 PB |
6618 | if test x${language} = x; then |
6619 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6620 | exit 1 | |
6621 | fi | |
6622 | ||
ffdd6afc | 6623 | if test "$language" = "c++"; then |
7ec59b9e | 6624 | boot_language=yes |
e8a5fa9c RW |
6625 | fi |
6626 | ||
8e71395b | 6627 | add_this_lang=no |
bf41f30d NC |
6628 | # C is always enabled, so no need to add it again |
6629 | if test "$language" != "c"; then | |
6630 | case ,${enable_languages}, in | |
6631 | *,${language},*) | |
6632 | # Language was explicitly selected; include it | |
7ec59b9e | 6633 | add_this_lang=yes |
bf41f30d NC |
6634 | ;; |
6635 | *,all,*) | |
6636 | # All languages are enabled | |
6637 | add_this_lang=all | |
6638 | ;; | |
6639 | *,default,*) | |
6640 | # 'default' was selected, select it if it is a default language | |
8e71395b | 6641 | add_this_lang=${build_by_default} |
bf41f30d NC |
6642 | ;; |
6643 | esac | |
6644 | fi | |
4b1cb4fe | 6645 | |
64ce424c | 6646 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6647 | for i in $subdir_requires; do |
3d3adb43 | 6648 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
6649 | case ${add_this_lang} in |
6650 | yes) | |
64ce424c | 6651 | # Specifically requested language; tell them. |
d0ac1c44 | 6652 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 6653 | ;; |
bf41f30d NC |
6654 | all) |
6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6656 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6657 | add_this_lang=unsupported | |
6658 | ;; | |
64ce424c PB |
6659 | *) |
6660 | # Silently disable. | |
9b134994 | 6661 | add_this_lang=unsupported |
64ce424c PB |
6662 | ;; |
6663 | esac | |
6664 | done | |
6665 | ||
9b134994 | 6666 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
6667 | case ${add_this_lang}:${language}:${have_gnat} in |
6668 | yes:ada:no) | |
9b134994 | 6669 | # Specifically requested language; tell them. |
d0ac1c44 | 6670 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 6671 | ;; |
bf41f30d NC |
6672 | all:ada:no) |
6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6674 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6675 | add_this_lang=unsupported | |
6676 | ;; | |
9b134994 PB |
6677 | *:ada:no) |
6678 | # Silently disable. | |
6679 | add_this_lang=unsupported | |
6680 | ;; | |
6681 | esac | |
6682 | ||
bf41f30d NC |
6683 | # Disable jit if -enable-host-shared not specified |
6684 | case ${add_this_lang}:${language}:${host_shared} in | |
6685 | yes:jit:no) | |
6686 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 6687 | as_fn_error $? " |
bf41f30d NC |
6688 | Enabling language \"jit\" requires --enable-host-shared. |
6689 | ||
6690 | --enable-host-shared typically slows the rest of the compiler down by | |
6691 | a few %, so you must explicitly enable it. | |
6692 | ||
6693 | If you want to build both the jit and the regular compiler, it is often | |
6694 | best to do this via two separate configure/builds, in separate | |
6695 | directories, to avoid imposing the performance cost of | |
6696 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6697 | ;; | |
6698 | all:jit:no) | |
6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6700 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6701 | add_this_lang=unsupported | |
6702 | ;; | |
6703 | *:jit:no) | |
6704 | # Silently disable. | |
6705 | add_this_lang=unsupported | |
6706 | ;; | |
6707 | esac | |
6708 | ||
6709 | # Disable a language that is unsupported by the target. | |
6710 | case "${add_this_lang}: $unsupported_languages " in | |
6711 | no:*) ;; | |
6712 | unsupported:*) ;; | |
6713 | *:*" $language "*) | |
6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6715 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 6716 | add_this_lang=unsupported |
59f7ec45 HPN |
6717 | ;; |
6718 | esac | |
6719 | ||
4b1cb4fe | 6720 | case $add_this_lang in |
9b134994 | 6721 | unsupported) |
9e07f89d | 6722 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6723 | disabled_target_libs="$disabled_target_libs $target_libs" |
6724 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6725 | ;; |
9b134994 PB |
6726 | no) |
6727 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6728 | disabled_target_libs="$disabled_target_libs $target_libs" |
6729 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6730 | potential_languages="${potential_languages}${language}," |
6731 | ;; | |
bf41f30d | 6732 | all|yes) |
9b134994 PB |
6733 | new_enable_languages="${new_enable_languages}${language}," |
6734 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6735 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6736 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6737 | case "${boot_language}:,$enable_stage1_languages," in |
6738 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6739 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6740 | case ",$stage1_languages," in |
6741 | *,$language,* | ,yes, | ,all,) ;; | |
6742 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6743 | esac | |
e8a5fa9c RW |
6744 | # We need to bootstrap any supporting libraries. |
6745 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6746 | ;; |
6747 | esac | |
6748 | ;; | |
9e07f89d NN |
6749 | esac |
6750 | ;; | |
6751 | esac | |
6752 | done | |
6753 | ||
9e1a94f4 ILT |
6754 | # Add target libraries which are only needed for disabled languages |
6755 | # to noconfigdirs. | |
6756 | if test -n "$disabled_target_libs"; then | |
6757 | for dir in $disabled_target_libs; do | |
6758 | case " $enabled_target_libs " in | |
6759 | *" ${dir} "*) ;; | |
6760 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6761 | esac | |
6762 | done | |
6763 | fi | |
6764 | ||
81ecdfbb RW |
6765 | # Check whether --enable-stage1-languages was given. |
6766 | if test "${enable_stage1_languages+set}" = set; then : | |
6767 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6768 | ,no,|,,) |
6769 | # Set it to something that will have no effect in the loop below | |
6770 | enable_stage1_languages=c ;; | |
6771 | ,yes,) | |
6772 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6773 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6774 | *,all,*) | |
6775 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6776 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6777 | esac | |
6778 | ||
6779 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6780 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6781 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6782 | case $potential_languages in | |
6783 | *,$i,*) | |
6784 | case $stage1_languages in | |
6785 | *,$i,*) ;; | |
6786 | *) stage1_languages="$stage1_languages$i," ;; | |
6787 | esac ;; | |
6788 | *) | |
6789 | case $missing_languages in | |
6790 | *,$i,*) ;; | |
6791 | *) missing_languages="$missing_languages$i," ;; | |
6792 | esac ;; | |
6793 | esac | |
6794 | done | |
81ecdfbb RW |
6795 | fi |
6796 | ||
9b134994 PB |
6797 | |
6798 | # Remove leading/trailing commas that were added for simplicity | |
6799 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6800 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6801 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6802 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6803 | ||
9e07f89d | 6804 | if test "x$missing_languages" != x; then |
d0ac1c44 | 6805 | as_fn_error $? " |
27258dd4 | 6806 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6807 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6808 | fi |
9e07f89d NN |
6809 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6810 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6811 | enable_languages="$new_enable_languages" |
9e07f89d | 6812 | fi |
9b134994 | 6813 | |
c6b750e1 | 6814 | |
81ec575a | 6815 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6816 | fi |
6817 | ||
a6df5a19 PB |
6818 | # Handle --disable-<component> generically. |
6819 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6820 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6821 | varname=`echo $dirname | sed -e s/+/_/g` |
6822 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6823 | noconfigdirs="$noconfigdirs $dir" |
6824 | fi | |
6825 | done | |
6826 | ||
4f0ef2d8 | 6827 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6828 | # Check whether --enable-objc-gc was given. |
6829 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 6830 | enableval=$enable_objc_gc; |
81ecdfbb RW |
6831 | fi |
6832 | ||
4f0ef2d8 | 6833 | |
05a13254 NC |
6834 | # Check whether --with-target-bdw-gc was given. |
6835 | if test "${with_target_bdw_gc+set}" = set; then : | |
6836 | withval=$with_target_bdw_gc; | |
6837 | fi | |
6838 | ||
6839 | ||
6840 | # Check whether --with-target-bdw-gc-include was given. | |
6841 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6842 | withval=$with_target_bdw_gc_include; | |
6843 | fi | |
6844 | ||
6845 | ||
6846 | # Check whether --with-target-bdw-gc-lib was given. | |
6847 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6848 | withval=$with_target_bdw_gc_lib; | |
6849 | fi | |
6850 | ||
6851 | ||
6852 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6854 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6855 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
6857 | $as_echo "using bdw-gc in default locations" >&6; } | |
6858 | else | |
6859 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 6860 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 6861 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 6862 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
6863 | else |
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6865 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 6866 | fi |
05a13254 | 6867 | fi |
4f0ef2d8 CD |
6868 | esac |
6869 | ||
bf41f30d | 6870 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6871 | case ,${enable_languages}, in |
1b6c0831 | 6872 | *,c++,*) |
bf41f30d | 6873 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
6874 | case "${noconfigdirs}" in |
6875 | *target-libstdc++-v3*) | |
bf41f30d | 6876 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
6877 | ;; |
6878 | *) ;; | |
6879 | esac | |
6880 | ;; | |
7ec59b9e | 6881 | *) |
bf41f30d | 6882 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6883 | ;; |
6884 | esac | |
6885 | ||
d33228c9 AB |
6886 | # If gcc/ is not in the source tree then we'll not be building a |
6887 | # target compiler, assume in that case we don't want to build any | |
6888 | # target libraries or tools. | |
6889 | # | |
6890 | # This was added primarily for the benefit for binutils-gdb who reuse | |
6891 | # this configure script, but don't always have target tools available. | |
6892 | if test ! -d ${srcdir}/gcc; then | |
6893 | skipdirs="${skipdirs} ${target_configdirs}" | |
6894 | fi | |
6895 | ||
caeba88f AL |
6896 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6897 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6898 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6899 | ||
6900 | notsupp="" | |
6901 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6902 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6903 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6904 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6905 | if test -r $srcdir/$dirname/configure ; then | |
6906 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6907 | true | |
6908 | else | |
6909 | notsupp="$notsupp $dir" | |
6910 | fi | |
6911 | fi | |
6912 | fi | |
caeba88f AL |
6913 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6914 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6915 | if test -r $srcdir/$dirname/configure ; then | |
6916 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6917 | true | |
6918 | else | |
6919 | notsupp="$notsupp $dir" | |
6920 | fi | |
6921 | fi | |
6922 | fi | |
9e07f89d NN |
6923 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6924 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6925 | if test -r $srcdir/$dirname/configure ; then | |
6926 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6927 | true | |
6928 | else | |
6929 | notsupp="$notsupp $dir" | |
6930 | fi | |
6931 | fi | |
6932 | fi | |
6933 | done | |
6934 | ||
9e07f89d NN |
6935 | # Quietly strip out all directories which aren't configurable in this tree. |
6936 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6937 | # is now the case. | |
6a9cf61e PB |
6938 | build_configdirs_all="$build_configdirs" |
6939 | build_configdirs= | |
6940 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6941 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6942 | if test -f ${srcdir}/$j/configure ; then |
6943 | build_configdirs="${build_configdirs} $i" | |
6944 | fi | |
6945 | done | |
6946 | ||
9e07f89d NN |
6947 | configdirs_all="$configdirs" |
6948 | configdirs= | |
6949 | for i in ${configdirs_all} ; do | |
6950 | if test -f ${srcdir}/$i/configure ; then | |
6951 | configdirs="${configdirs} $i" | |
6952 | fi | |
6953 | done | |
6a9cf61e | 6954 | |
9e07f89d NN |
6955 | target_configdirs_all="$target_configdirs" |
6956 | target_configdirs= | |
6957 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6958 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6959 | if test -f ${srcdir}/$j/configure ; then |
6960 | target_configdirs="${target_configdirs} $i" | |
6961 | fi | |
6962 | done | |
6963 | ||
1b6c0831 L |
6964 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6965 | # so we have to add it after the preceding checks. | |
6966 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6967 | then | |
6968 | case " $configdirs " in | |
6969 | *" libiberty "*) | |
6970 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6971 | configdirs="$configdirs libiberty-linker-plugin" | |
6972 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6973 | --with-libiberty=../libiberty-linker-plugin";; | |
6974 | *) | |
d0ac1c44 | 6975 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
6976 | esac |
6977 | fi | |
6978 | ||
6979 | # Sometimes we have special requirements for the host libiberty. | |
6980 | extra_host_libiberty_configure_flags= | |
6981 | case " $configdirs " in | |
a08bdb15 | 6982 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
1b6c0831 L |
6983 | # When these are to be built as shared libraries, the same applies to |
6984 | # libiberty. | |
6985 | extra_host_libiberty_configure_flags=--enable-shared | |
6986 | ;; | |
95127faf TV |
6987 | esac |
6988 | ||
6989 | ||
6990 | # Sometimes we have special requirements for the host zlib. | |
6991 | extra_host_zlib_configure_flags= | |
6992 | case " $configdirs " in | |
e81d5d05 L |
6993 | *" bfd "*) |
6994 | # When bfd is to be built as a shared library, the same applies to | |
6995 | # zlib. | |
6996 | if test "$enable_shared" = "yes"; then | |
6997 | extra_host_zlib_configure_flags=--enable-host-shared | |
6998 | fi | |
6999 | ;; | |
1b6c0831 L |
7000 | esac |
7001 | ||
7002 | ||
9e07f89d NN |
7003 | # Produce a warning message for the subdirs we can't configure. |
7004 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
7005 | # FSF releases, it's important to let people know when their machine isn't | |
7006 | # supported by the one or two programs in a package. | |
7007 | ||
7008 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
7009 | # If $appdirs is non-empty, at least one of those directories must still | |
7010 | # be configured, or we error out. (E.g., if the gas release supports a | |
7011 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
7012 | # pretend that all is well.) | |
7013 | if test -n "$appdirs" ; then | |
7014 | for dir in $appdirs ; do | |
7015 | if test -r $dir/Makefile.in ; then | |
7016 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
7017 | appdirs="" | |
7018 | break | |
7019 | fi | |
6a9cf61e | 7020 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
7021 | appdirs="" |
7022 | break | |
7023 | fi | |
7024 | fi | |
7025 | done | |
7026 | if test -n "$appdirs" ; then | |
7027 | echo "*** This configuration is not supported by this package." 1>&2 | |
7028 | exit 1 | |
7029 | fi | |
7030 | fi | |
7031 | # Okay, some application will build, or we don't care to check. Still | |
7032 | # notify of subdirs not getting built. | |
7033 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
7034 | echo " ${notsupp}" 1>&2 | |
7035 | echo " (Any other directories should still work fine.)" 1>&2 | |
7036 | fi | |
7037 | ||
7038 | case "$host" in | |
7039 | *msdosdjgpp*) | |
7040 | enable_gdbtk=no ;; | |
7041 | esac | |
7042 | ||
18f6b6ee PB |
7043 | # To find our prefix, in gcc_cv_tool_prefix. |
7044 | ||
7045 | # The user is always right. | |
7046 | if test "${PATH_SEPARATOR+set}" != set; then | |
7047 | echo "#! /bin/sh" >conf$$.sh | |
7048 | echo "exit 0" >>conf$$.sh | |
7049 | chmod +x conf$$.sh | |
7050 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7051 | PATH_SEPARATOR=';' | |
7052 | else | |
7053 | PATH_SEPARATOR=: | |
7054 | fi | |
7055 | rm -f conf$$.sh | |
7056 | fi | |
7057 | ||
7058 | ||
bf41f30d NC |
7059 | get_gcc_base_ver="cat" |
7060 | ||
7061 | # Check whether --with-gcc-major-version-only was given. | |
7062 | if test "${with_gcc_major_version_only+set}" = set; then : | |
7063 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 7064 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
7065 | fi |
7066 | ||
7067 | fi | |
7068 | ||
7069 | ||
7070 | ||
7071 | ||
7072 | ||
18f6b6ee PB |
7073 | |
7074 | if test "x$exec_prefix" = xNONE; then | |
7075 | if test "x$prefix" = xNONE; then | |
7076 | gcc_cv_tool_prefix=$ac_default_prefix | |
7077 | else | |
7078 | gcc_cv_tool_prefix=$prefix | |
7079 | fi | |
7080 | else | |
7081 | gcc_cv_tool_prefix=$exec_prefix | |
7082 | fi | |
7083 | ||
7084 | # If there is no compiler in the tree, use the PATH only. In any | |
7085 | # case, if there is no compiler in the tree nobody should use | |
7086 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
7087 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
7088 | if test x$with_gcc_major_version_only = xyes ; then |
7089 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
7090 | else | |
7091 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
7092 | fi | |
18f6b6ee PB |
7093 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
7094 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
7095 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
7096 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
7097 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
7098 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
7099 | else | |
7100 | gcc_cv_tool_dirs= | |
7101 | fi | |
7102 | ||
7103 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
7104 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
7105 | fi | |
7106 | ||
7107 | ||
7108 | ||
9e07f89d NN |
7109 | copy_dirs= |
7110 | ||
c6b750e1 | 7111 | |
81ecdfbb RW |
7112 | # Check whether --with-build-sysroot was given. |
7113 | if test "${with_build_sysroot+set}" = set; then : | |
7114 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
7115 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
7116 | fi | |
7117 | else | |
7118 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 7119 | fi |
a19b6204 MM |
7120 | |
7121 | ||
8a6ee3ab | 7122 | |
81ecdfbb RW |
7123 | |
7124 | # Check whether --with-debug-prefix-map was given. | |
7125 | if test "${with_debug_prefix_map+set}" = set; then : | |
7126 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
7127 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
7128 | for debug_map in $withval; do | |
7129 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
7130 | done | |
7131 | fi | |
7132 | else | |
7133 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
7134 | fi |
7135 | ||
8a6ee3ab JM |
7136 | |
7137 | ||
7f6ef0c0 PB |
7138 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
7139 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
7140 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
7141 | # We want to ensure that TARGET libraries (which we know are built with | |
7142 | # gcc) are built with "-O2 -g", so include those options when setting | |
7143 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
7144 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
7145 | if test "x${is_cross_compiler}" = xyes; then |
7146 | CFLAGS_FOR_TARGET="-g -O2" | |
7147 | else | |
7148 | CFLAGS_FOR_TARGET=$CFLAGS | |
7149 | case " $CFLAGS " in | |
7150 | *" -O2 "*) ;; | |
7151 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
7152 | esac | |
7153 | case " $CFLAGS " in | |
7154 | *" -g "* | *" -g3 "*) ;; | |
7155 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
7156 | esac | |
7157 | fi | |
7f6ef0c0 PB |
7158 | fi |
7159 | ||
7160 | ||
7161 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
7162 | if test "x${is_cross_compiler}" = xyes; then |
7163 | CXXFLAGS_FOR_TARGET="-g -O2" | |
7164 | else | |
7165 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
7166 | case " $CXXFLAGS " in | |
7167 | *" -O2 "*) ;; | |
7168 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
7169 | esac | |
7170 | case " $CXXFLAGS " in | |
7171 | *" -g "* | *" -g3 "*) ;; | |
7172 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
7173 | esac | |
7174 | fi | |
7f6ef0c0 PB |
7175 | fi |
7176 | ||
7177 | ||
91c1f14c DK |
7178 | |
7179 | ||
9e07f89d NN |
7180 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
7181 | # the named directory are copied to $(tooldir)/sys-include. | |
7182 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
7183 | if test x${is_cross_compiler} = xno ; then | |
7184 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
7185 | exit 1 | |
7186 | fi | |
7187 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 7188 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 7189 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
7190 | fi |
7191 | fi | |
7192 | ||
7193 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
7194 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
7195 | # are permitted. | |
7196 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
7197 | if test x${is_cross_compiler} = xno ; then | |
7198 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
7199 | exit 1 | |
7200 | fi | |
7201 | if test x"${with_libs}" != xyes ; then | |
7202 | # Copy the libraries in reverse order, so that files in the first named | |
7203 | # library override files in subsequent libraries. | |
18f6b6ee | 7204 | x=${gcc_cv_tool_prefix} |
9e07f89d | 7205 | for l in ${with_libs}; do |
c6b750e1 | 7206 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
7207 | done |
7208 | fi | |
7209 | fi | |
7210 | ||
700d40ca | 7211 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
7212 | # |
7213 | # This is done by determining whether or not the appropriate directory | |
7214 | # is available, and by checking whether or not specific configurations | |
7215 | # have requested that this magic not happen. | |
c6b750e1 DJ |
7216 | # |
7217 | # The command line options always override the explicit settings in | |
136bb21f | 7218 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 7219 | # |
c6b750e1 | 7220 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 7221 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
7222 | # --without-gnu-ld options for the configure script. Similarly, if |
7223 | # the default is to use the included zlib and you don't want to do that, | |
7224 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
7225 | |
7226 | if test x${use_gnu_as} = x && | |
7227 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
7228 | with_gnu_as=yes | |
7229 | extra_host_args="$extra_host_args --with-gnu-as" | |
7230 | fi | |
7231 | ||
7232 | if test x${use_gnu_ld} = x && | |
93f9b408 | 7233 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
7234 | with_gnu_ld=yes |
7235 | extra_host_args="$extra_host_args --with-gnu-ld" | |
7236 | fi | |
7237 | ||
700d40ca ILT |
7238 | if test x${use_included_zlib} = x && |
7239 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
7240 | : | |
7241 | else | |
7242 | with_system_zlib=yes | |
7243 | extra_host_args="$extra_host_args --with-system-zlib" | |
7244 | fi | |
7245 | ||
2429c060 PB |
7246 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
7247 | # can detect this case. | |
7248 | ||
7249 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
7250 | with_newlib=yes | |
7251 | extra_host_args="$extra_host_args --with-newlib" | |
7252 | fi | |
7253 | ||
9e07f89d NN |
7254 | # Handle ${copy_dirs} |
7255 | set fnord ${copy_dirs} | |
7256 | shift | |
7257 | while test $# != 0 ; do | |
7258 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
7259 | : | |
7260 | else | |
7261 | echo Copying $1 to $2 | |
7262 | ||
7263 | # Use the install script to create the directory and all required | |
7264 | # parent directories. | |
7265 | if test -d $2 ; then | |
7266 | : | |
7267 | else | |
7268 | echo >config.temp | |
7269 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
7270 | fi | |
7271 | ||
7272 | # Copy the directory, assuming we have tar. | |
7273 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
7274 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
7275 | ||
7276 | # It is the responsibility of the user to correctly adjust all | |
7277 | # symlinks. If somebody can figure out how to handle them correctly | |
7278 | # here, feel free to add the code. | |
7279 | ||
7280 | echo $1 > $2/COPIED | |
7281 | fi | |
7282 | shift; shift | |
7283 | done | |
7284 | ||
2429c060 PB |
7285 | # Determine a target-dependent exec_prefix that the installed |
7286 | # gcc will search in. Keep this list sorted by triplet, with | |
7287 | # the *-*-osname triplets last. | |
7288 | md_exec_prefix= | |
7289 | case "${target}" in | |
521ec477 | 7290 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
7291 | md_exec_prefix=/dev/env/DJDIR/bin |
7292 | ;; | |
2429c060 | 7293 | *-*-hpux* | \ |
2429c060 | 7294 | *-*-nto-qnx* | \ |
1f111696 | 7295 | *-*-solaris2*) |
2429c060 PB |
7296 | md_exec_prefix=/usr/ccs/bin |
7297 | ;; | |
7298 | esac | |
7299 | ||
a0da8069 NN |
7300 | extra_arflags_for_target= |
7301 | extra_nmflags_for_target= | |
7302 | extra_ranlibflags_for_target= | |
7303 | target_makefile_frag=/dev/null | |
7304 | case "${target}" in | |
77d7106f AM |
7305 | spu-*-*) |
7306 | target_makefile_frag="config/mt-spu" | |
7307 | ;; | |
a9d58c06 | 7308 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
7309 | target_makefile_frag="config/mt-sde" |
7310 | ;; | |
f3b1e08e RS |
7311 | mipsisa*-*-elfoabi*) |
7312 | target_makefile_frag="config/mt-mips-elfoabi" | |
7313 | ;; | |
e7c8859c RS |
7314 | mips*-*-*linux* | mips*-*-gnu*) |
7315 | target_makefile_frag="config/mt-mips-gnu" | |
7316 | ;; | |
d9e042ac SL |
7317 | nios2-*-elf*) |
7318 | target_makefile_frag="config/mt-nios2-elf" | |
7319 | ;; | |
bf41f30d NC |
7320 | *-*-linux-android*) |
7321 | target_makefile_frag="config/mt-android" | |
7322 | ;; | |
29383458 | 7323 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 7324 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
7325 | ;; |
7326 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 7327 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
7328 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7329 | # harmless if we're using GNU nm or ar. | |
7330 | extra_arflags_for_target=" -X32_64" | |
7331 | extra_nmflags_for_target=" -B -X32_64" | |
7332 | ;; | |
a0da8069 NN |
7333 | esac |
7334 | ||
7335 | alphaieee_frag=/dev/null | |
7336 | case $target in | |
7337 | alpha*-*-*) | |
7338 | # This just makes sure to use the -mieee option to build target libs. | |
7339 | # This should probably be set individually by each library. | |
7340 | alphaieee_frag="config/mt-alphaieee" | |
7341 | ;; | |
7342 | esac | |
7343 | ||
7344 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7345 | # the target libraries, similarly if it is not specified, use -Os | |
7346 | # on selected platforms. | |
7347 | ospace_frag=/dev/null | |
7348 | case "${enable_target_optspace}:${target}" in | |
7349 | yes:*) | |
7350 | ospace_frag="config/mt-ospace" | |
7351 | ;; | |
7352 | :d30v-*) | |
7353 | ospace_frag="config/mt-d30v" | |
7354 | ;; | |
16beab3d | 7355 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
7356 | ospace_frag="config/mt-ospace" |
7357 | ;; | |
7358 | no:* | :*) | |
7359 | ;; | |
7360 | *) | |
7361 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7362 | ;; | |
7363 | esac | |
7364 | ||
a0da8069 NN |
7365 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7366 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7367 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7368 | build_tooldir=${tooldir} |
7369 | ||
a0da8069 NN |
7370 | # Create a .gdbinit file which runs the one in srcdir |
7371 | # and tells GDB to look there for source files. | |
7372 | ||
7373 | if test -r ${srcdir}/.gdbinit ; then | |
7374 | case ${srcdir} in | |
7375 | .) ;; | |
7376 | *) cat > ./.gdbinit <<EOF | |
7377 | # ${NO_EDIT} | |
7378 | dir ${srcdir} | |
7379 | dir . | |
7380 | source ${srcdir}/.gdbinit | |
7381 | EOF | |
7382 | ;; | |
7383 | esac | |
7384 | fi | |
7385 | ||
a0da8069 NN |
7386 | # Make sure that the compiler is able to generate an executable. If it |
7387 | # can't, we are probably in trouble. We don't care whether we can run the | |
7388 | # executable--we might be using a cross compiler--we only care whether it | |
7389 | # can be created. At this point the main configure script has set CC. | |
7390 | we_are_ok=no | |
7391 | echo "int main () { return 0; }" > conftest.c | |
7392 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7393 | if test $? = 0 ; then | |
7394 | if test -s conftest || test -s conftest.exe ; then | |
7395 | we_are_ok=yes | |
7396 | fi | |
c6b750e1 | 7397 | fi |
a0da8069 NN |
7398 | case $we_are_ok in |
7399 | no) | |
7400 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7401 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7402 | rm -f conftest* | |
7403 | exit 1 | |
7404 | ;; | |
7405 | esac | |
7406 | rm -f conftest* | |
7407 | ||
3bbd2f8f | 7408 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7409 | case "${host}" in |
7410 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7411 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7412 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7413 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7414 | esac | |
7415 | ||
3bbd2f8f | 7416 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7417 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7418 | # built executables to PATH. | |
3bbd2f8f AL |
7419 | if test "$RPATH_ENVVAR" = PATH; then |
7420 | GCC_SHLIB_SUBDIR=/shlib | |
7421 | else | |
7422 | GCC_SHLIB_SUBDIR= | |
7423 | fi | |
7424 | ||
730af8ee | 7425 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7426 | case $enable_bootstrap in | |
7427 | yes) | |
7428 | bootstrap_suffix=bootstrap | |
7429 | BUILD_CONFIG=bootstrap-debug | |
7430 | ;; | |
7431 | no) | |
7432 | bootstrap_suffix=no-bootstrap | |
7433 | BUILD_CONFIG= | |
7434 | ;; | |
7435 | esac | |
7436 | ||
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7438 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7439 | ||
7440 | ||
7441 | # Check whether --with-build-config was given. | |
7442 | if test "${with_build_config+set}" = set; then : | |
7443 | withval=$with_build_config; case $with_build_config in | |
7444 | yes) with_build_config= ;; | |
7445 | no) with_build_config= BUILD_CONFIG= ;; | |
7446 | esac | |
7447 | fi | |
7448 | ||
7449 | ||
7450 | if test "x${with_build_config}" != x; then | |
7451 | BUILD_CONFIG=$with_build_config | |
7452 | else | |
7453 | case $BUILD_CONFIG in | |
7454 | bootstrap-debug) | |
7455 | if echo "int f (void) { return 0; }" > conftest.c && | |
7456 | ${CC} -c conftest.c && | |
7457 | mv conftest.o conftest.o.g0 && | |
7458 | ${CC} -c -g conftest.c && | |
7459 | mv conftest.o conftest.o.g && | |
7460 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7461 | : | |
7462 | else | |
7463 | BUILD_CONFIG= | |
7464 | fi | |
7465 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7466 | ;; | |
7467 | esac | |
7468 | fi | |
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7470 | $as_echo "$BUILD_CONFIG" >&6; } | |
7471 | ||
7472 | ||
7473 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7475 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7476 | # Check whether --enable-vtable-verify was given. | |
7477 | if test "${enable_vtable_verify+set}" = set; then : | |
7478 | enableval=$enable_vtable_verify; case "$enableval" in | |
7479 | yes) enable_vtable_verify=yes ;; | |
7480 | no) enable_vtable_verify=no ;; | |
7481 | *) enable_vtable_verify=no;; | |
7482 | esac | |
7483 | else | |
7484 | enable_vtable_verify=no | |
7485 | fi | |
7486 | ||
7487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7488 | $as_echo "$enable_vtable_verify" >&6; } | |
7489 | ||
a0da8069 NN |
7490 | # Record target_configdirs and the configure arguments for target and |
7491 | # build configuration in Makefile. | |
7492 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7493 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7494 | bootstrap_fixincludes=no |
a0da8069 | 7495 | |
2aa2364a JR |
7496 | # If we are building libgomp, bootstrap it. |
7497 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7498 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7499 | fi | |
7500 | ||
730af8ee | 7501 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7502 | # or bootstrap-ubsan, bootstrap it. | |
7503 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7504 | case "$BUILD_CONFIG" in | |
7505 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7506 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7507 | bootstrap_fixincludes=yes |
730af8ee | 7508 | ;; |
7509 | esac | |
5eb08693 L |
7510 | fi |
7511 | ||
730af8ee | 7512 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7513 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7514 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7515 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7516 | fi | |
7517 | ||
a0da8069 NN |
7518 | # Determine whether gdb needs tk/tcl or not. |
7519 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7520 | # and in that case we want gdb to be built without tk. Ugh! | |
7521 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7522 | # so we should be able to put the 'maybe's in unconditionally and | |
7523 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7524 | # 100% sure that that's safe though. | |
c180f501 | 7525 | |
675c6968 | 7526 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7527 | case "$enable_gdbtk" in |
7528 | no) | |
7529 | GDB_TK="" ;; | |
c180f501 AC |
7530 | yes) |
7531 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7532 | *) |
c180f501 AC |
7533 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7534 | # distro. Eventually someone will fix this and move Insight, nee | |
7535 | # gdbtk to a separate directory. | |
7536 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7537 | GDB_TK="${gdb_tk}" | |
7538 | else | |
7539 | GDB_TK="" | |
7540 | fi | |
7541 | ;; | |
a0da8069 | 7542 | esac |
907be67c DJ |
7543 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7544 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7545 | |
b6f9caee TT |
7546 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
7547 | # else does, only include them if one of these is built. The Makefile | |
7548 | # provides the ordering, so it's enough here to add to the list. | |
7549 | case " ${configdirs} " in | |
7550 | *\ gdb\ *) | |
7551 | configdirs="${configdirs} gnulib gdbsupport" | |
7552 | ;; | |
7553 | *\ gdbserver\ *) | |
7554 | configdirs="${configdirs} gnulib gdbsupport" | |
7555 | ;; | |
5c9e84c2 MF |
7556 | *\ sim\ *) |
7557 | configdirs="${configdirs} gnulib" | |
7558 | ;; | |
b6f9caee | 7559 | esac |
73cc7272 | 7560 | |
6bd3dfaa | 7561 | # Strip out unwanted targets. |
dd12c3a8 NN |
7562 | |
7563 | # While at that, we remove Makefiles if we were started for recursive | |
7564 | # configuration, so that the top-level Makefile reconfigures them, | |
7565 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7566 | |
06a51eac RW |
7567 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7568 | # but now we're fixing up the Makefile ourselves with the additional | |
7569 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7570 | # extrasub-{build,host,target} not because there is any reason to split | |
7571 | # the substitutions up that way, but only to remain below the limit of | |
7572 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
7573 | |
7574 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7575 | # configure will not warn you at all. | |
dd12c3a8 | 7576 | |
16b1ad29 RW |
7577 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7578 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7579 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 7580 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
7581 | ;; |
7582 | esac | |
7583 | ||
06a51eac | 7584 | extrasub_build= |
6a9cf61e | 7585 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7586 | if test -z "${no_recursion}" \ |
7587 | && test -f ${build_subdir}/${module}/Makefile; then | |
7588 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7589 | rm -f ${build_subdir}/${module}/Makefile | |
7590 | fi | |
06a51eac | 7591 | extrasub_build="$extrasub_build |
498d4a71 CF |
7592 | /^@if build-$module\$/d |
7593 | /^@endif build-$module\$/d | |
4119873a | 7594 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 7595 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
7596 | /^@endif build-$module-$bootstrap_suffix\$/d |
7597 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 7598 | done |
06a51eac | 7599 | extrasub_host= |
498d4a71 | 7600 | for module in ${configdirs} ; do |
80911fe1 | 7601 | if test -z "${no_recursion}"; then |
8cf39b1b | 7602 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7603 | if test -f ${file}; then |
7604 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7605 | rm -f ${file} | |
7606 | fi | |
7607 | done | |
498d4a71 | 7608 | fi |
201f096f | 7609 | case ${module},${bootstrap_fixincludes} in |
7610 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7611 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7612 | esac | |
06a51eac | 7613 | extrasub_host="$extrasub_host |
498d4a71 CF |
7614 | /^@if $module\$/d |
7615 | /^@endif $module\$/d | |
4119873a | 7616 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 7617 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
7618 | /^@endif $module-$host_bootstrap_suffix\$/d |
7619 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7620 | done |
06a51eac | 7621 | extrasub_target= |
498d4a71 CF |
7622 | for module in ${target_configdirs} ; do |
7623 | if test -z "${no_recursion}" \ | |
7624 | && test -f ${target_subdir}/${module}/Makefile; then | |
7625 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7626 | rm -f ${target_subdir}/${module}/Makefile | |
7627 | fi | |
e8a5fa9c RW |
7628 | |
7629 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7630 | case $bootstrap_target_libs in | |
7631 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7632 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7633 | esac | |
7634 | ||
06a51eac | 7635 | extrasub_target="$extrasub_target |
498d4a71 CF |
7636 | /^@if target-$module\$/d |
7637 | /^@endif target-$module\$/d | |
4119873a | 7638 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 7639 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
7640 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7641 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7642 | done |
7643 | ||
06a51eac RW |
7644 | # Do the final fixup along with target modules. |
7645 | extrasub_target="$extrasub_target | |
4119873a AO |
7646 | /^@if /,/^@endif /d |
7647 | /^@unless /d | |
7648 | /^@endunless /d" | |
a0da8069 | 7649 | |
af019bfd L |
7650 | if test "$enable_pgo_build" != "no"; then |
7651 | extrasub_build="$extrasub_build | |
7652 | /^@if pgo-build\$/d | |
7653 | /^@endif pgo-build\$/d" | |
7654 | fi | |
7655 | ||
a0da8069 NN |
7656 | # Create the serialization dependencies. This uses a temporary file. |
7657 | ||
81ecdfbb RW |
7658 | # Check whether --enable-serial-configure was given. |
7659 | if test "${enable_serial_configure+set}" = set; then : | |
7660 | enableval=$enable_serial_configure; | |
7661 | fi | |
e6bfb94a AO |
7662 | |
7663 | ||
1047cb91 DD |
7664 | case ${enable_serial_configure} in |
7665 | yes) | |
7666 | enable_serial_build_configure=yes | |
7667 | enable_serial_host_configure=yes | |
7668 | enable_serial_target_configure=yes | |
7669 | ;; | |
7670 | esac | |
7671 | ||
a0da8069 NN |
7672 | # These force 'configure's to be done one at a time, to avoid problems |
7673 | # with contention over a shared config.cache. | |
7674 | rm -f serdep.tmp | |
e6bfb94a | 7675 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7676 | olditem= |
1047cb91 | 7677 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7678 | for item in ${build_configdirs} ; do |
7679 | case ${olditem} in | |
7680 | "") ;; | |
e6bfb94a | 7681 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7682 | esac |
7683 | olditem=${item} | |
7684 | done | |
7685 | olditem= | |
1047cb91 | 7686 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7687 | for item in ${configdirs} ; do |
7688 | case ${olditem} in | |
7689 | "") ;; | |
e6bfb94a | 7690 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7691 | esac |
7692 | olditem=${item} | |
7693 | done | |
7694 | olditem= | |
1047cb91 | 7695 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7696 | for item in ${target_configdirs} ; do |
7697 | case ${olditem} in | |
7698 | "") ;; | |
e6bfb94a | 7699 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7700 | esac |
7701 | olditem=${item} | |
7702 | done | |
7703 | serialization_dependencies=serdep.tmp | |
7704 | ||
7705 | ||
e6bfb94a | 7706 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7707 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7708 | # might not want to pass down to subconfigures. The exception being |
7709 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7710 | # files altogether, and which should be passed on to subconfigures. | |
7711 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7712 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7713 | baseargs= |
65b4571a | 7714 | tbaseargs= |
c6b750e1 DJ |
7715 | keep_next=no |
7716 | skip_next=no | |
7717 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7718 | for ac_arg |
7719 | do | |
c6b750e1 DJ |
7720 | if test X"$skip_next" = X"yes"; then |
7721 | skip_next=no | |
7722 | continue | |
7723 | fi | |
7724 | if test X"$keep_next" = X"yes"; then | |
7725 | case $ac_arg in | |
7726 | *\'*) | |
7727 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7728 | esac | |
7729 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7730 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7731 | keep_next=no |
7732 | continue | |
7733 | fi | |
7734 | ||
7735 | # Handle separated arguments. Based on the logic generated by | |
7736 | # autoconf 2.59. | |
7737 | case $ac_arg in | |
7738 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7739 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7740 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7741 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7742 | separate_arg=no | |
7743 | ;; | |
7744 | -*) | |
7745 | separate_arg=yes | |
7746 | ;; | |
7747 | *) | |
7748 | separate_arg=no | |
7749 | ;; | |
7750 | esac | |
7751 | ||
65b4571a AO |
7752 | skip_targ=no |
7753 | case $ac_arg in | |
7754 | ||
7755 | --with-* | --without-*) | |
7756 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7757 | ||
7758 | case $libopt in | |
7759 | *[-_]include) | |
7760 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7761 | ;; | |
7762 | *[-_]lib) | |
7763 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7764 | ;; | |
7765 | *) | |
7766 | lib=$libopt | |
7767 | ;; | |
7768 | esac | |
7769 | ||
7770 | ||
7771 | case $lib in | |
1b6c0831 | 7772 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7773 | # If we're processing --with-$lib, --with-$lib-include or |
7774 | # --with-$lib-lib, for one of the libs above, and target is | |
7775 | # different from host, don't pass the current argument to any | |
7776 | # target library's configure. | |
7777 | if test x$is_cross_compiler = xyes; then | |
7778 | skip_targ=yes | |
7779 | fi | |
7780 | ;; | |
7781 | esac | |
7782 | ;; | |
7783 | esac | |
7784 | ||
c6b750e1 | 7785 | case "$ac_arg" in |
30167e0a NC |
7786 | --cache-file=/dev/null | \ |
7787 | -cache-file=/dev/null ) | |
7788 | # Handled here to avoid the test to skip args below. | |
7789 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7790 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7791 | # Assert: $separate_arg should always be no. |
7792 | keep_next=$separate_arg | |
7793 | ;; | |
c6b750e1 DJ |
7794 | --no*) |
7795 | continue | |
7796 | ;; | |
7797 | --c* | \ | |
7798 | --sr* | \ | |
7799 | --ho* | \ | |
7800 | --bu* | \ | |
7801 | --t* | \ | |
7802 | --program-* | \ | |
7803 | -cache_file* | \ | |
7804 | -srcdir* | \ | |
7805 | -host* | \ | |
7806 | -build* | \ | |
7807 | -target* | \ | |
7808 | -program-prefix* | \ | |
7809 | -program-suffix* | \ | |
7810 | -program-transform-name* ) | |
7811 | skip_next=$separate_arg | |
7812 | continue | |
7813 | ;; | |
7814 | -*) | |
7815 | # An option. Add it. | |
7816 | case $ac_arg in | |
7817 | *\'*) | |
7818 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7819 | esac | |
7820 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7821 | if test X"$skip_targ" = Xno; then |
7822 | tbaseargs="$tbaseargs '$ac_arg'" | |
7823 | fi | |
c6b750e1 DJ |
7824 | keep_next=$separate_arg |
7825 | ;; | |
7826 | *) | |
7827 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7828 | # pass it down; let the Makefile handle this. | |
7829 | continue | |
7830 | ;; | |
7831 | esac | |
7832 | done | |
7833 | # Remove the initial space we just introduced and, as these will be | |
7834 | # expanded by make, quote '$'. | |
7835 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7836 | |
f27d4f92 DJ |
7837 | # Add in --program-transform-name, after --program-prefix and |
7838 | # --program-suffix have been applied to it. Autoconf has already | |
7839 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7840 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7841 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7842 | # Also, because we want to override the logic in subdir configure scripts to |
7843 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7844 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7845 | ${program_transform_name} | |
7846 | EOF_SED | |
7847 | gcc_transform_name=`cat conftestsed.out` | |
7848 | rm -f conftestsed.out | |
7849 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7850 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7851 | if test "$silent" = yes; then |
7852 | baseargs="$baseargs --silent" | |
65b4571a | 7853 | tbaseargs="$tbaseargs --silent" |
2444379b | 7854 | fi |
e5f2f7d9 | 7855 | |
34a0f3cf | 7856 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7857 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7858 | |
e5f2f7d9 LM |
7859 | if test "$enable_year2038" = no; then |
7860 | baseargs="$baseargs --disable-year2038" | |
7861 | tbaseargs="$tbaseargs --disable-year2038" | |
7862 | fi | |
7863 | ||
4074d5f2 RW |
7864 | # Record and document user additions to sub configure arguments. |
7865 | ||
7866 | ||
7867 | ||
7868 | ||
a0da8069 NN |
7869 | # For the build-side libraries, we just need to pretend we're native, |
7870 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7871 | # desired. We can't even use the same cache file for all build-side |
7872 | # libraries, as they're compiled differently; some with C, some with | |
7873 | # C++ or with different feature-enabling options. | |
7874 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7875 | |
7876 | # For host modules, accept cache file option, or specification as blank. | |
7877 | case "${cache_file}" in | |
7878 | "") # empty | |
7879 | cache_file_option="" ;; | |
7880 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7881 | cache_file_option="--cache-file=${cache_file}" ;; | |
7882 | *) # relative path | |
7883 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7884 | esac | |
7885 | ||
82252c06 NN |
7886 | # Host dirs don't like to share a cache file either, horribly enough. |
7887 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7888 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7889 | |
65b4571a | 7890 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7891 | |
7892 | # Passing a --with-cross-host argument lets the target libraries know | |
7893 | # whether they are being built with a cross-compiler or being built | |
7894 | # native. However, it would be better to use other mechanisms to make the | |
7895 | # sorts of decisions they want to make on this basis. Please consider | |
7896 | # this option to be deprecated. FIXME. | |
7897 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7898 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7899 | fi |
7900 | ||
afc0578d | 7901 | # Special user-friendly check for native x86_64-linux build, if |
7902 | # multilib is not explicitly enabled. | |
7903 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7904 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7905 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7906 | dev64=no |
7907 | echo "int main () { return 0; }" > conftest.c | |
7908 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7909 | if test $? = 0 ; then | |
7910 | if test -s conftest || test -s conftest.exe ; then | |
7911 | dev64=yes | |
7912 | fi | |
7913 | fi | |
7914 | rm -f conftest* | |
7915 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 7916 | 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 | 7917 | fi |
7918 | ;; | |
7919 | esac | |
7920 | ||
938d2b74 RW |
7921 | # Default to --enable-multilib. |
7922 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7923 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7924 | fi |
a0da8069 NN |
7925 | |
7926 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7927 | # changed from the earlier setting of with_newlib. | |
7928 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7929 | target_configargs="--with-newlib ${target_configargs}" | |
7930 | fi | |
7931 | ||
95036d20 NN |
7932 | # Different target subdirs use different values of certain variables |
7933 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7934 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7935 | # it doesn't automatically accept command-line overrides of them. | |
7936 | # This means it's not safe for target subdirs to share a cache file, | |
7937 | # which is disgusting, but there you have it. Hopefully this can be | |
7938 | # fixed in future. It's still worthwhile to use a cache file for each | |
7939 | # directory. I think. | |
7940 | ||
ae380b45 MS |
7941 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7942 | # We need to pass --target, as newer autoconf's requires consistency | |
7943 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7944 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7945 | |
a0da8069 NN |
7946 | FLAGS_FOR_TARGET= |
7947 | case " $target_configdirs " in | |
7948 | *" newlib "*) | |
7949 | case " $target_configargs " in | |
7950 | *" --with-newlib "*) | |
7951 | case "$target" in | |
1f53ca9a | 7952 | *-cygwin*) |
6d94c122 | 7953 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7954 | ;; |
a0da8069 NN |
7955 | esac |
7956 | ||
7957 | # If we're not building GCC, don't discard standard headers. | |
7958 | if test -d ${srcdir}/gcc; then | |
7959 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7960 | ||
7961 | if test "${build}" != "${host}"; then | |
7962 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7963 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7964 | # to it. This is right: we don't want to search that directory | |
7965 | # for binaries, but we want the header files in there, so add | |
7966 | # them explicitly. | |
e552509b | 7967 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7968 | |
7969 | # Someone might think of using the pre-installed headers on | |
7970 | # Canadian crosses, in case the installed compiler is not fully | |
7971 | # compatible with the compiler being built. In this case, it | |
7972 | # would be better to flag an error than risking having | |
7973 | # incompatible object files being constructed. We can't | |
7974 | # guarantee that an error will be flagged, but let's hope the | |
7975 | # compiler will do it, when presented with incompatible header | |
7976 | # files. | |
7977 | fi | |
7978 | fi | |
7979 | ||
7980 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7981 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7982 | # Here host == target, so we don't need to build gcc, |
7983 | # so we don't want to discard standard headers. | |
7984 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7985 | ;; | |
7986 | *) | |
7987 | # If we're building newlib, use its generic headers last, but search | |
7988 | # for any libc-related directories first (so make it the last -B | |
7989 | # switch). | |
7990 | 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 |
7991 | |
7992 | # If we're building libgloss, find the startup file, simulator library | |
7993 | # and linker script. | |
7994 | case " $target_configdirs " in | |
7995 | *" libgloss "*) | |
7996 | # Look for startup file, simulator library and maybe linker script. | |
7997 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7998 | # Look for libnosys.a in case the target needs it. | |
7999 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
8000 | # Most targets have the linker script in the source directory. | |
8001 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
8002 | ;; | |
8003 | esac | |
a0da8069 NN |
8004 | ;; |
8005 | esac | |
8006 | ;; | |
8007 | esac | |
8008 | ;; | |
8009 | esac | |
1f53ca9a | 8010 | |
45055374 | 8011 | case "$target" in |
1f53ca9a AO |
8012 | x86_64-*mingw* | *-w64-mingw*) |
8013 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
8014 | # however, use a symlink named 'mingw' in ${prefix} . | |
8015 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
8016 | ;; | |
8017 | *-mingw*) | |
8018 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
8019 | 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' | |
8020 | ;; | |
45055374 | 8021 | esac |
a0da8069 | 8022 | |
5fbad20a DD |
8023 | # Allow the user to override the flags for |
8024 | # our build compiler if desired. | |
c66487f8 NC |
8025 | if test x"${build}" = x"${host}" ; then |
8026 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
8027 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
8028 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
8029 | fi | |
5fbad20a | 8030 | |
a0da8069 NN |
8031 | # On Canadian crosses, we'll be searching the right directories for |
8032 | # the previously-installed cross compiler, so don't bother to add | |
8033 | # flags for directories within the install tree of the compiler | |
8034 | # being built; programs in there won't even run. | |
8035 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
8036 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 8037 | 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 |
8038 | fi |
8039 | ||
8040 | if test "x${use_gnu_ld}" = x && | |
8041 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
8042 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 8043 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
8044 | fi |
8045 | ||
a481dbb7 DD |
8046 | # Search for other target-specific linker scripts and such. |
8047 | case "${target}" in | |
4e206d7e DB |
8048 | mep*) |
8049 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
8050 | ;; | |
8051 | esac | |
8052 | ||
a0da8069 | 8053 | # Makefile fragments. |
3e707e94 PB |
8054 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
8055 | do | |
8056 | eval fragval=\$$frag | |
8057 | if test $fragval != /dev/null; then | |
8058 | eval $frag=${srcdir}/$fragval | |
8059 | fi | |
8060 | done | |
a0da8069 NN |
8061 | |
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | # Miscellanea: directories, flags, etc. | |
8067 | ||
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
3bbd2f8f | 8074 | |
6a9cf61e | 8075 | # Build module lists & subconfigure args. |
a0da8069 NN |
8076 | |
8077 | ||
8078 | ||
be01d343 PB |
8079 | # Host module lists & subconfigure args. |
8080 | ||
8081 | ||
8082 | ||
911e63d0 | 8083 | |
be01d343 PB |
8084 | # Target module lists & subconfigure args. |
8085 | ||
8086 | ||
8087 | ||
8088 | # Build tools. | |
8089 | ||
8090 | ||
8091 | ||
1576798e PB |
8092 | |
8093 | ||
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
be01d343 PB |
8105 | # Generate default definitions for YACC, M4, LEX and other programs that run |
8106 | # on the build machine. These are used if the Makefile can't locate these | |
8107 | # programs in objdir. | |
8108 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
8109 | ||
8110 | for ac_prog in 'bison -y' byacc yacc | |
8111 | do | |
c6b750e1 | 8112 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8113 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8115 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8116 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 8117 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8118 | else |
8119 | if test -n "$YACC"; then | |
8120 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8121 | else | |
c6b750e1 DJ |
8122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8123 | for as_dir in $PATH | |
8124 | do | |
8125 | IFS=$as_save_IFS | |
8126 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8127 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8129 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 8130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8131 | break 2 |
8132 | fi | |
8133 | done | |
81ecdfbb RW |
8134 | done |
8135 | IFS=$as_save_IFS | |
c6b750e1 | 8136 | |
be01d343 PB |
8137 | fi |
8138 | fi | |
c6b750e1 | 8139 | YACC=$ac_cv_prog_YACC |
be01d343 | 8140 | if test -n "$YACC"; then |
81ecdfbb RW |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
8142 | $as_echo "$YACC" >&6; } | |
be01d343 | 8143 | else |
81ecdfbb RW |
8144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8145 | $as_echo "no" >&6; } | |
be01d343 PB |
8146 | fi |
8147 | ||
81ecdfbb | 8148 | |
c6b750e1 | 8149 | test -n "$YACC" && break |
be01d343 PB |
8150 | done |
8151 | test -n "$YACC" || YACC="$MISSING bison -y" | |
8152 | ||
8153 | case " $build_configdirs " in | |
8154 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
8155 | esac |
8156 | ||
8157 | for ac_prog in bison | |
8158 | do | |
c6b750e1 | 8159 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8160 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8162 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8163 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 8164 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8165 | else |
8166 | if test -n "$BISON"; then | |
8167 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
8168 | else | |
c6b750e1 DJ |
8169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8170 | for as_dir in $PATH | |
8171 | do | |
8172 | IFS=$as_save_IFS | |
8173 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8174 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8176 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 8177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8178 | break 2 |
8179 | fi | |
8180 | done | |
81ecdfbb RW |
8181 | done |
8182 | IFS=$as_save_IFS | |
c6b750e1 | 8183 | |
be01d343 PB |
8184 | fi |
8185 | fi | |
c6b750e1 | 8186 | BISON=$ac_cv_prog_BISON |
be01d343 | 8187 | if test -n "$BISON"; then |
81ecdfbb RW |
8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
8189 | $as_echo "$BISON" >&6; } | |
be01d343 | 8190 | else |
81ecdfbb RW |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8192 | $as_echo "no" >&6; } | |
be01d343 PB |
8193 | fi |
8194 | ||
81ecdfbb | 8195 | |
c6b750e1 | 8196 | test -n "$BISON" && break |
be01d343 PB |
8197 | done |
8198 | test -n "$BISON" || BISON="$MISSING bison" | |
8199 | ||
8200 | case " $build_configdirs " in | |
8201 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
8202 | esac | |
8203 | ||
8204 | for ac_prog in gm4 gnum4 m4 | |
8205 | do | |
c6b750e1 | 8206 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8207 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8209 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8210 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 8211 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8212 | else |
8213 | if test -n "$M4"; then | |
8214 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
8215 | else | |
c6b750e1 DJ |
8216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8217 | for as_dir in $PATH | |
8218 | do | |
8219 | IFS=$as_save_IFS | |
8220 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8221 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8222 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8223 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 8224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8225 | break 2 |
8226 | fi | |
8227 | done | |
81ecdfbb RW |
8228 | done |
8229 | IFS=$as_save_IFS | |
c6b750e1 | 8230 | |
be01d343 PB |
8231 | fi |
8232 | fi | |
c6b750e1 | 8233 | M4=$ac_cv_prog_M4 |
be01d343 | 8234 | if test -n "$M4"; then |
81ecdfbb RW |
8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
8236 | $as_echo "$M4" >&6; } | |
be01d343 | 8237 | else |
81ecdfbb RW |
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8239 | $as_echo "no" >&6; } | |
be01d343 PB |
8240 | fi |
8241 | ||
81ecdfbb | 8242 | |
c6b750e1 | 8243 | test -n "$M4" && break |
be01d343 PB |
8244 | done |
8245 | test -n "$M4" || M4="$MISSING m4" | |
8246 | ||
8247 | case " $build_configdirs " in | |
8248 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
8249 | esac | |
8250 | ||
8251 | for ac_prog in flex lex | |
8252 | do | |
c6b750e1 | 8253 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8254 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8256 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8257 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 8258 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8259 | else |
8260 | if test -n "$LEX"; then | |
8261 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8262 | else | |
c6b750e1 DJ |
8263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8264 | for as_dir in $PATH | |
8265 | do | |
8266 | IFS=$as_save_IFS | |
8267 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8268 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8270 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 8271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8272 | break 2 |
8273 | fi | |
8274 | done | |
81ecdfbb RW |
8275 | done |
8276 | IFS=$as_save_IFS | |
c6b750e1 | 8277 | |
be01d343 PB |
8278 | fi |
8279 | fi | |
c6b750e1 | 8280 | LEX=$ac_cv_prog_LEX |
be01d343 | 8281 | if test -n "$LEX"; then |
81ecdfbb RW |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
8283 | $as_echo "$LEX" >&6; } | |
be01d343 | 8284 | else |
81ecdfbb RW |
8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8286 | $as_echo "no" >&6; } | |
be01d343 PB |
8287 | fi |
8288 | ||
81ecdfbb | 8289 | |
c6b750e1 | 8290 | test -n "$LEX" && break |
be01d343 PB |
8291 | done |
8292 | test -n "$LEX" || LEX="$MISSING flex" | |
8293 | ||
8294 | case " $build_configdirs " in | |
8295 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8296 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
8297 | esac | |
8298 | ||
8299 | for ac_prog in flex | |
8300 | do | |
c6b750e1 | 8301 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8302 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8304 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8305 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 8306 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8307 | else |
8308 | if test -n "$FLEX"; then | |
8309 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
8310 | else | |
c6b750e1 DJ |
8311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8312 | for as_dir in $PATH | |
8313 | do | |
8314 | IFS=$as_save_IFS | |
8315 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8316 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8318 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 8319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8320 | break 2 |
8321 | fi | |
8322 | done | |
81ecdfbb RW |
8323 | done |
8324 | IFS=$as_save_IFS | |
c6b750e1 | 8325 | |
be01d343 PB |
8326 | fi |
8327 | fi | |
c6b750e1 | 8328 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 8329 | if test -n "$FLEX"; then |
81ecdfbb RW |
8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
8331 | $as_echo "$FLEX" >&6; } | |
be01d343 | 8332 | else |
81ecdfbb RW |
8333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8334 | $as_echo "no" >&6; } | |
be01d343 PB |
8335 | fi |
8336 | ||
81ecdfbb | 8337 | |
c6b750e1 | 8338 | test -n "$FLEX" && break |
be01d343 PB |
8339 | done |
8340 | test -n "$FLEX" || FLEX="$MISSING flex" | |
8341 | ||
8342 | case " $build_configdirs " in | |
8343 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8344 | esac | |
8345 | ||
8346 | for ac_prog in makeinfo | |
8347 | do | |
c6b750e1 | 8348 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8349 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8351 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8352 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 8353 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8354 | else |
8355 | if test -n "$MAKEINFO"; then | |
8356 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8357 | else | |
c6b750e1 DJ |
8358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8359 | for as_dir in $PATH | |
8360 | do | |
8361 | IFS=$as_save_IFS | |
8362 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8363 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8365 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 8366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8367 | break 2 |
8368 | fi | |
8369 | done | |
81ecdfbb RW |
8370 | done |
8371 | IFS=$as_save_IFS | |
c6b750e1 | 8372 | |
be01d343 PB |
8373 | fi |
8374 | fi | |
c6b750e1 | 8375 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 8376 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8378 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 8379 | else |
81ecdfbb RW |
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8381 | $as_echo "no" >&6; } | |
be01d343 PB |
8382 | fi |
8383 | ||
81ecdfbb | 8384 | |
c6b750e1 | 8385 | test -n "$MAKEINFO" && break |
be01d343 PB |
8386 | done |
8387 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8388 | ||
8389 | case " $build_configdirs " in | |
8390 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8391 | *) | |
8392 | ||
10ad8ef3 | 8393 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
8394 | # higher, else we use the "missing" dummy. |
8395 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 8396 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
8397 | : |
8398 | else | |
8399 | MAKEINFO="$MISSING makeinfo" | |
8400 | fi | |
8401 | ;; | |
8402 | ||
8403 | esac | |
a0da8069 | 8404 | |
be01d343 | 8405 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8406 | |
be01d343 PB |
8407 | for ac_prog in expect |
8408 | do | |
c6b750e1 | 8409 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8410 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8412 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8413 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 8414 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8415 | else |
8416 | if test -n "$EXPECT"; then | |
8417 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8418 | else | |
c6b750e1 DJ |
8419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8420 | for as_dir in $PATH | |
8421 | do | |
8422 | IFS=$as_save_IFS | |
8423 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8424 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8425 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8426 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8428 | break 2 |
8429 | fi | |
8430 | done | |
81ecdfbb RW |
8431 | done |
8432 | IFS=$as_save_IFS | |
c6b750e1 | 8433 | |
be01d343 PB |
8434 | fi |
8435 | fi | |
c6b750e1 | 8436 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8437 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8439 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8440 | else |
81ecdfbb RW |
8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8442 | $as_echo "no" >&6; } | |
be01d343 | 8443 | fi |
a0da8069 | 8444 | |
81ecdfbb | 8445 | |
c6b750e1 | 8446 | test -n "$EXPECT" && break |
be01d343 PB |
8447 | done |
8448 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8449 | |
be01d343 PB |
8450 | case " $configdirs " in |
8451 | *" expect "*) | |
8452 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8453 | ;; | |
8454 | esac | |
a0da8069 | 8455 | |
be01d343 PB |
8456 | for ac_prog in runtest |
8457 | do | |
c6b750e1 | 8458 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8459 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8461 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8462 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 8463 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8464 | else |
8465 | if test -n "$RUNTEST"; then | |
8466 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8467 | else | |
c6b750e1 DJ |
8468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8469 | for as_dir in $PATH | |
8470 | do | |
8471 | IFS=$as_save_IFS | |
8472 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8473 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8475 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8477 | break 2 |
8478 | fi | |
8479 | done | |
81ecdfbb RW |
8480 | done |
8481 | IFS=$as_save_IFS | |
c6b750e1 | 8482 | |
be01d343 PB |
8483 | fi |
8484 | fi | |
c6b750e1 | 8485 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8486 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8488 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8489 | else |
81ecdfbb RW |
8490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8491 | $as_echo "no" >&6; } | |
be01d343 | 8492 | fi |
a0da8069 | 8493 | |
81ecdfbb | 8494 | |
c6b750e1 | 8495 | test -n "$RUNTEST" && break |
be01d343 PB |
8496 | done |
8497 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8498 | |
be01d343 PB |
8499 | case " $configdirs " in |
8500 | *" dejagnu "*) | |
6b89cc21 | 8501 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8502 | ;; |
8503 | esac | |
a0da8069 NN |
8504 | |
8505 | ||
a0da8069 | 8506 | # Host tools. |
859789af AC |
8507 | ncn_tool_prefix= |
8508 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8509 | ncn_target_tool_prefix= | |
8510 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8511 | ||
9a819804 AO |
8512 | |
8513 | ||
8514 | if test -n "$AR"; then | |
8515 | ac_cv_prog_AR=$AR | |
8516 | elif test -n "$ac_cv_prog_AR"; then | |
8517 | AR=$ac_cv_prog_AR | |
8518 | fi | |
8519 | ||
8520 | if test -n "$ac_cv_prog_AR"; then | |
8521 | for ncn_progname in ar; do | |
8522 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8523 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8525 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8526 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8527 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8528 | else |
8529 | if test -n "$AR"; then | |
8530 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8531 | else | |
8532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8533 | for as_dir in $PATH | |
8534 | do | |
8535 | IFS=$as_save_IFS | |
8536 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8537 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8538 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8539 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8541 | break 2 |
8542 | fi | |
8543 | done | |
81ecdfbb RW |
8544 | done |
8545 | IFS=$as_save_IFS | |
9a819804 AO |
8546 | |
8547 | fi | |
8548 | fi | |
8549 | AR=$ac_cv_prog_AR | |
8550 | if test -n "$AR"; then | |
81ecdfbb RW |
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8552 | $as_echo "$AR" >&6; } | |
9a819804 | 8553 | else |
81ecdfbb RW |
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8555 | $as_echo "no" >&6; } | |
9a819804 AO |
8556 | fi |
8557 | ||
81ecdfbb | 8558 | |
9a819804 AO |
8559 | done |
8560 | fi | |
8561 | ||
8562 | for ncn_progname in ar; do | |
05cbd757 PB |
8563 | if test -n "$ncn_tool_prefix"; then |
8564 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8565 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8567 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8568 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8569 | $as_echo_n "(cached) " >&6 |
859789af AC |
8570 | else |
8571 | if test -n "$AR"; then | |
8572 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8573 | else | |
c6b750e1 DJ |
8574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8575 | for as_dir in $PATH | |
8576 | do | |
8577 | IFS=$as_save_IFS | |
8578 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8579 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8581 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8583 | break 2 |
8584 | fi | |
8585 | done | |
81ecdfbb RW |
8586 | done |
8587 | IFS=$as_save_IFS | |
c6b750e1 | 8588 | |
859789af AC |
8589 | fi |
8590 | fi | |
c6b750e1 | 8591 | AR=$ac_cv_prog_AR |
859789af | 8592 | if test -n "$AR"; then |
81ecdfbb RW |
8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8594 | $as_echo "$AR" >&6; } | |
859789af | 8595 | else |
81ecdfbb RW |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8597 | $as_echo "no" >&6; } | |
859789af AC |
8598 | fi |
8599 | ||
81ecdfbb | 8600 | |
05cbd757 PB |
8601 | fi |
8602 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8603 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8604 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8606 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8607 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8608 | $as_echo_n "(cached) " >&6 |
859789af | 8609 | else |
05cbd757 PB |
8610 | if test -n "$AR"; then |
8611 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8612 | else |
c6b750e1 DJ |
8613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8614 | for as_dir in $PATH | |
8615 | do | |
8616 | IFS=$as_save_IFS | |
8617 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8618 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8620 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8622 | break 2 |
8623 | fi | |
8624 | done | |
81ecdfbb RW |
8625 | done |
8626 | IFS=$as_save_IFS | |
c6b750e1 | 8627 | |
859789af AC |
8628 | fi |
8629 | fi | |
c6b750e1 | 8630 | AR=$ac_cv_prog_AR |
05cbd757 | 8631 | if test -n "$AR"; then |
81ecdfbb RW |
8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8633 | $as_echo "$AR" >&6; } | |
859789af | 8634 | else |
81ecdfbb RW |
8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8636 | $as_echo "no" >&6; } | |
859789af | 8637 | fi |
c6b750e1 | 8638 | |
81ecdfbb | 8639 | |
05cbd757 PB |
8640 | fi |
8641 | test -n "$ac_cv_prog_AR" && break | |
8642 | done | |
8643 | ||
8644 | if test -z "$ac_cv_prog_AR" ; then | |
8645 | set dummy ar | |
8646 | if test $build = $host ; then | |
8647 | AR="$2" | |
859789af | 8648 | else |
05cbd757 | 8649 | AR="${ncn_tool_prefix}$2" |
859789af | 8650 | fi |
859789af AC |
8651 | fi |
8652 | ||
9a819804 AO |
8653 | |
8654 | ||
8655 | if test -n "$AS"; then | |
8656 | ac_cv_prog_AS=$AS | |
8657 | elif test -n "$ac_cv_prog_AS"; then | |
8658 | AS=$ac_cv_prog_AS | |
8659 | fi | |
8660 | ||
8661 | if test -n "$ac_cv_prog_AS"; then | |
8662 | for ncn_progname in as; do | |
8663 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8664 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8666 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8667 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8668 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8669 | else |
8670 | if test -n "$AS"; then | |
8671 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8672 | else | |
8673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8674 | for as_dir in $PATH | |
8675 | do | |
8676 | IFS=$as_save_IFS | |
8677 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8678 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8680 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8682 | break 2 |
8683 | fi | |
8684 | done | |
81ecdfbb RW |
8685 | done |
8686 | IFS=$as_save_IFS | |
9a819804 AO |
8687 | |
8688 | fi | |
8689 | fi | |
8690 | AS=$ac_cv_prog_AS | |
8691 | if test -n "$AS"; then | |
81ecdfbb RW |
8692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8693 | $as_echo "$AS" >&6; } | |
9a819804 | 8694 | else |
81ecdfbb RW |
8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8696 | $as_echo "no" >&6; } | |
9a819804 AO |
8697 | fi |
8698 | ||
81ecdfbb | 8699 | |
9a819804 AO |
8700 | done |
8701 | fi | |
8702 | ||
8703 | for ncn_progname in as; do | |
05cbd757 PB |
8704 | if test -n "$ncn_tool_prefix"; then |
8705 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8706 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8708 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8709 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8710 | $as_echo_n "(cached) " >&6 |
859789af AC |
8711 | else |
8712 | if test -n "$AS"; then | |
8713 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8714 | else |
8715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8716 | for as_dir in $PATH | |
8717 | do | |
8718 | IFS=$as_save_IFS | |
8719 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8720 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8722 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8724 | break 2 |
8725 | fi | |
8726 | done | |
81ecdfbb RW |
8727 | done |
8728 | IFS=$as_save_IFS | |
c6b750e1 | 8729 | |
859789af AC |
8730 | fi |
8731 | fi | |
c6b750e1 | 8732 | AS=$ac_cv_prog_AS |
859789af | 8733 | if test -n "$AS"; then |
81ecdfbb RW |
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8735 | $as_echo "$AS" >&6; } | |
859789af | 8736 | else |
81ecdfbb RW |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8738 | $as_echo "no" >&6; } | |
859789af AC |
8739 | fi |
8740 | ||
81ecdfbb | 8741 | |
05cbd757 PB |
8742 | fi |
8743 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8744 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8745 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8747 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8748 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8749 | $as_echo_n "(cached) " >&6 |
859789af | 8750 | else |
05cbd757 PB |
8751 | if test -n "$AS"; then |
8752 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8753 | else |
c6b750e1 DJ |
8754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8755 | for as_dir in $PATH | |
8756 | do | |
8757 | IFS=$as_save_IFS | |
8758 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8759 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8760 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8761 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8763 | break 2 |
8764 | fi | |
8765 | done | |
81ecdfbb RW |
8766 | done |
8767 | IFS=$as_save_IFS | |
c6b750e1 | 8768 | |
859789af AC |
8769 | fi |
8770 | fi | |
c6b750e1 | 8771 | AS=$ac_cv_prog_AS |
05cbd757 | 8772 | if test -n "$AS"; then |
81ecdfbb RW |
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8774 | $as_echo "$AS" >&6; } | |
859789af | 8775 | else |
81ecdfbb RW |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8777 | $as_echo "no" >&6; } | |
859789af | 8778 | fi |
c6b750e1 | 8779 | |
81ecdfbb | 8780 | |
05cbd757 PB |
8781 | fi |
8782 | test -n "$ac_cv_prog_AS" && break | |
8783 | done | |
8784 | ||
8785 | if test -z "$ac_cv_prog_AS" ; then | |
8786 | set dummy as | |
8787 | if test $build = $host ; then | |
8788 | AS="$2" | |
859789af | 8789 | else |
05cbd757 | 8790 | AS="${ncn_tool_prefix}$2" |
859789af | 8791 | fi |
859789af AC |
8792 | fi |
8793 | ||
9a819804 AO |
8794 | |
8795 | ||
8796 | if test -n "$DLLTOOL"; then | |
8797 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8798 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8799 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8800 | fi | |
8801 | ||
8802 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8803 | for ncn_progname in dlltool; do | |
8804 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8805 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8807 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8808 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8809 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8810 | else |
8811 | if test -n "$DLLTOOL"; then | |
8812 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8813 | else | |
8814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8815 | for as_dir in $PATH | |
8816 | do | |
8817 | IFS=$as_save_IFS | |
8818 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8819 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8821 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8823 | break 2 |
8824 | fi | |
8825 | done | |
81ecdfbb RW |
8826 | done |
8827 | IFS=$as_save_IFS | |
9a819804 AO |
8828 | |
8829 | fi | |
8830 | fi | |
8831 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8832 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8834 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8835 | else |
81ecdfbb RW |
8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8837 | $as_echo "no" >&6; } | |
9a819804 AO |
8838 | fi |
8839 | ||
81ecdfbb | 8840 | |
9a819804 AO |
8841 | done |
8842 | fi | |
8843 | ||
8844 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8845 | if test -n "$ncn_tool_prefix"; then |
8846 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8847 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8849 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8850 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8851 | $as_echo_n "(cached) " >&6 |
859789af AC |
8852 | else |
8853 | if test -n "$DLLTOOL"; then | |
8854 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8855 | else | |
c6b750e1 DJ |
8856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8857 | for as_dir in $PATH | |
8858 | do | |
8859 | IFS=$as_save_IFS | |
8860 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8861 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8863 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8865 | break 2 |
8866 | fi | |
8867 | done | |
81ecdfbb RW |
8868 | done |
8869 | IFS=$as_save_IFS | |
c6b750e1 | 8870 | |
859789af AC |
8871 | fi |
8872 | fi | |
c6b750e1 | 8873 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8874 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8876 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8877 | else |
81ecdfbb RW |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8879 | $as_echo "no" >&6; } | |
859789af AC |
8880 | fi |
8881 | ||
81ecdfbb | 8882 | |
05cbd757 PB |
8883 | fi |
8884 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8885 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8886 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8888 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8889 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8890 | $as_echo_n "(cached) " >&6 |
859789af | 8891 | else |
05cbd757 PB |
8892 | if test -n "$DLLTOOL"; then |
8893 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8894 | else |
c6b750e1 DJ |
8895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8896 | for as_dir in $PATH | |
8897 | do | |
8898 | IFS=$as_save_IFS | |
8899 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8900 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8902 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8904 | break 2 |
8905 | fi | |
8906 | done | |
81ecdfbb RW |
8907 | done |
8908 | IFS=$as_save_IFS | |
c6b750e1 | 8909 | |
859789af AC |
8910 | fi |
8911 | fi | |
c6b750e1 | 8912 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8913 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8915 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8916 | else |
81ecdfbb RW |
8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8918 | $as_echo "no" >&6; } | |
859789af | 8919 | fi |
c6b750e1 | 8920 | |
81ecdfbb | 8921 | |
05cbd757 PB |
8922 | fi |
8923 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8924 | done | |
8925 | ||
8926 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8927 | set dummy dlltool | |
8928 | if test $build = $host ; then | |
8929 | DLLTOOL="$2" | |
859789af | 8930 | else |
05cbd757 | 8931 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8932 | fi |
859789af AC |
8933 | fi |
8934 | ||
9a819804 AO |
8935 | |
8936 | ||
8937 | if test -n "$LD"; then | |
8938 | ac_cv_prog_LD=$LD | |
8939 | elif test -n "$ac_cv_prog_LD"; then | |
8940 | LD=$ac_cv_prog_LD | |
8941 | fi | |
8942 | ||
8943 | if test -n "$ac_cv_prog_LD"; then | |
8944 | for ncn_progname in ld; do | |
8945 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8946 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8948 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8949 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8950 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8951 | else |
8952 | if test -n "$LD"; then | |
8953 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8954 | else | |
8955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8956 | for as_dir in $PATH | |
8957 | do | |
8958 | IFS=$as_save_IFS | |
8959 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8960 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8962 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8964 | break 2 |
8965 | fi | |
8966 | done | |
81ecdfbb RW |
8967 | done |
8968 | IFS=$as_save_IFS | |
9a819804 AO |
8969 | |
8970 | fi | |
8971 | fi | |
8972 | LD=$ac_cv_prog_LD | |
8973 | if test -n "$LD"; then | |
81ecdfbb RW |
8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8975 | $as_echo "$LD" >&6; } | |
9a819804 | 8976 | else |
81ecdfbb RW |
8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8978 | $as_echo "no" >&6; } | |
9a819804 AO |
8979 | fi |
8980 | ||
81ecdfbb | 8981 | |
9a819804 AO |
8982 | done |
8983 | fi | |
8984 | ||
8985 | for ncn_progname in ld; do | |
05cbd757 PB |
8986 | if test -n "$ncn_tool_prefix"; then |
8987 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8988 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8990 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8991 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8992 | $as_echo_n "(cached) " >&6 |
859789af AC |
8993 | else |
8994 | if test -n "$LD"; then | |
8995 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8996 | else | |
c6b750e1 DJ |
8997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8998 | for as_dir in $PATH | |
8999 | do | |
9000 | IFS=$as_save_IFS | |
9001 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9002 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9003 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9004 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9006 | break 2 |
9007 | fi | |
9008 | done | |
81ecdfbb RW |
9009 | done |
9010 | IFS=$as_save_IFS | |
c6b750e1 | 9011 | |
859789af AC |
9012 | fi |
9013 | fi | |
c6b750e1 | 9014 | LD=$ac_cv_prog_LD |
859789af | 9015 | if test -n "$LD"; then |
81ecdfbb RW |
9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
9017 | $as_echo "$LD" >&6; } | |
859789af | 9018 | else |
81ecdfbb RW |
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9020 | $as_echo "no" >&6; } | |
859789af AC |
9021 | fi |
9022 | ||
81ecdfbb | 9023 | |
05cbd757 PB |
9024 | fi |
9025 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
9026 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9027 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9029 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9030 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 9031 | $as_echo_n "(cached) " >&6 |
859789af | 9032 | else |
05cbd757 PB |
9033 | if test -n "$LD"; then |
9034 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 9035 | else |
c6b750e1 DJ |
9036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9037 | for as_dir in $PATH | |
9038 | do | |
9039 | IFS=$as_save_IFS | |
9040 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9041 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9043 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 9044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9045 | break 2 |
9046 | fi | |
9047 | done | |
81ecdfbb RW |
9048 | done |
9049 | IFS=$as_save_IFS | |
c6b750e1 | 9050 | |
859789af AC |
9051 | fi |
9052 | fi | |
c6b750e1 | 9053 | LD=$ac_cv_prog_LD |
05cbd757 | 9054 | if test -n "$LD"; then |
81ecdfbb RW |
9055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
9056 | $as_echo "$LD" >&6; } | |
859789af | 9057 | else |
81ecdfbb RW |
9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9059 | $as_echo "no" >&6; } | |
859789af | 9060 | fi |
c6b750e1 | 9061 | |
81ecdfbb | 9062 | |
05cbd757 PB |
9063 | fi |
9064 | test -n "$ac_cv_prog_LD" && break | |
9065 | done | |
9066 | ||
9067 | if test -z "$ac_cv_prog_LD" ; then | |
9068 | set dummy ld | |
9069 | if test $build = $host ; then | |
9070 | LD="$2" | |
859789af | 9071 | else |
05cbd757 | 9072 | LD="${ncn_tool_prefix}$2" |
859789af | 9073 | fi |
859789af AC |
9074 | fi |
9075 | ||
9a819804 AO |
9076 | |
9077 | ||
9078 | if test -n "$LIPO"; then | |
9079 | ac_cv_prog_LIPO=$LIPO | |
9080 | elif test -n "$ac_cv_prog_LIPO"; then | |
9081 | LIPO=$ac_cv_prog_LIPO | |
9082 | fi | |
9083 | ||
9084 | if test -n "$ac_cv_prog_LIPO"; then | |
9085 | for ncn_progname in lipo; do | |
9086 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9087 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9089 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9090 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 9091 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9092 | else |
9093 | if test -n "$LIPO"; then | |
9094 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9095 | else | |
9096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9097 | for as_dir in $PATH | |
9098 | do | |
9099 | IFS=$as_save_IFS | |
9100 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9101 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9103 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 9104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9105 | break 2 |
9106 | fi | |
9107 | done | |
81ecdfbb RW |
9108 | done |
9109 | IFS=$as_save_IFS | |
9a819804 AO |
9110 | |
9111 | fi | |
9112 | fi | |
9113 | LIPO=$ac_cv_prog_LIPO | |
9114 | if test -n "$LIPO"; then | |
81ecdfbb RW |
9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9116 | $as_echo "$LIPO" >&6; } | |
9a819804 | 9117 | else |
81ecdfbb RW |
9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9119 | $as_echo "no" >&6; } | |
9a819804 AO |
9120 | fi |
9121 | ||
81ecdfbb | 9122 | |
9a819804 AO |
9123 | done |
9124 | fi | |
9125 | ||
9126 | for ncn_progname in lipo; do | |
be01d343 PB |
9127 | if test -n "$ncn_tool_prefix"; then |
9128 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9129 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9131 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9132 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 9133 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9134 | else |
9135 | if test -n "$LIPO"; then | |
9136 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9137 | else | |
c6b750e1 DJ |
9138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9139 | for as_dir in $PATH | |
9140 | do | |
9141 | IFS=$as_save_IFS | |
9142 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9143 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9144 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9145 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9147 | break 2 |
9148 | fi | |
9149 | done | |
81ecdfbb RW |
9150 | done |
9151 | IFS=$as_save_IFS | |
c6b750e1 | 9152 | |
be01d343 PB |
9153 | fi |
9154 | fi | |
c6b750e1 | 9155 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 9156 | if test -n "$LIPO"; then |
81ecdfbb RW |
9157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9158 | $as_echo "$LIPO" >&6; } | |
be01d343 | 9159 | else |
81ecdfbb RW |
9160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9161 | $as_echo "no" >&6; } | |
be01d343 PB |
9162 | fi |
9163 | ||
81ecdfbb | 9164 | |
be01d343 PB |
9165 | fi |
9166 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
9167 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9168 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9170 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9171 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 9172 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9173 | else |
9174 | if test -n "$LIPO"; then | |
9175 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9176 | else | |
c6b750e1 DJ |
9177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9178 | for as_dir in $PATH | |
9179 | do | |
9180 | IFS=$as_save_IFS | |
9181 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9182 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9184 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 9185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9186 | break 2 |
9187 | fi | |
9188 | done | |
81ecdfbb RW |
9189 | done |
9190 | IFS=$as_save_IFS | |
c6b750e1 | 9191 | |
be01d343 PB |
9192 | fi |
9193 | fi | |
c6b750e1 | 9194 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 9195 | if test -n "$LIPO"; then |
81ecdfbb RW |
9196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9197 | $as_echo "$LIPO" >&6; } | |
be01d343 | 9198 | else |
81ecdfbb RW |
9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9200 | $as_echo "no" >&6; } | |
be01d343 | 9201 | fi |
c6b750e1 | 9202 | |
81ecdfbb | 9203 | |
be01d343 PB |
9204 | fi |
9205 | test -n "$ac_cv_prog_LIPO" && break | |
9206 | done | |
9207 | ||
9208 | if test -z "$ac_cv_prog_LIPO" ; then | |
9209 | set dummy lipo | |
9210 | if test $build = $host ; then | |
9211 | LIPO="$2" | |
9212 | else | |
9213 | LIPO="${ncn_tool_prefix}$2" | |
9214 | fi | |
9215 | fi | |
9216 | ||
9a819804 AO |
9217 | |
9218 | ||
9219 | if test -n "$NM"; then | |
9220 | ac_cv_prog_NM=$NM | |
9221 | elif test -n "$ac_cv_prog_NM"; then | |
9222 | NM=$ac_cv_prog_NM | |
9223 | fi | |
9224 | ||
9225 | if test -n "$ac_cv_prog_NM"; then | |
9226 | for ncn_progname in nm; do | |
9227 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9228 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9230 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9231 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 9232 | $as_echo_n "(cached) " >&6 |
859789af AC |
9233 | else |
9234 | if test -n "$NM"; then | |
9235 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9236 | else | |
c6b750e1 DJ |
9237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9238 | for as_dir in $PATH | |
9239 | do | |
9240 | IFS=$as_save_IFS | |
9241 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9242 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9244 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 9245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9246 | break 2 |
9247 | fi | |
9248 | done | |
81ecdfbb RW |
9249 | done |
9250 | IFS=$as_save_IFS | |
c6b750e1 | 9251 | |
859789af AC |
9252 | fi |
9253 | fi | |
c6b750e1 | 9254 | NM=$ac_cv_prog_NM |
859789af | 9255 | if test -n "$NM"; then |
81ecdfbb RW |
9256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9257 | $as_echo "$NM" >&6; } | |
859789af | 9258 | else |
81ecdfbb RW |
9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9260 | $as_echo "no" >&6; } | |
859789af AC |
9261 | fi |
9262 | ||
81ecdfbb | 9263 | |
9a819804 AO |
9264 | done |
9265 | fi | |
9266 | ||
9267 | for ncn_progname in nm; do | |
9268 | if test -n "$ncn_tool_prefix"; then | |
9269 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9270 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9272 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9273 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 9274 | $as_echo_n "(cached) " >&6 |
859789af | 9275 | else |
05cbd757 PB |
9276 | if test -n "$NM"; then |
9277 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 9278 | else |
c6b750e1 DJ |
9279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9280 | for as_dir in $PATH | |
9281 | do | |
9282 | IFS=$as_save_IFS | |
9283 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9284 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9285 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9286 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9288 | break 2 |
9289 | fi | |
9290 | done | |
81ecdfbb RW |
9291 | done |
9292 | IFS=$as_save_IFS | |
c6b750e1 | 9293 | |
859789af AC |
9294 | fi |
9295 | fi | |
c6b750e1 | 9296 | NM=$ac_cv_prog_NM |
05cbd757 | 9297 | if test -n "$NM"; then |
81ecdfbb RW |
9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9299 | $as_echo "$NM" >&6; } | |
859789af | 9300 | else |
81ecdfbb RW |
9301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9302 | $as_echo "no" >&6; } | |
859789af | 9303 | fi |
c6b750e1 | 9304 | |
81ecdfbb | 9305 | |
05cbd757 | 9306 | fi |
9a819804 AO |
9307 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
9308 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9309 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9311 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9312 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 9313 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9314 | else |
9315 | if test -n "$NM"; then | |
9316 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9317 | else | |
9318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9319 | for as_dir in $PATH | |
9320 | do | |
9321 | IFS=$as_save_IFS | |
9322 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9323 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9324 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9325 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 9326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9327 | break 2 |
9328 | fi | |
9329 | done | |
81ecdfbb RW |
9330 | done |
9331 | IFS=$as_save_IFS | |
9a819804 AO |
9332 | |
9333 | fi | |
9334 | fi | |
9335 | NM=$ac_cv_prog_NM | |
9336 | if test -n "$NM"; then | |
81ecdfbb RW |
9337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9338 | $as_echo "$NM" >&6; } | |
9a819804 | 9339 | else |
81ecdfbb RW |
9340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9341 | $as_echo "no" >&6; } | |
9a819804 AO |
9342 | fi |
9343 | ||
81ecdfbb | 9344 | |
9a819804 AO |
9345 | fi |
9346 | test -n "$ac_cv_prog_NM" && break | |
9347 | done | |
9348 | ||
9349 | if test -z "$ac_cv_prog_NM" ; then | |
9350 | set dummy nm | |
9351 | if test $build = $host ; then | |
9352 | NM="$2" | |
9353 | else | |
9354 | NM="${ncn_tool_prefix}$2" | |
9355 | fi | |
9356 | fi | |
9357 | ||
9358 | ||
9359 | ||
9360 | if test -n "$RANLIB"; then | |
9361 | ac_cv_prog_RANLIB=$RANLIB | |
9362 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9363 | RANLIB=$ac_cv_prog_RANLIB | |
9364 | fi | |
9365 | ||
9366 | if test -n "$ac_cv_prog_RANLIB"; then | |
9367 | for ncn_progname in ranlib; do | |
9368 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9369 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9371 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9372 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9373 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9374 | else |
9375 | if test -n "$RANLIB"; then | |
9376 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9377 | else | |
9378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9379 | for as_dir in $PATH | |
9380 | do | |
9381 | IFS=$as_save_IFS | |
9382 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9383 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9384 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9385 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9387 | break 2 |
9388 | fi | |
9389 | done | |
81ecdfbb RW |
9390 | done |
9391 | IFS=$as_save_IFS | |
9a819804 AO |
9392 | |
9393 | fi | |
9394 | fi | |
9395 | RANLIB=$ac_cv_prog_RANLIB | |
9396 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9398 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 9399 | else |
81ecdfbb RW |
9400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9401 | $as_echo "no" >&6; } | |
9a819804 AO |
9402 | fi |
9403 | ||
81ecdfbb | 9404 | |
9a819804 AO |
9405 | done |
9406 | fi | |
859789af | 9407 | |
9a819804 | 9408 | for ncn_progname in ranlib; do |
05cbd757 PB |
9409 | if test -n "$ncn_tool_prefix"; then |
9410 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9411 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9413 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9414 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9415 | $as_echo_n "(cached) " >&6 |
859789af AC |
9416 | else |
9417 | if test -n "$RANLIB"; then | |
9418 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9419 | else | |
c6b750e1 DJ |
9420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9421 | for as_dir in $PATH | |
9422 | do | |
9423 | IFS=$as_save_IFS | |
9424 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9425 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9426 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9427 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9429 | break 2 |
9430 | fi | |
9431 | done | |
81ecdfbb RW |
9432 | done |
9433 | IFS=$as_save_IFS | |
c6b750e1 | 9434 | |
859789af AC |
9435 | fi |
9436 | fi | |
c6b750e1 | 9437 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9438 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9440 | $as_echo "$RANLIB" >&6; } | |
859789af | 9441 | else |
81ecdfbb RW |
9442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9443 | $as_echo "no" >&6; } | |
859789af AC |
9444 | fi |
9445 | ||
81ecdfbb | 9446 | |
05cbd757 PB |
9447 | fi |
9448 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9449 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9450 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9452 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9453 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9454 | $as_echo_n "(cached) " >&6 |
859789af | 9455 | else |
05cbd757 PB |
9456 | if test -n "$RANLIB"; then |
9457 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9458 | else |
c6b750e1 DJ |
9459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9460 | for as_dir in $PATH | |
9461 | do | |
9462 | IFS=$as_save_IFS | |
9463 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9464 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9466 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9468 | break 2 |
9469 | fi | |
9470 | done | |
81ecdfbb RW |
9471 | done |
9472 | IFS=$as_save_IFS | |
c6b750e1 | 9473 | |
859789af AC |
9474 | fi |
9475 | fi | |
c6b750e1 | 9476 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9477 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9479 | $as_echo "$RANLIB" >&6; } | |
859789af | 9480 | else |
81ecdfbb RW |
9481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9482 | $as_echo "no" >&6; } | |
859789af | 9483 | fi |
c6b750e1 | 9484 | |
81ecdfbb | 9485 | |
859789af | 9486 | fi |
05cbd757 PB |
9487 | test -n "$ac_cv_prog_RANLIB" && break |
9488 | done | |
9489 | ||
9490 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9491 | RANLIB="true" |
859789af AC |
9492 | fi |
9493 | ||
9a819804 AO |
9494 | |
9495 | ||
9496 | if test -n "$STRIP"; then | |
9497 | ac_cv_prog_STRIP=$STRIP | |
9498 | elif test -n "$ac_cv_prog_STRIP"; then | |
9499 | STRIP=$ac_cv_prog_STRIP | |
9500 | fi | |
9501 | ||
9502 | if test -n "$ac_cv_prog_STRIP"; then | |
9503 | for ncn_progname in strip; do | |
9504 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9505 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9507 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9508 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9509 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9510 | else |
9511 | if test -n "$STRIP"; then | |
9512 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9513 | else | |
9514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9515 | for as_dir in $PATH | |
9516 | do | |
9517 | IFS=$as_save_IFS | |
9518 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9519 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9521 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9523 | break 2 |
9524 | fi | |
9525 | done | |
81ecdfbb RW |
9526 | done |
9527 | IFS=$as_save_IFS | |
9a819804 AO |
9528 | |
9529 | fi | |
9530 | fi | |
9531 | STRIP=$ac_cv_prog_STRIP | |
9532 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9534 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9535 | else |
81ecdfbb RW |
9536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9537 | $as_echo "no" >&6; } | |
9a819804 AO |
9538 | fi |
9539 | ||
81ecdfbb | 9540 | |
9a819804 AO |
9541 | done |
9542 | fi | |
9543 | ||
9544 | for ncn_progname in strip; do | |
be01d343 PB |
9545 | if test -n "$ncn_tool_prefix"; then |
9546 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9547 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9549 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9550 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9551 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9552 | else |
9553 | if test -n "$STRIP"; then | |
9554 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9555 | else | |
c6b750e1 DJ |
9556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9557 | for as_dir in $PATH | |
9558 | do | |
9559 | IFS=$as_save_IFS | |
9560 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9561 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9563 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9565 | break 2 |
9566 | fi | |
9567 | done | |
81ecdfbb RW |
9568 | done |
9569 | IFS=$as_save_IFS | |
c6b750e1 | 9570 | |
be01d343 PB |
9571 | fi |
9572 | fi | |
c6b750e1 | 9573 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9574 | if test -n "$STRIP"; then |
81ecdfbb RW |
9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9576 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9577 | else |
81ecdfbb RW |
9578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9579 | $as_echo "no" >&6; } | |
be01d343 PB |
9580 | fi |
9581 | ||
81ecdfbb | 9582 | |
be01d343 PB |
9583 | fi |
9584 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9585 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9586 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9588 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9589 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9590 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9591 | else |
9592 | if test -n "$STRIP"; then | |
9593 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9594 | else | |
c6b750e1 DJ |
9595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9596 | for as_dir in $PATH | |
9597 | do | |
9598 | IFS=$as_save_IFS | |
9599 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9600 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9602 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9604 | break 2 |
9605 | fi | |
9606 | done | |
81ecdfbb RW |
9607 | done |
9608 | IFS=$as_save_IFS | |
c6b750e1 | 9609 | |
be01d343 PB |
9610 | fi |
9611 | fi | |
c6b750e1 | 9612 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9613 | if test -n "$STRIP"; then |
81ecdfbb RW |
9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9615 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9616 | else |
81ecdfbb RW |
9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9618 | $as_echo "no" >&6; } | |
be01d343 | 9619 | fi |
c6b750e1 | 9620 | |
81ecdfbb | 9621 | |
be01d343 PB |
9622 | fi |
9623 | test -n "$ac_cv_prog_STRIP" && break | |
9624 | done | |
9625 | ||
9626 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9627 | STRIP="true" |
be01d343 PB |
9628 | fi |
9629 | ||
9a819804 AO |
9630 | |
9631 | ||
9632 | if test -n "$WINDRES"; then | |
9633 | ac_cv_prog_WINDRES=$WINDRES | |
9634 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9635 | WINDRES=$ac_cv_prog_WINDRES | |
9636 | fi | |
9637 | ||
9638 | if test -n "$ac_cv_prog_WINDRES"; then | |
9639 | for ncn_progname in windres; do | |
9640 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9641 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9643 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9644 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9645 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9646 | else |
9647 | if test -n "$WINDRES"; then | |
9648 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9649 | else | |
9650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9651 | for as_dir in $PATH | |
9652 | do | |
9653 | IFS=$as_save_IFS | |
9654 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9655 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9657 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9659 | break 2 |
9660 | fi | |
9661 | done | |
81ecdfbb RW |
9662 | done |
9663 | IFS=$as_save_IFS | |
9a819804 AO |
9664 | |
9665 | fi | |
9666 | fi | |
9667 | WINDRES=$ac_cv_prog_WINDRES | |
9668 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9670 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9671 | else |
81ecdfbb RW |
9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9673 | $as_echo "no" >&6; } | |
9a819804 AO |
9674 | fi |
9675 | ||
81ecdfbb | 9676 | |
9a819804 AO |
9677 | done |
9678 | fi | |
9679 | ||
9680 | for ncn_progname in windres; do | |
05cbd757 PB |
9681 | if test -n "$ncn_tool_prefix"; then |
9682 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9683 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9685 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9686 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9687 | $as_echo_n "(cached) " >&6 |
859789af AC |
9688 | else |
9689 | if test -n "$WINDRES"; then | |
9690 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9691 | else | |
c6b750e1 DJ |
9692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9693 | for as_dir in $PATH | |
9694 | do | |
9695 | IFS=$as_save_IFS | |
9696 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9697 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9699 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9701 | break 2 |
9702 | fi | |
9703 | done | |
81ecdfbb RW |
9704 | done |
9705 | IFS=$as_save_IFS | |
c6b750e1 | 9706 | |
859789af AC |
9707 | fi |
9708 | fi | |
c6b750e1 | 9709 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9710 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9712 | $as_echo "$WINDRES" >&6; } | |
859789af | 9713 | else |
81ecdfbb RW |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9715 | $as_echo "no" >&6; } | |
859789af AC |
9716 | fi |
9717 | ||
81ecdfbb | 9718 | |
05cbd757 PB |
9719 | fi |
9720 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9721 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9722 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9724 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9725 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9726 | $as_echo_n "(cached) " >&6 |
859789af | 9727 | else |
05cbd757 PB |
9728 | if test -n "$WINDRES"; then |
9729 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9730 | else |
c6b750e1 DJ |
9731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9732 | for as_dir in $PATH | |
9733 | do | |
9734 | IFS=$as_save_IFS | |
9735 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9736 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9738 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9740 | break 2 |
9741 | fi | |
9742 | done | |
81ecdfbb RW |
9743 | done |
9744 | IFS=$as_save_IFS | |
c6b750e1 | 9745 | |
859789af AC |
9746 | fi |
9747 | fi | |
c6b750e1 | 9748 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9749 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9751 | $as_echo "$WINDRES" >&6; } | |
859789af | 9752 | else |
81ecdfbb RW |
9753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9754 | $as_echo "no" >&6; } | |
859789af | 9755 | fi |
c6b750e1 | 9756 | |
81ecdfbb | 9757 | |
05cbd757 PB |
9758 | fi |
9759 | test -n "$ac_cv_prog_WINDRES" && break | |
9760 | done | |
9761 | ||
9762 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9763 | set dummy windres | |
9764 | if test $build = $host ; then | |
9765 | WINDRES="$2" | |
859789af | 9766 | else |
05cbd757 | 9767 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9768 | fi |
859789af AC |
9769 | fi |
9770 | ||
9a819804 AO |
9771 | |
9772 | ||
0c24b341 NC |
9773 | if test -n "$WINDMC"; then |
9774 | ac_cv_prog_WINDMC=$WINDMC | |
9775 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9776 | WINDMC=$ac_cv_prog_WINDMC | |
9777 | fi | |
9778 | ||
9779 | if test -n "$ac_cv_prog_WINDMC"; then | |
9780 | for ncn_progname in windmc; do | |
9781 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9782 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9784 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9785 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9786 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9787 | else |
9788 | if test -n "$WINDMC"; then | |
9789 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9790 | else | |
9791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9792 | for as_dir in $PATH | |
9793 | do | |
9794 | IFS=$as_save_IFS | |
9795 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9796 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9798 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9800 | break 2 |
9801 | fi | |
9802 | done | |
81ecdfbb RW |
9803 | done |
9804 | IFS=$as_save_IFS | |
0c24b341 NC |
9805 | |
9806 | fi | |
9807 | fi | |
9808 | WINDMC=$ac_cv_prog_WINDMC | |
9809 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9811 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9812 | else |
81ecdfbb RW |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9814 | $as_echo "no" >&6; } | |
0c24b341 NC |
9815 | fi |
9816 | ||
81ecdfbb | 9817 | |
0c24b341 NC |
9818 | done |
9819 | fi | |
9820 | ||
9821 | for ncn_progname in windmc; do | |
9822 | if test -n "$ncn_tool_prefix"; then | |
9823 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9824 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9826 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9827 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9828 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9829 | else |
9830 | if test -n "$WINDMC"; then | |
9831 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9832 | else | |
9833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9834 | for as_dir in $PATH | |
9835 | do | |
9836 | IFS=$as_save_IFS | |
9837 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9838 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9839 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9840 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9842 | break 2 |
9843 | fi | |
9844 | done | |
81ecdfbb RW |
9845 | done |
9846 | IFS=$as_save_IFS | |
0c24b341 NC |
9847 | |
9848 | fi | |
9849 | fi | |
9850 | WINDMC=$ac_cv_prog_WINDMC | |
9851 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9853 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9854 | else |
81ecdfbb RW |
9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9856 | $as_echo "no" >&6; } | |
0c24b341 NC |
9857 | fi |
9858 | ||
81ecdfbb | 9859 | |
0c24b341 NC |
9860 | fi |
9861 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9862 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9863 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9865 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9866 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9867 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9868 | else |
9869 | if test -n "$WINDMC"; then | |
9870 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9871 | else | |
9872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9873 | for as_dir in $PATH | |
9874 | do | |
9875 | IFS=$as_save_IFS | |
9876 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9877 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9879 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9881 | break 2 |
9882 | fi | |
9883 | done | |
81ecdfbb RW |
9884 | done |
9885 | IFS=$as_save_IFS | |
0c24b341 NC |
9886 | |
9887 | fi | |
9888 | fi | |
9889 | WINDMC=$ac_cv_prog_WINDMC | |
9890 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9892 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9893 | else |
81ecdfbb RW |
9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9895 | $as_echo "no" >&6; } | |
0c24b341 NC |
9896 | fi |
9897 | ||
81ecdfbb | 9898 | |
0c24b341 NC |
9899 | fi |
9900 | test -n "$ac_cv_prog_WINDMC" && break | |
9901 | done | |
9902 | ||
9903 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9904 | set dummy windmc | |
9905 | if test $build = $host ; then | |
9906 | WINDMC="$2" | |
9907 | else | |
9908 | WINDMC="${ncn_tool_prefix}$2" | |
9909 | fi | |
9910 | fi | |
9911 | ||
9912 | ||
9913 | ||
9a819804 AO |
9914 | if test -n "$OBJCOPY"; then |
9915 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9916 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9917 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9918 | fi | |
9919 | ||
9920 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9921 | for ncn_progname in objcopy; do | |
9922 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9923 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9925 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9926 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9927 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9928 | else |
9929 | if test -n "$OBJCOPY"; then | |
9930 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9931 | else | |
9932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9933 | for as_dir in $PATH | |
9934 | do | |
9935 | IFS=$as_save_IFS | |
9936 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9937 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9939 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9941 | break 2 |
9942 | fi | |
9943 | done | |
81ecdfbb RW |
9944 | done |
9945 | IFS=$as_save_IFS | |
9a819804 AO |
9946 | |
9947 | fi | |
9948 | fi | |
9949 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9950 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9952 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9953 | else |
81ecdfbb RW |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9955 | $as_echo "no" >&6; } | |
9a819804 AO |
9956 | fi |
9957 | ||
81ecdfbb | 9958 | |
9a819804 AO |
9959 | done |
9960 | fi | |
9961 | ||
9962 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9963 | if test -n "$ncn_tool_prefix"; then |
9964 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9965 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9967 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9968 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9969 | $as_echo_n "(cached) " >&6 |
859789af AC |
9970 | else |
9971 | if test -n "$OBJCOPY"; then | |
9972 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9973 | else | |
c6b750e1 DJ |
9974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9975 | for as_dir in $PATH | |
9976 | do | |
9977 | IFS=$as_save_IFS | |
9978 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9979 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9981 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9983 | break 2 |
9984 | fi | |
9985 | done | |
81ecdfbb RW |
9986 | done |
9987 | IFS=$as_save_IFS | |
c6b750e1 | 9988 | |
859789af AC |
9989 | fi |
9990 | fi | |
c6b750e1 | 9991 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9992 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9994 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9995 | else |
81ecdfbb RW |
9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9997 | $as_echo "no" >&6; } | |
859789af AC |
9998 | fi |
9999 | ||
81ecdfbb | 10000 | |
05cbd757 PB |
10001 | fi |
10002 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
10003 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10004 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10006 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10007 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 10008 | $as_echo_n "(cached) " >&6 |
859789af | 10009 | else |
05cbd757 PB |
10010 | if test -n "$OBJCOPY"; then |
10011 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 10012 | else |
c6b750e1 DJ |
10013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10014 | for as_dir in $PATH | |
10015 | do | |
10016 | IFS=$as_save_IFS | |
10017 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10018 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10019 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10020 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 10021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10022 | break 2 |
10023 | fi | |
10024 | done | |
81ecdfbb RW |
10025 | done |
10026 | IFS=$as_save_IFS | |
c6b750e1 | 10027 | |
859789af AC |
10028 | fi |
10029 | fi | |
c6b750e1 | 10030 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 10031 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
10032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
10033 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 10034 | else |
81ecdfbb RW |
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10036 | $as_echo "no" >&6; } | |
859789af | 10037 | fi |
c6b750e1 | 10038 | |
81ecdfbb | 10039 | |
05cbd757 PB |
10040 | fi |
10041 | test -n "$ac_cv_prog_OBJCOPY" && break | |
10042 | done | |
10043 | ||
10044 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
10045 | set dummy objcopy | |
10046 | if test $build = $host ; then | |
10047 | OBJCOPY="$2" | |
859789af | 10048 | else |
05cbd757 | 10049 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 10050 | fi |
859789af AC |
10051 | fi |
10052 | ||
9a819804 AO |
10053 | |
10054 | ||
10055 | if test -n "$OBJDUMP"; then | |
10056 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
10057 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
10058 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
10059 | fi | |
10060 | ||
10061 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
10062 | for ncn_progname in objdump; do | |
10063 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10064 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10066 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10067 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 10068 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10069 | else |
10070 | if test -n "$OBJDUMP"; then | |
10071 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
10072 | else | |
10073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10074 | for as_dir in $PATH | |
10075 | do | |
10076 | IFS=$as_save_IFS | |
10077 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10078 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10080 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 10081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10082 | break 2 |
10083 | fi | |
10084 | done | |
81ecdfbb RW |
10085 | done |
10086 | IFS=$as_save_IFS | |
9a819804 AO |
10087 | |
10088 | fi | |
10089 | fi | |
10090 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
10091 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
10093 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 10094 | else |
81ecdfbb RW |
10095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10096 | $as_echo "no" >&6; } | |
9a819804 AO |
10097 | fi |
10098 | ||
81ecdfbb | 10099 | |
9a819804 AO |
10100 | done |
10101 | fi | |
10102 | ||
10103 | for ncn_progname in objdump; do | |
05cbd757 PB |
10104 | if test -n "$ncn_tool_prefix"; then |
10105 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10106 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10108 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10109 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 10110 | $as_echo_n "(cached) " >&6 |
859789af AC |
10111 | else |
10112 | if test -n "$OBJDUMP"; then | |
10113 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
10114 | else | |
c6b750e1 DJ |
10115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10116 | for as_dir in $PATH | |
10117 | do | |
10118 | IFS=$as_save_IFS | |
10119 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10120 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10122 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 10123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10124 | break 2 |
10125 | fi | |
10126 | done | |
81ecdfbb RW |
10127 | done |
10128 | IFS=$as_save_IFS | |
c6b750e1 | 10129 | |
859789af AC |
10130 | fi |
10131 | fi | |
c6b750e1 | 10132 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 10133 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
10135 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 10136 | else |
81ecdfbb RW |
10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10138 | $as_echo "no" >&6; } | |
859789af AC |
10139 | fi |
10140 | ||
81ecdfbb | 10141 | |
05cbd757 PB |
10142 | fi |
10143 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
10144 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10145 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10147 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10148 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 10149 | $as_echo_n "(cached) " >&6 |
859789af | 10150 | else |
05cbd757 PB |
10151 | if test -n "$OBJDUMP"; then |
10152 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 10153 | else |
c6b750e1 DJ |
10154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10155 | for as_dir in $PATH | |
10156 | do | |
10157 | IFS=$as_save_IFS | |
10158 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10159 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10161 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 10162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10163 | break 2 |
10164 | fi | |
10165 | done | |
81ecdfbb RW |
10166 | done |
10167 | IFS=$as_save_IFS | |
c6b750e1 | 10168 | |
859789af AC |
10169 | fi |
10170 | fi | |
c6b750e1 | 10171 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 10172 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
10174 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 10175 | else |
81ecdfbb RW |
10176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10177 | $as_echo "no" >&6; } | |
859789af | 10178 | fi |
c6b750e1 | 10179 | |
81ecdfbb | 10180 | |
05cbd757 PB |
10181 | fi |
10182 | test -n "$ac_cv_prog_OBJDUMP" && break | |
10183 | done | |
10184 | ||
10185 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
10186 | set dummy objdump | |
10187 | if test $build = $host ; then | |
10188 | OBJDUMP="$2" | |
859789af | 10189 | else |
05cbd757 | 10190 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 10191 | fi |
859789af AC |
10192 | fi |
10193 | ||
a0da8069 NN |
10194 | |
10195 | ||
b121d7d4 DD |
10196 | if test -n "$READELF"; then |
10197 | ac_cv_prog_READELF=$READELF | |
10198 | elif test -n "$ac_cv_prog_READELF"; then | |
10199 | READELF=$ac_cv_prog_READELF | |
10200 | fi | |
10201 | ||
10202 | if test -n "$ac_cv_prog_READELF"; then | |
10203 | for ncn_progname in readelf; do | |
10204 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10205 | set dummy ${ncn_progname}; ac_word=$2 | |
10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10207 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10208 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
10209 | $as_echo_n "(cached) " >&6 |
10210 | else | |
10211 | if test -n "$READELF"; then | |
10212 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10213 | else | |
10214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10215 | for as_dir in $PATH | |
10216 | do | |
10217 | IFS=$as_save_IFS | |
10218 | test -z "$as_dir" && as_dir=. | |
10219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
10221 | ac_cv_prog_READELF="${ncn_progname}" |
10222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10223 | break 2 | |
10224 | fi | |
10225 | done | |
10226 | done | |
10227 | IFS=$as_save_IFS | |
10228 | ||
10229 | fi | |
10230 | fi | |
10231 | READELF=$ac_cv_prog_READELF | |
10232 | if test -n "$READELF"; then | |
10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10234 | $as_echo "$READELF" >&6; } | |
10235 | else | |
10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10237 | $as_echo "no" >&6; } | |
10238 | fi | |
10239 | ||
10240 | ||
10241 | done | |
10242 | fi | |
10243 | ||
10244 | for ncn_progname in readelf; do | |
10245 | if test -n "$ncn_tool_prefix"; then | |
10246 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10247 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10249 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10250 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
10251 | $as_echo_n "(cached) " >&6 |
10252 | else | |
10253 | if test -n "$READELF"; then | |
10254 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10255 | else | |
10256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10257 | for as_dir in $PATH | |
10258 | do | |
10259 | IFS=$as_save_IFS | |
10260 | test -z "$as_dir" && as_dir=. | |
10261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
10263 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
10264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10265 | break 2 | |
10266 | fi | |
10267 | done | |
10268 | done | |
10269 | IFS=$as_save_IFS | |
10270 | ||
10271 | fi | |
10272 | fi | |
10273 | READELF=$ac_cv_prog_READELF | |
10274 | if test -n "$READELF"; then | |
10275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10276 | $as_echo "$READELF" >&6; } | |
10277 | else | |
10278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10279 | $as_echo "no" >&6; } | |
10280 | fi | |
10281 | ||
10282 | ||
10283 | fi | |
10284 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
10285 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10286 | set dummy ${ncn_progname}; ac_word=$2 | |
10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10288 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10289 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
10290 | $as_echo_n "(cached) " >&6 |
10291 | else | |
10292 | if test -n "$READELF"; then | |
10293 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10294 | else | |
10295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10296 | for as_dir in $PATH | |
10297 | do | |
10298 | IFS=$as_save_IFS | |
10299 | test -z "$as_dir" && as_dir=. | |
10300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
10302 | ac_cv_prog_READELF="${ncn_progname}" |
10303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10304 | break 2 | |
10305 | fi | |
10306 | done | |
10307 | done | |
10308 | IFS=$as_save_IFS | |
10309 | ||
10310 | fi | |
10311 | fi | |
10312 | READELF=$ac_cv_prog_READELF | |
10313 | if test -n "$READELF"; then | |
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10315 | $as_echo "$READELF" >&6; } | |
10316 | else | |
10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10318 | $as_echo "no" >&6; } | |
10319 | fi | |
10320 | ||
10321 | ||
10322 | fi | |
10323 | test -n "$ac_cv_prog_READELF" && break | |
10324 | done | |
10325 | ||
10326 | if test -z "$ac_cv_prog_READELF" ; then | |
10327 | set dummy readelf | |
10328 | if test $build = $host ; then | |
10329 | READELF="$2" | |
10330 | else | |
10331 | READELF="${ncn_tool_prefix}$2" | |
10332 | fi | |
10333 | fi | |
10334 | ||
10335 | ||
10336 | ||
a0da8069 NN |
10337 | |
10338 | ||
10339 | ||
de83289e | 10340 | |
50ad1254 L |
10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
10342 | $as_echo_n "checking for -plugin option... " >&6; } | |
10343 | ||
10344 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
10345 | plugin_option= | |
10346 | for plugin in $plugin_names; do | |
10347 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
10348 | if test x$plugin_so = x$plugin; then | |
10349 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
10350 | fi | |
10351 | if test x$plugin_so != x$plugin; then | |
10352 | plugin_option="--plugin $plugin_so" | |
10353 | break | |
10354 | fi | |
10355 | done | |
03c02f31 L |
10356 | if test -n "$ac_tool_prefix"; then |
10357 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
10358 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10360 | $as_echo_n "checking for $ac_word... " >&6; } | |
10361 | if ${ac_cv_prog_AR+:} false; then : | |
10362 | $as_echo_n "(cached) " >&6 | |
10363 | else | |
10364 | if test -n "$AR"; then | |
10365 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10366 | else | |
10367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10368 | for as_dir in $PATH | |
10369 | do | |
10370 | IFS=$as_save_IFS | |
10371 | test -z "$as_dir" && as_dir=. | |
10372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10373 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10374 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
10375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10376 | break 2 | |
10377 | fi | |
10378 | done | |
10379 | done | |
10380 | IFS=$as_save_IFS | |
10381 | ||
10382 | fi | |
10383 | fi | |
10384 | AR=$ac_cv_prog_AR | |
10385 | if test -n "$AR"; then | |
10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
10387 | $as_echo "$AR" >&6; } | |
10388 | else | |
10389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10390 | $as_echo "no" >&6; } | |
10391 | fi | |
10392 | ||
10393 | ||
10394 | fi | |
10395 | if test -z "$ac_cv_prog_AR"; then | |
10396 | ac_ct_AR=$AR | |
10397 | # Extract the first word of "ar", so it can be a program name with args. | |
10398 | set dummy ar; ac_word=$2 | |
10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10400 | $as_echo_n "checking for $ac_word... " >&6; } | |
10401 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
10402 | $as_echo_n "(cached) " >&6 | |
10403 | else | |
10404 | if test -n "$ac_ct_AR"; then | |
10405 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
10406 | else | |
10407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10408 | for as_dir in $PATH | |
10409 | do | |
10410 | IFS=$as_save_IFS | |
10411 | test -z "$as_dir" && as_dir=. | |
10412 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10414 | ac_cv_prog_ac_ct_AR="ar" | |
10415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10416 | break 2 | |
10417 | fi | |
10418 | done | |
10419 | done | |
10420 | IFS=$as_save_IFS | |
10421 | ||
10422 | fi | |
10423 | fi | |
10424 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
10425 | if test -n "$ac_ct_AR"; then | |
10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
10427 | $as_echo "$ac_ct_AR" >&6; } | |
10428 | else | |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10430 | $as_echo "no" >&6; } | |
10431 | fi | |
10432 | ||
10433 | if test "x$ac_ct_AR" = x; then | |
10434 | AR="" | |
10435 | else | |
10436 | case $cross_compiling:$ac_tool_warned in | |
10437 | yes:) | |
10438 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10439 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10440 | ac_tool_warned=yes ;; | |
10441 | esac | |
10442 | AR=$ac_ct_AR | |
10443 | fi | |
10444 | else | |
10445 | AR="$ac_cv_prog_AR" | |
10446 | fi | |
10447 | ||
10448 | if test "${AR}" = "" ; then | |
10449 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
10450 | fi | |
10451 | touch conftest.c | |
10452 | ${AR} $plugin_option rc conftest.a conftest.c | |
10453 | if test "$?" != 0; then | |
10454 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
10455 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
10456 | plugin_option= | |
10457 | fi | |
10458 | rm -f conftest.* | |
50ad1254 L |
10459 | if test -n "$plugin_option"; then |
10460 | PLUGIN_OPTION="$plugin_option" | |
10461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
10462 | $as_echo "$plugin_option" >&6; } | |
10463 | else | |
10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10465 | $as_echo "no" >&6; } | |
10466 | fi | |
10467 | ||
10468 | AR_PLUGIN_OPTION= | |
10469 | RANLIB_PLUGIN_OPTION= | |
10470 | if test -n "$PLUGIN_OPTION"; then | |
10471 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
10472 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
10473 | fi | |
10474 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
10475 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
10476 | fi | |
44124a46 L |
10477 | else |
10478 | if test "$enable_pgo_build" != "no"; then | |
10479 | as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5 | |
10480 | fi | |
50ad1254 L |
10481 | fi |
10482 | ||
10483 | ||
10484 | ||
be01d343 | 10485 | # Target tools. |
c6b750e1 | 10486 | |
81ecdfbb RW |
10487 | # Check whether --with-build-time-tools was given. |
10488 | if test "${with_build_time_tools+set}" = set; then : | |
10489 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
10490 | x/*) ;; |
10491 | *) | |
10492 | with_build_time_tools= | |
81ecdfbb RW |
10493 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10494 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
10495 | ;; |
10496 | esac | |
859789af | 10497 | else |
2429c060 | 10498 | with_build_time_tools= |
81ecdfbb RW |
10499 | fi |
10500 | ||
859789af | 10501 | |
9a819804 AO |
10502 | |
10503 | ||
10504 | if test -n "$CC_FOR_TARGET"; then | |
10505 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10506 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10507 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10508 | fi | |
10509 | ||
10510 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10511 | for ncn_progname in cc gcc; do | |
10512 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10513 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10515 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10516 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10517 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10518 | else |
10519 | if test -n "$CC_FOR_TARGET"; then | |
10520 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10521 | else | |
10522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10523 | for as_dir in $PATH | |
10524 | do | |
10525 | IFS=$as_save_IFS | |
10526 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10527 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10528 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10529 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10531 | break 2 |
10532 | fi | |
10533 | done | |
81ecdfbb RW |
10534 | done |
10535 | IFS=$as_save_IFS | |
9a819804 AO |
10536 | |
10537 | fi | |
10538 | fi | |
10539 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10540 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10542 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 10543 | else |
81ecdfbb RW |
10544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10545 | $as_echo "no" >&6; } | |
9a819804 AO |
10546 | fi |
10547 | ||
81ecdfbb | 10548 | |
9a819804 AO |
10549 | done |
10550 | fi | |
10551 | ||
10552 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10553 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10555 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10556 | if test -x $with_build_time_tools/${ncn_progname}; then |
10557 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10559 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10560 | break |
2429c060 | 10561 | else |
81ecdfbb RW |
10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10563 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10564 | fi |
10565 | done | |
55db4b87 PB |
10566 | fi |
10567 | ||
2429c060 PB |
10568 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10569 | for ncn_progname in cc gcc; do | |
10570 | if test -n "$ncn_target_tool_prefix"; then | |
10571 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10572 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10574 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10575 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10576 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10577 | else |
10578 | if test -n "$CC_FOR_TARGET"; then | |
10579 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10580 | else | |
c6b750e1 DJ |
10581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10582 | for as_dir in $PATH | |
10583 | do | |
10584 | IFS=$as_save_IFS | |
10585 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10586 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10588 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10590 | break 2 |
10591 | fi | |
10592 | done | |
81ecdfbb RW |
10593 | done |
10594 | IFS=$as_save_IFS | |
c6b750e1 | 10595 | |
55db4b87 PB |
10596 | fi |
10597 | fi | |
c6b750e1 | 10598 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10599 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10601 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10602 | else |
81ecdfbb RW |
10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10604 | $as_echo "no" >&6; } | |
55db4b87 PB |
10605 | fi |
10606 | ||
81ecdfbb | 10607 | |
2429c060 PB |
10608 | fi |
10609 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10610 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10611 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10613 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10614 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10615 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10616 | else |
05cbd757 PB |
10617 | if test -n "$CC_FOR_TARGET"; then |
10618 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10619 | else |
c6b750e1 DJ |
10620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10621 | for as_dir in $PATH | |
10622 | do | |
10623 | IFS=$as_save_IFS | |
10624 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10625 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10626 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10627 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10629 | break 2 |
10630 | fi | |
10631 | done | |
81ecdfbb RW |
10632 | done |
10633 | IFS=$as_save_IFS | |
c6b750e1 | 10634 | |
55db4b87 PB |
10635 | fi |
10636 | fi | |
c6b750e1 | 10637 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10638 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10640 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10641 | else |
81ecdfbb RW |
10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10643 | $as_echo "no" >&6; } | |
55db4b87 | 10644 | fi |
c6b750e1 | 10645 | |
81ecdfbb | 10646 | |
2429c060 PB |
10647 | fi |
10648 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10649 | done | |
10650 | fi | |
c6b750e1 | 10651 | |
05cbd757 PB |
10652 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10653 | set dummy cc gcc | |
10654 | if test $build = $target ; then | |
10655 | CC_FOR_TARGET="$2" | |
55db4b87 | 10656 | else |
05cbd757 | 10657 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10658 | fi |
d3f5afc4 MS |
10659 | else |
10660 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10661 | fi |
10662 | ||
9a819804 AO |
10663 | |
10664 | ||
10665 | if test -n "$CXX_FOR_TARGET"; then | |
10666 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10667 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10668 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10669 | fi | |
10670 | ||
10671 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10672 | for ncn_progname in c++ g++ cxx gxx; do | |
10673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10674 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10676 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10677 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10678 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10679 | else |
10680 | if test -n "$CXX_FOR_TARGET"; then | |
10681 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10682 | else | |
10683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10684 | for as_dir in $PATH | |
10685 | do | |
10686 | IFS=$as_save_IFS | |
10687 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10688 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10690 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10692 | break 2 |
10693 | fi | |
10694 | done | |
81ecdfbb RW |
10695 | done |
10696 | IFS=$as_save_IFS | |
9a819804 AO |
10697 | |
10698 | fi | |
10699 | fi | |
10700 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10701 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10703 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10704 | else |
81ecdfbb RW |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10706 | $as_echo "no" >&6; } | |
9a819804 AO |
10707 | fi |
10708 | ||
81ecdfbb | 10709 | |
9a819804 AO |
10710 | done |
10711 | fi | |
10712 | ||
10713 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10714 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10716 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10717 | if test -x $with_build_time_tools/${ncn_progname}; then |
10718 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10720 | $as_echo "yes" >&6; } | |
2429c060 PB |
10721 | break |
10722 | else | |
81ecdfbb RW |
10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10724 | $as_echo "no" >&6; } | |
2429c060 PB |
10725 | fi |
10726 | done | |
10727 | fi | |
10728 | ||
10729 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10730 | for ncn_progname in c++ g++ cxx gxx; do | |
10731 | if test -n "$ncn_target_tool_prefix"; then | |
10732 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10733 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10735 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10736 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10737 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10738 | else |
10739 | if test -n "$CXX_FOR_TARGET"; then | |
10740 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10741 | else | |
c6b750e1 DJ |
10742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10743 | for as_dir in $PATH | |
10744 | do | |
10745 | IFS=$as_save_IFS | |
10746 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10747 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10749 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10751 | break 2 |
10752 | fi | |
10753 | done | |
81ecdfbb RW |
10754 | done |
10755 | IFS=$as_save_IFS | |
c6b750e1 | 10756 | |
55db4b87 PB |
10757 | fi |
10758 | fi | |
c6b750e1 | 10759 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10760 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10762 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10763 | else |
81ecdfbb RW |
10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10765 | $as_echo "no" >&6; } | |
55db4b87 PB |
10766 | fi |
10767 | ||
81ecdfbb | 10768 | |
2429c060 PB |
10769 | fi |
10770 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10771 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10772 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10774 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10775 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10776 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10777 | else |
05cbd757 PB |
10778 | if test -n "$CXX_FOR_TARGET"; then |
10779 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10780 | else |
c6b750e1 DJ |
10781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10782 | for as_dir in $PATH | |
10783 | do | |
10784 | IFS=$as_save_IFS | |
10785 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10786 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10788 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10790 | break 2 |
10791 | fi | |
10792 | done | |
81ecdfbb RW |
10793 | done |
10794 | IFS=$as_save_IFS | |
c6b750e1 | 10795 | |
55db4b87 PB |
10796 | fi |
10797 | fi | |
c6b750e1 | 10798 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10799 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10801 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10802 | else |
81ecdfbb RW |
10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10804 | $as_echo "no" >&6; } | |
55db4b87 | 10805 | fi |
c6b750e1 | 10806 | |
81ecdfbb | 10807 | |
2429c060 PB |
10808 | fi |
10809 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10810 | done | |
10811 | fi | |
c6b750e1 | 10812 | |
05cbd757 PB |
10813 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10814 | set dummy c++ g++ cxx gxx | |
10815 | if test $build = $target ; then | |
10816 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10817 | else |
05cbd757 | 10818 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10819 | fi |
d3f5afc4 MS |
10820 | else |
10821 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10822 | fi |
10823 | ||
9a819804 AO |
10824 | |
10825 | ||
10826 | if test -n "$GCC_FOR_TARGET"; then | |
10827 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10828 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10829 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10830 | fi | |
10831 | ||
10832 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10833 | for ncn_progname in gcc; do | |
10834 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10835 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10837 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10838 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10839 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10840 | else |
10841 | if test -n "$GCC_FOR_TARGET"; then | |
10842 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10843 | else | |
10844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10845 | for as_dir in $PATH | |
10846 | do | |
10847 | IFS=$as_save_IFS | |
10848 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10849 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10851 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10853 | break 2 |
10854 | fi | |
10855 | done | |
81ecdfbb RW |
10856 | done |
10857 | IFS=$as_save_IFS | |
9a819804 AO |
10858 | |
10859 | fi | |
10860 | fi | |
10861 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10862 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10864 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10865 | else |
81ecdfbb RW |
10866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10867 | $as_echo "no" >&6; } | |
9a819804 AO |
10868 | fi |
10869 | ||
81ecdfbb | 10870 | |
9a819804 AO |
10871 | done |
10872 | fi | |
10873 | ||
10874 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10875 | for ncn_progname in gcc; do |
81ecdfbb RW |
10876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10877 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10878 | if test -x $with_build_time_tools/${ncn_progname}; then |
10879 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10881 | $as_echo "yes" >&6; } | |
2429c060 PB |
10882 | break |
10883 | else | |
81ecdfbb RW |
10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10885 | $as_echo "no" >&6; } | |
2429c060 PB |
10886 | fi |
10887 | done | |
10888 | fi | |
10889 | ||
10890 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10891 | for ncn_progname in gcc; do | |
10892 | if test -n "$ncn_target_tool_prefix"; then | |
10893 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10894 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10896 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10897 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10898 | $as_echo_n "(cached) " >&6 |
859789af | 10899 | else |
2429c060 PB |
10900 | if test -n "$GCC_FOR_TARGET"; then |
10901 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10902 | else |
c6b750e1 DJ |
10903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10904 | for as_dir in $PATH | |
10905 | do | |
10906 | IFS=$as_save_IFS | |
10907 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10908 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10910 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10912 | break 2 |
10913 | fi | |
10914 | done | |
81ecdfbb RW |
10915 | done |
10916 | IFS=$as_save_IFS | |
c6b750e1 | 10917 | |
55db4b87 PB |
10918 | fi |
10919 | fi | |
c6b750e1 | 10920 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10921 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10923 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10924 | else |
81ecdfbb RW |
10925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10926 | $as_echo "no" >&6; } | |
55db4b87 PB |
10927 | fi |
10928 | ||
81ecdfbb | 10929 | |
2429c060 PB |
10930 | fi |
10931 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10932 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10933 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10935 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10936 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10937 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10938 | else |
05cbd757 PB |
10939 | if test -n "$GCC_FOR_TARGET"; then |
10940 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10941 | else |
c6b750e1 DJ |
10942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10943 | for as_dir in $PATH | |
10944 | do | |
10945 | IFS=$as_save_IFS | |
10946 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10947 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10948 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10949 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10951 | break 2 |
10952 | fi | |
10953 | done | |
81ecdfbb RW |
10954 | done |
10955 | IFS=$as_save_IFS | |
c6b750e1 | 10956 | |
55db4b87 PB |
10957 | fi |
10958 | fi | |
c6b750e1 | 10959 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10960 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10962 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10963 | else |
81ecdfbb RW |
10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10965 | $as_echo "no" >&6; } | |
55db4b87 | 10966 | fi |
c6b750e1 | 10967 | |
81ecdfbb | 10968 | |
2429c060 PB |
10969 | fi |
10970 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10971 | done | |
10972 | fi | |
c6b750e1 | 10973 | |
05cbd757 PB |
10974 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10975 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10976 | else |
10977 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10978 | fi |
10979 | ||
9a819804 AO |
10980 | |
10981 | ||
9a819804 AO |
10982 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10983 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10984 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10985 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10986 | fi |
10987 | ||
9a819804 AO |
10988 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10989 | for ncn_progname in gfortran; do | |
10990 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10991 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10993 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10994 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10995 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10996 | else |
9a819804 AO |
10997 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10998 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10999 | else |
c6b750e1 DJ |
11000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11001 | for as_dir in $PATH | |
11002 | do | |
11003 | IFS=$as_save_IFS | |
11004 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11005 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11006 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11007 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11009 | break 2 |
11010 | fi | |
11011 | done | |
81ecdfbb RW |
11012 | done |
11013 | IFS=$as_save_IFS | |
c6b750e1 | 11014 | |
55db4b87 PB |
11015 | fi |
11016 | fi | |
9a819804 AO |
11017 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
11018 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
11020 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 11021 | else |
81ecdfbb RW |
11022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11023 | $as_echo "no" >&6; } | |
55db4b87 | 11024 | fi |
c6b750e1 | 11025 | |
81ecdfbb | 11026 | |
2429c060 PB |
11027 | done |
11028 | fi | |
c6b750e1 | 11029 | |
9a819804 | 11030 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 11031 | for ncn_progname in gfortran; do |
81ecdfbb RW |
11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11033 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11034 | if test -x $with_build_time_tools/${ncn_progname}; then |
11035 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11037 | $as_echo "yes" >&6; } | |
2429c060 PB |
11038 | break |
11039 | else | |
81ecdfbb RW |
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11041 | $as_echo "no" >&6; } | |
2429c060 PB |
11042 | fi |
11043 | done | |
11044 | fi | |
11045 | ||
11046 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
11047 | for ncn_progname in gfortran; do | |
11048 | if test -n "$ncn_target_tool_prefix"; then | |
11049 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11050 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11052 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11053 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 11054 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
11055 | else |
11056 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
11057 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
11058 | else | |
c6b750e1 DJ |
11059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11060 | for as_dir in $PATH | |
11061 | do | |
11062 | IFS=$as_save_IFS | |
11063 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11064 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11066 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11068 | break 2 |
11069 | fi | |
11070 | done | |
81ecdfbb RW |
11071 | done |
11072 | IFS=$as_save_IFS | |
c6b750e1 | 11073 | |
55db4b87 PB |
11074 | fi |
11075 | fi | |
c6b750e1 | 11076 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 11077 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
11078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
11079 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 11080 | else |
81ecdfbb RW |
11081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11082 | $as_echo "no" >&6; } | |
55db4b87 PB |
11083 | fi |
11084 | ||
81ecdfbb | 11085 | |
2429c060 PB |
11086 | fi |
11087 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
11088 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11089 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11091 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11092 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 11093 | $as_echo_n "(cached) " >&6 |
55db4b87 | 11094 | else |
05cbd757 | 11095 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
11096 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
11097 | else | |
11098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11099 | for as_dir in $PATH | |
11100 | do | |
11101 | IFS=$as_save_IFS | |
11102 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11103 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11105 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11107 | break 2 |
11108 | fi | |
11109 | done | |
81ecdfbb RW |
11110 | done |
11111 | IFS=$as_save_IFS | |
c6b750e1 | 11112 | |
55db4b87 PB |
11113 | fi |
11114 | fi | |
c6b750e1 | 11115 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 11116 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
11118 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 11119 | else |
81ecdfbb RW |
11120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11121 | $as_echo "no" >&6; } | |
55db4b87 | 11122 | fi |
c6b750e1 | 11123 | |
81ecdfbb | 11124 | |
2429c060 PB |
11125 | fi |
11126 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
11127 | done | |
11128 | fi | |
c6b750e1 | 11129 | |
05cbd757 PB |
11130 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
11131 | set dummy gfortran | |
11132 | if test $build = $target ; then | |
11133 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 11134 | else |
05cbd757 | 11135 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 11136 | fi |
d3f5afc4 MS |
11137 | else |
11138 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
11139 | fi |
11140 | ||
2429c060 PB |
11141 | |
11142 | ||
e552509b ILT |
11143 | if test -n "$GOC_FOR_TARGET"; then |
11144 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
11145 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11146 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11147 | fi | |
11148 | ||
11149 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11150 | for ncn_progname in gccgo; do | |
11151 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11152 | set dummy ${ncn_progname}; ac_word=$2 | |
11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11154 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11155 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
11156 | $as_echo_n "(cached) " >&6 |
11157 | else | |
11158 | if test -n "$GOC_FOR_TARGET"; then | |
11159 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11160 | else | |
11161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11162 | for as_dir in $PATH | |
11163 | do | |
11164 | IFS=$as_save_IFS | |
11165 | test -z "$as_dir" && as_dir=. | |
11166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 11167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
11168 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
11169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11170 | break 2 | |
11171 | fi | |
11172 | done | |
11173 | done | |
11174 | IFS=$as_save_IFS | |
11175 | ||
11176 | fi | |
11177 | fi | |
11178 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11179 | if test -n "$GOC_FOR_TARGET"; then | |
11180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11181 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11182 | else | |
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11184 | $as_echo "no" >&6; } | |
11185 | fi | |
11186 | ||
11187 | ||
11188 | done | |
11189 | fi | |
11190 | ||
11191 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11192 | for ncn_progname in gccgo; do | |
11193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11194 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11195 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11196 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11198 | $as_echo "yes" >&6; } | |
11199 | break | |
11200 | else | |
11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11202 | $as_echo "no" >&6; } | |
11203 | fi | |
11204 | done | |
11205 | fi | |
11206 | ||
11207 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11208 | for ncn_progname in gccgo; do | |
11209 | if test -n "$ncn_target_tool_prefix"; then | |
11210 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11211 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11213 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11214 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
11215 | $as_echo_n "(cached) " >&6 |
11216 | else | |
11217 | if test -n "$GOC_FOR_TARGET"; then | |
11218 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11219 | else | |
11220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11221 | for as_dir in $PATH | |
11222 | do | |
11223 | IFS=$as_save_IFS | |
11224 | test -z "$as_dir" && as_dir=. | |
11225 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 11226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
11227 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11229 | break 2 | |
11230 | fi | |
11231 | done | |
11232 | done | |
11233 | IFS=$as_save_IFS | |
11234 | ||
11235 | fi | |
11236 | fi | |
11237 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11238 | if test -n "$GOC_FOR_TARGET"; then | |
11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11240 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11241 | else | |
11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11243 | $as_echo "no" >&6; } | |
11244 | fi | |
11245 | ||
11246 | ||
11247 | fi | |
11248 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
11249 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11250 | set dummy ${ncn_progname}; ac_word=$2 | |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11252 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11253 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
11254 | $as_echo_n "(cached) " >&6 |
11255 | else | |
11256 | if test -n "$GOC_FOR_TARGET"; then | |
11257 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11258 | else | |
11259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11260 | for as_dir in $PATH | |
11261 | do | |
11262 | IFS=$as_save_IFS | |
11263 | test -z "$as_dir" && as_dir=. | |
11264 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 11265 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
11266 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
11267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11268 | break 2 | |
11269 | fi | |
11270 | done | |
11271 | done | |
11272 | IFS=$as_save_IFS | |
11273 | ||
11274 | fi | |
11275 | fi | |
11276 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11277 | if test -n "$GOC_FOR_TARGET"; then | |
11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11279 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11280 | else | |
11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11282 | $as_echo "no" >&6; } | |
11283 | fi | |
11284 | ||
11285 | ||
11286 | fi | |
11287 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
11288 | done | |
11289 | fi | |
11290 | ||
11291 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
11292 | set dummy gccgo | |
11293 | if test $build = $target ; then | |
11294 | GOC_FOR_TARGET="$2" | |
11295 | else | |
11296 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11297 | fi | |
11298 | else | |
11299 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
11300 | fi | |
11301 | ||
11302 | ||
11303 | ||
2429c060 PB |
11304 | cat > conftest.c << \EOF |
11305 | #ifdef __GNUC__ | |
11306 | gcc_yay; | |
11307 | #endif | |
11308 | EOF | |
11309 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
11310 | have_gcc_for_target=yes | |
859789af | 11311 | else |
2429c060 PB |
11312 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
11313 | have_gcc_for_target=no | |
859789af | 11314 | fi |
2429c060 PB |
11315 | rm conftest.c |
11316 | ||
11317 | ||
11318 | ||
859789af | 11319 | |
2429c060 PB |
11320 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
11321 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
11323 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11324 | if test -x $with_build_time_tools/ar; then |
11325 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
11326 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
11328 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 11329 | else |
81ecdfbb RW |
11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11331 | $as_echo "no" >&6; } | |
3a35eeb3 | 11332 | fi |
2429c060 PB |
11333 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11334 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
11335 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
11336 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 11337 | fi |
2429c060 | 11338 | fi |
c6b750e1 | 11339 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11340 | # Extract the first word of "ar", so it can be a program name with args. |
11341 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
11342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11343 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11344 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11345 | $as_echo_n "(cached) " >&6 |
859789af | 11346 | else |
c6b750e1 DJ |
11347 | case $AR_FOR_TARGET in |
11348 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11349 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11350 | ;; | |
2429c060 | 11351 | *) |
c6b750e1 DJ |
11352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11353 | for as_dir in $gcc_cv_tool_dirs | |
11354 | do | |
11355 | IFS=$as_save_IFS | |
11356 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11357 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11359 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11361 | break 2 |
11362 | fi | |
11363 | done | |
81ecdfbb RW |
11364 | done |
11365 | IFS=$as_save_IFS | |
c6b750e1 | 11366 | |
2429c060 PB |
11367 | ;; |
11368 | esac | |
859789af | 11369 | fi |
c6b750e1 | 11370 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 11371 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11373 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 11374 | else |
81ecdfbb RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11376 | $as_echo "no" >&6; } | |
859789af | 11377 | fi |
05cbd757 | 11378 | |
81ecdfbb | 11379 | |
2429c060 PB |
11380 | fi |
11381 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
11382 | |
11383 | ||
11384 | if test -n "$AR_FOR_TARGET"; then | |
11385 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11386 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11387 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11388 | fi | |
11389 | ||
11390 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11391 | for ncn_progname in ar; do | |
11392 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11393 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11395 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11396 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11397 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11398 | else |
11399 | if test -n "$AR_FOR_TARGET"; then | |
11400 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11401 | else | |
11402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11403 | for as_dir in $PATH | |
11404 | do | |
11405 | IFS=$as_save_IFS | |
11406 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11407 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11409 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11411 | break 2 |
11412 | fi | |
11413 | done | |
81ecdfbb RW |
11414 | done |
11415 | IFS=$as_save_IFS | |
9a819804 AO |
11416 | |
11417 | fi | |
11418 | fi | |
11419 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11420 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11422 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 11423 | else |
81ecdfbb RW |
11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11425 | $as_echo "no" >&6; } | |
9a819804 AO |
11426 | fi |
11427 | ||
81ecdfbb | 11428 | |
9a819804 AO |
11429 | done |
11430 | fi | |
11431 | ||
11432 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11433 | for ncn_progname in ar; do |
81ecdfbb RW |
11434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11435 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11436 | if test -x $with_build_time_tools/${ncn_progname}; then |
11437 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11439 | $as_echo "yes" >&6; } | |
2429c060 PB |
11440 | break |
11441 | else | |
81ecdfbb RW |
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11443 | $as_echo "no" >&6; } | |
2429c060 PB |
11444 | fi |
11445 | done | |
859789af AC |
11446 | fi |
11447 | ||
2429c060 PB |
11448 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11449 | for ncn_progname in ar; do | |
11450 | if test -n "$ncn_target_tool_prefix"; then | |
11451 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11452 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11454 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11455 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11456 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 11457 | else |
2429c060 PB |
11458 | if test -n "$AR_FOR_TARGET"; then |
11459 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 11460 | else |
c6b750e1 DJ |
11461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11462 | for as_dir in $PATH | |
11463 | do | |
11464 | IFS=$as_save_IFS | |
11465 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11466 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11468 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11470 | break 2 |
11471 | fi | |
11472 | done | |
81ecdfbb RW |
11473 | done |
11474 | IFS=$as_save_IFS | |
c6b750e1 | 11475 | |
7e0f7140 GK |
11476 | fi |
11477 | fi | |
c6b750e1 | 11478 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11479 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11481 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11482 | else |
81ecdfbb RW |
11483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11484 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11485 | fi |
11486 | ||
81ecdfbb | 11487 | |
2429c060 PB |
11488 | fi |
11489 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11490 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11491 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11493 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11494 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 11495 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 11496 | else |
2429c060 PB |
11497 | if test -n "$AR_FOR_TARGET"; then |
11498 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11499 | else |
c6b750e1 DJ |
11500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11501 | for as_dir in $PATH | |
11502 | do | |
11503 | IFS=$as_save_IFS | |
11504 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11505 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11507 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11509 | break 2 |
11510 | fi | |
11511 | done | |
81ecdfbb RW |
11512 | done |
11513 | IFS=$as_save_IFS | |
c6b750e1 | 11514 | |
7e0f7140 GK |
11515 | fi |
11516 | fi | |
c6b750e1 | 11517 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11518 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11520 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11521 | else |
81ecdfbb RW |
11522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11523 | $as_echo "no" >&6; } | |
7e0f7140 | 11524 | fi |
c6b750e1 | 11525 | |
81ecdfbb | 11526 | |
2429c060 PB |
11527 | fi |
11528 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11529 | done | |
11530 | fi | |
c6b750e1 | 11531 | |
2429c060 PB |
11532 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11533 | set dummy ar | |
7e0f7140 | 11534 | if test $build = $target ; then |
2429c060 | 11535 | AR_FOR_TARGET="$2" |
7e0f7140 | 11536 | else |
2429c060 | 11537 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11538 | fi |
d3f5afc4 MS |
11539 | else |
11540 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11541 | fi |
11542 | ||
3a35eeb3 PB |
11543 | else |
11544 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11545 | fi |
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11551 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11553 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11554 | if test -x $with_build_time_tools/as; then |
11555 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11556 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11558 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11559 | else |
81ecdfbb RW |
11560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11561 | $as_echo "no" >&6; } | |
3a35eeb3 | 11562 | fi |
2429c060 PB |
11563 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11564 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11565 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11566 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11567 | fi |
11568 | fi | |
c6b750e1 | 11569 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11570 | # Extract the first word of "as", so it can be a program name with args. |
11571 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11573 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11574 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11575 | $as_echo_n "(cached) " >&6 |
2429c060 | 11576 | else |
c6b750e1 DJ |
11577 | case $AS_FOR_TARGET in |
11578 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11579 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11580 | ;; | |
2429c060 | 11581 | *) |
c6b750e1 DJ |
11582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11583 | for as_dir in $gcc_cv_tool_dirs | |
11584 | do | |
11585 | IFS=$as_save_IFS | |
11586 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11587 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11589 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11591 | break 2 |
11592 | fi | |
11593 | done | |
81ecdfbb RW |
11594 | done |
11595 | IFS=$as_save_IFS | |
c6b750e1 | 11596 | |
2429c060 PB |
11597 | ;; |
11598 | esac | |
11599 | fi | |
c6b750e1 | 11600 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11601 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11603 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11604 | else |
81ecdfbb RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11606 | $as_echo "no" >&6; } | |
2429c060 PB |
11607 | fi |
11608 | ||
81ecdfbb | 11609 | |
2429c060 PB |
11610 | fi |
11611 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11612 | |
11613 | ||
11614 | if test -n "$AS_FOR_TARGET"; then | |
11615 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11616 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11617 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11618 | fi | |
11619 | ||
11620 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11621 | for ncn_progname in as; do | |
11622 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11623 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11625 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11626 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11627 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11628 | else |
11629 | if test -n "$AS_FOR_TARGET"; then | |
11630 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11631 | else | |
11632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11633 | for as_dir in $PATH | |
11634 | do | |
11635 | IFS=$as_save_IFS | |
11636 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11637 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11639 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11641 | break 2 |
11642 | fi | |
11643 | done | |
81ecdfbb RW |
11644 | done |
11645 | IFS=$as_save_IFS | |
9a819804 AO |
11646 | |
11647 | fi | |
11648 | fi | |
11649 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11650 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11652 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11653 | else |
81ecdfbb RW |
11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11655 | $as_echo "no" >&6; } | |
9a819804 AO |
11656 | fi |
11657 | ||
81ecdfbb | 11658 | |
9a819804 AO |
11659 | done |
11660 | fi | |
11661 | ||
11662 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11663 | for ncn_progname in as; do |
81ecdfbb RW |
11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11665 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11666 | if test -x $with_build_time_tools/${ncn_progname}; then |
11667 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11669 | $as_echo "yes" >&6; } | |
2429c060 PB |
11670 | break |
11671 | else | |
81ecdfbb RW |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11673 | $as_echo "no" >&6; } | |
2429c060 PB |
11674 | fi |
11675 | done | |
11676 | fi | |
11677 | ||
11678 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11679 | for ncn_progname in as; do | |
11680 | if test -n "$ncn_target_tool_prefix"; then | |
11681 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11682 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11684 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11685 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11686 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11687 | else |
11688 | if test -n "$AS_FOR_TARGET"; then | |
11689 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11690 | else | |
c6b750e1 DJ |
11691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11692 | for as_dir in $PATH | |
11693 | do | |
11694 | IFS=$as_save_IFS | |
11695 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11696 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11698 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11700 | break 2 |
11701 | fi | |
11702 | done | |
81ecdfbb RW |
11703 | done |
11704 | IFS=$as_save_IFS | |
c6b750e1 | 11705 | |
2429c060 PB |
11706 | fi |
11707 | fi | |
c6b750e1 | 11708 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11709 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11711 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11712 | else |
81ecdfbb RW |
11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11714 | $as_echo "no" >&6; } | |
2429c060 PB |
11715 | fi |
11716 | ||
81ecdfbb | 11717 | |
2429c060 PB |
11718 | fi |
11719 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11720 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11721 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11723 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11724 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11725 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11726 | else |
11727 | if test -n "$AS_FOR_TARGET"; then | |
11728 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11729 | else | |
c6b750e1 DJ |
11730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11731 | for as_dir in $PATH | |
11732 | do | |
11733 | IFS=$as_save_IFS | |
11734 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11735 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11737 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11739 | break 2 |
11740 | fi | |
11741 | done | |
81ecdfbb RW |
11742 | done |
11743 | IFS=$as_save_IFS | |
c6b750e1 | 11744 | |
2429c060 PB |
11745 | fi |
11746 | fi | |
c6b750e1 | 11747 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11748 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11750 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11751 | else |
81ecdfbb RW |
11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11753 | $as_echo "no" >&6; } | |
2429c060 | 11754 | fi |
c6b750e1 | 11755 | |
81ecdfbb | 11756 | |
2429c060 PB |
11757 | fi |
11758 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11759 | done | |
11760 | fi | |
c6b750e1 | 11761 | |
2429c060 PB |
11762 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11763 | set dummy as | |
11764 | if test $build = $target ; then | |
11765 | AS_FOR_TARGET="$2" | |
11766 | else | |
11767 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11768 | fi | |
d3f5afc4 MS |
11769 | else |
11770 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11771 | fi |
11772 | ||
3a35eeb3 PB |
11773 | else |
11774 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11775 | fi |
11776 | ||
11777 | ||
11778 | ||
11779 | ||
11780 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11781 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11783 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11784 | if test -x $with_build_time_tools/dlltool; then |
11785 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11786 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11788 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11789 | else |
81ecdfbb RW |
11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11791 | $as_echo "no" >&6; } | |
3a35eeb3 | 11792 | fi |
2429c060 PB |
11793 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11794 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11795 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11796 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11797 | fi |
11798 | fi | |
c6b750e1 | 11799 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11800 | # Extract the first word of "dlltool", so it can be a program name with args. |
11801 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11803 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11804 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11805 | $as_echo_n "(cached) " >&6 |
2429c060 | 11806 | else |
c6b750e1 DJ |
11807 | case $DLLTOOL_FOR_TARGET in |
11808 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11809 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11810 | ;; | |
2429c060 | 11811 | *) |
c6b750e1 DJ |
11812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11813 | for as_dir in $gcc_cv_tool_dirs | |
11814 | do | |
11815 | IFS=$as_save_IFS | |
11816 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11817 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11819 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11821 | break 2 |
11822 | fi | |
11823 | done | |
81ecdfbb RW |
11824 | done |
11825 | IFS=$as_save_IFS | |
c6b750e1 | 11826 | |
2429c060 PB |
11827 | ;; |
11828 | esac | |
11829 | fi | |
c6b750e1 | 11830 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11831 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11833 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11834 | else |
81ecdfbb RW |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11836 | $as_echo "no" >&6; } | |
2429c060 PB |
11837 | fi |
11838 | ||
81ecdfbb | 11839 | |
2429c060 PB |
11840 | fi |
11841 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11842 | |
11843 | ||
11844 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11845 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11846 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11847 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11848 | fi | |
11849 | ||
11850 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11851 | for ncn_progname in dlltool; do | |
11852 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11853 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11855 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11856 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11857 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11858 | else |
11859 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11860 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11861 | else | |
11862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11863 | for as_dir in $PATH | |
11864 | do | |
11865 | IFS=$as_save_IFS | |
11866 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11867 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11868 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11869 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11871 | break 2 |
11872 | fi | |
11873 | done | |
81ecdfbb RW |
11874 | done |
11875 | IFS=$as_save_IFS | |
9a819804 AO |
11876 | |
11877 | fi | |
11878 | fi | |
11879 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11880 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11882 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11883 | else |
81ecdfbb RW |
11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11885 | $as_echo "no" >&6; } | |
9a819804 AO |
11886 | fi |
11887 | ||
81ecdfbb | 11888 | |
9a819804 AO |
11889 | done |
11890 | fi | |
11891 | ||
11892 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11893 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11895 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11896 | if test -x $with_build_time_tools/${ncn_progname}; then |
11897 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11899 | $as_echo "yes" >&6; } | |
2429c060 PB |
11900 | break |
11901 | else | |
81ecdfbb RW |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11903 | $as_echo "no" >&6; } | |
2429c060 PB |
11904 | fi |
11905 | done | |
11906 | fi | |
11907 | ||
11908 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11909 | for ncn_progname in dlltool; do | |
11910 | if test -n "$ncn_target_tool_prefix"; then | |
11911 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11912 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11914 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11915 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11916 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11917 | else |
11918 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11919 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11920 | else | |
c6b750e1 DJ |
11921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11922 | for as_dir in $PATH | |
11923 | do | |
11924 | IFS=$as_save_IFS | |
11925 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11926 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11928 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11930 | break 2 |
11931 | fi | |
11932 | done | |
81ecdfbb RW |
11933 | done |
11934 | IFS=$as_save_IFS | |
c6b750e1 | 11935 | |
2429c060 PB |
11936 | fi |
11937 | fi | |
c6b750e1 | 11938 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11939 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11941 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11942 | else |
81ecdfbb RW |
11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11944 | $as_echo "no" >&6; } | |
2429c060 PB |
11945 | fi |
11946 | ||
81ecdfbb | 11947 | |
2429c060 PB |
11948 | fi |
11949 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11950 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11951 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11953 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11954 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11955 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11956 | else |
11957 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11958 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11959 | else | |
c6b750e1 DJ |
11960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11961 | for as_dir in $PATH | |
11962 | do | |
11963 | IFS=$as_save_IFS | |
11964 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11965 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11966 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11967 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11969 | break 2 |
11970 | fi | |
11971 | done | |
81ecdfbb RW |
11972 | done |
11973 | IFS=$as_save_IFS | |
c6b750e1 | 11974 | |
2429c060 PB |
11975 | fi |
11976 | fi | |
c6b750e1 | 11977 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11978 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11980 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11981 | else |
81ecdfbb RW |
11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11983 | $as_echo "no" >&6; } | |
2429c060 | 11984 | fi |
c6b750e1 | 11985 | |
81ecdfbb | 11986 | |
2429c060 PB |
11987 | fi |
11988 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11989 | done | |
11990 | fi | |
c6b750e1 | 11991 | |
2429c060 PB |
11992 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11993 | set dummy dlltool | |
11994 | if test $build = $target ; then | |
11995 | DLLTOOL_FOR_TARGET="$2" | |
11996 | else | |
11997 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11998 | fi | |
d3f5afc4 MS |
11999 | else |
12000 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
12001 | fi |
12002 | ||
3a35eeb3 PB |
12003 | else |
12004 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
12005 | fi |
12006 | ||
12007 | ||
12008 | ||
12009 | ||
12010 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
12011 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
12013 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12014 | if test -x $with_build_time_tools/ld; then |
12015 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
12016 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
12018 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 12019 | else |
81ecdfbb RW |
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12021 | $as_echo "no" >&6; } | |
3a35eeb3 | 12022 | fi |
2429c060 PB |
12023 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12024 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
12025 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
12026 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
12027 | fi |
12028 | fi | |
c6b750e1 | 12029 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12030 | # Extract the first word of "ld", so it can be a program name with args. |
12031 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12033 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12034 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 12035 | $as_echo_n "(cached) " >&6 |
2429c060 | 12036 | else |
c6b750e1 DJ |
12037 | case $LD_FOR_TARGET in |
12038 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12039 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
12040 | ;; | |
2429c060 | 12041 | *) |
c6b750e1 DJ |
12042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12043 | for as_dir in $gcc_cv_tool_dirs | |
12044 | do | |
12045 | IFS=$as_save_IFS | |
12046 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12047 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12049 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12051 | break 2 |
12052 | fi | |
12053 | done | |
81ecdfbb RW |
12054 | done |
12055 | IFS=$as_save_IFS | |
c6b750e1 | 12056 | |
2429c060 PB |
12057 | ;; |
12058 | esac | |
12059 | fi | |
c6b750e1 | 12060 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 12061 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12063 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 12064 | else |
81ecdfbb RW |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12066 | $as_echo "no" >&6; } | |
2429c060 PB |
12067 | fi |
12068 | ||
81ecdfbb | 12069 | |
2429c060 PB |
12070 | fi |
12071 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
12072 | |
12073 | ||
12074 | if test -n "$LD_FOR_TARGET"; then | |
12075 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
12076 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
12077 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
12078 | fi | |
12079 | ||
12080 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
12081 | for ncn_progname in ld; do | |
12082 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12083 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12085 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12086 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 12087 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12088 | else |
12089 | if test -n "$LD_FOR_TARGET"; then | |
12090 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
12091 | else | |
12092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12093 | for as_dir in $PATH | |
12094 | do | |
12095 | IFS=$as_save_IFS | |
12096 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12097 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12099 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12101 | break 2 |
12102 | fi | |
12103 | done | |
81ecdfbb RW |
12104 | done |
12105 | IFS=$as_save_IFS | |
9a819804 AO |
12106 | |
12107 | fi | |
12108 | fi | |
12109 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
12110 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12112 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 12113 | else |
81ecdfbb RW |
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12115 | $as_echo "no" >&6; } | |
9a819804 AO |
12116 | fi |
12117 | ||
81ecdfbb | 12118 | |
9a819804 AO |
12119 | done |
12120 | fi | |
12121 | ||
12122 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12123 | for ncn_progname in ld; do |
81ecdfbb RW |
12124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12125 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12126 | if test -x $with_build_time_tools/${ncn_progname}; then |
12127 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12129 | $as_echo "yes" >&6; } | |
2429c060 PB |
12130 | break |
12131 | else | |
81ecdfbb RW |
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12133 | $as_echo "no" >&6; } | |
2429c060 PB |
12134 | fi |
12135 | done | |
12136 | fi | |
12137 | ||
12138 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
12139 | for ncn_progname in ld; do | |
12140 | if test -n "$ncn_target_tool_prefix"; then | |
12141 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12142 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12144 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12145 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 12146 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
12147 | else |
12148 | if test -n "$LD_FOR_TARGET"; then | |
12149 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
12150 | else | |
c6b750e1 DJ |
12151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12152 | for as_dir in $PATH | |
12153 | do | |
12154 | IFS=$as_save_IFS | |
12155 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12156 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12158 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12160 | break 2 |
12161 | fi | |
12162 | done | |
81ecdfbb RW |
12163 | done |
12164 | IFS=$as_save_IFS | |
c6b750e1 | 12165 | |
2429c060 PB |
12166 | fi |
12167 | fi | |
c6b750e1 | 12168 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 12169 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12171 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 12172 | else |
81ecdfbb RW |
12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12174 | $as_echo "no" >&6; } | |
2429c060 PB |
12175 | fi |
12176 | ||
81ecdfbb | 12177 | |
2429c060 PB |
12178 | fi |
12179 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
12180 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12181 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12183 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12184 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 12185 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
12186 | else |
12187 | if test -n "$LD_FOR_TARGET"; then | |
12188 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
12189 | else | |
c6b750e1 DJ |
12190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12191 | for as_dir in $PATH | |
12192 | do | |
12193 | IFS=$as_save_IFS | |
12194 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12195 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12197 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12199 | break 2 |
12200 | fi | |
12201 | done | |
81ecdfbb RW |
12202 | done |
12203 | IFS=$as_save_IFS | |
c6b750e1 | 12204 | |
2429c060 PB |
12205 | fi |
12206 | fi | |
c6b750e1 | 12207 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 12208 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12210 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 12211 | else |
81ecdfbb RW |
12212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12213 | $as_echo "no" >&6; } | |
2429c060 | 12214 | fi |
c6b750e1 | 12215 | |
81ecdfbb | 12216 | |
2429c060 PB |
12217 | fi |
12218 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
12219 | done | |
12220 | fi | |
c6b750e1 | 12221 | |
2429c060 PB |
12222 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
12223 | set dummy ld | |
12224 | if test $build = $target ; then | |
12225 | LD_FOR_TARGET="$2" | |
12226 | else | |
12227 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12228 | fi | |
d3f5afc4 MS |
12229 | else |
12230 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
12231 | fi |
12232 | ||
3a35eeb3 PB |
12233 | else |
12234 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
12235 | fi |
12236 | ||
12237 | ||
12238 | ||
12239 | ||
12240 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12241 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
12243 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12244 | if test -x $with_build_time_tools/lipo; then |
12245 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
12246 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
12248 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 12249 | else |
81ecdfbb RW |
12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12251 | $as_echo "no" >&6; } | |
3a35eeb3 | 12252 | fi |
2429c060 PB |
12253 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12254 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
12255 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
12256 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
12257 | fi |
12258 | fi | |
9a819804 AO |
12259 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
12260 | # Extract the first word of "lipo", so it can be a program name with args. | |
12261 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12263 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12264 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12265 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12266 | else |
12267 | case $LIPO_FOR_TARGET in | |
12268 | [\\/]* | ?:[\\/]*) | |
12269 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
12270 | ;; | |
12271 | *) | |
12272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12273 | for as_dir in $gcc_cv_tool_dirs | |
12274 | do | |
12275 | IFS=$as_save_IFS | |
12276 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12277 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12279 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12281 | break 2 |
12282 | fi | |
12283 | done | |
81ecdfbb RW |
12284 | done |
12285 | IFS=$as_save_IFS | |
9a819804 AO |
12286 | |
12287 | ;; | |
12288 | esac | |
12289 | fi | |
12290 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 12291 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12293 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 12294 | else |
81ecdfbb RW |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12296 | $as_echo "no" >&6; } | |
9a819804 AO |
12297 | fi |
12298 | ||
81ecdfbb | 12299 | |
9a819804 AO |
12300 | fi |
12301 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12302 | ||
12303 | ||
12304 | if test -n "$LIPO_FOR_TARGET"; then | |
12305 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
12306 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12307 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
12308 | fi | |
12309 | ||
12310 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12311 | for ncn_progname in lipo; do | |
12312 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12313 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12315 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12316 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12317 | $as_echo_n "(cached) " >&6 |
2429c060 | 12318 | else |
9a819804 AO |
12319 | if test -n "$LIPO_FOR_TARGET"; then |
12320 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12321 | else | |
12322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12323 | for as_dir in $PATH | |
c6b750e1 DJ |
12324 | do |
12325 | IFS=$as_save_IFS | |
12326 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12327 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12328 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12329 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12331 | break 2 |
12332 | fi | |
12333 | done | |
81ecdfbb RW |
12334 | done |
12335 | IFS=$as_save_IFS | |
c6b750e1 | 12336 | |
2429c060 | 12337 | fi |
9a819804 AO |
12338 | fi |
12339 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 12340 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12342 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12343 | else |
81ecdfbb RW |
12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12345 | $as_echo "no" >&6; } | |
2429c060 PB |
12346 | fi |
12347 | ||
81ecdfbb | 12348 | |
9a819804 | 12349 | done |
2429c060 | 12350 | fi |
9a819804 AO |
12351 | |
12352 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12353 | for ncn_progname in lipo; do |
81ecdfbb RW |
12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12355 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12356 | if test -x $with_build_time_tools/${ncn_progname}; then |
12357 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12359 | $as_echo "yes" >&6; } | |
2429c060 PB |
12360 | break |
12361 | else | |
81ecdfbb RW |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12363 | $as_echo "no" >&6; } | |
2429c060 PB |
12364 | fi |
12365 | done | |
12366 | fi | |
12367 | ||
12368 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12369 | for ncn_progname in lipo; do | |
12370 | if test -n "$ncn_target_tool_prefix"; then | |
12371 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12372 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12374 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12375 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12376 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
12377 | else |
12378 | if test -n "$LIPO_FOR_TARGET"; then | |
12379 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12380 | else | |
c6b750e1 DJ |
12381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12382 | for as_dir in $PATH | |
12383 | do | |
12384 | IFS=$as_save_IFS | |
12385 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12386 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12387 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12388 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12390 | break 2 |
12391 | fi | |
12392 | done | |
81ecdfbb RW |
12393 | done |
12394 | IFS=$as_save_IFS | |
c6b750e1 | 12395 | |
2429c060 PB |
12396 | fi |
12397 | fi | |
c6b750e1 | 12398 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12399 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12401 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12402 | else |
81ecdfbb RW |
12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12404 | $as_echo "no" >&6; } | |
2429c060 PB |
12405 | fi |
12406 | ||
81ecdfbb | 12407 | |
2429c060 PB |
12408 | fi |
12409 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12410 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12411 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12413 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12414 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 12415 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
12416 | else |
12417 | if test -n "$LIPO_FOR_TARGET"; then | |
12418 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12419 | else | |
c6b750e1 DJ |
12420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12421 | for as_dir in $PATH | |
12422 | do | |
12423 | IFS=$as_save_IFS | |
12424 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12425 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12426 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12427 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12429 | break 2 |
12430 | fi | |
12431 | done | |
81ecdfbb RW |
12432 | done |
12433 | IFS=$as_save_IFS | |
c6b750e1 | 12434 | |
2429c060 PB |
12435 | fi |
12436 | fi | |
c6b750e1 | 12437 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12438 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12440 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12441 | else |
81ecdfbb RW |
12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12443 | $as_echo "no" >&6; } | |
2429c060 | 12444 | fi |
c6b750e1 | 12445 | |
81ecdfbb | 12446 | |
2429c060 PB |
12447 | fi |
12448 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12449 | done | |
12450 | fi | |
c6b750e1 | 12451 | |
2429c060 PB |
12452 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12453 | set dummy lipo | |
12454 | if test $build = $target ; then | |
12455 | LIPO_FOR_TARGET="$2" | |
12456 | else | |
12457 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12458 | fi | |
d3f5afc4 MS |
12459 | else |
12460 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
12461 | fi |
12462 | ||
3a35eeb3 PB |
12463 | else |
12464 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
12465 | fi |
12466 | ||
12467 | ||
12468 | ||
12469 | ||
12470 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12471 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12473 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12474 | if test -x $with_build_time_tools/nm; then |
12475 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12476 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12478 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12479 | else |
81ecdfbb RW |
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12481 | $as_echo "no" >&6; } | |
3a35eeb3 | 12482 | fi |
2429c060 PB |
12483 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12484 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12485 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12486 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12487 | fi |
12488 | fi | |
c6b750e1 | 12489 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12490 | # Extract the first word of "nm", so it can be a program name with args. |
12491 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12493 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12494 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12495 | $as_echo_n "(cached) " >&6 |
2429c060 | 12496 | else |
c6b750e1 DJ |
12497 | case $NM_FOR_TARGET in |
12498 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12499 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12500 | ;; | |
2429c060 | 12501 | *) |
c6b750e1 DJ |
12502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12503 | for as_dir in $gcc_cv_tool_dirs | |
12504 | do | |
12505 | IFS=$as_save_IFS | |
12506 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12507 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12508 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12509 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12511 | break 2 |
12512 | fi | |
12513 | done | |
81ecdfbb RW |
12514 | done |
12515 | IFS=$as_save_IFS | |
c6b750e1 | 12516 | |
2429c060 PB |
12517 | ;; |
12518 | esac | |
12519 | fi | |
c6b750e1 | 12520 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12521 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12523 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12524 | else |
81ecdfbb RW |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12526 | $as_echo "no" >&6; } | |
2429c060 PB |
12527 | fi |
12528 | ||
81ecdfbb | 12529 | |
2429c060 PB |
12530 | fi |
12531 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12532 | |
12533 | ||
12534 | if test -n "$NM_FOR_TARGET"; then | |
12535 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12536 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12537 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12538 | fi | |
12539 | ||
12540 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12541 | for ncn_progname in nm; do | |
12542 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12543 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12545 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12546 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12547 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12548 | else |
12549 | if test -n "$NM_FOR_TARGET"; then | |
12550 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12551 | else | |
12552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12553 | for as_dir in $PATH | |
12554 | do | |
12555 | IFS=$as_save_IFS | |
12556 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12557 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12559 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12561 | break 2 |
12562 | fi | |
12563 | done | |
81ecdfbb RW |
12564 | done |
12565 | IFS=$as_save_IFS | |
9a819804 AO |
12566 | |
12567 | fi | |
12568 | fi | |
12569 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12570 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12572 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12573 | else |
81ecdfbb RW |
12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12575 | $as_echo "no" >&6; } | |
9a819804 AO |
12576 | fi |
12577 | ||
81ecdfbb | 12578 | |
9a819804 AO |
12579 | done |
12580 | fi | |
12581 | ||
12582 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12583 | for ncn_progname in nm; do |
81ecdfbb RW |
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12585 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12586 | if test -x $with_build_time_tools/${ncn_progname}; then |
12587 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12589 | $as_echo "yes" >&6; } | |
2429c060 PB |
12590 | break |
12591 | else | |
81ecdfbb RW |
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12593 | $as_echo "no" >&6; } | |
2429c060 PB |
12594 | fi |
12595 | done | |
12596 | fi | |
12597 | ||
12598 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12599 | for ncn_progname in nm; do | |
12600 | if test -n "$ncn_target_tool_prefix"; then | |
12601 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12602 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12604 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12605 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12606 | $as_echo_n "(cached) " >&6 |
859789af | 12607 | else |
55db4b87 PB |
12608 | if test -n "$NM_FOR_TARGET"; then |
12609 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12610 | else |
c6b750e1 DJ |
12611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12612 | for as_dir in $PATH | |
12613 | do | |
12614 | IFS=$as_save_IFS | |
12615 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12616 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12617 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12618 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12620 | break 2 |
12621 | fi | |
12622 | done | |
81ecdfbb RW |
12623 | done |
12624 | IFS=$as_save_IFS | |
c6b750e1 | 12625 | |
859789af AC |
12626 | fi |
12627 | fi | |
c6b750e1 | 12628 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12629 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12631 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12632 | else |
81ecdfbb RW |
12633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12634 | $as_echo "no" >&6; } | |
859789af AC |
12635 | fi |
12636 | ||
81ecdfbb | 12637 | |
2429c060 PB |
12638 | fi |
12639 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12640 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12641 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12643 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12644 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12645 | $as_echo_n "(cached) " >&6 |
859789af | 12646 | else |
05cbd757 PB |
12647 | if test -n "$NM_FOR_TARGET"; then |
12648 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12649 | else |
c6b750e1 DJ |
12650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12651 | for as_dir in $PATH | |
12652 | do | |
12653 | IFS=$as_save_IFS | |
12654 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12655 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12657 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12659 | break 2 |
12660 | fi | |
12661 | done | |
81ecdfbb RW |
12662 | done |
12663 | IFS=$as_save_IFS | |
c6b750e1 | 12664 | |
859789af AC |
12665 | fi |
12666 | fi | |
c6b750e1 | 12667 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12668 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12670 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12671 | else |
81ecdfbb RW |
12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12673 | $as_echo "no" >&6; } | |
859789af | 12674 | fi |
c6b750e1 | 12675 | |
81ecdfbb | 12676 | |
2429c060 PB |
12677 | fi |
12678 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12679 | done | |
12680 | fi | |
c6b750e1 | 12681 | |
05cbd757 PB |
12682 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12683 | set dummy nm | |
12684 | if test $build = $target ; then | |
12685 | NM_FOR_TARGET="$2" | |
859789af | 12686 | else |
05cbd757 | 12687 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12688 | fi |
d3f5afc4 MS |
12689 | else |
12690 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12691 | fi |
12692 | ||
3a35eeb3 PB |
12693 | else |
12694 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12695 | fi |
12696 | ||
12697 | ||
12698 | ||
12699 | ||
6b91c541 AP |
12700 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12701 | if test -n "$with_build_time_tools"; then | |
12702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12703 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12704 | if test -x $with_build_time_tools/objcopy; then | |
12705 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12706 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12708 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12709 | else | |
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12711 | $as_echo "no" >&6; } | |
12712 | fi | |
12713 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12714 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12715 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12716 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12717 | fi | |
12718 | fi | |
12719 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12720 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12721 | set dummy objcopy; ac_word=$2 | |
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12723 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12724 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12725 | $as_echo_n "(cached) " >&6 |
12726 | else | |
12727 | case $OBJCOPY_FOR_TARGET in | |
12728 | [\\/]* | ?:[\\/]*) | |
12729 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12730 | ;; | |
12731 | *) | |
12732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12733 | for as_dir in $gcc_cv_tool_dirs | |
12734 | do | |
12735 | IFS=$as_save_IFS | |
12736 | test -z "$as_dir" && as_dir=. | |
12737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12739 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12741 | break 2 | |
12742 | fi | |
12743 | done | |
12744 | done | |
12745 | IFS=$as_save_IFS | |
12746 | ||
12747 | ;; | |
12748 | esac | |
12749 | fi | |
12750 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12751 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12753 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12754 | else | |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12756 | $as_echo "no" >&6; } | |
12757 | fi | |
12758 | ||
12759 | ||
12760 | fi | |
12761 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12762 | ||
12763 | ||
12764 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12765 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12766 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12767 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12768 | fi | |
12769 | ||
12770 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12771 | for ncn_progname in objcopy; do | |
12772 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12773 | set dummy ${ncn_progname}; ac_word=$2 | |
12774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12775 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12776 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12777 | $as_echo_n "(cached) " >&6 |
12778 | else | |
12779 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12780 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12781 | else | |
12782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12783 | for as_dir in $PATH | |
12784 | do | |
12785 | IFS=$as_save_IFS | |
12786 | test -z "$as_dir" && as_dir=. | |
12787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12788 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12789 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12790 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12791 | break 2 | |
12792 | fi | |
12793 | done | |
12794 | done | |
12795 | IFS=$as_save_IFS | |
12796 | ||
12797 | fi | |
12798 | fi | |
12799 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12800 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12802 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12803 | else | |
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12805 | $as_echo "no" >&6; } | |
12806 | fi | |
12807 | ||
12808 | ||
12809 | done | |
12810 | fi | |
12811 | ||
12812 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12813 | for ncn_progname in objcopy; do | |
12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12815 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12816 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12817 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12819 | $as_echo "yes" >&6; } | |
12820 | break | |
12821 | else | |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12823 | $as_echo "no" >&6; } | |
12824 | fi | |
12825 | done | |
12826 | fi | |
12827 | ||
12828 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12829 | for ncn_progname in objcopy; do | |
12830 | if test -n "$ncn_target_tool_prefix"; then | |
12831 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12832 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12834 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12835 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12836 | $as_echo_n "(cached) " >&6 |
12837 | else | |
12838 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12839 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12840 | else | |
12841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12842 | for as_dir in $PATH | |
12843 | do | |
12844 | IFS=$as_save_IFS | |
12845 | test -z "$as_dir" && as_dir=. | |
12846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12848 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12850 | break 2 | |
12851 | fi | |
12852 | done | |
12853 | done | |
12854 | IFS=$as_save_IFS | |
12855 | ||
12856 | fi | |
12857 | fi | |
12858 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12859 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12861 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12862 | else | |
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12864 | $as_echo "no" >&6; } | |
12865 | fi | |
12866 | ||
12867 | ||
12868 | fi | |
12869 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12870 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12871 | set dummy ${ncn_progname}; ac_word=$2 | |
12872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12873 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12874 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12875 | $as_echo_n "(cached) " >&6 |
12876 | else | |
12877 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12878 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12879 | else | |
12880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12881 | for as_dir in $PATH | |
12882 | do | |
12883 | IFS=$as_save_IFS | |
12884 | test -z "$as_dir" && as_dir=. | |
12885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12887 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12889 | break 2 | |
12890 | fi | |
12891 | done | |
12892 | done | |
12893 | IFS=$as_save_IFS | |
12894 | ||
12895 | fi | |
12896 | fi | |
12897 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12898 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12900 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12901 | else | |
12902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12903 | $as_echo "no" >&6; } | |
12904 | fi | |
12905 | ||
12906 | ||
12907 | fi | |
12908 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12909 | done | |
12910 | fi | |
12911 | ||
12912 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12913 | set dummy objcopy | |
12914 | if test $build = $target ; then | |
12915 | OBJCOPY_FOR_TARGET="$2" | |
12916 | else | |
12917 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12918 | fi | |
12919 | else | |
12920 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12921 | fi | |
12922 | ||
12923 | else | |
12924 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12925 | fi | |
12926 | ||
12927 | ||
12928 | ||
12929 | ||
2429c060 PB |
12930 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12931 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12933 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12934 | if test -x $with_build_time_tools/objdump; then |
12935 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12936 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12938 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12939 | else |
81ecdfbb RW |
12940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12941 | $as_echo "no" >&6; } | |
3a35eeb3 | 12942 | fi |
2429c060 PB |
12943 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12944 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12945 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12946 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12947 | fi |
12948 | fi | |
c6b750e1 | 12949 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12950 | # Extract the first word of "objdump", so it can be a program name with args. |
12951 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12953 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12954 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12955 | $as_echo_n "(cached) " >&6 |
2429c060 | 12956 | else |
c6b750e1 DJ |
12957 | case $OBJDUMP_FOR_TARGET in |
12958 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12959 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12960 | ;; | |
2429c060 | 12961 | *) |
c6b750e1 DJ |
12962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12963 | for as_dir in $gcc_cv_tool_dirs | |
12964 | do | |
12965 | IFS=$as_save_IFS | |
12966 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12967 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12969 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12971 | break 2 |
12972 | fi | |
12973 | done | |
81ecdfbb RW |
12974 | done |
12975 | IFS=$as_save_IFS | |
c6b750e1 | 12976 | |
2429c060 PB |
12977 | ;; |
12978 | esac | |
12979 | fi | |
c6b750e1 | 12980 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12981 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12983 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12984 | else |
81ecdfbb RW |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12986 | $as_echo "no" >&6; } | |
2429c060 PB |
12987 | fi |
12988 | ||
81ecdfbb | 12989 | |
2429c060 PB |
12990 | fi |
12991 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12992 | |
12993 | ||
12994 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12995 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12996 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12997 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12998 | fi | |
12999 | ||
13000 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
13001 | for ncn_progname in objdump; do | |
13002 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13003 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13005 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13006 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 13007 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13008 | else |
13009 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13010 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
13011 | else | |
13012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13013 | for as_dir in $PATH | |
13014 | do | |
13015 | IFS=$as_save_IFS | |
13016 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13017 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13019 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13021 | break 2 |
13022 | fi | |
13023 | done | |
81ecdfbb RW |
13024 | done |
13025 | IFS=$as_save_IFS | |
9a819804 AO |
13026 | |
13027 | fi | |
13028 | fi | |
13029 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
13030 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13032 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 13033 | else |
81ecdfbb RW |
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13035 | $as_echo "no" >&6; } | |
9a819804 AO |
13036 | fi |
13037 | ||
81ecdfbb | 13038 | |
9a819804 AO |
13039 | done |
13040 | fi | |
13041 | ||
13042 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13043 | for ncn_progname in objdump; do |
81ecdfbb RW |
13044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13045 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13046 | if test -x $with_build_time_tools/${ncn_progname}; then |
13047 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13049 | $as_echo "yes" >&6; } | |
2429c060 PB |
13050 | break |
13051 | else | |
81ecdfbb RW |
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13053 | $as_echo "no" >&6; } | |
2429c060 PB |
13054 | fi |
13055 | done | |
13056 | fi | |
13057 | ||
13058 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
13059 | for ncn_progname in objdump; do | |
13060 | if test -n "$ncn_target_tool_prefix"; then | |
13061 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13062 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13064 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13065 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 13066 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
13067 | else |
13068 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13069 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
13070 | else | |
c6b750e1 DJ |
13071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13072 | for as_dir in $PATH | |
13073 | do | |
13074 | IFS=$as_save_IFS | |
13075 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13076 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13078 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13080 | break 2 |
13081 | fi | |
13082 | done | |
81ecdfbb RW |
13083 | done |
13084 | IFS=$as_save_IFS | |
c6b750e1 | 13085 | |
5ae72758 DJ |
13086 | fi |
13087 | fi | |
c6b750e1 | 13088 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 13089 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13091 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 13092 | else |
81ecdfbb RW |
13093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13094 | $as_echo "no" >&6; } | |
5ae72758 DJ |
13095 | fi |
13096 | ||
81ecdfbb | 13097 | |
2429c060 PB |
13098 | fi |
13099 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
13100 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 13101 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13103 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13104 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 13105 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
13106 | else |
13107 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13108 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
13109 | else | |
c6b750e1 DJ |
13110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13111 | for as_dir in $PATH | |
13112 | do | |
13113 | IFS=$as_save_IFS | |
13114 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13115 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13117 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13119 | break 2 |
13120 | fi | |
13121 | done | |
81ecdfbb RW |
13122 | done |
13123 | IFS=$as_save_IFS | |
c6b750e1 | 13124 | |
5ae72758 DJ |
13125 | fi |
13126 | fi | |
c6b750e1 | 13127 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 13128 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13130 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 13131 | else |
81ecdfbb RW |
13132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13133 | $as_echo "no" >&6; } | |
5ae72758 | 13134 | fi |
c6b750e1 | 13135 | |
81ecdfbb | 13136 | |
2429c060 PB |
13137 | fi |
13138 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
13139 | done | |
13140 | fi | |
c6b750e1 | 13141 | |
5ae72758 DJ |
13142 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
13143 | set dummy objdump | |
13144 | if test $build = $target ; then | |
13145 | OBJDUMP_FOR_TARGET="$2" | |
13146 | else | |
13147 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13148 | fi | |
d3f5afc4 MS |
13149 | else |
13150 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
13151 | fi |
13152 | ||
3a35eeb3 PB |
13153 | else |
13154 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
13155 | fi |
13156 | ||
13157 | ||
13158 | ||
13159 | ||
13160 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
13161 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
13163 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13164 | if test -x $with_build_time_tools/ranlib; then |
13165 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
13166 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
13168 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 13169 | else |
81ecdfbb RW |
13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13171 | $as_echo "no" >&6; } | |
3a35eeb3 | 13172 | fi |
2429c060 PB |
13173 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13174 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
13175 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
13176 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
13177 | fi |
13178 | fi | |
c6b750e1 | 13179 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13180 | # Extract the first word of "ranlib", so it can be a program name with args. |
13181 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
13182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13183 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13184 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 13185 | $as_echo_n "(cached) " >&6 |
2429c060 | 13186 | else |
c6b750e1 DJ |
13187 | case $RANLIB_FOR_TARGET in |
13188 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13189 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
13190 | ;; | |
2429c060 | 13191 | *) |
c6b750e1 DJ |
13192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13193 | for as_dir in $gcc_cv_tool_dirs | |
13194 | do | |
13195 | IFS=$as_save_IFS | |
13196 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13197 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13198 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13199 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13201 | break 2 |
13202 | fi | |
13203 | done | |
81ecdfbb RW |
13204 | done |
13205 | IFS=$as_save_IFS | |
c6b750e1 | 13206 | |
2429c060 PB |
13207 | ;; |
13208 | esac | |
13209 | fi | |
c6b750e1 | 13210 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 13211 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13213 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 13214 | else |
81ecdfbb RW |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13216 | $as_echo "no" >&6; } | |
2429c060 PB |
13217 | fi |
13218 | ||
81ecdfbb | 13219 | |
2429c060 PB |
13220 | fi |
13221 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
13222 | |
13223 | ||
13224 | if test -n "$RANLIB_FOR_TARGET"; then | |
13225 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
13226 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13227 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13228 | fi | |
13229 | ||
13230 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13231 | for ncn_progname in ranlib; do | |
13232 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13233 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13235 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13236 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 13237 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13238 | else |
13239 | if test -n "$RANLIB_FOR_TARGET"; then | |
13240 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
13241 | else | |
13242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13243 | for as_dir in $PATH | |
13244 | do | |
13245 | IFS=$as_save_IFS | |
13246 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13247 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13248 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13249 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13250 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13251 | break 2 |
13252 | fi | |
13253 | done | |
81ecdfbb RW |
13254 | done |
13255 | IFS=$as_save_IFS | |
9a819804 AO |
13256 | |
13257 | fi | |
13258 | fi | |
13259 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13260 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13262 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 13263 | else |
81ecdfbb RW |
13264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13265 | $as_echo "no" >&6; } | |
9a819804 AO |
13266 | fi |
13267 | ||
81ecdfbb | 13268 | |
9a819804 AO |
13269 | done |
13270 | fi | |
13271 | ||
13272 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13273 | for ncn_progname in ranlib; do |
81ecdfbb RW |
13274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13275 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13276 | if test -x $with_build_time_tools/${ncn_progname}; then |
13277 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13279 | $as_echo "yes" >&6; } | |
2429c060 PB |
13280 | break |
13281 | else | |
81ecdfbb RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13283 | $as_echo "no" >&6; } | |
2429c060 PB |
13284 | fi |
13285 | done | |
13286 | fi | |
13287 | ||
13288 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13289 | for ncn_progname in ranlib; do | |
13290 | if test -n "$ncn_target_tool_prefix"; then | |
13291 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 13292 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13294 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13295 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 13296 | $as_echo_n "(cached) " >&6 |
859789af | 13297 | else |
55db4b87 PB |
13298 | if test -n "$RANLIB_FOR_TARGET"; then |
13299 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 13300 | else |
c6b750e1 DJ |
13301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13302 | for as_dir in $PATH | |
13303 | do | |
13304 | IFS=$as_save_IFS | |
13305 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13306 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13308 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13310 | break 2 |
13311 | fi | |
13312 | done | |
81ecdfbb RW |
13313 | done |
13314 | IFS=$as_save_IFS | |
c6b750e1 | 13315 | |
859789af AC |
13316 | fi |
13317 | fi | |
c6b750e1 | 13318 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 13319 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13321 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 13322 | else |
81ecdfbb RW |
13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13324 | $as_echo "no" >&6; } | |
859789af AC |
13325 | fi |
13326 | ||
81ecdfbb | 13327 | |
2429c060 PB |
13328 | fi |
13329 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
13330 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13331 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13333 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13334 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 13335 | $as_echo_n "(cached) " >&6 |
859789af | 13336 | else |
05cbd757 PB |
13337 | if test -n "$RANLIB_FOR_TARGET"; then |
13338 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 13339 | else |
c6b750e1 DJ |
13340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13341 | for as_dir in $PATH | |
13342 | do | |
13343 | IFS=$as_save_IFS | |
13344 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13345 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13347 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13349 | break 2 |
13350 | fi | |
13351 | done | |
81ecdfbb RW |
13352 | done |
13353 | IFS=$as_save_IFS | |
c6b750e1 | 13354 | |
859789af AC |
13355 | fi |
13356 | fi | |
c6b750e1 | 13357 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 13358 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
13359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13360 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 13361 | else |
81ecdfbb RW |
13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13363 | $as_echo "no" >&6; } | |
859789af | 13364 | fi |
c6b750e1 | 13365 | |
81ecdfbb | 13366 | |
2429c060 PB |
13367 | fi |
13368 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
13369 | done | |
13370 | fi | |
c6b750e1 | 13371 | |
2429c060 PB |
13372 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13373 | set dummy ranlib | |
13374 | if test $build = $target ; then | |
13375 | RANLIB_FOR_TARGET="$2" | |
13376 | else | |
13377 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 13378 | fi |
d3f5afc4 MS |
13379 | else |
13380 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 13381 | fi |
05cbd757 | 13382 | |
3a35eeb3 PB |
13383 | else |
13384 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
13385 | fi |
13386 | ||
2429c060 PB |
13387 | |
13388 | ||
13389 | ||
b121d7d4 DD |
13390 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13391 | if test -n "$with_build_time_tools"; then | |
13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13393 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13394 | if test -x $with_build_time_tools/readelf; then | |
13395 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13396 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13398 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13399 | else | |
13400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13401 | $as_echo "no" >&6; } | |
13402 | fi | |
13403 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13404 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13405 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13406 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13407 | fi | |
13408 | fi | |
13409 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13410 | # Extract the first word of "readelf", so it can be a program name with args. | |
13411 | set dummy readelf; ac_word=$2 | |
13412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13413 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13414 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13415 | $as_echo_n "(cached) " >&6 |
13416 | else | |
13417 | case $READELF_FOR_TARGET in | |
13418 | [\\/]* | ?:[\\/]*) | |
13419 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13420 | ;; | |
13421 | *) | |
13422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13423 | for as_dir in $gcc_cv_tool_dirs | |
13424 | do | |
13425 | IFS=$as_save_IFS | |
13426 | test -z "$as_dir" && as_dir=. | |
13427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13428 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13429 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13431 | break 2 | |
13432 | fi | |
13433 | done | |
13434 | done | |
13435 | IFS=$as_save_IFS | |
13436 | ||
13437 | ;; | |
13438 | esac | |
13439 | fi | |
13440 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13441 | if test -n "$READELF_FOR_TARGET"; then | |
13442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13443 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13444 | else | |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13446 | $as_echo "no" >&6; } | |
13447 | fi | |
13448 | ||
13449 | ||
13450 | fi | |
13451 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13452 | ||
13453 | ||
13454 | if test -n "$READELF_FOR_TARGET"; then | |
13455 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13456 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13457 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13458 | fi | |
13459 | ||
13460 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13461 | for ncn_progname in readelf; do | |
13462 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13463 | set dummy ${ncn_progname}; ac_word=$2 | |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13465 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13466 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13467 | $as_echo_n "(cached) " >&6 |
13468 | else | |
13469 | if test -n "$READELF_FOR_TARGET"; then | |
13470 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13471 | else | |
13472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13473 | for as_dir in $PATH | |
13474 | do | |
13475 | IFS=$as_save_IFS | |
13476 | test -z "$as_dir" && as_dir=. | |
13477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13479 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13481 | break 2 | |
13482 | fi | |
13483 | done | |
13484 | done | |
13485 | IFS=$as_save_IFS | |
13486 | ||
13487 | fi | |
13488 | fi | |
13489 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13490 | if test -n "$READELF_FOR_TARGET"; then | |
13491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13492 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13493 | else | |
13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13495 | $as_echo "no" >&6; } | |
13496 | fi | |
13497 | ||
13498 | ||
13499 | done | |
13500 | fi | |
13501 | ||
13502 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13503 | for ncn_progname in readelf; do | |
13504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13505 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13506 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13507 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13509 | $as_echo "yes" >&6; } | |
13510 | break | |
13511 | else | |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13513 | $as_echo "no" >&6; } | |
13514 | fi | |
13515 | done | |
13516 | fi | |
13517 | ||
13518 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13519 | for ncn_progname in readelf; do | |
13520 | if test -n "$ncn_target_tool_prefix"; then | |
13521 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13522 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13524 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13525 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13526 | $as_echo_n "(cached) " >&6 |
13527 | else | |
13528 | if test -n "$READELF_FOR_TARGET"; then | |
13529 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13530 | else | |
13531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13532 | for as_dir in $PATH | |
13533 | do | |
13534 | IFS=$as_save_IFS | |
13535 | test -z "$as_dir" && as_dir=. | |
13536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13538 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13540 | break 2 | |
13541 | fi | |
13542 | done | |
13543 | done | |
13544 | IFS=$as_save_IFS | |
13545 | ||
13546 | fi | |
13547 | fi | |
13548 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13549 | if test -n "$READELF_FOR_TARGET"; then | |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13551 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13552 | else | |
13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13554 | $as_echo "no" >&6; } | |
13555 | fi | |
13556 | ||
13557 | ||
13558 | fi | |
13559 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13560 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13561 | set dummy ${ncn_progname}; ac_word=$2 | |
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13563 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13564 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13565 | $as_echo_n "(cached) " >&6 |
13566 | else | |
13567 | if test -n "$READELF_FOR_TARGET"; then | |
13568 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13569 | else | |
13570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13571 | for as_dir in $PATH | |
13572 | do | |
13573 | IFS=$as_save_IFS | |
13574 | test -z "$as_dir" && as_dir=. | |
13575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13577 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13579 | break 2 | |
13580 | fi | |
13581 | done | |
13582 | done | |
13583 | IFS=$as_save_IFS | |
13584 | ||
13585 | fi | |
13586 | fi | |
13587 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13588 | if test -n "$READELF_FOR_TARGET"; then | |
13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13590 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13591 | else | |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13593 | $as_echo "no" >&6; } | |
13594 | fi | |
13595 | ||
13596 | ||
13597 | fi | |
13598 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13599 | done | |
13600 | fi | |
13601 | ||
13602 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13603 | set dummy readelf | |
13604 | if test $build = $target ; then | |
13605 | READELF_FOR_TARGET="$2" | |
13606 | else | |
13607 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13608 | fi | |
13609 | else | |
13610 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13611 | fi | |
13612 | ||
13613 | else | |
13614 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13615 | fi | |
13616 | ||
13617 | ||
13618 | ||
13619 | ||
2429c060 PB |
13620 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13621 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13623 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13624 | if test -x $with_build_time_tools/strip; then |
13625 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13626 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13628 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13629 | else |
81ecdfbb RW |
13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13631 | $as_echo "no" >&6; } | |
3a35eeb3 | 13632 | fi |
2429c060 PB |
13633 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13634 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13635 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13636 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13637 | fi |
13638 | fi | |
c6b750e1 | 13639 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13640 | # Extract the first word of "strip", so it can be a program name with args. |
13641 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13643 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13644 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13645 | $as_echo_n "(cached) " >&6 |
2429c060 | 13646 | else |
c6b750e1 DJ |
13647 | case $STRIP_FOR_TARGET in |
13648 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13649 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13650 | ;; | |
2429c060 | 13651 | *) |
c6b750e1 DJ |
13652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13653 | for as_dir in $gcc_cv_tool_dirs | |
13654 | do | |
13655 | IFS=$as_save_IFS | |
13656 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13657 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13658 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13659 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13661 | break 2 |
13662 | fi | |
13663 | done | |
81ecdfbb RW |
13664 | done |
13665 | IFS=$as_save_IFS | |
c6b750e1 | 13666 | |
2429c060 PB |
13667 | ;; |
13668 | esac | |
13669 | fi | |
c6b750e1 | 13670 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13671 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13673 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13674 | else |
81ecdfbb RW |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13676 | $as_echo "no" >&6; } | |
2429c060 PB |
13677 | fi |
13678 | ||
81ecdfbb | 13679 | |
2429c060 PB |
13680 | fi |
13681 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13682 | |
13683 | ||
13684 | if test -n "$STRIP_FOR_TARGET"; then | |
13685 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13686 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13687 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13688 | fi | |
13689 | ||
13690 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13691 | for ncn_progname in strip; do | |
13692 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13693 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13695 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13696 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13697 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13698 | else |
13699 | if test -n "$STRIP_FOR_TARGET"; then | |
13700 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13701 | else | |
13702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13703 | for as_dir in $PATH | |
13704 | do | |
13705 | IFS=$as_save_IFS | |
13706 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13707 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13708 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13709 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13711 | break 2 |
13712 | fi | |
13713 | done | |
81ecdfbb RW |
13714 | done |
13715 | IFS=$as_save_IFS | |
9a819804 AO |
13716 | |
13717 | fi | |
13718 | fi | |
13719 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13720 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13722 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13723 | else |
81ecdfbb RW |
13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13725 | $as_echo "no" >&6; } | |
9a819804 AO |
13726 | fi |
13727 | ||
81ecdfbb | 13728 | |
9a819804 AO |
13729 | done |
13730 | fi | |
13731 | ||
13732 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13733 | for ncn_progname in strip; do |
81ecdfbb RW |
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13735 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13736 | if test -x $with_build_time_tools/${ncn_progname}; then |
13737 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13739 | $as_echo "yes" >&6; } | |
2429c060 PB |
13740 | break |
13741 | else | |
81ecdfbb RW |
13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13743 | $as_echo "no" >&6; } | |
2429c060 PB |
13744 | fi |
13745 | done | |
13746 | fi | |
13747 | ||
13748 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13749 | for ncn_progname in strip; do | |
13750 | if test -n "$ncn_target_tool_prefix"; then | |
13751 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13752 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13754 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13755 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13756 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13757 | else |
13758 | if test -n "$STRIP_FOR_TARGET"; then | |
13759 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13760 | else |
13761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13762 | for as_dir in $PATH | |
13763 | do | |
13764 | IFS=$as_save_IFS | |
13765 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13766 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13768 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13770 | break 2 |
13771 | fi | |
13772 | done | |
81ecdfbb RW |
13773 | done |
13774 | IFS=$as_save_IFS | |
c6b750e1 | 13775 | |
7e0f7140 GK |
13776 | fi |
13777 | fi | |
c6b750e1 | 13778 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13779 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13781 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13782 | else |
81ecdfbb RW |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13784 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13785 | fi |
13786 | ||
81ecdfbb | 13787 | |
2429c060 PB |
13788 | fi |
13789 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13790 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13791 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13793 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13794 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13795 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13796 | else |
13797 | if test -n "$STRIP_FOR_TARGET"; then | |
13798 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13799 | else | |
c6b750e1 DJ |
13800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13801 | for as_dir in $PATH | |
13802 | do | |
13803 | IFS=$as_save_IFS | |
13804 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13805 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13807 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13809 | break 2 |
13810 | fi | |
13811 | done | |
81ecdfbb RW |
13812 | done |
13813 | IFS=$as_save_IFS | |
c6b750e1 | 13814 | |
7e0f7140 GK |
13815 | fi |
13816 | fi | |
c6b750e1 | 13817 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13818 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13820 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13821 | else |
81ecdfbb RW |
13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13823 | $as_echo "no" >&6; } | |
7e0f7140 | 13824 | fi |
c6b750e1 | 13825 | |
81ecdfbb | 13826 | |
2429c060 PB |
13827 | fi |
13828 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13829 | done | |
13830 | fi | |
c6b750e1 | 13831 | |
7e0f7140 GK |
13832 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13833 | set dummy strip | |
13834 | if test $build = $target ; then | |
13835 | STRIP_FOR_TARGET="$2" | |
13836 | else | |
13837 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13838 | fi | |
d3f5afc4 MS |
13839 | else |
13840 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13841 | fi |
13842 | ||
3a35eeb3 PB |
13843 | else |
13844 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13845 | fi |
13846 | ||
13847 | ||
13848 | ||
13849 | ||
13850 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13851 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13853 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13854 | if test -x $with_build_time_tools/windres; then |
13855 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13856 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13858 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13859 | else |
81ecdfbb RW |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13861 | $as_echo "no" >&6; } | |
3a35eeb3 | 13862 | fi |
2429c060 PB |
13863 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13864 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13865 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13866 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13867 | fi |
13868 | fi | |
c6b750e1 | 13869 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13870 | # Extract the first word of "windres", so it can be a program name with args. |
13871 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13873 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13874 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13875 | $as_echo_n "(cached) " >&6 |
2429c060 | 13876 | else |
c6b750e1 DJ |
13877 | case $WINDRES_FOR_TARGET in |
13878 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13879 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13880 | ;; | |
2429c060 | 13881 | *) |
c6b750e1 DJ |
13882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13883 | for as_dir in $gcc_cv_tool_dirs | |
13884 | do | |
13885 | IFS=$as_save_IFS | |
13886 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13887 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13888 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13889 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13891 | break 2 |
13892 | fi | |
13893 | done | |
81ecdfbb RW |
13894 | done |
13895 | IFS=$as_save_IFS | |
c6b750e1 | 13896 | |
2429c060 PB |
13897 | ;; |
13898 | esac | |
13899 | fi | |
c6b750e1 | 13900 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13901 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13903 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13904 | else |
81ecdfbb RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13906 | $as_echo "no" >&6; } | |
2429c060 PB |
13907 | fi |
13908 | ||
81ecdfbb | 13909 | |
2429c060 PB |
13910 | fi |
13911 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13912 | |
13913 | ||
13914 | if test -n "$WINDRES_FOR_TARGET"; then | |
13915 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13916 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13917 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13918 | fi | |
13919 | ||
13920 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13921 | for ncn_progname in windres; do | |
13922 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13923 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13925 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13926 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13927 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13928 | else |
13929 | if test -n "$WINDRES_FOR_TARGET"; then | |
13930 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13931 | else | |
13932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13933 | for as_dir in $PATH | |
13934 | do | |
13935 | IFS=$as_save_IFS | |
13936 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13937 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13939 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13941 | break 2 |
13942 | fi | |
13943 | done | |
81ecdfbb RW |
13944 | done |
13945 | IFS=$as_save_IFS | |
9a819804 AO |
13946 | |
13947 | fi | |
13948 | fi | |
13949 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13950 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13952 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13953 | else |
81ecdfbb RW |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13955 | $as_echo "no" >&6; } | |
9a819804 AO |
13956 | fi |
13957 | ||
81ecdfbb | 13958 | |
9a819804 AO |
13959 | done |
13960 | fi | |
13961 | ||
13962 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13963 | for ncn_progname in windres; do |
81ecdfbb RW |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13965 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13966 | if test -x $with_build_time_tools/${ncn_progname}; then |
13967 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13969 | $as_echo "yes" >&6; } | |
2429c060 PB |
13970 | break |
13971 | else | |
81ecdfbb RW |
13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13973 | $as_echo "no" >&6; } | |
2429c060 PB |
13974 | fi |
13975 | done | |
13976 | fi | |
13977 | ||
13978 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13979 | for ncn_progname in windres; do | |
13980 | if test -n "$ncn_target_tool_prefix"; then | |
13981 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13982 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13984 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13985 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13986 | $as_echo_n "(cached) " >&6 |
859789af | 13987 | else |
55db4b87 PB |
13988 | if test -n "$WINDRES_FOR_TARGET"; then |
13989 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13990 | else |
c6b750e1 DJ |
13991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13992 | for as_dir in $PATH | |
13993 | do | |
13994 | IFS=$as_save_IFS | |
13995 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13996 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13998 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14000 | break 2 |
14001 | fi | |
14002 | done | |
81ecdfbb RW |
14003 | done |
14004 | IFS=$as_save_IFS | |
c6b750e1 | 14005 | |
859789af AC |
14006 | fi |
14007 | fi | |
c6b750e1 | 14008 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 14009 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14011 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 14012 | else |
81ecdfbb RW |
14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14014 | $as_echo "no" >&6; } | |
859789af AC |
14015 | fi |
14016 | ||
81ecdfbb | 14017 | |
2429c060 PB |
14018 | fi |
14019 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
14020 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 14021 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14023 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14024 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 14025 | $as_echo_n "(cached) " >&6 |
859789af | 14026 | else |
05cbd757 PB |
14027 | if test -n "$WINDRES_FOR_TARGET"; then |
14028 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 14029 | else |
c6b750e1 DJ |
14030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14031 | for as_dir in $PATH | |
14032 | do | |
14033 | IFS=$as_save_IFS | |
14034 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14035 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14036 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14037 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14039 | break 2 |
14040 | fi | |
14041 | done | |
81ecdfbb RW |
14042 | done |
14043 | IFS=$as_save_IFS | |
c6b750e1 | 14044 | |
859789af AC |
14045 | fi |
14046 | fi | |
c6b750e1 | 14047 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 14048 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14050 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 14051 | else |
81ecdfbb RW |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14053 | $as_echo "no" >&6; } | |
859789af | 14054 | fi |
c6b750e1 | 14055 | |
81ecdfbb | 14056 | |
2429c060 PB |
14057 | fi |
14058 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
14059 | done | |
14060 | fi | |
c6b750e1 | 14061 | |
05cbd757 PB |
14062 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
14063 | set dummy windres | |
14064 | if test $build = $target ; then | |
14065 | WINDRES_FOR_TARGET="$2" | |
859789af | 14066 | else |
05cbd757 | 14067 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 14068 | fi |
d3f5afc4 MS |
14069 | else |
14070 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
14071 | fi |
14072 | ||
3a35eeb3 PB |
14073 | else |
14074 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
14075 | fi |
14076 | ||
852e5f18 | 14077 | |
0c24b341 NC |
14078 | |
14079 | ||
14080 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14081 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
14083 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
14084 | if test -x $with_build_time_tools/windmc; then |
14085 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
14086 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
14087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
14088 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14089 | else |
81ecdfbb RW |
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14091 | $as_echo "no" >&6; } | |
0c24b341 NC |
14092 | fi |
14093 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14094 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
14095 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
14096 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
14097 | fi | |
14098 | fi | |
14099 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14100 | # Extract the first word of "windmc", so it can be a program name with args. | |
14101 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14103 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14104 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 14105 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
14106 | else |
14107 | case $WINDMC_FOR_TARGET in | |
14108 | [\\/]* | ?:[\\/]*) | |
14109 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
14110 | ;; | |
14111 | *) | |
14112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14113 | for as_dir in $gcc_cv_tool_dirs | |
14114 | do | |
14115 | IFS=$as_save_IFS | |
14116 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14117 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 14119 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
14121 | break 2 |
14122 | fi | |
14123 | done | |
81ecdfbb RW |
14124 | done |
14125 | IFS=$as_save_IFS | |
0c24b341 NC |
14126 | |
14127 | ;; | |
14128 | esac | |
14129 | fi | |
14130 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 14131 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14133 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14134 | else |
81ecdfbb RW |
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14136 | $as_echo "no" >&6; } | |
0c24b341 NC |
14137 | fi |
14138 | ||
81ecdfbb | 14139 | |
0c24b341 NC |
14140 | fi |
14141 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14142 | ||
14143 | ||
14144 | if test -n "$WINDMC_FOR_TARGET"; then | |
14145 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
14146 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14147 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14148 | fi | |
14149 | ||
14150 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14151 | for ncn_progname in windmc; do | |
14152 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14153 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14155 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14156 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 14157 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
14158 | else |
14159 | if test -n "$WINDMC_FOR_TARGET"; then | |
14160 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14161 | else | |
14162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14163 | for as_dir in $PATH | |
14164 | do | |
14165 | IFS=$as_save_IFS | |
14166 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14167 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 14169 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
14171 | break 2 |
14172 | fi | |
14173 | done | |
81ecdfbb RW |
14174 | done |
14175 | IFS=$as_save_IFS | |
0c24b341 NC |
14176 | |
14177 | fi | |
14178 | fi | |
14179 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14180 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
14181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14182 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14183 | else |
81ecdfbb RW |
14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14185 | $as_echo "no" >&6; } | |
0c24b341 NC |
14186 | fi |
14187 | ||
81ecdfbb | 14188 | |
0c24b341 NC |
14189 | done |
14190 | fi | |
14191 | ||
14192 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14193 | for ncn_progname in windmc; do | |
81ecdfbb RW |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14195 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
14196 | if test -x $with_build_time_tools/${ncn_progname}; then |
14197 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14199 | $as_echo "yes" >&6; } | |
0c24b341 NC |
14200 | break |
14201 | else | |
81ecdfbb RW |
14202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14203 | $as_echo "no" >&6; } | |
0c24b341 NC |
14204 | fi |
14205 | done | |
14206 | fi | |
14207 | ||
14208 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14209 | for ncn_progname in windmc; do | |
14210 | if test -n "$ncn_target_tool_prefix"; then | |
14211 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14212 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14214 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14215 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 14216 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
14217 | else |
14218 | if test -n "$WINDMC_FOR_TARGET"; then | |
14219 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14220 | else | |
14221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14222 | for as_dir in $PATH | |
14223 | do | |
14224 | IFS=$as_save_IFS | |
14225 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14226 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 14228 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
14230 | break 2 |
14231 | fi | |
14232 | done | |
81ecdfbb RW |
14233 | done |
14234 | IFS=$as_save_IFS | |
0c24b341 NC |
14235 | |
14236 | fi | |
14237 | fi | |
14238 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14239 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14241 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14242 | else |
81ecdfbb RW |
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14244 | $as_echo "no" >&6; } | |
0c24b341 NC |
14245 | fi |
14246 | ||
81ecdfbb | 14247 | |
0c24b341 NC |
14248 | fi |
14249 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
14250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14251 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14253 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14254 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 14255 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
14256 | else |
14257 | if test -n "$WINDMC_FOR_TARGET"; then | |
14258 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14259 | else | |
14260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14261 | for as_dir in $PATH | |
14262 | do | |
14263 | IFS=$as_save_IFS | |
14264 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14265 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 14267 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
14269 | break 2 |
14270 | fi | |
14271 | done | |
81ecdfbb RW |
14272 | done |
14273 | IFS=$as_save_IFS | |
0c24b341 NC |
14274 | |
14275 | fi | |
14276 | fi | |
14277 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14278 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
14279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14280 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 14281 | else |
81ecdfbb RW |
14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14283 | $as_echo "no" >&6; } | |
0c24b341 NC |
14284 | fi |
14285 | ||
81ecdfbb | 14286 | |
0c24b341 NC |
14287 | fi |
14288 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
14289 | done | |
14290 | fi | |
14291 | ||
14292 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
14293 | set dummy windmc | |
14294 | if test $build = $target ; then | |
14295 | WINDMC_FOR_TARGET="$2" | |
14296 | else | |
14297 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14298 | fi | |
14299 | else | |
14300 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
14301 | fi | |
14302 | ||
14303 | else | |
14304 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
14305 | fi | |
14306 | ||
14307 | ||
be01d343 PB |
14308 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
14309 | ||
81ecdfbb RW |
14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
14311 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 14312 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14313 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14314 | # We already found the complete path | |
b8025f34 | 14315 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14317 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14318 | else |
14319 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14321 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14322 | fi |
be01d343 PB |
14323 | else |
14324 | ok=yes | |
14325 | case " ${configdirs} " in | |
14326 | *" binutils "*) ;; | |
14327 | *) ok=no ;; | |
14328 | esac | |
c6b750e1 | 14329 | |
be01d343 PB |
14330 | if test $ok = yes; then |
14331 | # An in-tree tool is available and we can use it | |
14332 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14334 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14335 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14336 | # We already found the complete path | |
b8025f34 | 14337 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
14338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14339 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14340 | elif test "x$target" = "x$host"; then |
14341 | # We can use an host tool | |
14342 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14344 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14345 | else |
14346 | # We need a cross tool | |
81ecdfbb RW |
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14348 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14349 | fi |
14350 | fi | |
4b900473 | 14351 | |
81ecdfbb RW |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
14353 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 14354 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14355 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14356 | # We already found the complete path | |
b8025f34 | 14357 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14359 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14360 | else |
14361 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14363 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14364 | fi |
be01d343 PB |
14365 | else |
14366 | ok=yes | |
14367 | case " ${configdirs} " in | |
14368 | *" gas "*) ;; | |
14369 | *) ok=no ;; | |
14370 | esac | |
c6b750e1 | 14371 | |
be01d343 PB |
14372 | if test $ok = yes; then |
14373 | # An in-tree tool is available and we can use it | |
14374 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
14375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14376 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14377 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14378 | # We already found the complete path | |
b8025f34 | 14379 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14381 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14382 | elif test "x$target" = "x$host"; then |
14383 | # We can use an host tool | |
14384 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14386 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14387 | else |
14388 | # We need a cross tool | |
81ecdfbb RW |
14389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14390 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14391 | fi |
14392 | fi | |
4b900473 | 14393 | |
81ecdfbb RW |
14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14395 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 14396 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14397 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14398 | # We already found the complete path | |
b8025f34 | 14399 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
14400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14401 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14402 | else |
14403 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14405 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14406 | fi |
be01d343 PB |
14407 | else |
14408 | ok=yes | |
14409 | case " ${configdirs} " in | |
14410 | *" gcc "*) ;; | |
14411 | *) ok=no ;; | |
14412 | esac | |
c6b750e1 | 14413 | |
be01d343 PB |
14414 | if test $ok = yes; then |
14415 | # An in-tree tool is available and we can use it | |
14416 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14418 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14419 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14420 | # We already found the complete path | |
b8025f34 | 14421 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14423 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14424 | elif test "x$target" = "x$host"; then |
14425 | # We can use an host tool | |
14426 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14428 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14429 | else |
14430 | # We need a cross tool | |
81ecdfbb RW |
14431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14432 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14433 | fi |
14434 | fi | |
4b900473 | 14435 | |
81ecdfbb RW |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14437 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 14438 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14439 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14440 | # We already found the complete path | |
b8025f34 | 14441 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14443 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14444 | else |
14445 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14447 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14448 | fi |
be01d343 PB |
14449 | else |
14450 | ok=yes | |
14451 | case " ${configdirs} " in | |
14452 | *" gcc "*) ;; | |
14453 | *) ok=no ;; | |
14454 | esac | |
14455 | case ,${enable_languages}, in | |
14456 | *,c++,*) ;; | |
14457 | *) ok=no ;; | |
14458 | esac | |
14459 | if test $ok = yes; then | |
14460 | # An in-tree tool is available and we can use it | |
95e43135 | 14461 | 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 |
14462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14463 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14464 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14465 | # We already found the complete path | |
b8025f34 | 14466 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14468 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14469 | elif test "x$target" = "x$host"; then |
14470 | # We can use an host tool | |
14471 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14473 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14474 | else |
14475 | # We need a cross tool | |
81ecdfbb RW |
14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14477 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14478 | fi |
14479 | fi | |
4b900473 | 14480 | |
81ecdfbb RW |
14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14482 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 14483 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14484 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14485 | # We already found the complete path | |
b8025f34 | 14486 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14488 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14489 | else |
14490 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14492 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14493 | fi |
be01d343 PB |
14494 | else |
14495 | ok=yes | |
14496 | case " ${configdirs} " in | |
14497 | *" gcc "*) ;; | |
14498 | *) ok=no ;; | |
14499 | esac | |
14500 | case ,${enable_languages}, in | |
14501 | *,c++,*) ;; | |
14502 | *) ok=no ;; | |
14503 | esac | |
14504 | if test $ok = yes; then | |
14505 | # An in-tree tool is available and we can use it | |
95e43135 | 14506 | 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 |
14507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14508 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14509 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14510 | # We already found the complete path | |
b8025f34 | 14511 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14513 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14514 | elif test "x$target" = "x$host"; then |
14515 | # We can use an host tool | |
14516 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14518 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14519 | else |
14520 | # We need a cross tool | |
81ecdfbb RW |
14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14522 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14523 | fi |
14524 | fi | |
4b900473 | 14525 | |
81ecdfbb RW |
14526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14527 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 14528 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14529 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14530 | # We already found the complete path | |
b8025f34 | 14531 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14533 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14534 | else |
14535 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14537 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14538 | fi |
be01d343 PB |
14539 | else |
14540 | ok=yes | |
14541 | case " ${configdirs} " in | |
14542 | *" binutils "*) ;; | |
14543 | *) ok=no ;; | |
14544 | esac | |
c6b750e1 | 14545 | |
be01d343 PB |
14546 | if test $ok = yes; then |
14547 | # An in-tree tool is available and we can use it | |
14548 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14550 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14551 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14552 | # We already found the complete path | |
b8025f34 | 14553 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14555 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14556 | elif test "x$target" = "x$host"; then |
14557 | # We can use an host tool | |
14558 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14560 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14561 | else |
14562 | # We need a cross tool | |
81ecdfbb RW |
14563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14564 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14565 | fi |
14566 | fi | |
4b900473 | 14567 | |
81ecdfbb RW |
14568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14569 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14570 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14571 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14572 | # We already found the complete path | |
b8025f34 | 14573 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14575 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14576 | else |
14577 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14579 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14580 | fi |
be01d343 PB |
14581 | else |
14582 | ok=yes | |
14583 | case " ${configdirs} " in | |
14584 | *" gcc "*) ;; | |
14585 | *) ok=no ;; | |
14586 | esac | |
c6b750e1 | 14587 | |
be01d343 PB |
14588 | if test $ok = yes; then |
14589 | # An in-tree tool is available and we can use it | |
14590 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14592 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14593 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14594 | # We already found the complete path | |
b8025f34 | 14595 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14597 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14598 | elif test "x$target" = "x$host"; then |
14599 | # We can use an host tool | |
14600 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14602 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14603 | else |
14604 | # We need a cross tool | |
81ecdfbb RW |
14605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14606 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14607 | fi |
14608 | fi | |
4b900473 | 14609 | |
81ecdfbb RW |
14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14611 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14612 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14613 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14614 | # We already found the complete path | |
b8025f34 | 14615 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14617 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14618 | else |
14619 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14621 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14622 | fi |
be01d343 PB |
14623 | else |
14624 | ok=yes | |
14625 | case " ${configdirs} " in | |
14626 | *" gcc "*) ;; | |
14627 | *) ok=no ;; | |
14628 | esac | |
14629 | case ,${enable_languages}, in | |
14630 | *,fortran,*) ;; | |
14631 | *) ok=no ;; | |
14632 | esac | |
14633 | if test $ok = yes; then | |
14634 | # An in-tree tool is available and we can use it | |
14635 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14637 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14638 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14639 | # We already found the complete path | |
b8025f34 | 14640 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14642 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14643 | elif test "x$target" = "x$host"; then |
14644 | # We can use an host tool | |
14645 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14647 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14648 | else |
14649 | # We need a cross tool | |
81ecdfbb RW |
14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14651 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14652 | fi |
14653 | fi | |
4b900473 | 14654 | |
e552509b ILT |
14655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14656 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14657 | if test "x${build}" != "x${host}" ; then | |
14658 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14659 | # We already found the complete path | |
14660 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14662 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14663 | else | |
14664 | # Canadian cross, just use what we found | |
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14666 | $as_echo "pre-installed" >&6; } | |
14667 | fi | |
14668 | else | |
14669 | ok=yes | |
14670 | case " ${configdirs} " in | |
14671 | *" gcc "*) ;; | |
14672 | *) ok=no ;; | |
14673 | esac | |
14674 | case ,${enable_languages}, in | |
14675 | *,go,*) ;; | |
14676 | *) ok=no ;; | |
14677 | esac | |
14678 | if test $ok = yes; then | |
14679 | # An in-tree tool is available and we can use it | |
14680 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14682 | $as_echo "just compiled" >&6; } | |
14683 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14684 | # We already found the complete path | |
14685 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14687 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14688 | elif test "x$target" = "x$host"; then | |
14689 | # We can use an host tool | |
14690 | GOC_FOR_TARGET='$(GOC)' | |
14691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14692 | $as_echo "host tool" >&6; } | |
14693 | else | |
14694 | # We need a cross tool | |
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14696 | $as_echo "pre-installed" >&6; } | |
14697 | fi | |
14698 | fi | |
14699 | ||
81ecdfbb RW |
14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14701 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14702 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14703 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14704 | # We already found the complete path | |
b8025f34 | 14705 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14707 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14708 | else |
14709 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14711 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14712 | fi |
be01d343 PB |
14713 | else |
14714 | ok=yes | |
14715 | case " ${configdirs} " in | |
14716 | *" ld "*) ;; | |
14717 | *) ok=no ;; | |
14718 | esac | |
c6b750e1 | 14719 | |
be01d343 PB |
14720 | if test $ok = yes; then |
14721 | # An in-tree tool is available and we can use it | |
14722 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14724 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14725 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14726 | # We already found the complete path | |
b8025f34 | 14727 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14729 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14730 | elif test "x$target" = "x$host"; then |
14731 | # We can use an host tool | |
14732 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14734 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14735 | else |
14736 | # We need a cross tool | |
81ecdfbb RW |
14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14738 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14739 | fi |
14740 | fi | |
4b900473 | 14741 | |
81ecdfbb RW |
14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14743 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14744 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14745 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14746 | # We already found the complete path | |
b8025f34 | 14747 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14749 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14750 | else |
14751 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14753 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14754 | fi |
be01d343 | 14755 | else |
2429c060 PB |
14756 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14757 | # We already found the complete path | |
b8025f34 | 14758 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14760 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14761 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14762 | # We can use an host tool |
14763 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14765 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14766 | else |
14767 | # We need a cross tool | |
81ecdfbb RW |
14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14769 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14770 | fi |
14771 | fi | |
4b900473 | 14772 | |
81ecdfbb RW |
14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14774 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14775 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14776 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14777 | # We already found the complete path | |
b8025f34 | 14778 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14780 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14781 | else |
14782 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14784 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14785 | fi |
be01d343 PB |
14786 | else |
14787 | ok=yes | |
14788 | case " ${configdirs} " in | |
14789 | *" binutils "*) ;; | |
14790 | *) ok=no ;; | |
14791 | esac | |
c6b750e1 | 14792 | |
be01d343 PB |
14793 | if test $ok = yes; then |
14794 | # An in-tree tool is available and we can use it | |
14795 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14797 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14798 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14799 | # We already found the complete path | |
b8025f34 | 14800 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14802 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14803 | elif test "x$target" = "x$host"; then |
14804 | # We can use an host tool | |
14805 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14807 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14808 | else |
14809 | # We need a cross tool | |
81ecdfbb RW |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14811 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14812 | fi |
14813 | fi | |
4b900473 | 14814 | |
6b91c541 AP |
14815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14816 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14817 | if test "x${build}" != "x${host}" ; then | |
14818 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14819 | # We already found the complete path | |
14820 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14822 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14823 | else | |
14824 | # Canadian cross, just use what we found | |
14825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14826 | $as_echo "pre-installed" >&6; } | |
14827 | fi | |
14828 | else | |
14829 | ok=yes | |
14830 | case " ${configdirs} " in | |
14831 | *" binutils "*) ;; | |
14832 | *) ok=no ;; | |
14833 | esac | |
14834 | ||
14835 | if test $ok = yes; then | |
14836 | # An in-tree tool is available and we can use it | |
14837 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14839 | $as_echo "just compiled" >&6; } | |
14840 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14841 | # We already found the complete path | |
14842 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14844 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14845 | elif test "x$target" = "x$host"; then | |
14846 | # We can use an host tool | |
1b6c0831 | 14847 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14849 | $as_echo "host tool" >&6; } | |
14850 | else | |
14851 | # We need a cross tool | |
14852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14853 | $as_echo "pre-installed" >&6; } | |
14854 | fi | |
14855 | fi | |
14856 | ||
81ecdfbb RW |
14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14858 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14859 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14860 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14861 | # We already found the complete path | |
b8025f34 | 14862 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14864 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14865 | else |
14866 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14868 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14869 | fi |
be01d343 PB |
14870 | else |
14871 | ok=yes | |
14872 | case " ${configdirs} " in | |
14873 | *" binutils "*) ;; | |
14874 | *) ok=no ;; | |
14875 | esac | |
c6b750e1 | 14876 | |
be01d343 PB |
14877 | if test $ok = yes; then |
14878 | # An in-tree tool is available and we can use it | |
14879 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14881 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14882 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14883 | # We already found the complete path | |
b8025f34 | 14884 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14886 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14887 | elif test "x$target" = "x$host"; then |
14888 | # We can use an host tool | |
14889 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14891 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14892 | else |
14893 | # We need a cross tool | |
81ecdfbb RW |
14894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14895 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14896 | fi |
14897 | fi | |
4b900473 | 14898 | |
81ecdfbb RW |
14899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14900 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14901 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14902 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14903 | # We already found the complete path | |
b8025f34 | 14904 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14906 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14907 | else |
14908 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14910 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14911 | fi |
be01d343 PB |
14912 | else |
14913 | ok=yes | |
14914 | case " ${configdirs} " in | |
14915 | *" binutils "*) ;; | |
14916 | *) ok=no ;; | |
14917 | esac | |
c6b750e1 | 14918 | |
be01d343 PB |
14919 | if test $ok = yes; then |
14920 | # An in-tree tool is available and we can use it | |
14921 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14923 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14924 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14925 | # We already found the complete path | |
b8025f34 | 14926 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14928 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14929 | elif test "x$target" = "x$host"; then |
14930 | # We can use an host tool | |
14931 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14933 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14934 | else |
14935 | # We need a cross tool | |
81ecdfbb RW |
14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14937 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14938 | fi |
14939 | fi | |
4b900473 | 14940 | |
b121d7d4 DD |
14941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14942 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14943 | if test "x${build}" != "x${host}" ; then | |
14944 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14945 | # We already found the complete path | |
14946 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14948 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14949 | else | |
14950 | # Canadian cross, just use what we found | |
14951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14952 | $as_echo "pre-installed" >&6; } | |
14953 | fi | |
14954 | else | |
14955 | ok=yes | |
14956 | case " ${configdirs} " in | |
14957 | *" binutils "*) ;; | |
14958 | *) ok=no ;; | |
14959 | esac | |
14960 | ||
14961 | if test $ok = yes; then | |
14962 | # An in-tree tool is available and we can use it | |
14963 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14965 | $as_echo "just compiled" >&6; } | |
14966 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14967 | # We already found the complete path | |
14968 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14970 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14971 | elif test "x$target" = "x$host"; then | |
14972 | # We can use an host tool | |
14973 | READELF_FOR_TARGET='$(READELF)' | |
14974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14975 | $as_echo "host tool" >&6; } | |
14976 | else | |
14977 | # We need a cross tool | |
14978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14979 | $as_echo "pre-installed" >&6; } | |
14980 | fi | |
14981 | fi | |
14982 | ||
81ecdfbb RW |
14983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14984 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14985 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14986 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14987 | # We already found the complete path | |
b8025f34 | 14988 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14990 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14991 | else |
14992 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14994 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14995 | fi |
be01d343 PB |
14996 | else |
14997 | ok=yes | |
14998 | case " ${configdirs} " in | |
14999 | *" binutils "*) ;; | |
15000 | *) ok=no ;; | |
15001 | esac | |
c6b750e1 | 15002 | |
be01d343 PB |
15003 | if test $ok = yes; then |
15004 | # An in-tree tool is available and we can use it | |
9b980aa1 | 15005 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
15006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15007 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
15008 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15009 | # We already found the complete path | |
b8025f34 | 15010 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
15011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15012 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
15013 | elif test "x$target" = "x$host"; then |
15014 | # We can use an host tool | |
15015 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
15016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15017 | $as_echo "host tool" >&6; } | |
be01d343 PB |
15018 | else |
15019 | # We need a cross tool | |
81ecdfbb RW |
15020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15021 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
15022 | fi |
15023 | fi | |
4b900473 | 15024 | |
81ecdfbb RW |
15025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
15026 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 15027 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
15028 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15029 | # We already found the complete path | |
b8025f34 | 15030 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15032 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
15033 | else |
15034 | # Canadian cross, just use what we found | |
81ecdfbb RW |
15035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15036 | $as_echo "pre-installed" >&6; } | |
2429c060 | 15037 | fi |
be01d343 PB |
15038 | else |
15039 | ok=yes | |
15040 | case " ${configdirs} " in | |
15041 | *" binutils "*) ;; | |
15042 | *) ok=no ;; | |
15043 | esac | |
c6b750e1 | 15044 | |
be01d343 PB |
15045 | if test $ok = yes; then |
15046 | # An in-tree tool is available and we can use it | |
15047 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
15048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15049 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
15050 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15051 | # We already found the complete path | |
b8025f34 | 15052 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
15053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15054 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
15055 | elif test "x$target" = "x$host"; then |
15056 | # We can use an host tool | |
15057 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
15058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15059 | $as_echo "host tool" >&6; } | |
be01d343 PB |
15060 | else |
15061 | # We need a cross tool | |
81ecdfbb RW |
15062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15063 | $as_echo "pre-installed" >&6; } | |
be01d343 | 15064 | fi |
a0da8069 | 15065 | fi |
54752a6b | 15066 | |
81ecdfbb RW |
15067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
15068 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
15069 | if test "x${build}" != "x${host}" ; then |
15070 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
15071 | # We already found the complete path | |
15072 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15074 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
15075 | else |
15076 | # Canadian cross, just use what we found | |
81ecdfbb RW |
15077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15078 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
15079 | fi |
15080 | else | |
15081 | ok=yes | |
15082 | case " ${configdirs} " in | |
15083 | *" binutils "*) ;; | |
15084 | *) ok=no ;; | |
15085 | esac | |
15086 | ||
15087 | if test $ok = yes; then | |
15088 | # An in-tree tool is available and we can use it | |
15089 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
15090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15091 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
15092 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
15093 | # We already found the complete path | |
15094 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15096 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
15097 | elif test "x$target" = "x$host"; then |
15098 | # We can use an host tool | |
15099 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
15100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15101 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
15102 | else |
15103 | # We need a cross tool | |
81ecdfbb RW |
15104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15105 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
15106 | fi |
15107 | fi | |
15108 | ||
54752a6b NN |
15109 | |
15110 | ||
be01d343 | 15111 | |
4b900473 | 15112 | |
a0da8069 NN |
15113 | # Certain tools may need extra flags. |
15114 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
15115 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
15116 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
15117 | ||
be01d343 PB |
15118 | # When building target libraries, except in a Canadian cross, we use |
15119 | # the same toolchain as the compiler we just built. | |
15120 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
15121 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
15122 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
15123 | if test $host = $build; then | |
15124 | case " $configdirs " in | |
15125 | *" gcc "*) | |
15126 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
15127 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
15128 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
15129 | ;; | |
15130 | esac | |
15131 | fi | |
15132 | ||
15133 | ||
15134 | ||
15135 | ||
15136 | ||
81ecdfbb RW |
15137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
15138 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
15139 | # Check whether --enable-maintainer-mode was given. | |
15140 | if test "${enable_maintainer_mode+set}" = set; then : | |
15141 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
15142 | else |
15143 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
15144 | fi |
15145 | ||
15146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
15147 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
15148 | |
15149 | ||
15150 | if test "$USE_MAINTAINER_MODE" = yes; then | |
15151 | MAINTAINER_MODE_TRUE= | |
15152 | MAINTAINER_MODE_FALSE='#' | |
15153 | else | |
15154 | MAINTAINER_MODE_TRUE='#' | |
15155 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 15156 | fi |
3d5e36ae AO |
15157 | MAINT=$MAINTAINER_MODE_TRUE |
15158 | ||
1d39f329 NN |
15159 | # --------------------- |
15160 | # GCC bootstrap support | |
15161 | # --------------------- | |
15162 | ||
15163 | # Stage specific cflags for build. | |
15164 | stage1_cflags="-g" | |
15165 | case $build in | |
15166 | vax-*-*) | |
15167 | case ${GCC} in | |
15168 | yes) stage1_cflags="-g -Wa,-J" ;; | |
15169 | *) stage1_cflags="-g -J" ;; | |
15170 | esac ;; | |
1d39f329 NN |
15171 | esac |
15172 | ||
1d89b610 | 15173 | |
1d39f329 | 15174 | |
8a0d8a5c | 15175 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
15176 | # Check whether --enable-stage1-checking was given. |
15177 | if test "${enable_stage1_checking+set}" = set; then : | |
15178 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 15179 | else |
5566c1fa | 15180 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
15181 | # For --disable-checking or implicit --enable-checking=release, avoid |
15182 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
15183 | # bootstraps. See PR62077. | |
ce6c656d L |
15184 | case $BUILD_CONFIG in |
15185 | *lto*) | |
05a13254 NC |
15186 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
15187 | *) | |
15188 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 15189 | esac |
05a13254 NC |
15190 | if test "x$enable_checking" = x && \ |
15191 | test -d ${srcdir}/gcc && \ | |
15192 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
15193 | stage1_checking=--enable-checking=yes,types,extra | |
15194 | fi | |
8a0d8a5c | 15195 | else |
5566c1fa | 15196 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 15197 | fi |
81ecdfbb | 15198 | fi |
8a0d8a5c PB |
15199 | |
15200 | ||
c6b750e1 | 15201 | |
81ecdfbb RW |
15202 | # Enable -Werror in bootstrap stage2 and later. |
15203 | # Check whether --enable-werror was given. | |
15204 | if test "${enable_werror+set}" = set; then : | |
15205 | enableval=$enable_werror; | |
1a6f2dc7 NN |
15206 | case ${enable_werror} in |
15207 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
15208 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
15209 | esac |
15210 | ||
82033c9b | 15211 | else |
82033c9b | 15212 | |
bf41f30d NC |
15213 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
15214 | case $BUILD_CONFIG in | |
15215 | bootstrap-debug) | |
15216 | stage2_werror_flag="--enable-werror-always" ;; | |
15217 | "") | |
15218 | stage2_werror_flag="--enable-werror-always" ;; | |
15219 | esac | |
15220 | fi | |
82033c9b | 15221 | |
bf41f30d | 15222 | fi |
82033c9b | 15223 | |
1b6c0831 | 15224 | |
1b6c0831 | 15225 | |
1b6c0831 | 15226 | |
e8a5fa9c RW |
15227 | # Specify what files to not compare during bootstrap. |
15228 | ||
15229 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
15230 | case "$target" in | |
15231 | hppa*64*-*-hpux*) ;; | |
bf41f30d | 15232 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
1488e230 | 15233 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
15234 | esac |
15235 | ||
15236 | ||
81ecdfbb RW |
15237 | ac_config_files="$ac_config_files Makefile" |
15238 | ||
c6b750e1 | 15239 | cat >confcache <<\_ACEOF |
a0da8069 NN |
15240 | # This file is a shell script that caches the results of configure |
15241 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
15242 | # scripts and configure runs, see configure's option --config-cache. |
15243 | # It is not useful on other systems. If it contains results you don't | |
15244 | # want to keep, you may remove or edit it. | |
a0da8069 | 15245 | # |
c6b750e1 DJ |
15246 | # config.status only pays attention to the cache file if you give it |
15247 | # the --recheck option to rerun configure. | |
a0da8069 | 15248 | # |
c6b750e1 DJ |
15249 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15250 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15251 | # following values. | |
15252 | ||
15253 | _ACEOF | |
15254 | ||
a0da8069 NN |
15255 | # The following way of writing the cache mishandles newlines in values, |
15256 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 15257 | # So, we kill variables containing newlines. |
a0da8069 NN |
15258 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15259 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
15260 | ( |
15261 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15262 | eval ac_val=\$$ac_var | |
15263 | case $ac_val in #( | |
15264 | *${as_nl}*) | |
15265 | case $ac_var in #( | |
15266 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15267 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15268 | esac | |
15269 | case $ac_var in #( | |
15270 | _ | IFS | as_nl) ;; #( | |
15271 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15272 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15273 | esac ;; | |
15274 | esac | |
15275 | done | |
15276 | ||
c6b750e1 | 15277 | (set) 2>&1 | |
81ecdfbb RW |
15278 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15279 | *${as_nl}ac_space=\ *) | |
15280 | # `set' does not quote correctly, so add quotes: double-quote | |
15281 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
15282 | sed -n \ |
15283 | "s/'/'\\\\''/g; | |
15284 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 15285 | ;; #( |
c6b750e1 DJ |
15286 | *) |
15287 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 15288 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 15289 | ;; |
81ecdfbb RW |
15290 | esac | |
15291 | sort | |
15292 | ) | | |
c6b750e1 | 15293 | sed ' |
81ecdfbb | 15294 | /^ac_cv_env_/b end |
c6b750e1 | 15295 | t clear |
81ecdfbb | 15296 | :clear |
c6b750e1 DJ |
15297 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15298 | t end | |
81ecdfbb RW |
15299 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15300 | :end' >>confcache | |
15301 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15302 | if test -w "$cache_file"; then | |
d0ac1c44 | 15303 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
15304 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15305 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
15306 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15307 | cat confcache >"$cache_file" | |
15308 | else | |
15309 | case $cache_file in #( | |
15310 | */* | ?:*) | |
15311 | mv -f confcache "$cache_file"$$ && | |
15312 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15313 | *) | |
15314 | mv -f confcache "$cache_file" ;; | |
15315 | esac | |
15316 | fi | |
15317 | fi | |
a0da8069 | 15318 | else |
81ecdfbb RW |
15319 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15320 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 15321 | fi |
852e5f18 | 15322 | fi |
a0da8069 | 15323 | rm -f confcache |
852e5f18 | 15324 | |
a0da8069 NN |
15325 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15326 | # Let make expand exec_prefix. | |
15327 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 15328 | |
a0da8069 NN |
15329 | # Transform confdefs.h into DEFS. |
15330 | # Protect against shell expansion while executing Makefile rules. | |
15331 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
15332 | # |
15333 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 15334 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 15335 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
15336 | ac_script=' |
15337 | :mline | |
15338 | /\\$/{ | |
15339 | N | |
15340 | s,\\\n,, | |
15341 | b mline | |
15342 | } | |
c6b750e1 | 15343 | t clear |
81ecdfbb RW |
15344 | :clear |
15345 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 15346 | t quote |
81ecdfbb | 15347 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 15348 | t quote |
81ecdfbb RW |
15349 | b any |
15350 | :quote | |
15351 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15352 | s/\[/\\&/g | |
15353 | s/\]/\\&/g | |
15354 | s/\$/$$/g | |
15355 | H | |
15356 | :any | |
15357 | ${ | |
15358 | g | |
15359 | s/^\n// | |
15360 | s/\n/ /g | |
15361 | p | |
15362 | } | |
15363 | ' | |
15364 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
15365 | |
15366 | ||
15367 | ac_libobjs= | |
15368 | ac_ltlibobjs= | |
d0ac1c44 | 15369 | U= |
c6b750e1 DJ |
15370 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15371 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
15372 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15373 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15374 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15375 | # will be set to the directory where LIBOBJS objects are built. | |
15376 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15377 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
15378 | done |
15379 | LIBOBJS=$ac_libobjs | |
852e5f18 | 15380 | |
c6b750e1 | 15381 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 15382 | |
cac3d6c4 | 15383 | |
c6b750e1 | 15384 | |
d0ac1c44 | 15385 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 15386 | ac_write_fail=0 |
c6b750e1 DJ |
15387 | ac_clean_files_save=$ac_clean_files |
15388 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
15389 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15390 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15391 | as_write_fail=0 | |
15392 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
15393 | #! $SHELL |
15394 | # Generated by $as_me. | |
a0da8069 | 15395 | # Run this file to recreate the current configuration. |
a0da8069 | 15396 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 15397 | # configure, is in config.log if it exists. |
376a0e54 | 15398 | |
c6b750e1 DJ |
15399 | debug=false |
15400 | ac_cs_recheck=false | |
15401 | ac_cs_silent=false | |
c6b750e1 | 15402 | |
81ecdfbb RW |
15403 | SHELL=\${CONFIG_SHELL-$SHELL} |
15404 | export SHELL | |
15405 | _ASEOF | |
15406 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15407 | ## -------------------- ## | |
15408 | ## M4sh Initialization. ## | |
15409 | ## -------------------- ## | |
15410 | ||
15411 | # Be more Bourne compatible | |
15412 | DUALCASE=1; export DUALCASE # for MKS sh | |
15413 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
15414 | emulate sh |
15415 | NULLCMD=: | |
81ecdfbb | 15416 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
15417 | # is contrary to our usage. Disable this feature. |
15418 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
15419 | setopt NO_GLOB_SUBST |
15420 | else | |
15421 | case `(set -o) 2>/dev/null` in #( | |
15422 | *posix*) : | |
15423 | set -o posix ;; #( | |
15424 | *) : | |
15425 | ;; | |
15426 | esac | |
c6b750e1 | 15427 | fi |
c6b750e1 | 15428 | |
81ecdfbb RW |
15429 | |
15430 | as_nl=' | |
15431 | ' | |
15432 | export as_nl | |
15433 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15434 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15435 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15436 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15437 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15438 | # but without wasting forks for bash or zsh. | |
15439 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15440 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15441 | as_echo='print -r --' | |
15442 | as_echo_n='print -rn --' | |
15443 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15444 | as_echo='printf %s\n' | |
15445 | as_echo_n='printf %s' | |
15446 | else | |
15447 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15448 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15449 | as_echo_n='/usr/ucb/echo -n' | |
15450 | else | |
15451 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15452 | as_echo_n_body='eval | |
15453 | arg=$1; | |
15454 | case $arg in #( | |
15455 | *"$as_nl"*) | |
15456 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15457 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15458 | esac; | |
15459 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15460 | ' | |
15461 | export as_echo_n_body | |
15462 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15463 | fi | |
15464 | export as_echo_body | |
15465 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
15466 | fi |
15467 | ||
81ecdfbb RW |
15468 | # The user is always right. |
15469 | if test "${PATH_SEPARATOR+set}" != set; then | |
15470 | PATH_SEPARATOR=: | |
15471 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15472 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15473 | PATH_SEPARATOR=';' | |
15474 | } | |
15475 | fi | |
15476 | ||
15477 | ||
15478 | # IFS | |
15479 | # We need space, tab and new line, in precisely that order. Quoting is | |
15480 | # there to prevent editors from complaining about space-tab. | |
15481 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15482 | # splitting by setting IFS to empty value.) | |
15483 | IFS=" "" $as_nl" | |
15484 | ||
15485 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 15486 | as_myself= |
81ecdfbb RW |
15487 | case $0 in #(( |
15488 | *[\\/]* ) as_myself=$0 ;; | |
15489 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15490 | for as_dir in $PATH | |
15491 | do | |
15492 | IFS=$as_save_IFS | |
15493 | test -z "$as_dir" && as_dir=. | |
15494 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15495 | done | |
15496 | IFS=$as_save_IFS | |
15497 | ||
15498 | ;; | |
15499 | esac | |
15500 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15501 | # in which case we are not to be found in the path. | |
15502 | if test "x$as_myself" = x; then | |
15503 | as_myself=$0 | |
15504 | fi | |
15505 | if test ! -f "$as_myself"; then | |
15506 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15507 | exit 1 | |
15508 | fi | |
c6b750e1 | 15509 | |
81ecdfbb RW |
15510 | # Unset variables that we do not need and which cause bugs (e.g. in |
15511 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15512 | # suppresses any "Segmentation fault" message there. '((' could | |
15513 | # trigger a bug in pdksh 5.2.14. | |
15514 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15515 | do eval test x\${$as_var+set} = xset \ | |
15516 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15517 | done | |
c6b750e1 DJ |
15518 | PS1='$ ' |
15519 | PS2='> ' | |
15520 | PS4='+ ' | |
15521 | ||
15522 | # NLS nuisances. | |
81ecdfbb RW |
15523 | LC_ALL=C |
15524 | export LC_ALL | |
15525 | LANGUAGE=C | |
15526 | export LANGUAGE | |
15527 | ||
15528 | # CDPATH. | |
15529 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15530 | ||
15531 | ||
d0ac1c44 SM |
15532 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15533 | # ---------------------------------------- | |
81ecdfbb RW |
15534 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15535 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 15536 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
15537 | as_fn_error () |
15538 | { | |
d0ac1c44 SM |
15539 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15540 | if test "$4"; then | |
15541 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15542 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 15543 | fi |
d0ac1c44 | 15544 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
15545 | as_fn_exit $as_status |
15546 | } # as_fn_error | |
15547 | ||
15548 | ||
15549 | # as_fn_set_status STATUS | |
15550 | # ----------------------- | |
15551 | # Set $? to STATUS, without forking. | |
15552 | as_fn_set_status () | |
15553 | { | |
15554 | return $1 | |
15555 | } # as_fn_set_status | |
15556 | ||
15557 | # as_fn_exit STATUS | |
15558 | # ----------------- | |
15559 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15560 | as_fn_exit () | |
15561 | { | |
15562 | set +e | |
15563 | as_fn_set_status $1 | |
15564 | exit $1 | |
15565 | } # as_fn_exit | |
15566 | ||
15567 | # as_fn_unset VAR | |
15568 | # --------------- | |
15569 | # Portably unset VAR. | |
15570 | as_fn_unset () | |
15571 | { | |
15572 | { eval $1=; unset $1;} | |
15573 | } | |
15574 | as_unset=as_fn_unset | |
15575 | # as_fn_append VAR VALUE | |
15576 | # ---------------------- | |
15577 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15578 | # advantage of any shell optimizations that allow amortized linear growth over | |
15579 | # repeated appends, instead of the typical quadratic growth present in naive | |
15580 | # implementations. | |
15581 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15582 | eval 'as_fn_append () | |
15583 | { | |
15584 | eval $1+=\$2 | |
15585 | }' | |
15586 | else | |
15587 | as_fn_append () | |
15588 | { | |
15589 | eval $1=\$$1\$2 | |
15590 | } | |
15591 | fi # as_fn_append | |
15592 | ||
15593 | # as_fn_arith ARG... | |
15594 | # ------------------ | |
15595 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15596 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15597 | # must be portable across $(()) and expr. | |
15598 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15599 | eval 'as_fn_arith () | |
15600 | { | |
15601 | as_val=$(( $* )) | |
15602 | }' | |
15603 | else | |
15604 | as_fn_arith () | |
15605 | { | |
15606 | as_val=`expr "$@" || test $? -eq 1` | |
15607 | } | |
15608 | fi # as_fn_arith | |
15609 | ||
c6b750e1 | 15610 | |
81ecdfbb RW |
15611 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15612 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15613 | as_expr=expr |
15614 | else | |
15615 | as_expr=false | |
15616 | fi | |
15617 | ||
81ecdfbb | 15618 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15619 | as_basename=basename |
15620 | else | |
15621 | as_basename=false | |
15622 | fi | |
15623 | ||
81ecdfbb RW |
15624 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15625 | as_dirname=dirname | |
15626 | else | |
15627 | as_dirname=false | |
15628 | fi | |
c6b750e1 | 15629 | |
81ecdfbb | 15630 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15631 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15632 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15633 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15634 | $as_echo X/"$0" | | |
15635 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15636 | s//\1/ | |
15637 | q | |
15638 | } | |
15639 | /^X\/\(\/\/\)$/{ | |
15640 | s//\1/ | |
15641 | q | |
15642 | } | |
15643 | /^X\/\(\/\).*/{ | |
15644 | s//\1/ | |
15645 | q | |
15646 | } | |
15647 | s/.*/./; q'` | |
c6b750e1 | 15648 | |
c6b750e1 DJ |
15649 | # Avoid depending upon Character Ranges. |
15650 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15651 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15652 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15653 | as_cr_digits='0123456789' | |
15654 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15655 | ||
81ecdfbb RW |
15656 | ECHO_C= ECHO_N= ECHO_T= |
15657 | case `echo -n x` in #((((( | |
15658 | -n*) | |
15659 | case `echo 'xy\c'` in | |
15660 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15661 | xy) ECHO_C='\c';; | |
15662 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15663 | ECHO_T=' ';; | |
15664 | esac;; | |
15665 | *) | |
15666 | ECHO_N='-n';; | |
c6b750e1 DJ |
15667 | esac |
15668 | ||
81ecdfbb RW |
15669 | rm -f conf$$ conf$$.exe conf$$.file |
15670 | if test -d conf$$.dir; then | |
15671 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15672 | else |
81ecdfbb RW |
15673 | rm -f conf$$.dir |
15674 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15675 | fi |
81ecdfbb RW |
15676 | if (echo >conf$$.file) 2>/dev/null; then |
15677 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15678 | as_ln_s='ln -s' |
81ecdfbb RW |
15679 | # ... but there are two gotchas: |
15680 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15681 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15682 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15683 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15684 | as_ln_s='cp -pR' |
81ecdfbb RW |
15685 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15686 | as_ln_s=ln | |
15687 | else | |
d0ac1c44 | 15688 | as_ln_s='cp -pR' |
c6b750e1 | 15689 | fi |
c6b750e1 | 15690 | else |
d0ac1c44 | 15691 | as_ln_s='cp -pR' |
c6b750e1 | 15692 | fi |
81ecdfbb RW |
15693 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15694 | rmdir conf$$.dir 2>/dev/null | |
15695 | ||
15696 | ||
15697 | # as_fn_mkdir_p | |
15698 | # ------------- | |
15699 | # Create "$as_dir" as a directory, including parents if necessary. | |
15700 | as_fn_mkdir_p () | |
15701 | { | |
15702 | ||
15703 | case $as_dir in #( | |
15704 | -*) as_dir=./$as_dir;; | |
15705 | esac | |
15706 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15707 | as_dirs= | |
15708 | while :; do | |
15709 | case $as_dir in #( | |
15710 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15711 | *) as_qdir=$as_dir;; | |
15712 | esac | |
15713 | as_dirs="'$as_qdir' $as_dirs" | |
15714 | as_dir=`$as_dirname -- "$as_dir" || | |
15715 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15716 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15717 | X"$as_dir" : 'X\(//\)$' \| \ | |
15718 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15719 | $as_echo X"$as_dir" | | |
15720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15721 | s//\1/ | |
15722 | q | |
15723 | } | |
15724 | /^X\(\/\/\)[^/].*/{ | |
15725 | s//\1/ | |
15726 | q | |
15727 | } | |
15728 | /^X\(\/\/\)$/{ | |
15729 | s//\1/ | |
15730 | q | |
15731 | } | |
15732 | /^X\(\/\).*/{ | |
15733 | s//\1/ | |
15734 | q | |
15735 | } | |
15736 | s/.*/./; q'` | |
15737 | test -d "$as_dir" && break | |
15738 | done | |
15739 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15740 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 15741 | |
c6b750e1 | 15742 | |
81ecdfbb | 15743 | } # as_fn_mkdir_p |
c6b750e1 | 15744 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15745 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15746 | else |
15747 | test -d ./-p && rmdir ./-p | |
15748 | as_mkdir_p=false | |
15749 | fi | |
15750 | ||
d0ac1c44 SM |
15751 | |
15752 | # as_fn_executable_p FILE | |
15753 | # ----------------------- | |
15754 | # Test if FILE is an executable regular file. | |
15755 | as_fn_executable_p () | |
15756 | { | |
15757 | test -f "$1" && test -x "$1" | |
15758 | } # as_fn_executable_p | |
15759 | as_test_x='test -x' | |
15760 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
15761 | |
15762 | # Sed expression to map a string onto a valid CPP name. | |
15763 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15764 | ||
15765 | # Sed expression to map a string onto a valid variable name. | |
15766 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15767 | ||
15768 | ||
c6b750e1 | 15769 | exec 6>&1 |
81ecdfbb RW |
15770 | ## ----------------------------------- ## |
15771 | ## Main body of $CONFIG_STATUS script. ## | |
15772 | ## ----------------------------------- ## | |
15773 | _ASEOF | |
15774 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15775 | ||
15776 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15777 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15778 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15779 | # values after options handling. |
15780 | ac_log=" | |
c6b750e1 | 15781 | This file was extended by $as_me, which was |
d0ac1c44 | 15782 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
15783 | |
15784 | CONFIG_FILES = $CONFIG_FILES | |
15785 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15786 | CONFIG_LINKS = $CONFIG_LINKS | |
15787 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15788 | $ $0 $@ | |
15789 | ||
81ecdfbb RW |
15790 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15791 | " | |
15792 | ||
c6b750e1 DJ |
15793 | _ACEOF |
15794 | ||
81ecdfbb RW |
15795 | case $ac_config_files in *" |
15796 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15797 | esac | |
c6b750e1 | 15798 | |
c6b750e1 | 15799 | |
c6b750e1 | 15800 | |
81ecdfbb RW |
15801 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15802 | # Files that config.status was made for. | |
15803 | config_files="$ac_config_files" | |
c6b750e1 | 15804 | |
81ecdfbb | 15805 | _ACEOF |
c6b750e1 | 15806 | |
81ecdfbb | 15807 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15808 | ac_cs_usage="\ |
81ecdfbb RW |
15809 | \`$as_me' instantiates files and other configuration actions |
15810 | from templates according to the current configuration. Unless the files | |
15811 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15812 | |
81ecdfbb | 15813 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15814 | |
15815 | -h, --help print this help, then exit | |
81ecdfbb | 15816 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15817 | --config print configuration, then exit |
81ecdfbb RW |
15818 | -q, --quiet, --silent |
15819 | do not print progress messages | |
c6b750e1 DJ |
15820 | -d, --debug don't remove temporary files |
15821 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15822 | --file=FILE[:TEMPLATE] |
15823 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15824 | |
15825 | Configuration files: | |
15826 | $config_files | |
15827 | ||
81ecdfbb | 15828 | Report bugs to the package provider." |
c6b750e1 | 15829 | |
81ecdfbb RW |
15830 | _ACEOF |
15831 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15832 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
15833 | ac_cs_version="\\ |
15834 | config.status | |
d0ac1c44 SM |
15835 | configured by $0, generated by GNU Autoconf 2.69, |
15836 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 15837 | |
d0ac1c44 | 15838 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
15839 | This config.status script is free software; the Free Software Foundation |
15840 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15841 | |
15842 | ac_pwd='$ac_pwd' | |
15843 | srcdir='$srcdir' | |
15844 | INSTALL='$INSTALL' | |
8e957354 | 15845 | AWK='$AWK' |
81ecdfbb | 15846 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15847 | _ACEOF |
15848 | ||
81ecdfbb RW |
15849 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15850 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15851 | ac_need_defaults=: |
15852 | while test $# != 0 | |
a0da8069 | 15853 | do |
c6b750e1 | 15854 | case $1 in |
d0ac1c44 | 15855 | --*=?*) |
81ecdfbb RW |
15856 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15857 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15858 | ac_shift=: |
15859 | ;; | |
d0ac1c44 SM |
15860 | --*=) |
15861 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15862 | ac_optarg= | |
15863 | ac_shift=: | |
15864 | ;; | |
81ecdfbb | 15865 | *) |
c6b750e1 DJ |
15866 | ac_option=$1 |
15867 | ac_optarg=$2 | |
15868 | ac_shift=shift | |
15869 | ;; | |
c6b750e1 DJ |
15870 | esac |
15871 | ||
15872 | case $ac_option in | |
15873 | # Handling of the options. | |
a0da8069 | 15874 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15875 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15876 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15877 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
15878 | --config | --confi | --conf | --con | --co | --c ) |
15879 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 15880 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
15881 | debug=: ;; |
15882 | --file | --fil | --fi | --f ) | |
15883 | $ac_shift | |
81ecdfbb RW |
15884 | case $ac_optarg in |
15885 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 15886 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
15887 | esac |
15888 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15889 | ac_need_defaults=false;; |
81ecdfbb RW |
15890 | --he | --h | --help | --hel | -h ) |
15891 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15892 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15893 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15894 | ac_cs_silent=: ;; | |
15895 | ||
15896 | # This is an error. | |
d0ac1c44 | 15897 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 15898 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 15899 | |
81ecdfbb RW |
15900 | *) as_fn_append ac_config_targets " $1" |
15901 | ac_need_defaults=false ;; | |
c6b750e1 | 15902 | |
376a0e54 | 15903 | esac |
c6b750e1 | 15904 | shift |
376a0e54 CM |
15905 | done |
15906 | ||
c6b750e1 | 15907 | ac_configure_extra_args= |
376a0e54 | 15908 | |
c6b750e1 DJ |
15909 | if $ac_cs_silent; then |
15910 | exec 6>/dev/null | |
15911 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15912 | fi | |
376a0e54 | 15913 | |
c6b750e1 | 15914 | _ACEOF |
81ecdfbb | 15915 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15916 | if \$ac_cs_recheck; then |
d0ac1c44 | 15917 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
15918 | shift |
15919 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15920 | CONFIG_SHELL='$SHELL' | |
15921 | export CONFIG_SHELL | |
15922 | exec "\$@" | |
c6b750e1 DJ |
15923 | fi |
15924 | ||
15925 | _ACEOF | |
81ecdfbb RW |
15926 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15927 | exec 5>>config.log | |
15928 | { | |
15929 | echo | |
15930 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15931 | ## Running $as_me. ## | |
15932 | _ASBOX | |
15933 | $as_echo "$ac_log" | |
15934 | } >&5 | |
c6b750e1 | 15935 | |
81ecdfbb RW |
15936 | _ACEOF |
15937 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15938 | # |
15939 | # INIT-COMMANDS | |
15940 | # | |
15941 | extrasub_build="$extrasub_build" | |
15942 | extrasub_host="$extrasub_host" | |
15943 | extrasub_target="$extrasub_target" | |
15944 | ||
81ecdfbb | 15945 | _ACEOF |
c6b750e1 | 15946 | |
81ecdfbb | 15947 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15948 | |
81ecdfbb | 15949 | # Handling of arguments. |
c6b750e1 DJ |
15950 | for ac_config_target in $ac_config_targets |
15951 | do | |
81ecdfbb RW |
15952 | case $ac_config_target in |
15953 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15954 | ||
d0ac1c44 | 15955 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
15956 | esac |
15957 | done | |
15958 | ||
81ecdfbb | 15959 | |
c6b750e1 DJ |
15960 | # If the user did not use the arguments to specify the items to instantiate, |
15961 | # then the envvar interface is used. Set only those that are not. | |
15962 | # We use the long form for the default assignment because of an extremely | |
15963 | # bizarre bug on SunOS 4.1.3. | |
15964 | if $ac_need_defaults; then | |
15965 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15966 | fi | |
15967 | ||
15968 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15969 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15970 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15971 | # Hook for its removal unless debugging. |
15972 | # Note that there is a small window in which the directory will not be cleaned: | |
15973 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15974 | $debug || |
15975 | { | |
d0ac1c44 | 15976 | tmp= ac_tmp= |
81ecdfbb | 15977 | trap 'exit_status=$? |
d0ac1c44 SM |
15978 | : "${ac_tmp:=$tmp}" |
15979 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15980 | ' 0 |
15981 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15982 | } |
c6b750e1 DJ |
15983 | # Create a (secure) tmp directory for tmp files. |
15984 | ||
15985 | { | |
81ecdfbb | 15986 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15987 | test -d "$tmp" |
c6b750e1 DJ |
15988 | } || |
15989 | { | |
81ecdfbb RW |
15990 | tmp=./conf$$-$RANDOM |
15991 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15992 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15993 | ac_tmp=$tmp | |
81ecdfbb RW |
15994 | |
15995 | # Set up the scripts for CONFIG_FILES section. | |
15996 | # No need to generate them if there are no CONFIG_FILES. | |
15997 | # This happens for instance with `./config.status config.h'. | |
15998 | if test -n "$CONFIG_FILES"; then | |
15999 | ||
16000 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
16001 | ac_cs_awk_getline=: | |
16002 | ac_cs_awk_pipe_init= | |
16003 | ac_cs_awk_read_file=' | |
16004 | while ((getline aline < (F[key])) > 0) | |
16005 | print(aline) | |
16006 | close(F[key])' | |
16007 | ac_cs_awk_pipe_fini= | |
16008 | else | |
16009 | ac_cs_awk_getline=false | |
16010 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16011 | ac_cs_awk_read_file=' | |
16012 | print "|#_!!_#|" | |
16013 | print "cat " F[key] " &&" | |
16014 | '$ac_cs_awk_pipe_init | |
16015 | # The final `:' finishes the AND list. | |
16016 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16017 | fi | |
16018 | ac_cr=`echo X | tr X '\015'` | |
16019 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16020 | # But we know of no other shell where ac_cr would be empty at this | |
16021 | # point, so we can use a bashism as a fallback. | |
16022 | if test "x$ac_cr" = x; then | |
16023 | eval ac_cr=\$\'\\r\' | |
16024 | fi | |
16025 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16026 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 16027 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
16028 | else |
16029 | ac_cs_awk_cr=$ac_cr | |
16030 | fi | |
16031 | ||
d0ac1c44 | 16032 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
16033 | _ACEOF |
16034 | ||
16035 | # Create commands to substitute file output variables. | |
c6b750e1 | 16036 | { |
81ecdfbb | 16037 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 16038 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
16039 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
16040 | echo "_ACAWK" && | |
16041 | echo "_ACEOF" | |
16042 | } >conf$$files.sh && | |
16043 | . ./conf$$files.sh || | |
d0ac1c44 | 16044 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 16045 | rm -f conf$$files.sh |
c6b750e1 | 16046 | |
81ecdfbb RW |
16047 | { |
16048 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16049 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16050 | echo "_ACEOF" | |
16051 | } >conf$$subs.sh || | |
d0ac1c44 SM |
16052 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16053 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
16054 | ac_delim='%!_!# ' |
16055 | for ac_last_try in false false false false false :; do | |
16056 | . ./conf$$subs.sh || | |
d0ac1c44 | 16057 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
16058 | |
16059 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16060 | if test $ac_delim_n = $ac_delim_num; then | |
16061 | break | |
16062 | elif $ac_last_try; then | |
d0ac1c44 | 16063 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
16064 | else |
16065 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16066 | fi | |
16067 | done | |
16068 | rm -f conf$$subs.sh | |
16069 | ||
16070 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 16071 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 16072 | _ACEOF |
81ecdfbb RW |
16073 | sed -n ' |
16074 | h | |
16075 | s/^/S["/; s/!.*/"]=/ | |
16076 | p | |
16077 | g | |
16078 | s/^[^!]*!// | |
16079 | :repl | |
16080 | t repl | |
16081 | s/'"$ac_delim"'$// | |
16082 | t delim | |
16083 | :nl | |
16084 | h | |
d0ac1c44 | 16085 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
16086 | t more1 |
16087 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16088 | p | |
16089 | n | |
16090 | b repl | |
16091 | :more1 | |
16092 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16093 | p | |
16094 | g | |
16095 | s/.\{148\}// | |
16096 | t nl | |
16097 | :delim | |
16098 | h | |
d0ac1c44 | 16099 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
16100 | t more2 |
16101 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16102 | p | |
16103 | b | |
16104 | :more2 | |
16105 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16106 | p | |
16107 | g | |
16108 | s/.\{148\}// | |
16109 | t delim | |
16110 | ' <conf$$subs.awk | sed ' | |
16111 | /^[^""]/{ | |
16112 | N | |
16113 | s/\n// | |
16114 | } | |
16115 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16116 | rm -f conf$$subs.awk | |
16117 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16118 | _ACAWK | |
d0ac1c44 | 16119 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
16120 | for (key in S) S_is_set[key] = 1 |
16121 | FS = "\a" | |
16122 | \$ac_cs_awk_pipe_init | |
16123 | } | |
16124 | { | |
16125 | line = $ 0 | |
16126 | nfields = split(line, field, "@") | |
16127 | substed = 0 | |
16128 | len = length(field[1]) | |
16129 | for (i = 2; i < nfields; i++) { | |
16130 | key = field[i] | |
16131 | keylen = length(key) | |
16132 | if (S_is_set[key]) { | |
16133 | value = S[key] | |
16134 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16135 | len += length(value) + length(field[++i]) | |
16136 | substed = 1 | |
16137 | } else | |
16138 | len += 1 + keylen | |
16139 | } | |
16140 | if (nfields == 3 && !substed) { | |
16141 | key = field[2] | |
16142 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16143 | \$ac_cs_awk_read_file | |
16144 | next | |
16145 | } | |
16146 | } | |
16147 | print line | |
16148 | } | |
16149 | \$ac_cs_awk_pipe_fini | |
16150 | _ACAWK | |
16151 | _ACEOF | |
16152 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16153 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16154 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16155 | else | |
16156 | cat | |
d0ac1c44 SM |
16157 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16158 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
16159 | _ACEOF |
16160 | ||
d0ac1c44 SM |
16161 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16162 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
16163 | # trailing colons and then remove the whole line if VPATH becomes empty |
16164 | # (actually we leave an empty line to preserve line numbers). | |
16165 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
16166 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16167 | h | |
16168 | s/// | |
16169 | s/^/:/ | |
16170 | s/[ ]*$/:/ | |
16171 | s/:\$(srcdir):/:/g | |
16172 | s/:\${srcdir}:/:/g | |
16173 | s/:@srcdir@:/:/g | |
16174 | s/^:*// | |
81ecdfbb | 16175 | s/:*$// |
d0ac1c44 SM |
16176 | x |
16177 | s/\(=[ ]*\).*/\1/ | |
16178 | G | |
16179 | s/\n// | |
81ecdfbb RW |
16180 | s/^[^=]*=[ ]*$// |
16181 | }' | |
16182 | fi | |
c6b750e1 | 16183 | |
81ecdfbb RW |
16184 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16185 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 16186 | |
c6b750e1 | 16187 | |
81ecdfbb RW |
16188 | eval set X " :F $CONFIG_FILES " |
16189 | shift | |
16190 | for ac_tag | |
16191 | do | |
16192 | case $ac_tag in | |
16193 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16194 | esac | |
16195 | case $ac_mode$ac_tag in | |
16196 | :[FHL]*:*);; | |
d0ac1c44 | 16197 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
16198 | :[FH]-) ac_tag=-:-;; |
16199 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16200 | esac | |
16201 | ac_save_IFS=$IFS | |
16202 | IFS=: | |
16203 | set x $ac_tag | |
16204 | IFS=$ac_save_IFS | |
16205 | shift | |
16206 | ac_file=$1 | |
16207 | shift | |
252b5132 | 16208 | |
81ecdfbb RW |
16209 | case $ac_mode in |
16210 | :L) ac_source=$1;; | |
16211 | :[FH]) | |
16212 | ac_file_inputs= | |
16213 | for ac_f | |
16214 | do | |
16215 | case $ac_f in | |
d0ac1c44 | 16216 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
16217 | *) # Look for the file first in the build tree, then in the source tree |
16218 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16219 | # because $ac_f cannot contain `:'. | |
16220 | test -f "$ac_f" || | |
16221 | case $ac_f in | |
16222 | [\\/$]*) false;; | |
16223 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16224 | esac || | |
d0ac1c44 | 16225 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
16226 | esac |
16227 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16228 | as_fn_append ac_file_inputs " '$ac_f'" | |
16229 | done | |
c6b750e1 | 16230 | |
81ecdfbb RW |
16231 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16232 | # use $as_me), people would be surprised to read: | |
16233 | # /* config.h. Generated by config.status. */ | |
16234 | configure_input='Generated from '` | |
16235 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16236 | `' by configure.' | |
16237 | if test x"$ac_file" != x-; then | |
16238 | configure_input="$ac_file. $configure_input" | |
16239 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16240 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 16241 | fi |
81ecdfbb RW |
16242 | # Neutralize special characters interpreted by sed in replacement strings. |
16243 | case $configure_input in #( | |
16244 | *\&* | *\|* | *\\* ) | |
16245 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16246 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16247 | *) ac_sed_conf_input=$configure_input;; | |
16248 | esac | |
cac3d6c4 | 16249 | |
81ecdfbb | 16250 | case $ac_tag in |
d0ac1c44 SM |
16251 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16252 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
16253 | esac |
16254 | ;; | |
a0da8069 | 16255 | esac |
252b5132 | 16256 | |
81ecdfbb | 16257 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
16258 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16259 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16260 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16261 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16262 | $as_echo X"$ac_file" | | |
16263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16264 | s//\1/ | |
16265 | q | |
16266 | } | |
16267 | /^X\(\/\/\)[^/].*/{ | |
16268 | s//\1/ | |
16269 | q | |
16270 | } | |
16271 | /^X\(\/\/\)$/{ | |
16272 | s//\1/ | |
16273 | q | |
16274 | } | |
16275 | /^X\(\/\).*/{ | |
16276 | s//\1/ | |
16277 | q | |
16278 | } | |
16279 | s/.*/./; q'` | |
16280 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 16281 | ac_builddir=. |
252b5132 | 16282 | |
81ecdfbb RW |
16283 | case "$ac_dir" in |
16284 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16285 | *) | |
16286 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16287 | # A ".." for each directory in $ac_dir_suffix. | |
16288 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16289 | case $ac_top_builddir_sub in | |
16290 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16291 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16292 | esac ;; | |
16293 | esac | |
16294 | ac_abs_top_builddir=$ac_pwd | |
16295 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16296 | # for backward compatibility: | |
16297 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
16298 | |
16299 | case $srcdir in | |
81ecdfbb | 16300 | .) # We are building in place. |
c6b750e1 | 16301 | ac_srcdir=. |
81ecdfbb RW |
16302 | ac_top_srcdir=$ac_top_builddir_sub |
16303 | ac_abs_top_srcdir=$ac_pwd ;; | |
16304 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 16305 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
16306 | ac_top_srcdir=$srcdir |
16307 | ac_abs_top_srcdir=$srcdir ;; | |
16308 | *) # Relative name. | |
16309 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16310 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16311 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 16312 | esac |
81ecdfbb | 16313 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 16314 | |
252b5132 | 16315 | |
81ecdfbb RW |
16316 | case $ac_mode in |
16317 | :F) | |
16318 | # | |
16319 | # CONFIG_FILE | |
16320 | # | |
c6b750e1 DJ |
16321 | |
16322 | case $INSTALL in | |
16323 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 16324 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 16325 | esac |
81ecdfbb | 16326 | _ACEOF |
252b5132 | 16327 | |
81ecdfbb RW |
16328 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16329 | # If the template does not know about datarootdir, expand it. | |
16330 | # FIXME: This hack should be removed a few years after 2.60. | |
16331 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16332 | ac_sed_dataroot=' | |
16333 | /datarootdir/ { | |
16334 | p | |
16335 | q | |
16336 | } | |
16337 | /@datadir@/p | |
16338 | /@docdir@/p | |
16339 | /@infodir@/p | |
16340 | /@localedir@/p | |
16341 | /@mandir@/p' | |
16342 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16343 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16344 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16346 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 16347 | _ACEOF |
81ecdfbb RW |
16348 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16349 | ac_datarootdir_hack=' | |
16350 | s&@datadir@&$datadir&g | |
16351 | s&@docdir@&$docdir&g | |
16352 | s&@infodir@&$infodir&g | |
16353 | s&@localedir@&$localedir&g | |
16354 | s&@mandir@&$mandir&g | |
16355 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16356 | esac | |
16357 | _ACEOF | |
16358 | ||
16359 | # Neutralize VPATH when `$srcdir' = `.'. | |
16360 | # Shell code in configure.ac might set extrasub. | |
16361 | # FIXME: do we really want to maintain this feature? | |
16362 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16363 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
16364 | $extrasub |
16365 | _ACEOF | |
81ecdfbb | 16366 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
16367 | :t |
16368 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
16369 | s|@configure_input@|$ac_sed_conf_input|;t t |
16370 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16371 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16372 | s&@srcdir@&$ac_srcdir&;t t | |
16373 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16374 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16375 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16376 | s&@builddir@&$ac_builddir&;t t | |
16377 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16378 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16379 | s&@INSTALL@&$ac_INSTALL&;t t | |
16380 | $ac_datarootdir_hack | |
16381 | " | |
16382 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16383 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 16384 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 16385 | else |
d0ac1c44 SM |
16386 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
16387 | fi \ | |
16388 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
16389 | |
16390 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
16391 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16392 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16393 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 16394 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16395 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 16396 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16397 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 16398 | |
d0ac1c44 | 16399 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 16400 | case $ac_file in |
d0ac1c44 SM |
16401 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16402 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 16403 | esac \ |
d0ac1c44 | 16404 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 16405 | ;; |
c148b4cb | 16406 | |
c148b4cb | 16407 | |
c148b4cb | 16408 | |
81ecdfbb RW |
16409 | esac |
16410 | ||
06a51eac RW |
16411 | |
16412 | case $ac_file$ac_mode in | |
16413 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16414 | sed "$extrasub_host" | | |
16415 | sed "$extrasub_target" > mf$$ | |
16416 | mv -f mf$$ Makefile ;; | |
16417 | ||
16418 | esac | |
81ecdfbb RW |
16419 | done # for ac_tag |
16420 | ||
16421 | ||
16422 | as_fn_exit 0 | |
c6b750e1 | 16423 | _ACEOF |
c6b750e1 DJ |
16424 | ac_clean_files=$ac_clean_files_save |
16425 | ||
81ecdfbb | 16426 | test $ac_write_fail = 0 || |
d0ac1c44 | 16427 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 16428 | |
c6b750e1 DJ |
16429 | |
16430 | # configure is writing to config.log, and then calls config.status. | |
16431 | # config.status does its own redirection, appending to config.log. | |
16432 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16433 | # by configure, so config.status won't be able to write to it; its | |
16434 | # output is simply discarded. So we exec the FD to /dev/null, | |
16435 | # effectively closing config.log, so it can be properly (re)opened and | |
16436 | # appended to by config.status. When coming back to configure, we | |
16437 | # need to make the FD available again. | |
16438 | if test "$no_create" != yes; then | |
16439 | ac_cs_success=: | |
16440 | ac_config_status_args= | |
16441 | test "$silent" = yes && | |
16442 | ac_config_status_args="$ac_config_status_args --quiet" | |
16443 | exec 5>/dev/null | |
16444 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16445 | exec 5>>config.log | |
16446 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16447 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 16448 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
16449 | fi |
16450 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16452 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 16453 | fi |
c148b4cb | 16454 |