]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
671aa708 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1c710c3c | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
1c710c3c | 31 | fi |
1c710c3c | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
1c710c3c DJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
1c710c3c DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
87264276 PB |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
5213506e RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
1c710c3c | 211 | do |
5213506e RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
5213506e RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
1c710c3c | 266 | else |
5213506e RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
1c710c3c | 271 | fi |
5213506e RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
1c710c3c | 301 | |
5213506e RW |
302 | # as_fn_exit STATUS |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
22e05272 JM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
5213506e RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
22e05272 JM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
5213506e RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 407 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
408 | as_fn_error () |
409 | { | |
22e05272 JM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 414 | fi |
22e05272 | 415 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
5213506e | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
5213506e RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
1c710c3c | 437 | |
5213506e | 438 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
1c710c3c | 456 | |
2aeb72e9 DD |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11a67599 | 463 | |
1c710c3c | 464 | |
5213506e RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
1c710c3c | 474 | sed ' |
5213506e RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
1c710c3c | 479 | N |
5213506e RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 482 | t loop |
5213506e | 483 | s/-\n.*// |
1c710c3c | 484 | ' >$as_me.lineno && |
5213506e RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
1c710c3c | 487 | |
22e05272 JM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
1c710c3c DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
1c710c3c DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
5213506e RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
1c710c3c DJ |
511 | esac |
512 | ||
5213506e RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 516 | else |
5213506e RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 519 | fi |
5213506e RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 522 | as_ln_s='ln -s' |
5213506e RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 526 | # In both cases, we have to default to `cp -pR'. |
5213506e | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 528 | as_ln_s='cp -pR' |
5213506e RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
22e05272 | 532 | as_ln_s='cp -pR' |
2aeb72e9 | 533 | fi |
1c710c3c | 534 | else |
22e05272 | 535 | as_ln_s='cp -pR' |
1c710c3c | 536 | fi |
5213506e RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
5213506e | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
22e05272 JM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
0b0dc272 | 549 | |
1c710c3c DJ |
550 | # Sed expression to map a string onto a valid CPP name. |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
22e05272 JM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
1c710c3c DJ |
559 | |
560 | # Name of the host. | |
22e05272 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
1c710c3c DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
1c710c3c DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
671aa708 | 568 | ac_default_prefix=/usr/local |
5213506e | 569 | ac_clean_files= |
1c710c3c | 570 | ac_config_libobj_dir=. |
5213506e | 571 | LIBOBJS= |
1c710c3c DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
2aeb72e9 | 576 | |
1c710c3c DJ |
577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
5213506e | 583 | PACKAGE_URL= |
1c710c3c DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
5213506e RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
590 | stage2_werror_flag | |
591 | stage1_checking | |
592 | stage1_cflags | |
593 | MAINT | |
594 | MAINTAINER_MODE_FALSE | |
595 | MAINTAINER_MODE_TRUE | |
596 | COMPILER_NM_FOR_TARGET | |
597 | COMPILER_LD_FOR_TARGET | |
598 | COMPILER_AS_FOR_TARGET | |
599 | FLAGS_FOR_TARGET | |
600 | RAW_CXX_FOR_TARGET | |
601 | WINDMC_FOR_TARGET | |
602 | WINDRES_FOR_TARGET | |
603 | STRIP_FOR_TARGET | |
e7a82751 | 604 | READELF_FOR_TARGET |
5213506e | 605 | RANLIB_FOR_TARGET |
e4a9a572 | 606 | OTOOL_FOR_TARGET |
5213506e | 607 | OBJDUMP_FOR_TARGET |
9bccfdf5 | 608 | OBJCOPY_FOR_TARGET |
5213506e RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
3b5e8ee4 | 612 | DSYMUTIL_FOR_TARGET |
5213506e RW |
613 | DLLTOOL_FOR_TARGET |
614 | AS_FOR_TARGET | |
615 | AR_FOR_TARGET | |
b4c522fa | 616 | GDC_FOR_TARGET |
632e2a07 | 617 | GOC_FOR_TARGET |
5213506e | 618 | GFORTRAN_FOR_TARGET |
5213506e RW |
619 | GCC_FOR_TARGET |
620 | CXX_FOR_TARGET | |
621 | CC_FOR_TARGET | |
5fee5ec3 | 622 | GDCFLAGS |
e7a82751 | 623 | READELF |
e4a9a572 | 624 | OTOOL |
5213506e RW |
625 | OBJDUMP |
626 | OBJCOPY | |
627 | WINDMC | |
628 | WINDRES | |
629 | STRIP | |
630 | RANLIB | |
631 | NM | |
632 | LIPO | |
633 | LD | |
3b5e8ee4 | 634 | DSYMUTIL |
5213506e RW |
635 | DLLTOOL |
636 | AS | |
637 | AR | |
638 | RUNTEST | |
639 | EXPECT | |
640 | MAKEINFO | |
641 | FLEX | |
642 | LEX | |
643 | M4 | |
644 | BISON | |
645 | YACC | |
5213506e RW |
646 | WINDRES_FOR_BUILD |
647 | WINDMC_FOR_BUILD | |
648 | RANLIB_FOR_BUILD | |
649 | NM_FOR_BUILD | |
650 | LD_FOR_BUILD | |
651 | LDFLAGS_FOR_BUILD | |
b4c522fa | 652 | GDC_FOR_BUILD |
632e2a07 | 653 | GOC_FOR_BUILD |
5213506e | 654 | GFORTRAN_FOR_BUILD |
3b5e8ee4 | 655 | DSYMUTIL_FOR_BUILD |
5213506e RW |
656 | DLLTOOL_FOR_BUILD |
657 | CXX_FOR_BUILD | |
658 | CXXFLAGS_FOR_BUILD | |
84401ce5 RP |
659 | CPPFLAGS_FOR_BUILD |
660 | CPP_FOR_BUILD | |
5213506e RW |
661 | CFLAGS_FOR_BUILD |
662 | CC_FOR_BUILD | |
663 | AS_FOR_BUILD | |
664 | AR_FOR_BUILD | |
aae29963 | 665 | target_configdirs |
5213506e | 666 | configdirs |
5213506e | 667 | build_configdirs |
5213506e RW |
668 | INSTALL_GDB_TK |
669 | GDB_TK | |
670 | CONFIGURE_GDB_TK | |
671 | build_tooldir | |
672 | tooldir | |
673 | GCC_SHLIB_SUBDIR | |
674 | RPATH_ENVVAR | |
ffedf511 RW |
675 | target_configargs |
676 | host_configargs | |
677 | build_configargs | |
e12c4094 | 678 | BUILD_CONFIG |
6f57bdf6 | 679 | LDFLAGS_FOR_TARGET |
5213506e RW |
680 | CXXFLAGS_FOR_TARGET |
681 | CFLAGS_FOR_TARGET | |
682 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
683 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 684 | get_gcc_base_ver |
1c01ebf6 | 685 | extra_host_zlib_configure_flags |
d7f09764 | 686 | extra_host_libiberty_configure_flags |
fca38047 | 687 | stage1_languages |
251c72a6 MP |
688 | PICFLAG |
689 | enable_host_pie | |
cdfee50a | 690 | host_shared |
45b3824d TS |
691 | extra_linker_plugin_flags |
692 | extra_linker_plugin_configure_flags | |
33ad93b9 | 693 | islinc |
eae1a5d4 | 694 | isllibs |
5213506e | 695 | poststage1_ldflags |
ed2eaa9f | 696 | poststage1_libs |
5213506e | 697 | stage1_ldflags |
0b21f5d3 | 698 | stage1_libs |
0ff2d841 | 699 | extra_isl_gmp_configure_flags |
5213506e RW |
700 | extra_mpc_mpfr_configure_flags |
701 | extra_mpc_gmp_configure_flags | |
702 | extra_mpfr_configure_flags | |
703 | gmpinc | |
704 | gmplibs | |
4a5e71f2 L |
705 | PGO_BUILD_LTO_CFLAGS |
706 | PGO_BUILD_USE_CFLAGS | |
707 | PGO_BUILD_GEN_CFLAGS | |
7ffcf5d6 | 708 | HAVE_CXX11_FOR_BUILD |
ffac9597 | 709 | HAVE_CXX11 |
5213506e | 710 | do_compare |
5fee5ec3 | 711 | GDC |
5213506e RW |
712 | GNATMAKE |
713 | GNATBIND | |
714 | ac_ct_CXX | |
715 | CXXFLAGS | |
716 | CXX | |
717 | OBJEXT | |
718 | EXEEXT | |
719 | ac_ct_CC | |
720 | CPPFLAGS | |
721 | LDFLAGS | |
722 | CFLAGS | |
723 | CC | |
724 | target_subdir | |
725 | host_subdir | |
726 | build_subdir | |
727 | build_libsubdir | |
87264276 PB |
728 | AWK |
729 | SED | |
5213506e RW |
730 | LN_S |
731 | LN | |
732 | INSTALL_DATA | |
733 | INSTALL_SCRIPT | |
734 | INSTALL_PROGRAM | |
735 | target_os | |
736 | target_vendor | |
737 | target_cpu | |
738 | target | |
739 | host_os | |
740 | host_vendor | |
741 | host_cpu | |
742 | host | |
743 | target_noncanonical | |
744 | host_noncanonical | |
745 | build_noncanonical | |
746 | build_os | |
747 | build_vendor | |
748 | build_cpu | |
749 | build | |
750 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
751 | target_alias | |
752 | host_alias | |
753 | build_alias | |
754 | LIBS | |
755 | ECHO_T | |
756 | ECHO_N | |
757 | ECHO_C | |
758 | DEFS | |
759 | mandir | |
760 | localedir | |
761 | libdir | |
762 | psdir | |
763 | pdfdir | |
764 | dvidir | |
765 | htmldir | |
766 | infodir | |
767 | docdir | |
768 | oldincludedir | |
769 | includedir | |
770 | localstatedir | |
771 | sharedstatedir | |
772 | sysconfdir | |
773 | datadir | |
774 | datarootdir | |
775 | libexecdir | |
776 | sbindir | |
777 | bindir | |
778 | program_transform_name | |
779 | prefix | |
780 | exec_prefix | |
781 | PACKAGE_URL | |
782 | PACKAGE_BUGREPORT | |
783 | PACKAGE_STRING | |
784 | PACKAGE_VERSION | |
785 | PACKAGE_TARNAME | |
786 | PACKAGE_NAME | |
787 | PATH_SEPARATOR | |
788 | SHELL' | |
789 | ac_subst_files='serialization_dependencies | |
790 | host_makefile_frag | |
791 | target_makefile_frag | |
792 | alphaieee_frag | |
793 | ospace_frag' | |
794 | ac_user_opts=' | |
795 | enable_option_checking | |
796 | with_build_libsubdir | |
a05c2c75 | 797 | with_system_zlib |
85c64bbe BS |
798 | enable_as_accelerator_for |
799 | enable_offload_targets | |
fe5bfa67 | 800 | enable_offload_defaulted |
5213506e | 801 | enable_gold |
21539e2e | 802 | enable_ld |
78edb32f | 803 | enable_compressed_debug_sections |
87e6d9dc TB |
804 | enable_libquadmath |
805 | enable_libquadmath_support | |
5213506e RW |
806 | enable_libada |
807 | enable_libssp | |
1873ec0c | 808 | enable_libstdcxx |
ff3ac0f4 | 809 | enable_bootstrap |
4a5e71f2 | 810 | enable_pgo_build |
5213506e RW |
811 | with_mpc |
812 | with_mpc_include | |
813 | with_mpc_lib | |
5213506e RW |
814 | with_mpfr |
815 | with_mpfr_include | |
816 | with_mpfr_lib | |
5213506e RW |
817 | with_gmp |
818 | with_gmp_include | |
819 | with_gmp_lib | |
5213506e | 820 | with_stage1_libs |
aac9103b | 821 | with_static_standard_libraries |
0b21f5d3 | 822 | with_stage1_ldflags |
5213506e | 823 | with_boot_libs |
ed2eaa9f | 824 | with_boot_ldflags |
33ad93b9 RG |
825 | with_isl |
826 | with_isl_include | |
827 | with_isl_lib | |
828 | enable_isl_version_check | |
d7f09764 | 829 | enable_lto |
45b3824d TS |
830 | enable_linker_plugin_configure_flags |
831 | enable_linker_plugin_flags | |
cdfee50a | 832 | enable_host_shared |
251c72a6 | 833 | enable_host_pie |
5213506e | 834 | enable_stage1_languages |
43c40f3e | 835 | enable_objc_gc |
114bf3f1 MK |
836 | with_target_bdw_gc |
837 | with_target_bdw_gc_include | |
838 | with_target_bdw_gc_lib | |
3c36aa6b | 839 | with_gcc_major_version_only |
5213506e RW |
840 | with_build_sysroot |
841 | with_debug_prefix_map | |
5646b7b9 | 842 | with_build_config |
beeda1d9 | 843 | enable_vtable_verify |
5213506e RW |
844 | enable_serial_configure |
845 | with_build_time_tools | |
846 | enable_maintainer_mode | |
847 | enable_stage1_checking | |
848 | enable_werror | |
5213506e RW |
849 | ' |
850 | ac_precious_vars='build_alias | |
851 | host_alias | |
852 | target_alias | |
853 | CC | |
854 | CFLAGS | |
855 | LDFLAGS | |
856 | LIBS | |
857 | CPPFLAGS | |
858 | CXX | |
859 | CXXFLAGS | |
860 | CCC | |
ffedf511 RW |
861 | build_configargs |
862 | host_configargs | |
863 | target_configargs | |
5213506e RW |
864 | AR |
865 | AS | |
866 | DLLTOOL | |
3b5e8ee4 | 867 | DSYMUTIL |
5213506e RW |
868 | LD |
869 | LIPO | |
870 | NM | |
871 | RANLIB | |
872 | STRIP | |
873 | WINDRES | |
874 | WINDMC | |
875 | OBJCOPY | |
876 | OBJDUMP | |
e4a9a572 | 877 | OTOOL |
e7a82751 | 878 | READELF |
5213506e RW |
879 | CC_FOR_TARGET |
880 | CXX_FOR_TARGET | |
881 | GCC_FOR_TARGET | |
5213506e | 882 | GFORTRAN_FOR_TARGET |
632e2a07 | 883 | GOC_FOR_TARGET |
b4c522fa | 884 | GDC_FOR_TARGET |
5213506e RW |
885 | AR_FOR_TARGET |
886 | AS_FOR_TARGET | |
887 | DLLTOOL_FOR_TARGET | |
3b5e8ee4 | 888 | DSYMUTIL_FOR_TARGET |
5213506e RW |
889 | LD_FOR_TARGET |
890 | LIPO_FOR_TARGET | |
891 | NM_FOR_TARGET | |
9bccfdf5 | 892 | OBJCOPY_FOR_TARGET |
5213506e | 893 | OBJDUMP_FOR_TARGET |
e4a9a572 | 894 | OTOOL_FOR_TARGET |
5213506e | 895 | RANLIB_FOR_TARGET |
e7a82751 | 896 | READELF_FOR_TARGET |
5213506e RW |
897 | STRIP_FOR_TARGET |
898 | WINDRES_FOR_TARGET | |
899 | WINDMC_FOR_TARGET' | |
900 | ||
671aa708 NN |
901 | |
902 | # Initialize some variables set by options. | |
1c710c3c DJ |
903 | ac_init_help= |
904 | ac_init_version=false | |
5213506e RW |
905 | ac_unrecognized_opts= |
906 | ac_unrecognized_sep= | |
671aa708 NN |
907 | # The variables have the same names as the options, with |
908 | # dashes changed to underlines. | |
1c710c3c | 909 | cache_file=/dev/null |
671aa708 | 910 | exec_prefix=NONE |
671aa708 | 911 | no_create= |
671aa708 NN |
912 | no_recursion= |
913 | prefix=NONE | |
914 | program_prefix=NONE | |
915 | program_suffix=NONE | |
916 | program_transform_name=s,x,x, | |
917 | silent= | |
918 | site= | |
919 | srcdir= | |
671aa708 NN |
920 | verbose= |
921 | x_includes=NONE | |
922 | x_libraries=NONE | |
1c710c3c DJ |
923 | |
924 | # Installation directory options. | |
925 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
926 | # and all the variables that are supposed to be based on exec_prefix | |
927 | # by default will actually change. | |
928 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 929 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
930 | bindir='${exec_prefix}/bin' |
931 | sbindir='${exec_prefix}/sbin' | |
932 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
933 | datarootdir='${prefix}/share' |
934 | datadir='${datarootdir}' | |
671aa708 NN |
935 | sysconfdir='${prefix}/etc' |
936 | sharedstatedir='${prefix}/com' | |
937 | localstatedir='${prefix}/var' | |
671aa708 NN |
938 | includedir='${prefix}/include' |
939 | oldincludedir='/usr/include' | |
5213506e RW |
940 | docdir='${datarootdir}/doc/${PACKAGE}' |
941 | infodir='${datarootdir}/info' | |
942 | htmldir='${docdir}' | |
943 | dvidir='${docdir}' | |
944 | pdfdir='${docdir}' | |
945 | psdir='${docdir}' | |
946 | libdir='${exec_prefix}/lib' | |
947 | localedir='${datarootdir}/locale' | |
948 | mandir='${datarootdir}/man' | |
79c06341 | 949 | |
671aa708 | 950 | ac_prev= |
5213506e | 951 | ac_dashdash= |
671aa708 NN |
952 | for ac_option |
953 | do | |
671aa708 NN |
954 | # If the previous option needs an argument, assign it. |
955 | if test -n "$ac_prev"; then | |
5213506e | 956 | eval $ac_prev=\$ac_option |
671aa708 NN |
957 | ac_prev= |
958 | continue | |
959 | fi | |
79c06341 | 960 | |
5213506e | 961 | case $ac_option in |
22e05272 JM |
962 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
963 | *=) ac_optarg= ;; | |
964 | *) ac_optarg=yes ;; | |
5213506e | 965 | esac |
671aa708 NN |
966 | |
967 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
968 | ||
5213506e RW |
969 | case $ac_dashdash$ac_option in |
970 | --) | |
971 | ac_dashdash=yes ;; | |
671aa708 NN |
972 | |
973 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
974 | ac_prev=bindir ;; | |
975 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 976 | bindir=$ac_optarg ;; |
671aa708 NN |
977 | |
978 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 979 | ac_prev=build_alias ;; |
671aa708 | 980 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 981 | build_alias=$ac_optarg ;; |
671aa708 NN |
982 | |
983 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
984 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
985 | ac_prev=cache_file ;; | |
986 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
987 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
988 | cache_file=$ac_optarg ;; |
989 | ||
990 | --config-cache | -C) | |
991 | cache_file=config.cache ;; | |
671aa708 | 992 | |
5213506e | 993 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 994 | ac_prev=datadir ;; |
5213506e | 995 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 996 | datadir=$ac_optarg ;; |
671aa708 | 997 | |
5213506e RW |
998 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
999 | | --dataroo | --dataro | --datar) | |
1000 | ac_prev=datarootdir ;; | |
1001 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1002 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1003 | datarootdir=$ac_optarg ;; | |
1004 | ||
671aa708 | 1005 | -disable-* | --disable-*) |
5213506e | 1006 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 1007 | # Reject names that are not valid shell variable names. |
5213506e | 1008 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1009 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1010 | ac_useropt_orig=$ac_useropt |
1011 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1012 | case $ac_user_opts in | |
1013 | *" | |
1014 | "enable_$ac_useropt" | |
1015 | "*) ;; | |
1016 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1017 | ac_unrecognized_sep=', ';; | |
1018 | esac | |
1019 | eval enable_$ac_useropt=no ;; | |
1020 | ||
1021 | -docdir | --docdir | --docdi | --doc | --do) | |
1022 | ac_prev=docdir ;; | |
1023 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1024 | docdir=$ac_optarg ;; | |
1025 | ||
1026 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1027 | ac_prev=dvidir ;; | |
1028 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1029 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1030 | |
1031 | -enable-* | --enable-*) | |
5213506e | 1032 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1033 | # Reject names that are not valid shell variable names. |
5213506e | 1034 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1035 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1036 | ac_useropt_orig=$ac_useropt |
1037 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1038 | case $ac_user_opts in | |
1039 | *" | |
1040 | "enable_$ac_useropt" | |
1041 | "*) ;; | |
1042 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1043 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1044 | esac |
5213506e | 1045 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1046 | |
1047 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1048 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1049 | | --exec | --exe | --ex) | |
1050 | ac_prev=exec_prefix ;; | |
1051 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1052 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1053 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1054 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1055 | |
1056 | -gas | --gas | --ga | --g) | |
1057 | # Obsolete; use --with-gas. | |
1058 | with_gas=yes ;; | |
1059 | ||
1c710c3c DJ |
1060 | -help | --help | --hel | --he | -h) |
1061 | ac_init_help=long ;; | |
1062 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1063 | ac_init_help=recursive ;; | |
1064 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1065 | ac_init_help=short ;; | |
671aa708 NN |
1066 | |
1067 | -host | --host | --hos | --ho) | |
1c710c3c | 1068 | ac_prev=host_alias ;; |
671aa708 | 1069 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1070 | host_alias=$ac_optarg ;; |
671aa708 | 1071 | |
5213506e RW |
1072 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1073 | ac_prev=htmldir ;; | |
1074 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1075 | | --ht=*) | |
1076 | htmldir=$ac_optarg ;; | |
1077 | ||
671aa708 NN |
1078 | -includedir | --includedir | --includedi | --included | --include \ |
1079 | | --includ | --inclu | --incl | --inc) | |
1080 | ac_prev=includedir ;; | |
1081 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1082 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1083 | includedir=$ac_optarg ;; |
671aa708 NN |
1084 | |
1085 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1086 | ac_prev=infodir ;; | |
1087 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1088 | infodir=$ac_optarg ;; |
671aa708 NN |
1089 | |
1090 | -libdir | --libdir | --libdi | --libd) | |
1091 | ac_prev=libdir ;; | |
1092 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1093 | libdir=$ac_optarg ;; |
671aa708 NN |
1094 | |
1095 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1096 | | --libexe | --libex | --libe) | |
1097 | ac_prev=libexecdir ;; | |
1098 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1099 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1100 | libexecdir=$ac_optarg ;; |
671aa708 | 1101 | |
5213506e RW |
1102 | -localedir | --localedir | --localedi | --localed | --locale) |
1103 | ac_prev=localedir ;; | |
1104 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1105 | localedir=$ac_optarg ;; | |
1106 | ||
671aa708 | 1107 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1108 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1109 | ac_prev=localstatedir ;; |
1110 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1111 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1112 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1113 | |
1114 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1115 | ac_prev=mandir ;; | |
1116 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1117 | mandir=$ac_optarg ;; |
671aa708 NN |
1118 | |
1119 | -nfp | --nfp | --nf) | |
1120 | # Obsolete; use --without-fp. | |
1121 | with_fp=no ;; | |
1122 | ||
1123 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1124 | | --no-cr | --no-c | -n) |
671aa708 NN |
1125 | no_create=yes ;; |
1126 | ||
1127 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1128 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1129 | no_recursion=yes ;; | |
1130 | ||
1131 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1132 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1133 | | --oldin | --oldi | --old | --ol | --o) | |
1134 | ac_prev=oldincludedir ;; | |
1135 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1136 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1137 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1138 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1139 | |
1140 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1141 | ac_prev=prefix ;; | |
1142 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1143 | prefix=$ac_optarg ;; |
671aa708 NN |
1144 | |
1145 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1146 | | --program-pre | --program-pr | --program-p) | |
1147 | ac_prev=program_prefix ;; | |
1148 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1149 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1150 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1151 | |
1152 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1153 | | --program-suf | --program-su | --program-s) | |
1154 | ac_prev=program_suffix ;; | |
1155 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1156 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1157 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1158 | |
1159 | -program-transform-name | --program-transform-name \ | |
1160 | | --program-transform-nam | --program-transform-na \ | |
1161 | | --program-transform-n | --program-transform- \ | |
1162 | | --program-transform | --program-transfor \ | |
1163 | | --program-transfo | --program-transf \ | |
1164 | | --program-trans | --program-tran \ | |
1165 | | --progr-tra | --program-tr | --program-t) | |
1166 | ac_prev=program_transform_name ;; | |
1167 | -program-transform-name=* | --program-transform-name=* \ | |
1168 | | --program-transform-nam=* | --program-transform-na=* \ | |
1169 | | --program-transform-n=* | --program-transform-=* \ | |
1170 | | --program-transform=* | --program-transfor=* \ | |
1171 | | --program-transfo=* | --program-transf=* \ | |
1172 | | --program-trans=* | --program-tran=* \ | |
1173 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1174 | program_transform_name=$ac_optarg ;; |
671aa708 | 1175 | |
5213506e RW |
1176 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1177 | ac_prev=pdfdir ;; | |
1178 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1179 | pdfdir=$ac_optarg ;; | |
1180 | ||
1181 | -psdir | --psdir | --psdi | --psd | --ps) | |
1182 | ac_prev=psdir ;; | |
1183 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1184 | psdir=$ac_optarg ;; | |
1185 | ||
671aa708 NN |
1186 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1187 | | -silent | --silent | --silen | --sile | --sil) | |
1188 | silent=yes ;; | |
1189 | ||
1190 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1191 | ac_prev=sbindir ;; | |
1192 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1193 | | --sbi=* | --sb=*) | |
1c710c3c | 1194 | sbindir=$ac_optarg ;; |
671aa708 NN |
1195 | |
1196 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1197 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1198 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1199 | | --sha | --sh) | |
1200 | ac_prev=sharedstatedir ;; | |
1201 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1202 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1203 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1204 | | --sha=* | --sh=*) | |
1c710c3c | 1205 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1206 | |
1207 | -site | --site | --sit) | |
1208 | ac_prev=site ;; | |
1209 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1210 | site=$ac_optarg ;; |
671aa708 NN |
1211 | |
1212 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1213 | ac_prev=srcdir ;; | |
1214 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1215 | srcdir=$ac_optarg ;; |
671aa708 NN |
1216 | |
1217 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1218 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1219 | ac_prev=sysconfdir ;; | |
1220 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1221 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1222 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1223 | |
1224 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1225 | ac_prev=target_alias ;; |
671aa708 | 1226 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1227 | target_alias=$ac_optarg ;; |
671aa708 NN |
1228 | |
1229 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1230 | verbose=yes ;; | |
1231 | ||
1c710c3c DJ |
1232 | -version | --version | --versio | --versi | --vers | -V) |
1233 | ac_init_version=: ;; | |
671aa708 NN |
1234 | |
1235 | -with-* | --with-*) | |
5213506e | 1236 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1237 | # Reject names that are not valid shell variable names. |
5213506e | 1238 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1239 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1240 | ac_useropt_orig=$ac_useropt |
1241 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1242 | case $ac_user_opts in | |
1243 | *" | |
1244 | "with_$ac_useropt" | |
1245 | "*) ;; | |
1246 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1247 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1248 | esac |
5213506e | 1249 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1250 | |
1251 | -without-* | --without-*) | |
5213506e | 1252 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1253 | # Reject names that are not valid shell variable names. |
5213506e | 1254 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1255 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1256 | ac_useropt_orig=$ac_useropt |
1257 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1258 | case $ac_user_opts in | |
1259 | *" | |
1260 | "with_$ac_useropt" | |
1261 | "*) ;; | |
1262 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1263 | ac_unrecognized_sep=', ';; | |
1264 | esac | |
1265 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1266 | |
1267 | --x) | |
1268 | # Obsolete; use --with-x. | |
1269 | with_x=yes ;; | |
1270 | ||
1271 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1272 | | --x-incl | --x-inc | --x-in | --x-i) | |
1273 | ac_prev=x_includes ;; | |
1274 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1275 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1276 | x_includes=$ac_optarg ;; |
671aa708 NN |
1277 | |
1278 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1279 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1280 | ac_prev=x_libraries ;; | |
1281 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1282 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1283 | x_libraries=$ac_optarg ;; |
671aa708 | 1284 | |
22e05272 JM |
1285 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1286 | Try \`$0 --help' for more information" | |
671aa708 NN |
1287 | ;; |
1288 | ||
1c710c3c DJ |
1289 | *=*) |
1290 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1291 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1292 | case $ac_envvar in #( |
1293 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1294 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1295 | esac |
1296 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1297 | export $ac_envvar ;; |
1298 | ||
671aa708 | 1299 | *) |
1c710c3c | 1300 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1301 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1302 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1303 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1304 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1305 | ;; |
1306 | ||
1307 | esac | |
1308 | done | |
1309 | ||
1310 | if test -n "$ac_prev"; then | |
1c710c3c | 1311 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1312 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1313 | fi |
af71363e | 1314 | |
5213506e RW |
1315 | if test -n "$ac_unrecognized_opts"; then |
1316 | case $enable_option_checking in | |
1317 | no) ;; | |
22e05272 | 1318 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1319 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1320 | esac |
5213506e | 1321 | fi |
2aeb72e9 | 1322 | |
5213506e RW |
1323 | # Check all directory arguments for consistency. |
1324 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1325 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1326 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1327 | libdir localedir mandir | |
2aeb72e9 | 1328 | do |
5213506e RW |
1329 | eval ac_val=\$$ac_var |
1330 | # Remove trailing slashes. | |
1331 | case $ac_val in | |
1332 | */ ) | |
1333 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1334 | eval $ac_var=\$ac_val;; | |
1335 | esac | |
1336 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1337 | case $ac_val in |
5213506e RW |
1338 | [\\/$]* | ?:[\\/]* ) continue;; |
1339 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1340 | esac |
22e05272 | 1341 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1342 | done |
1343 | ||
1c710c3c DJ |
1344 | # There might be people who depend on the old broken behavior: `$host' |
1345 | # used to hold the argument of --host etc. | |
1346 | # FIXME: To remove some day. | |
1347 | build=$build_alias | |
1348 | host=$host_alias | |
1349 | target=$target_alias | |
0b0dc272 | 1350 | |
1c710c3c DJ |
1351 | # FIXME: To remove some day. |
1352 | if test "x$host_alias" != x; then | |
1353 | if test "x$build_alias" = x; then | |
1354 | cross_compiling=maybe | |
1c710c3c DJ |
1355 | elif test "x$build_alias" != "x$host_alias"; then |
1356 | cross_compiling=yes | |
1357 | fi | |
1358 | fi | |
1359 | ||
1360 | ac_tool_prefix= | |
1361 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1362 | ||
1363 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1364 | |
671aa708 | 1365 | |
5213506e RW |
1366 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1367 | ac_ls_di=`ls -di .` && | |
1368 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1369 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1370 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1371 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1372 | |
1373 | ||
671aa708 NN |
1374 | # Find the source files, if location was not specified. |
1375 | if test -z "$srcdir"; then | |
1376 | ac_srcdir_defaulted=yes | |
5213506e RW |
1377 | # Try the directory containing this script, then the parent directory. |
1378 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1379 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1380 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1381 | X"$as_myself" : 'X\(//\)$' \| \ | |
1382 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1383 | $as_echo X"$as_myself" | | |
1384 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | /^X\(\/\/\)[^/].*/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | /^X\(\/\/\)$/{ | |
1393 | s//\1/ | |
1394 | q | |
1395 | } | |
1396 | /^X\(\/\).*/{ | |
1397 | s//\1/ | |
1398 | q | |
1399 | } | |
1400 | s/.*/./; q'` | |
671aa708 | 1401 | srcdir=$ac_confdir |
5213506e | 1402 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1403 | srcdir=.. |
1404 | fi | |
1405 | else | |
1406 | ac_srcdir_defaulted=no | |
1407 | fi | |
5213506e RW |
1408 | if test ! -r "$srcdir/$ac_unique_file"; then |
1409 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1410 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1411 | fi |
1412 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1413 | ac_abs_confdir=`( | |
22e05272 | 1414 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1415 | pwd)` |
1416 | # When building in place, set srcdir=. | |
1417 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1418 | srcdir=. | |
1419 | fi | |
1420 | # Remove unnecessary trailing slashes from srcdir. | |
1421 | # Double slashes in file names in object file debugging info | |
1422 | # mess up M-x gdb in Emacs. | |
1423 | case $srcdir in | |
1424 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1425 | esac | |
87841584 AM |
1426 | case $srcdir in |
1427 | *" "*) | |
22e05272 | 1428 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1429 | ;; |
1430 | esac | |
ac9e6043 RW |
1431 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1432 | ||
5213506e RW |
1433 | for ac_var in $ac_precious_vars; do |
1434 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1435 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1436 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1437 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1438 | done | |
1c710c3c DJ |
1439 | |
1440 | # | |
1441 | # Report the --help message. | |
1442 | # | |
1443 | if test "$ac_init_help" = "long"; then | |
1444 | # Omit some internal or obsolete options to make the list less imposing. | |
1445 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1446 | cat <<_ACEOF | |
1447 | \`configure' configures this package to adapt to many kinds of systems. | |
1448 | ||
1449 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1450 | ||
1451 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1452 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1453 | ||
1454 | Defaults for the options are specified in brackets. | |
1455 | ||
1456 | Configuration: | |
1457 | -h, --help display this help and exit | |
1458 | --help=short display options specific to this package | |
1459 | --help=recursive display the short help of all the included packages | |
1460 | -V, --version display version information and exit | |
22e05272 | 1461 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1462 | --cache-file=FILE cache test results in FILE [disabled] |
1463 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1464 | -n, --no-create do not create output files | |
1465 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1466 | ||
1c710c3c DJ |
1467 | Installation directories: |
1468 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1469 | [$ac_default_prefix] |
1c710c3c | 1470 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1471 | [PREFIX] |
1c710c3c DJ |
1472 | |
1473 | By default, \`make install' will install all the files in | |
1474 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1475 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1476 | for instance \`--prefix=\$HOME'. | |
1477 | ||
1478 | For better control, use the options below. | |
1479 | ||
1480 | Fine tuning of the installation directories: | |
5213506e RW |
1481 | --bindir=DIR user executables [EPREFIX/bin] |
1482 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1483 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1484 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1485 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1486 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1487 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1488 | --includedir=DIR C header files [PREFIX/include] | |
1489 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1490 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1491 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1492 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1493 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1494 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1495 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1496 | --htmldir=DIR html documentation [DOCDIR] | |
1497 | --dvidir=DIR dvi documentation [DOCDIR] | |
1498 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1499 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1500 | _ACEOF |
1501 | ||
1502 | cat <<\_ACEOF | |
1503 | ||
1504 | Program names: | |
1505 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1506 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1507 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1508 | ||
1509 | System types: | |
1510 | --build=BUILD configure for building on BUILD [guessed] | |
1511 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1512 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1513 | _ACEOF | |
1514 | fi | |
1515 | ||
1516 | if test -n "$ac_init_help"; then | |
1517 | ||
1518 | cat <<\_ACEOF | |
1519 | ||
1520 | Optional Features: | |
5213506e | 1521 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1522 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1523 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1524 | --enable-as-accelerator-for=ARG |
1525 | build as offload target compiler. Specify offload | |
1526 | host triple by ARG | |
1527 | --enable-offload-targets=LIST | |
1528 | enable offloading to devices from comma-separated | |
1529 | LIST of TARGET[=DIR]. Use optional path to find | |
1530 | offload target compiler during the build | |
fe5bfa67 TB |
1531 | --enable-offload-defaulted |
1532 | If enabled, configured but not installed offload compilers and | |
1533 | libgomp plugins are silently ignored. Useful for distribution | |
1534 | compilers where those are in separate optional packages. | |
1535 | ||
21539e2e | 1536 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1537 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1538 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1539 | Enable compressed debug sections for gas, gold or ld |
1540 | by default | |
87e6d9dc TB |
1541 | --disable-libquadmath do not build libquadmath directory |
1542 | --disable-libquadmath-support | |
1543 | disable libquadmath support for Fortran | |
30b74385 RW |
1544 | --enable-libada build libada directory |
1545 | --enable-libssp build libssp directory | |
1873ec0c | 1546 | --disable-libstdcxx do not build libstdc++-v3 directory |
ff3ac0f4 | 1547 | --enable-bootstrap enable bootstrapping [yes if native build] |
4a5e71f2 L |
1548 | --enable-pgo-build[=lto] |
1549 | enable the PGO build | |
33ad93b9 | 1550 | --disable-isl-version-check |
560d18d3 | 1551 | disable check for isl version |
d7f09764 | 1552 | --enable-lto enable link time optimization support |
45b3824d TS |
1553 | --enable-linker-plugin-configure-flags=FLAGS |
1554 | additional flags for configuring linker plugins | |
1555 | [none] | |
1556 | --enable-linker-plugin-flags=FLAGS | |
1557 | additional flags for configuring and building linker | |
1558 | plugins [none] | |
cdfee50a | 1559 | --enable-host-shared build host code as shared libraries |
251c72a6 | 1560 | --enable-host-pie build host code as PIE |
33e39b66 AS |
1561 | --enable-stage1-languages[=all] |
1562 | choose additional languages to build during stage1. | |
1563 | Mostly useful for compiler development | |
43c40f3e RO |
1564 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1565 | Objective-C runtime | |
318a4e6d | 1566 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1567 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1568 | force sequential configuration of sub-packages for |
1569 | the host, target or build machine, or all | |
1570 | sub-packages | |
1571 | --enable-maintainer-mode | |
1572 | enable make rules and dependencies not useful (and | |
1573 | sometimes confusing) to the casual installer | |
1574 | --enable-stage1-checking[=all] | |
1575 | choose additional checking for stage1 of the | |
1576 | compiler | |
1c710c3c DJ |
1577 | --enable-werror enable -Werror in bootstrap stage2 and later |
1578 | ||
1579 | Optional Packages: | |
1580 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1581 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1582 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1583 | --with-system-zlib use installed libz |
33e39b66 AS |
1584 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1585 | Equivalent to --with-mpc-include=PATH/include plus | |
1586 | --with-mpc-lib=PATH/lib | |
1587 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1588 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 | 1589 | --with-mpfr=PATH specify prefix directory for installed MPFR package. |
33e39b66 AS |
1590 | Equivalent to --with-mpfr-include=PATH/include plus |
1591 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1592 | --with-mpfr-include=PATH |
30b74385 RW |
1593 | specify directory for installed MPFR include files |
1594 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
33e39b66 AS |
1595 | --with-gmp=PATH specify prefix directory for the installed GMP |
1596 | package. Equivalent to | |
1597 | --with-gmp-include=PATH/include plus | |
1598 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1599 | --with-gmp-include=PATH specify directory for installed GMP include files |
1600 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1601 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1602 | --with-static-standard-libraries |
1603 | use -static-libstdc++ and -static-libgcc | |
1604 | (default=auto) | |
33e39b66 AS |
1605 | --with-stage1-ldflags=FLAGS |
1606 | linker flags for stage1 | |
33e39b66 AS |
1607 | --with-boot-libs=LIBS libraries for stage2 and later |
1608 | --with-boot-ldflags=FLAGS | |
1609 | linker flags for stage2 and later | |
e357a5e0 | 1610 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1611 | package. Equivalent to |
33ad93b9 RG |
1612 | --with-isl-include=PATH/include plus |
1613 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1614 | --with-isl-include=PATH Specify directory for installed isl include files |
1615 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1616 | --with-target-bdw-gc=PATHLIST |
1617 | specify prefix directory for installed bdw-gc | |
1618 | package. Equivalent to | |
1619 | --with-target-bdw-gc-include=PATH/include plus | |
1620 | --with-target-bdw-gc-lib=PATH/lib | |
1621 | --with-target-bdw-gc-include=PATHLIST | |
1622 | specify directories for installed bdw-gc include | |
1623 | files | |
1624 | --with-target-bdw-gc-lib=PATHLIST | |
1625 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1626 | --with-gcc-major-version-only |
1627 | use only GCC major number in filesystem paths | |
30b74385 | 1628 | --with-build-sysroot=SYSROOT |
1c710c3c | 1629 | use sysroot as the system root during the build |
c8aea42c | 1630 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1631 | map A to B, C to D ... in debug information |
1632 | --with-build-config='NAME NAME2...' | |
1633 | use config/NAME.mk build configuration | |
30b74385 | 1634 | --with-build-time-tools=PATH |
1c710c3c | 1635 | use given path to find target tools during the build |
1c710c3c DJ |
1636 | |
1637 | Some influential environment variables: | |
1638 | CC C compiler command | |
1639 | CFLAGS C compiler flags | |
1640 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1641 | nonstandard directory <lib dir> | |
5213506e | 1642 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1643 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1644 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1645 | CXX C++ compiler command |
1646 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1647 | build_configargs |
1648 | additional configure arguments for build directories | |
1649 | host_configargs | |
1650 | additional configure arguments for host directories | |
1651 | target_configargs | |
1652 | additional configure arguments for target directories | |
278a7a38 AO |
1653 | AR AR for the host |
1654 | AS AS for the host | |
1655 | DLLTOOL DLLTOOL for the host | |
3b5e8ee4 | 1656 | DSYMUTIL DSYMUTIL for the host |
278a7a38 AO |
1657 | LD LD for the host |
1658 | LIPO LIPO for the host | |
1659 | NM NM for the host | |
1660 | RANLIB RANLIB for the host | |
1661 | STRIP STRIP for the host | |
1662 | WINDRES WINDRES for the host | |
901119ae | 1663 | WINDMC WINDMC for the host |
278a7a38 AO |
1664 | OBJCOPY OBJCOPY for the host |
1665 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1666 | OTOOL OTOOL for the host |
e7a82751 | 1667 | READELF READELF for the host |
278a7a38 AO |
1668 | CC_FOR_TARGET |
1669 | CC for the target | |
1670 | CXX_FOR_TARGET | |
1671 | CXX for the target | |
1672 | GCC_FOR_TARGET | |
1673 | GCC for the target | |
278a7a38 AO |
1674 | GFORTRAN_FOR_TARGET |
1675 | GFORTRAN for the target | |
632e2a07 ILT |
1676 | GOC_FOR_TARGET |
1677 | GOC for the target | |
b4c522fa IB |
1678 | GDC_FOR_TARGET |
1679 | GDC for the target | |
278a7a38 AO |
1680 | AR_FOR_TARGET |
1681 | AR for the target | |
1682 | AS_FOR_TARGET | |
1683 | AS for the target | |
1684 | DLLTOOL_FOR_TARGET | |
1685 | DLLTOOL for the target | |
3b5e8ee4 IS |
1686 | DSYMUTIL_FOR_TARGET |
1687 | DSYMUTIL for the target | |
278a7a38 AO |
1688 | LD_FOR_TARGET |
1689 | LD for the target | |
1690 | LIPO_FOR_TARGET | |
1691 | LIPO for the target | |
1692 | NM_FOR_TARGET | |
1693 | NM for the target | |
9bccfdf5 AP |
1694 | OBJCOPY_FOR_TARGET |
1695 | OBJCOPY for the target | |
278a7a38 AO |
1696 | OBJDUMP_FOR_TARGET |
1697 | OBJDUMP for the target | |
e4a9a572 IS |
1698 | OTOOL_FOR_TARGET |
1699 | OTOOL for the target | |
278a7a38 AO |
1700 | RANLIB_FOR_TARGET |
1701 | RANLIB for the target | |
e7a82751 RM |
1702 | READELF_FOR_TARGET |
1703 | READELF for the target | |
278a7a38 AO |
1704 | STRIP_FOR_TARGET |
1705 | STRIP for the target | |
1706 | WINDRES_FOR_TARGET | |
1707 | WINDRES for the target | |
901119ae KT |
1708 | WINDMC_FOR_TARGET |
1709 | WINDMC for the target | |
1c710c3c DJ |
1710 | |
1711 | Use these variables to override the choices made by `configure' or to help | |
1712 | it to find libraries and programs with nonstandard names/locations. | |
1713 | ||
5213506e | 1714 | Report bugs to the package provider. |
1c710c3c | 1715 | _ACEOF |
5213506e | 1716 | ac_status=$? |
1c710c3c DJ |
1717 | fi |
1718 | ||
1719 | if test "$ac_init_help" = "recursive"; then | |
1720 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1721 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1722 | test -d "$ac_dir" || |
1723 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1724 | continue | |
1c710c3c DJ |
1725 | ac_builddir=. |
1726 | ||
5213506e RW |
1727 | case "$ac_dir" in |
1728 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1729 | *) | |
1730 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1731 | # A ".." for each directory in $ac_dir_suffix. | |
1732 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1733 | case $ac_top_builddir_sub in | |
1734 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1735 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1736 | esac ;; | |
1737 | esac | |
1738 | ac_abs_top_builddir=$ac_pwd | |
1739 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1740 | # for backward compatibility: | |
1741 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1742 | |
1743 | case $srcdir in | |
5213506e | 1744 | .) # We are building in place. |
1c710c3c | 1745 | ac_srcdir=. |
5213506e RW |
1746 | ac_top_srcdir=$ac_top_builddir_sub |
1747 | ac_abs_top_srcdir=$ac_pwd ;; | |
1748 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1749 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1750 | ac_top_srcdir=$srcdir |
1751 | ac_abs_top_srcdir=$srcdir ;; | |
1752 | *) # Relative name. | |
1753 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1754 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1755 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1756 | esac |
5213506e RW |
1757 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1758 | ||
1759 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1760 | # Check for guested configure. | |
1761 | if test -f "$ac_srcdir/configure.gnu"; then | |
1762 | echo && | |
1763 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1764 | elif test -f "$ac_srcdir/configure"; then | |
1765 | echo && | |
1766 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1767 | else |
5213506e RW |
1768 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1769 | fi || ac_status=$? | |
1770 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1771 | done |
1772 | fi | |
1773 | ||
5213506e | 1774 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1775 | if $ac_init_version; then |
1776 | cat <<\_ACEOF | |
5213506e | 1777 | configure |
22e05272 | 1778 | generated by GNU Autoconf 2.69 |
1c710c3c | 1779 | |
22e05272 | 1780 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1781 | This configure script is free software; the Free Software Foundation |
1782 | gives unlimited permission to copy, distribute and modify it. | |
1783 | _ACEOF | |
5213506e | 1784 | exit |
0b0dc272 | 1785 | fi |
5213506e RW |
1786 | |
1787 | ## ------------------------ ## | |
1788 | ## Autoconf initialization. ## | |
1789 | ## ------------------------ ## | |
1790 | ||
1791 | # ac_fn_c_try_compile LINENO | |
1792 | # -------------------------- | |
1793 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1794 | ac_fn_c_try_compile () | |
1795 | { | |
1796 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1797 | rm -f conftest.$ac_objext | |
1798 | if { { ac_try="$ac_compile" | |
1799 | case "(($ac_try" in | |
1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1801 | *) ac_try_echo=$ac_try;; | |
1802 | esac | |
1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1804 | $as_echo "$ac_try_echo"; } >&5 | |
1805 | (eval "$ac_compile") 2>conftest.err | |
1806 | ac_status=$? | |
1807 | if test -s conftest.err; then | |
1808 | grep -v '^ *+' conftest.err >conftest.er1 | |
1809 | cat conftest.er1 >&5 | |
1810 | mv -f conftest.er1 conftest.err | |
1811 | fi | |
1812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1813 | test $ac_status = 0; } && { | |
1814 | test -z "$ac_c_werror_flag" || | |
1815 | test ! -s conftest.err | |
1816 | } && test -s conftest.$ac_objext; then : | |
1817 | ac_retval=0 | |
1818 | else | |
1819 | $as_echo "$as_me: failed program was:" >&5 | |
1820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1821 | ||
1822 | ac_retval=1 | |
1823 | fi | |
22e05272 JM |
1824 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1825 | as_fn_set_status $ac_retval | |
5213506e RW |
1826 | |
1827 | } # ac_fn_c_try_compile | |
1828 | ||
1829 | # ac_fn_cxx_try_compile LINENO | |
1830 | # ---------------------------- | |
1831 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1832 | ac_fn_cxx_try_compile () | |
1833 | { | |
1834 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1835 | rm -f conftest.$ac_objext | |
1836 | if { { ac_try="$ac_compile" | |
1837 | case "(($ac_try" in | |
1838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1839 | *) ac_try_echo=$ac_try;; | |
1840 | esac | |
1841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1842 | $as_echo "$ac_try_echo"; } >&5 | |
1843 | (eval "$ac_compile") 2>conftest.err | |
1844 | ac_status=$? | |
1845 | if test -s conftest.err; then | |
1846 | grep -v '^ *+' conftest.err >conftest.er1 | |
1847 | cat conftest.er1 >&5 | |
1848 | mv -f conftest.er1 conftest.err | |
1849 | fi | |
1850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1851 | test $ac_status = 0; } && { | |
1852 | test -z "$ac_cxx_werror_flag" || | |
1853 | test ! -s conftest.err | |
1854 | } && test -s conftest.$ac_objext; then : | |
1855 | ac_retval=0 | |
1856 | else | |
1857 | $as_echo "$as_me: failed program was:" >&5 | |
1858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1859 | ||
1860 | ac_retval=1 | |
1861 | fi | |
22e05272 JM |
1862 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1863 | as_fn_set_status $ac_retval | |
5213506e RW |
1864 | |
1865 | } # ac_fn_cxx_try_compile | |
1866 | ||
0b21f5d3 EB |
1867 | # ac_fn_cxx_try_link LINENO |
1868 | # ------------------------- | |
1869 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1870 | ac_fn_cxx_try_link () | |
1871 | { | |
1872 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1874 | if { { ac_try="$ac_link" | |
1875 | case "(($ac_try" in | |
1876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1877 | *) ac_try_echo=$ac_try;; | |
1878 | esac | |
1879 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1880 | $as_echo "$ac_try_echo"; } >&5 | |
1881 | (eval "$ac_link") 2>conftest.err | |
1882 | ac_status=$? | |
1883 | if test -s conftest.err; then | |
1884 | grep -v '^ *+' conftest.err >conftest.er1 | |
1885 | cat conftest.er1 >&5 | |
1886 | mv -f conftest.er1 conftest.err | |
1887 | fi | |
1888 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1889 | test $ac_status = 0; } && { | |
1890 | test -z "$ac_cxx_werror_flag" || | |
1891 | test ! -s conftest.err | |
1892 | } && test -s conftest$ac_exeext && { | |
1893 | test "$cross_compiling" = yes || | |
22e05272 | 1894 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1895 | }; then : |
1896 | ac_retval=0 | |
1897 | else | |
1898 | $as_echo "$as_me: failed program was:" >&5 | |
1899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1900 | ||
1901 | ac_retval=1 | |
1902 | fi | |
1903 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1904 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1905 | # interfere with the next link command; also delete a directory that is | |
1906 | # left behind by Apple's compiler. We do this before executing the actions. | |
1907 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1908 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1909 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1910 | |
1911 | } # ac_fn_cxx_try_link | |
1912 | ||
5213506e RW |
1913 | # ac_fn_c_try_link LINENO |
1914 | # ----------------------- | |
1915 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1916 | ac_fn_c_try_link () | |
1917 | { | |
1918 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1920 | if { { ac_try="$ac_link" | |
1921 | case "(($ac_try" in | |
1922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1923 | *) ac_try_echo=$ac_try;; | |
1924 | esac | |
1925 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1926 | $as_echo "$ac_try_echo"; } >&5 | |
1927 | (eval "$ac_link") 2>conftest.err | |
1928 | ac_status=$? | |
1929 | if test -s conftest.err; then | |
1930 | grep -v '^ *+' conftest.err >conftest.er1 | |
1931 | cat conftest.er1 >&5 | |
1932 | mv -f conftest.er1 conftest.err | |
1933 | fi | |
1934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1935 | test $ac_status = 0; } && { | |
1936 | test -z "$ac_c_werror_flag" || | |
1937 | test ! -s conftest.err | |
1938 | } && test -s conftest$ac_exeext && { | |
1939 | test "$cross_compiling" = yes || | |
22e05272 | 1940 | test -x conftest$ac_exeext |
5213506e RW |
1941 | }; then : |
1942 | ac_retval=0 | |
1943 | else | |
1944 | $as_echo "$as_me: failed program was:" >&5 | |
1945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1946 | ||
1947 | ac_retval=1 | |
1948 | fi | |
1949 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1950 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1951 | # interfere with the next link command; also delete a directory that is | |
1952 | # left behind by Apple's compiler. We do this before executing the actions. | |
1953 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1954 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1955 | as_fn_set_status $ac_retval | |
5213506e RW |
1956 | |
1957 | } # ac_fn_c_try_link | |
1958 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1959 | This file contains any messages produced by compilers while |
1960 | running configure, to aid debugging if configure makes a mistake. | |
1961 | ||
1962 | It was created by $as_me, which was | |
22e05272 | 1963 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1964 | |
1965 | $ $0 $@ | |
1966 | ||
1967 | _ACEOF | |
5213506e | 1968 | exec 5>>config.log |
1c710c3c DJ |
1969 | { |
1970 | cat <<_ASUNAME | |
1971 | ## --------- ## | |
1972 | ## Platform. ## | |
1973 | ## --------- ## | |
1974 | ||
1975 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1976 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1977 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1978 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1979 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1980 | ||
1981 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1982 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1983 | ||
1984 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1985 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1986 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1987 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1988 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1989 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1990 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1991 | ||
1992 | _ASUNAME | |
1993 | ||
1994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1995 | for as_dir in $PATH | |
1996 | do | |
1997 | IFS=$as_save_IFS | |
1998 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1999 | $as_echo "PATH: $as_dir" |
2000 | done | |
2001 | IFS=$as_save_IFS | |
1c710c3c DJ |
2002 | |
2003 | } >&5 | |
2004 | ||
2005 | cat >&5 <<_ACEOF | |
2006 | ||
2007 | ||
2008 | ## ----------- ## | |
2009 | ## Core tests. ## | |
2010 | ## ----------- ## | |
2011 | ||
2012 | _ACEOF | |
2013 | ||
2014 | ||
2015 | # Keep a trace of the command line. | |
2016 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2017 | # Strip out --silent because we don't want to record it for future runs. | |
2018 | # Also quote any args containing shell meta-characters. | |
2019 | # Make two passes to allow for proper duplicate-argument suppression. | |
2020 | ac_configure_args= | |
2021 | ac_configure_args0= | |
2022 | ac_configure_args1= | |
1c710c3c DJ |
2023 | ac_must_keep_next=false |
2024 | for ac_pass in 1 2 | |
2025 | do | |
2026 | for ac_arg | |
2027 | do | |
2028 | case $ac_arg in | |
2029 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2030 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2031 | | -silent | --silent | --silen | --sile | --sil) | |
2032 | continue ;; | |
5213506e RW |
2033 | *\'*) |
2034 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2035 | esac |
2036 | case $ac_pass in | |
5213506e | 2037 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2038 | 2) |
5213506e | 2039 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2040 | if test $ac_must_keep_next = true; then |
2041 | ac_must_keep_next=false # Got value, back to normal. | |
2042 | else | |
2043 | case $ac_arg in | |
2044 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2045 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2046 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2047 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2048 | case "$ac_configure_args0 " in | |
2049 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2050 | esac | |
2051 | ;; | |
2052 | -* ) ac_must_keep_next=true ;; | |
2053 | esac | |
2054 | fi | |
5213506e | 2055 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2056 | ;; |
2057 | esac | |
2058 | done | |
2059 | done | |
5213506e RW |
2060 | { ac_configure_args0=; unset ac_configure_args0;} |
2061 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2062 | |
2063 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2064 | # config.log. We remove comments because anyway the quotes in there | |
2065 | # would cause problems or look ugly. | |
5213506e RW |
2066 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2067 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2068 | trap 'exit_status=$? |
2069 | # Save into config.log some information that might help in debugging. | |
2070 | { | |
2071 | echo | |
2072 | ||
22e05272 | 2073 | $as_echo "## ---------------- ## |
1c710c3c | 2074 | ## Cache variables. ## |
22e05272 | 2075 | ## ---------------- ##" |
1c710c3c DJ |
2076 | echo |
2077 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2078 | ( |
2079 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2080 | eval ac_val=\$$ac_var | |
2081 | case $ac_val in #( | |
2082 | *${as_nl}*) | |
2083 | case $ac_var in #( | |
2084 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2085 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2086 | esac | |
2087 | case $ac_var in #( | |
2088 | _ | IFS | as_nl) ;; #( | |
2089 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2090 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2091 | esac ;; | |
2092 | esac | |
2093 | done | |
1c710c3c | 2094 | (set) 2>&1 | |
5213506e RW |
2095 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2096 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2097 | sed -n \ |
5213506e RW |
2098 | "s/'\''/'\''\\\\'\'''\''/g; |
2099 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2100 | ;; #( | |
1c710c3c | 2101 | *) |
5213506e | 2102 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2103 | ;; |
5213506e RW |
2104 | esac | |
2105 | sort | |
2106 | ) | |
1c710c3c DJ |
2107 | echo |
2108 | ||
22e05272 | 2109 | $as_echo "## ----------------- ## |
1c710c3c | 2110 | ## Output variables. ## |
22e05272 | 2111 | ## ----------------- ##" |
1c710c3c DJ |
2112 | echo |
2113 | for ac_var in $ac_subst_vars | |
2114 | do | |
5213506e RW |
2115 | eval ac_val=\$$ac_var |
2116 | case $ac_val in | |
2117 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2118 | esac | |
2119 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2120 | done | sort |
2121 | echo | |
2122 | ||
2123 | if test -n "$ac_subst_files"; then | |
22e05272 | 2124 | $as_echo "## ------------------- ## |
5213506e | 2125 | ## File substitutions. ## |
22e05272 | 2126 | ## ------------------- ##" |
1c710c3c DJ |
2127 | echo |
2128 | for ac_var in $ac_subst_files | |
2129 | do | |
5213506e RW |
2130 | eval ac_val=\$$ac_var |
2131 | case $ac_val in | |
2132 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2133 | esac | |
2134 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2135 | done | sort |
2136 | echo | |
2137 | fi | |
2138 | ||
2139 | if test -s confdefs.h; then | |
22e05272 | 2140 | $as_echo "## ----------- ## |
1c710c3c | 2141 | ## confdefs.h. ## |
22e05272 | 2142 | ## ----------- ##" |
1c710c3c | 2143 | echo |
5213506e | 2144 | cat confdefs.h |
1c710c3c DJ |
2145 | echo |
2146 | fi | |
2147 | test "$ac_signal" != 0 && | |
5213506e RW |
2148 | $as_echo "$as_me: caught signal $ac_signal" |
2149 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2150 | } >&5 |
5213506e RW |
2151 | rm -f core *.core core.conftest.* && |
2152 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2153 | exit $exit_status |
5213506e | 2154 | ' 0 |
1c710c3c | 2155 | for ac_signal in 1 2 13 15; do |
5213506e | 2156 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2157 | done |
2158 | ac_signal=0 | |
2159 | ||
2160 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2161 | rm -f -r conftest* confdefs.h |
2162 | ||
2163 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2164 | |
2165 | # Predefined preprocessor variables. | |
2166 | ||
2167 | cat >>confdefs.h <<_ACEOF | |
2168 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2169 | _ACEOF | |
2170 | ||
1c710c3c DJ |
2171 | cat >>confdefs.h <<_ACEOF |
2172 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2173 | _ACEOF | |
2174 | ||
1c710c3c DJ |
2175 | cat >>confdefs.h <<_ACEOF |
2176 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2177 | _ACEOF | |
0b0dc272 | 2178 | |
1c710c3c DJ |
2179 | cat >>confdefs.h <<_ACEOF |
2180 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2181 | _ACEOF | |
2182 | ||
1c710c3c DJ |
2183 | cat >>confdefs.h <<_ACEOF |
2184 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2185 | _ACEOF | |
2186 | ||
5213506e RW |
2187 | cat >>confdefs.h <<_ACEOF |
2188 | #define PACKAGE_URL "$PACKAGE_URL" | |
2189 | _ACEOF | |
2190 | ||
1c710c3c DJ |
2191 | |
2192 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2193 | # Prefer an explicitly selected file to automatically selected ones. |
2194 | ac_site_file1=NONE | |
2195 | ac_site_file2=NONE | |
2196 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2197 | # We do not want a PATH search for config.site. |
2198 | case $CONFIG_SITE in #(( | |
2199 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2200 | */*) ac_site_file1=$CONFIG_SITE;; | |
2201 | *) ac_site_file1=./$CONFIG_SITE;; | |
2202 | esac | |
5213506e RW |
2203 | elif test "x$prefix" != xNONE; then |
2204 | ac_site_file1=$prefix/share/config.site | |
2205 | ac_site_file2=$prefix/etc/config.site | |
2206 | else | |
2207 | ac_site_file1=$ac_default_prefix/share/config.site | |
2208 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2209 | fi |
5213506e RW |
2210 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2211 | do | |
2212 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2213 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2215 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2216 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2217 | . "$ac_site_file" \ |
2218 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2220 | as_fn_error $? "failed to load site script $ac_site_file | |
2221 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2222 | fi |
2223 | done | |
2224 | ||
2225 | if test -r "$cache_file"; then | |
22e05272 JM |
2226 | # Some versions of bash will fail to source /dev/null (special files |
2227 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2228 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2229 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2230 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2231 | case $cache_file in |
5213506e RW |
2232 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2233 | *) . "./$cache_file";; | |
1c710c3c DJ |
2234 | esac |
2235 | fi | |
671aa708 | 2236 | else |
5213506e RW |
2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2238 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2239 | >$cache_file |
2240 | fi | |
2241 | ||
2242 | # Check that the precious variables saved in the cache have kept the same | |
2243 | # value. | |
2244 | ac_cache_corrupted=false | |
5213506e | 2245 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2246 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2247 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2248 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2249 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2250 | case $ac_old_set,$ac_new_set in |
2251 | set,) | |
5213506e RW |
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2253 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2254 | ac_cache_corrupted=: ;; |
2255 | ,set) | |
5213506e RW |
2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2257 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2258 | ac_cache_corrupted=: ;; |
2259 | ,);; | |
2260 | *) | |
2261 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2262 | # differences in whitespace do not lead to failure. |
2263 | ac_old_val_w=`echo x $ac_old_val` | |
2264 | ac_new_val_w=`echo x $ac_new_val` | |
2265 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2267 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2268 | ac_cache_corrupted=: | |
2269 | else | |
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2271 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2272 | eval $ac_var=\$ac_old_val | |
2273 | fi | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2275 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2277 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2278 | fi;; |
2279 | esac | |
2280 | # Pass precious variables to config.status. | |
2281 | if test "$ac_new_set" = set; then | |
2282 | case $ac_new_val in | |
5213506e | 2283 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2284 | *) ac_arg=$ac_var=$ac_new_val ;; |
2285 | esac | |
2286 | case " $ac_configure_args " in | |
2287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2288 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2289 | esac |
2290 | fi | |
2291 | done | |
2292 | if $ac_cache_corrupted; then | |
5213506e RW |
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2294 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2296 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2297 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2298 | fi |
5213506e RW |
2299 | ## -------------------- ## |
2300 | ## Main body of script. ## | |
2301 | ## -------------------- ## | |
671aa708 | 2302 | |
2aeb72e9 DD |
2303 | ac_ext=c |
2304 | ac_cpp='$CPP $CPPFLAGS' | |
2305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2308 | ||
1c710c3c DJ |
2309 | |
2310 | ||
2311 | ||
1c710c3c DJ |
2312 | |
2313 | ||
0115d4a3 | 2314 | |
1c710c3c | 2315 | |
ad33ff57 RW |
2316 | progname=$0 |
2317 | # if PWD already has a value, it is probably wrong. | |
2318 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2319 | ||
2320 | # Export original configure arguments for use by sub-configures. | |
2321 | # Quote arguments with shell meta charatcers. | |
2322 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2323 | set -- "$progname" "$@" | |
2324 | for ac_arg | |
2325 | do | |
2326 | case "$ac_arg" in | |
2327 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2328 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2329 | # if the argument is of the form -foo=baz, quote the baz part only | |
2330 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2331 | *) ;; | |
2332 | esac | |
2333 | # Add the quoted argument to the list. | |
2334 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2335 | done | |
2336 | if test "$silent" = yes; then | |
2337 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2338 | fi | |
2339 | # Remove the initial space we just introduced and, as these will be | |
2340 | # expanded by make, quote '$'. | |
2341 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2342 | ||
1c710c3c DJ |
2343 | |
2344 | # Find the build, host, and target systems. | |
671aa708 | 2345 | ac_aux_dir= |
5213506e | 2346 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2347 | if test -f "$ac_dir/install-sh"; then |
2348 | ac_aux_dir=$ac_dir | |
2349 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2350 | break | |
2351 | elif test -f "$ac_dir/install.sh"; then | |
2352 | ac_aux_dir=$ac_dir | |
2353 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2354 | break | |
2355 | elif test -f "$ac_dir/shtool"; then | |
2356 | ac_aux_dir=$ac_dir | |
2357 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2358 | break | |
2359 | fi | |
671aa708 NN |
2360 | done |
2361 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2362 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2363 | fi |
5213506e RW |
2364 | |
2365 | # These three variables are undocumented and unsupported, | |
2366 | # and are intended to be withdrawn in a future Autoconf release. | |
2367 | # They can cause serious problems if a builder's source tree is in a directory | |
2368 | # whose full name contains unusual characters. | |
2369 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2370 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2371 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2372 | ||
671aa708 | 2373 | |
1c710c3c | 2374 | # Make sure we can run config.sub. |
5213506e | 2375 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2376 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2377 | |
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2379 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2380 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2381 | $as_echo_n "(cached) " >&6 |
2382 | else | |
2383 | ac_build_alias=$build_alias | |
2384 | test "x$ac_build_alias" = x && | |
2385 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2386 | test "x$ac_build_alias" = x && | |
22e05272 | 2387 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2388 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2389 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2390 | |
2391 | fi | |
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2393 | $as_echo "$ac_cv_build" >&6; } | |
2394 | case $ac_cv_build in | |
2395 | *-*-*) ;; | |
22e05272 | 2396 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2397 | esac |
1c710c3c | 2398 | build=$ac_cv_build |
5213506e RW |
2399 | ac_save_IFS=$IFS; IFS='-' |
2400 | set x $ac_cv_build | |
2401 | shift | |
2402 | build_cpu=$1 | |
2403 | build_vendor=$2 | |
2404 | shift; shift | |
2405 | # Remember, the first character of IFS is used to create $*, | |
2406 | # except with old shells: | |
2407 | build_os=$* | |
2408 | IFS=$ac_save_IFS | |
2409 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2410 | |
671aa708 | 2411 | |
1c710c3c DJ |
2412 | case ${build_alias} in |
2413 | "") build_noncanonical=${build} ;; | |
2414 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2415 | esac |
2416 | ||
2417 | ||
af71363e | 2418 | |
1c710c3c DJ |
2419 | case ${host_alias} in |
2420 | "") host_noncanonical=${build_noncanonical} ;; | |
2421 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2422 | esac |
2423 | ||
af71363e | 2424 | |
1c710c3c DJ |
2425 | |
2426 | case ${target_alias} in | |
2427 | "") target_noncanonical=${host_noncanonical} ;; | |
2428 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2429 | esac |
2430 | ||
af71363e | 2431 | |
1c710c3c DJ |
2432 | |
2433 | ||
2434 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2435 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2436 | NONENONEs,x,x, && | |
1c710c3c | 2437 | program_transform_name=s,y,y, |
af71363e | 2438 | |
5213506e RW |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2440 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2441 | if ${ac_cv_host+:} false; then : |
5213506e | 2442 | $as_echo_n "(cached) " >&6 |
af71363e | 2443 | else |
5213506e RW |
2444 | if test "x$host_alias" = x; then |
2445 | ac_cv_host=$ac_cv_build | |
2446 | else | |
2447 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2448 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2449 | fi |
1c710c3c | 2450 | |
af71363e | 2451 | fi |
5213506e RW |
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2453 | $as_echo "$ac_cv_host" >&6; } | |
2454 | case $ac_cv_host in | |
2455 | *-*-*) ;; | |
22e05272 | 2456 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2457 | esac |
1c710c3c | 2458 | host=$ac_cv_host |
5213506e RW |
2459 | ac_save_IFS=$IFS; IFS='-' |
2460 | set x $ac_cv_host | |
2461 | shift | |
2462 | host_cpu=$1 | |
2463 | host_vendor=$2 | |
2464 | shift; shift | |
2465 | # Remember, the first character of IFS is used to create $*, | |
2466 | # except with old shells: | |
2467 | host_os=$* | |
2468 | IFS=$ac_save_IFS | |
2469 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2470 | |
2471 | ||
5213506e RW |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2473 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2474 | if ${ac_cv_target+:} false; then : |
5213506e | 2475 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2476 | else |
5213506e RW |
2477 | if test "x$target_alias" = x; then |
2478 | ac_cv_target=$ac_cv_host | |
2479 | else | |
2480 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2481 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2482 | fi |
1c710c3c DJ |
2483 | |
2484 | fi | |
5213506e RW |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2486 | $as_echo "$ac_cv_target" >&6; } | |
2487 | case $ac_cv_target in | |
2488 | *-*-*) ;; | |
22e05272 | 2489 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2490 | esac |
1c710c3c | 2491 | target=$ac_cv_target |
5213506e RW |
2492 | ac_save_IFS=$IFS; IFS='-' |
2493 | set x $ac_cv_target | |
2494 | shift | |
2495 | target_cpu=$1 | |
2496 | target_vendor=$2 | |
2497 | shift; shift | |
2498 | # Remember, the first character of IFS is used to create $*, | |
2499 | # except with old shells: | |
2500 | target_os=$* | |
2501 | IFS=$ac_save_IFS | |
2502 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2503 | |
2504 | ||
2505 | # The aliases save the names the user supplied, while $host etc. | |
2506 | # will get canonicalized. | |
2507 | test -n "$target_alias" && | |
2508 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2509 | NONENONEs,x,x, && | |
2510 | program_prefix=${target_alias}- | |
5213506e | 2511 | |
671aa708 | 2512 | test "$program_prefix" != NONE && |
5213506e | 2513 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2514 | # Use a double $ so make ignores it. |
2515 | test "$program_suffix" != NONE && | |
5213506e RW |
2516 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2517 | # Double any \ or $. | |
1c710c3c | 2518 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2519 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2520 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2521 | |
671aa708 NN |
2522 | |
2523 | ||
775956d0 NN |
2524 | # Get 'install' or 'install-sh' and its variants. |
2525 | # Find a good install program. We prefer a C program (faster), | |
2526 | # so one script is as good as another. But avoid the broken or | |
2527 | # incompatible versions: | |
2528 | # SysV /etc/install, /usr/sbin/install | |
2529 | # SunOS /usr/etc/install | |
2530 | # IRIX /sbin/install | |
2531 | # AIX /bin/install | |
1c710c3c | 2532 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2533 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2534 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2535 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2536 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2537 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2538 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2540 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2541 | if test -z "$INSTALL"; then |
22e05272 | 2542 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2543 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2544 | else |
2545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2546 | for as_dir in $PATH | |
2547 | do | |
2548 | IFS=$as_save_IFS | |
2549 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2550 | # Account for people who put trailing slashes in PATH elements. |
2551 | case $as_dir/ in #(( | |
2552 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2553 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2554 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2555 | /usr/ucb/* ) ;; |
2556 | *) | |
2557 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2558 | # Don't use installbsd from OSF since it installs stuff as root | |
2559 | # by default. | |
2560 | for ac_prog in ginstall scoinst install; do | |
2561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2562 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2563 | if test $ac_prog = install && |
1c710c3c | 2564 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2565 | # AIX install. It has an incompatible calling convention. |
2566 | : | |
1c710c3c DJ |
2567 | elif test $ac_prog = install && |
2568 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2569 | # program-specific install script used by HP pwplus--don't use. | |
2570 | : | |
775956d0 | 2571 | else |
38d24731 RW |
2572 | rm -rf conftest.one conftest.two conftest.dir |
2573 | echo one > conftest.one | |
2574 | echo two > conftest.two | |
2575 | mkdir conftest.dir | |
2576 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2577 | test -s conftest.one && test -s conftest.two && | |
2578 | test -s conftest.dir/conftest.one && | |
2579 | test -s conftest.dir/conftest.two | |
2580 | then | |
2581 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2582 | break 3 | |
2583 | fi | |
775956d0 NN |
2584 | fi |
2585 | fi | |
2586 | done | |
1c710c3c DJ |
2587 | done |
2588 | ;; | |
2589 | esac | |
5213506e RW |
2590 | |
2591 | done | |
2592 | IFS=$as_save_IFS | |
1c710c3c | 2593 | |
38d24731 | 2594 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2595 | |
2596 | fi | |
2597 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2598 | INSTALL=$ac_cv_path_install |
775956d0 | 2599 | else |
38d24731 RW |
2600 | # As a last resort, use the slow shell script. Don't cache a |
2601 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2602 | # break other packages using the cache if that directory is |
38d24731 | 2603 | # removed, or if the value is a relative name. |
1c710c3c | 2604 | INSTALL=$ac_install_sh |
775956d0 NN |
2605 | fi |
2606 | fi | |
5213506e RW |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2608 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2609 | |
2610 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2611 | # It thinks the first close brace ends the variable substitution. | |
2612 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2613 | ||
1c710c3c | 2614 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2615 | |
2616 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2617 | ||
5213506e RW |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2619 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2620 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2621 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2622 | else |
2623 | rm -f conftestdata_t | |
2624 | echo >conftestdata_f | |
2625 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2626 | then | |
2627 | acx_cv_prog_LN=ln | |
2628 | else | |
2629 | acx_cv_prog_LN=no | |
2630 | fi | |
2631 | rm -f conftestdata_f conftestdata_t | |
2632 | ||
2633 | fi | |
2634 | if test $acx_cv_prog_LN = no; then | |
2635 | LN="cp" | |
5213506e RW |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2637 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2638 | else |
2639 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2641 | $as_echo "yes" >&6; } | |
ad6717df PB |
2642 | fi |
2643 | ||
5213506e RW |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2645 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2646 | LN_S=$as_ln_s |
2647 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2649 | $as_echo "yes" >&6; } | |
fb0103e5 | 2650 | else |
5213506e RW |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2652 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2653 | fi |
2654 | ||
87264276 PB |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2656 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2657 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2658 | $as_echo_n "(cached) " >&6 |
2659 | else | |
2660 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2661 | for ac_i in 1 2 3 4 5 6 7; do | |
2662 | ac_script="$ac_script$as_nl$ac_script" | |
2663 | done | |
2664 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2665 | { ac_script=; unset ac_script;} | |
2666 | if test -z "$SED"; then | |
2667 | ac_path_SED_found=false | |
2668 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2670 | for as_dir in $PATH | |
2671 | do | |
2672 | IFS=$as_save_IFS | |
2673 | test -z "$as_dir" && as_dir=. | |
2674 | for ac_prog in sed gsed; do | |
2675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2676 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2677 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2678 | # Check for GNU ac_path_SED and select it if it is found. |
2679 | # Check for GNU $ac_path_SED | |
2680 | case `"$ac_path_SED" --version 2>&1` in | |
2681 | *GNU*) | |
2682 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2683 | *) | |
2684 | ac_count=0 | |
2685 | $as_echo_n 0123456789 >"conftest.in" | |
2686 | while : | |
2687 | do | |
2688 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2689 | mv "conftest.tmp" "conftest.in" | |
2690 | cp "conftest.in" "conftest.nl" | |
2691 | $as_echo '' >> "conftest.nl" | |
2692 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2693 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2694 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2695 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2696 | # Best one so far, save it but keep looking for a better one | |
2697 | ac_cv_path_SED="$ac_path_SED" | |
2698 | ac_path_SED_max=$ac_count | |
2699 | fi | |
2700 | # 10*(2^10) chars as input seems more than enough | |
2701 | test $ac_count -gt 10 && break | |
2702 | done | |
2703 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2704 | esac | |
2705 | ||
2706 | $ac_path_SED_found && break 3 | |
2707 | done | |
2708 | done | |
2709 | done | |
2710 | IFS=$as_save_IFS | |
2711 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2712 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2713 | fi |
2714 | else | |
2715 | ac_cv_path_SED=$SED | |
2716 | fi | |
2717 | ||
2718 | fi | |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2720 | $as_echo "$ac_cv_path_SED" >&6; } | |
2721 | SED="$ac_cv_path_SED" | |
2722 | rm -f conftest.sed | |
2723 | ||
2724 | for ac_prog in gawk mawk nawk awk | |
2725 | do | |
2726 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2727 | set dummy $ac_prog; ac_word=$2 | |
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2729 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2730 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2731 | $as_echo_n "(cached) " >&6 |
2732 | else | |
2733 | if test -n "$AWK"; then | |
2734 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2735 | else | |
2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2737 | for as_dir in $PATH | |
2738 | do | |
2739 | IFS=$as_save_IFS | |
2740 | test -z "$as_dir" && as_dir=. | |
2741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2743 | ac_cv_prog_AWK="$ac_prog" |
2744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2745 | break 2 | |
2746 | fi | |
2747 | done | |
2748 | done | |
2749 | IFS=$as_save_IFS | |
2750 | ||
2751 | fi | |
2752 | fi | |
2753 | AWK=$ac_cv_prog_AWK | |
2754 | if test -n "$AWK"; then | |
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2756 | $as_echo "$AWK" >&6; } | |
2757 | else | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2759 | $as_echo "no" >&6; } | |
2760 | fi | |
2761 | ||
2762 | ||
2763 | test -n "$AWK" && break | |
2764 | done | |
2765 | ||
775956d0 | 2766 | |
ee6a22df L |
2767 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2768 | ||
2769 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2770 | # a relative path. | |
2771 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2772 | INSTALL="${srcpwd}/install-sh -c" | |
2773 | fi | |
2774 | ||
671aa708 NN |
2775 | # Set srcdir to "." if that's what it is. |
2776 | # This is important for multilib support. | |
2777 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2778 | if test "${pwd}" = "${srcpwd}" ; then |
2779 | srcdir=. | |
79c06341 JL |
2780 | fi |
2781 | ||
671aa708 | 2782 | topsrcdir=$srcpwd |
5d4a5ee6 | 2783 | |
671aa708 | 2784 | extra_host_args= |
afabd8e6 | 2785 | |
671aa708 NN |
2786 | ### To add a new directory to the tree, first choose whether it is a target |
2787 | ### or a host dependent tool. Then put it into the appropriate list | |
2788 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2789 | |
1c710c3c | 2790 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2791 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2792 | |
1c710c3c DJ |
2793 | # Dependency sorting is only needed when *configuration* must be done in |
2794 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2795 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2796 | |
671aa708 NN |
2797 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2798 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2799 | |
23f6b2f9 PB |
2800 | # these library is used by various programs built for the build |
2801 | # environment | |
2802 | # | |
929315a9 | 2803 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2804 | |
2805 | # these tools are built for the build environment | |
85bfb75e | 2806 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2807 | |
671aa708 | 2808 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2809 | #f |
9d2d38a4 | 2810 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf" |
671aa708 | 2811 | |
671aa708 NN |
2812 | # these tools are built for the host environment |
2813 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2814 | # know that we are building the simulator. | |
2815 | # binutils, gas and ld appear in that order because it makes sense to run | |
2816 | # "make check" in that particular order. | |
38e3d868 | 2817 | # If --enable-gold is used, "gold" may replace "ld". |
2efd8b1f | 2818 | 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 c++tools" |
671aa708 | 2819 | |
671aa708 NN |
2820 | # these libraries are built for the target environment, and are built after |
2821 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2822 | # Note that libiberty is not a target library. |
291f172e | 2823 | target_libraries="target-libgcc \ |
eff02e4f | 2824 | target-libbacktrace \ |
671aa708 NN |
2825 | target-libgloss \ |
2826 | target-newlib \ | |
6d3b5aea | 2827 | target-libgomp \ |
48310492 | 2828 | target-libatomic \ |
0a35513e | 2829 | target-libitm \ |
cb543528 | 2830 | target-libstdc++-v3 \ |
f35db108 | 2831 | target-libsanitizer \ |
2077db1b | 2832 | target-libvtv \ |
77008252 | 2833 | target-libssp \ |
1ec601bf | 2834 | target-libquadmath \ |
6de9cd9a | 2835 | target-libgfortran \ |
012447ea | 2836 | target-libffi \ |
d9cdb878 | 2837 | target-libobjc \ |
632e2a07 | 2838 | target-libada \ |
b4c522fa | 2839 | target-libgo \ |
bb50312e IB |
2840 | target-libphobos \ |
2841 | target-zlib" | |
671aa708 | 2842 | |
4dbda6f0 NN |
2843 | # these tools are built using the target libraries, and are intended to |
2844 | # run only in the target environment | |
671aa708 | 2845 | # |
4dbda6f0 | 2846 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2847 | # list belongs in this list. |
671aa708 | 2848 | # |
85bfb75e | 2849 | target_tools="target-rda" |
79c06341 | 2850 | |
671aa708 | 2851 | ################################################################################ |
79c06341 | 2852 | |
671aa708 NN |
2853 | ## All tools belong in one of the four categories, and are assigned above |
2854 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2855 | ## is important because configure will choke if they ever get through. | |
2856 | ## ${configdirs} is directories we build using the host tools. | |
2857 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2858 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2859 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2860 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2861 | |
ac9e6043 RW |
2862 | |
2863 | ||
671aa708 | 2864 | ################################################################################ |
79c06341 | 2865 | |
671aa708 | 2866 | srcname="gnu development package" |
79c06341 | 2867 | |
671aa708 NN |
2868 | # This gets set non-empty for some net releases of packages. |
2869 | appdirs="" | |
79c06341 | 2870 | |
671aa708 NN |
2871 | # Define is_cross_compiler to save on calls to 'test'. |
2872 | is_cross_compiler= | |
2873 | if test x"${host}" = x"${target}" ; then | |
2874 | is_cross_compiler=no | |
79c06341 | 2875 | else |
671aa708 | 2876 | is_cross_compiler=yes |
1c710c3c | 2877 | fi |
79c06341 | 2878 | |
b4acb5ef | 2879 | # Find the build and target subdir names. |
8b87bb96 | 2880 | |
2e9e6f68 DJ |
2881 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2882 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2883 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2884 | # However, they still use the build modules, because the corresponding | |
2885 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2886 | # finishes. So: | |
2887 | # - build_subdir is where we find build modules, and never changes. | |
2888 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2889 | ||
2890 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2891 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2892 | |
5213506e RW |
2893 | # Check whether --with-build-libsubdir was given. |
2894 | if test "${with_build_libsubdir+set}" = set; then : | |
2895 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2896 | else |
2897 | build_libsubdir="$build_subdir" | |
5213506e RW |
2898 | fi |
2899 | ||
215c351a PB |
2900 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2901 | if ( test $srcdir = . && test -d gcc ) \ | |
2902 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2903 | host_subdir="host-${host_noncanonical}" | |
2904 | else | |
2905 | host_subdir=. | |
2906 | fi | |
8b87bb96 NN |
2907 | # No prefix. |
2908 | target_subdir=${target_noncanonical} | |
1c710c3c | 2909 | |
0db770bd RW |
2910 | # Be sure to cover against remnants of an in-tree build. |
2911 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2912 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2913 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2914 | fi | |
79c06341 | 2915 | |
671aa708 NN |
2916 | # Skipdirs are removed silently. |
2917 | skipdirs= | |
2918 | # Noconfigdirs are removed loudly. | |
2919 | noconfigdirs="" | |
79c06341 | 2920 | |
671aa708 NN |
2921 | use_gnu_ld= |
2922 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2923 | if test x$with_gnu_ld = xno ; then | |
2924 | use_gnu_ld=no | |
5afab7ad | 2925 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2926 | fi |
2927 | ||
671aa708 NN |
2928 | use_gnu_as= |
2929 | # Make sure we don't let GNU as be added if we didn't want it. | |
2930 | if test x$with_gnu_as = xno ; then | |
2931 | use_gnu_as=no | |
2932 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2933 | fi |
2934 | ||
d7f09764 | 2935 | use_included_zlib= |
a05c2c75 L |
2936 | |
2937 | # Check whether --with-system-zlib was given. | |
2938 | if test "${with_system_zlib+set}" = set; then : | |
2939 | withval=$with_system_zlib; | |
2940 | fi | |
2941 | ||
d7f09764 DN |
2942 | # Make sure we don't let ZLIB be added if we didn't want it. |
2943 | if test x$with_system_zlib = xyes ; then | |
2944 | use_included_zlib=no | |
2945 | noconfigdirs="$noconfigdirs zlib" | |
2946 | fi | |
2947 | ||
36ba9851 ДП |
2948 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2949 | # is provided. | |
2950 | if test x$with_system_readline = xyes ; then | |
2951 | noconfigdirs="$noconfigdirs readline" | |
2952 | fi | |
2953 | ||
1c710c3c | 2954 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2955 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2956 | |
671aa708 NN |
2957 | case ${with_x} in |
2958 | yes | "") ;; # the default value for this tree is that X11 is available | |
2959 | no) | |
b4f96efe | 2960 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2961 | # We won't be able to build gdbtk without X. |
1c710c3c | 2962 | enable_gdbtk=no |
671aa708 NN |
2963 | ;; |
2964 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2965 | esac | |
79c06341 | 2966 | |
1bcce263 | 2967 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2968 | # Remove these if host=target. |
2969 | cross_only="target-libgloss target-newlib target-opcodes" | |
2970 | ||
2971 | case $is_cross_compiler in | |
2972 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2973 | esac |
79c06341 | 2974 | |
671aa708 NN |
2975 | # If both --with-headers and --with-libs are specified, default to |
2976 | # --without-newlib. | |
ee6a22df L |
2977 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2978 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2979 | if test x"${with_newlib}" = x ; then |
2980 | with_newlib=no | |
2981 | fi | |
79c06341 JL |
2982 | fi |
2983 | ||
671aa708 NN |
2984 | # Recognize --with-newlib/--without-newlib. |
2985 | case ${with_newlib} in | |
2986 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2987 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2988 | esac | |
79c06341 | 2989 | |
85c64bbe BS |
2990 | # Check whether --enable-as-accelerator-for was given. |
2991 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2992 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2993 | fi |
2994 | ||
2995 | ||
2996 | # Check whether --enable-offload-targets was given. | |
2997 | if test "${enable_offload_targets+set}" = set; then : | |
2998 | enableval=$enable_offload_targets; | |
2999 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 3000 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
3001 | fi |
3002 | ||
3003 | else | |
3004 | enable_offload_targets= | |
3005 | fi | |
3006 | ||
3007 | ||
fe5bfa67 TB |
3008 | # Check whether --enable-offload-defaulted was given. |
3009 | if test "${enable_offload_defaulted+set}" = set; then : | |
3010 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3011 | else | |
3012 | enable_offload_defaulted= | |
3013 | fi | |
3014 | ||
3015 | ||
21539e2e MK |
3016 | # Handle --enable-gold, --enable-ld. |
3017 | # --disable-gold [--enable-ld] | |
3018 | # Build only ld. Default option. | |
9580395f L |
3019 | # --enable-gold [--enable-ld] |
3020 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3021 | # as "ld.bfd" and "ld". | |
3022 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
3023 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3024 | # install ld as "ld.bfd". | |
3025 | # --enable-gold[=default] --disable-ld | |
3026 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3027 | # --enable-gold --enable-ld=default | |
9580395f L |
3028 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3029 | # and ld.bfd). | |
21539e2e MK |
3030 | # In other words, ld is default |
3031 | # --enable-gold=default --enable-ld=default | |
3032 | # Error. | |
3033 | ||
3034 | default_ld= | |
5213506e RW |
3035 | # Check whether --enable-gold was given. |
3036 | if test "${enable_gold+set}" = set; then : | |
3037 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3038 | else |
3039 | ENABLE_GOLD=no | |
5213506e RW |
3040 | fi |
3041 | ||
21539e2e MK |
3042 | case "${ENABLE_GOLD}" in |
3043 | yes|default) | |
38e3d868 RM |
3044 | # Check for ELF target. |
3045 | is_elf=no | |
3046 | case "${target}" in | |
3047 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3048 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3049 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3050 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3051 | case "${target}" in |
3052 | *-*-linux*aout* | *-*-linux*oldld*) | |
3053 | ;; | |
3054 | *) | |
3055 | is_elf=yes | |
3056 | ;; | |
3057 | esac | |
3058 | esac | |
3059 | ||
3060 | if test "$is_elf" = "yes"; then | |
3061 | # Check for target supported by gold. | |
5afab7ad | 3062 | case "${target}" in |
7705dfd1 | 3063 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
fc259b52 | 3064 | | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*) |
21539e2e MK |
3065 | configdirs="$configdirs gold" |
3066 | if test x${ENABLE_GOLD} = xdefault; then | |
3067 | default_ld=gold | |
3068 | fi | |
38e3d868 | 3069 | ENABLE_GOLD=yes |
5afab7ad ILT |
3070 | ;; |
3071 | esac | |
38e3d868 RM |
3072 | fi |
3073 | ;; | |
3074 | no) | |
3075 | ;; | |
3076 | *) | |
22e05272 | 3077 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3078 | ;; |
21539e2e MK |
3079 | esac |
3080 | ||
3081 | # Check whether --enable-ld was given. | |
3082 | if test "${enable_ld+set}" = set; then : | |
3083 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3084 | else | |
3085 | ENABLE_LD=yes | |
3086 | fi | |
3087 | ||
3088 | ||
3089 | case "${ENABLE_LD}" in | |
3090 | default) | |
9580395f | 3091 | if test x${default_ld} != x; then |
22e05272 | 3092 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3093 | fi |
3094 | ;; | |
3095 | yes) | |
3096 | ;; | |
3097 | no) | |
3098 | if test x${ENABLE_GOLD} != xyes; then | |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3100 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3101 | fi | |
3102 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3103 | ;; | |
3104 | *) | |
22e05272 | 3105 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3106 | ;; |
3107 | esac | |
5afab7ad | 3108 | |
78edb32f L |
3109 | # PR gas/19109 |
3110 | # Decide the default method for compressing debug sections. | |
3111 | # Provide a configure time option to override our default. | |
3112 | # Check whether --enable-compressed_debug_sections was given. | |
3113 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3114 | enableval=$enable_compressed_debug_sections; | |
3115 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3116 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3117 | fi |
3118 | ||
3119 | else | |
3120 | enable_compressed_debug_sections= | |
3121 | fi | |
3122 | ||
3123 | ||
671aa708 | 3124 | # Configure extra directories which are host specific |
79c06341 | 3125 | |
671aa708 NN |
3126 | case "${host}" in |
3127 | *-cygwin*) | |
3128 | configdirs="$configdirs libtermcap" ;; | |
3129 | esac | |
79c06341 | 3130 | |
4fab7234 HPN |
3131 | # A target can indicate whether a language isn't supported for some reason. |
3132 | # Only spaces may be used in this macro; not newlines or tabs. | |
3133 | unsupported_languages= | |
3134 | ||
1c710c3c | 3135 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3136 | # target this usually means that a port of the program doesn't |
3137 | # exist yet. | |
ec8d6ddc | 3138 | |
671aa708 | 3139 | case "${host}" in |
111eeb6e | 3140 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3141 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3142 | ;; |
671aa708 | 3143 | esac |
ec8d6ddc | 3144 | |
6de9cd9a | 3145 | |
87e6d9dc TB |
3146 | # Check whether --enable-libquadmath was given. |
3147 | if test "${enable_libquadmath+set}" = set; then : | |
3148 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3149 | else | |
3150 | ENABLE_LIBQUADMATH=yes | |
3151 | fi | |
3152 | ||
3153 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3154 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3155 | fi | |
3156 | ||
3157 | ||
3158 | # Check whether --enable-libquadmath-support was given. | |
3159 | if test "${enable_libquadmath_support+set}" = set; then : | |
3160 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3161 | else | |
3162 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3163 | fi | |
3164 | ||
3165 | enable_libquadmath_support= | |
3166 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3167 | enable_libquadmath_support=no | |
3168 | fi | |
3169 | ||
3170 | ||
5213506e RW |
3171 | # Check whether --enable-libada was given. |
3172 | if test "${enable_libada+set}" = set; then : | |
3173 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3174 | else |
3175 | ENABLE_LIBADA=yes | |
5213506e RW |
3176 | fi |
3177 | ||
d9cdb878 | 3178 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3179 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3180 | fi |
3181 | ||
5213506e RW |
3182 | # Check whether --enable-libssp was given. |
3183 | if test "${enable_libssp+set}" = set; then : | |
3184 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3185 | else |
3186 | ENABLE_LIBSSP=yes | |
5213506e RW |
3187 | fi |
3188 | ||
ef0087a7 | 3189 | |
1873ec0c L |
3190 | # Check whether --enable-libstdcxx was given. |
3191 | if test "${enable_libstdcxx+set}" = set; then : | |
3192 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3193 | else | |
3194 | ENABLE_LIBSTDCXX=default | |
3195 | fi | |
3196 | ||
3197 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3198 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3199 | fi |
3200 | ||
44a7d18d | 3201 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3202 | if test x$enable_libgomp = x ; then |
953ff289 | 3203 | case "${target}" in |
416ac4d4 | 3204 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3205 | ;; |
8c6d158a | 3206 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3207 | ;; |
b24513a1 | 3208 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3209 | ;; |
cac90078 | 3210 | *-*-darwin* | *-*-aix*) |
953ff289 | 3211 | ;; |
29b1533a | 3212 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3213 | ;; |
953ff289 DN |
3214 | *) |
3215 | noconfigdirs="$noconfigdirs target-libgomp" | |
3216 | ;; | |
3217 | esac | |
27079765 | 3218 | fi |
953ff289 | 3219 | |
48310492 RH |
3220 | # Disable libatomic on unsupported systems. |
3221 | if test -d ${srcdir}/libatomic; then | |
3222 | if test x$enable_libatomic = x; then | |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3224 | $as_echo_n "checking for libatomic support... " >&6; } | |
3225 | if (srcdir=${srcdir}/libatomic; \ | |
3226 | . ${srcdir}/configure.tgt; \ | |
3227 | test -n "$UNSUPPORTED") | |
3228 | then | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3230 | $as_echo "no" >&6; } | |
3231 | noconfigdirs="$noconfigdirs target-libatomic" | |
3232 | else | |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3234 | $as_echo "yes" >&6; } | |
3235 | fi | |
3236 | fi | |
3237 | fi | |
3238 | ||
e948157d RH |
3239 | # Disable libitm on unsupported systems. |
3240 | if test -d ${srcdir}/libitm; then | |
3241 | if test x$enable_libitm = x; then | |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3243 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3244 | if (srcdir=${srcdir}/libitm; \ |
3245 | . ${srcdir}/configure.tgt; \ | |
3246 | test -n "$UNSUPPORTED") | |
3247 | then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3249 | $as_echo "no" >&6; } |
e948157d RH |
3250 | noconfigdirs="$noconfigdirs target-libitm" |
3251 | else | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3253 | $as_echo "yes" >&6; } |
e948157d RH |
3254 | fi |
3255 | fi | |
0a35513e AH |
3256 | fi |
3257 | ||
93bf5390 RH |
3258 | # Disable libsanitizer on unsupported systems. |
3259 | if test -d ${srcdir}/libsanitizer; then | |
3260 | if test x$enable_libsanitizer = x; then | |
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3262 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3263 | if (srcdir=${srcdir}/libsanitizer; \ | |
3264 | . ${srcdir}/configure.tgt; \ | |
3265 | test -n "$UNSUPPORTED") | |
3266 | then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3268 | $as_echo "no" >&6; } | |
3269 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3270 | else | |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3272 | $as_echo "yes" >&6; } | |
3273 | fi | |
3274 | fi | |
3275 | fi | |
3276 | ||
2077db1b CT |
3277 | # Disable libvtv on unsupported systems. |
3278 | if test -d ${srcdir}/libvtv; then | |
3279 | if test x$enable_libvtv = x; then | |
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3281 | $as_echo_n "checking for libvtv support... " >&6; } | |
3282 | if (srcdir=${srcdir}/libvtv; \ | |
3283 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3284 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3285 | then |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3287 | $as_echo "no" >&6; } | |
3288 | noconfigdirs="$noconfigdirs target-libvtv" | |
3289 | else | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3291 | $as_echo "yes" >&6; } | |
3292 | fi | |
3293 | fi | |
3294 | fi | |
3295 | ||
d91491e5 SE |
3296 | # Disable libquadmath for some systems. |
3297 | case "${target}" in | |
e7fae550 DE |
3298 | avr-*-*) |
3299 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3300 | ;; | |
d91491e5 SE |
3301 | # libquadmath is unused on AIX and libquadmath build process use of |
3302 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3303 | powerpc-*-aix* | rs6000-*-aix*) | |
3304 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3305 | ;; | |
3306 | esac | |
3307 | ||
1e9e0e23 JM |
3308 | # Disable libssp for some systems. |
3309 | case "${target}" in | |
3310 | avr-*-*) | |
b318fb4b | 3311 | # No hosted I/O support. |
1e9e0e23 JM |
3312 | noconfigdirs="$noconfigdirs target-libssp" |
3313 | ;; | |
91dfef96 JM |
3314 | bpf-*-*) |
3315 | noconfigdirs="$noconfigdirs target-libssp" | |
3316 | ;; | |
1e9e0e23 JM |
3317 | powerpc-*-aix* | rs6000-*-aix*) |
3318 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3319 | ;; |
8d2af3a2 DD |
3320 | pru-*-*) |
3321 | # No hosted I/O support. | |
3322 | noconfigdirs="$noconfigdirs target-libssp" | |
3323 | ;; | |
85b8555e | 3324 | rl78-*-*) |
7cb62ef1 EB |
3325 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3326 | # doesn't fault for those - instead, it gives a build-time error | |
3327 | # for explicit misaligned loads. | |
85b8555e | 3328 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3329 | ;; |
0969ec7d EB |
3330 | visium-*-*) |
3331 | # No hosted I/O support. | |
3332 | noconfigdirs="$noconfigdirs target-libssp" | |
3333 | ;; | |
1e9e0e23 JM |
3334 | esac |
3335 | ||
1e9e0e23 | 3336 | # Disable libstdc++-v3 for some systems. |
67a1cb2a | 3337 | # Allow user to override this if they pass --enable-libstdcxx |
1873ec0c L |
3338 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then |
3339 | case "${target}" in | |
3340 | *-*-vxworks*) | |
3341 | # VxWorks uses the Dinkumware C++ library. | |
3342 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3343 | ;; | |
afa3d80e TS |
3344 | amdgcn*-*-*) |
3345 | # Not ported/fails to build when using newlib. | |
3346 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3347 | ;; | |
1873ec0c L |
3348 | arm*-wince-pe*) |
3349 | # the C++ libraries don't build on top of CE's C libraries | |
3350 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3351 | ;; | |
3352 | avr-*-*) | |
3353 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3354 | ;; | |
91dfef96 JM |
3355 | bpf-*-*) |
3356 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3357 | ;; | |
fef939d6 JB |
3358 | ft32-*-*) |
3359 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3360 | ;; | |
1873ec0c L |
3361 | esac |
3362 | fi | |
1e9e0e23 | 3363 | |
91dfef96 JM |
3364 | # Disable C++ on systems where it is known to not work. |
3365 | # For testing, you can override this with --enable-languages=c++. | |
3366 | case ,${enable_languages}, in | |
3367 | *,c++,*) | |
3368 | ;; | |
3369 | *) | |
3370 | case "${target}" in | |
3371 | bpf-*-*) | |
3372 | unsupported_languages="$unsupported_languages c++" | |
3373 | ;; | |
3374 | esac | |
3375 | ;; | |
3376 | esac | |
3377 | ||
3378 | # Disable Objc on systems where it is known to not work. | |
3379 | # For testing, you can override this with --enable-languages=objc. | |
3380 | case ,${enable_languages}, in | |
3381 | *,objc,*) | |
3382 | ;; | |
3383 | *) | |
3384 | case "${target}" in | |
3385 | bpf-*-*) | |
3386 | unsupported_languages="$unsupported_languages objc" | |
3387 | ;; | |
3388 | esac | |
3389 | ;; | |
3390 | esac | |
3391 | ||
260eedb9 IB |
3392 | # Disable D on systems where it is known to not work. |
3393 | # For testing, you can override this with --enable-languages=d. | |
3394 | case ,${enable_languages}, in | |
3395 | *,d,*) | |
3396 | ;; | |
3397 | *) | |
3398 | case "${target}" in | |
91dfef96 | 3399 | bpf-*-*) |
260eedb9 IB |
3400 | unsupported_languages="$unsupported_languages d" |
3401 | ;; | |
3402 | esac | |
3403 | ;; | |
3404 | esac | |
3405 | ||
3406 | # Disable libphobos on unsupported systems. | |
3407 | # For testing, you can override this with --enable-libphobos. | |
3408 | if test -d ${srcdir}/libphobos; then | |
3409 | if test x$enable_libphobos = x; then | |
3410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3411 | $as_echo_n "checking for libphobos support... " >&6; } | |
3412 | if (srcdir=${srcdir}/libphobos; \ | |
3413 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3414 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3415 | then |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3417 | $as_echo "no" >&6; } | |
3418 | noconfigdirs="$noconfigdirs target-libphobos" | |
3419 | else | |
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3421 | $as_echo "yes" >&6; } | |
3422 | fi | |
3423 | fi | |
3424 | fi | |
3425 | ||
1e9e0e23 JM |
3426 | # Disable Fortran for some systems. |
3427 | case "${target}" in | |
3428 | mmix-*-*) | |
3429 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3430 | unsupported_languages="$unsupported_languages fortran" | |
3431 | ;; | |
91dfef96 JM |
3432 | bpf-*-*) |
3433 | unsupported_languages="$unsupported_languages fortran" | |
3434 | ;; | |
1e9e0e23 JM |
3435 | esac |
3436 | ||
012447ea JJ |
3437 | # Disable libffi for some systems. |
3438 | case "${target}" in | |
3439 | powerpc-*-darwin*) | |
3440 | ;; | |
3441 | i[3456789]86-*-darwin*) | |
3442 | ;; | |
3443 | x86_64-*-darwin[912]*) | |
3444 | ;; | |
3445 | *-*-darwin*) | |
3446 | noconfigdirs="$noconfigdirs target-libffi" | |
3447 | ;; | |
3448 | *-*-netware*) | |
3449 | noconfigdirs="$noconfigdirs target-libffi" | |
3450 | ;; | |
3451 | *-*-phoenix*) | |
3452 | noconfigdirs="$noconfigdirs target-libffi" | |
3453 | ;; | |
3454 | *-*-rtems*) | |
3455 | noconfigdirs="$noconfigdirs target-libffi" | |
3456 | ;; | |
3457 | *-*-tpf*) | |
3458 | noconfigdirs="$noconfigdirs target-libffi" | |
3459 | ;; | |
3460 | *-*-uclinux*) | |
3461 | noconfigdirs="$noconfigdirs target-libffi" | |
3462 | ;; | |
3463 | *-*-vxworks*) | |
3464 | noconfigdirs="$noconfigdirs target-libffi" | |
3465 | ;; | |
b20e7532 AT |
3466 | aarch64*-*-freebsd*) |
3467 | noconfigdirs="$noconfigdirs target-libffi" | |
3468 | ;; | |
012447ea JJ |
3469 | alpha*-*-*vms*) |
3470 | noconfigdirs="$noconfigdirs target-libffi" | |
3471 | ;; | |
3472 | arm*-*-freebsd*) | |
3473 | noconfigdirs="$noconfigdirs target-libffi" | |
3474 | ;; | |
3475 | arm-wince-pe) | |
3476 | noconfigdirs="$noconfigdirs target-libffi" | |
3477 | ;; | |
3478 | arm*-*-symbianelf*) | |
3479 | noconfigdirs="$noconfigdirs target-libffi" | |
3480 | ;; | |
91dfef96 JM |
3481 | bpf-*-*) |
3482 | noconfigdirs="$noconfigdirs target-libffi" | |
3483 | ;; | |
012447ea JJ |
3484 | cris-*-* | crisv32-*-*) |
3485 | case "${target}" in | |
3486 | *-*-linux*) | |
3487 | ;; | |
3488 | *) # See PR46792 regarding target-libffi. | |
3489 | noconfigdirs="$noconfigdirs target-libffi";; | |
3490 | esac | |
3491 | ;; | |
3492 | hppa*64*-*-hpux*) | |
3493 | noconfigdirs="$noconfigdirs target-libffi" | |
3494 | ;; | |
012447ea JJ |
3495 | ia64*-*-*vms*) |
3496 | noconfigdirs="$noconfigdirs target-libffi" | |
3497 | ;; | |
3498 | i[3456789]86-w64-mingw*) | |
3499 | noconfigdirs="$noconfigdirs target-libffi" | |
3500 | ;; | |
3501 | i[3456789]86-*-mingw*) | |
3502 | noconfigdirs="$noconfigdirs target-libffi" | |
3503 | ;; | |
3504 | x86_64-*-mingw*) | |
3505 | noconfigdirs="$noconfigdirs target-libffi" | |
3506 | ;; | |
3507 | mmix-*-*) | |
3508 | noconfigdirs="$noconfigdirs target-libffi" | |
3509 | ;; | |
3510 | powerpc-*-aix*) | |
012447ea JJ |
3511 | ;; |
3512 | rs6000-*-aix*) | |
012447ea JJ |
3513 | ;; |
3514 | ft32-*-*) | |
3515 | noconfigdirs="$noconfigdirs target-libffi" | |
3516 | ;; | |
3517 | *-*-lynxos*) | |
3518 | noconfigdirs="$noconfigdirs target-libffi" | |
3519 | ;; | |
3520 | esac | |
3521 | ||
3522 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3523 | # this in sync with contrib/config-list.mk. | |
3524 | case "${target}" in | |
91dfef96 | 3525 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3526 | unsupported_languages="$unsupported_languages go" |
3527 | ;; | |
3528 | esac | |
3529 | ||
f9d09df0 TT |
3530 | # Only allow gdbserver on some systems. |
3531 | if test -d ${srcdir}/gdbserver; then | |
3532 | if test x$enable_gdbserver = x; then | |
3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3534 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3535 | if (srcdir=${srcdir}/gdbserver; \ | |
3536 | . ${srcdir}/configure.srv; \ | |
3537 | test -n "$UNSUPPORTED") | |
3538 | then | |
3539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3540 | $as_echo "no" >&6; } | |
3541 | noconfigdirs="$noconfigdirs gdbserver" | |
3542 | else | |
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3544 | $as_echo "yes" >&6; } | |
3545 | fi | |
3546 | fi | |
3547 | fi | |
3548 | ||
cdbc9e92 ILT |
3549 | # Disable libgo for some systems where it is known to not work. |
3550 | # For testing, you can easily override this with --enable-libgo. | |
3551 | if test x$enable_libgo = x; then | |
3552 | case "${target}" in | |
3553 | *-*-darwin*) | |
3554 | # PR 46986 | |
3555 | noconfigdirs="$noconfigdirs target-libgo" | |
3556 | ;; | |
3557 | *-*-cygwin* | *-*-mingw*) | |
3558 | noconfigdirs="$noconfigdirs target-libgo" | |
3559 | ;; | |
91dfef96 JM |
3560 | bpf-*-*) |
3561 | noconfigdirs="$noconfigdirs target-libgo" | |
3562 | ;; | |
cdbc9e92 ILT |
3563 | esac |
3564 | fi | |
3565 | ||
c03353e2 RIL |
3566 | # Default libgloss CPU subdirectory. |
3567 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3568 | |
fbcf0dca JM |
3569 | case "${target}" in |
3570 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3571 | libgloss_dir=wince | |
3572 | ;; | |
4dddfc74 YZ |
3573 | aarch64*-*-* ) |
3574 | libgloss_dir=aarch64 | |
3575 | ;; | |
fbcf0dca JM |
3576 | arm*-*-*) |
3577 | libgloss_dir=arm | |
3578 | ;; | |
3579 | cris-*-* | crisv32-*-*) | |
3580 | libgloss_dir=cris | |
3581 | ;; | |
3582 | hppa*-*-*) | |
3583 | libgloss_dir=pa | |
3584 | ;; | |
3585 | i[3456789]86-*-*) | |
3586 | libgloss_dir=i386 | |
3587 | ;; | |
c6c0594e | 3588 | loongarch*-*-*) |
3589 | libgloss_dir=loongarch | |
3590 | ;; | |
fbcf0dca JM |
3591 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3592 | libgloss_dir=m68hc11 | |
3593 | ;; | |
3594 | m68*-*-* | fido-*-*) | |
3595 | libgloss_dir=m68k | |
3596 | ;; | |
3597 | mips*-*-*) | |
3598 | libgloss_dir=mips | |
3599 | ;; | |
3600 | powerpc*-*-*) | |
3601 | libgloss_dir=rs6000 | |
3602 | ;; | |
8d2af3a2 DD |
3603 | pru-*-*) |
3604 | libgloss_dir=pru | |
3605 | ;; | |
fbcf0dca JM |
3606 | sparc*-*-*) |
3607 | libgloss_dir=sparc | |
3608 | ;; | |
3609 | esac | |
3610 | ||
6a789d5e | 3611 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3612 | case "${target}" in |
6a789d5e JM |
3613 | alpha*-dec-osf*) |
3614 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3615 | ;; | |
3616 | i[3456789]86-*-linux*) | |
3617 | # This section makes it possible to build newlib natively on linux. | |
3618 | # If we are using a cross compiler then don't configure newlib. | |
3619 | if test x${is_cross_compiler} != xno ; then | |
3620 | noconfigdirs="$noconfigdirs target-newlib" | |
3621 | fi | |
3622 | noconfigdirs="$noconfigdirs target-libgloss" | |
3623 | # If we are not using a cross compiler, do configure newlib. | |
3624 | # Note however, that newlib will only be configured in this situation | |
3625 | # if the --with-newlib option has been given, because otherwise | |
3626 | # 'target-newlib' will appear in skipdirs. | |
3627 | ;; | |
3628 | i[3456789]86-*-rdos*) | |
3629 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3630 | ;; | |
3631 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3632 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3633 | ;; | |
3634 | sparc-*-sunos4*) | |
3635 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3636 | ;; | |
91dfef96 JM |
3637 | bpf-*-*) |
3638 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3639 | ;; | |
6a789d5e JM |
3640 | *-*-aix*) |
3641 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3642 | ;; | |
3643 | *-*-beos*) | |
3644 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3645 | ;; | |
671aa708 | 3646 | *-*-chorusos) |
0036370f | 3647 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3648 | ;; |
6a789d5e JM |
3649 | *-*-dragonfly*) |
3650 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3651 | ;; | |
3652 | *-*-freebsd*) | |
3653 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3654 | ;; | |
3655 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3656 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3657 | ;; | |
3658 | *-*-lynxos*) | |
3659 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3660 | ;; | |
3661 | *-*-mingw*) | |
3662 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3663 | ;; | |
3664 | *-*-netbsd*) | |
3665 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3666 | ;; | |
3667 | *-*-netware*) | |
3668 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3669 | ;; | |
3670 | *-*-tpf*) | |
3671 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3672 | ;; | |
3673 | *-*-uclinux*) | |
3674 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3675 | ;; | |
3676 | *-*-vxworks*) | |
3677 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3678 | ;; | |
3679 | esac | |
3680 | ||
3681 | case "${target}" in | |
3682 | *-*-chorusos) | |
3683 | ;; | |
3be96231 TG |
3684 | aarch64-*-darwin*) |
3685 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3686 | noconfigdirs="$noconfigdirs sim target-rda" | |
3687 | ;; | |
7431c1a1 AS |
3688 | amdgcn*-*-*) |
3689 | ;; | |
3be96231 TG |
3690 | arm-*-darwin*) |
3691 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3692 | noconfigdirs="$noconfigdirs sim target-rda" | |
3693 | ;; | |
75eeae1a | 3694 | powerpc-*-darwin*) |
e1514c3f | 3695 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3696 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3697 | ;; |
354ebf88 RW |
3698 | i[3456789]86-*-darwin*) |
3699 | noconfigdirs="$noconfigdirs ld gprof" | |
3700 | noconfigdirs="$noconfigdirs sim target-rda" | |
3701 | ;; | |
3702 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3703 | noconfigdirs="$noconfigdirs ld gas gprof" |
3704 | noconfigdirs="$noconfigdirs sim target-rda" | |
3705 | ;; | |
42c1cd8a AT |
3706 | *-*-darwin*) |
3707 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3708 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3709 | ;; |
8c6d158a | 3710 | *-*-dragonfly*) |
8c6d158a | 3711 | ;; |
c3f84f61 | 3712 | *-*-freebsd*) |
88252529 | 3713 | if test "x$with_gmp" = x \ |
c0d0a722 | 3714 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3715 | && test -f /usr/local/include/gmp.h; then |
3716 | with_gmp=/usr/local | |
3717 | fi | |
6de9cd9a | 3718 | ;; |
ef4e7569 US |
3719 | *-*-kaos*) |
3720 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3721 | noconfigdirs="$noconfigdirs target-libgloss" |
3722 | ;; | |
671aa708 | 3723 | *-*-netbsd*) |
671aa708 | 3724 | ;; |
61fec9ff | 3725 | *-*-netware*) |
671aa708 | 3726 | ;; |
fd6487af JS |
3727 | *-*-phoenix*) |
3728 | noconfigdirs="$noconfigdirs target-libgloss" | |
3729 | ;; | |
671aa708 | 3730 | *-*-rtems*) |
2909494b | 3731 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3732 | ;; |
a8ba31f2 EC |
3733 | # The tpf target doesn't support gdb yet. |
3734 | *-*-tpf*) | |
6a789d5e | 3735 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3736 | ;; |
5785c0ed | 3737 | *-*-uclinux*) |
6a789d5e | 3738 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3739 | ;; |
671aa708 | 3740 | *-*-vxworks*) |
671aa708 NN |
3741 | ;; |
3742 | alpha*-dec-osf*) | |
3743 | # ld works, but does not support shared libraries. | |
671aa708 | 3744 | # gas doesn't generate exception information. |
6a789d5e | 3745 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3746 | ;; |
3747 | alpha*-*-*vms*) | |
2909494b | 3748 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3749 | ;; |
671aa708 NN |
3750 | alpha*-*-*) |
3751 | # newlib is not 64 bit ready | |
2909494b | 3752 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3753 | ;; |
91dfef96 JM |
3754 | bpf-*-*) |
3755 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3756 | ;; | |
671aa708 | 3757 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3758 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3759 | ;; |
2fd88f4f AK |
3760 | arc*-*-*) |
3761 | noconfigdirs="$noconfigdirs sim" | |
3762 | ;; | |
671aa708 | 3763 | arm-*-pe*) |
2909494b | 3764 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3765 | ;; |
671aa708 | 3766 | arm-*-riscix*) |
0036370f | 3767 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3768 | ;; |
b588ae30 GJL |
3769 | avr-*-*) |
3770 | if test x${with_avrlibc} != xno; then | |
3771 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3772 | fi | |
3773 | ;; | |
671aa708 | 3774 | c4x-*-* | tic4x-*-*) |
0036370f | 3775 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3776 | ;; |
0036370f JM |
3777 | tic54x-*-*) |
3778 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3779 | ;; |
671aa708 | 3780 | d10v-*-*) |
0036370f | 3781 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3782 | ;; |
3783 | d30v-*-*) | |
0036370f | 3784 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3785 | ;; |
3786 | fr30-*-elf*) | |
2909494b | 3787 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3788 | ;; |
a05c2c75 L |
3789 | ft32-*-*) |
3790 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3791 | ;; | |
55f2d967 | 3792 | moxie-*-*) |
a05c2c75 | 3793 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3794 | ;; |
671aa708 | 3795 | h8300*-*-*) |
2909494b | 3796 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3797 | ;; |
3798 | h8500-*-*) | |
0036370f | 3799 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3800 | ;; |
a05c2c75 L |
3801 | hppa*64*-*-hpux*) |
3802 | noconfigdirs="$noconfigdirs gdb" | |
3803 | ;; | |
4569f85e | 3804 | hppa*64*-*-linux*) |
671aa708 | 3805 | ;; |
56f8587a | 3806 | hppa*-*-linux*) |
3e732ba0 | 3807 | ;; |
671aa708 | 3808 | hppa*-*-*elf* | \ |
671aa708 NN |
3809 | hppa*-*-lites* | \ |
3810 | hppa*-*-openbsd* | \ | |
3811 | hppa*64*-*-*) | |
671aa708 | 3812 | ;; |
c03353e2 | 3813 | hppa*-*-pro*) |
c03353e2 | 3814 | ;; |
671aa708 | 3815 | hppa*-*-*) |
2909494b | 3816 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3817 | ;; |
fb87ad5d | 3818 | i960-*-*) |
0036370f | 3819 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3820 | ;; |
671aa708 NN |
3821 | ia64*-*-elf*) |
3822 | # No gdb support yet. | |
1bcce263 | 3823 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3824 | ;; |
3825 | ia64*-**-hpux*) | |
5a2931d1 | 3826 | # No ld support yet. |
a05c2c75 | 3827 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3828 | ;; |
52535a64 | 3829 | ia64*-*-*vms*) |
091fe9ca TG |
3830 | # No ld support yet. |
3831 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3832 | ;; |
ef4c4300 | 3833 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3834 | ;; |
3835 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3836 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3837 | ;; |
671aa708 NN |
3838 | *-*-cygwin*) |
3839 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3840 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3841 | # always build newlib if winsup directory is present. |
b91f0a41 | 3842 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3843 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3844 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3845 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3846 | fi |
1c710c3c | 3847 | ;; |
f2a0e225 | 3848 | i[3456789]86-*-pe) |
ebb9f8b0 | 3849 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3850 | ;; |
f2a0e225 | 3851 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3852 | # The linker does not yet know about weak symbols in COFF, |
3853 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3854 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3855 | ;; |
f2a0e225 | 3856 | i[3456789]86-*-sco*) |
0036370f | 3857 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3858 | ;; |
fbdd5d87 | 3859 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3860 | noconfigdirs="$noconfigdirs target-libgloss" |
3861 | ;; | |
f2a0e225 | 3862 | i[3456789]86-*-sysv4*) |
0036370f | 3863 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3864 | ;; |
f2a0e225 | 3865 | i[3456789]86-*-beos*) |
6a789d5e | 3866 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3867 | ;; |
d1f8db0c | 3868 | i[3456789]86-*-rdos*) |
6a789d5e | 3869 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3870 | ;; |
671aa708 | 3871 | mmix-*-*) |
2909494b | 3872 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3873 | ;; |
ab34901f | 3874 | mt-*-*) |
79dd769c AH |
3875 | noconfigdirs="$noconfigdirs sim" |
3876 | ;; | |
58b40a67 FT |
3877 | nfp-*-*) |
3878 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3879 | noconfigdirs="$noconfigdirs $target_libraries" | |
3880 | ;; | |
e6cbe965 SC |
3881 | pdp11-*-*) |
3882 | noconfigdirs="$noconfigdirs gdb gprof" | |
3883 | ;; | |
671aa708 NN |
3884 | powerpc-*-aix*) |
3885 | # copied from rs6000-*-* entry | |
6a789d5e | 3886 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3887 | ;; |
4569f85e | 3888 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3889 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3890 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3891 | # always build newlib. |
3892 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3893 | ;; | |
3894 | # This is temporary until we can link against shared libraries | |
3895 | powerpcle-*-solaris*) | |
0036370f | 3896 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3897 | ;; |
3898 | powerpc-*-beos*) | |
6a789d5e | 3899 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3900 | ;; |
671aa708 | 3901 | rs6000-*-lynxos*) |
6a789d5e | 3902 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3903 | ;; |
3904 | rs6000-*-aix*) | |
6a789d5e | 3905 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3906 | ;; |
3907 | rs6000-*-*) | |
2909494b | 3908 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3909 | ;; |
3910 | m68k-apollo-*) | |
0036370f | 3911 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3912 | ;; |
ca9fe997 | 3913 | microblaze*) |
2909494b | 3914 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3915 | ;; |
d896cc4d | 3916 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3917 | if test x$with_newlib = xyes; then |
3918 | noconfigdirs="$noconfigdirs gprof" | |
3919 | fi | |
d9dced13 | 3920 | ;; |
671aa708 | 3921 | mips*-*-irix5*) |
0036370f | 3922 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3923 | ;; |
3924 | mips*-*-irix6*) | |
2909494b | 3925 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3926 | ;; |
671aa708 | 3927 | mips*-*-bsd*) |
bc98bcc4 | 3928 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3929 | ;; |
671aa708 | 3930 | mips*-*-linux*) |
671aa708 | 3931 | ;; |
bc98bcc4 JBG |
3932 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3933 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3934 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3935 | ;; | |
671aa708 | 3936 | mips*-*-*) |
2909494b | 3937 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3938 | ;; |
738f2522 | 3939 | nvptx*-*-*) |
738f2522 BS |
3940 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3941 | ;; | |
bc6d9014 | 3942 | sh-*-*) |
ea2002ba CB |
3943 | case "${target}" in |
3944 | sh*-*-elf) | |
2909494b | 3945 | ;; |
ea2002ba | 3946 | *) |
2909494b | 3947 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3948 | esac |
671aa708 | 3949 | ;; |
671aa708 | 3950 | sparc-*-sunos4*) |
6a789d5e | 3951 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3952 | use_gnu_ld=no |
3953 | fi | |
3954 | ;; | |
b42f0d7e | 3955 | tic6x-*-*) |
0d557ff8 | 3956 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 3957 | ;; |
671aa708 | 3958 | v810-*-*) |
0036370f | 3959 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
3960 | ;; |
3961 | vax-*-*) | |
2909494b | 3962 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3963 | ;; |
1fc1d82e MR |
3964 | wasm32-*-*) |
3965 | noconfigdirs="$noconfigdirs ld" | |
3966 | ;; | |
c6c0594e | 3967 | loongarch*-*-linux*) |
3968 | ;; | |
3969 | loongarch*-*-*) | |
3970 | noconfigdirs="$noconfigdirs gprof" | |
3971 | ;; | |
671aa708 | 3972 | esac |
79c06341 | 3973 | |
671aa708 NN |
3974 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3975 | # depends upon some newlib header files. | |
3976 | case "${noconfigdirs}" in | |
3977 | *target-libgloss*) ;; | |
3978 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3979 | esac | |
3980 | ||
671aa708 | 3981 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
3982 | host_makefile_frag=/dev/null |
3983 | if test -d ${srcdir}/config ; then | |
3984 | case "${host}" in | |
f2a0e225 | 3985 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3986 | host_makefile_frag="config/mh-djgpp" |
3987 | ;; | |
3988 | *-cygwin*) | |
2a79c47f | 3989 | |
5213506e RW |
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3991 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 3992 | echo a >cygwin-cat-check |
e25a8c82 | 3993 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 3994 | rm cygwin-cat-check |
5213506e RW |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3996 | $as_echo "yes" >&6; } | |
2a79c47f NC |
3997 | else |
3998 | rm cygwin-cat-check | |
5213506e RW |
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4000 | $as_echo "no" >&6; } | |
22e05272 | 4001 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4002 | Please either mount the build directory in binary mode or run the following |
4003 | commands before running any configure script: | |
4004 | set -o igncr | |
4005 | export SHELLOPTS | |
5213506e | 4006 | " "$LINENO" 5 |
2a79c47f NC |
4007 | fi |
4008 | ||
671aa708 NN |
4009 | host_makefile_frag="config/mh-cygwin" |
4010 | ;; | |
c53a18d3 | 4011 | *-mingw*) |
1f5a6b84 | 4012 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4013 | ;; |
cabb9d59 | 4014 | alpha*-linux*) |
13be44ed UB |
4015 | host_makefile_frag="config/mh-alpha-linux" |
4016 | ;; | |
111eeb6e | 4017 | hppa*-hp-hpux*) |
efd41714 PB |
4018 | host_makefile_frag="config/mh-pa" |
4019 | ;; | |
4020 | hppa*-*) | |
4021 | host_makefile_frag="config/mh-pa" | |
4022 | ;; | |
54258e22 | 4023 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4024 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4025 | ;; |
d19bca38 PB |
4026 | powerpc-*-aix*) |
4027 | host_makefile_frag="config/mh-ppc-aix" | |
4028 | ;; | |
4029 | rs6000-*-aix*) | |
4030 | host_makefile_frag="config/mh-ppc-aix" | |
4031 | ;; | |
671aa708 NN |
4032 | esac |
4033 | fi | |
4034 | ||
55ffb5ed | 4035 | if test "${build}" != "${host}" ; then |
0999159b PB |
4036 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4037 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4038 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
c841dc0a | 4039 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
0999159b | 4040 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3b5e8ee4 | 4041 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4042 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4043 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4044 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4045 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4046 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4047 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4048 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4049 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4050 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4051 | else | |
4052 | AR_FOR_BUILD="\$(AR)" | |
4053 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4054 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4055 | CXX_FOR_BUILD="\$(CXX)" |
3b5e8ee4 | 4056 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4057 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4058 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4059 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4060 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4061 | LD_FOR_BUILD="\$(LD)" | |
4062 | NM_FOR_BUILD="\$(NM)" | |
4063 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4064 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4065 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4066 | fi |
4067 | ||
4068 | ac_ext=c | |
1c710c3c DJ |
4069 | ac_cpp='$CPP $CPPFLAGS' |
4070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4073 | if test -n "$ac_tool_prefix"; then | |
4074 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4075 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4077 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4078 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4079 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4080 | else |
4081 | if test -n "$CC"; then | |
4082 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4083 | else | |
4084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4085 | for as_dir in $PATH | |
4086 | do | |
4087 | IFS=$as_save_IFS | |
4088 | test -z "$as_dir" && as_dir=. | |
5213506e | 4089 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4090 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4091 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4093 | break 2 |
4094 | fi | |
4095 | done | |
5213506e RW |
4096 | done |
4097 | IFS=$as_save_IFS | |
1c710c3c DJ |
4098 | |
4099 | fi | |
4100 | fi | |
4101 | CC=$ac_cv_prog_CC | |
4102 | if test -n "$CC"; then | |
5213506e RW |
4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4104 | $as_echo "$CC" >&6; } | |
1c710c3c | 4105 | else |
5213506e RW |
4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4107 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4108 | fi |
4109 | ||
5213506e | 4110 | |
1c710c3c DJ |
4111 | fi |
4112 | if test -z "$ac_cv_prog_CC"; then | |
4113 | ac_ct_CC=$CC | |
fb0103e5 RG |
4114 | # Extract the first word of "gcc", so it can be a program name with args. |
4115 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4117 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4118 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4119 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4120 | else |
4121 | if test -n "$ac_ct_CC"; then | |
4122 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4123 | else | |
4124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4125 | for as_dir in $PATH | |
4126 | do | |
4127 | IFS=$as_save_IFS | |
4128 | test -z "$as_dir" && as_dir=. | |
5213506e | 4129 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4130 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4131 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4133 | break 2 |
4134 | fi | |
4135 | done | |
5213506e RW |
4136 | done |
4137 | IFS=$as_save_IFS | |
1c710c3c DJ |
4138 | |
4139 | fi | |
4140 | fi | |
4141 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4142 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4144 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4145 | else |
5213506e RW |
4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4147 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4148 | fi |
4149 | ||
5213506e RW |
4150 | if test "x$ac_ct_CC" = x; then |
4151 | CC="" | |
4152 | else | |
4153 | case $cross_compiling:$ac_tool_warned in | |
4154 | yes:) | |
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4156 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4157 | ac_tool_warned=yes ;; | |
4158 | esac | |
4159 | CC=$ac_ct_CC | |
4160 | fi | |
1c710c3c DJ |
4161 | else |
4162 | CC="$ac_cv_prog_CC" | |
4163 | fi | |
4164 | ||
4165 | if test -z "$CC"; then | |
5213506e RW |
4166 | if test -n "$ac_tool_prefix"; then |
4167 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4168 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4170 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4171 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4172 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4173 | else |
4174 | if test -n "$CC"; then | |
4175 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4176 | else | |
1c710c3c DJ |
4177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4178 | for as_dir in $PATH | |
4179 | do | |
4180 | IFS=$as_save_IFS | |
4181 | test -z "$as_dir" && as_dir=. | |
5213506e | 4182 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4184 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4186 | break 2 |
4187 | fi | |
4188 | done | |
5213506e RW |
4189 | done |
4190 | IFS=$as_save_IFS | |
1c710c3c | 4191 | |
0b0dc272 | 4192 | fi |
0b0dc272 | 4193 | fi |
1c710c3c | 4194 | CC=$ac_cv_prog_CC |
af71363e | 4195 | if test -n "$CC"; then |
5213506e RW |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4197 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4198 | else |
5213506e RW |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4200 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4201 | fi |
4202 | ||
2aeb72e9 | 4203 | |
5213506e | 4204 | fi |
1c710c3c | 4205 | fi |
55ffb5ed NN |
4206 | if test -z "$CC"; then |
4207 | # Extract the first word of "cc", so it can be a program name with args. | |
4208 | set dummy cc; ac_word=$2 | |
5213506e RW |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4210 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4211 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4212 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4213 | else |
4214 | if test -n "$CC"; then | |
4215 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4216 | else | |
0b0dc272 | 4217 | ac_prog_rejected=no |
1c710c3c DJ |
4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4219 | for as_dir in $PATH | |
4220 | do | |
4221 | IFS=$as_save_IFS | |
4222 | test -z "$as_dir" && as_dir=. | |
5213506e | 4223 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4225 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4226 | ac_prog_rejected=yes | |
4227 | continue | |
4228 | fi | |
4229 | ac_cv_prog_CC="cc" | |
5213506e | 4230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4231 | break 2 |
4232 | fi | |
4233 | done | |
5213506e RW |
4234 | done |
4235 | IFS=$as_save_IFS | |
1c710c3c | 4236 | |
55ffb5ed NN |
4237 | if test $ac_prog_rejected = yes; then |
4238 | # We found a bogon in the path, so make sure we never use it. | |
4239 | set dummy $ac_cv_prog_CC | |
4240 | shift | |
1c710c3c | 4241 | if test $# != 0; then |
55ffb5ed NN |
4242 | # We chose a different compiler from the bogus one. |
4243 | # However, it has the same basename, so the bogon will be chosen | |
4244 | # first if we set CC to just the basename; use the full file name. | |
4245 | shift | |
1c710c3c | 4246 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4247 | fi |
4248 | fi | |
4249 | fi | |
4250 | fi | |
1c710c3c | 4251 | CC=$ac_cv_prog_CC |
55ffb5ed | 4252 | if test -n "$CC"; then |
5213506e RW |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4254 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4255 | else |
5213506e RW |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4257 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4258 | fi |
4259 | ||
5213506e | 4260 | |
1c710c3c DJ |
4261 | fi |
4262 | if test -z "$CC"; then | |
4263 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4264 | for ac_prog in cl.exe |
1c710c3c DJ |
4265 | do |
4266 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4267 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4269 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4270 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4271 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4272 | else |
4273 | if test -n "$CC"; then | |
4274 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4275 | else | |
1c710c3c DJ |
4276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4277 | for as_dir in $PATH | |
4278 | do | |
4279 | IFS=$as_save_IFS | |
4280 | test -z "$as_dir" && as_dir=. | |
5213506e | 4281 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4283 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4285 | break 2 |
4286 | fi | |
4287 | done | |
5213506e RW |
4288 | done |
4289 | IFS=$as_save_IFS | |
1c710c3c | 4290 | |
55ffb5ed NN |
4291 | fi |
4292 | fi | |
1c710c3c | 4293 | CC=$ac_cv_prog_CC |
55ffb5ed | 4294 | if test -n "$CC"; then |
5213506e RW |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4296 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4297 | else |
5213506e RW |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4299 | $as_echo "no" >&6; } | |
fb0103e5 | 4300 | fi |
af71363e | 4301 | |
5213506e | 4302 | |
1c710c3c DJ |
4303 | test -n "$CC" && break |
4304 | done | |
af71363e | 4305 | fi |
1c710c3c DJ |
4306 | if test -z "$CC"; then |
4307 | ac_ct_CC=$CC | |
5213506e | 4308 | for ac_prog in cl.exe |
1c710c3c DJ |
4309 | do |
4310 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4311 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4313 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4314 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4315 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4316 | else |
1c710c3c DJ |
4317 | if test -n "$ac_ct_CC"; then |
4318 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4319 | else |
1c710c3c DJ |
4320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4321 | for as_dir in $PATH | |
4322 | do | |
4323 | IFS=$as_save_IFS | |
4324 | test -z "$as_dir" && as_dir=. | |
5213506e | 4325 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4326 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4327 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4329 | break 2 |
4330 | fi | |
4331 | done | |
5213506e RW |
4332 | done |
4333 | IFS=$as_save_IFS | |
1c710c3c | 4334 | |
af71363e AS |
4335 | fi |
4336 | fi | |
1c710c3c DJ |
4337 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4338 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4340 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4341 | else |
5213506e RW |
4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4343 | $as_echo "no" >&6; } | |
af71363e | 4344 | fi |
0b0dc272 | 4345 | |
5213506e | 4346 | |
1c710c3c DJ |
4347 | test -n "$ac_ct_CC" && break |
4348 | done | |
4349 | ||
5213506e RW |
4350 | if test "x$ac_ct_CC" = x; then |
4351 | CC="" | |
4352 | else | |
4353 | case $cross_compiling:$ac_tool_warned in | |
4354 | yes:) | |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4356 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4357 | ac_tool_warned=yes ;; | |
4358 | esac | |
4359 | CC=$ac_ct_CC | |
4360 | fi | |
1c710c3c DJ |
4361 | fi |
4362 | ||
4363 | fi | |
4364 | ||
4365 | ||
5213506e RW |
4366 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4367 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4368 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4369 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4370 | |
4371 | # Provide some information about the compiler. | |
5213506e RW |
4372 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4373 | set X $ac_compile | |
4374 | ac_compiler=$2 | |
4375 | for ac_option in --version -v -V -qversion; do | |
4376 | { { ac_try="$ac_compiler $ac_option >&5" | |
4377 | case "(($ac_try" in | |
4378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4379 | *) ac_try_echo=$ac_try;; | |
4380 | esac | |
4381 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4382 | $as_echo "$ac_try_echo"; } >&5 | |
4383 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4384 | ac_status=$? |
5213506e RW |
4385 | if test -s conftest.err; then |
4386 | sed '10a\ | |
4387 | ... rest of stderr output deleted ... | |
4388 | 10q' conftest.err >conftest.er1 | |
4389 | cat conftest.er1 >&5 | |
5213506e | 4390 | fi |
22e05272 | 4391 | rm -f conftest.er1 conftest.err |
5213506e RW |
4392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4393 | test $ac_status = 0; } | |
4394 | done | |
1c710c3c | 4395 | |
5213506e | 4396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4397 | /* end confdefs.h. */ |
4398 | ||
4399 | int | |
4400 | main () | |
4401 | { | |
4402 | ||
4403 | ; | |
4404 | return 0; | |
4405 | } | |
4406 | _ACEOF | |
4407 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4408 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4409 | # Try to create an executable without -o first, disregard a.out. |
4410 | # It will help us diagnose broken compilers, and finding out an intuition | |
4411 | # of exeext. | |
22e05272 JM |
4412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4413 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4414 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4415 | ||
4416 | # The possible output files: | |
4417 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4418 | ||
4419 | ac_rmfiles= | |
4420 | for ac_file in $ac_files | |
4421 | do | |
4422 | case $ac_file in | |
4423 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4424 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4425 | esac | |
4426 | done | |
4427 | rm -f $ac_rmfiles | |
4428 | ||
4429 | if { { ac_try="$ac_link_default" | |
4430 | case "(($ac_try" in | |
4431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4432 | *) ac_try_echo=$ac_try;; | |
4433 | esac | |
4434 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4435 | $as_echo "$ac_try_echo"; } >&5 | |
4436 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4437 | ac_status=$? |
5213506e RW |
4438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4439 | test $ac_status = 0; }; then : | |
4440 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4441 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4442 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4443 | # so that the user can short-circuit this test for compilers unknown to | |
4444 | # Autoconf. | |
4445 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4446 | do |
4447 | test -f "$ac_file" || continue | |
4448 | case $ac_file in | |
5213506e | 4449 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4450 | ;; |
4451 | [ab].out ) | |
4452 | # We found the default executable, but exeext='' is most | |
4453 | # certainly right. | |
4454 | break;; | |
4455 | *.* ) | |
5213506e RW |
4456 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4457 | then :; else | |
4458 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4459 | fi | |
4460 | # We set ac_cv_exeext here because the later test for it is not | |
4461 | # safe: cross compilers may not add the suffix if given an `-o' | |
4462 | # argument, so we may need to know it at that point already. | |
4463 | # Even if this section looks crufty: it has the advantage of | |
4464 | # actually working. | |
1c710c3c DJ |
4465 | break;; |
4466 | * ) | |
4467 | break;; | |
4468 | esac | |
4469 | done | |
5213506e RW |
4470 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4471 | ||
1c710c3c | 4472 | else |
5213506e RW |
4473 | ac_file='' |
4474 | fi | |
5213506e | 4475 | if test -z "$ac_file"; then : |
22e05272 JM |
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4477 | $as_echo "no" >&6; } | |
4478 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4479 | sed 's/^/| /' conftest.$ac_ext >&5 |
4480 | ||
5213506e RW |
4481 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4482 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4483 | as_fn_error 77 "C compiler cannot create executables |
4484 | See \`config.log' for more details" "$LINENO" 5; } | |
4485 | else | |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4487 | $as_echo "yes" >&6; } | |
1c710c3c | 4488 | fi |
22e05272 JM |
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4490 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4492 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4493 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4494 | |
22e05272 | 4495 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4496 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4498 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4499 | if { { ac_try="$ac_link" | |
4500 | case "(($ac_try" in | |
4501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4502 | *) ac_try_echo=$ac_try;; | |
4503 | esac | |
4504 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4505 | $as_echo "$ac_try_echo"; } >&5 | |
4506 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4507 | ac_status=$? |
5213506e RW |
4508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4509 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4510 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4511 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4512 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4513 | # `rm'. | |
4514 | for ac_file in conftest.exe conftest conftest.*; do | |
4515 | test -f "$ac_file" || continue | |
4516 | case $ac_file in | |
5213506e | 4517 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4518 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4519 | break;; |
4520 | * ) break;; | |
4521 | esac | |
4522 | done | |
af71363e | 4523 | else |
5213506e RW |
4524 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4525 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4526 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4527 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4528 | fi |
22e05272 | 4529 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4531 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4532 | |
4533 | rm -f conftest.$ac_ext | |
4534 | EXEEXT=$ac_cv_exeext | |
4535 | ac_exeext=$EXEEXT | |
22e05272 JM |
4536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4537 | /* end confdefs.h. */ | |
4538 | #include <stdio.h> | |
4539 | int | |
4540 | main () | |
4541 | { | |
4542 | FILE *f = fopen ("conftest.out", "w"); | |
4543 | return ferror (f) || fclose (f) != 0; | |
4544 | ||
4545 | ; | |
4546 | return 0; | |
4547 | } | |
4548 | _ACEOF | |
4549 | ac_clean_files="$ac_clean_files conftest.out" | |
4550 | # Check that the compiler produces executables we can run. If not, either | |
4551 | # the compiler is broken, or we cross compile. | |
4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4553 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4554 | if test "$cross_compiling" != yes; then | |
4555 | { { ac_try="$ac_link" | |
4556 | case "(($ac_try" in | |
4557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4558 | *) ac_try_echo=$ac_try;; | |
4559 | esac | |
4560 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4561 | $as_echo "$ac_try_echo"; } >&5 | |
4562 | (eval "$ac_link") 2>&5 | |
4563 | ac_status=$? | |
4564 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4565 | test $ac_status = 0; } | |
4566 | if { ac_try='./conftest$ac_cv_exeext' | |
4567 | { { case "(($ac_try" in | |
4568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4569 | *) ac_try_echo=$ac_try;; | |
4570 | esac | |
4571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4572 | $as_echo "$ac_try_echo"; } >&5 | |
4573 | (eval "$ac_try") 2>&5 | |
4574 | ac_status=$? | |
4575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4576 | test $ac_status = 0; }; }; then | |
4577 | cross_compiling=no | |
4578 | else | |
4579 | if test "$cross_compiling" = maybe; then | |
4580 | cross_compiling=yes | |
4581 | else | |
4582 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4584 | as_fn_error $? "cannot run C compiled programs. | |
4585 | If you meant to cross compile, use \`--host'. | |
4586 | See \`config.log' for more details" "$LINENO" 5; } | |
4587 | fi | |
4588 | fi | |
4589 | fi | |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4591 | $as_echo "$cross_compiling" >&6; } | |
4592 | ||
4593 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4594 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4596 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4597 | if ${ac_cv_objext+:} false; then : |
5213506e | 4598 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4599 | else |
5213506e | 4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4601 | /* end confdefs.h. */ |
4602 | ||
4603 | int | |
4604 | main () | |
4605 | { | |
4606 | ||
4607 | ; | |
4608 | return 0; | |
4609 | } | |
4610 | _ACEOF | |
4611 | rm -f conftest.o conftest.obj | |
5213506e RW |
4612 | if { { ac_try="$ac_compile" |
4613 | case "(($ac_try" in | |
4614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4615 | *) ac_try_echo=$ac_try;; | |
4616 | esac | |
4617 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4618 | $as_echo "$ac_try_echo"; } >&5 | |
4619 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4620 | ac_status=$? |
5213506e RW |
4621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4622 | test $ac_status = 0; }; then : | |
4623 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4624 | test -f "$ac_file" || continue; | |
1c710c3c | 4625 | case $ac_file in |
5213506e | 4626 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4627 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4628 | break;; | |
4629 | esac | |
4630 | done | |
4631 | else | |
5213506e | 4632 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4633 | sed 's/^/| /' conftest.$ac_ext >&5 |
4634 | ||
5213506e RW |
4635 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4636 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4637 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4638 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4639 | fi |
1c710c3c DJ |
4640 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4641 | fi | |
5213506e RW |
4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4643 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4644 | OBJEXT=$ac_cv_objext |
4645 | ac_objext=$OBJEXT | |
5213506e RW |
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4647 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4648 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4649 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4650 | else |
5213506e | 4651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4652 | /* end confdefs.h. */ |
4653 | ||
4654 | int | |
4655 | main () | |
4656 | { | |
4657 | #ifndef __GNUC__ | |
4658 | choke me | |
4659 | #endif | |
4660 | ||
4661 | ; | |
4662 | return 0; | |
4663 | } | |
4664 | _ACEOF | |
5213506e | 4665 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4666 | ac_compiler_gnu=yes |
4667 | else | |
5213506e | 4668 | ac_compiler_gnu=no |
1c710c3c | 4669 | fi |
5213506e | 4670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4671 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4672 | ||
4673 | fi | |
5213506e RW |
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4675 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4676 | if test $ac_compiler_gnu = yes; then | |
4677 | GCC=yes | |
4678 | else | |
4679 | GCC= | |
4680 | fi | |
1c710c3c DJ |
4681 | ac_test_CFLAGS=${CFLAGS+set} |
4682 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4684 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4685 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4686 | $as_echo_n "(cached) " >&6 |
4687 | else | |
4688 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4689 | ac_c_werror_flag=yes | |
4690 | ac_cv_prog_cc_g=no | |
4691 | CFLAGS="-g" | |
4692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4693 | /* end confdefs.h. */ |
4694 | ||
4695 | int | |
4696 | main () | |
4697 | { | |
4698 | ||
4699 | ; | |
4700 | return 0; | |
4701 | } | |
4702 | _ACEOF | |
5213506e | 4703 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4704 | ac_cv_prog_cc_g=yes |
4705 | else | |
5213506e RW |
4706 | CFLAGS="" |
4707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4708 | /* end confdefs.h. */ | |
4709 | ||
4710 | int | |
4711 | main () | |
4712 | { | |
4713 | ||
4714 | ; | |
4715 | return 0; | |
4716 | } | |
4717 | _ACEOF | |
4718 | if ac_fn_c_try_compile "$LINENO"; then : | |
4719 | ||
4720 | else | |
4721 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4722 | CFLAGS="-g" | |
4723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4724 | /* end confdefs.h. */ | |
af71363e | 4725 | |
5213506e RW |
4726 | int |
4727 | main () | |
4728 | { | |
4729 | ||
4730 | ; | |
4731 | return 0; | |
4732 | } | |
4733 | _ACEOF | |
4734 | if ac_fn_c_try_compile "$LINENO"; then : | |
4735 | ac_cv_prog_cc_g=yes | |
4736 | fi | |
4737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4738 | fi |
5213506e | 4739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4740 | fi |
5213506e RW |
4741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4742 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4743 | fi | |
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4745 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4746 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4747 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4748 | elif test $ac_cv_prog_cc_g = yes; then |
4749 | if test "$GCC" = yes; then | |
4750 | CFLAGS="-g -O2" | |
4751 | else | |
4752 | CFLAGS="-g" | |
4753 | fi | |
4754 | else | |
4755 | if test "$GCC" = yes; then | |
4756 | CFLAGS="-O2" | |
4757 | else | |
4758 | CFLAGS= | |
4759 | fi | |
4760 | fi | |
5213506e RW |
4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4762 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4763 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4764 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4765 | else |
5213506e | 4766 | ac_cv_prog_cc_c89=no |
1c710c3c | 4767 | ac_save_CC=$CC |
5213506e | 4768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4769 | /* end confdefs.h. */ |
4770 | #include <stdarg.h> | |
4771 | #include <stdio.h> | |
22e05272 | 4772 | struct stat; |
1c710c3c DJ |
4773 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4774 | struct buf { int x; }; | |
4775 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4776 | static char *e (p, i) | |
4777 | char **p; | |
4778 | int i; | |
4779 | { | |
4780 | return p[i]; | |
4781 | } | |
4782 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4783 | { | |
4784 | char *s; | |
4785 | va_list v; | |
4786 | va_start (v,p); | |
4787 | s = g (p, va_arg (v,int)); | |
4788 | va_end (v); | |
4789 | return s; | |
4790 | } | |
4791 | ||
4792 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4793 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4794 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4795 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4796 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4797 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4798 | that's true only with -std. */ |
1c710c3c DJ |
4799 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4800 | ||
5213506e RW |
4801 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4802 | inside strings and character constants. */ | |
4803 | #define FOO(x) 'x' | |
4804 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4805 | ||
1c710c3c DJ |
4806 | int test (int i, double x); |
4807 | struct s1 {int (*f) (int a);}; | |
4808 | struct s2 {int (*f) (double a);}; | |
4809 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4810 | int argc; | |
4811 | char **argv; | |
4812 | int | |
4813 | main () | |
4814 | { | |
4815 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4816 | ; | |
4817 | return 0; | |
4818 | } | |
4819 | _ACEOF | |
5213506e RW |
4820 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4821 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4822 | do |
4823 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4824 | if ac_fn_c_try_compile "$LINENO"; then : |
4825 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4826 | fi |
5213506e RW |
4827 | rm -f core conftest.err conftest.$ac_objext |
4828 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4829 | done |
5213506e | 4830 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4831 | CC=$ac_save_CC |
4832 | ||
4833 | fi | |
5213506e RW |
4834 | # AC_CACHE_VAL |
4835 | case "x$ac_cv_prog_cc_c89" in | |
4836 | x) | |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4838 | $as_echo "none needed" >&6; } ;; | |
4839 | xno) | |
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4841 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4842 | *) |
5213506e RW |
4843 | CC="$CC $ac_cv_prog_cc_c89" |
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4845 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4846 | esac |
5213506e | 4847 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4848 | |
2aeb72e9 DD |
4849 | fi |
4850 | ||
2aeb72e9 DD |
4851 | ac_ext=c |
4852 | ac_cpp='$CPP $CPPFLAGS' | |
4853 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4854 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4855 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4856 | ||
91743432 NC |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4858 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4859 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4860 | $as_echo_n "(cached) " >&6 | |
4861 | else | |
4862 | ac_cv_prog_cc_c99=no | |
4863 | ac_save_CC=$CC | |
4864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4865 | /* end confdefs.h. */ | |
4866 | #include <stdarg.h> | |
4867 | #include <stdbool.h> | |
4868 | #include <stdlib.h> | |
4869 | #include <wchar.h> | |
4870 | #include <stdio.h> | |
4871 | ||
4872 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4873 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4874 | #define showlist(...) puts (#__VA_ARGS__) | |
4875 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4876 | static void | |
4877 | test_varargs_macros (void) | |
4878 | { | |
4879 | int x = 1234; | |
4880 | int y = 5678; | |
4881 | debug ("Flag"); | |
4882 | debug ("X = %d\n", x); | |
4883 | showlist (The first, second, and third items.); | |
4884 | report (x>y, "x is %d but y is %d", x, y); | |
4885 | } | |
4886 | ||
4887 | // Check long long types. | |
4888 | #define BIG64 18446744073709551615ull | |
4889 | #define BIG32 4294967295ul | |
4890 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4891 | #if !BIG_OK | |
4892 | your preprocessor is broken; | |
4893 | #endif | |
4894 | #if BIG_OK | |
4895 | #else | |
4896 | your preprocessor is broken; | |
4897 | #endif | |
4898 | static long long int bignum = -9223372036854775807LL; | |
4899 | static unsigned long long int ubignum = BIG64; | |
4900 | ||
4901 | struct incomplete_array | |
4902 | { | |
4903 | int datasize; | |
4904 | double data[]; | |
4905 | }; | |
4906 | ||
4907 | struct named_init { | |
4908 | int number; | |
4909 | const wchar_t *name; | |
4910 | double average; | |
4911 | }; | |
4912 | ||
4913 | typedef const char *ccp; | |
4914 | ||
4915 | static inline int | |
4916 | test_restrict (ccp restrict text) | |
4917 | { | |
4918 | // See if C++-style comments work. | |
4919 | // Iterate through items via the restricted pointer. | |
4920 | // Also check for declarations in for loops. | |
4921 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4922 | continue; | |
4923 | return 0; | |
4924 | } | |
4925 | ||
4926 | // Check varargs and va_copy. | |
4927 | static void | |
4928 | test_varargs (const char *format, ...) | |
4929 | { | |
4930 | va_list args; | |
4931 | va_start (args, format); | |
4932 | va_list args_copy; | |
4933 | va_copy (args_copy, args); | |
4934 | ||
4935 | const char *str; | |
4936 | int number; | |
4937 | float fnumber; | |
4938 | ||
4939 | while (*format) | |
4940 | { | |
4941 | switch (*format++) | |
4942 | { | |
4943 | case 's': // string | |
4944 | str = va_arg (args_copy, const char *); | |
4945 | break; | |
4946 | case 'd': // int | |
4947 | number = va_arg (args_copy, int); | |
4948 | break; | |
4949 | case 'f': // float | |
4950 | fnumber = va_arg (args_copy, double); | |
4951 | break; | |
4952 | default: | |
4953 | break; | |
4954 | } | |
4955 | } | |
4956 | va_end (args_copy); | |
4957 | va_end (args); | |
4958 | } | |
4959 | ||
4960 | int | |
4961 | main () | |
4962 | { | |
4963 | ||
4964 | // Check bool. | |
4965 | _Bool success = false; | |
4966 | ||
4967 | // Check restrict. | |
4968 | if (test_restrict ("String literal") == 0) | |
4969 | success = true; | |
4970 | char *restrict newvar = "Another string"; | |
4971 | ||
4972 | // Check varargs. | |
4973 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
4974 | test_varargs_macros (); | |
4975 | ||
4976 | // Check flexible array members. | |
4977 | struct incomplete_array *ia = | |
4978 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4979 | ia->datasize = 10; | |
4980 | for (int i = 0; i < ia->datasize; ++i) | |
4981 | ia->data[i] = i * 1.234; | |
4982 | ||
4983 | // Check named initializers. | |
4984 | struct named_init ni = { | |
4985 | .number = 34, | |
4986 | .name = L"Test wide string", | |
4987 | .average = 543.34343, | |
4988 | }; | |
4989 | ||
4990 | ni.number = 58; | |
4991 | ||
4992 | int dynamic_array[ni.number]; | |
4993 | dynamic_array[ni.number - 1] = 543; | |
4994 | ||
4995 | // work around unused variable warnings | |
4996 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4997 | || dynamic_array[ni.number - 1] != 543); | |
4998 | ||
4999 | ; | |
5000 | return 0; | |
5001 | } | |
5002 | _ACEOF | |
5003 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5004 | do | |
5005 | CC="$ac_save_CC $ac_arg" | |
5006 | if ac_fn_c_try_compile "$LINENO"; then : | |
5007 | ac_cv_prog_cc_c99=$ac_arg | |
5008 | fi | |
5009 | rm -f core conftest.err conftest.$ac_objext | |
5010 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5011 | done | |
5012 | rm -f conftest.$ac_ext | |
5013 | CC=$ac_save_CC | |
5014 | ||
5015 | fi | |
5016 | # AC_CACHE_VAL | |
5017 | case "x$ac_cv_prog_cc_c99" in | |
5018 | x) | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5020 | $as_echo "none needed" >&6; } ;; | |
5021 | xno) | |
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5023 | $as_echo "unsupported" >&6; } ;; | |
5024 | *) | |
5025 | CC="$CC $ac_cv_prog_cc_c99" | |
5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5027 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5028 | esac | |
5029 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5030 | ||
5031 | fi | |
5032 | ||
5033 | ||
5213506e | 5034 | ac_ext=cpp |
2aeb72e9 DD |
5035 | ac_cpp='$CXXCPP $CPPFLAGS' |
5036 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5037 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5038 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
5039 | if test -z "$CXX"; then |
5040 | if test -n "$CCC"; then | |
5041 | CXX=$CCC | |
5042 | else | |
5043 | if test -n "$ac_tool_prefix"; then | |
5044 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
5045 | do |
5046 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5047 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5049 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5050 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 5051 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
5052 | else |
5053 | if test -n "$CXX"; then | |
5054 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5055 | else | |
5056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5057 | for as_dir in $PATH | |
5058 | do | |
5059 | IFS=$as_save_IFS | |
5060 | test -z "$as_dir" && as_dir=. | |
5213506e | 5061 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 5063 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 5064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
5065 | break 2 |
5066 | fi | |
5067 | done | |
5213506e RW |
5068 | done |
5069 | IFS=$as_save_IFS | |
55ffb5ed | 5070 | |
c3a86da9 DJ |
5071 | fi |
5072 | fi | |
5073 | CXX=$ac_cv_prog_CXX | |
5074 | if test -n "$CXX"; then | |
5213506e RW |
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5076 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 5077 | else |
5213506e RW |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5079 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5080 | fi |
5081 | ||
5213506e | 5082 | |
c3a86da9 DJ |
5083 | test -n "$CXX" && break |
5084 | done | |
5085 | fi | |
5086 | if test -z "$CXX"; then | |
5087 | ac_ct_CXX=$CXX | |
5213506e | 5088 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
5089 | do |
5090 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5091 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5093 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5094 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 5095 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
5096 | else |
5097 | if test -n "$ac_ct_CXX"; then | |
5098 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5099 | else | |
5100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5101 | for as_dir in $PATH | |
5102 | do | |
5103 | IFS=$as_save_IFS | |
5104 | test -z "$as_dir" && as_dir=. | |
5213506e | 5105 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 5107 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 5108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
5109 | break 2 |
5110 | fi | |
5111 | done | |
5213506e RW |
5112 | done |
5113 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5114 | |
5115 | fi | |
5116 | fi | |
5117 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5118 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5120 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5121 | else |
5213506e RW |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5123 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5124 | fi |
5125 | ||
5213506e | 5126 | |
c3a86da9 DJ |
5127 | test -n "$ac_ct_CXX" && break |
5128 | done | |
c3a86da9 | 5129 | |
5213506e RW |
5130 | if test "x$ac_ct_CXX" = x; then |
5131 | CXX="g++" | |
5132 | else | |
5133 | case $cross_compiling:$ac_tool_warned in | |
5134 | yes:) | |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5136 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5137 | ac_tool_warned=yes ;; | |
5138 | esac | |
5139 | CXX=$ac_ct_CXX | |
5140 | fi | |
c3a86da9 DJ |
5141 | fi |
5142 | ||
5213506e RW |
5143 | fi |
5144 | fi | |
c3a86da9 | 5145 | # Provide some information about the compiler. |
5213506e RW |
5146 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5147 | set X $ac_compile | |
5148 | ac_compiler=$2 | |
5149 | for ac_option in --version -v -V -qversion; do | |
5150 | { { ac_try="$ac_compiler $ac_option >&5" | |
5151 | case "(($ac_try" in | |
5152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5153 | *) ac_try_echo=$ac_try;; | |
5154 | esac | |
5155 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5156 | $as_echo "$ac_try_echo"; } >&5 | |
5157 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5158 | ac_status=$? |
5213506e RW |
5159 | if test -s conftest.err; then |
5160 | sed '10a\ | |
5161 | ... rest of stderr output deleted ... | |
5162 | 10q' conftest.err >conftest.er1 | |
5163 | cat conftest.er1 >&5 | |
5213506e | 5164 | fi |
22e05272 | 5165 | rm -f conftest.er1 conftest.err |
5213506e RW |
5166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5167 | test $ac_status = 0; } | |
5168 | done | |
c3a86da9 | 5169 | |
5213506e RW |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5171 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5172 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5173 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5174 | else |
5213506e | 5175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5176 | /* end confdefs.h. */ |
5177 | ||
5178 | int | |
5179 | main () | |
5180 | { | |
5181 | #ifndef __GNUC__ | |
5182 | choke me | |
5183 | #endif | |
5184 | ||
5185 | ; | |
5186 | return 0; | |
5187 | } | |
5188 | _ACEOF | |
5213506e | 5189 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5190 | ac_compiler_gnu=yes |
5191 | else | |
5213506e | 5192 | ac_compiler_gnu=no |
c3a86da9 | 5193 | fi |
5213506e | 5194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5195 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5196 | ||
5197 | fi | |
5213506e RW |
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5199 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5200 | if test $ac_compiler_gnu = yes; then | |
5201 | GXX=yes | |
5202 | else | |
5203 | GXX= | |
5204 | fi | |
c3a86da9 DJ |
5205 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5206 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5208 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5209 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5210 | $as_echo_n "(cached) " >&6 |
5211 | else | |
5212 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5213 | ac_cxx_werror_flag=yes | |
5214 | ac_cv_prog_cxx_g=no | |
5215 | CXXFLAGS="-g" | |
5216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5217 | /* end confdefs.h. */ |
5218 | ||
5219 | int | |
5220 | main () | |
5221 | { | |
5222 | ||
5223 | ; | |
5224 | return 0; | |
5225 | } | |
5226 | _ACEOF | |
5213506e | 5227 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5228 | ac_cv_prog_cxx_g=yes |
5229 | else | |
5213506e RW |
5230 | CXXFLAGS="" |
5231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5232 | /* end confdefs.h. */ |
5213506e | 5233 | |
c3a86da9 DJ |
5234 | int |
5235 | main () | |
5236 | { | |
5213506e | 5237 | |
c3a86da9 DJ |
5238 | ; |
5239 | return 0; | |
5240 | } | |
5241 | _ACEOF | |
5213506e | 5242 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5243 | |
5213506e RW |
5244 | else |
5245 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5246 | CXXFLAGS="-g" | |
5247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5248 | /* end confdefs.h. */ |
5213506e | 5249 | |
c3a86da9 DJ |
5250 | int |
5251 | main () | |
5252 | { | |
5213506e | 5253 | |
c3a86da9 DJ |
5254 | ; |
5255 | return 0; | |
5256 | } | |
5257 | _ACEOF | |
5213506e RW |
5258 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5259 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5260 | fi |
5213506e RW |
5261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5262 | fi | |
5263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5264 | fi | |
5265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5266 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5267 | fi | |
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5269 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5270 | if test "$ac_test_CXXFLAGS" = set; then | |
5271 | CXXFLAGS=$ac_save_CXXFLAGS | |
5272 | elif test $ac_cv_prog_cxx_g = yes; then | |
5273 | if test "$GXX" = yes; then | |
5274 | CXXFLAGS="-g -O2" | |
5275 | else | |
5276 | CXXFLAGS="-g" | |
5277 | fi | |
5278 | else | |
5279 | if test "$GXX" = yes; then | |
5280 | CXXFLAGS="-O2" | |
5281 | else | |
5282 | CXXFLAGS= | |
5283 | fi | |
c3a86da9 | 5284 | fi |
c3a86da9 DJ |
5285 | ac_ext=c |
5286 | ac_cpp='$CPP $CPPFLAGS' | |
5287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5290 | ||
5291 | ||
5292 | # We must set the default linker to the linker used by gcc for the correct | |
5293 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5294 | # set the LD default to the ld used by gcc. | |
5295 | if test -z "$LD"; then | |
5296 | if test "$GCC" = yes; then | |
5297 | case $build in | |
5298 | *-*-mingw*) | |
5299 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5300 | *) | |
5301 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5302 | esac | |
5303 | case $gcc_prog_ld in | |
5304 | # Accept absolute paths. | |
5305 | [\\/]* | [A-Za-z]:[\\/]*) | |
5306 | LD="$gcc_prog_ld" ;; | |
5307 | esac | |
5308 | fi | |
23f6b2f9 PB |
5309 | fi |
5310 | ||
0b21f5d3 EB |
5311 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5312 | have_static_libs=no | |
5313 | if test "$GCC" = yes; then | |
5314 | saved_LDFLAGS="$LDFLAGS" | |
5315 | ||
5316 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5318 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5319 | ac_ext=cpp | |
5320 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5321 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5322 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5323 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5324 | ||
5325 | ||
5326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5327 | /* end confdefs.h. */ | |
0d6414b2 EB |
5328 | |
5329 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5330 | #error -static-libstdc++ not implemented | |
5331 | #endif | |
0b21f5d3 EB |
5332 | int main() {} |
5333 | _ACEOF | |
5334 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5336 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5337 | else | |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5339 | $as_echo "no" >&6; } | |
5340 | fi | |
5341 | rm -f core conftest.err conftest.$ac_objext \ | |
5342 | conftest$ac_exeext conftest.$ac_ext | |
5343 | ac_ext=c | |
5344 | ac_cpp='$CPP $CPPFLAGS' | |
5345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5348 | ||
5349 | ||
5350 | LDFLAGS="$saved_LDFLAGS" | |
5351 | fi | |
5352 | ||
23f6b2f9 PB |
5353 | |
5354 | ||
55ffb5ed | 5355 | |
1c710c3c DJ |
5356 | if test -n "$ac_tool_prefix"; then |
5357 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5358 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5360 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5361 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5362 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5363 | else |
5364 | if test -n "$GNATBIND"; then | |
5365 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5366 | else | |
1c710c3c DJ |
5367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5368 | for as_dir in $PATH | |
5369 | do | |
5370 | IFS=$as_save_IFS | |
5371 | test -z "$as_dir" && as_dir=. | |
5213506e | 5372 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5373 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5374 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5376 | break 2 |
5377 | fi | |
5378 | done | |
5213506e RW |
5379 | done |
5380 | IFS=$as_save_IFS | |
1c710c3c | 5381 | |
55ffb5ed NN |
5382 | fi |
5383 | fi | |
1c710c3c | 5384 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5385 | if test -n "$GNATBIND"; then |
5213506e RW |
5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5387 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5388 | else |
5213506e RW |
5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5390 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5391 | fi |
5392 | ||
5213506e | 5393 | |
1c710c3c | 5394 | fi |
55ffb5ed | 5395 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5396 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5397 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5398 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5400 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5401 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5402 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5403 | else |
1c710c3c DJ |
5404 | if test -n "$ac_ct_GNATBIND"; then |
5405 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5406 | else |
1c710c3c DJ |
5407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5408 | for as_dir in $PATH | |
5409 | do | |
5410 | IFS=$as_save_IFS | |
5411 | test -z "$as_dir" && as_dir=. | |
5213506e | 5412 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5414 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5416 | break 2 |
5417 | fi | |
5418 | done | |
5213506e RW |
5419 | done |
5420 | IFS=$as_save_IFS | |
1c710c3c | 5421 | |
55ffb5ed NN |
5422 | fi |
5423 | fi | |
1c710c3c DJ |
5424 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5425 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5427 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5428 | else |
5213506e RW |
5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5430 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5431 | fi |
5432 | ||
5213506e RW |
5433 | if test "x$ac_ct_GNATBIND" = x; then |
5434 | GNATBIND="no" | |
5435 | else | |
5436 | case $cross_compiling:$ac_tool_warned in | |
5437 | yes:) | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5439 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5440 | ac_tool_warned=yes ;; | |
5441 | esac | |
5442 | GNATBIND=$ac_ct_GNATBIND | |
5443 | fi | |
55ffb5ed | 5444 | else |
1c710c3c | 5445 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5446 | fi |
5447 | ||
1c710c3c DJ |
5448 | if test -n "$ac_tool_prefix"; then |
5449 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5450 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5452 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5453 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5454 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5455 | else |
5456 | if test -n "$GNATMAKE"; then | |
5457 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5458 | else | |
1c710c3c DJ |
5459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5460 | for as_dir in $PATH | |
5461 | do | |
5462 | IFS=$as_save_IFS | |
5463 | test -z "$as_dir" && as_dir=. | |
5213506e | 5464 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5466 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5468 | break 2 |
5469 | fi | |
5470 | done | |
5213506e RW |
5471 | done |
5472 | IFS=$as_save_IFS | |
1c710c3c | 5473 | |
5305be7e RG |
5474 | fi |
5475 | fi | |
1c710c3c | 5476 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5477 | if test -n "$GNATMAKE"; then |
5213506e RW |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5479 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5480 | else |
5213506e RW |
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5482 | $as_echo "no" >&6; } | |
5305be7e RG |
5483 | fi |
5484 | ||
5213506e | 5485 | |
1c710c3c | 5486 | fi |
5305be7e | 5487 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5488 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5489 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5490 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5492 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5493 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5494 | $as_echo_n "(cached) " >&6 |
5305be7e | 5495 | else |
1c710c3c DJ |
5496 | if test -n "$ac_ct_GNATMAKE"; then |
5497 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5498 | else |
1c710c3c DJ |
5499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5500 | for as_dir in $PATH | |
5501 | do | |
5502 | IFS=$as_save_IFS | |
5503 | test -z "$as_dir" && as_dir=. | |
5213506e | 5504 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5505 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5506 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5508 | break 2 |
5509 | fi | |
5510 | done | |
5213506e RW |
5511 | done |
5512 | IFS=$as_save_IFS | |
1c710c3c | 5513 | |
5305be7e RG |
5514 | fi |
5515 | fi | |
1c710c3c DJ |
5516 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5517 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5519 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5520 | else |
5213506e RW |
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5522 | $as_echo "no" >&6; } | |
5305be7e RG |
5523 | fi |
5524 | ||
5213506e RW |
5525 | if test "x$ac_ct_GNATMAKE" = x; then |
5526 | GNATMAKE="no" | |
5527 | else | |
5528 | case $cross_compiling:$ac_tool_warned in | |
5529 | yes:) | |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5531 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5532 | ac_tool_warned=yes ;; | |
5533 | esac | |
5534 | GNATMAKE=$ac_ct_GNATMAKE | |
5535 | fi | |
5305be7e | 5536 | else |
1c710c3c | 5537 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5538 | fi |
5539 | ||
71f068a9 RS |
5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 |
5541 | $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } | |
22e05272 | 5542 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5543 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5544 | else |
5545 | cat >conftest.adb <<EOF | |
71f068a9 RS |
5546 | pragma Warnings (Off); |
5547 | with System.CRTL; | |
5548 | pragma Warnings (On); | |
5549 | use type System.CRTL.int64; | |
55ffb5ed NN |
5550 | procedure conftest is begin null; end conftest; |
5551 | EOF | |
5552 | acx_cv_cc_gcc_supports_ada=no | |
5553 | # There is a bug in old released versions of GCC which causes the | |
5554 | # driver to exit successfully when the appropriate language module | |
5555 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5556 | # Therefore we must check for the error message as well as an | |
5557 | # unsuccessful exit. | |
1db673ca RO |
5558 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5559 | # given a .adb file, but produce no object file. So we must check | |
5560 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5561 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5562 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5563 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5564 | fi |
5565 | rm -f conftest.* | |
5566 | fi | |
5213506e RW |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5568 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5569 | |
7cb62ef1 | 5570 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5571 | have_gnat=yes |
5572 | else | |
5573 | have_gnat=no | |
5574 | fi | |
5575 | ||
5fee5ec3 IB |
5576 | |
5577 | ||
5578 | if test -n "$ac_tool_prefix"; then | |
5579 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5580 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5582 | $as_echo_n "checking for $ac_word... " >&6; } | |
5583 | if ${ac_cv_prog_GDC+:} false; then : | |
5584 | $as_echo_n "(cached) " >&6 | |
5585 | else | |
5586 | if test -n "$GDC"; then | |
5587 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5588 | else | |
5589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5590 | for as_dir in $PATH | |
5591 | do | |
5592 | IFS=$as_save_IFS | |
5593 | test -z "$as_dir" && as_dir=. | |
5594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5596 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5598 | break 2 | |
5599 | fi | |
5600 | done | |
5601 | done | |
5602 | IFS=$as_save_IFS | |
5603 | ||
5604 | fi | |
5605 | fi | |
5606 | GDC=$ac_cv_prog_GDC | |
5607 | if test -n "$GDC"; then | |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5609 | $as_echo "$GDC" >&6; } | |
5610 | else | |
5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5612 | $as_echo "no" >&6; } | |
5613 | fi | |
5614 | ||
5615 | ||
5616 | fi | |
5617 | if test -z "$ac_cv_prog_GDC"; then | |
5618 | ac_ct_GDC=$GDC | |
5619 | # Extract the first word of "gdc", so it can be a program name with args. | |
5620 | set dummy gdc; ac_word=$2 | |
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5622 | $as_echo_n "checking for $ac_word... " >&6; } | |
5623 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5624 | $as_echo_n "(cached) " >&6 | |
5625 | else | |
5626 | if test -n "$ac_ct_GDC"; then | |
5627 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5628 | else | |
5629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5630 | for as_dir in $PATH | |
5631 | do | |
5632 | IFS=$as_save_IFS | |
5633 | test -z "$as_dir" && as_dir=. | |
5634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5636 | ac_cv_prog_ac_ct_GDC="gdc" | |
5637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5638 | break 2 | |
5639 | fi | |
5640 | done | |
5641 | done | |
5642 | IFS=$as_save_IFS | |
5643 | ||
5644 | fi | |
5645 | fi | |
5646 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5647 | if test -n "$ac_ct_GDC"; then | |
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5649 | $as_echo "$ac_ct_GDC" >&6; } | |
5650 | else | |
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5652 | $as_echo "no" >&6; } | |
5653 | fi | |
5654 | ||
5655 | if test "x$ac_ct_GDC" = x; then | |
5656 | GDC="no" | |
5657 | else | |
5658 | case $cross_compiling:$ac_tool_warned in | |
5659 | yes:) | |
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5661 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5662 | ac_tool_warned=yes ;; | |
5663 | esac | |
5664 | GDC=$ac_ct_GDC | |
5665 | fi | |
5666 | else | |
5667 | GDC="$ac_cv_prog_GDC" | |
5668 | fi | |
5669 | ||
7c6ae994 IB |
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 |
5671 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5672 | if ${acx_cv_d_compiler_works+:} false; then : | |
5673 | $as_echo_n "(cached) " >&6 | |
5674 | else | |
5675 | cat >conftest.d <<EOF | |
5676 | module conftest; int main() { return 0; } | |
5677 | EOF | |
5678 | acx_cv_d_compiler_works=no | |
5fee5ec3 | 5679 | if test "x$GDC" != xno; then |
7c6ae994 IB |
5680 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` |
5681 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5682 | acx_cv_d_compiler_works=yes | |
5683 | fi | |
5684 | rm -f conftest.* | |
5685 | fi | |
5686 | fi | |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5688 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5689 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5fee5ec3 IB |
5690 | have_gdc=yes |
5691 | else | |
5692 | have_gdc=no | |
5693 | fi | |
5694 | ||
5213506e RW |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5696 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5697 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5698 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5699 | else |
5700 | echo abfoo >t1 | |
5701 | echo cdfoo >t2 | |
b55e6680 | 5702 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5703 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5704 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5705 | : | |
5706 | else | |
5707 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5708 | fi | |
5709 | fi | |
a76494aa PB |
5710 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5711 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5712 | : |
a76494aa PB |
5713 | else |
5714 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5715 | fi | |
5716 | fi | |
5717 | rm t1 t2 | |
5718 | ||
5719 | fi | |
5213506e RW |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5721 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5722 | do_compare="$gcc_cv_prog_cmp_skip" |
5723 | ||
5724 | ||
55ffb5ed | 5725 | |
ff3ac0f4 ILT |
5726 | # Check whether --enable-bootstrap was given. |
5727 | if test "${enable_bootstrap+set}" = set; then : | |
5728 | enableval=$enable_bootstrap; | |
5729 | else | |
5730 | enable_bootstrap=default | |
5731 | fi | |
5732 | ||
5733 | ||
5734 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5735 | if test -r $srcdir/gcc/configure; then |
5736 | have_compiler=yes | |
5737 | else | |
5738 | have_compiler=no | |
5739 | fi | |
ff3ac0f4 ILT |
5740 | |
5741 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5742 | *:*:*:no) ;; | |
5743 | ||
5744 | # Default behavior. Enable bootstrap if we have a compiler | |
5745 | # and we are in a native configuration. | |
5746 | yes:$build:$build:default) | |
5747 | enable_bootstrap=yes ;; | |
5748 | ||
5749 | *:*:*:default) | |
5750 | enable_bootstrap=no ;; | |
5751 | ||
5752 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5753 | yes:$build:$build:yes) | |
5754 | ;; | |
5755 | ||
5756 | # Other configurations, but we have a compiler. Assume the user knows | |
5757 | # what he's doing. | |
5758 | yes:*:*:yes) | |
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5760 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5761 | ;; | |
5762 | ||
5763 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5764 | no:*:*:yes) | |
22e05272 | 5765 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5766 | |
5767 | # Fail if wrong command line | |
5768 | *) | |
22e05272 | 5769 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5770 | ;; |
5771 | esac | |
5772 | ||
5329b59a | 5773 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5774 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5775 | # require C++11 (or higher). | |
46070488 | 5776 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5777 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5778 | elif test "$have_compiler" = yes; then |
5779 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5780 | ac_ext=cpp | |
5781 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5782 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5783 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5784 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5785 | ac_success=no | |
5786 | ||
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5788 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5789 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5790 | $as_echo_n "(cached) " >&6 | |
5791 | else | |
5792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5793 | /* end confdefs.h. */ | |
5794 | ||
5795 | ||
5796 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5797 | // Hopefully, this will speed up the test. | |
5798 | ||
5799 | #ifndef __cplusplus | |
5800 | ||
5801 | #error "This is not a C++ compiler" | |
5802 | ||
5803 | #elif __cplusplus < 201103L | |
5804 | ||
5805 | #error "This is not a C++11 compiler" | |
5806 | ||
5807 | #else | |
5808 | ||
5809 | namespace cxx11 | |
5810 | { | |
5811 | ||
5812 | namespace test_static_assert | |
5813 | { | |
5814 | ||
5815 | template <typename T> | |
5816 | struct check | |
5817 | { | |
5818 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5819 | }; | |
5820 | ||
5821 | } | |
5822 | ||
5823 | namespace test_final_override | |
5824 | { | |
5825 | ||
5826 | struct Base | |
5827 | { | |
5828 | virtual ~Base() {} | |
5829 | virtual void f() {} | |
5830 | }; | |
5831 | ||
5832 | struct Derived : public Base | |
5833 | { | |
5834 | virtual ~Derived() override {} | |
5835 | virtual void f() override {} | |
5836 | }; | |
5837 | ||
5838 | } | |
5839 | ||
5840 | namespace test_double_right_angle_brackets | |
5841 | { | |
5842 | ||
5843 | template < typename T > | |
5844 | struct check {}; | |
5845 | ||
5846 | typedef check<void> single_type; | |
5847 | typedef check<check<void>> double_type; | |
5848 | typedef check<check<check<void>>> triple_type; | |
5849 | typedef check<check<check<check<void>>>> quadruple_type; | |
5850 | ||
5851 | } | |
5852 | ||
5853 | namespace test_decltype | |
5854 | { | |
5855 | ||
5856 | int | |
5857 | f() | |
5858 | { | |
5859 | int a = 1; | |
5860 | decltype(a) b = 2; | |
5861 | return a + b; | |
5862 | } | |
5863 | ||
5864 | } | |
5865 | ||
5866 | namespace test_type_deduction | |
5867 | { | |
5868 | ||
5869 | template < typename T1, typename T2 > | |
5870 | struct is_same | |
5871 | { | |
5872 | static const bool value = false; | |
5873 | }; | |
5874 | ||
5875 | template < typename T > | |
5876 | struct is_same<T, T> | |
5877 | { | |
5878 | static const bool value = true; | |
5879 | }; | |
5880 | ||
5881 | template < typename T1, typename T2 > | |
5882 | auto | |
5883 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5884 | { | |
5885 | return a1 + a2; | |
5886 | } | |
5887 | ||
5888 | int | |
5889 | test(const int c, volatile int v) | |
5890 | { | |
5891 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5892 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5893 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5894 | auto ac = c; | |
5895 | auto av = v; | |
5896 | auto sumi = ac + av + 'x'; | |
5897 | auto sumf = ac + av + 1.0; | |
5898 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5899 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5900 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5901 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5902 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5903 | return (sumf > 0.0) ? sumi : add(c, v); | |
5904 | } | |
5905 | ||
5906 | } | |
5907 | ||
5908 | namespace test_noexcept | |
5909 | { | |
5910 | ||
5911 | int f() { return 0; } | |
5912 | int g() noexcept { return 0; } | |
5913 | ||
5914 | static_assert(noexcept(f()) == false, ""); | |
5915 | static_assert(noexcept(g()) == true, ""); | |
5916 | ||
5917 | } | |
5918 | ||
5919 | namespace test_constexpr | |
5920 | { | |
5921 | ||
5922 | template < typename CharT > | |
5923 | unsigned long constexpr | |
5924 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5925 | { | |
5926 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5927 | } | |
5928 | ||
5929 | template < typename CharT > | |
5930 | unsigned long constexpr | |
5931 | strlen_c(const CharT *const s) noexcept | |
5932 | { | |
5933 | return strlen_c_r(s, 0UL); | |
5934 | } | |
5935 | ||
5936 | static_assert(strlen_c("") == 0UL, ""); | |
5937 | static_assert(strlen_c("1") == 1UL, ""); | |
5938 | static_assert(strlen_c("example") == 7UL, ""); | |
5939 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
5940 | ||
5941 | } | |
5942 | ||
5943 | namespace test_rvalue_references | |
5944 | { | |
5945 | ||
5946 | template < int N > | |
5947 | struct answer | |
5948 | { | |
5949 | static constexpr int value = N; | |
5950 | }; | |
5951 | ||
5952 | answer<1> f(int&) { return answer<1>(); } | |
5953 | answer<2> f(const int&) { return answer<2>(); } | |
5954 | answer<3> f(int&&) { return answer<3>(); } | |
5955 | ||
5956 | void | |
5957 | test() | |
5958 | { | |
5959 | int i = 0; | |
5960 | const int c = 0; | |
5961 | static_assert(decltype(f(i))::value == 1, ""); | |
5962 | static_assert(decltype(f(c))::value == 2, ""); | |
5963 | static_assert(decltype(f(0))::value == 3, ""); | |
5964 | } | |
5965 | ||
5966 | } | |
5967 | ||
5968 | namespace test_uniform_initialization | |
5969 | { | |
5970 | ||
5971 | struct test | |
5972 | { | |
5973 | static const int zero {}; | |
5974 | static const int one {1}; | |
5975 | }; | |
5976 | ||
5977 | static_assert(test::zero == 0, ""); | |
5978 | static_assert(test::one == 1, ""); | |
5979 | ||
5980 | } | |
5981 | ||
5982 | namespace test_lambdas | |
5983 | { | |
5984 | ||
5985 | void | |
5986 | test1() | |
5987 | { | |
5988 | auto lambda1 = [](){}; | |
5989 | auto lambda2 = lambda1; | |
5990 | lambda1(); | |
5991 | lambda2(); | |
5992 | } | |
5993 | ||
5994 | int | |
5995 | test2() | |
5996 | { | |
5997 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
5998 | auto b = []() -> int { return '0'; }(); | |
5999 | auto c = [=](){ return a + b; }(); | |
6000 | auto d = [&](){ return c; }(); | |
6001 | auto e = [a, &b](int x) mutable { | |
6002 | const auto identity = [](int y){ return y; }; | |
6003 | for (auto i = 0; i < a; ++i) | |
6004 | a += b--; | |
6005 | return x + identity(a + b); | |
6006 | }(0); | |
6007 | return a + b + c + d + e; | |
6008 | } | |
6009 | ||
6010 | int | |
6011 | test3() | |
6012 | { | |
6013 | const auto nullary = [](){ return 0; }; | |
6014 | const auto unary = [](int x){ return x; }; | |
6015 | using nullary_t = decltype(nullary); | |
6016 | using unary_t = decltype(unary); | |
6017 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6018 | const auto higher2nd = [unary](nullary_t f1){ | |
6019 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6020 | }; | |
6021 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6022 | } | |
6023 | ||
6024 | } | |
6025 | ||
6026 | namespace test_variadic_templates | |
6027 | { | |
6028 | ||
6029 | template <int...> | |
6030 | struct sum; | |
6031 | ||
6032 | template <int N0, int... N1toN> | |
6033 | struct sum<N0, N1toN...> | |
6034 | { | |
6035 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6036 | }; | |
6037 | ||
6038 | template <> | |
6039 | struct sum<> | |
6040 | { | |
6041 | static constexpr auto value = 0; | |
6042 | }; | |
6043 | ||
6044 | static_assert(sum<>::value == 0, ""); | |
6045 | static_assert(sum<1>::value == 1, ""); | |
6046 | static_assert(sum<23>::value == 23, ""); | |
6047 | static_assert(sum<1, 2>::value == 3, ""); | |
6048 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6049 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6050 | ||
6051 | } | |
6052 | ||
6053 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6054 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6055 | // because of this. | |
6056 | namespace test_template_alias_sfinae | |
6057 | { | |
6058 | ||
6059 | struct foo {}; | |
6060 | ||
6061 | template<typename T> | |
6062 | using member = typename T::member_type; | |
6063 | ||
6064 | template<typename T> | |
6065 | void func(...) {} | |
6066 | ||
6067 | template<typename T> | |
6068 | void func(member<T>*) {} | |
6069 | ||
6070 | void test(); | |
6071 | ||
6072 | void test() { func<foo>(0); } | |
6073 | ||
6074 | } | |
6075 | ||
6076 | } // namespace cxx11 | |
6077 | ||
6078 | #endif // __cplusplus >= 201103L | |
6079 | ||
6080 | ||
6081 | ||
6082 | _ACEOF | |
6083 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6084 | ax_cv_cxx_compile_cxx11=yes | |
6085 | else | |
6086 | ax_cv_cxx_compile_cxx11=no | |
6087 | fi | |
6088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6089 | fi | |
6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6091 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6092 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6093 | ac_success=yes | |
6094 | fi | |
6095 | ||
6096 | if test x$ac_success = xno; then | |
6097 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6098 | switch="-std=gnu++${alternative}" | |
6099 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6101 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6102 | if eval \${$cachevar+:} false; then : | |
6103 | $as_echo_n "(cached) " >&6 | |
6104 | else | |
6105 | ac_save_CXX="$CXX" | |
6106 | CXX="$CXX $switch" | |
6107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6108 | /* end confdefs.h. */ | |
6109 | ||
6110 | ||
6111 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6112 | // Hopefully, this will speed up the test. | |
6113 | ||
6114 | #ifndef __cplusplus | |
6115 | ||
6116 | #error "This is not a C++ compiler" | |
6117 | ||
6118 | #elif __cplusplus < 201103L | |
6119 | ||
6120 | #error "This is not a C++11 compiler" | |
6121 | ||
6122 | #else | |
6123 | ||
6124 | namespace cxx11 | |
6125 | { | |
6126 | ||
6127 | namespace test_static_assert | |
6128 | { | |
6129 | ||
6130 | template <typename T> | |
6131 | struct check | |
6132 | { | |
6133 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6134 | }; | |
6135 | ||
6136 | } | |
6137 | ||
6138 | namespace test_final_override | |
6139 | { | |
6140 | ||
6141 | struct Base | |
6142 | { | |
6143 | virtual ~Base() {} | |
6144 | virtual void f() {} | |
6145 | }; | |
6146 | ||
6147 | struct Derived : public Base | |
6148 | { | |
6149 | virtual ~Derived() override {} | |
6150 | virtual void f() override {} | |
6151 | }; | |
6152 | ||
6153 | } | |
6154 | ||
6155 | namespace test_double_right_angle_brackets | |
6156 | { | |
6157 | ||
6158 | template < typename T > | |
6159 | struct check {}; | |
6160 | ||
6161 | typedef check<void> single_type; | |
6162 | typedef check<check<void>> double_type; | |
6163 | typedef check<check<check<void>>> triple_type; | |
6164 | typedef check<check<check<check<void>>>> quadruple_type; | |
6165 | ||
6166 | } | |
6167 | ||
6168 | namespace test_decltype | |
6169 | { | |
6170 | ||
6171 | int | |
6172 | f() | |
6173 | { | |
6174 | int a = 1; | |
6175 | decltype(a) b = 2; | |
6176 | return a + b; | |
6177 | } | |
6178 | ||
6179 | } | |
6180 | ||
6181 | namespace test_type_deduction | |
6182 | { | |
6183 | ||
6184 | template < typename T1, typename T2 > | |
6185 | struct is_same | |
6186 | { | |
6187 | static const bool value = false; | |
6188 | }; | |
6189 | ||
6190 | template < typename T > | |
6191 | struct is_same<T, T> | |
6192 | { | |
6193 | static const bool value = true; | |
6194 | }; | |
6195 | ||
6196 | template < typename T1, typename T2 > | |
6197 | auto | |
6198 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6199 | { | |
6200 | return a1 + a2; | |
6201 | } | |
6202 | ||
6203 | int | |
6204 | test(const int c, volatile int v) | |
6205 | { | |
6206 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6207 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6208 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6209 | auto ac = c; | |
6210 | auto av = v; | |
6211 | auto sumi = ac + av + 'x'; | |
6212 | auto sumf = ac + av + 1.0; | |
6213 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6214 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6215 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6216 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6217 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6218 | return (sumf > 0.0) ? sumi : add(c, v); | |
6219 | } | |
6220 | ||
6221 | } | |
6222 | ||
6223 | namespace test_noexcept | |
6224 | { | |
6225 | ||
6226 | int f() { return 0; } | |
6227 | int g() noexcept { return 0; } | |
6228 | ||
6229 | static_assert(noexcept(f()) == false, ""); | |
6230 | static_assert(noexcept(g()) == true, ""); | |
6231 | ||
6232 | } | |
6233 | ||
6234 | namespace test_constexpr | |
6235 | { | |
6236 | ||
6237 | template < typename CharT > | |
6238 | unsigned long constexpr | |
6239 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6240 | { | |
6241 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6242 | } | |
6243 | ||
6244 | template < typename CharT > | |
6245 | unsigned long constexpr | |
6246 | strlen_c(const CharT *const s) noexcept | |
6247 | { | |
6248 | return strlen_c_r(s, 0UL); | |
6249 | } | |
6250 | ||
6251 | static_assert(strlen_c("") == 0UL, ""); | |
6252 | static_assert(strlen_c("1") == 1UL, ""); | |
6253 | static_assert(strlen_c("example") == 7UL, ""); | |
6254 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6255 | ||
6256 | } | |
6257 | ||
6258 | namespace test_rvalue_references | |
6259 | { | |
6260 | ||
6261 | template < int N > | |
6262 | struct answer | |
6263 | { | |
6264 | static constexpr int value = N; | |
6265 | }; | |
6266 | ||
6267 | answer<1> f(int&) { return answer<1>(); } | |
6268 | answer<2> f(const int&) { return answer<2>(); } | |
6269 | answer<3> f(int&&) { return answer<3>(); } | |
6270 | ||
6271 | void | |
6272 | test() | |
6273 | { | |
6274 | int i = 0; | |
6275 | const int c = 0; | |
6276 | static_assert(decltype(f(i))::value == 1, ""); | |
6277 | static_assert(decltype(f(c))::value == 2, ""); | |
6278 | static_assert(decltype(f(0))::value == 3, ""); | |
6279 | } | |
6280 | ||
6281 | } | |
6282 | ||
6283 | namespace test_uniform_initialization | |
6284 | { | |
6285 | ||
6286 | struct test | |
6287 | { | |
6288 | static const int zero {}; | |
6289 | static const int one {1}; | |
6290 | }; | |
6291 | ||
6292 | static_assert(test::zero == 0, ""); | |
6293 | static_assert(test::one == 1, ""); | |
6294 | ||
6295 | } | |
6296 | ||
6297 | namespace test_lambdas | |
6298 | { | |
6299 | ||
6300 | void | |
6301 | test1() | |
6302 | { | |
6303 | auto lambda1 = [](){}; | |
6304 | auto lambda2 = lambda1; | |
6305 | lambda1(); | |
6306 | lambda2(); | |
6307 | } | |
6308 | ||
6309 | int | |
6310 | test2() | |
6311 | { | |
6312 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6313 | auto b = []() -> int { return '0'; }(); | |
6314 | auto c = [=](){ return a + b; }(); | |
6315 | auto d = [&](){ return c; }(); | |
6316 | auto e = [a, &b](int x) mutable { | |
6317 | const auto identity = [](int y){ return y; }; | |
6318 | for (auto i = 0; i < a; ++i) | |
6319 | a += b--; | |
6320 | return x + identity(a + b); | |
6321 | }(0); | |
6322 | return a + b + c + d + e; | |
6323 | } | |
6324 | ||
6325 | int | |
6326 | test3() | |
6327 | { | |
6328 | const auto nullary = [](){ return 0; }; | |
6329 | const auto unary = [](int x){ return x; }; | |
6330 | using nullary_t = decltype(nullary); | |
6331 | using unary_t = decltype(unary); | |
6332 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6333 | const auto higher2nd = [unary](nullary_t f1){ | |
6334 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6335 | }; | |
6336 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6337 | } | |
6338 | ||
6339 | } | |
6340 | ||
6341 | namespace test_variadic_templates | |
6342 | { | |
6343 | ||
6344 | template <int...> | |
6345 | struct sum; | |
6346 | ||
6347 | template <int N0, int... N1toN> | |
6348 | struct sum<N0, N1toN...> | |
6349 | { | |
6350 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6351 | }; | |
6352 | ||
6353 | template <> | |
6354 | struct sum<> | |
6355 | { | |
6356 | static constexpr auto value = 0; | |
6357 | }; | |
6358 | ||
6359 | static_assert(sum<>::value == 0, ""); | |
6360 | static_assert(sum<1>::value == 1, ""); | |
6361 | static_assert(sum<23>::value == 23, ""); | |
6362 | static_assert(sum<1, 2>::value == 3, ""); | |
6363 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6364 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6365 | ||
6366 | } | |
6367 | ||
6368 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6369 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6370 | // because of this. | |
6371 | namespace test_template_alias_sfinae | |
6372 | { | |
6373 | ||
6374 | struct foo {}; | |
6375 | ||
6376 | template<typename T> | |
6377 | using member = typename T::member_type; | |
6378 | ||
6379 | template<typename T> | |
6380 | void func(...) {} | |
6381 | ||
6382 | template<typename T> | |
6383 | void func(member<T>*) {} | |
6384 | ||
6385 | void test(); | |
6386 | ||
6387 | void test() { func<foo>(0); } | |
6388 | ||
6389 | } | |
6390 | ||
6391 | } // namespace cxx11 | |
6392 | ||
6393 | #endif // __cplusplus >= 201103L | |
6394 | ||
6395 | ||
6396 | ||
6397 | _ACEOF | |
6398 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6399 | eval $cachevar=yes | |
6400 | else | |
6401 | eval $cachevar=no | |
6402 | fi | |
6403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6404 | CXX="$ac_save_CXX" | |
6405 | fi | |
6406 | eval ac_res=\$$cachevar | |
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6408 | $as_echo "$ac_res" >&6; } | |
6409 | if eval test x\$$cachevar = xyes; then | |
6410 | CXX="$CXX $switch" | |
6411 | if test -n "$CXXCPP" ; then | |
6412 | CXXCPP="$CXXCPP $switch" | |
6413 | fi | |
6414 | ac_success=yes | |
6415 | break | |
6416 | fi | |
6417 | done | |
6418 | fi | |
6419 | ||
6420 | if test x$ac_success = xno; then | |
6421 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6422 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6423 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6425 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6426 | if eval \${$cachevar+:} false; then : | |
6427 | $as_echo_n "(cached) " >&6 | |
6428 | else | |
6429 | ac_save_CXX="$CXX" | |
6430 | CXX="$CXX $switch" | |
6431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6432 | /* end confdefs.h. */ | |
6433 | ||
6434 | ||
6435 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6436 | // Hopefully, this will speed up the test. | |
6437 | ||
6438 | #ifndef __cplusplus | |
6439 | ||
6440 | #error "This is not a C++ compiler" | |
6441 | ||
6442 | #elif __cplusplus < 201103L | |
6443 | ||
6444 | #error "This is not a C++11 compiler" | |
6445 | ||
6446 | #else | |
6447 | ||
6448 | namespace cxx11 | |
6449 | { | |
6450 | ||
6451 | namespace test_static_assert | |
6452 | { | |
6453 | ||
6454 | template <typename T> | |
6455 | struct check | |
6456 | { | |
6457 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6458 | }; | |
6459 | ||
6460 | } | |
6461 | ||
6462 | namespace test_final_override | |
6463 | { | |
6464 | ||
6465 | struct Base | |
6466 | { | |
6467 | virtual ~Base() {} | |
6468 | virtual void f() {} | |
6469 | }; | |
6470 | ||
6471 | struct Derived : public Base | |
6472 | { | |
6473 | virtual ~Derived() override {} | |
6474 | virtual void f() override {} | |
6475 | }; | |
6476 | ||
6477 | } | |
6478 | ||
6479 | namespace test_double_right_angle_brackets | |
6480 | { | |
6481 | ||
6482 | template < typename T > | |
6483 | struct check {}; | |
6484 | ||
6485 | typedef check<void> single_type; | |
6486 | typedef check<check<void>> double_type; | |
6487 | typedef check<check<check<void>>> triple_type; | |
6488 | typedef check<check<check<check<void>>>> quadruple_type; | |
6489 | ||
6490 | } | |
6491 | ||
6492 | namespace test_decltype | |
6493 | { | |
6494 | ||
6495 | int | |
6496 | f() | |
6497 | { | |
6498 | int a = 1; | |
6499 | decltype(a) b = 2; | |
6500 | return a + b; | |
6501 | } | |
6502 | ||
6503 | } | |
6504 | ||
6505 | namespace test_type_deduction | |
6506 | { | |
6507 | ||
6508 | template < typename T1, typename T2 > | |
6509 | struct is_same | |
6510 | { | |
6511 | static const bool value = false; | |
6512 | }; | |
6513 | ||
6514 | template < typename T > | |
6515 | struct is_same<T, T> | |
6516 | { | |
6517 | static const bool value = true; | |
6518 | }; | |
6519 | ||
6520 | template < typename T1, typename T2 > | |
6521 | auto | |
6522 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6523 | { | |
6524 | return a1 + a2; | |
6525 | } | |
6526 | ||
6527 | int | |
6528 | test(const int c, volatile int v) | |
6529 | { | |
6530 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6531 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6532 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6533 | auto ac = c; | |
6534 | auto av = v; | |
6535 | auto sumi = ac + av + 'x'; | |
6536 | auto sumf = ac + av + 1.0; | |
6537 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6538 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6539 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6540 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6541 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6542 | return (sumf > 0.0) ? sumi : add(c, v); | |
6543 | } | |
6544 | ||
6545 | } | |
6546 | ||
6547 | namespace test_noexcept | |
6548 | { | |
6549 | ||
6550 | int f() { return 0; } | |
6551 | int g() noexcept { return 0; } | |
6552 | ||
6553 | static_assert(noexcept(f()) == false, ""); | |
6554 | static_assert(noexcept(g()) == true, ""); | |
6555 | ||
6556 | } | |
6557 | ||
6558 | namespace test_constexpr | |
6559 | { | |
6560 | ||
6561 | template < typename CharT > | |
6562 | unsigned long constexpr | |
6563 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6564 | { | |
6565 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6566 | } | |
6567 | ||
6568 | template < typename CharT > | |
6569 | unsigned long constexpr | |
6570 | strlen_c(const CharT *const s) noexcept | |
6571 | { | |
6572 | return strlen_c_r(s, 0UL); | |
6573 | } | |
6574 | ||
6575 | static_assert(strlen_c("") == 0UL, ""); | |
6576 | static_assert(strlen_c("1") == 1UL, ""); | |
6577 | static_assert(strlen_c("example") == 7UL, ""); | |
6578 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6579 | ||
6580 | } | |
6581 | ||
6582 | namespace test_rvalue_references | |
6583 | { | |
6584 | ||
6585 | template < int N > | |
6586 | struct answer | |
6587 | { | |
6588 | static constexpr int value = N; | |
6589 | }; | |
6590 | ||
6591 | answer<1> f(int&) { return answer<1>(); } | |
6592 | answer<2> f(const int&) { return answer<2>(); } | |
6593 | answer<3> f(int&&) { return answer<3>(); } | |
6594 | ||
6595 | void | |
6596 | test() | |
6597 | { | |
6598 | int i = 0; | |
6599 | const int c = 0; | |
6600 | static_assert(decltype(f(i))::value == 1, ""); | |
6601 | static_assert(decltype(f(c))::value == 2, ""); | |
6602 | static_assert(decltype(f(0))::value == 3, ""); | |
6603 | } | |
6604 | ||
6605 | } | |
6606 | ||
6607 | namespace test_uniform_initialization | |
6608 | { | |
6609 | ||
6610 | struct test | |
6611 | { | |
6612 | static const int zero {}; | |
6613 | static const int one {1}; | |
6614 | }; | |
6615 | ||
6616 | static_assert(test::zero == 0, ""); | |
6617 | static_assert(test::one == 1, ""); | |
6618 | ||
6619 | } | |
6620 | ||
6621 | namespace test_lambdas | |
6622 | { | |
6623 | ||
6624 | void | |
6625 | test1() | |
6626 | { | |
6627 | auto lambda1 = [](){}; | |
6628 | auto lambda2 = lambda1; | |
6629 | lambda1(); | |
6630 | lambda2(); | |
6631 | } | |
6632 | ||
6633 | int | |
6634 | test2() | |
6635 | { | |
6636 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6637 | auto b = []() -> int { return '0'; }(); | |
6638 | auto c = [=](){ return a + b; }(); | |
6639 | auto d = [&](){ return c; }(); | |
6640 | auto e = [a, &b](int x) mutable { | |
6641 | const auto identity = [](int y){ return y; }; | |
6642 | for (auto i = 0; i < a; ++i) | |
6643 | a += b--; | |
6644 | return x + identity(a + b); | |
6645 | }(0); | |
6646 | return a + b + c + d + e; | |
6647 | } | |
6648 | ||
6649 | int | |
6650 | test3() | |
6651 | { | |
6652 | const auto nullary = [](){ return 0; }; | |
6653 | const auto unary = [](int x){ return x; }; | |
6654 | using nullary_t = decltype(nullary); | |
6655 | using unary_t = decltype(unary); | |
6656 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6657 | const auto higher2nd = [unary](nullary_t f1){ | |
6658 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6659 | }; | |
6660 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6661 | } | |
6662 | ||
6663 | } | |
6664 | ||
6665 | namespace test_variadic_templates | |
6666 | { | |
6667 | ||
6668 | template <int...> | |
6669 | struct sum; | |
6670 | ||
6671 | template <int N0, int... N1toN> | |
6672 | struct sum<N0, N1toN...> | |
6673 | { | |
6674 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6675 | }; | |
6676 | ||
6677 | template <> | |
6678 | struct sum<> | |
6679 | { | |
6680 | static constexpr auto value = 0; | |
6681 | }; | |
6682 | ||
6683 | static_assert(sum<>::value == 0, ""); | |
6684 | static_assert(sum<1>::value == 1, ""); | |
6685 | static_assert(sum<23>::value == 23, ""); | |
6686 | static_assert(sum<1, 2>::value == 3, ""); | |
6687 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6688 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6689 | ||
6690 | } | |
6691 | ||
6692 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6693 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6694 | // because of this. | |
6695 | namespace test_template_alias_sfinae | |
6696 | { | |
6697 | ||
6698 | struct foo {}; | |
6699 | ||
6700 | template<typename T> | |
6701 | using member = typename T::member_type; | |
6702 | ||
6703 | template<typename T> | |
6704 | void func(...) {} | |
6705 | ||
6706 | template<typename T> | |
6707 | void func(member<T>*) {} | |
6708 | ||
6709 | void test(); | |
6710 | ||
6711 | void test() { func<foo>(0); } | |
6712 | ||
6713 | } | |
6714 | ||
6715 | } // namespace cxx11 | |
6716 | ||
6717 | #endif // __cplusplus >= 201103L | |
6718 | ||
6719 | ||
6720 | ||
6721 | _ACEOF | |
6722 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6723 | eval $cachevar=yes | |
6724 | else | |
6725 | eval $cachevar=no | |
6726 | fi | |
6727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6728 | CXX="$ac_save_CXX" | |
6729 | fi | |
6730 | eval ac_res=\$$cachevar | |
6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6732 | $as_echo "$ac_res" >&6; } | |
6733 | if eval test x\$$cachevar = xyes; then | |
6734 | CXX="$CXX $switch" | |
6735 | if test -n "$CXXCPP" ; then | |
6736 | CXXCPP="$CXXCPP $switch" | |
6737 | fi | |
6738 | ac_success=yes | |
6739 | break | |
6740 | fi | |
6741 | done | |
6742 | if test x$ac_success = xyes; then | |
6743 | break | |
6744 | fi | |
6745 | done | |
6746 | fi | |
7ffcf5d6 | 6747 | |
ffac9597 JM |
6748 | ac_ext=c |
6749 | ac_cpp='$CPP $CPPFLAGS' | |
6750 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6751 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6752 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6753 | ||
6754 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6755 | if test x$ac_success = xno; then | |
6756 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6757 | fi | |
6758 | fi | |
6759 | if test x$ac_success = xno; then | |
6760 | HAVE_CXX11=0 | |
6761 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6762 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6763 | else | |
6764 | HAVE_CXX11=1 | |
6765 | ||
6766 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6767 | ||
6768 | fi | |
6769 | ||
6770 | ||
7ffcf5d6 TB |
6771 | |
6772 | if test "${build}" != "${host}"; then | |
6773 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6774 | ac_ext=cpp | |
6775 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6776 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6777 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6778 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6779 | ac_success=no | |
6780 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6781 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6782 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6783 | CXX="$CXX_FOR_BUILD" | |
6784 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6785 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6787 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6788 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6789 | $as_echo_n "(cached) " >&6 | |
6790 | else | |
6791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6792 | /* end confdefs.h. */ | |
6793 | ||
6794 | ||
6795 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6796 | // Hopefully, this will speed up the test. | |
6797 | ||
6798 | #ifndef __cplusplus | |
6799 | ||
6800 | #error "This is not a C++ compiler" | |
6801 | ||
6802 | #elif __cplusplus < 201103L | |
6803 | ||
6804 | #error "This is not a C++11 compiler" | |
6805 | ||
6806 | #else | |
6807 | ||
6808 | namespace cxx11 | |
6809 | { | |
6810 | ||
6811 | namespace test_static_assert | |
6812 | { | |
6813 | ||
6814 | template <typename T> | |
6815 | struct check | |
6816 | { | |
6817 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6818 | }; | |
6819 | ||
6820 | } | |
6821 | ||
6822 | namespace test_final_override | |
6823 | { | |
6824 | ||
6825 | struct Base | |
6826 | { | |
6827 | virtual ~Base() {} | |
6828 | virtual void f() {} | |
6829 | }; | |
6830 | ||
6831 | struct Derived : public Base | |
6832 | { | |
6833 | virtual ~Derived() override {} | |
6834 | virtual void f() override {} | |
6835 | }; | |
6836 | ||
6837 | } | |
6838 | ||
6839 | namespace test_double_right_angle_brackets | |
6840 | { | |
6841 | ||
6842 | template < typename T > | |
6843 | struct check {}; | |
6844 | ||
6845 | typedef check<void> single_type; | |
6846 | typedef check<check<void>> double_type; | |
6847 | typedef check<check<check<void>>> triple_type; | |
6848 | typedef check<check<check<check<void>>>> quadruple_type; | |
6849 | ||
6850 | } | |
6851 | ||
6852 | namespace test_decltype | |
6853 | { | |
6854 | ||
6855 | int | |
6856 | f() | |
6857 | { | |
6858 | int a = 1; | |
6859 | decltype(a) b = 2; | |
6860 | return a + b; | |
6861 | } | |
6862 | ||
6863 | } | |
6864 | ||
6865 | namespace test_type_deduction | |
6866 | { | |
6867 | ||
6868 | template < typename T1, typename T2 > | |
6869 | struct is_same | |
6870 | { | |
6871 | static const bool value = false; | |
6872 | }; | |
6873 | ||
6874 | template < typename T > | |
6875 | struct is_same<T, T> | |
6876 | { | |
6877 | static const bool value = true; | |
6878 | }; | |
6879 | ||
6880 | template < typename T1, typename T2 > | |
6881 | auto | |
6882 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6883 | { | |
6884 | return a1 + a2; | |
6885 | } | |
6886 | ||
6887 | int | |
6888 | test(const int c, volatile int v) | |
6889 | { | |
6890 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6891 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6892 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6893 | auto ac = c; | |
6894 | auto av = v; | |
6895 | auto sumi = ac + av + 'x'; | |
6896 | auto sumf = ac + av + 1.0; | |
6897 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6898 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6899 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6900 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6901 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6902 | return (sumf > 0.0) ? sumi : add(c, v); | |
6903 | } | |
6904 | ||
6905 | } | |
6906 | ||
6907 | namespace test_noexcept | |
6908 | { | |
6909 | ||
6910 | int f() { return 0; } | |
6911 | int g() noexcept { return 0; } | |
6912 | ||
6913 | static_assert(noexcept(f()) == false, ""); | |
6914 | static_assert(noexcept(g()) == true, ""); | |
6915 | ||
6916 | } | |
6917 | ||
6918 | namespace test_constexpr | |
6919 | { | |
6920 | ||
6921 | template < typename CharT > | |
6922 | unsigned long constexpr | |
6923 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6924 | { | |
6925 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6926 | } | |
6927 | ||
6928 | template < typename CharT > | |
6929 | unsigned long constexpr | |
6930 | strlen_c(const CharT *const s) noexcept | |
6931 | { | |
6932 | return strlen_c_r(s, 0UL); | |
6933 | } | |
6934 | ||
6935 | static_assert(strlen_c("") == 0UL, ""); | |
6936 | static_assert(strlen_c("1") == 1UL, ""); | |
6937 | static_assert(strlen_c("example") == 7UL, ""); | |
6938 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6939 | ||
6940 | } | |
6941 | ||
6942 | namespace test_rvalue_references | |
6943 | { | |
6944 | ||
6945 | template < int N > | |
6946 | struct answer | |
6947 | { | |
6948 | static constexpr int value = N; | |
6949 | }; | |
6950 | ||
6951 | answer<1> f(int&) { return answer<1>(); } | |
6952 | answer<2> f(const int&) { return answer<2>(); } | |
6953 | answer<3> f(int&&) { return answer<3>(); } | |
6954 | ||
6955 | void | |
6956 | test() | |
6957 | { | |
6958 | int i = 0; | |
6959 | const int c = 0; | |
6960 | static_assert(decltype(f(i))::value == 1, ""); | |
6961 | static_assert(decltype(f(c))::value == 2, ""); | |
6962 | static_assert(decltype(f(0))::value == 3, ""); | |
6963 | } | |
6964 | ||
6965 | } | |
6966 | ||
6967 | namespace test_uniform_initialization | |
6968 | { | |
6969 | ||
6970 | struct test | |
6971 | { | |
6972 | static const int zero {}; | |
6973 | static const int one {1}; | |
6974 | }; | |
6975 | ||
6976 | static_assert(test::zero == 0, ""); | |
6977 | static_assert(test::one == 1, ""); | |
6978 | ||
6979 | } | |
6980 | ||
6981 | namespace test_lambdas | |
6982 | { | |
6983 | ||
6984 | void | |
6985 | test1() | |
6986 | { | |
6987 | auto lambda1 = [](){}; | |
6988 | auto lambda2 = lambda1; | |
6989 | lambda1(); | |
6990 | lambda2(); | |
6991 | } | |
6992 | ||
6993 | int | |
6994 | test2() | |
6995 | { | |
6996 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6997 | auto b = []() -> int { return '0'; }(); | |
6998 | auto c = [=](){ return a + b; }(); | |
6999 | auto d = [&](){ return c; }(); | |
7000 | auto e = [a, &b](int x) mutable { | |
7001 | const auto identity = [](int y){ return y; }; | |
7002 | for (auto i = 0; i < a; ++i) | |
7003 | a += b--; | |
7004 | return x + identity(a + b); | |
7005 | }(0); | |
7006 | return a + b + c + d + e; | |
7007 | } | |
7008 | ||
7009 | int | |
7010 | test3() | |
7011 | { | |
7012 | const auto nullary = [](){ return 0; }; | |
7013 | const auto unary = [](int x){ return x; }; | |
7014 | using nullary_t = decltype(nullary); | |
7015 | using unary_t = decltype(unary); | |
7016 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7017 | const auto higher2nd = [unary](nullary_t f1){ | |
7018 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7019 | }; | |
7020 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7021 | } | |
7022 | ||
7023 | } | |
7024 | ||
7025 | namespace test_variadic_templates | |
7026 | { | |
7027 | ||
7028 | template <int...> | |
7029 | struct sum; | |
7030 | ||
7031 | template <int N0, int... N1toN> | |
7032 | struct sum<N0, N1toN...> | |
7033 | { | |
7034 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7035 | }; | |
7036 | ||
7037 | template <> | |
7038 | struct sum<> | |
7039 | { | |
7040 | static constexpr auto value = 0; | |
7041 | }; | |
7042 | ||
7043 | static_assert(sum<>::value == 0, ""); | |
7044 | static_assert(sum<1>::value == 1, ""); | |
7045 | static_assert(sum<23>::value == 23, ""); | |
7046 | static_assert(sum<1, 2>::value == 3, ""); | |
7047 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7048 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7049 | ||
7050 | } | |
7051 | ||
7052 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7053 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7054 | // because of this. | |
7055 | namespace test_template_alias_sfinae | |
7056 | { | |
7057 | ||
7058 | struct foo {}; | |
7059 | ||
7060 | template<typename T> | |
7061 | using member = typename T::member_type; | |
7062 | ||
7063 | template<typename T> | |
7064 | void func(...) {} | |
7065 | ||
7066 | template<typename T> | |
7067 | void func(member<T>*) {} | |
7068 | ||
7069 | void test(); | |
7070 | ||
7071 | void test() { func<foo>(0); } | |
7072 | ||
7073 | } | |
7074 | ||
7075 | } // namespace cxx11 | |
7076 | ||
7077 | #endif // __cplusplus >= 201103L | |
7078 | ||
7079 | ||
7080 | ||
7081 | _ACEOF | |
7082 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7083 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7084 | else | |
7085 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7086 | fi | |
7087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7088 | fi | |
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7090 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7091 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7092 | ac_success=yes | |
7093 | fi | |
7094 | ||
7095 | if test x$ac_success = xno; then | |
7096 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7097 | switch="-std=gnu++${alternative}" | |
7098 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7100 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7101 | if eval \${$cachevar+:} false; then : | |
7102 | $as_echo_n "(cached) " >&6 | |
7103 | else | |
7104 | ac_save_CXX="$CXX" | |
7105 | CXX="$CXX $switch" | |
7106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7107 | /* end confdefs.h. */ | |
7108 | ||
7109 | ||
7110 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7111 | // Hopefully, this will speed up the test. | |
7112 | ||
7113 | #ifndef __cplusplus | |
7114 | ||
7115 | #error "This is not a C++ compiler" | |
7116 | ||
7117 | #elif __cplusplus < 201103L | |
7118 | ||
7119 | #error "This is not a C++11 compiler" | |
7120 | ||
7121 | #else | |
7122 | ||
7123 | namespace cxx11 | |
7124 | { | |
7125 | ||
7126 | namespace test_static_assert | |
7127 | { | |
7128 | ||
7129 | template <typename T> | |
7130 | struct check | |
7131 | { | |
7132 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7133 | }; | |
7134 | ||
7135 | } | |
7136 | ||
7137 | namespace test_final_override | |
7138 | { | |
7139 | ||
7140 | struct Base | |
7141 | { | |
7142 | virtual ~Base() {} | |
7143 | virtual void f() {} | |
7144 | }; | |
7145 | ||
7146 | struct Derived : public Base | |
7147 | { | |
7148 | virtual ~Derived() override {} | |
7149 | virtual void f() override {} | |
7150 | }; | |
7151 | ||
7152 | } | |
7153 | ||
7154 | namespace test_double_right_angle_brackets | |
7155 | { | |
7156 | ||
7157 | template < typename T > | |
7158 | struct check {}; | |
7159 | ||
7160 | typedef check<void> single_type; | |
7161 | typedef check<check<void>> double_type; | |
7162 | typedef check<check<check<void>>> triple_type; | |
7163 | typedef check<check<check<check<void>>>> quadruple_type; | |
7164 | ||
7165 | } | |
7166 | ||
7167 | namespace test_decltype | |
7168 | { | |
7169 | ||
7170 | int | |
7171 | f() | |
7172 | { | |
7173 | int a = 1; | |
7174 | decltype(a) b = 2; | |
7175 | return a + b; | |
7176 | } | |
7177 | ||
7178 | } | |
7179 | ||
7180 | namespace test_type_deduction | |
7181 | { | |
7182 | ||
7183 | template < typename T1, typename T2 > | |
7184 | struct is_same | |
7185 | { | |
7186 | static const bool value = false; | |
7187 | }; | |
7188 | ||
7189 | template < typename T > | |
7190 | struct is_same<T, T> | |
7191 | { | |
7192 | static const bool value = true; | |
7193 | }; | |
7194 | ||
7195 | template < typename T1, typename T2 > | |
7196 | auto | |
7197 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7198 | { | |
7199 | return a1 + a2; | |
7200 | } | |
7201 | ||
7202 | int | |
7203 | test(const int c, volatile int v) | |
7204 | { | |
7205 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7206 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7207 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7208 | auto ac = c; | |
7209 | auto av = v; | |
7210 | auto sumi = ac + av + 'x'; | |
7211 | auto sumf = ac + av + 1.0; | |
7212 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7213 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7214 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7215 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7216 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7217 | return (sumf > 0.0) ? sumi : add(c, v); | |
7218 | } | |
7219 | ||
7220 | } | |
7221 | ||
7222 | namespace test_noexcept | |
7223 | { | |
7224 | ||
7225 | int f() { return 0; } | |
7226 | int g() noexcept { return 0; } | |
7227 | ||
7228 | static_assert(noexcept(f()) == false, ""); | |
7229 | static_assert(noexcept(g()) == true, ""); | |
7230 | ||
7231 | } | |
7232 | ||
7233 | namespace test_constexpr | |
7234 | { | |
7235 | ||
7236 | template < typename CharT > | |
7237 | unsigned long constexpr | |
7238 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7239 | { | |
7240 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7241 | } | |
7242 | ||
7243 | template < typename CharT > | |
7244 | unsigned long constexpr | |
7245 | strlen_c(const CharT *const s) noexcept | |
7246 | { | |
7247 | return strlen_c_r(s, 0UL); | |
7248 | } | |
7249 | ||
7250 | static_assert(strlen_c("") == 0UL, ""); | |
7251 | static_assert(strlen_c("1") == 1UL, ""); | |
7252 | static_assert(strlen_c("example") == 7UL, ""); | |
7253 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7254 | ||
7255 | } | |
7256 | ||
7257 | namespace test_rvalue_references | |
7258 | { | |
7259 | ||
7260 | template < int N > | |
7261 | struct answer | |
7262 | { | |
7263 | static constexpr int value = N; | |
7264 | }; | |
7265 | ||
7266 | answer<1> f(int&) { return answer<1>(); } | |
7267 | answer<2> f(const int&) { return answer<2>(); } | |
7268 | answer<3> f(int&&) { return answer<3>(); } | |
7269 | ||
7270 | void | |
7271 | test() | |
7272 | { | |
7273 | int i = 0; | |
7274 | const int c = 0; | |
7275 | static_assert(decltype(f(i))::value == 1, ""); | |
7276 | static_assert(decltype(f(c))::value == 2, ""); | |
7277 | static_assert(decltype(f(0))::value == 3, ""); | |
7278 | } | |
7279 | ||
7280 | } | |
7281 | ||
7282 | namespace test_uniform_initialization | |
7283 | { | |
7284 | ||
7285 | struct test | |
7286 | { | |
7287 | static const int zero {}; | |
7288 | static const int one {1}; | |
7289 | }; | |
7290 | ||
7291 | static_assert(test::zero == 0, ""); | |
7292 | static_assert(test::one == 1, ""); | |
7293 | ||
7294 | } | |
7295 | ||
7296 | namespace test_lambdas | |
7297 | { | |
7298 | ||
7299 | void | |
7300 | test1() | |
7301 | { | |
7302 | auto lambda1 = [](){}; | |
7303 | auto lambda2 = lambda1; | |
7304 | lambda1(); | |
7305 | lambda2(); | |
7306 | } | |
7307 | ||
7308 | int | |
7309 | test2() | |
7310 | { | |
7311 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7312 | auto b = []() -> int { return '0'; }(); | |
7313 | auto c = [=](){ return a + b; }(); | |
7314 | auto d = [&](){ return c; }(); | |
7315 | auto e = [a, &b](int x) mutable { | |
7316 | const auto identity = [](int y){ return y; }; | |
7317 | for (auto i = 0; i < a; ++i) | |
7318 | a += b--; | |
7319 | return x + identity(a + b); | |
7320 | }(0); | |
7321 | return a + b + c + d + e; | |
7322 | } | |
7323 | ||
7324 | int | |
7325 | test3() | |
7326 | { | |
7327 | const auto nullary = [](){ return 0; }; | |
7328 | const auto unary = [](int x){ return x; }; | |
7329 | using nullary_t = decltype(nullary); | |
7330 | using unary_t = decltype(unary); | |
7331 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7332 | const auto higher2nd = [unary](nullary_t f1){ | |
7333 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7334 | }; | |
7335 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7336 | } | |
7337 | ||
7338 | } | |
7339 | ||
7340 | namespace test_variadic_templates | |
7341 | { | |
7342 | ||
7343 | template <int...> | |
7344 | struct sum; | |
7345 | ||
7346 | template <int N0, int... N1toN> | |
7347 | struct sum<N0, N1toN...> | |
7348 | { | |
7349 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7350 | }; | |
7351 | ||
7352 | template <> | |
7353 | struct sum<> | |
7354 | { | |
7355 | static constexpr auto value = 0; | |
7356 | }; | |
7357 | ||
7358 | static_assert(sum<>::value == 0, ""); | |
7359 | static_assert(sum<1>::value == 1, ""); | |
7360 | static_assert(sum<23>::value == 23, ""); | |
7361 | static_assert(sum<1, 2>::value == 3, ""); | |
7362 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7363 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7364 | ||
7365 | } | |
7366 | ||
7367 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7368 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7369 | // because of this. | |
7370 | namespace test_template_alias_sfinae | |
7371 | { | |
7372 | ||
7373 | struct foo {}; | |
7374 | ||
7375 | template<typename T> | |
7376 | using member = typename T::member_type; | |
7377 | ||
7378 | template<typename T> | |
7379 | void func(...) {} | |
7380 | ||
7381 | template<typename T> | |
7382 | void func(member<T>*) {} | |
7383 | ||
7384 | void test(); | |
7385 | ||
7386 | void test() { func<foo>(0); } | |
7387 | ||
7388 | } | |
7389 | ||
7390 | } // namespace cxx11 | |
7391 | ||
7392 | #endif // __cplusplus >= 201103L | |
7393 | ||
7394 | ||
7395 | ||
7396 | _ACEOF | |
7397 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7398 | eval $cachevar=yes | |
7399 | else | |
7400 | eval $cachevar=no | |
7401 | fi | |
7402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7403 | CXX="$ac_save_CXX" | |
7404 | fi | |
7405 | eval ac_res=\$$cachevar | |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7407 | $as_echo "$ac_res" >&6; } | |
7408 | if eval test x\$$cachevar = xyes; then | |
7409 | CXX="$CXX $switch" | |
7410 | if test -n "$CXXCPP" ; then | |
7411 | CXXCPP="$CXXCPP $switch" | |
7412 | fi | |
7413 | ac_success=yes | |
7414 | break | |
7415 | fi | |
7416 | done | |
7417 | fi | |
7418 | ||
7419 | if test x$ac_success = xno; then | |
7420 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7421 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7422 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7424 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7425 | if eval \${$cachevar+:} false; then : | |
7426 | $as_echo_n "(cached) " >&6 | |
7427 | else | |
7428 | ac_save_CXX="$CXX" | |
7429 | CXX="$CXX $switch" | |
7430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7431 | /* end confdefs.h. */ | |
7432 | ||
7433 | ||
7434 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7435 | // Hopefully, this will speed up the test. | |
7436 | ||
7437 | #ifndef __cplusplus | |
7438 | ||
7439 | #error "This is not a C++ compiler" | |
7440 | ||
7441 | #elif __cplusplus < 201103L | |
7442 | ||
7443 | #error "This is not a C++11 compiler" | |
7444 | ||
7445 | #else | |
7446 | ||
7447 | namespace cxx11 | |
7448 | { | |
7449 | ||
7450 | namespace test_static_assert | |
7451 | { | |
7452 | ||
7453 | template <typename T> | |
7454 | struct check | |
7455 | { | |
7456 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7457 | }; | |
7458 | ||
7459 | } | |
7460 | ||
7461 | namespace test_final_override | |
7462 | { | |
7463 | ||
7464 | struct Base | |
7465 | { | |
7466 | virtual ~Base() {} | |
7467 | virtual void f() {} | |
7468 | }; | |
7469 | ||
7470 | struct Derived : public Base | |
7471 | { | |
7472 | virtual ~Derived() override {} | |
7473 | virtual void f() override {} | |
7474 | }; | |
7475 | ||
7476 | } | |
7477 | ||
7478 | namespace test_double_right_angle_brackets | |
7479 | { | |
7480 | ||
7481 | template < typename T > | |
7482 | struct check {}; | |
7483 | ||
7484 | typedef check<void> single_type; | |
7485 | typedef check<check<void>> double_type; | |
7486 | typedef check<check<check<void>>> triple_type; | |
7487 | typedef check<check<check<check<void>>>> quadruple_type; | |
7488 | ||
7489 | } | |
7490 | ||
7491 | namespace test_decltype | |
7492 | { | |
7493 | ||
7494 | int | |
7495 | f() | |
7496 | { | |
7497 | int a = 1; | |
7498 | decltype(a) b = 2; | |
7499 | return a + b; | |
7500 | } | |
7501 | ||
7502 | } | |
7503 | ||
7504 | namespace test_type_deduction | |
7505 | { | |
7506 | ||
7507 | template < typename T1, typename T2 > | |
7508 | struct is_same | |
7509 | { | |
7510 | static const bool value = false; | |
7511 | }; | |
7512 | ||
7513 | template < typename T > | |
7514 | struct is_same<T, T> | |
7515 | { | |
7516 | static const bool value = true; | |
7517 | }; | |
7518 | ||
7519 | template < typename T1, typename T2 > | |
7520 | auto | |
7521 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7522 | { | |
7523 | return a1 + a2; | |
7524 | } | |
7525 | ||
7526 | int | |
7527 | test(const int c, volatile int v) | |
7528 | { | |
7529 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7530 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7531 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7532 | auto ac = c; | |
7533 | auto av = v; | |
7534 | auto sumi = ac + av + 'x'; | |
7535 | auto sumf = ac + av + 1.0; | |
7536 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7537 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7538 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7539 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7540 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7541 | return (sumf > 0.0) ? sumi : add(c, v); | |
7542 | } | |
7543 | ||
7544 | } | |
7545 | ||
7546 | namespace test_noexcept | |
7547 | { | |
7548 | ||
7549 | int f() { return 0; } | |
7550 | int g() noexcept { return 0; } | |
7551 | ||
7552 | static_assert(noexcept(f()) == false, ""); | |
7553 | static_assert(noexcept(g()) == true, ""); | |
7554 | ||
7555 | } | |
7556 | ||
7557 | namespace test_constexpr | |
7558 | { | |
7559 | ||
7560 | template < typename CharT > | |
7561 | unsigned long constexpr | |
7562 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7563 | { | |
7564 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7565 | } | |
7566 | ||
7567 | template < typename CharT > | |
7568 | unsigned long constexpr | |
7569 | strlen_c(const CharT *const s) noexcept | |
7570 | { | |
7571 | return strlen_c_r(s, 0UL); | |
7572 | } | |
7573 | ||
7574 | static_assert(strlen_c("") == 0UL, ""); | |
7575 | static_assert(strlen_c("1") == 1UL, ""); | |
7576 | static_assert(strlen_c("example") == 7UL, ""); | |
7577 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7578 | ||
7579 | } | |
7580 | ||
7581 | namespace test_rvalue_references | |
7582 | { | |
7583 | ||
7584 | template < int N > | |
7585 | struct answer | |
7586 | { | |
7587 | static constexpr int value = N; | |
7588 | }; | |
7589 | ||
7590 | answer<1> f(int&) { return answer<1>(); } | |
7591 | answer<2> f(const int&) { return answer<2>(); } | |
7592 | answer<3> f(int&&) { return answer<3>(); } | |
7593 | ||
7594 | void | |
7595 | test() | |
7596 | { | |
7597 | int i = 0; | |
7598 | const int c = 0; | |
7599 | static_assert(decltype(f(i))::value == 1, ""); | |
7600 | static_assert(decltype(f(c))::value == 2, ""); | |
7601 | static_assert(decltype(f(0))::value == 3, ""); | |
7602 | } | |
7603 | ||
7604 | } | |
7605 | ||
7606 | namespace test_uniform_initialization | |
7607 | { | |
7608 | ||
7609 | struct test | |
7610 | { | |
7611 | static const int zero {}; | |
7612 | static const int one {1}; | |
7613 | }; | |
7614 | ||
7615 | static_assert(test::zero == 0, ""); | |
7616 | static_assert(test::one == 1, ""); | |
7617 | ||
7618 | } | |
7619 | ||
7620 | namespace test_lambdas | |
7621 | { | |
7622 | ||
7623 | void | |
7624 | test1() | |
7625 | { | |
7626 | auto lambda1 = [](){}; | |
7627 | auto lambda2 = lambda1; | |
7628 | lambda1(); | |
7629 | lambda2(); | |
7630 | } | |
7631 | ||
7632 | int | |
7633 | test2() | |
7634 | { | |
7635 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7636 | auto b = []() -> int { return '0'; }(); | |
7637 | auto c = [=](){ return a + b; }(); | |
7638 | auto d = [&](){ return c; }(); | |
7639 | auto e = [a, &b](int x) mutable { | |
7640 | const auto identity = [](int y){ return y; }; | |
7641 | for (auto i = 0; i < a; ++i) | |
7642 | a += b--; | |
7643 | return x + identity(a + b); | |
7644 | }(0); | |
7645 | return a + b + c + d + e; | |
7646 | } | |
7647 | ||
7648 | int | |
7649 | test3() | |
7650 | { | |
7651 | const auto nullary = [](){ return 0; }; | |
7652 | const auto unary = [](int x){ return x; }; | |
7653 | using nullary_t = decltype(nullary); | |
7654 | using unary_t = decltype(unary); | |
7655 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7656 | const auto higher2nd = [unary](nullary_t f1){ | |
7657 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7658 | }; | |
7659 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7660 | } | |
7661 | ||
7662 | } | |
7663 | ||
7664 | namespace test_variadic_templates | |
7665 | { | |
7666 | ||
7667 | template <int...> | |
7668 | struct sum; | |
7669 | ||
7670 | template <int N0, int... N1toN> | |
7671 | struct sum<N0, N1toN...> | |
7672 | { | |
7673 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7674 | }; | |
7675 | ||
7676 | template <> | |
7677 | struct sum<> | |
7678 | { | |
7679 | static constexpr auto value = 0; | |
7680 | }; | |
7681 | ||
7682 | static_assert(sum<>::value == 0, ""); | |
7683 | static_assert(sum<1>::value == 1, ""); | |
7684 | static_assert(sum<23>::value == 23, ""); | |
7685 | static_assert(sum<1, 2>::value == 3, ""); | |
7686 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7687 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7688 | ||
7689 | } | |
7690 | ||
7691 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7692 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7693 | // because of this. | |
7694 | namespace test_template_alias_sfinae | |
7695 | { | |
7696 | ||
7697 | struct foo {}; | |
7698 | ||
7699 | template<typename T> | |
7700 | using member = typename T::member_type; | |
7701 | ||
7702 | template<typename T> | |
7703 | void func(...) {} | |
7704 | ||
7705 | template<typename T> | |
7706 | void func(member<T>*) {} | |
7707 | ||
7708 | void test(); | |
7709 | ||
7710 | void test() { func<foo>(0); } | |
7711 | ||
7712 | } | |
7713 | ||
7714 | } // namespace cxx11 | |
7715 | ||
7716 | #endif // __cplusplus >= 201103L | |
7717 | ||
7718 | ||
7719 | ||
7720 | _ACEOF | |
7721 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7722 | eval $cachevar=yes | |
7723 | else | |
7724 | eval $cachevar=no | |
7725 | fi | |
7726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7727 | CXX="$ac_save_CXX" | |
7728 | fi | |
7729 | eval ac_res=\$$cachevar | |
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7731 | $as_echo "$ac_res" >&6; } | |
7732 | if eval test x\$$cachevar = xyes; then | |
7733 | CXX="$CXX $switch" | |
7734 | if test -n "$CXXCPP" ; then | |
7735 | CXXCPP="$CXXCPP $switch" | |
7736 | fi | |
7737 | ac_success=yes | |
7738 | break | |
7739 | fi | |
7740 | done | |
7741 | if test x$ac_success = xyes; then | |
7742 | break | |
7743 | fi | |
7744 | done | |
7745 | fi | |
7746 | CXX_FOR_BUILD="$CXX" | |
7747 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7748 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7749 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7750 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7751 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7752 | ac_ext=c | |
7753 | ac_cpp='$CPP $CPPFLAGS' | |
7754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7757 | ||
7758 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7759 | if test x$ac_success = xno; then | |
7760 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7761 | fi | |
7762 | fi | |
7763 | if test x$ac_success = xno; then | |
7764 | HAVE_CXX11_FOR_BUILD=0 | |
7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7766 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7767 | else | |
7768 | HAVE_CXX11_FOR_BUILD=1 | |
7769 | ||
7770 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7771 | ||
7772 | fi | |
7773 | ||
7774 | ||
7775 | fi | |
46070488 JM |
7776 | fi |
7777 | ||
4a5e71f2 L |
7778 | # Check whether --enable-pgo-build was given. |
7779 | if test "${enable_pgo_build+set}" = set; then : | |
7780 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7781 | else | |
7782 | enable_pgo_build=no | |
7783 | fi | |
7784 | ||
7785 | ||
7786 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7787 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7788 | *:*:*:no) ;; | |
7789 | ||
7790 | # Allow the PGO build only if we aren't building a compiler and | |
7791 | # we are in a native configuration. | |
7792 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7793 | ||
7794 | # Disallow the PGO bootstrap if we are building a compiler. | |
7795 | yes:*:*:yes | yes:*:*:lto) | |
7796 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7797 | ||
7798 | *) | |
7799 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7800 | ;; | |
7801 | esac | |
7802 | ||
7803 | if test "$enable_pgo_build" != "no"; then | |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7805 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7806 | old_CFLAGS="$CFLAGS" | |
7807 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7808 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7809 | ||
7810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7811 | /* end confdefs.h. */ | |
7812 | int foo; | |
7813 | _ACEOF | |
7814 | if ac_fn_c_try_compile "$LINENO"; then : | |
7815 | ||
7816 | else | |
7817 | PGO_BUILD_GEN_CFLAGS= | |
7818 | fi | |
7819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7820 | CFLAGS="$old_CFLAGS" | |
7821 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7823 | $as_echo "yes" >&6; } | |
7824 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7825 | else | |
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7827 | $as_echo "no" >&6; } | |
7828 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7829 | fi | |
7830 | ||
7831 | if test "$enable_pgo_build" = "lto"; then | |
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7833 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7834 | old_CFLAGS="$CFLAGS" | |
7835 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7836 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7838 | /* end confdefs.h. */ | |
7839 | int foo; | |
7840 | _ACEOF | |
7841 | if ac_fn_c_try_compile "$LINENO"; then : | |
7842 | ||
7843 | else | |
7844 | PGO_BUILD_LTO_CFLAGS= | |
7845 | fi | |
7846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7847 | CFLAGS="$old_CFLAGS" | |
7848 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7850 | $as_echo "yes" >&6; } | |
7851 | else | |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7853 | $as_echo "no" >&6; } | |
7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7855 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7856 | fi | |
7857 | fi | |
7858 | fi | |
7859 | ||
7860 | ||
7861 | ||
7862 | ||
592c90ff KG |
7863 | # Used for setting $lt_cv_objdir |
7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7865 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7866 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7867 | $as_echo_n "(cached) " >&6 |
7868 | else | |
7869 | rm -f .libs 2>/dev/null | |
7870 | mkdir .libs 2>/dev/null | |
7871 | if test -d .libs; then | |
7872 | lt_cv_objdir=.libs | |
7873 | else | |
7874 | # MS-DOS does not allow filenames that begin with a dot. | |
7875 | lt_cv_objdir=_libs | |
7876 | fi | |
7877 | rmdir .libs 2>/dev/null | |
7878 | fi | |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7880 | $as_echo "$lt_cv_objdir" >&6; } | |
7881 | objdir=$lt_cv_objdir | |
7882 | ||
7883 | ||
7884 | ||
7885 | ||
7886 | ||
7887 | cat >>confdefs.h <<_ACEOF | |
7888 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7889 | _ACEOF | |
7890 | ||
7891 | ||
7892 | ||
acd26225 | 7893 | # Check for GMP, MPFR and MPC |
3a5729ea | 7894 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 7895 | gmpinc= |
e69bf64b | 7896 | have_gmp=no |
acd26225 KG |
7897 | |
7898 | # Specify a location for mpc | |
7899 | # check for this first so it ends up on the link line before mpfr. | |
7900 | ||
5213506e RW |
7901 | # Check whether --with-mpc was given. |
7902 | if test "${with_mpc+set}" = set; then : | |
7903 | withval=$with_mpc; | |
7904 | fi | |
acd26225 | 7905 | |
acd26225 | 7906 | |
9965e3cd | 7907 | # Check whether --with-mpc-include was given. |
5213506e RW |
7908 | if test "${with_mpc_include+set}" = set; then : |
7909 | withval=$with_mpc_include; | |
7910 | fi | |
acd26225 | 7911 | |
acd26225 | 7912 | |
9965e3cd | 7913 | # Check whether --with-mpc-lib was given. |
5213506e RW |
7914 | if test "${with_mpc_lib+set}" = set; then : |
7915 | withval=$with_mpc_lib; | |
7916 | fi | |
acd26225 | 7917 | |
acd26225 KG |
7918 | |
7919 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
7920 | gmplibs="-L$with_mpc/lib $gmplibs" |
7921 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
7922 | fi |
7923 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 7924 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
7925 | fi |
7926 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 7927 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
7928 | fi |
7929 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 7930 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 7931 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
7932 | # Do not test the mpc version. Assume that it is sufficient, since |
7933 | # it is in the source tree, and the library has not been built yet | |
7934 | # but it would be included on the link line in the version check below | |
7935 | # hence making the test fail. | |
3a5729ea | 7936 | have_gmp=yes |
acd26225 | 7937 | fi |
e69bf64b | 7938 | |
bebf829d PB |
7939 | # Specify a location for mpfr |
7940 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 7941 | |
5213506e RW |
7942 | # Check whether --with-mpfr was given. |
7943 | if test "${with_mpfr+set}" = set; then : | |
7944 | withval=$with_mpfr; | |
7945 | fi | |
1c710c3c | 7946 | |
bebf829d | 7947 | |
9965e3cd | 7948 | # Check whether --with-mpfr-include was given. |
5213506e RW |
7949 | if test "${with_mpfr_include+set}" = set; then : |
7950 | withval=$with_mpfr_include; | |
7951 | fi | |
1c710c3c | 7952 | |
8a877c9c | 7953 | |
9965e3cd | 7954 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
7955 | if test "${with_mpfr_lib+set}" = set; then : |
7956 | withval=$with_mpfr_lib; | |
7957 | fi | |
8a877c9c | 7958 | |
bebf829d PB |
7959 | |
7960 | if test "x$with_mpfr" != x; then | |
7961 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 7962 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 7963 | fi |
8a877c9c | 7964 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 7965 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
7966 | fi |
7967 | if test "x$with_mpfr_lib" != x; then | |
7968 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
7969 | fi | |
e69bf64b | 7970 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
7971 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
7972 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 7973 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 7974 | fi |
00f35794 BE |
7975 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
7976 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
7977 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
7978 | # Do not test the mpfr version. Assume that it is sufficient, since |
7979 | # it is in the source tree, and the library has not been built yet | |
7980 | # but it would be included on the link line in the version check below | |
7981 | # hence making the test fail. | |
7982 | have_gmp=yes | |
7983 | fi | |
bebf829d | 7984 | |
6de9cd9a | 7985 | # Specify a location for gmp |
1c710c3c | 7986 | |
5213506e RW |
7987 | # Check whether --with-gmp was given. |
7988 | if test "${with_gmp+set}" = set; then : | |
7989 | withval=$with_gmp; | |
7990 | fi | |
1c710c3c | 7991 | |
6de9cd9a | 7992 | |
9965e3cd | 7993 | # Check whether --with-gmp-include was given. |
5213506e RW |
7994 | if test "${with_gmp_include+set}" = set; then : |
7995 | withval=$with_gmp_include; | |
7996 | fi | |
1c710c3c | 7997 | |
8a877c9c | 7998 | |
9965e3cd | 7999 | # Check whether --with-gmp-lib was given. |
5213506e RW |
8000 | if test "${with_gmp_lib+set}" = set; then : |
8001 | withval=$with_gmp_lib; | |
8002 | fi | |
8a877c9c KG |
8003 | |
8004 | ||
6de9cd9a | 8005 | |
bebf829d PB |
8006 | if test "x$with_gmp" != x; then |
8007 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8008 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 8009 | fi |
8a877c9c KG |
8010 | if test "x$with_gmp_include" != x; then |
8011 | gmpinc="-I$with_gmp_include $gmpinc" | |
8012 | fi | |
8013 | if test "x$with_gmp_lib" != x; then | |
8014 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8015 | fi | |
e69bf64b | 8016 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 8017 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 8018 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 8019 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 8020 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 8021 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
8022 | # Do not test the gmp version. Assume that it is sufficient, since |
8023 | # it is in the source tree, and the library has not been built yet | |
8024 | # but it would be included on the link line in the version check below | |
8025 | # hence making the test fail. | |
8026 | have_gmp=yes | |
8027 | fi | |
6de9cd9a | 8028 | |
d943d7c4 | 8029 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
8030 | have_gmp=yes |
8031 | saved_CFLAGS="$CFLAGS" | |
8032 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
8033 | # Check for the recommended and required versions of GMP. |
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8035 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4a5e71f2 | 8036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
362c6d2f KG |
8037 | /* end confdefs.h. */ |
8038 | #include "gmp.h" | |
8039 | int | |
8040 | main () | |
8041 | { | |
8042 | ||
8043 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8044 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 8045 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
8046 | choke me |
8047 | #endif | |
8048 | ||
8049 | ; | |
8050 | return 0; | |
8051 | } | |
8052 | _ACEOF | |
8053 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 8054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8055 | /* end confdefs.h. */ |
362c6d2f | 8056 | #include <gmp.h> |
1c710c3c DJ |
8057 | int |
8058 | main () | |
8059 | { | |
6de9cd9a | 8060 | |
362c6d2f KG |
8061 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8062 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8063 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
8064 | choke me |
8065 | #endif | |
1c710c3c DJ |
8066 | |
8067 | ; | |
8068 | return 0; | |
8069 | } | |
8070 | _ACEOF | |
5213506e RW |
8071 | if ac_fn_c_try_compile "$LINENO"; then : |
8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8073 | $as_echo "yes" >&6; } | |
362c6d2f KG |
8074 | else |
8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8076 | $as_echo "buggy but acceptable" >&6; } | |
8077 | fi | |
8078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 8079 | else |
5213506e RW |
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8081 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8082 | fi |
5213506e | 8083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 8084 | |
acd26225 | 8085 | # If we have GMP, check the MPFR version. |
e69bf64b | 8086 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
8087 | # Check for the recommended and required versions of MPFR. |
8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8089 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 8090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8091 | /* end confdefs.h. */ |
70ec446f | 8092 | #include <gmp.h> |
e69bf64b | 8093 | #include <mpfr.h> |
1c710c3c DJ |
8094 | int |
8095 | main () | |
8096 | { | |
e48d66a9 | 8097 | |
8be34204 | 8098 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
8099 | choke me |
8100 | #endif | |
1c710c3c DJ |
8101 | |
8102 | ; | |
8103 | return 0; | |
8104 | } | |
8105 | _ACEOF | |
5213506e RW |
8106 | if ac_fn_c_try_compile "$LINENO"; then : |
8107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 8108 | /* end confdefs.h. */ |
a3993f33 | 8109 | #include <gmp.h> |
e69bf64b | 8110 | #include <mpfr.h> |
1c710c3c DJ |
8111 | int |
8112 | main () | |
8113 | { | |
a3993f33 | 8114 | |
8be34204 | 8115 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
8116 | choke me |
8117 | #endif | |
acd26225 KG |
8118 | |
8119 | ; | |
8120 | return 0; | |
8121 | } | |
8122 | _ACEOF | |
5213506e RW |
8123 | if ac_fn_c_try_compile "$LINENO"; then : |
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8125 | $as_echo "yes" >&6; } | |
acd26225 | 8126 | else |
5213506e RW |
8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8128 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 8129 | fi |
5213506e | 8130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 8131 | else |
5213506e RW |
8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8133 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 8134 | fi |
5213506e | 8135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8136 | fi |
8137 | ||
8138 | # Check for the MPC header version. | |
3a5729ea | 8139 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 8140 | # Check for the recommended and required versions of MPC. |
5213506e RW |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8142 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
8144 | /* end confdefs.h. */ |
8145 | #include <mpc.h> | |
8146 | int | |
8147 | main () | |
8148 | { | |
8149 | ||
362c6d2f KG |
8150 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8151 | choke me | |
8152 | #endif | |
8153 | ||
8154 | ; | |
8155 | return 0; | |
8156 | } | |
8157 | _ACEOF | |
8158 | if ac_fn_c_try_compile "$LINENO"; then : | |
8159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8160 | /* end confdefs.h. */ | |
8161 | #include <mpc.h> | |
8162 | int | |
8163 | main () | |
8164 | { | |
8165 | ||
8166 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
8167 | choke me |
8168 | #endif | |
8169 | ||
8170 | ; | |
8171 | return 0; | |
8172 | } | |
8173 | _ACEOF | |
5213506e RW |
8174 | if ac_fn_c_try_compile "$LINENO"; then : |
8175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 8176 | $as_echo "yes" >&6; } |
362c6d2f KG |
8177 | else |
8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8179 | $as_echo "buggy but acceptable" >&6; } | |
8180 | fi | |
8181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 8182 | else |
5213506e | 8183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 8184 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 8185 | fi |
5213506e | 8186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8187 | fi |
8188 | ||
8189 | # Now check the MPFR library. | |
8190 | if test x"$have_gmp" = xyes; then | |
8191 | saved_LIBS="$LIBS" | |
8192 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
8194 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 8195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 8196 | /* end confdefs.h. */ |
3a5729ea | 8197 | #include <mpc.h> |
acd26225 KG |
8198 | int |
8199 | main () | |
8200 | { | |
8201 | ||
8202 | mpfr_t n; | |
8203 | mpfr_t x; | |
3a5729ea | 8204 | mpc_t c; |
acd26225 KG |
8205 | int t; |
8206 | mpfr_init (n); | |
8207 | mpfr_init (x); | |
90ca6847 TB |
8208 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8209 | mpfr_erfc (n, x, MPFR_RNDN); | |
8210 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
8211 | mpfr_clear(n); |
8212 | mpfr_clear(x); | |
8213 | mpc_init2 (c, 53); | |
8214 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8215 | mpc_cosh (c, c, MPC_RNDNN); | |
8216 | mpc_pow (c, c, c, MPC_RNDNN); | |
8217 | mpc_acosh (c, c, MPC_RNDNN); | |
8218 | mpc_clear (c); | |
1c710c3c DJ |
8219 | |
8220 | ; | |
8221 | return 0; | |
8222 | } | |
8223 | _ACEOF | |
5213506e RW |
8224 | if ac_fn_c_try_link "$LINENO"; then : |
8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8226 | $as_echo "yes" >&6; } | |
1c710c3c | 8227 | else |
5213506e RW |
8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8229 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8230 | fi |
5213506e RW |
8231 | rm -f core conftest.err conftest.$ac_objext \ |
8232 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
8233 | LIBS="$saved_LIBS" |
8234 | fi | |
8235 | ||
e69bf64b | 8236 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 8237 | |
362c6d2f KG |
8238 | # The library versions listed in the error message below should match |
8239 | # the HARD-minimums enforced above. | |
e69bf64b | 8240 | if test x$have_gmp != xyes; then |
8be34204 | 8241 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
8242 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8243 | their locations. Source code for these libraries can be found at | |
8244 | their respective hosting sites as well as at | |
aeebd94c | 8245 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
45ab87d4 | 8246 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
3a5729ea KG |
8247 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, |
8248 | make sure that you have installed both the libraries and the header | |
8249 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 8250 | fi |
70ec446f KG |
8251 | fi |
8252 | ||
acd26225 KG |
8253 | # Flags needed for both GMP, MPFR and/or MPC. |
8254 | ||
8255 | ||
6de9cd9a DN |
8256 | |
8257 | ||
8258 | ||
9e3eba15 | 8259 | |
0ff2d841 | 8260 | |
0b21f5d3 | 8261 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 8262 | |
0b21f5d3 EB |
8263 | # Check whether --with-stage1-libs was given. |
8264 | if test "${with_stage1_libs+set}" = set; then : | |
8265 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8266 | stage1_libs= | |
00020c16 | 8267 | else |
0b21f5d3 | 8268 | stage1_libs=$withval |
00020c16 ILT |
8269 | fi |
8270 | else | |
5dc85f7e | 8271 | stage1_libs= |
5213506e RW |
8272 | fi |
8273 | ||
00020c16 ILT |
8274 | |
8275 | ||
aac9103b TT |
8276 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8277 | # default is yes if gcc is being built; no otherwise. The reason for | |
8278 | # this default is that gdb is sometimes linked against GNU Source | |
8279 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8280 | # this case, -static-libstdc++ will cause crashes. | |
8281 | ||
8282 | # Check whether --with-static-standard-libraries was given. | |
8283 | if test "${with_static_standard_libraries+set}" = set; then : | |
8284 | withval=$with_static_standard_libraries; | |
8285 | else | |
8286 | with_static_standard_libraries=auto | |
8287 | fi | |
8288 | ||
8289 | if test "$with_static_standard_libraries" = auto; then | |
8290 | with_static_standard_libraries=$have_compiler | |
8291 | fi | |
8292 | ||
0b21f5d3 | 8293 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 8294 | |
0b21f5d3 EB |
8295 | # Check whether --with-stage1-ldflags was given. |
8296 | if test "${with_stage1_ldflags+set}" = set; then : | |
8297 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8298 | stage1_ldflags= | |
00020c16 | 8299 | else |
0b21f5d3 | 8300 | stage1_ldflags=$withval |
00020c16 ILT |
8301 | fi |
8302 | else | |
0b21f5d3 EB |
8303 | stage1_ldflags= |
8304 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8305 | # if supported. But if the user explicitly specified the libraries to use, | |
8306 | # trust that they are doing what they want. | |
aac9103b TT |
8307 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8308 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8309 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8310 | fi | |
5213506e RW |
8311 | fi |
8312 | ||
00020c16 ILT |
8313 | |
8314 | ||
5dc85f7e | 8315 | # Libraries to use for stage2 and later builds. |
00020c16 | 8316 | |
5213506e RW |
8317 | # Check whether --with-boot-libs was given. |
8318 | if test "${with_boot_libs+set}" = set; then : | |
8319 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8320 | poststage1_libs= |
8321 | else | |
8322 | poststage1_libs=$withval | |
8323 | fi | |
8324 | else | |
5dc85f7e | 8325 | poststage1_libs= |
5213506e RW |
8326 | fi |
8327 | ||
00020c16 ILT |
8328 | |
8329 | ||
ed2eaa9f ILT |
8330 | # Linker flags to use for stage2 and later builds. |
8331 | ||
8332 | # Check whether --with-boot-ldflags was given. | |
8333 | if test "${with_boot_ldflags+set}" = set; then : | |
8334 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8335 | poststage1_ldflags= | |
8336 | else | |
8337 | poststage1_ldflags=$withval | |
8338 | fi | |
8339 | else | |
8340 | poststage1_ldflags= | |
bec93d73 ILT |
8341 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8342 | # statically. But if the user explicitly specified the libraries to | |
8343 | # use, trust that they are doing what they want. | |
8344 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8345 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8346 | fi | |
8347 | fi | |
8348 | ||
8349 | ||
8350 | ||
e357a5e0 | 8351 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8352 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8353 | |
8354 | ||
33ad93b9 RG |
8355 | # Check whether --with-isl was given. |
8356 | if test "${with_isl+set}" = set; then : | |
8357 | withval=$with_isl; | |
5213506e | 8358 | fi |
f8bf9252 | 8359 | |
f8bf9252 | 8360 | |
eae1a5d4 | 8361 | # Treat --without-isl as a request to disable |
625afa23 | 8362 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8363 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8364 | # Check for isl |
625afa23 RG |
8365 | |
8366 | ||
33ad93b9 RG |
8367 | # Check whether --with-isl-include was given. |
8368 | if test "${with_isl_include+set}" = set; then : | |
8369 | withval=$with_isl_include; | |
5213506e RW |
8370 | fi |
8371 | ||
f8bf9252 | 8372 | |
33ad93b9 RG |
8373 | # Check whether --with-isl-lib was given. |
8374 | if test "${with_isl_lib+set}" = set; then : | |
8375 | withval=$with_isl_lib; | |
5213506e | 8376 | fi |
f8bf9252 | 8377 | |
f8bf9252 | 8378 | |
33ad93b9 RG |
8379 | # Check whether --enable-isl-version-check was given. |
8380 | if test "${enable_isl_version_check+set}" = set; then : | |
8381 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8382 | else | |
8383 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8384 | fi |
8385 | ||
8386 | ||
33ad93b9 RG |
8387 | # Initialize isllibs and islinc. |
8388 | case $with_isl in | |
8389 | no) | |
8390 | isllibs= | |
8391 | islinc= | |
8392 | ;; | |
8393 | "" | yes) | |
8394 | ;; | |
8395 | *) | |
8396 | isllibs="-L$with_isl/lib" | |
8397 | islinc="-I$with_isl/include" | |
8398 | ;; | |
8399 | esac | |
8400 | if test "x${with_isl_include}" != x ; then | |
8401 | islinc="-I$with_isl_include" | |
8402 | fi | |
8403 | if test "x${with_isl_lib}" != x; then | |
8404 | isllibs="-L$with_isl_lib" | |
8405 | fi | |
8406 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8407 | && test -d ${srcdir}/isl; then | |
8408 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8409 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8410 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8412 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8413 | fi |
7d32a440 | 8414 | |
eae1a5d4 RG |
8415 | isllibs="${isllibs} -lisl" |
8416 | ||
7d32a440 | 8417 | |
7d32a440 | 8418 | |
9847828b RB |
8419 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8420 | _isl_saved_CFLAGS=$CFLAGS | |
8421 | _isl_saved_LDFLAGS=$LDFLAGS | |
8422 | _isl_saved_LIBS=$LIBS | |
8423 | ||
8424 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8425 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8426 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8427 | |
f877b3ad RB |
8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8429 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8431 | /* end confdefs.h. */ |
f877b3ad | 8432 | #include <isl/schedule.h> |
622dbadf BC |
8433 | int |
8434 | main () | |
8435 | { | |
f877b3ad | 8436 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8437 | ; |
8438 | return 0; | |
8439 | } | |
8440 | _ACEOF | |
8441 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8442 | gcc_cv_isl=yes |
622dbadf BC |
8443 | else |
8444 | gcc_cv_isl=no | |
8445 | fi | |
8446 | rm -f core conftest.err conftest.$ac_objext \ | |
8447 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8449 | $as_echo "$gcc_cv_isl" >&6; } | |
8450 | ||
560d18d3 | 8451 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8453 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8454 | fi |
8455 | ||
9847828b RB |
8456 | CFLAGS=$_isl_saved_CFLAGS |
8457 | LDFLAGS=$_isl_saved_LDFLAGS | |
8458 | LIBS=$_isl_saved_LIBS | |
8459 | fi | |
8460 | ||
8461 | ||
f8bf9252 | 8462 | |
f8bf9252 | 8463 | |
33ad93b9 RG |
8464 | |
8465 | ||
33ad93b9 RG |
8466 | if test "x${with_isl}" = xno; then |
8467 | graphite_requested=no | |
8468 | elif test "x${with_isl}" != x \ | |
8469 | || test "x${with_isl_include}" != x \ | |
8470 | || test "x${with_isl_lib}" != x ; then | |
8471 | graphite_requested=yes | |
8472 | else | |
8473 | graphite_requested=no | |
7d32a440 | 8474 | fi |
d789184e | 8475 | |
d789184e SP |
8476 | |
8477 | ||
33ad93b9 RG |
8478 | if test "${gcc_cv_isl}" = no ; then |
8479 | isllibs= | |
8480 | islinc= | |
8481 | fi | |
8482 | ||
8483 | if test "${graphite_requested}" = yes \ | |
8484 | && test "x${isllibs}" = x \ | |
8485 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8486 | |
22e05272 | 8487 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8488 | fi |
f8bf9252 | 8489 | |
d32ef397 | 8490 | |
d32ef397 AS |
8491 | fi |
8492 | ||
e357a5e0 | 8493 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8494 | if test "x$with_isl" = xno || |
625afa23 | 8495 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8496 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8497 | islinc= |
32d024bf RG |
8498 | fi |
8499 | ||
625afa23 RG |
8500 | |
8501 | ||
8502 | ||
d7f09764 DN |
8503 | # Check for LTO support. |
8504 | # Check whether --enable-lto was given. | |
8505 | if test "${enable_lto+set}" = set; then : | |
8506 | enableval=$enable_lto; enable_lto=$enableval | |
8507 | else | |
8508 | enable_lto=yes; default_enable_lto=yes | |
8509 | fi | |
8510 | ||
8511 | ||
7413962d | 8512 | |
9a02962b DK |
8513 | |
8514 | ||
8515 | target_elf=no | |
8516 | case $target in | |
8517 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8518 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8519 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8520 | nvptx-*-none) |
9a02962b DK |
8521 | target_elf=no |
8522 | ;; | |
8523 | *) | |
8524 | target_elf=yes | |
8525 | ;; | |
8526 | esac | |
8527 | ||
8528 | if test $target_elf = yes; then : | |
48215350 DK |
8529 | # ELF platforms build the lto-plugin always. |
8530 | build_lto_plugin=yes | |
9a02962b | 8531 | |
9a02962b DK |
8532 | else |
8533 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8534 | case $target in |
deeba76a | 8535 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8536 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8537 | *) enable_lto=no ;; |
8538 | esac | |
9a02962b | 8539 | else |
db50fe7d IS |
8540 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8541 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8542 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8543 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8544 | # -flto it won't be needed until after installation anyway. | |
8545 | case $target in | |
9e530bcd | 8546 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8547 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8548 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8549 | fi |
8550 | ;; | |
8551 | esac | |
8552 | fi | |
1cd0b716 | 8553 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8554 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8555 | case $target in |
48215350 | 8556 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8557 | *) ;; |
8558 | esac | |
48215350 | 8559 | |
9a02962b DK |
8560 | fi |
8561 | ||
d7f09764 | 8562 | |
45b3824d TS |
8563 | # Check whether --enable-linker-plugin-configure-flags was given. |
8564 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8565 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8566 | else | |
8567 | extra_linker_plugin_configure_flags= | |
8568 | fi | |
8569 | ||
8570 | ||
8571 | # Check whether --enable-linker-plugin-flags was given. | |
8572 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8573 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8574 | else | |
8575 | extra_linker_plugin_flags= | |
8576 | fi | |
8577 | ||
8578 | ||
8579 | ||
cdfee50a NS |
8580 | # Enable --enable-host-shared. |
8581 | # Checked early to determine whether jit is an 'all' language | |
8582 | # Check whether --enable-host-shared was given. | |
8583 | if test "${enable_host_shared+set}" = set; then : | |
8584 | enableval=$enable_host_shared; host_shared=$enableval | |
1edfc8f2 | 8585 | case $host in |
a1d2b162 IS |
8586 | x86_64-*-darwin* | aarch64-*-darwin*) |
8587 | if test x$host_shared != xyes ; then | |
8588 | # PIC is the default, and actually cannot be switched off. | |
8589 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8590 | host_shared=yes | |
8591 | fi ;; | |
8592 | *) ;; | |
8593 | esac | |
cdfee50a | 8594 | else |
1edfc8f2 | 8595 | case $host in |
a1d2b162 IS |
8596 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; |
8597 | *) host_shared=no ;; | |
8598 | esac | |
cdfee50a NS |
8599 | fi |
8600 | ||
8601 | ||
f8bf9252 | 8602 | |
251c72a6 MP |
8603 | # Enable --enable-host-pie. |
8604 | # Check whether --enable-host-pie was given. | |
8605 | if test "${enable_host_pie+set}" = set; then : | |
8606 | enableval=$enable_host_pie; | |
8607 | fi | |
8608 | ||
8609 | ||
8610 | ||
8611 | if test x$enable_host_shared = xyes; then | |
8612 | PICFLAG=-fPIC | |
8613 | elif test x$enable_host_pie = xyes; then | |
8614 | PICFLAG=-fPIE | |
8615 | else | |
8616 | PICFLAG= | |
8617 | fi | |
8618 | ||
8619 | ||
8620 | ||
0823efed | 8621 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8622 | stage1_languages=,c, |
2805b53a | 8623 | |
00020c16 | 8624 | # Target libraries that we bootstrap. |
ad1e5170 | 8625 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8626 | |
55ffb5ed NN |
8627 | # Figure out what language subdirectories are present. |
8628 | # Look if the user specified --enable-languages="..."; if not, use | |
8629 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8630 | # go away some day. | |
8631 | # NB: embedded tabs in this IF block -- do not untabify | |
8632 | if test -d ${srcdir}/gcc; then | |
8633 | if test x"${enable_languages+set}" != xset; then | |
8634 | if test x"${LANGUAGES+set}" = xset; then | |
8635 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8636 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8637 | else |
cdfee50a | 8638 | enable_languages=default |
55ffb5ed NN |
8639 | fi |
8640 | else | |
8641 | if test x"${enable_languages}" = x || | |
8642 | test x"${enable_languages}" = xyes; | |
8643 | then | |
6b1786aa | 8644 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8645 | exit 1 |
8646 | fi | |
8647 | fi | |
8648 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8649 | ||
7f26dfa3 FXC |
8650 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8651 | # and make the substitution. | |
8652 | case ,${enable_languages}, in | |
8653 | *,f95,*) | |
6b1786aa | 8654 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8655 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8656 | ;; | |
8657 | esac | |
8658 | ||
0823efed DN |
8659 | # If bootstrapping, C++ must be enabled. |
8660 | case ",$enable_languages,:$enable_bootstrap" in | |
8661 | *,c++,*:*) ;; | |
8662 | *:yes) | |
ff3ac0f4 ILT |
8663 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8664 | enable_languages="${enable_languages},c++" | |
8665 | else | |
22e05272 | 8666 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8667 | fi |
8668 | ;; | |
8669 | esac | |
8670 | ||
55ffb5ed NN |
8671 | # First scan to see if an enabled language requires some other language. |
8672 | # We assume that a given config-lang.in will list all the language | |
8673 | # front ends it requires, even if some are required indirectly. | |
8674 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8675 | case ${lang_frag} in | |
8676 | ..) ;; | |
8677 | # The odd quoting in the next line works around | |
8678 | # an apparent bug in bash 1.12 on linux. | |
8679 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8680 | *) | |
69ecd18f ILT |
8681 | # From the config-lang.in, get $language, $lang_requires, and |
8682 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8683 | language= |
8684 | lang_requires= | |
69ecd18f | 8685 | lang_requires_boot_languages= |
d4360477 NS |
8686 | # set srcdir during sourcing lang_frag to the gcc dir. |
8687 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8688 | # polutes this shell | |
8689 | saved_srcdir=${srcdir} | |
8690 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8691 | srcdir=${saved_srcdir} | |
69ecd18f | 8692 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8693 | case ,${enable_languages}, in |
8694 | *,$other,*) ;; | |
cdfee50a | 8695 | *,default,*) ;; |
55ffb5ed NN |
8696 | *,all,*) ;; |
8697 | *,$language,*) | |
8698 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8699 | enable_languages="${enable_languages},${other}" | |
8700 | ;; | |
8701 | esac | |
8702 | done | |
69ecd18f ILT |
8703 | for other in ${lang_requires_boot_languages} ; do |
8704 | if test "$other" != "c"; then | |
8705 | case ,${enable_stage1_languages}, in | |
8706 | *,$other,*) ;; | |
cdfee50a | 8707 | *,default,*) ;; |
69ecd18f ILT |
8708 | *,all,*) ;; |
8709 | *) | |
8710 | case ,${enable_languages}, in | |
8711 | *,$language,*) | |
8712 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8713 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8714 | ;; | |
8715 | esac | |
8716 | ;; | |
8717 | esac | |
8718 | fi | |
8719 | done | |
55ffb5ed NN |
8720 | ;; |
8721 | esac | |
8722 | done | |
8723 | ||
e1888513 | 8724 | new_enable_languages=,c, |
d7f09764 DN |
8725 | |
8726 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8727 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8728 | case ,${enable_languages}, in |
8729 | *,lto,*) ;; | |
8730 | *) enable_languages="${enable_languages},lto" ;; | |
8731 | esac | |
1cd0b716 | 8732 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8733 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8734 | fi |
8735 | fi | |
8736 | ||
426c1eb0 TS |
8737 | # If we're building an offloading compiler, add the LTO front end. |
8738 | if test x"$enable_as_accelerator_for" != x ; then | |
8739 | case ,${enable_languages}, in | |
8740 | *,lto,*) ;; | |
8741 | *) enable_languages="${enable_languages},lto" ;; | |
8742 | esac | |
8743 | fi | |
8744 | ||
cdfee50a | 8745 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8746 | potential_languages=,c, |
55ffb5ed | 8747 | |
4da3b0f8 ILT |
8748 | enabled_target_libs= |
8749 | disabled_target_libs= | |
8750 | ||
55ffb5ed NN |
8751 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8752 | case ${lang_frag} in | |
8753 | ..) ;; | |
8754 | # The odd quoting in the next line works around | |
8755 | # an apparent bug in bash 1.12 on linux. | |
8756 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8757 | *) | |
1c710c3c | 8758 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8759 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8760 | language= |
8761 | target_libs= | |
8762 | lang_dirs= | |
1546bb64 | 8763 | subdir_requires= |
e1888513 PB |
8764 | boot_language=no |
8765 | build_by_default=yes | |
d4360477 NS |
8766 | # set srcdir during sourcing. See above about save & restore |
8767 | saved_srcdir=${srcdir} | |
8768 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8769 | srcdir=${saved_srcdir} | |
e1888513 PB |
8770 | if test x${language} = x; then |
8771 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8772 | exit 1 | |
8773 | fi | |
8774 | ||
78767fd9 | 8775 | if test "$language" = "c++"; then |
0823efed | 8776 | boot_language=yes |
00020c16 ILT |
8777 | fi |
8778 | ||
178f875a | 8779 | add_this_lang=no |
cdfee50a NS |
8780 | # C is always enabled, so no need to add it again |
8781 | if test "$language" != "c"; then | |
8782 | case ,${enable_languages}, in | |
8783 | *,${language},*) | |
8784 | # Language was explicitly selected; include it | |
d4a10d0a | 8785 | add_this_lang=yes |
cdfee50a NS |
8786 | ;; |
8787 | *,all,*) | |
8788 | # All languages are enabled | |
8789 | add_this_lang=all | |
8790 | ;; | |
8791 | *,default,*) | |
8792 | # 'default' was selected, select it if it is a default language | |
178f875a | 8793 | add_this_lang=${build_by_default} |
cdfee50a NS |
8794 | ;; |
8795 | esac | |
8796 | fi | |
6de9cd9a | 8797 | |
1546bb64 | 8798 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 8799 | for i in $subdir_requires; do |
b6348cb3 | 8800 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
8801 | case ${add_this_lang} in |
8802 | yes) | |
1546bb64 | 8803 | # Specifically requested language; tell them. |
22e05272 | 8804 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 8805 | ;; |
cdfee50a NS |
8806 | all) |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8808 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8809 | add_this_lang=unsupported | |
8810 | ;; | |
1546bb64 PB |
8811 | *) |
8812 | # Silently disable. | |
e1888513 | 8813 | add_this_lang=unsupported |
1546bb64 PB |
8814 | ;; |
8815 | esac | |
8816 | done | |
8817 | ||
e1888513 | 8818 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
8819 | case ${add_this_lang}:${language}:${have_gnat} in |
8820 | yes:ada:no) | |
e1888513 | 8821 | # Specifically requested language; tell them. |
22e05272 | 8822 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 8823 | ;; |
cdfee50a NS |
8824 | all:ada:no) |
8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8826 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8827 | add_this_lang=unsupported | |
8828 | ;; | |
e1888513 PB |
8829 | *:ada:no) |
8830 | # Silently disable. | |
8831 | add_this_lang=unsupported | |
8832 | ;; | |
8833 | esac | |
8834 | ||
5fee5ec3 IB |
8835 | # Disable D if no preexisting GDC is available. |
8836 | case ${add_this_lang}:${language}:${have_gdc} in | |
8837 | yes:d:no) | |
8838 | # Specifically requested language; tell them. | |
8839 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
8840 | ;; | |
8841 | all:d:no) | |
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
8843 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
8844 | add_this_lang=unsupported | |
8845 | ;; | |
8846 | *:d:no) | |
8847 | # Silently disable. | |
8848 | add_this_lang=unsupported | |
8849 | ;; | |
8850 | esac | |
8851 | ||
cdfee50a | 8852 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
8853 | # but not if building for Mingw. All code in Windows |
8854 | # is position independent code (PIC). | |
c83027f3 NB |
8855 | case $target in |
8856 | *mingw*) ;; | |
8857 | *) | |
8858 | case ${add_this_lang}:${language}:${host_shared} in | |
8859 | yes:jit:no) | |
8860 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 8861 | as_fn_error $? " |
cdfee50a NS |
8862 | Enabling language \"jit\" requires --enable-host-shared. |
8863 | ||
8864 | --enable-host-shared typically slows the rest of the compiler down by | |
8865 | a few %, so you must explicitly enable it. | |
8866 | ||
8867 | If you want to build both the jit and the regular compiler, it is often | |
8868 | best to do this via two separate configure/builds, in separate | |
8869 | directories, to avoid imposing the performance cost of | |
8870 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
8871 | ;; |
8872 | all:jit:no) | |
8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 8874 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
8875 | add_this_lang=unsupported |
8876 | ;; | |
8877 | *:jit:no) | |
8878 | # Silently disable. | |
8879 | add_this_lang=unsupported | |
8880 | ;; | |
8881 | esac | |
8882 | ;; | |
8883 | esac | |
cdfee50a NS |
8884 | |
8885 | # Disable a language that is unsupported by the target. | |
8886 | case "${add_this_lang}: $unsupported_languages " in | |
8887 | no:*) ;; | |
8888 | unsupported:*) ;; | |
8889 | *:*" $language "*) | |
8890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
8891 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 8892 | add_this_lang=unsupported |
4fab7234 HPN |
8893 | ;; |
8894 | esac | |
8895 | ||
6de9cd9a | 8896 | case $add_this_lang in |
e1888513 | 8897 | unsupported) |
55ffb5ed | 8898 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
8899 | disabled_target_libs="$disabled_target_libs $target_libs" |
8900 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 8901 | ;; |
e1888513 PB |
8902 | no) |
8903 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
8904 | disabled_target_libs="$disabled_target_libs $target_libs" |
8905 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
8906 | potential_languages="${potential_languages}${language}," |
8907 | ;; | |
cdfee50a | 8908 | all|yes) |
e1888513 PB |
8909 | new_enable_languages="${new_enable_languages}${language}," |
8910 | potential_languages="${potential_languages}${language}," | |
2805b53a | 8911 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 8912 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
8913 | case "${boot_language}:,$enable_stage1_languages," in |
8914 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 8915 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
8916 | case ",$stage1_languages," in |
8917 | *,$language,* | ,yes, | ,all,) ;; | |
8918 | *) stage1_languages="${stage1_languages}${language}," ;; | |
8919 | esac | |
00020c16 | 8920 | # We need to bootstrap any supporting libraries. |
5fee5ec3 | 8921 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
2805b53a NN |
8922 | ;; |
8923 | esac | |
8924 | ;; | |
55ffb5ed NN |
8925 | esac |
8926 | ;; | |
8927 | esac | |
8928 | done | |
8929 | ||
4da3b0f8 ILT |
8930 | # Add target libraries which are only needed for disabled languages |
8931 | # to noconfigdirs. | |
8932 | if test -n "$disabled_target_libs"; then | |
8933 | for dir in $disabled_target_libs; do | |
8934 | case " $enabled_target_libs " in | |
8935 | *" ${dir} "*) ;; | |
8936 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
8937 | esac | |
8938 | done | |
8939 | fi | |
8940 | ||
5213506e RW |
8941 | # Check whether --enable-stage1-languages was given. |
8942 | if test "${enable_stage1_languages+set}" = set; then : | |
8943 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
8944 | ,no,|,,) |
8945 | # Set it to something that will have no effect in the loop below | |
8946 | enable_stage1_languages=c ;; | |
8947 | ,yes,) | |
8948 | enable_stage1_languages=`echo $new_enable_languages | \ | |
8949 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
8950 | *,all,*) | |
8951 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
8952 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
8953 | esac | |
8954 | ||
8955 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
8956 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
8957 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
8958 | case $potential_languages in | |
8959 | *,$i,*) | |
8960 | case $stage1_languages in | |
8961 | *,$i,*) ;; | |
8962 | *) stage1_languages="$stage1_languages$i," ;; | |
8963 | esac ;; | |
8964 | *) | |
8965 | case $missing_languages in | |
8966 | *,$i,*) ;; | |
8967 | *) missing_languages="$missing_languages$i," ;; | |
8968 | esac ;; | |
8969 | esac | |
8970 | done | |
5213506e RW |
8971 | fi |
8972 | ||
e1888513 PB |
8973 | |
8974 | # Remove leading/trailing commas that were added for simplicity | |
8975 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 8976 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
8977 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
8978 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
8979 | ||
55ffb5ed | 8980 | if test "x$missing_languages" != x; then |
22e05272 | 8981 | as_fn_error $? " |
0cf085e4 | 8982 | The following requested languages could not be built: ${missing_languages} |
5213506e | 8983 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 8984 | fi |
55ffb5ed NN |
8985 | if test "x$new_enable_languages" != "x$enable_languages"; then |
8986 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 8987 | enable_languages="$new_enable_languages" |
55ffb5ed | 8988 | fi |
e1888513 | 8989 | |
1c710c3c | 8990 | |
b2eaac4a | 8991 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
8992 | fi |
8993 | ||
27079765 AH |
8994 | # Handle --disable-<component> generically. |
8995 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
8996 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
8997 | varname=`echo $dirname | sed -e s/+/_/g` |
8998 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
8999 | noconfigdirs="$noconfigdirs $dir" |
9000 | fi | |
9001 | done | |
9002 | ||
43c40f3e RO |
9003 | # Check for Boehm's garbage collector |
9004 | # Check whether --enable-objc-gc was given. | |
9005 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
9006 | enableval=$enable_objc_gc; |
9007 | fi | |
9008 | ||
9009 | ||
9010 | # Check whether --with-target-bdw-gc was given. | |
9011 | if test "${with_target_bdw_gc+set}" = set; then : | |
9012 | withval=$with_target_bdw_gc; | |
9013 | fi | |
9014 | ||
9015 | ||
9016 | # Check whether --with-target-bdw-gc-include was given. | |
9017 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9018 | withval=$with_target_bdw_gc_include; | |
9019 | fi | |
9020 | ||
9021 | ||
9022 | # Check whether --with-target-bdw-gc-lib was given. | |
9023 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9024 | withval=$with_target_bdw_gc_lib; | |
9025 | fi | |
9026 | ||
9027 | ||
9028 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9030 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9031 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
9033 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
9034 | else |
9035 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 9036 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 9037 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 9038 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
9039 | else |
9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9041 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
9042 | fi | |
9043 | fi | |
43c40f3e RO |
9044 | esac |
9045 | ||
e4cba494 | 9046 | # Disable libitm, libsanitizer, libvtv if we're not building C++ |
99776ebd | 9047 | case ,${enable_languages}, in |
1007a55c | 9048 | *,c++,*) |
5e9d6aa4 | 9049 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
9050 | case "${noconfigdirs}" in |
9051 | *target-libstdc++-v3*) | |
5e9d6aa4 | 9052 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
9053 | ;; |
9054 | *) ;; | |
9055 | esac | |
9056 | ;; | |
99776ebd | 9057 | *) |
e4cba494 | 9058 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
9059 | ;; |
9060 | esac | |
9061 | ||
dc614a83 AB |
9062 | # If gcc/ is not in the source tree then we'll not be building a |
9063 | # target compiler, assume in that case we don't want to build any | |
9064 | # target libraries or tools. | |
9065 | # | |
9066 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9067 | # this configure script, but don't always have target tools available. | |
9068 | if test ! -d ${srcdir}/gcc; then | |
9069 | skipdirs="${skipdirs} ${target_configdirs}" | |
9070 | fi | |
9071 | ||
ee6a22df L |
9072 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9073 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
9074 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9075 | ||
9076 | notsupp="" | |
9077 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 9078 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
9079 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9080 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9081 | if test -r $srcdir/$dirname/configure ; then | |
9082 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9083 | true | |
9084 | else | |
9085 | notsupp="$notsupp $dir" | |
9086 | fi | |
9087 | fi | |
9088 | fi | |
ee6a22df L |
9089 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9090 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9091 | if test -r $srcdir/$dirname/configure ; then | |
9092 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9093 | true | |
9094 | else | |
9095 | notsupp="$notsupp $dir" | |
9096 | fi | |
9097 | fi | |
9098 | fi | |
55ffb5ed NN |
9099 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9100 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9101 | if test -r $srcdir/$dirname/configure ; then | |
9102 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9103 | true | |
9104 | else | |
9105 | notsupp="$notsupp $dir" | |
9106 | fi | |
9107 | fi | |
9108 | fi | |
9109 | done | |
9110 | ||
55ffb5ed NN |
9111 | # Quietly strip out all directories which aren't configurable in this tree. |
9112 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9113 | # is now the case. | |
23f6b2f9 PB |
9114 | build_configdirs_all="$build_configdirs" |
9115 | build_configdirs= | |
9116 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 9117 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
9118 | if test -f ${srcdir}/$j/configure ; then |
9119 | build_configdirs="${build_configdirs} $i" | |
9120 | fi | |
9121 | done | |
9122 | ||
55ffb5ed NN |
9123 | configdirs_all="$configdirs" |
9124 | configdirs= | |
9125 | for i in ${configdirs_all} ; do | |
9126 | if test -f ${srcdir}/$i/configure ; then | |
9127 | configdirs="${configdirs} $i" | |
9128 | fi | |
9129 | done | |
23f6b2f9 | 9130 | |
55ffb5ed NN |
9131 | target_configdirs_all="$target_configdirs" |
9132 | target_configdirs= | |
9133 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 9134 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
9135 | if test -f ${srcdir}/$j/configure ; then |
9136 | target_configdirs="${target_configdirs} $i" | |
9137 | fi | |
9138 | done | |
9139 | ||
45b3824d TS |
9140 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9141 | # so we have to add it after the preceding checks. | |
9142 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9143 | then | |
9144 | case " $configdirs " in | |
9145 | *" libiberty "*) | |
9146 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9147 | configdirs="$configdirs libiberty-linker-plugin" | |
9148 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9149 | --with-libiberty=../libiberty-linker-plugin";; | |
9150 | *) | |
22e05272 | 9151 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
9152 | esac |
9153 | fi | |
9154 | ||
fca38047 TS |
9155 | # Sometimes we have special requirements for the host libiberty. |
9156 | extra_host_libiberty_configure_flags= | |
9157 | case " $configdirs " in | |
15368960 | 9158 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
fca38047 TS |
9159 | # When these are to be built as shared libraries, the same applies to |
9160 | # libiberty. | |
9161 | extra_host_libiberty_configure_flags=--enable-shared | |
9162 | ;; | |
04bb15e4 TV |
9163 | esac |
9164 | ||
9165 | ||
9166 | # Sometimes we have special requirements for the host zlib. | |
9167 | extra_host_zlib_configure_flags= | |
9168 | case " $configdirs " in | |
1c01ebf6 L |
9169 | *" bfd "*) |
9170 | # When bfd is to be built as a shared library, the same applies to | |
9171 | # zlib. | |
9172 | if test "$enable_shared" = "yes"; then | |
9173 | extra_host_zlib_configure_flags=--enable-host-shared | |
9174 | fi | |
9175 | ;; | |
fca38047 TS |
9176 | esac |
9177 | ||
9178 | ||
55ffb5ed NN |
9179 | # Produce a warning message for the subdirs we can't configure. |
9180 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9181 | # FSF releases, it's important to let people know when their machine isn't | |
9182 | # supported by the one or two programs in a package. | |
9183 | ||
9184 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9185 | # If $appdirs is non-empty, at least one of those directories must still | |
9186 | # be configured, or we error out. (E.g., if the gas release supports a | |
9187 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9188 | # pretend that all is well.) | |
9189 | if test -n "$appdirs" ; then | |
9190 | for dir in $appdirs ; do | |
9191 | if test -r $dir/Makefile.in ; then | |
9192 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9193 | appdirs="" | |
9194 | break | |
9195 | fi | |
23f6b2f9 | 9196 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
9197 | appdirs="" |
9198 | break | |
9199 | fi | |
9200 | fi | |
9201 | done | |
9202 | if test -n "$appdirs" ; then | |
9203 | echo "*** This configuration is not supported by this package." 1>&2 | |
9204 | exit 1 | |
9205 | fi | |
9206 | fi | |
9207 | # Okay, some application will build, or we don't care to check. Still | |
9208 | # notify of subdirs not getting built. | |
9209 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9210 | echo " ${notsupp}" 1>&2 | |
9211 | echo " (Any other directories should still work fine.)" 1>&2 | |
9212 | fi | |
9213 | ||
9214 | case "$host" in | |
9215 | *msdosdjgpp*) | |
9216 | enable_gdbtk=no ;; | |
9217 | esac | |
9218 | ||
c3a86da9 DJ |
9219 | # To find our prefix, in gcc_cv_tool_prefix. |
9220 | ||
9221 | # The user is always right. | |
9222 | if test "${PATH_SEPARATOR+set}" != set; then | |
9223 | echo "#! /bin/sh" >conf$$.sh | |
9224 | echo "exit 0" >>conf$$.sh | |
9225 | chmod +x conf$$.sh | |
9226 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9227 | PATH_SEPARATOR=';' | |
9228 | else | |
9229 | PATH_SEPARATOR=: | |
9230 | fi | |
9231 | rm -f conf$$.sh | |
9232 | fi | |
9233 | ||
9234 | ||
3c36aa6b JJ |
9235 | get_gcc_base_ver="cat" |
9236 | ||
9237 | # Check whether --with-gcc-major-version-only was given. | |
9238 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9239 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 9240 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
9241 | fi |
9242 | ||
9243 | fi | |
9244 | ||
9245 | ||
9246 | ||
9247 | ||
9248 | ||
c3a86da9 DJ |
9249 | |
9250 | if test "x$exec_prefix" = xNONE; then | |
9251 | if test "x$prefix" = xNONE; then | |
9252 | gcc_cv_tool_prefix=$ac_default_prefix | |
9253 | else | |
9254 | gcc_cv_tool_prefix=$prefix | |
9255 | fi | |
9256 | else | |
9257 | gcc_cv_tool_prefix=$exec_prefix | |
9258 | fi | |
9259 | ||
9260 | # If there is no compiler in the tree, use the PATH only. In any | |
9261 | # case, if there is no compiler in the tree nobody should use | |
9262 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9263 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
9264 | if test x$with_gcc_major_version_only = xyes ; then |
9265 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9266 | else | |
9267 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9268 | fi | |
c3a86da9 DJ |
9269 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9270 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9271 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9272 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9273 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9274 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9275 | else | |
9276 | gcc_cv_tool_dirs= | |
9277 | fi | |
9278 | ||
9279 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9280 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9281 | fi | |
9282 | ||
9283 | ||
9284 | ||
55ffb5ed NN |
9285 | copy_dirs= |
9286 | ||
1c710c3c | 9287 | |
5213506e RW |
9288 | # Check whether --with-build-sysroot was given. |
9289 | if test "${with_build_sysroot+set}" = set; then : | |
9290 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
9291 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9292 | fi | |
9293 | else | |
9294 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 9295 | fi |
526635cb MM |
9296 | |
9297 | ||
c8aea42c | 9298 | |
5213506e RW |
9299 | |
9300 | # Check whether --with-debug-prefix-map was given. | |
9301 | if test "${with_debug_prefix_map+set}" = set; then : | |
9302 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
9303 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9304 | for debug_map in $withval; do | |
9305 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9306 | done | |
9307 | fi | |
9308 | else | |
9309 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
9310 | fi |
9311 | ||
c8aea42c PB |
9312 | |
9313 | ||
1c8bd6a3 PB |
9314 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9315 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9316 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9317 | # We want to ensure that TARGET libraries (which we know are built with | |
9318 | # gcc) are built with "-O2 -g", so include those options when setting | |
9319 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9320 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9321 | if test "x${is_cross_compiler}" = xyes; then |
9322 | CFLAGS_FOR_TARGET="-g -O2" | |
9323 | else | |
9324 | CFLAGS_FOR_TARGET=$CFLAGS | |
9325 | case " $CFLAGS " in | |
9326 | *" -O2 "*) ;; | |
9327 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9328 | esac | |
9329 | case " $CFLAGS " in | |
9330 | *" -g "* | *" -g3 "*) ;; | |
9331 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9332 | esac | |
9333 | fi | |
1c8bd6a3 PB |
9334 | fi |
9335 | ||
9336 | ||
9337 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9338 | if test "x${is_cross_compiler}" = xyes; then |
9339 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9340 | else | |
9341 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9342 | case " $CXXFLAGS " in | |
9343 | *" -O2 "*) ;; | |
9344 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9345 | esac | |
9346 | case " $CXXFLAGS " in | |
9347 | *" -g "* | *" -g3 "*) ;; | |
9348 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9349 | esac | |
9350 | fi | |
1c8bd6a3 PB |
9351 | fi |
9352 | ||
9353 | ||
6f57bdf6 DK |
9354 | |
9355 | ||
55ffb5ed NN |
9356 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9357 | # the named directory are copied to $(tooldir)/sys-include. | |
9358 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9359 | if test x${is_cross_compiler} = xno ; then | |
9360 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9361 | exit 1 | |
9362 | fi | |
9363 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9364 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9365 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9366 | fi |
9367 | fi | |
9368 | ||
9369 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9370 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9371 | # are permitted. | |
9372 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9373 | if test x${is_cross_compiler} = xno ; then | |
9374 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9375 | exit 1 | |
9376 | fi | |
9377 | if test x"${with_libs}" != xyes ; then | |
9378 | # Copy the libraries in reverse order, so that files in the first named | |
9379 | # library override files in subsequent libraries. | |
c3a86da9 | 9380 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9381 | for l in ${with_libs}; do |
1c710c3c | 9382 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9383 | done |
9384 | fi | |
9385 | fi | |
9386 | ||
d7f09764 | 9387 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9388 | # |
9389 | # This is done by determining whether or not the appropriate directory | |
9390 | # is available, and by checking whether or not specific configurations | |
9391 | # have requested that this magic not happen. | |
1c710c3c DJ |
9392 | # |
9393 | # The command line options always override the explicit settings in | |
6b1786aa | 9394 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9395 | # |
1c710c3c | 9396 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9397 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9398 | # --without-gnu-ld options for the configure script. Similarly, if |
9399 | # the default is to use the included zlib and you don't want to do that, | |
9400 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9401 | |
9402 | if test x${use_gnu_as} = x && | |
9403 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9404 | with_gnu_as=yes | |
9405 | extra_host_args="$extra_host_args --with-gnu-as" | |
9406 | fi | |
9407 | ||
9408 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9409 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9410 | with_gnu_ld=yes |
9411 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9412 | fi | |
9413 | ||
d7f09764 DN |
9414 | if test x${use_included_zlib} = x && |
9415 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9416 | : | |
9417 | else | |
9418 | with_system_zlib=yes | |
9419 | extra_host_args="$extra_host_args --with-system-zlib" | |
9420 | fi | |
9421 | ||
e8b05380 PB |
9422 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9423 | # can detect this case. | |
9424 | ||
9425 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9426 | with_newlib=yes | |
9427 | extra_host_args="$extra_host_args --with-newlib" | |
9428 | fi | |
9429 | ||
55ffb5ed NN |
9430 | # Handle ${copy_dirs} |
9431 | set fnord ${copy_dirs} | |
9432 | shift | |
9433 | while test $# != 0 ; do | |
9434 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9435 | : | |
9436 | else | |
9437 | echo Copying $1 to $2 | |
9438 | ||
9439 | # Use the install script to create the directory and all required | |
9440 | # parent directories. | |
9441 | if test -d $2 ; then | |
9442 | : | |
9443 | else | |
9444 | echo >config.temp | |
9445 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9446 | fi | |
9447 | ||
9448 | # Copy the directory, assuming we have tar. | |
9449 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9450 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9451 | ||
9452 | # It is the responsibility of the user to correctly adjust all | |
9453 | # symlinks. If somebody can figure out how to handle them correctly | |
9454 | # here, feel free to add the code. | |
9455 | ||
9456 | echo $1 > $2/COPIED | |
9457 | fi | |
9458 | shift; shift | |
9459 | done | |
9460 | ||
e8b05380 PB |
9461 | # Determine a target-dependent exec_prefix that the installed |
9462 | # gcc will search in. Keep this list sorted by triplet, with | |
9463 | # the *-*-osname triplets last. | |
9464 | md_exec_prefix= | |
9465 | case "${target}" in | |
30b74385 | 9466 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9467 | md_exec_prefix=/dev/env/DJDIR/bin |
9468 | ;; | |
e8b05380 | 9469 | *-*-hpux* | \ |
e8b05380 | 9470 | *-*-nto-qnx* | \ |
6de66370 | 9471 | *-*-solaris2*) |
e8b05380 PB |
9472 | md_exec_prefix=/usr/ccs/bin |
9473 | ;; | |
9474 | esac | |
9475 | ||
671aa708 NN |
9476 | extra_arflags_for_target= |
9477 | extra_nmflags_for_target= | |
9478 | extra_ranlibflags_for_target= | |
9479 | target_makefile_frag=/dev/null | |
9480 | case "${target}" in | |
58e24147 AM |
9481 | spu-*-*) |
9482 | target_makefile_frag="config/mt-spu" | |
9483 | ;; | |
d896cc4d | 9484 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9485 | target_makefile_frag="config/mt-sde" |
9486 | ;; | |
1ec3b87b RS |
9487 | mipsisa*-*-elfoabi*) |
9488 | target_makefile_frag="config/mt-mips-elfoabi" | |
9489 | ;; | |
08d0963a RS |
9490 | mips*-*-*linux* | mips*-*-gnu*) |
9491 | target_makefile_frag="config/mt-mips-gnu" | |
9492 | ;; | |
707f1839 SL |
9493 | nios2-*-elf*) |
9494 | target_makefile_frag="config/mt-nios2-elf" | |
9495 | ;; | |
76052545 EB |
9496 | *-*-linux-android*) |
9497 | target_makefile_frag="config/mt-android" | |
9498 | ;; | |
416ac4d4 | 9499 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9500 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9501 | ;; |
9502 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9503 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9504 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9505 | # harmless if we're using GNU nm or ar. | |
9506 | extra_arflags_for_target=" -X32_64" | |
9507 | extra_nmflags_for_target=" -B -X32_64" | |
9508 | ;; | |
671aa708 NN |
9509 | esac |
9510 | ||
9511 | alphaieee_frag=/dev/null | |
9512 | case $target in | |
9513 | alpha*-*-*) | |
9514 | # This just makes sure to use the -mieee option to build target libs. | |
9515 | # This should probably be set individually by each library. | |
9516 | alphaieee_frag="config/mt-alphaieee" | |
9517 | ;; | |
9518 | esac | |
9519 | ||
9520 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9521 | # the target libraries, similarly if it is not specified, use -Os | |
9522 | # on selected platforms. | |
9523 | ospace_frag=/dev/null | |
9524 | case "${enable_target_optspace}:${target}" in | |
9525 | yes:*) | |
9526 | ospace_frag="config/mt-ospace" | |
9527 | ;; | |
9528 | :d30v-*) | |
9529 | ospace_frag="config/mt-d30v" | |
9530 | ;; | |
d9063947 | 9531 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9532 | ospace_frag="config/mt-ospace" |
9533 | ;; | |
9534 | no:* | :*) | |
9535 | ;; | |
9536 | *) | |
9537 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9538 | ;; | |
9539 | esac | |
9540 | ||
671aa708 NN |
9541 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9542 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9543 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9544 | build_tooldir=${tooldir} |
9545 | ||
671aa708 NN |
9546 | # Create a .gdbinit file which runs the one in srcdir |
9547 | # and tells GDB to look there for source files. | |
9548 | ||
9549 | if test -r ${srcdir}/.gdbinit ; then | |
9550 | case ${srcdir} in | |
9551 | .) ;; | |
9552 | *) cat > ./.gdbinit <<EOF | |
9553 | # ${NO_EDIT} | |
9554 | dir ${srcdir} | |
9555 | dir . | |
9556 | source ${srcdir}/.gdbinit | |
9557 | EOF | |
9558 | ;; | |
9559 | esac | |
9560 | fi | |
9561 | ||
671aa708 NN |
9562 | # Make sure that the compiler is able to generate an executable. If it |
9563 | # can't, we are probably in trouble. We don't care whether we can run the | |
9564 | # executable--we might be using a cross compiler--we only care whether it | |
9565 | # can be created. At this point the main configure script has set CC. | |
9566 | we_are_ok=no | |
9567 | echo "int main () { return 0; }" > conftest.c | |
9568 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9569 | if test $? = 0 ; then | |
9570 | if test -s conftest || test -s conftest.exe ; then | |
9571 | we_are_ok=yes | |
9572 | fi | |
1c710c3c | 9573 | fi |
671aa708 NN |
9574 | case $we_are_ok in |
9575 | no) | |
9576 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9577 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9578 | rm -f conftest* | |
9579 | exit 1 | |
9580 | ;; | |
9581 | esac | |
9582 | rm -f conftest* | |
9583 | ||
d89f0ad6 | 9584 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9585 | case "${host}" in |
9586 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9587 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9588 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9589 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9590 | esac | |
9591 | ||
d89f0ad6 AL |
9592 | # On systems where the dynamic library environment variable is PATH, |
9593 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9594 | # built executables to PATH. | |
9595 | if test "$RPATH_ENVVAR" = PATH; then | |
9596 | GCC_SHLIB_SUBDIR=/shlib | |
9597 | else | |
9598 | GCC_SHLIB_SUBDIR= | |
9599 | fi | |
9600 | ||
beeda1d9 JJ |
9601 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9602 | case $enable_bootstrap in | |
9603 | yes) | |
9604 | bootstrap_suffix=bootstrap | |
9605 | BUILD_CONFIG=bootstrap-debug | |
9606 | ;; | |
9607 | no) | |
9608 | bootstrap_suffix=no-bootstrap | |
9609 | BUILD_CONFIG= | |
9610 | ;; | |
9611 | esac | |
9612 | ||
9613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9614 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9615 | ||
9616 | ||
9617 | # Check whether --with-build-config was given. | |
9618 | if test "${with_build_config+set}" = set; then : | |
9619 | withval=$with_build_config; case $with_build_config in | |
9620 | yes) with_build_config= ;; | |
9621 | no) with_build_config= BUILD_CONFIG= ;; | |
9622 | esac | |
9623 | fi | |
9624 | ||
9625 | ||
9626 | if test "x${with_build_config}" != x; then | |
9627 | BUILD_CONFIG=$with_build_config | |
9628 | else | |
9629 | case $BUILD_CONFIG in | |
9630 | bootstrap-debug) | |
9631 | if echo "int f (void) { return 0; }" > conftest.c && | |
9632 | ${CC} -c conftest.c && | |
9633 | mv conftest.o conftest.o.g0 && | |
9634 | ${CC} -c -g conftest.c && | |
9635 | mv conftest.o conftest.o.g && | |
9636 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9637 | : | |
9638 | else | |
9639 | BUILD_CONFIG= | |
9640 | fi | |
9641 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9642 | ;; | |
9643 | esac | |
9644 | fi | |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9646 | $as_echo "$BUILD_CONFIG" >&6; } | |
9647 | ||
9648 | ||
9649 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9651 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9652 | # Check whether --enable-vtable-verify was given. | |
9653 | if test "${enable_vtable_verify+set}" = set; then : | |
9654 | enableval=$enable_vtable_verify; case "$enableval" in | |
9655 | yes) enable_vtable_verify=yes ;; | |
9656 | no) enable_vtable_verify=no ;; | |
9657 | *) enable_vtable_verify=no;; | |
9658 | esac | |
9659 | else | |
9660 | enable_vtable_verify=no | |
9661 | fi | |
9662 | ||
9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9664 | $as_echo "$enable_vtable_verify" >&6; } | |
9665 | ||
671aa708 NN |
9666 | # Record target_configdirs and the configure arguments for target and |
9667 | # build configuration in Makefile. | |
9668 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9669 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9670 | bootstrap_fixincludes=no |
671aa708 | 9671 | |
ad1e5170 JR |
9672 | # If we are building libgomp, bootstrap it. |
9673 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9674 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9675 | fi | |
9676 | ||
beeda1d9 JJ |
9677 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9678 | # or bootstrap-ubsan, bootstrap it. | |
9679 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9680 | case "$BUILD_CONFIG" in | |
170e618e | 9681 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9682 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9683 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9684 | ;; |
9685 | esac | |
ac8701fe L |
9686 | fi |
9687 | ||
beeda1d9 JJ |
9688 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9689 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9690 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9691 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9692 | fi | |
9693 | ||
5fee5ec3 IB |
9694 | # If we are building libatomic and the list of enabled languages includes the |
9695 | # D frontend, bootstrap it. | |
9696 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9697 | case ,${enable_languages}, in | |
9698 | *,d,*) | |
9699 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9700 | ;; | |
9701 | esac | |
9702 | fi | |
9703 | ||
671aa708 NN |
9704 | # Determine whether gdb needs tk/tcl or not. |
9705 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9706 | # and in that case we want gdb to be built without tk. Ugh! | |
9707 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9708 | # so we should be able to put the 'maybe's in unconditionally and | |
9709 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9710 | # 100% sure that that's safe though. | |
e914a571 | 9711 | |
b4f96efe | 9712 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9713 | case "$enable_gdbtk" in |
9714 | no) | |
9715 | GDB_TK="" ;; | |
e914a571 AC |
9716 | yes) |
9717 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9718 | *) |
e914a571 AC |
9719 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9720 | # distro. Eventually someone will fix this and move Insight, nee | |
9721 | # gdbtk to a separate directory. | |
9722 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9723 | GDB_TK="${gdb_tk}" | |
9724 | else | |
9725 | GDB_TK="" | |
9726 | fi | |
9727 | ;; | |
671aa708 | 9728 | esac |
ef9db8d5 DJ |
9729 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9730 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9731 | |
f9d09df0 TT |
9732 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9733 | # else does, only include them if one of these is built. The Makefile | |
9734 | # provides the ordering, so it's enough here to add to the list. | |
9735 | case " ${configdirs} " in | |
9736 | *\ gdb\ *) | |
9737 | configdirs="${configdirs} gnulib gdbsupport" | |
9738 | ;; | |
9739 | *\ gdbserver\ *) | |
9740 | configdirs="${configdirs} gnulib gdbsupport" | |
9741 | ;; | |
f14c9bd4 MF |
9742 | *\ sim\ *) |
9743 | configdirs="${configdirs} gnulib" | |
9744 | ;; | |
f9d09df0 | 9745 | esac |
98e5be21 | 9746 | |
60975492 | 9747 | # Strip out unwanted targets. |
8b87bb96 NN |
9748 | |
9749 | # While at that, we remove Makefiles if we were started for recursive | |
9750 | # configuration, so that the top-level Makefile reconfigures them, | |
9751 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9752 | |
3e54529c RW |
9753 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9754 | # but now we're fixing up the Makefile ourselves with the additional | |
9755 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9756 | # extrasub-{build,host,target} not because there is any reason to split | |
9757 | # the substitutions up that way, but only to remain below the limit of | |
9758 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9759 | |
9760 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9761 | # configure will not warn you at all. | |
8b87bb96 | 9762 | |
79cd2b23 RW |
9763 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9764 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9765 | yes:yes:*\ gold\ *:*) | |
22e05272 | 9766 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
9767 | ;; |
9768 | esac | |
9769 | ||
3e54529c | 9770 | extrasub_build= |
23f6b2f9 | 9771 | for module in ${build_configdirs} ; do |
5607edfd PB |
9772 | if test -z "${no_recursion}" \ |
9773 | && test -f ${build_subdir}/${module}/Makefile; then | |
9774 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9775 | rm -f ${build_subdir}/${module}/Makefile | |
9776 | fi | |
3e54529c | 9777 | extrasub_build="$extrasub_build |
5607edfd PB |
9778 | /^@if build-$module\$/d |
9779 | /^@endif build-$module\$/d | |
da34ca3f | 9780 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 9781 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
9782 | /^@endif build-$module-$bootstrap_suffix\$/d |
9783 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 9784 | done |
3e54529c | 9785 | extrasub_host= |
5607edfd | 9786 | for module in ${configdirs} ; do |
a6fbc1e2 | 9787 | if test -z "${no_recursion}"; then |
f063a9ed | 9788 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
9789 | if test -f ${file}; then |
9790 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9791 | rm -f ${file} | |
9792 | fi | |
9793 | done | |
5607edfd | 9794 | fi |
9e1c8fc1 JJ |
9795 | case ${module},${bootstrap_fixincludes} in |
9796 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9797 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9798 | esac | |
3e54529c | 9799 | extrasub_host="$extrasub_host |
5607edfd PB |
9800 | /^@if $module\$/d |
9801 | /^@endif $module\$/d | |
da34ca3f | 9802 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 9803 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
9804 | /^@endif $module-$host_bootstrap_suffix\$/d |
9805 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 9806 | done |
3e54529c | 9807 | extrasub_target= |
5607edfd PB |
9808 | for module in ${target_configdirs} ; do |
9809 | if test -z "${no_recursion}" \ | |
9810 | && test -f ${target_subdir}/${module}/Makefile; then | |
9811 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9812 | rm -f ${target_subdir}/${module}/Makefile | |
9813 | fi | |
00020c16 ILT |
9814 | |
9815 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9816 | case $bootstrap_target_libs in | |
9817 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9818 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9819 | esac | |
9820 | ||
3e54529c | 9821 | extrasub_target="$extrasub_target |
5607edfd PB |
9822 | /^@if target-$module\$/d |
9823 | /^@endif target-$module\$/d | |
da34ca3f | 9824 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 9825 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
9826 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9827 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
9828 | done |
9829 | ||
3e54529c RW |
9830 | # Do the final fixup along with target modules. |
9831 | extrasub_target="$extrasub_target | |
da34ca3f AO |
9832 | /^@if /,/^@endif /d |
9833 | /^@unless /d | |
9834 | /^@endunless /d" | |
671aa708 | 9835 | |
4a5e71f2 L |
9836 | if test "$enable_pgo_build" != "no"; then |
9837 | extrasub_build="$extrasub_build | |
9838 | /^@if pgo-build\$/d | |
9839 | /^@endif pgo-build\$/d" | |
9840 | fi | |
9841 | ||
671aa708 NN |
9842 | # Create the serialization dependencies. This uses a temporary file. |
9843 | ||
5213506e RW |
9844 | # Check whether --enable-serial-configure was given. |
9845 | if test "${enable_serial_configure+set}" = set; then : | |
9846 | enableval=$enable_serial_configure; | |
9847 | fi | |
ade82b16 AO |
9848 | |
9849 | ||
bf1d3e81 NN |
9850 | case ${enable_serial_configure} in |
9851 | yes) | |
9852 | enable_serial_build_configure=yes | |
9853 | enable_serial_host_configure=yes | |
9854 | enable_serial_target_configure=yes | |
9855 | ;; | |
9856 | esac | |
9857 | ||
671aa708 NN |
9858 | # These force 'configure's to be done one at a time, to avoid problems |
9859 | # with contention over a shared config.cache. | |
9860 | rm -f serdep.tmp | |
ade82b16 | 9861 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 9862 | olditem= |
bf1d3e81 | 9863 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
9864 | for item in ${build_configdirs} ; do |
9865 | case ${olditem} in | |
9866 | "") ;; | |
ade82b16 | 9867 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9868 | esac |
9869 | olditem=${item} | |
9870 | done | |
9871 | olditem= | |
bf1d3e81 | 9872 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
9873 | for item in ${configdirs} ; do |
9874 | case ${olditem} in | |
9875 | "") ;; | |
ade82b16 | 9876 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9877 | esac |
9878 | olditem=${item} | |
9879 | done | |
9880 | olditem= | |
bf1d3e81 | 9881 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
9882 | for item in ${target_configdirs} ; do |
9883 | case ${olditem} in | |
9884 | "") ;; | |
ade82b16 | 9885 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9886 | esac |
9887 | olditem=${item} | |
9888 | done | |
9889 | serialization_dependencies=serdep.tmp | |
9890 | ||
9891 | ||
ade82b16 | 9892 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 9893 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
9894 | # might not want to pass down to subconfigures. The exception being |
9895 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
9896 | # files altogether, and which should be passed on to subconfigures. | |
9897 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
9898 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 9899 | baseargs= |
29a63921 | 9900 | tbaseargs= |
1c710c3c DJ |
9901 | keep_next=no |
9902 | skip_next=no | |
9903 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
9904 | for ac_arg |
9905 | do | |
1c710c3c DJ |
9906 | if test X"$skip_next" = X"yes"; then |
9907 | skip_next=no | |
9908 | continue | |
9909 | fi | |
9910 | if test X"$keep_next" = X"yes"; then | |
9911 | case $ac_arg in | |
9912 | *\'*) | |
9913 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9914 | esac | |
9915 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9916 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
9917 | keep_next=no |
9918 | continue | |
9919 | fi | |
9920 | ||
9921 | # Handle separated arguments. Based on the logic generated by | |
9922 | # autoconf 2.59. | |
9923 | case $ac_arg in | |
9924 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
9925 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
9926 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
9927 | | -with-* | --with-* | -without-* | --without-* | --x) | |
9928 | separate_arg=no | |
9929 | ;; | |
9930 | -*) | |
9931 | separate_arg=yes | |
9932 | ;; | |
9933 | *) | |
9934 | separate_arg=no | |
9935 | ;; | |
9936 | esac | |
9937 | ||
29a63921 AO |
9938 | skip_targ=no |
9939 | case $ac_arg in | |
9940 | ||
9941 | --with-* | --without-*) | |
9942 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
9943 | ||
9944 | case $libopt in | |
9945 | *[-_]include) | |
9946 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
9947 | ;; | |
9948 | *[-_]lib) | |
9949 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
9950 | ;; | |
9951 | *) | |
9952 | lib=$libopt | |
9953 | ;; | |
9954 | esac | |
9955 | ||
9956 | ||
9957 | case $lib in | |
4a9bb2aa | 9958 | mpc | mpfr | gmp | isl) |
29a63921 AO |
9959 | # If we're processing --with-$lib, --with-$lib-include or |
9960 | # --with-$lib-lib, for one of the libs above, and target is | |
9961 | # different from host, don't pass the current argument to any | |
9962 | # target library's configure. | |
9963 | if test x$is_cross_compiler = xyes; then | |
9964 | skip_targ=yes | |
9965 | fi | |
9966 | ;; | |
9967 | esac | |
9968 | ;; | |
9969 | esac | |
9970 | ||
1c710c3c | 9971 | case "$ac_arg" in |
f1a036e4 NC |
9972 | --cache-file=/dev/null | \ |
9973 | -cache-file=/dev/null ) | |
9974 | # Handled here to avoid the test to skip args below. | |
9975 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9976 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
9977 | # Assert: $separate_arg should always be no. |
9978 | keep_next=$separate_arg | |
9979 | ;; | |
1c710c3c DJ |
9980 | --no*) |
9981 | continue | |
9982 | ;; | |
9983 | --c* | \ | |
9984 | --sr* | \ | |
9985 | --ho* | \ | |
9986 | --bu* | \ | |
9987 | --t* | \ | |
9988 | --program-* | \ | |
9989 | -cache_file* | \ | |
9990 | -srcdir* | \ | |
9991 | -host* | \ | |
9992 | -build* | \ | |
9993 | -target* | \ | |
9994 | -program-prefix* | \ | |
9995 | -program-suffix* | \ | |
9996 | -program-transform-name* ) | |
9997 | skip_next=$separate_arg | |
9998 | continue | |
9999 | ;; | |
10000 | -*) | |
10001 | # An option. Add it. | |
10002 | case $ac_arg in | |
10003 | *\'*) | |
10004 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10005 | esac | |
10006 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
10007 | if test X"$skip_targ" = Xno; then |
10008 | tbaseargs="$tbaseargs '$ac_arg'" | |
10009 | fi | |
1c710c3c DJ |
10010 | keep_next=$separate_arg |
10011 | ;; | |
10012 | *) | |
10013 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10014 | # pass it down; let the Makefile handle this. | |
10015 | continue | |
10016 | ;; | |
10017 | esac | |
10018 | done | |
10019 | # Remove the initial space we just introduced and, as these will be | |
10020 | # expanded by make, quote '$'. | |
10021 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 10022 | |
43bb47c2 DJ |
10023 | # Add in --program-transform-name, after --program-prefix and |
10024 | # --program-suffix have been applied to it. Autoconf has already | |
10025 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10026 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 10027 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
10028 | # Also, because we want to override the logic in subdir configure scripts to |
10029 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10030 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10031 | ${program_transform_name} | |
10032 | EOF_SED | |
10033 | gcc_transform_name=`cat conftestsed.out` | |
10034 | rm -f conftestsed.out | |
10035 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 10036 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
10037 | if test "$silent" = yes; then |
10038 | baseargs="$baseargs --silent" | |
29a63921 | 10039 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 10040 | fi |
0115d4a3 | 10041 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 10042 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 10043 | |
ffedf511 RW |
10044 | # Record and document user additions to sub configure arguments. |
10045 | ||
10046 | ||
10047 | ||
10048 | ||
671aa708 NN |
10049 | # For the build-side libraries, we just need to pretend we're native, |
10050 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
10051 | # desired. We can't even use the same cache file for all build-side |
10052 | # libraries, as they're compiled differently; some with C, some with | |
10053 | # C++ or with different feature-enabling options. | |
10054 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
10055 | |
10056 | # For host modules, accept cache file option, or specification as blank. | |
10057 | case "${cache_file}" in | |
10058 | "") # empty | |
10059 | cache_file_option="" ;; | |
10060 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10061 | cache_file_option="--cache-file=${cache_file}" ;; | |
10062 | *) # relative path | |
10063 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10064 | esac | |
10065 | ||
09438bde NN |
10066 | # Host dirs don't like to share a cache file either, horribly enough. |
10067 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 10068 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 10069 | |
29a63921 | 10070 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
10071 | |
10072 | # Passing a --with-cross-host argument lets the target libraries know | |
10073 | # whether they are being built with a cross-compiler or being built | |
10074 | # native. However, it would be better to use other mechanisms to make the | |
10075 | # sorts of decisions they want to make on this basis. Please consider | |
10076 | # this option to be deprecated. FIXME. | |
10077 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 10078 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
10079 | fi |
10080 | ||
79e0604d FXC |
10081 | # Special user-friendly check for native x86_64-linux build, if |
10082 | # multilib is not explicitly enabled. | |
10083 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10084 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 10085 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
10086 | dev64=no |
10087 | echo "int main () { return 0; }" > conftest.c | |
10088 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10089 | if test $? = 0 ; then | |
10090 | if test -s conftest || test -s conftest.exe ; then | |
10091 | dev64=yes | |
10092 | fi | |
10093 | fi | |
10094 | rm -f conftest* | |
10095 | if test x${dev64} != xyes ; then | |
22e05272 | 10096 | as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
79e0604d FXC |
10097 | fi |
10098 | ;; | |
10099 | esac | |
10100 | ||
dc683a3f RW |
10101 | # Default to --enable-multilib. |
10102 | if test x${enable_multilib} = x ; then | |
671aa708 | 10103 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 10104 | fi |
671aa708 NN |
10105 | |
10106 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10107 | # changed from the earlier setting of with_newlib. | |
10108 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10109 | target_configargs="--with-newlib ${target_configargs}" | |
10110 | fi | |
10111 | ||
6b9eb62c NN |
10112 | # Different target subdirs use different values of certain variables |
10113 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10114 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10115 | # it doesn't automatically accept command-line overrides of them. | |
10116 | # This means it's not safe for target subdirs to share a cache file, | |
10117 | # which is disgusting, but there you have it. Hopefully this can be | |
10118 | # fixed in future. It's still worthwhile to use a cache file for each | |
10119 | # directory. I think. | |
10120 | ||
bebcd931 MS |
10121 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10122 | # We need to pass --target, as newer autoconf's requires consistency | |
10123 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 10124 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 10125 | |
671aa708 NN |
10126 | FLAGS_FOR_TARGET= |
10127 | case " $target_configdirs " in | |
10128 | *" newlib "*) | |
10129 | case " $target_configargs " in | |
10130 | *" --with-newlib "*) | |
10131 | case "$target" in | |
5d571eaa | 10132 | *-cygwin*) |
443e6238 | 10133 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 10134 | ;; |
671aa708 NN |
10135 | esac |
10136 | ||
10137 | # If we're not building GCC, don't discard standard headers. | |
10138 | if test -d ${srcdir}/gcc; then | |
10139 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10140 | ||
10141 | if test "${build}" != "${host}"; then | |
10142 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10143 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10144 | # to it. This is right: we don't want to search that directory | |
10145 | # for binaries, but we want the header files in there, so add | |
10146 | # them explicitly. | |
0463992b | 10147 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
10148 | |
10149 | # Someone might think of using the pre-installed headers on | |
10150 | # Canadian crosses, in case the installed compiler is not fully | |
10151 | # compatible with the compiler being built. In this case, it | |
10152 | # would be better to flag an error than risking having | |
10153 | # incompatible object files being constructed. We can't | |
10154 | # guarantee that an error will be flagged, but let's hope the | |
10155 | # compiler will do it, when presented with incompatible header | |
10156 | # files. | |
10157 | fi | |
10158 | fi | |
10159 | ||
10160 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 10161 | i[3456789]86-*-linux*-no) |
671aa708 NN |
10162 | # Here host == target, so we don't need to build gcc, |
10163 | # so we don't want to discard standard headers. | |
10164 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10165 | ;; | |
10166 | *) | |
10167 | # If we're building newlib, use its generic headers last, but search | |
10168 | # for any libc-related directories first (so make it the last -B | |
10169 | # switch). | |
10170 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
c03353e2 RIL |
10171 | |
10172 | # If we're building libgloss, find the startup file, simulator library | |
10173 | # and linker script. | |
10174 | case " $target_configdirs " in | |
10175 | *" libgloss "*) | |
10176 | # Look for startup file, simulator library and maybe linker script. | |
10177 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10178 | # Look for libnosys.a in case the target needs it. | |
10179 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10180 | # Most targets have the linker script in the source directory. | |
10181 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10182 | ;; | |
10183 | esac | |
671aa708 NN |
10184 | ;; |
10185 | esac | |
10186 | ;; | |
10187 | esac | |
10188 | ;; | |
10189 | esac | |
5d571eaa | 10190 | |
b91f0a41 | 10191 | case "$target" in |
5d571eaa OS |
10192 | x86_64-*mingw* | *-w64-mingw*) |
10193 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10194 | # however, use a symlink named 'mingw' in ${prefix} . | |
10195 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10196 | ;; | |
10197 | *-mingw*) | |
10198 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10199 | 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' | |
10200 | ;; | |
b91f0a41 | 10201 | esac |
671aa708 | 10202 | |
6691a79e ME |
10203 | # Allow the user to override the flags for |
10204 | # our build compiler if desired. | |
f019adc1 MF |
10205 | if test x"${build}" = x"${host}" ; then |
10206 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
84401ce5 | 10207 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
f019adc1 MF |
10208 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10209 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10210 | fi | |
6691a79e | 10211 | |
671aa708 NN |
10212 | # On Canadian crosses, we'll be searching the right directories for |
10213 | # the previously-installed cross compiler, so don't bother to add | |
10214 | # flags for directories within the install tree of the compiler | |
10215 | # being built; programs in there won't even run. | |
10216 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10217 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 10218 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
671aa708 NN |
10219 | fi |
10220 | ||
10221 | if test "x${use_gnu_ld}" = x && | |
10222 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10223 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 10224 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
10225 | fi |
10226 | ||
e88a2c09 DD |
10227 | # Search for other target-specific linker scripts and such. |
10228 | case "${target}" in | |
3e19841a PB |
10229 | mep*) |
10230 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10231 | ;; | |
9b8ffbb8 OH |
10232 | # The VxWorks support for shared libraries is getting in |
10233 | # incrementally. Make sure it doesn't get activated implicitly: | |
10234 | *vxworks*) | |
10235 | if test "${enable_shared-unset}" = unset ; then | |
10236 | enable_shared=no | |
10237 | # So the build of libraries knows ... | |
10238 | target_configargs="${target_configargs} --disable-shared" | |
10239 | # So gcc knows ... | |
10240 | host_configargs="${host_configargs} --disable-shared" | |
10241 | fi | |
10242 | ;; | |
e88a2c09 DD |
10243 | esac |
10244 | ||
671aa708 | 10245 | # Makefile fragments. |
7b61653a PE |
10246 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10247 | do | |
10248 | eval fragval=\$$frag | |
10249 | if test $fragval != /dev/null; then | |
10250 | eval $frag=${srcdir}/$fragval | |
10251 | fi | |
10252 | done | |
671aa708 NN |
10253 | |
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | # Miscellanea: directories, flags, etc. | |
10259 | ||
10260 | ||
10261 | ||
10262 | ||
10263 | ||
10264 | ||
10265 | ||
d89f0ad6 | 10266 | |
23f6b2f9 | 10267 | # Build module lists & subconfigure args. |
671aa708 NN |
10268 | |
10269 | ||
10270 | ||
2abefe3d PB |
10271 | # Host module lists & subconfigure args. |
10272 | ||
10273 | ||
10274 | ||
aae29963 | 10275 | |
2abefe3d PB |
10276 | # Target module lists & subconfigure args. |
10277 | ||
10278 | ||
10279 | ||
10280 | # Build tools. | |
10281 | ||
10282 | ||
10283 | ||
0999159b PB |
10284 | |
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
b4c522fa | 10297 | |
3b5e8ee4 | 10298 | |
a1d2b162 IS |
10299 | |
10300 | ||
2abefe3d PB |
10301 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10302 | # on the build machine. These are used if the Makefile can't locate these | |
10303 | # programs in objdir. | |
10304 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10305 | ||
10306 | for ac_prog in 'bison -y' byacc yacc | |
10307 | do | |
1c710c3c | 10308 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10309 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10311 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10312 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 10313 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10314 | else |
10315 | if test -n "$YACC"; then | |
10316 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10317 | else | |
1c710c3c DJ |
10318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10319 | for as_dir in $PATH | |
10320 | do | |
10321 | IFS=$as_save_IFS | |
10322 | test -z "$as_dir" && as_dir=. | |
5213506e | 10323 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10324 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10325 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 10326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10327 | break 2 |
10328 | fi | |
10329 | done | |
5213506e RW |
10330 | done |
10331 | IFS=$as_save_IFS | |
1c710c3c | 10332 | |
2abefe3d PB |
10333 | fi |
10334 | fi | |
1c710c3c | 10335 | YACC=$ac_cv_prog_YACC |
2abefe3d | 10336 | if test -n "$YACC"; then |
5213506e RW |
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10338 | $as_echo "$YACC" >&6; } | |
2abefe3d | 10339 | else |
5213506e RW |
10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10341 | $as_echo "no" >&6; } | |
2abefe3d PB |
10342 | fi |
10343 | ||
5213506e | 10344 | |
1c710c3c | 10345 | test -n "$YACC" && break |
2abefe3d PB |
10346 | done |
10347 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10348 | ||
10349 | case " $build_configdirs " in | |
10350 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
10351 | esac |
10352 | ||
10353 | for ac_prog in bison | |
10354 | do | |
1c710c3c | 10355 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10356 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10358 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10359 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 10360 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10361 | else |
10362 | if test -n "$BISON"; then | |
10363 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10364 | else | |
1c710c3c DJ |
10365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10366 | for as_dir in $PATH | |
10367 | do | |
10368 | IFS=$as_save_IFS | |
10369 | test -z "$as_dir" && as_dir=. | |
5213506e | 10370 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10372 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 10373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10374 | break 2 |
10375 | fi | |
10376 | done | |
5213506e RW |
10377 | done |
10378 | IFS=$as_save_IFS | |
1c710c3c | 10379 | |
2abefe3d PB |
10380 | fi |
10381 | fi | |
1c710c3c | 10382 | BISON=$ac_cv_prog_BISON |
2abefe3d | 10383 | if test -n "$BISON"; then |
5213506e RW |
10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10385 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10386 | else |
5213506e RW |
10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10388 | $as_echo "no" >&6; } | |
2abefe3d PB |
10389 | fi |
10390 | ||
5213506e | 10391 | |
1c710c3c | 10392 | test -n "$BISON" && break |
2abefe3d PB |
10393 | done |
10394 | test -n "$BISON" || BISON="$MISSING bison" | |
10395 | ||
10396 | case " $build_configdirs " in | |
10397 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10398 | esac | |
10399 | ||
10400 | for ac_prog in gm4 gnum4 m4 | |
10401 | do | |
1c710c3c | 10402 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10403 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10405 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10406 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10407 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10408 | else |
10409 | if test -n "$M4"; then | |
10410 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10411 | else | |
1c710c3c DJ |
10412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10413 | for as_dir in $PATH | |
10414 | do | |
10415 | IFS=$as_save_IFS | |
10416 | test -z "$as_dir" && as_dir=. | |
5213506e | 10417 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10418 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10419 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10421 | break 2 |
10422 | fi | |
10423 | done | |
5213506e RW |
10424 | done |
10425 | IFS=$as_save_IFS | |
1c710c3c | 10426 | |
2abefe3d PB |
10427 | fi |
10428 | fi | |
1c710c3c | 10429 | M4=$ac_cv_prog_M4 |
2abefe3d | 10430 | if test -n "$M4"; then |
5213506e RW |
10431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10432 | $as_echo "$M4" >&6; } | |
2abefe3d | 10433 | else |
5213506e RW |
10434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10435 | $as_echo "no" >&6; } | |
2abefe3d PB |
10436 | fi |
10437 | ||
5213506e | 10438 | |
1c710c3c | 10439 | test -n "$M4" && break |
2abefe3d PB |
10440 | done |
10441 | test -n "$M4" || M4="$MISSING m4" | |
10442 | ||
10443 | case " $build_configdirs " in | |
10444 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10445 | esac | |
10446 | ||
10447 | for ac_prog in flex lex | |
10448 | do | |
1c710c3c | 10449 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10450 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10452 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10453 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10454 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10455 | else |
10456 | if test -n "$LEX"; then | |
10457 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10458 | else | |
1c710c3c DJ |
10459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10460 | for as_dir in $PATH | |
10461 | do | |
10462 | IFS=$as_save_IFS | |
10463 | test -z "$as_dir" && as_dir=. | |
5213506e | 10464 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10466 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10468 | break 2 |
10469 | fi | |
10470 | done | |
5213506e RW |
10471 | done |
10472 | IFS=$as_save_IFS | |
1c710c3c | 10473 | |
2abefe3d PB |
10474 | fi |
10475 | fi | |
1c710c3c | 10476 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10477 | if test -n "$LEX"; then |
5213506e RW |
10478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10479 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10480 | else |
5213506e RW |
10481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10482 | $as_echo "no" >&6; } | |
2abefe3d PB |
10483 | fi |
10484 | ||
5213506e | 10485 | |
1c710c3c | 10486 | test -n "$LEX" && break |
2abefe3d PB |
10487 | done |
10488 | test -n "$LEX" || LEX="$MISSING flex" | |
10489 | ||
10490 | case " $build_configdirs " in | |
10491 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10492 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10493 | esac | |
10494 | ||
10495 | for ac_prog in flex | |
10496 | do | |
1c710c3c | 10497 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10498 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10500 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10501 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10502 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10503 | else |
10504 | if test -n "$FLEX"; then | |
10505 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10506 | else | |
1c710c3c DJ |
10507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10508 | for as_dir in $PATH | |
10509 | do | |
10510 | IFS=$as_save_IFS | |
10511 | test -z "$as_dir" && as_dir=. | |
5213506e | 10512 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10514 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10516 | break 2 |
10517 | fi | |
10518 | done | |
5213506e RW |
10519 | done |
10520 | IFS=$as_save_IFS | |
1c710c3c | 10521 | |
2abefe3d PB |
10522 | fi |
10523 | fi | |
1c710c3c | 10524 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10525 | if test -n "$FLEX"; then |
5213506e RW |
10526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10527 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10528 | else |
5213506e RW |
10529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10530 | $as_echo "no" >&6; } | |
2abefe3d PB |
10531 | fi |
10532 | ||
5213506e | 10533 | |
1c710c3c | 10534 | test -n "$FLEX" && break |
2abefe3d PB |
10535 | done |
10536 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10537 | ||
10538 | case " $build_configdirs " in | |
10539 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10540 | esac | |
10541 | ||
10542 | for ac_prog in makeinfo | |
10543 | do | |
1c710c3c | 10544 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10545 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10547 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10548 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10549 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10550 | else |
10551 | if test -n "$MAKEINFO"; then | |
10552 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10553 | else | |
1c710c3c DJ |
10554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10555 | for as_dir in $PATH | |
10556 | do | |
10557 | IFS=$as_save_IFS | |
10558 | test -z "$as_dir" && as_dir=. | |
5213506e | 10559 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10561 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10563 | break 2 |
10564 | fi | |
10565 | done | |
5213506e RW |
10566 | done |
10567 | IFS=$as_save_IFS | |
1c710c3c | 10568 | |
2abefe3d PB |
10569 | fi |
10570 | fi | |
1c710c3c | 10571 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10572 | if test -n "$MAKEINFO"; then |
5213506e RW |
10573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10574 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10575 | else |
5213506e RW |
10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10577 | $as_echo "no" >&6; } | |
2abefe3d PB |
10578 | fi |
10579 | ||
5213506e | 10580 | |
1c710c3c | 10581 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10582 | done |
10583 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10584 | ||
10585 | case " $build_configdirs " in | |
10586 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10587 | *) | |
10588 | ||
d18ff35a | 10589 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10590 | # higher, else we use the "missing" dummy. |
10591 | if ${MAKEINFO} --version \ | |
d18ff35a | 10592 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10593 | : |
10594 | else | |
10595 | MAKEINFO="$MISSING makeinfo" | |
10596 | fi | |
10597 | ;; | |
10598 | ||
10599 | esac | |
671aa708 | 10600 | |
2abefe3d | 10601 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10602 | |
2abefe3d PB |
10603 | for ac_prog in expect |
10604 | do | |
1c710c3c | 10605 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10606 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10608 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10609 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10610 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10611 | else |
10612 | if test -n "$EXPECT"; then | |
10613 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10614 | else | |
1c710c3c DJ |
10615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10616 | for as_dir in $PATH | |
10617 | do | |
10618 | IFS=$as_save_IFS | |
10619 | test -z "$as_dir" && as_dir=. | |
5213506e | 10620 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10622 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10624 | break 2 |
10625 | fi | |
10626 | done | |
5213506e RW |
10627 | done |
10628 | IFS=$as_save_IFS | |
1c710c3c | 10629 | |
2abefe3d PB |
10630 | fi |
10631 | fi | |
1c710c3c | 10632 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10633 | if test -n "$EXPECT"; then |
5213506e RW |
10634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10635 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10636 | else |
5213506e RW |
10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10638 | $as_echo "no" >&6; } | |
2abefe3d | 10639 | fi |
671aa708 | 10640 | |
5213506e | 10641 | |
1c710c3c | 10642 | test -n "$EXPECT" && break |
2abefe3d PB |
10643 | done |
10644 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10645 | |
2abefe3d PB |
10646 | case " $configdirs " in |
10647 | *" expect "*) | |
10648 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10649 | ;; | |
10650 | esac | |
671aa708 | 10651 | |
2abefe3d PB |
10652 | for ac_prog in runtest |
10653 | do | |
1c710c3c | 10654 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10655 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10657 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10658 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10659 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10660 | else |
10661 | if test -n "$RUNTEST"; then | |
10662 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10663 | else |
1c710c3c DJ |
10664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10665 | for as_dir in $PATH | |
10666 | do | |
10667 | IFS=$as_save_IFS | |
10668 | test -z "$as_dir" && as_dir=. | |
5213506e | 10669 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10670 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10671 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10673 | break 2 |
10674 | fi | |
10675 | done | |
5213506e RW |
10676 | done |
10677 | IFS=$as_save_IFS | |
1c710c3c | 10678 | |
2abefe3d PB |
10679 | fi |
10680 | fi | |
1c710c3c | 10681 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10682 | if test -n "$RUNTEST"; then |
5213506e RW |
10683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10684 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10685 | else |
5213506e RW |
10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10687 | $as_echo "no" >&6; } | |
2abefe3d | 10688 | fi |
671aa708 | 10689 | |
5213506e | 10690 | |
1c710c3c | 10691 | test -n "$RUNTEST" && break |
2abefe3d PB |
10692 | done |
10693 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10694 | |
2abefe3d PB |
10695 | case " $configdirs " in |
10696 | *" dejagnu "*) | |
c394e891 | 10697 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10698 | ;; |
10699 | esac | |
671aa708 | 10700 | |
4e3dcf20 | 10701 | |
671aa708 | 10702 | # Host tools. |
ca9f4b81 AO |
10703 | ncn_tool_prefix= |
10704 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10705 | ncn_target_tool_prefix= | |
10706 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10707 | ||
278a7a38 AO |
10708 | |
10709 | ||
10710 | if test -n "$AR"; then | |
10711 | ac_cv_prog_AR=$AR | |
10712 | elif test -n "$ac_cv_prog_AR"; then | |
10713 | AR=$ac_cv_prog_AR | |
10714 | fi | |
10715 | ||
10716 | if test -n "$ac_cv_prog_AR"; then | |
10717 | for ncn_progname in ar; do | |
10718 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10719 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10721 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10722 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10723 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10724 | else |
10725 | if test -n "$AR"; then | |
10726 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10727 | else | |
10728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10729 | for as_dir in $PATH | |
10730 | do | |
10731 | IFS=$as_save_IFS | |
10732 | test -z "$as_dir" && as_dir=. | |
5213506e | 10733 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10735 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10737 | break 2 |
10738 | fi | |
10739 | done | |
5213506e RW |
10740 | done |
10741 | IFS=$as_save_IFS | |
278a7a38 AO |
10742 | |
10743 | fi | |
10744 | fi | |
10745 | AR=$ac_cv_prog_AR | |
10746 | if test -n "$AR"; then | |
5213506e RW |
10747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10748 | $as_echo "$AR" >&6; } | |
278a7a38 | 10749 | else |
5213506e RW |
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10751 | $as_echo "no" >&6; } | |
278a7a38 AO |
10752 | fi |
10753 | ||
5213506e | 10754 | |
278a7a38 AO |
10755 | done |
10756 | fi | |
10757 | ||
10758 | for ncn_progname in ar; do | |
2693c0b0 PB |
10759 | if test -n "$ncn_tool_prefix"; then |
10760 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10761 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10763 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10764 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10765 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10766 | else |
10767 | if test -n "$AR"; then | |
10768 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10769 | else | |
1c710c3c DJ |
10770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10771 | for as_dir in $PATH | |
10772 | do | |
10773 | IFS=$as_save_IFS | |
10774 | test -z "$as_dir" && as_dir=. | |
5213506e | 10775 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10777 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10779 | break 2 |
10780 | fi | |
10781 | done | |
5213506e RW |
10782 | done |
10783 | IFS=$as_save_IFS | |
1c710c3c | 10784 | |
ca9f4b81 AO |
10785 | fi |
10786 | fi | |
1c710c3c | 10787 | AR=$ac_cv_prog_AR |
ca9f4b81 | 10788 | if test -n "$AR"; then |
5213506e RW |
10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10790 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10791 | else |
5213506e RW |
10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10793 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10794 | fi |
10795 | ||
5213506e | 10796 | |
2693c0b0 PB |
10797 | fi |
10798 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10799 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10800 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10802 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10803 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10804 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10805 | else |
2693c0b0 | 10806 | if test -n "$AR"; then |
af71363e AS |
10807 | ac_cv_prog_AR="$AR" # Let the user override the test. |
10808 | else | |
1c710c3c DJ |
10809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10810 | for as_dir in $PATH | |
10811 | do | |
10812 | IFS=$as_save_IFS | |
10813 | test -z "$as_dir" && as_dir=. | |
5213506e | 10814 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10816 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10818 | break 2 |
10819 | fi | |
10820 | done | |
5213506e RW |
10821 | done |
10822 | IFS=$as_save_IFS | |
1c710c3c | 10823 | |
ca9f4b81 AO |
10824 | fi |
10825 | fi | |
1c710c3c | 10826 | AR=$ac_cv_prog_AR |
2693c0b0 | 10827 | if test -n "$AR"; then |
5213506e RW |
10828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10829 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10830 | else |
5213506e RW |
10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10832 | $as_echo "no" >&6; } | |
ca9f4b81 | 10833 | fi |
1c710c3c | 10834 | |
5213506e | 10835 | |
2693c0b0 PB |
10836 | fi |
10837 | test -n "$ac_cv_prog_AR" && break | |
10838 | done | |
10839 | ||
10840 | if test -z "$ac_cv_prog_AR" ; then | |
10841 | set dummy ar | |
10842 | if test $build = $host ; then | |
10843 | AR="$2" | |
ca9f4b81 | 10844 | else |
2693c0b0 | 10845 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 10846 | fi |
ca9f4b81 AO |
10847 | fi |
10848 | ||
278a7a38 AO |
10849 | |
10850 | ||
10851 | if test -n "$AS"; then | |
10852 | ac_cv_prog_AS=$AS | |
10853 | elif test -n "$ac_cv_prog_AS"; then | |
10854 | AS=$ac_cv_prog_AS | |
10855 | fi | |
10856 | ||
10857 | if test -n "$ac_cv_prog_AS"; then | |
10858 | for ncn_progname in as; do | |
10859 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10860 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10862 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10863 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10864 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10865 | else |
10866 | if test -n "$AS"; then | |
10867 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10868 | else | |
10869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10870 | for as_dir in $PATH | |
10871 | do | |
10872 | IFS=$as_save_IFS | |
10873 | test -z "$as_dir" && as_dir=. | |
5213506e | 10874 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10876 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10878 | break 2 |
10879 | fi | |
10880 | done | |
5213506e RW |
10881 | done |
10882 | IFS=$as_save_IFS | |
278a7a38 AO |
10883 | |
10884 | fi | |
10885 | fi | |
10886 | AS=$ac_cv_prog_AS | |
10887 | if test -n "$AS"; then | |
5213506e RW |
10888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10889 | $as_echo "$AS" >&6; } | |
278a7a38 | 10890 | else |
5213506e RW |
10891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10892 | $as_echo "no" >&6; } | |
278a7a38 AO |
10893 | fi |
10894 | ||
5213506e | 10895 | |
278a7a38 AO |
10896 | done |
10897 | fi | |
10898 | ||
10899 | for ncn_progname in as; do | |
2693c0b0 PB |
10900 | if test -n "$ncn_tool_prefix"; then |
10901 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10902 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10904 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10905 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10906 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10907 | else |
10908 | if test -n "$AS"; then | |
10909 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 10910 | else |
1c710c3c DJ |
10911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10912 | for as_dir in $PATH | |
10913 | do | |
10914 | IFS=$as_save_IFS | |
10915 | test -z "$as_dir" && as_dir=. | |
5213506e | 10916 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10917 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10918 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10920 | break 2 |
10921 | fi | |
10922 | done | |
5213506e RW |
10923 | done |
10924 | IFS=$as_save_IFS | |
1c710c3c | 10925 | |
ca9f4b81 AO |
10926 | fi |
10927 | fi | |
1c710c3c | 10928 | AS=$ac_cv_prog_AS |
ca9f4b81 | 10929 | if test -n "$AS"; then |
5213506e RW |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10931 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10932 | else |
5213506e RW |
10933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10934 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10935 | fi |
10936 | ||
5213506e | 10937 | |
2693c0b0 PB |
10938 | fi |
10939 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
10940 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10941 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10943 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10944 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10945 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10946 | else |
2693c0b0 PB |
10947 | if test -n "$AS"; then |
10948 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 10949 | else |
1c710c3c DJ |
10950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10951 | for as_dir in $PATH | |
10952 | do | |
10953 | IFS=$as_save_IFS | |
10954 | test -z "$as_dir" && as_dir=. | |
5213506e | 10955 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10957 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10959 | break 2 |
10960 | fi | |
10961 | done | |
5213506e RW |
10962 | done |
10963 | IFS=$as_save_IFS | |
1c710c3c | 10964 | |
ca9f4b81 AO |
10965 | fi |
10966 | fi | |
1c710c3c | 10967 | AS=$ac_cv_prog_AS |
2693c0b0 | 10968 | if test -n "$AS"; then |
5213506e RW |
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10970 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10971 | else |
5213506e RW |
10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10973 | $as_echo "no" >&6; } | |
ca9f4b81 | 10974 | fi |
1c710c3c | 10975 | |
5213506e | 10976 | |
2693c0b0 PB |
10977 | fi |
10978 | test -n "$ac_cv_prog_AS" && break | |
10979 | done | |
10980 | ||
10981 | if test -z "$ac_cv_prog_AS" ; then | |
10982 | set dummy as | |
10983 | if test $build = $host ; then | |
10984 | AS="$2" | |
ca9f4b81 | 10985 | else |
2693c0b0 | 10986 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 10987 | fi |
ca9f4b81 AO |
10988 | fi |
10989 | ||
278a7a38 AO |
10990 | |
10991 | ||
10992 | if test -n "$DLLTOOL"; then | |
10993 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
10994 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
10995 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10996 | fi | |
10997 | ||
10998 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
10999 | for ncn_progname in dlltool; do | |
11000 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11001 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11003 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11004 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11005 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11006 | else |
11007 | if test -n "$DLLTOOL"; then | |
11008 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11009 | else | |
11010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11011 | for as_dir in $PATH | |
11012 | do | |
11013 | IFS=$as_save_IFS | |
11014 | test -z "$as_dir" && as_dir=. | |
5213506e | 11015 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11016 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11017 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11019 | break 2 |
11020 | fi | |
11021 | done | |
5213506e RW |
11022 | done |
11023 | IFS=$as_save_IFS | |
278a7a38 AO |
11024 | |
11025 | fi | |
11026 | fi | |
11027 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11028 | if test -n "$DLLTOOL"; then | |
5213506e RW |
11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11030 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 11031 | else |
5213506e RW |
11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11033 | $as_echo "no" >&6; } | |
278a7a38 AO |
11034 | fi |
11035 | ||
5213506e | 11036 | |
278a7a38 AO |
11037 | done |
11038 | fi | |
11039 | ||
11040 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
11041 | if test -n "$ncn_tool_prefix"; then |
11042 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11043 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11045 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11046 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11047 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11048 | else |
11049 | if test -n "$DLLTOOL"; then | |
11050 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11051 | else | |
1c710c3c DJ |
11052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11053 | for as_dir in $PATH | |
11054 | do | |
11055 | IFS=$as_save_IFS | |
11056 | test -z "$as_dir" && as_dir=. | |
5213506e | 11057 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11059 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11061 | break 2 |
11062 | fi | |
11063 | done | |
5213506e RW |
11064 | done |
11065 | IFS=$as_save_IFS | |
1c710c3c | 11066 | |
ca9f4b81 AO |
11067 | fi |
11068 | fi | |
1c710c3c | 11069 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 11070 | if test -n "$DLLTOOL"; then |
5213506e RW |
11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11072 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11073 | else |
5213506e RW |
11074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11075 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11076 | fi |
11077 | ||
5213506e | 11078 | |
2693c0b0 PB |
11079 | fi |
11080 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11081 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11082 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11084 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11085 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11086 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11087 | else |
2693c0b0 PB |
11088 | if test -n "$DLLTOOL"; then |
11089 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 11090 | else |
1c710c3c DJ |
11091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11092 | for as_dir in $PATH | |
11093 | do | |
11094 | IFS=$as_save_IFS | |
11095 | test -z "$as_dir" && as_dir=. | |
5213506e | 11096 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11098 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11100 | break 2 |
11101 | fi | |
11102 | done | |
5213506e RW |
11103 | done |
11104 | IFS=$as_save_IFS | |
1c710c3c | 11105 | |
ca9f4b81 AO |
11106 | fi |
11107 | fi | |
1c710c3c | 11108 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 11109 | if test -n "$DLLTOOL"; then |
5213506e RW |
11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11111 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11112 | else |
5213506e RW |
11113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11114 | $as_echo "no" >&6; } | |
ca9f4b81 | 11115 | fi |
1c710c3c | 11116 | |
5213506e | 11117 | |
2693c0b0 PB |
11118 | fi |
11119 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11120 | done | |
11121 | ||
11122 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11123 | set dummy dlltool | |
11124 | if test $build = $host ; then | |
11125 | DLLTOOL="$2" | |
ca9f4b81 | 11126 | else |
2693c0b0 | 11127 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 11128 | fi |
ca9f4b81 AO |
11129 | fi |
11130 | ||
278a7a38 AO |
11131 | |
11132 | ||
3b5e8ee4 IS |
11133 | if test -n "$DSYMUTIL"; then |
11134 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11135 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11136 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11137 | fi | |
11138 | ||
11139 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11140 | for ncn_progname in dsymutil; do | |
11141 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11142 | set dummy ${ncn_progname}; ac_word=$2 | |
11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11144 | $as_echo_n "checking for $ac_word... " >&6; } | |
11145 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11146 | $as_echo_n "(cached) " >&6 | |
11147 | else | |
11148 | if test -n "$DSYMUTIL"; then | |
11149 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11150 | else | |
11151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11152 | for as_dir in $PATH | |
11153 | do | |
11154 | IFS=$as_save_IFS | |
11155 | test -z "$as_dir" && as_dir=. | |
11156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11158 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11160 | break 2 | |
11161 | fi | |
11162 | done | |
11163 | done | |
11164 | IFS=$as_save_IFS | |
11165 | ||
11166 | fi | |
11167 | fi | |
11168 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11169 | if test -n "$DSYMUTIL"; then | |
11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11171 | $as_echo "$DSYMUTIL" >&6; } | |
11172 | else | |
11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11174 | $as_echo "no" >&6; } | |
11175 | fi | |
11176 | ||
11177 | ||
11178 | done | |
11179 | fi | |
11180 | ||
11181 | for ncn_progname in dsymutil; do | |
11182 | if test -n "$ncn_tool_prefix"; then | |
11183 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11184 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11186 | $as_echo_n "checking for $ac_word... " >&6; } | |
11187 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11188 | $as_echo_n "(cached) " >&6 | |
11189 | else | |
11190 | if test -n "$DSYMUTIL"; then | |
11191 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11192 | else | |
11193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11194 | for as_dir in $PATH | |
11195 | do | |
11196 | IFS=$as_save_IFS | |
11197 | test -z "$as_dir" && as_dir=. | |
11198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11199 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11200 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11202 | break 2 | |
11203 | fi | |
11204 | done | |
11205 | done | |
11206 | IFS=$as_save_IFS | |
11207 | ||
11208 | fi | |
11209 | fi | |
11210 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11211 | if test -n "$DSYMUTIL"; then | |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11213 | $as_echo "$DSYMUTIL" >&6; } | |
11214 | else | |
11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11216 | $as_echo "no" >&6; } | |
11217 | fi | |
11218 | ||
11219 | ||
11220 | fi | |
11221 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11222 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11223 | set dummy ${ncn_progname}; ac_word=$2 | |
11224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11225 | $as_echo_n "checking for $ac_word... " >&6; } | |
11226 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11227 | $as_echo_n "(cached) " >&6 | |
11228 | else | |
11229 | if test -n "$DSYMUTIL"; then | |
11230 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11231 | else | |
11232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11233 | for as_dir in $PATH | |
11234 | do | |
11235 | IFS=$as_save_IFS | |
11236 | test -z "$as_dir" && as_dir=. | |
11237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11238 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11239 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11241 | break 2 | |
11242 | fi | |
11243 | done | |
11244 | done | |
11245 | IFS=$as_save_IFS | |
11246 | ||
11247 | fi | |
11248 | fi | |
11249 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11250 | if test -n "$DSYMUTIL"; then | |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11252 | $as_echo "$DSYMUTIL" >&6; } | |
11253 | else | |
11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11255 | $as_echo "no" >&6; } | |
11256 | fi | |
11257 | ||
11258 | ||
11259 | fi | |
11260 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11261 | done | |
11262 | ||
11263 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11264 | set dummy dsymutil | |
11265 | if test $build = $host ; then | |
11266 | DSYMUTIL="$2" | |
11267 | else | |
11268 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11269 | fi | |
11270 | fi | |
11271 | ||
11272 | ||
11273 | ||
278a7a38 AO |
11274 | if test -n "$LD"; then |
11275 | ac_cv_prog_LD=$LD | |
11276 | elif test -n "$ac_cv_prog_LD"; then | |
11277 | LD=$ac_cv_prog_LD | |
11278 | fi | |
11279 | ||
11280 | if test -n "$ac_cv_prog_LD"; then | |
11281 | for ncn_progname in ld; do | |
11282 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11283 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11285 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11286 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11287 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11288 | else |
11289 | if test -n "$LD"; then | |
11290 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11291 | else | |
11292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11293 | for as_dir in $PATH | |
11294 | do | |
11295 | IFS=$as_save_IFS | |
11296 | test -z "$as_dir" && as_dir=. | |
5213506e | 11297 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11299 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11301 | break 2 |
11302 | fi | |
11303 | done | |
5213506e RW |
11304 | done |
11305 | IFS=$as_save_IFS | |
278a7a38 AO |
11306 | |
11307 | fi | |
11308 | fi | |
11309 | LD=$ac_cv_prog_LD | |
11310 | if test -n "$LD"; then | |
5213506e RW |
11311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11312 | $as_echo "$LD" >&6; } | |
278a7a38 | 11313 | else |
5213506e RW |
11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11315 | $as_echo "no" >&6; } | |
278a7a38 AO |
11316 | fi |
11317 | ||
5213506e | 11318 | |
278a7a38 AO |
11319 | done |
11320 | fi | |
11321 | ||
11322 | for ncn_progname in ld; do | |
2693c0b0 PB |
11323 | if test -n "$ncn_tool_prefix"; then |
11324 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11325 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11327 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11328 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11329 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11330 | else |
11331 | if test -n "$LD"; then | |
11332 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11333 | else | |
1c710c3c DJ |
11334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11335 | for as_dir in $PATH | |
11336 | do | |
11337 | IFS=$as_save_IFS | |
11338 | test -z "$as_dir" && as_dir=. | |
5213506e | 11339 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11341 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11343 | break 2 |
11344 | fi | |
11345 | done | |
5213506e RW |
11346 | done |
11347 | IFS=$as_save_IFS | |
1c710c3c | 11348 | |
ca9f4b81 AO |
11349 | fi |
11350 | fi | |
1c710c3c | 11351 | LD=$ac_cv_prog_LD |
ca9f4b81 | 11352 | if test -n "$LD"; then |
5213506e RW |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11354 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11355 | else |
5213506e RW |
11356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11357 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11358 | fi |
11359 | ||
5213506e | 11360 | |
2693c0b0 PB |
11361 | fi |
11362 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11363 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11364 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11366 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11367 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11368 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11369 | else |
2693c0b0 PB |
11370 | if test -n "$LD"; then |
11371 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 11372 | else |
1c710c3c DJ |
11373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11374 | for as_dir in $PATH | |
11375 | do | |
11376 | IFS=$as_save_IFS | |
11377 | test -z "$as_dir" && as_dir=. | |
5213506e | 11378 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11380 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11382 | break 2 |
11383 | fi | |
11384 | done | |
5213506e RW |
11385 | done |
11386 | IFS=$as_save_IFS | |
1c710c3c | 11387 | |
ca9f4b81 AO |
11388 | fi |
11389 | fi | |
1c710c3c | 11390 | LD=$ac_cv_prog_LD |
2693c0b0 | 11391 | if test -n "$LD"; then |
5213506e RW |
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11393 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11394 | else |
5213506e RW |
11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11396 | $as_echo "no" >&6; } | |
ca9f4b81 | 11397 | fi |
1c710c3c | 11398 | |
5213506e | 11399 | |
2693c0b0 PB |
11400 | fi |
11401 | test -n "$ac_cv_prog_LD" && break | |
11402 | done | |
11403 | ||
11404 | if test -z "$ac_cv_prog_LD" ; then | |
11405 | set dummy ld | |
11406 | if test $build = $host ; then | |
11407 | LD="$2" | |
ca9f4b81 | 11408 | else |
2693c0b0 | 11409 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11410 | fi |
ca9f4b81 AO |
11411 | fi |
11412 | ||
278a7a38 AO |
11413 | |
11414 | ||
11415 | if test -n "$LIPO"; then | |
11416 | ac_cv_prog_LIPO=$LIPO | |
11417 | elif test -n "$ac_cv_prog_LIPO"; then | |
11418 | LIPO=$ac_cv_prog_LIPO | |
11419 | fi | |
11420 | ||
11421 | if test -n "$ac_cv_prog_LIPO"; then | |
11422 | for ncn_progname in lipo; do | |
11423 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11424 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11426 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11427 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11428 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11429 | else |
11430 | if test -n "$LIPO"; then | |
11431 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11432 | else | |
11433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11434 | for as_dir in $PATH | |
11435 | do | |
11436 | IFS=$as_save_IFS | |
11437 | test -z "$as_dir" && as_dir=. | |
5213506e | 11438 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11439 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11440 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11442 | break 2 |
11443 | fi | |
11444 | done | |
5213506e RW |
11445 | done |
11446 | IFS=$as_save_IFS | |
278a7a38 AO |
11447 | |
11448 | fi | |
11449 | fi | |
11450 | LIPO=$ac_cv_prog_LIPO | |
11451 | if test -n "$LIPO"; then | |
5213506e RW |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11453 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11454 | else |
5213506e RW |
11455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11456 | $as_echo "no" >&6; } | |
278a7a38 AO |
11457 | fi |
11458 | ||
5213506e | 11459 | |
278a7a38 AO |
11460 | done |
11461 | fi | |
11462 | ||
11463 | for ncn_progname in lipo; do | |
2abefe3d PB |
11464 | if test -n "$ncn_tool_prefix"; then |
11465 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11466 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11468 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11469 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11470 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11471 | else |
11472 | if test -n "$LIPO"; then | |
11473 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11474 | else | |
1c710c3c DJ |
11475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11476 | for as_dir in $PATH | |
11477 | do | |
11478 | IFS=$as_save_IFS | |
11479 | test -z "$as_dir" && as_dir=. | |
5213506e | 11480 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11482 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11484 | break 2 |
11485 | fi | |
11486 | done | |
5213506e RW |
11487 | done |
11488 | IFS=$as_save_IFS | |
1c710c3c | 11489 | |
2abefe3d PB |
11490 | fi |
11491 | fi | |
1c710c3c | 11492 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11493 | if test -n "$LIPO"; then |
5213506e RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11495 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11496 | else |
5213506e RW |
11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11498 | $as_echo "no" >&6; } | |
2abefe3d PB |
11499 | fi |
11500 | ||
5213506e | 11501 | |
2abefe3d PB |
11502 | fi |
11503 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11504 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11505 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11507 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11508 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11509 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11510 | else |
11511 | if test -n "$LIPO"; then | |
11512 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11513 | else | |
1c710c3c DJ |
11514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11515 | for as_dir in $PATH | |
11516 | do | |
11517 | IFS=$as_save_IFS | |
11518 | test -z "$as_dir" && as_dir=. | |
5213506e | 11519 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11521 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11523 | break 2 |
11524 | fi | |
11525 | done | |
5213506e RW |
11526 | done |
11527 | IFS=$as_save_IFS | |
1c710c3c | 11528 | |
2abefe3d PB |
11529 | fi |
11530 | fi | |
1c710c3c | 11531 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11532 | if test -n "$LIPO"; then |
5213506e RW |
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11534 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11535 | else |
5213506e RW |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11537 | $as_echo "no" >&6; } | |
2abefe3d | 11538 | fi |
1c710c3c | 11539 | |
5213506e | 11540 | |
2abefe3d PB |
11541 | fi |
11542 | test -n "$ac_cv_prog_LIPO" && break | |
11543 | done | |
11544 | ||
11545 | if test -z "$ac_cv_prog_LIPO" ; then | |
11546 | set dummy lipo | |
11547 | if test $build = $host ; then | |
11548 | LIPO="$2" | |
11549 | else | |
11550 | LIPO="${ncn_tool_prefix}$2" | |
11551 | fi | |
11552 | fi | |
11553 | ||
278a7a38 AO |
11554 | |
11555 | ||
11556 | if test -n "$NM"; then | |
11557 | ac_cv_prog_NM=$NM | |
11558 | elif test -n "$ac_cv_prog_NM"; then | |
11559 | NM=$ac_cv_prog_NM | |
11560 | fi | |
11561 | ||
11562 | if test -n "$ac_cv_prog_NM"; then | |
11563 | for ncn_progname in nm; do | |
11564 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11565 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11567 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11568 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11569 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11570 | else |
11571 | if test -n "$NM"; then | |
11572 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11573 | else | |
1c710c3c DJ |
11574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11575 | for as_dir in $PATH | |
11576 | do | |
11577 | IFS=$as_save_IFS | |
11578 | test -z "$as_dir" && as_dir=. | |
5213506e | 11579 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11581 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11583 | break 2 |
11584 | fi | |
11585 | done | |
5213506e RW |
11586 | done |
11587 | IFS=$as_save_IFS | |
1c710c3c | 11588 | |
ca9f4b81 AO |
11589 | fi |
11590 | fi | |
1c710c3c | 11591 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11592 | if test -n "$NM"; then |
5213506e RW |
11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11594 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11595 | else |
5213506e RW |
11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11597 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11598 | fi |
11599 | ||
5213506e | 11600 | |
278a7a38 AO |
11601 | done |
11602 | fi | |
11603 | ||
11604 | for ncn_progname in nm; do | |
11605 | if test -n "$ncn_tool_prefix"; then | |
11606 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11607 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11609 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11610 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11611 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11612 | else |
2693c0b0 PB |
11613 | if test -n "$NM"; then |
11614 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11615 | else |
1c710c3c DJ |
11616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11617 | for as_dir in $PATH | |
11618 | do | |
11619 | IFS=$as_save_IFS | |
11620 | test -z "$as_dir" && as_dir=. | |
5213506e | 11621 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11623 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11625 | break 2 |
11626 | fi | |
11627 | done | |
5213506e RW |
11628 | done |
11629 | IFS=$as_save_IFS | |
1c710c3c | 11630 | |
ca9f4b81 AO |
11631 | fi |
11632 | fi | |
1c710c3c | 11633 | NM=$ac_cv_prog_NM |
2693c0b0 | 11634 | if test -n "$NM"; then |
5213506e RW |
11635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11636 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11637 | else |
5213506e RW |
11638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11639 | $as_echo "no" >&6; } | |
ca9f4b81 | 11640 | fi |
1c710c3c | 11641 | |
5213506e | 11642 | |
2693c0b0 | 11643 | fi |
278a7a38 AO |
11644 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11645 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11646 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11648 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11649 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11650 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11651 | else |
11652 | if test -n "$NM"; then | |
11653 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11654 | else | |
11655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11656 | for as_dir in $PATH | |
11657 | do | |
11658 | IFS=$as_save_IFS | |
11659 | test -z "$as_dir" && as_dir=. | |
5213506e | 11660 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11662 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11664 | break 2 |
11665 | fi | |
11666 | done | |
5213506e RW |
11667 | done |
11668 | IFS=$as_save_IFS | |
278a7a38 AO |
11669 | |
11670 | fi | |
11671 | fi | |
11672 | NM=$ac_cv_prog_NM | |
11673 | if test -n "$NM"; then | |
5213506e RW |
11674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11675 | $as_echo "$NM" >&6; } | |
278a7a38 | 11676 | else |
5213506e RW |
11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11678 | $as_echo "no" >&6; } | |
278a7a38 AO |
11679 | fi |
11680 | ||
5213506e | 11681 | |
278a7a38 AO |
11682 | fi |
11683 | test -n "$ac_cv_prog_NM" && break | |
11684 | done | |
11685 | ||
11686 | if test -z "$ac_cv_prog_NM" ; then | |
11687 | set dummy nm | |
11688 | if test $build = $host ; then | |
11689 | NM="$2" | |
11690 | else | |
11691 | NM="${ncn_tool_prefix}$2" | |
11692 | fi | |
11693 | fi | |
11694 | ||
11695 | ||
11696 | ||
11697 | if test -n "$RANLIB"; then | |
11698 | ac_cv_prog_RANLIB=$RANLIB | |
11699 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11700 | RANLIB=$ac_cv_prog_RANLIB | |
11701 | fi | |
11702 | ||
11703 | if test -n "$ac_cv_prog_RANLIB"; then | |
11704 | for ncn_progname in ranlib; do | |
11705 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11706 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11708 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11709 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11710 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11711 | else |
11712 | if test -n "$RANLIB"; then | |
11713 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11714 | else | |
11715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11716 | for as_dir in $PATH | |
11717 | do | |
11718 | IFS=$as_save_IFS | |
11719 | test -z "$as_dir" && as_dir=. | |
5213506e | 11720 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11722 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11724 | break 2 |
11725 | fi | |
11726 | done | |
5213506e RW |
11727 | done |
11728 | IFS=$as_save_IFS | |
278a7a38 AO |
11729 | |
11730 | fi | |
11731 | fi | |
11732 | RANLIB=$ac_cv_prog_RANLIB | |
11733 | if test -n "$RANLIB"; then | |
5213506e RW |
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11735 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 11736 | else |
5213506e RW |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11738 | $as_echo "no" >&6; } | |
278a7a38 AO |
11739 | fi |
11740 | ||
5213506e | 11741 | |
278a7a38 AO |
11742 | done |
11743 | fi | |
ca9f4b81 | 11744 | |
278a7a38 | 11745 | for ncn_progname in ranlib; do |
2693c0b0 PB |
11746 | if test -n "$ncn_tool_prefix"; then |
11747 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11748 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11750 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11751 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11752 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11753 | else |
11754 | if test -n "$RANLIB"; then | |
11755 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11756 | else | |
1c710c3c DJ |
11757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11758 | for as_dir in $PATH | |
11759 | do | |
11760 | IFS=$as_save_IFS | |
11761 | test -z "$as_dir" && as_dir=. | |
5213506e | 11762 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11764 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11766 | break 2 |
11767 | fi | |
11768 | done | |
5213506e RW |
11769 | done |
11770 | IFS=$as_save_IFS | |
1c710c3c | 11771 | |
ca9f4b81 AO |
11772 | fi |
11773 | fi | |
1c710c3c | 11774 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 11775 | if test -n "$RANLIB"; then |
5213506e RW |
11776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11777 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11778 | else |
5213506e RW |
11779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11780 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11781 | fi |
11782 | ||
5213506e | 11783 | |
2693c0b0 PB |
11784 | fi |
11785 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11786 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11787 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11789 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11790 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11791 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11792 | else |
2693c0b0 PB |
11793 | if test -n "$RANLIB"; then |
11794 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 11795 | else |
1c710c3c DJ |
11796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11797 | for as_dir in $PATH | |
11798 | do | |
11799 | IFS=$as_save_IFS | |
11800 | test -z "$as_dir" && as_dir=. | |
5213506e | 11801 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11802 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11803 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11805 | break 2 |
11806 | fi | |
11807 | done | |
5213506e RW |
11808 | done |
11809 | IFS=$as_save_IFS | |
1c710c3c | 11810 | |
ca9f4b81 AO |
11811 | fi |
11812 | fi | |
1c710c3c | 11813 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 11814 | if test -n "$RANLIB"; then |
5213506e RW |
11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11816 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11817 | else |
5213506e RW |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11819 | $as_echo "no" >&6; } | |
ca9f4b81 | 11820 | fi |
1c710c3c | 11821 | |
5213506e | 11822 | |
ca9f4b81 | 11823 | fi |
2693c0b0 PB |
11824 | test -n "$ac_cv_prog_RANLIB" && break |
11825 | done | |
11826 | ||
11827 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 11828 | RANLIB="true" |
ca9f4b81 AO |
11829 | fi |
11830 | ||
278a7a38 AO |
11831 | |
11832 | ||
11833 | if test -n "$STRIP"; then | |
11834 | ac_cv_prog_STRIP=$STRIP | |
11835 | elif test -n "$ac_cv_prog_STRIP"; then | |
11836 | STRIP=$ac_cv_prog_STRIP | |
11837 | fi | |
11838 | ||
11839 | if test -n "$ac_cv_prog_STRIP"; then | |
11840 | for ncn_progname in strip; do | |
11841 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11842 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11844 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11845 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11846 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11847 | else |
11848 | if test -n "$STRIP"; then | |
11849 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11850 | else | |
11851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11852 | for as_dir in $PATH | |
11853 | do | |
11854 | IFS=$as_save_IFS | |
11855 | test -z "$as_dir" && as_dir=. | |
5213506e | 11856 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11858 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11860 | break 2 |
11861 | fi | |
11862 | done | |
5213506e RW |
11863 | done |
11864 | IFS=$as_save_IFS | |
278a7a38 AO |
11865 | |
11866 | fi | |
11867 | fi | |
11868 | STRIP=$ac_cv_prog_STRIP | |
11869 | if test -n "$STRIP"; then | |
5213506e RW |
11870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11871 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 11872 | else |
5213506e RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11874 | $as_echo "no" >&6; } | |
278a7a38 AO |
11875 | fi |
11876 | ||
5213506e | 11877 | |
278a7a38 AO |
11878 | done |
11879 | fi | |
11880 | ||
11881 | for ncn_progname in strip; do | |
2abefe3d PB |
11882 | if test -n "$ncn_tool_prefix"; then |
11883 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11884 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11886 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11887 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11888 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11889 | else |
11890 | if test -n "$STRIP"; then | |
11891 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11892 | else | |
1c710c3c DJ |
11893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11894 | for as_dir in $PATH | |
11895 | do | |
11896 | IFS=$as_save_IFS | |
11897 | test -z "$as_dir" && as_dir=. | |
5213506e | 11898 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11900 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11902 | break 2 |
11903 | fi | |
11904 | done | |
5213506e RW |
11905 | done |
11906 | IFS=$as_save_IFS | |
1c710c3c | 11907 | |
2abefe3d PB |
11908 | fi |
11909 | fi | |
1c710c3c | 11910 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11911 | if test -n "$STRIP"; then |
5213506e RW |
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11913 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11914 | else |
5213506e RW |
11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11916 | $as_echo "no" >&6; } | |
2abefe3d PB |
11917 | fi |
11918 | ||
5213506e | 11919 | |
2abefe3d PB |
11920 | fi |
11921 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
11922 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11923 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11925 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11926 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11927 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11928 | else |
11929 | if test -n "$STRIP"; then | |
11930 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11931 | else | |
1c710c3c DJ |
11932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11933 | for as_dir in $PATH | |
11934 | do | |
11935 | IFS=$as_save_IFS | |
11936 | test -z "$as_dir" && as_dir=. | |
5213506e | 11937 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11939 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11941 | break 2 |
11942 | fi | |
11943 | done | |
5213506e RW |
11944 | done |
11945 | IFS=$as_save_IFS | |
1c710c3c | 11946 | |
2abefe3d PB |
11947 | fi |
11948 | fi | |
1c710c3c | 11949 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11950 | if test -n "$STRIP"; then |
5213506e RW |
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11952 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11953 | else |
5213506e RW |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11955 | $as_echo "no" >&6; } | |
2abefe3d | 11956 | fi |
1c710c3c | 11957 | |
5213506e | 11958 | |
2abefe3d PB |
11959 | fi |
11960 | test -n "$ac_cv_prog_STRIP" && break | |
11961 | done | |
11962 | ||
11963 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 11964 | STRIP="true" |
2abefe3d PB |
11965 | fi |
11966 | ||
278a7a38 AO |
11967 | |
11968 | ||
11969 | if test -n "$WINDRES"; then | |
11970 | ac_cv_prog_WINDRES=$WINDRES | |
11971 | elif test -n "$ac_cv_prog_WINDRES"; then | |
11972 | WINDRES=$ac_cv_prog_WINDRES | |
11973 | fi | |
11974 | ||
11975 | if test -n "$ac_cv_prog_WINDRES"; then | |
11976 | for ncn_progname in windres; do | |
11977 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11978 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11980 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11981 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11982 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11983 | else |
11984 | if test -n "$WINDRES"; then | |
11985 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
11986 | else | |
11987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11988 | for as_dir in $PATH | |
11989 | do | |
11990 | IFS=$as_save_IFS | |
11991 | test -z "$as_dir" && as_dir=. | |
5213506e | 11992 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11994 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 11995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11996 | break 2 |
11997 | fi | |
11998 | done | |
5213506e RW |
11999 | done |
12000 | IFS=$as_save_IFS | |
278a7a38 AO |
12001 | |
12002 | fi | |
12003 | fi | |
12004 | WINDRES=$ac_cv_prog_WINDRES | |
12005 | if test -n "$WINDRES"; then | |
5213506e RW |
12006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12007 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 12008 | else |
5213506e RW |
12009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12010 | $as_echo "no" >&6; } | |
278a7a38 AO |
12011 | fi |
12012 | ||
5213506e | 12013 | |
278a7a38 AO |
12014 | done |
12015 | fi | |
12016 | ||
12017 | for ncn_progname in windres; do | |
2693c0b0 PB |
12018 | if test -n "$ncn_tool_prefix"; then |
12019 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12020 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12022 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12023 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12024 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12025 | else |
12026 | if test -n "$WINDRES"; then | |
12027 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12028 | else | |
1c710c3c DJ |
12029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12030 | for as_dir in $PATH | |
12031 | do | |
12032 | IFS=$as_save_IFS | |
12033 | test -z "$as_dir" && as_dir=. | |
5213506e | 12034 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12036 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12038 | break 2 |
12039 | fi | |
12040 | done | |
5213506e RW |
12041 | done |
12042 | IFS=$as_save_IFS | |
1c710c3c | 12043 | |
ca9f4b81 AO |
12044 | fi |
12045 | fi | |
1c710c3c | 12046 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 12047 | if test -n "$WINDRES"; then |
5213506e RW |
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12049 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12050 | else |
5213506e RW |
12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12052 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12053 | fi |
12054 | ||
5213506e | 12055 | |
2693c0b0 PB |
12056 | fi |
12057 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12058 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12059 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12061 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12062 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12063 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12064 | else |
2693c0b0 PB |
12065 | if test -n "$WINDRES"; then |
12066 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 12067 | else |
1c710c3c DJ |
12068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12069 | for as_dir in $PATH | |
12070 | do | |
12071 | IFS=$as_save_IFS | |
12072 | test -z "$as_dir" && as_dir=. | |
5213506e | 12073 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12075 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12077 | break 2 |
12078 | fi | |
12079 | done | |
5213506e RW |
12080 | done |
12081 | IFS=$as_save_IFS | |
1c710c3c | 12082 | |
ca9f4b81 AO |
12083 | fi |
12084 | fi | |
1c710c3c | 12085 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 12086 | if test -n "$WINDRES"; then |
5213506e RW |
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12088 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12089 | else |
5213506e RW |
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12091 | $as_echo "no" >&6; } | |
ca9f4b81 | 12092 | fi |
1c710c3c | 12093 | |
5213506e | 12094 | |
2693c0b0 PB |
12095 | fi |
12096 | test -n "$ac_cv_prog_WINDRES" && break | |
12097 | done | |
12098 | ||
12099 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12100 | set dummy windres | |
12101 | if test $build = $host ; then | |
12102 | WINDRES="$2" | |
ca9f4b81 | 12103 | else |
2693c0b0 | 12104 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 12105 | fi |
ca9f4b81 AO |
12106 | fi |
12107 | ||
278a7a38 AO |
12108 | |
12109 | ||
901119ae KT |
12110 | if test -n "$WINDMC"; then |
12111 | ac_cv_prog_WINDMC=$WINDMC | |
12112 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12113 | WINDMC=$ac_cv_prog_WINDMC | |
12114 | fi | |
12115 | ||
12116 | if test -n "$ac_cv_prog_WINDMC"; then | |
12117 | for ncn_progname in windmc; do | |
12118 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12119 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12121 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12122 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12123 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12124 | else |
12125 | if test -n "$WINDMC"; then | |
12126 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12127 | else | |
12128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12129 | for as_dir in $PATH | |
12130 | do | |
12131 | IFS=$as_save_IFS | |
12132 | test -z "$as_dir" && as_dir=. | |
5213506e | 12133 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12135 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12137 | break 2 |
12138 | fi | |
12139 | done | |
5213506e RW |
12140 | done |
12141 | IFS=$as_save_IFS | |
901119ae KT |
12142 | |
12143 | fi | |
12144 | fi | |
12145 | WINDMC=$ac_cv_prog_WINDMC | |
12146 | if test -n "$WINDMC"; then | |
5213506e RW |
12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12148 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12149 | else |
5213506e RW |
12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12151 | $as_echo "no" >&6; } | |
901119ae KT |
12152 | fi |
12153 | ||
5213506e | 12154 | |
901119ae KT |
12155 | done |
12156 | fi | |
12157 | ||
12158 | for ncn_progname in windmc; do | |
12159 | if test -n "$ncn_tool_prefix"; then | |
12160 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12161 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12163 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12164 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12165 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12166 | else |
12167 | if test -n "$WINDMC"; then | |
12168 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12169 | else | |
12170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12171 | for as_dir in $PATH | |
12172 | do | |
12173 | IFS=$as_save_IFS | |
12174 | test -z "$as_dir" && as_dir=. | |
5213506e | 12175 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12177 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12179 | break 2 |
12180 | fi | |
12181 | done | |
5213506e RW |
12182 | done |
12183 | IFS=$as_save_IFS | |
901119ae KT |
12184 | |
12185 | fi | |
12186 | fi | |
12187 | WINDMC=$ac_cv_prog_WINDMC | |
12188 | if test -n "$WINDMC"; then | |
5213506e RW |
12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12190 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12191 | else |
5213506e RW |
12192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12193 | $as_echo "no" >&6; } | |
901119ae KT |
12194 | fi |
12195 | ||
5213506e | 12196 | |
901119ae KT |
12197 | fi |
12198 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12199 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12200 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12202 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12203 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12204 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12205 | else |
12206 | if test -n "$WINDMC"; then | |
12207 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12208 | else | |
12209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12210 | for as_dir in $PATH | |
12211 | do | |
12212 | IFS=$as_save_IFS | |
12213 | test -z "$as_dir" && as_dir=. | |
5213506e | 12214 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12216 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12218 | break 2 |
12219 | fi | |
12220 | done | |
5213506e RW |
12221 | done |
12222 | IFS=$as_save_IFS | |
901119ae KT |
12223 | |
12224 | fi | |
12225 | fi | |
12226 | WINDMC=$ac_cv_prog_WINDMC | |
12227 | if test -n "$WINDMC"; then | |
5213506e RW |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12229 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12230 | else |
5213506e RW |
12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12232 | $as_echo "no" >&6; } | |
901119ae KT |
12233 | fi |
12234 | ||
5213506e | 12235 | |
901119ae KT |
12236 | fi |
12237 | test -n "$ac_cv_prog_WINDMC" && break | |
12238 | done | |
12239 | ||
12240 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12241 | set dummy windmc | |
12242 | if test $build = $host ; then | |
12243 | WINDMC="$2" | |
12244 | else | |
12245 | WINDMC="${ncn_tool_prefix}$2" | |
12246 | fi | |
12247 | fi | |
12248 | ||
12249 | ||
12250 | ||
278a7a38 AO |
12251 | if test -n "$OBJCOPY"; then |
12252 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12253 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12254 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12255 | fi | |
12256 | ||
12257 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12258 | for ncn_progname in objcopy; do | |
12259 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12260 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12262 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12263 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12264 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12265 | else |
12266 | if test -n "$OBJCOPY"; then | |
12267 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12268 | else | |
12269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12270 | for as_dir in $PATH | |
12271 | do | |
12272 | IFS=$as_save_IFS | |
12273 | test -z "$as_dir" && as_dir=. | |
5213506e | 12274 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12275 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12276 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12278 | break 2 |
12279 | fi | |
12280 | done | |
5213506e RW |
12281 | done |
12282 | IFS=$as_save_IFS | |
278a7a38 AO |
12283 | |
12284 | fi | |
12285 | fi | |
12286 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12287 | if test -n "$OBJCOPY"; then | |
5213506e RW |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12289 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 12290 | else |
5213506e RW |
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12292 | $as_echo "no" >&6; } | |
278a7a38 AO |
12293 | fi |
12294 | ||
5213506e | 12295 | |
278a7a38 AO |
12296 | done |
12297 | fi | |
12298 | ||
12299 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
12300 | if test -n "$ncn_tool_prefix"; then |
12301 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12302 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12304 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12305 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12306 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12307 | else |
12308 | if test -n "$OBJCOPY"; then | |
12309 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12310 | else | |
1c710c3c DJ |
12311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12312 | for as_dir in $PATH | |
12313 | do | |
12314 | IFS=$as_save_IFS | |
12315 | test -z "$as_dir" && as_dir=. | |
5213506e | 12316 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12318 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12320 | break 2 |
12321 | fi | |
12322 | done | |
5213506e RW |
12323 | done |
12324 | IFS=$as_save_IFS | |
1c710c3c | 12325 | |
ca9f4b81 AO |
12326 | fi |
12327 | fi | |
1c710c3c | 12328 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 12329 | if test -n "$OBJCOPY"; then |
5213506e RW |
12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12331 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12332 | else |
5213506e RW |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12334 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12335 | fi |
12336 | ||
5213506e | 12337 | |
2693c0b0 PB |
12338 | fi |
12339 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12340 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12341 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12343 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12344 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12345 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12346 | else |
2693c0b0 PB |
12347 | if test -n "$OBJCOPY"; then |
12348 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 12349 | else |
1c710c3c DJ |
12350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12351 | for as_dir in $PATH | |
12352 | do | |
12353 | IFS=$as_save_IFS | |
12354 | test -z "$as_dir" && as_dir=. | |
5213506e | 12355 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12356 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12357 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12359 | break 2 |
12360 | fi | |
12361 | done | |
5213506e RW |
12362 | done |
12363 | IFS=$as_save_IFS | |
1c710c3c | 12364 | |
ca9f4b81 AO |
12365 | fi |
12366 | fi | |
1c710c3c | 12367 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 12368 | if test -n "$OBJCOPY"; then |
5213506e RW |
12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12370 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12371 | else |
5213506e RW |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12373 | $as_echo "no" >&6; } | |
ca9f4b81 | 12374 | fi |
1c710c3c | 12375 | |
5213506e | 12376 | |
2693c0b0 PB |
12377 | fi |
12378 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12379 | done | |
12380 | ||
12381 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12382 | set dummy objcopy | |
12383 | if test $build = $host ; then | |
12384 | OBJCOPY="$2" | |
ca9f4b81 | 12385 | else |
2693c0b0 | 12386 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12387 | fi |
ca9f4b81 AO |
12388 | fi |
12389 | ||
278a7a38 AO |
12390 | |
12391 | ||
12392 | if test -n "$OBJDUMP"; then | |
12393 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12394 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12395 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12396 | fi | |
12397 | ||
12398 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12399 | for ncn_progname in objdump; do | |
12400 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12401 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12403 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12404 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12405 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12406 | else |
12407 | if test -n "$OBJDUMP"; then | |
12408 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12409 | else | |
12410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12411 | for as_dir in $PATH | |
12412 | do | |
12413 | IFS=$as_save_IFS | |
12414 | test -z "$as_dir" && as_dir=. | |
5213506e | 12415 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12416 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12417 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12418 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12419 | break 2 |
12420 | fi | |
12421 | done | |
5213506e RW |
12422 | done |
12423 | IFS=$as_save_IFS | |
278a7a38 AO |
12424 | |
12425 | fi | |
12426 | fi | |
12427 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12428 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12430 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12431 | else |
5213506e RW |
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12433 | $as_echo "no" >&6; } | |
278a7a38 AO |
12434 | fi |
12435 | ||
5213506e | 12436 | |
278a7a38 AO |
12437 | done |
12438 | fi | |
12439 | ||
12440 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12441 | if test -n "$ncn_tool_prefix"; then |
12442 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12443 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12445 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12446 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12447 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12448 | else |
12449 | if test -n "$OBJDUMP"; then | |
12450 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12451 | else | |
1c710c3c DJ |
12452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12453 | for as_dir in $PATH | |
12454 | do | |
12455 | IFS=$as_save_IFS | |
12456 | test -z "$as_dir" && as_dir=. | |
5213506e | 12457 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12458 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12459 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12461 | break 2 |
12462 | fi | |
12463 | done | |
5213506e RW |
12464 | done |
12465 | IFS=$as_save_IFS | |
1c710c3c | 12466 | |
ca9f4b81 AO |
12467 | fi |
12468 | fi | |
1c710c3c | 12469 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 12470 | if test -n "$OBJDUMP"; then |
5213506e RW |
12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12472 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12473 | else |
5213506e RW |
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12475 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12476 | fi |
12477 | ||
5213506e | 12478 | |
2693c0b0 PB |
12479 | fi |
12480 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12481 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12482 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12484 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12485 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12486 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12487 | else |
2693c0b0 PB |
12488 | if test -n "$OBJDUMP"; then |
12489 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12490 | else |
1c710c3c DJ |
12491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12492 | for as_dir in $PATH | |
12493 | do | |
12494 | IFS=$as_save_IFS | |
12495 | test -z "$as_dir" && as_dir=. | |
5213506e | 12496 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12497 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12498 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12500 | break 2 |
12501 | fi | |
12502 | done | |
5213506e RW |
12503 | done |
12504 | IFS=$as_save_IFS | |
1c710c3c | 12505 | |
ca9f4b81 AO |
12506 | fi |
12507 | fi | |
1c710c3c | 12508 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12509 | if test -n "$OBJDUMP"; then |
5213506e RW |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12511 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12512 | else |
5213506e RW |
12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12514 | $as_echo "no" >&6; } | |
ca9f4b81 | 12515 | fi |
1c710c3c | 12516 | |
5213506e | 12517 | |
2693c0b0 PB |
12518 | fi |
12519 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12520 | done | |
12521 | ||
12522 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12523 | set dummy objdump | |
12524 | if test $build = $host ; then | |
12525 | OBJDUMP="$2" | |
ca9f4b81 | 12526 | else |
2693c0b0 | 12527 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12528 | fi |
ca9f4b81 AO |
12529 | fi |
12530 | ||
671aa708 NN |
12531 | |
12532 | ||
e4a9a572 IS |
12533 | if test -n "$OTOOL"; then |
12534 | ac_cv_prog_OTOOL=$OTOOL | |
12535 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12536 | OTOOL=$ac_cv_prog_OTOOL | |
12537 | fi | |
12538 | ||
12539 | if test -n "$ac_cv_prog_OTOOL"; then | |
12540 | for ncn_progname in otool; do | |
12541 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12542 | set dummy ${ncn_progname}; ac_word=$2 | |
12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12544 | $as_echo_n "checking for $ac_word... " >&6; } | |
12545 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12546 | $as_echo_n "(cached) " >&6 | |
12547 | else | |
12548 | if test -n "$OTOOL"; then | |
12549 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12550 | else | |
12551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12552 | for as_dir in $PATH | |
12553 | do | |
12554 | IFS=$as_save_IFS | |
12555 | test -z "$as_dir" && as_dir=. | |
12556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12558 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12560 | break 2 | |
12561 | fi | |
12562 | done | |
12563 | done | |
12564 | IFS=$as_save_IFS | |
12565 | ||
12566 | fi | |
12567 | fi | |
12568 | OTOOL=$ac_cv_prog_OTOOL | |
12569 | if test -n "$OTOOL"; then | |
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12571 | $as_echo "$OTOOL" >&6; } | |
12572 | else | |
12573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12574 | $as_echo "no" >&6; } | |
12575 | fi | |
12576 | ||
12577 | ||
12578 | done | |
12579 | fi | |
12580 | ||
12581 | for ncn_progname in otool; do | |
12582 | if test -n "$ncn_tool_prefix"; then | |
12583 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12584 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12586 | $as_echo_n "checking for $ac_word... " >&6; } | |
12587 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12588 | $as_echo_n "(cached) " >&6 | |
12589 | else | |
12590 | if test -n "$OTOOL"; then | |
12591 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12592 | else | |
12593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12594 | for as_dir in $PATH | |
12595 | do | |
12596 | IFS=$as_save_IFS | |
12597 | test -z "$as_dir" && as_dir=. | |
12598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12600 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
12601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12602 | break 2 | |
12603 | fi | |
12604 | done | |
12605 | done | |
12606 | IFS=$as_save_IFS | |
12607 | ||
12608 | fi | |
12609 | fi | |
12610 | OTOOL=$ac_cv_prog_OTOOL | |
12611 | if test -n "$OTOOL"; then | |
12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12613 | $as_echo "$OTOOL" >&6; } | |
12614 | else | |
12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12616 | $as_echo "no" >&6; } | |
12617 | fi | |
12618 | ||
12619 | ||
12620 | fi | |
12621 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12622 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12623 | set dummy ${ncn_progname}; ac_word=$2 | |
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12625 | $as_echo_n "checking for $ac_word... " >&6; } | |
12626 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12627 | $as_echo_n "(cached) " >&6 | |
12628 | else | |
12629 | if test -n "$OTOOL"; then | |
12630 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12631 | else | |
12632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12633 | for as_dir in $PATH | |
12634 | do | |
12635 | IFS=$as_save_IFS | |
12636 | test -z "$as_dir" && as_dir=. | |
12637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12639 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12641 | break 2 | |
12642 | fi | |
12643 | done | |
12644 | done | |
12645 | IFS=$as_save_IFS | |
12646 | ||
12647 | fi | |
12648 | fi | |
12649 | OTOOL=$ac_cv_prog_OTOOL | |
12650 | if test -n "$OTOOL"; then | |
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12652 | $as_echo "$OTOOL" >&6; } | |
12653 | else | |
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12655 | $as_echo "no" >&6; } | |
12656 | fi | |
12657 | ||
12658 | ||
12659 | fi | |
12660 | test -n "$ac_cv_prog_OTOOL" && break | |
12661 | done | |
12662 | ||
12663 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12664 | set dummy otool | |
12665 | if test $build = $host ; then | |
12666 | OTOOL="$2" | |
12667 | else | |
12668 | OTOOL="${ncn_tool_prefix}$2" | |
12669 | fi | |
12670 | fi | |
12671 | ||
12672 | ||
12673 | ||
e7a82751 RM |
12674 | if test -n "$READELF"; then |
12675 | ac_cv_prog_READELF=$READELF | |
12676 | elif test -n "$ac_cv_prog_READELF"; then | |
12677 | READELF=$ac_cv_prog_READELF | |
12678 | fi | |
12679 | ||
12680 | if test -n "$ac_cv_prog_READELF"; then | |
12681 | for ncn_progname in readelf; do | |
12682 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12683 | set dummy ${ncn_progname}; ac_word=$2 | |
12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12685 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12686 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12687 | $as_echo_n "(cached) " >&6 |
12688 | else | |
12689 | if test -n "$READELF"; then | |
12690 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12691 | else | |
12692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12693 | for as_dir in $PATH | |
12694 | do | |
12695 | IFS=$as_save_IFS | |
12696 | test -z "$as_dir" && as_dir=. | |
12697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12699 | ac_cv_prog_READELF="${ncn_progname}" |
12700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12701 | break 2 | |
12702 | fi | |
12703 | done | |
12704 | done | |
12705 | IFS=$as_save_IFS | |
12706 | ||
12707 | fi | |
12708 | fi | |
12709 | READELF=$ac_cv_prog_READELF | |
12710 | if test -n "$READELF"; then | |
12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12712 | $as_echo "$READELF" >&6; } | |
12713 | else | |
12714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12715 | $as_echo "no" >&6; } | |
12716 | fi | |
12717 | ||
12718 | ||
12719 | done | |
12720 | fi | |
12721 | ||
12722 | for ncn_progname in readelf; do | |
12723 | if test -n "$ncn_tool_prefix"; then | |
12724 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12725 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12727 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12728 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12729 | $as_echo_n "(cached) " >&6 |
12730 | else | |
12731 | if test -n "$READELF"; then | |
12732 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12733 | else | |
12734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12735 | for as_dir in $PATH | |
12736 | do | |
12737 | IFS=$as_save_IFS | |
12738 | test -z "$as_dir" && as_dir=. | |
12739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12741 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12743 | break 2 | |
12744 | fi | |
12745 | done | |
12746 | done | |
12747 | IFS=$as_save_IFS | |
12748 | ||
12749 | fi | |
12750 | fi | |
12751 | READELF=$ac_cv_prog_READELF | |
12752 | if test -n "$READELF"; then | |
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12754 | $as_echo "$READELF" >&6; } | |
12755 | else | |
12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12757 | $as_echo "no" >&6; } | |
12758 | fi | |
12759 | ||
12760 | ||
12761 | fi | |
12762 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12763 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12764 | set dummy ${ncn_progname}; ac_word=$2 | |
12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12766 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12767 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12768 | $as_echo_n "(cached) " >&6 |
12769 | else | |
12770 | if test -n "$READELF"; then | |
12771 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12772 | else | |
12773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12774 | for as_dir in $PATH | |
12775 | do | |
12776 | IFS=$as_save_IFS | |
12777 | test -z "$as_dir" && as_dir=. | |
12778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12779 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12780 | ac_cv_prog_READELF="${ncn_progname}" |
12781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12782 | break 2 | |
12783 | fi | |
12784 | done | |
12785 | done | |
12786 | IFS=$as_save_IFS | |
12787 | ||
12788 | fi | |
12789 | fi | |
12790 | READELF=$ac_cv_prog_READELF | |
12791 | if test -n "$READELF"; then | |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12793 | $as_echo "$READELF" >&6; } | |
12794 | else | |
12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12796 | $as_echo "no" >&6; } | |
12797 | fi | |
12798 | ||
12799 | ||
12800 | fi | |
12801 | test -n "$ac_cv_prog_READELF" && break | |
12802 | done | |
12803 | ||
12804 | if test -z "$ac_cv_prog_READELF" ; then | |
12805 | set dummy readelf | |
12806 | if test $build = $host ; then | |
12807 | READELF="$2" | |
12808 | else | |
12809 | READELF="${ncn_tool_prefix}$2" | |
12810 | fi | |
12811 | fi | |
12812 | ||
12813 | ||
12814 | ||
671aa708 NN |
12815 | |
12816 | ||
12817 | ||
5fee5ec3 IB |
12818 | |
12819 | ||
2abefe3d | 12820 | # Target tools. |
1c710c3c | 12821 | |
5213506e RW |
12822 | # Check whether --with-build-time-tools was given. |
12823 | if test "${with_build_time_tools+set}" = set; then : | |
12824 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
12825 | x/*) ;; |
12826 | *) | |
12827 | with_build_time_tools= | |
5213506e RW |
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
12829 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
12830 | ;; |
12831 | esac | |
ca9f4b81 | 12832 | else |
e8b05380 | 12833 | with_build_time_tools= |
5213506e RW |
12834 | fi |
12835 | ||
ca9f4b81 | 12836 | |
278a7a38 AO |
12837 | |
12838 | ||
12839 | if test -n "$CC_FOR_TARGET"; then | |
12840 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
12841 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12842 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12843 | fi | |
12844 | ||
12845 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12846 | for ncn_progname in cc gcc; do | |
12847 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12848 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12850 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12851 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12852 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12853 | else |
12854 | if test -n "$CC_FOR_TARGET"; then | |
12855 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12856 | else | |
12857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12858 | for as_dir in $PATH | |
12859 | do | |
12860 | IFS=$as_save_IFS | |
12861 | test -z "$as_dir" && as_dir=. | |
5213506e | 12862 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12864 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12866 | break 2 |
12867 | fi | |
12868 | done | |
5213506e RW |
12869 | done |
12870 | IFS=$as_save_IFS | |
278a7a38 AO |
12871 | |
12872 | fi | |
12873 | fi | |
12874 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12875 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12877 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 12878 | else |
5213506e RW |
12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12880 | $as_echo "no" >&6; } | |
278a7a38 AO |
12881 | fi |
12882 | ||
5213506e | 12883 | |
278a7a38 AO |
12884 | done |
12885 | fi | |
12886 | ||
12887 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12888 | for ncn_progname in cc gcc; do |
5213506e RW |
12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12890 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12891 | if test -x $with_build_time_tools/${ncn_progname}; then |
12892 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12894 | $as_echo "yes" >&6; } | |
72a7ab82 | 12895 | break |
e8b05380 | 12896 | else |
5213506e RW |
12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12898 | $as_echo "no" >&6; } | |
72a7ab82 AP |
12899 | fi |
12900 | done | |
4de997d1 PB |
12901 | fi |
12902 | ||
e8b05380 PB |
12903 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
12904 | for ncn_progname in cc gcc; do | |
12905 | if test -n "$ncn_target_tool_prefix"; then | |
12906 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12907 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12909 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12910 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12911 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
12912 | else |
12913 | if test -n "$CC_FOR_TARGET"; then | |
12914 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12915 | else | |
1c710c3c DJ |
12916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12917 | for as_dir in $PATH | |
12918 | do | |
12919 | IFS=$as_save_IFS | |
12920 | test -z "$as_dir" && as_dir=. | |
5213506e | 12921 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12923 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12925 | break 2 |
12926 | fi | |
12927 | done | |
5213506e RW |
12928 | done |
12929 | IFS=$as_save_IFS | |
1c710c3c | 12930 | |
4de997d1 PB |
12931 | fi |
12932 | fi | |
1c710c3c | 12933 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 12934 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12936 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12937 | else |
5213506e RW |
12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12939 | $as_echo "no" >&6; } | |
4de997d1 PB |
12940 | fi |
12941 | ||
5213506e | 12942 | |
e8b05380 PB |
12943 | fi |
12944 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
12945 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12946 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12948 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12949 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12950 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12951 | else |
2693c0b0 PB |
12952 | if test -n "$CC_FOR_TARGET"; then |
12953 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12954 | else |
1c710c3c DJ |
12955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12956 | for as_dir in $PATH | |
12957 | do | |
12958 | IFS=$as_save_IFS | |
12959 | test -z "$as_dir" && as_dir=. | |
5213506e | 12960 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12962 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12964 | break 2 |
12965 | fi | |
12966 | done | |
5213506e RW |
12967 | done |
12968 | IFS=$as_save_IFS | |
1c710c3c | 12969 | |
4de997d1 PB |
12970 | fi |
12971 | fi | |
1c710c3c | 12972 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 12973 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12975 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12976 | else |
5213506e RW |
12977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12978 | $as_echo "no" >&6; } | |
4de997d1 | 12979 | fi |
1c710c3c | 12980 | |
5213506e | 12981 | |
e8b05380 PB |
12982 | fi |
12983 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
12984 | done | |
12985 | fi | |
1c710c3c | 12986 | |
2693c0b0 PB |
12987 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
12988 | set dummy cc gcc | |
12989 | if test $build = $target ; then | |
12990 | CC_FOR_TARGET="$2" | |
4de997d1 | 12991 | else |
2693c0b0 | 12992 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 12993 | fi |
1c00b503 PB |
12994 | else |
12995 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
12996 | fi |
12997 | ||
278a7a38 AO |
12998 | |
12999 | ||
13000 | if test -n "$CXX_FOR_TARGET"; then | |
13001 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13002 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13003 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13004 | fi | |
13005 | ||
13006 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13007 | for ncn_progname in c++ g++ cxx gxx; do | |
13008 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13009 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13011 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13012 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13013 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13014 | else |
13015 | if test -n "$CXX_FOR_TARGET"; then | |
13016 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13017 | else | |
13018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13019 | for as_dir in $PATH | |
13020 | do | |
13021 | IFS=$as_save_IFS | |
13022 | test -z "$as_dir" && as_dir=. | |
5213506e | 13023 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13025 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13027 | break 2 |
13028 | fi | |
13029 | done | |
5213506e RW |
13030 | done |
13031 | IFS=$as_save_IFS | |
278a7a38 AO |
13032 | |
13033 | fi | |
13034 | fi | |
13035 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13036 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
13037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13038 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 13039 | else |
5213506e RW |
13040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13041 | $as_echo "no" >&6; } | |
278a7a38 AO |
13042 | fi |
13043 | ||
5213506e | 13044 | |
278a7a38 AO |
13045 | done |
13046 | fi | |
13047 | ||
13048 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13049 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13051 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13052 | if test -x $with_build_time_tools/${ncn_progname}; then |
13053 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13055 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13056 | break |
13057 | else | |
5213506e RW |
13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13059 | $as_echo "no" >&6; } | |
e8b05380 PB |
13060 | fi |
13061 | done | |
13062 | fi | |
13063 | ||
13064 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13065 | for ncn_progname in c++ g++ cxx gxx; do | |
13066 | if test -n "$ncn_target_tool_prefix"; then | |
13067 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13068 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13070 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13071 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13072 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13073 | else |
13074 | if test -n "$CXX_FOR_TARGET"; then | |
13075 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13076 | else | |
1c710c3c DJ |
13077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13078 | for as_dir in $PATH | |
13079 | do | |
13080 | IFS=$as_save_IFS | |
13081 | test -z "$as_dir" && as_dir=. | |
5213506e | 13082 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13084 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13086 | break 2 |
13087 | fi | |
13088 | done | |
5213506e RW |
13089 | done |
13090 | IFS=$as_save_IFS | |
1c710c3c | 13091 | |
4de997d1 PB |
13092 | fi |
13093 | fi | |
1c710c3c | 13094 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 13095 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13097 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13098 | else |
5213506e RW |
13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13100 | $as_echo "no" >&6; } | |
4de997d1 PB |
13101 | fi |
13102 | ||
5213506e | 13103 | |
e8b05380 PB |
13104 | fi |
13105 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13106 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13107 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13109 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13110 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13111 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13112 | else |
2693c0b0 PB |
13113 | if test -n "$CXX_FOR_TARGET"; then |
13114 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13115 | else |
1c710c3c DJ |
13116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13117 | for as_dir in $PATH | |
13118 | do | |
13119 | IFS=$as_save_IFS | |
13120 | test -z "$as_dir" && as_dir=. | |
5213506e | 13121 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13122 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13123 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13125 | break 2 |
13126 | fi | |
13127 | done | |
5213506e RW |
13128 | done |
13129 | IFS=$as_save_IFS | |
1c710c3c | 13130 | |
4de997d1 PB |
13131 | fi |
13132 | fi | |
1c710c3c | 13133 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 13134 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13136 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13137 | else |
5213506e RW |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13139 | $as_echo "no" >&6; } | |
4de997d1 | 13140 | fi |
1c710c3c | 13141 | |
5213506e | 13142 | |
e8b05380 PB |
13143 | fi |
13144 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13145 | done | |
13146 | fi | |
1c710c3c | 13147 | |
2693c0b0 PB |
13148 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13149 | set dummy c++ g++ cxx gxx | |
13150 | if test $build = $target ; then | |
13151 | CXX_FOR_TARGET="$2" | |
4de997d1 | 13152 | else |
2693c0b0 | 13153 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13154 | fi |
1c00b503 PB |
13155 | else |
13156 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
13157 | fi |
13158 | ||
278a7a38 AO |
13159 | |
13160 | ||
13161 | if test -n "$GCC_FOR_TARGET"; then | |
13162 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13163 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13164 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13165 | fi | |
13166 | ||
13167 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13168 | for ncn_progname in gcc; do | |
13169 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13170 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13172 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13173 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13174 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13175 | else |
13176 | if test -n "$GCC_FOR_TARGET"; then | |
13177 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13178 | else | |
13179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13180 | for as_dir in $PATH | |
13181 | do | |
13182 | IFS=$as_save_IFS | |
13183 | test -z "$as_dir" && as_dir=. | |
5213506e | 13184 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13185 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13186 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13188 | break 2 |
13189 | fi | |
13190 | done | |
5213506e RW |
13191 | done |
13192 | IFS=$as_save_IFS | |
278a7a38 AO |
13193 | |
13194 | fi | |
13195 | fi | |
13196 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13197 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13199 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 13200 | else |
5213506e RW |
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13202 | $as_echo "no" >&6; } | |
278a7a38 AO |
13203 | fi |
13204 | ||
5213506e | 13205 | |
278a7a38 AO |
13206 | done |
13207 | fi | |
13208 | ||
13209 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13210 | for ncn_progname in gcc; do |
5213506e RW |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13212 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13213 | if test -x $with_build_time_tools/${ncn_progname}; then |
13214 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13216 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13217 | break |
13218 | else | |
5213506e RW |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13220 | $as_echo "no" >&6; } | |
e8b05380 PB |
13221 | fi |
13222 | done | |
13223 | fi | |
13224 | ||
13225 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13226 | for ncn_progname in gcc; do | |
13227 | if test -n "$ncn_target_tool_prefix"; then | |
13228 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13229 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13231 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13232 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13233 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13234 | else |
e8b05380 PB |
13235 | if test -n "$GCC_FOR_TARGET"; then |
13236 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13237 | else |
1c710c3c DJ |
13238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13239 | for as_dir in $PATH | |
13240 | do | |
13241 | IFS=$as_save_IFS | |
13242 | test -z "$as_dir" && as_dir=. | |
5213506e | 13243 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13244 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13245 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13247 | break 2 |
13248 | fi | |
13249 | done | |
5213506e RW |
13250 | done |
13251 | IFS=$as_save_IFS | |
1c710c3c | 13252 | |
ca9f4b81 AO |
13253 | fi |
13254 | fi | |
1c710c3c | 13255 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13256 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13258 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13259 | else |
5213506e RW |
13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13261 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13262 | fi |
13263 | ||
5213506e | 13264 | |
e8b05380 PB |
13265 | fi |
13266 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13267 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13268 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13270 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13271 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13272 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13273 | else |
e8b05380 PB |
13274 | if test -n "$GCC_FOR_TARGET"; then |
13275 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13276 | else |
1c710c3c DJ |
13277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13278 | for as_dir in $PATH | |
13279 | do | |
13280 | IFS=$as_save_IFS | |
13281 | test -z "$as_dir" && as_dir=. | |
5213506e | 13282 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13283 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13284 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13286 | break 2 |
13287 | fi | |
13288 | done | |
5213506e RW |
13289 | done |
13290 | IFS=$as_save_IFS | |
1c710c3c | 13291 | |
ca9f4b81 AO |
13292 | fi |
13293 | fi | |
1c710c3c | 13294 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13295 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13297 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13298 | else |
5213506e RW |
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13300 | $as_echo "no" >&6; } | |
ca9f4b81 | 13301 | fi |
1c710c3c | 13302 | |
5213506e | 13303 | |
e8b05380 PB |
13304 | fi |
13305 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13306 | done | |
13307 | fi | |
1c710c3c | 13308 | |
e8b05380 PB |
13309 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13310 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
13311 | else |
13312 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
13313 | fi |
13314 | ||
278a7a38 AO |
13315 | |
13316 | ||
278a7a38 AO |
13317 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13318 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13319 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13320 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
13321 | fi |
13322 | ||
278a7a38 AO |
13323 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13324 | for ncn_progname in gfortran; do | |
13325 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 13326 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13328 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13329 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13330 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13331 | else |
278a7a38 AO |
13332 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13333 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 13334 | else |
1c710c3c DJ |
13335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13336 | for as_dir in $PATH | |
13337 | do | |
13338 | IFS=$as_save_IFS | |
13339 | test -z "$as_dir" && as_dir=. | |
5213506e | 13340 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13342 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13344 | break 2 |
13345 | fi | |
13346 | done | |
5213506e RW |
13347 | done |
13348 | IFS=$as_save_IFS | |
1c710c3c | 13349 | |
e8b05380 PB |
13350 | fi |
13351 | fi | |
278a7a38 AO |
13352 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13353 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13355 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13356 | else |
5213506e RW |
13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13358 | $as_echo "no" >&6; } | |
e8b05380 | 13359 | fi |
1c710c3c | 13360 | |
5213506e | 13361 | |
e8b05380 PB |
13362 | done |
13363 | fi | |
1c710c3c | 13364 | |
278a7a38 | 13365 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 13366 | for ncn_progname in gfortran; do |
5213506e RW |
13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13368 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13369 | if test -x $with_build_time_tools/${ncn_progname}; then |
13370 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13372 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13373 | break |
13374 | else | |
5213506e RW |
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13376 | $as_echo "no" >&6; } | |
e8b05380 PB |
13377 | fi |
13378 | done | |
13379 | fi | |
13380 | ||
13381 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13382 | for ncn_progname in gfortran; do | |
13383 | if test -n "$ncn_target_tool_prefix"; then | |
13384 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13385 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13387 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13388 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13389 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13390 | else |
13391 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13392 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13393 | else | |
13394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13395 | for as_dir in $PATH | |
13396 | do | |
13397 | IFS=$as_save_IFS | |
13398 | test -z "$as_dir" && as_dir=. | |
5213506e | 13399 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13401 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13403 | break 2 |
13404 | fi | |
13405 | done | |
5213506e RW |
13406 | done |
13407 | IFS=$as_save_IFS | |
1c710c3c | 13408 | |
e8b05380 PB |
13409 | fi |
13410 | fi | |
1c710c3c | 13411 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13412 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13414 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13415 | else |
5213506e RW |
13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13417 | $as_echo "no" >&6; } | |
e8b05380 PB |
13418 | fi |
13419 | ||
5213506e | 13420 | |
e8b05380 PB |
13421 | fi |
13422 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13423 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13424 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13426 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13427 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13428 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13429 | else |
13430 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13431 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13432 | else | |
1c710c3c DJ |
13433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13434 | for as_dir in $PATH | |
13435 | do | |
13436 | IFS=$as_save_IFS | |
13437 | test -z "$as_dir" && as_dir=. | |
5213506e | 13438 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13439 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13440 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13442 | break 2 |
13443 | fi | |
13444 | done | |
5213506e RW |
13445 | done |
13446 | IFS=$as_save_IFS | |
1c710c3c | 13447 | |
e8b05380 PB |
13448 | fi |
13449 | fi | |
1c710c3c | 13450 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13451 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13453 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13454 | else |
5213506e RW |
13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13456 | $as_echo "no" >&6; } | |
e8b05380 | 13457 | fi |
1c710c3c | 13458 | |
5213506e | 13459 | |
e8b05380 PB |
13460 | fi |
13461 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13462 | done | |
13463 | fi | |
1c710c3c | 13464 | |
e8b05380 PB |
13465 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13466 | set dummy gfortran | |
2693c0b0 | 13467 | if test $build = $target ; then |
e8b05380 | 13468 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13469 | else |
e8b05380 PB |
13470 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13471 | fi | |
1c00b503 PB |
13472 | else |
13473 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13474 | fi |
13475 | ||
13476 | ||
13477 | ||
632e2a07 ILT |
13478 | if test -n "$GOC_FOR_TARGET"; then |
13479 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13480 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13481 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13482 | fi | |
13483 | ||
13484 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13485 | for ncn_progname in gccgo; do | |
13486 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13487 | set dummy ${ncn_progname}; ac_word=$2 | |
13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13489 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13490 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13491 | $as_echo_n "(cached) " >&6 |
13492 | else | |
13493 | if test -n "$GOC_FOR_TARGET"; then | |
13494 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13495 | else | |
13496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13497 | for as_dir in $PATH | |
13498 | do | |
13499 | IFS=$as_save_IFS | |
13500 | test -z "$as_dir" && as_dir=. | |
13501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13502 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13503 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13505 | break 2 | |
13506 | fi | |
13507 | done | |
13508 | done | |
13509 | IFS=$as_save_IFS | |
13510 | ||
13511 | fi | |
13512 | fi | |
13513 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13514 | if test -n "$GOC_FOR_TARGET"; then | |
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13516 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13517 | else | |
13518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13519 | $as_echo "no" >&6; } | |
13520 | fi | |
13521 | ||
13522 | ||
13523 | done | |
13524 | fi | |
13525 | ||
13526 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13527 | for ncn_progname in gccgo; do | |
13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13529 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13530 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13531 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13533 | $as_echo "yes" >&6; } | |
13534 | break | |
13535 | else | |
13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13537 | $as_echo "no" >&6; } | |
13538 | fi | |
13539 | done | |
13540 | fi | |
13541 | ||
13542 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13543 | for ncn_progname in gccgo; do | |
13544 | if test -n "$ncn_target_tool_prefix"; then | |
13545 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13546 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13548 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13549 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13550 | $as_echo_n "(cached) " >&6 |
13551 | else | |
13552 | if test -n "$GOC_FOR_TARGET"; then | |
13553 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13554 | else | |
13555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13556 | for as_dir in $PATH | |
13557 | do | |
13558 | IFS=$as_save_IFS | |
13559 | test -z "$as_dir" && as_dir=. | |
13560 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13562 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13564 | break 2 | |
13565 | fi | |
13566 | done | |
13567 | done | |
13568 | IFS=$as_save_IFS | |
13569 | ||
13570 | fi | |
13571 | fi | |
13572 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13573 | if test -n "$GOC_FOR_TARGET"; then | |
13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13575 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13576 | else | |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13578 | $as_echo "no" >&6; } | |
13579 | fi | |
13580 | ||
13581 | ||
13582 | fi | |
13583 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13584 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13585 | set dummy ${ncn_progname}; ac_word=$2 | |
13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13587 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13588 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13589 | $as_echo_n "(cached) " >&6 |
13590 | else | |
13591 | if test -n "$GOC_FOR_TARGET"; then | |
13592 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13593 | else | |
13594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13595 | for as_dir in $PATH | |
13596 | do | |
13597 | IFS=$as_save_IFS | |
13598 | test -z "$as_dir" && as_dir=. | |
13599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13601 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13603 | break 2 | |
13604 | fi | |
13605 | done | |
13606 | done | |
13607 | IFS=$as_save_IFS | |
13608 | ||
13609 | fi | |
13610 | fi | |
13611 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13612 | if test -n "$GOC_FOR_TARGET"; then | |
13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13614 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13615 | else | |
13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13617 | $as_echo "no" >&6; } | |
13618 | fi | |
13619 | ||
13620 | ||
13621 | fi | |
13622 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
13623 | done | |
13624 | fi | |
13625 | ||
13626 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
13627 | set dummy gccgo | |
13628 | if test $build = $target ; then | |
13629 | GOC_FOR_TARGET="$2" | |
13630 | else | |
13631 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13632 | fi | |
13633 | else | |
13634 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
13635 | fi | |
13636 | ||
13637 | ||
13638 | ||
b4c522fa IB |
13639 | if test -n "$GDC_FOR_TARGET"; then |
13640 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13641 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13642 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13643 | fi | |
13644 | ||
13645 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13646 | for ncn_progname in gdc; do | |
13647 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13648 | set dummy ${ncn_progname}; ac_word=$2 | |
13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13650 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13651 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13652 | $as_echo_n "(cached) " >&6 |
13653 | else | |
13654 | if test -n "$GDC_FOR_TARGET"; then | |
13655 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13656 | else | |
13657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13658 | for as_dir in $PATH | |
13659 | do | |
13660 | IFS=$as_save_IFS | |
13661 | test -z "$as_dir" && as_dir=. | |
13662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13664 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13666 | break 2 | |
13667 | fi | |
13668 | done | |
13669 | done | |
13670 | IFS=$as_save_IFS | |
13671 | ||
13672 | fi | |
13673 | fi | |
13674 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13675 | if test -n "$GDC_FOR_TARGET"; then | |
13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13677 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13678 | else | |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13680 | $as_echo "no" >&6; } | |
13681 | fi | |
13682 | ||
13683 | ||
13684 | done | |
13685 | fi | |
13686 | ||
13687 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13688 | for ncn_progname in gdc; do | |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13690 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13691 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13692 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13694 | $as_echo "yes" >&6; } | |
13695 | break | |
13696 | else | |
13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13698 | $as_echo "no" >&6; } | |
13699 | fi | |
13700 | done | |
13701 | fi | |
13702 | ||
13703 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13704 | for ncn_progname in gdc; do | |
13705 | if test -n "$ncn_target_tool_prefix"; then | |
13706 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13707 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13709 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13710 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13711 | $as_echo_n "(cached) " >&6 |
13712 | else | |
13713 | if test -n "$GDC_FOR_TARGET"; then | |
13714 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13715 | else | |
13716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13717 | for as_dir in $PATH | |
13718 | do | |
13719 | IFS=$as_save_IFS | |
13720 | test -z "$as_dir" && as_dir=. | |
13721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13723 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13725 | break 2 | |
13726 | fi | |
13727 | done | |
13728 | done | |
13729 | IFS=$as_save_IFS | |
13730 | ||
13731 | fi | |
13732 | fi | |
13733 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13734 | if test -n "$GDC_FOR_TARGET"; then | |
13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13736 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13737 | else | |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13739 | $as_echo "no" >&6; } | |
13740 | fi | |
13741 | ||
13742 | ||
13743 | fi | |
13744 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
13745 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13746 | set dummy ${ncn_progname}; ac_word=$2 | |
13747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13748 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13749 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13750 | $as_echo_n "(cached) " >&6 |
13751 | else | |
13752 | if test -n "$GDC_FOR_TARGET"; then | |
13753 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13754 | else | |
13755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13756 | for as_dir in $PATH | |
13757 | do | |
13758 | IFS=$as_save_IFS | |
13759 | test -z "$as_dir" && as_dir=. | |
13760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13762 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13764 | break 2 | |
13765 | fi | |
13766 | done | |
13767 | done | |
13768 | IFS=$as_save_IFS | |
13769 | ||
13770 | fi | |
13771 | fi | |
13772 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13773 | if test -n "$GDC_FOR_TARGET"; then | |
13774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13775 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13776 | else | |
13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13778 | $as_echo "no" >&6; } | |
13779 | fi | |
13780 | ||
13781 | ||
13782 | fi | |
13783 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
13784 | done | |
13785 | fi | |
13786 | ||
13787 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
13788 | set dummy gdc | |
13789 | if test $build = $target ; then | |
13790 | GDC_FOR_TARGET="$2" | |
13791 | else | |
13792 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13793 | fi | |
13794 | else | |
13795 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
13796 | fi | |
13797 | ||
13798 | ||
13799 | ||
e8b05380 PB |
13800 | cat > conftest.c << \EOF |
13801 | #ifdef __GNUC__ | |
13802 | gcc_yay; | |
13803 | #endif | |
13804 | EOF | |
13805 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
13806 | have_gcc_for_target=yes | |
13807 | else | |
13808 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
13809 | have_gcc_for_target=no | |
13810 | fi | |
13811 | rm conftest.c | |
13812 | ||
13813 | ||
13814 | ||
13815 | ||
13816 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
13817 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
13819 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13820 | if test -x $with_build_time_tools/ar; then |
13821 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
13822 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
13824 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 13825 | else |
5213506e RW |
13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13827 | $as_echo "no" >&6; } | |
d1f8db0c | 13828 | fi |
e8b05380 PB |
13829 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13830 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
13831 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
13832 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
13833 | fi |
13834 | fi | |
3e19841a | 13835 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13836 | # Extract the first word of "ar", so it can be a program name with args. |
13837 | set dummy ar; ac_word=$2 | |
5213506e RW |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13839 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13840 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 13841 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13842 | else |
1c710c3c DJ |
13843 | case $AR_FOR_TARGET in |
13844 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13845 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
13846 | ;; | |
e8b05380 | 13847 | *) |
1c710c3c DJ |
13848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13849 | for as_dir in $gcc_cv_tool_dirs | |
13850 | do | |
13851 | IFS=$as_save_IFS | |
13852 | test -z "$as_dir" && as_dir=. | |
5213506e | 13853 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13855 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13857 | break 2 |
13858 | fi | |
13859 | done | |
5213506e RW |
13860 | done |
13861 | IFS=$as_save_IFS | |
1c710c3c | 13862 | |
e8b05380 PB |
13863 | ;; |
13864 | esac | |
13865 | fi | |
1c710c3c | 13866 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 13867 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13869 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13870 | else |
5213506e RW |
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13872 | $as_echo "no" >&6; } | |
4de997d1 PB |
13873 | fi |
13874 | ||
5213506e | 13875 | |
e8b05380 PB |
13876 | fi |
13877 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
13878 | |
13879 | ||
13880 | if test -n "$AR_FOR_TARGET"; then | |
13881 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
13882 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13883 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13884 | fi | |
13885 | ||
13886 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13887 | for ncn_progname in ar; do | |
13888 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13889 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13891 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13892 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13893 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13894 | else |
13895 | if test -n "$AR_FOR_TARGET"; then | |
13896 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13897 | else | |
13898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13899 | for as_dir in $PATH | |
13900 | do | |
13901 | IFS=$as_save_IFS | |
13902 | test -z "$as_dir" && as_dir=. | |
5213506e | 13903 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13904 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13905 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13907 | break 2 |
13908 | fi | |
13909 | done | |
5213506e RW |
13910 | done |
13911 | IFS=$as_save_IFS | |
278a7a38 AO |
13912 | |
13913 | fi | |
13914 | fi | |
13915 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13916 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13918 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 13919 | else |
5213506e RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13921 | $as_echo "no" >&6; } | |
278a7a38 AO |
13922 | fi |
13923 | ||
5213506e | 13924 | |
278a7a38 AO |
13925 | done |
13926 | fi | |
13927 | ||
13928 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13929 | for ncn_progname in ar; do |
5213506e RW |
13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13931 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13932 | if test -x $with_build_time_tools/${ncn_progname}; then |
13933 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13935 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13936 | break |
13937 | else | |
5213506e RW |
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13939 | $as_echo "no" >&6; } | |
e8b05380 PB |
13940 | fi |
13941 | done | |
13942 | fi | |
13943 | ||
13944 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
13945 | for ncn_progname in ar; do | |
13946 | if test -n "$ncn_target_tool_prefix"; then | |
13947 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13948 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13950 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13951 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13952 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13953 | else |
e8b05380 PB |
13954 | if test -n "$AR_FOR_TARGET"; then |
13955 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13956 | else |
1c710c3c DJ |
13957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13958 | for as_dir in $PATH | |
13959 | do | |
13960 | IFS=$as_save_IFS | |
13961 | test -z "$as_dir" && as_dir=. | |
5213506e | 13962 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13964 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13966 | break 2 |
13967 | fi | |
13968 | done | |
5213506e RW |
13969 | done |
13970 | IFS=$as_save_IFS | |
1c710c3c | 13971 | |
4de997d1 PB |
13972 | fi |
13973 | fi | |
1c710c3c | 13974 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13975 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13977 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 13978 | else |
5213506e RW |
13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13980 | $as_echo "no" >&6; } | |
4de997d1 PB |
13981 | fi |
13982 | ||
5213506e | 13983 | |
e8b05380 PB |
13984 | fi |
13985 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
13986 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13987 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13989 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13990 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13991 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13992 | else |
13993 | if test -n "$AR_FOR_TARGET"; then | |
13994 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13995 | else | |
1c710c3c DJ |
13996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13997 | for as_dir in $PATH | |
13998 | do | |
13999 | IFS=$as_save_IFS | |
14000 | test -z "$as_dir" && as_dir=. | |
5213506e | 14001 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14003 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 14004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14005 | break 2 |
14006 | fi | |
14007 | done | |
5213506e RW |
14008 | done |
14009 | IFS=$as_save_IFS | |
1c710c3c | 14010 | |
e8b05380 PB |
14011 | fi |
14012 | fi | |
1c710c3c | 14013 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14014 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14016 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 14017 | else |
5213506e RW |
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14019 | $as_echo "no" >&6; } | |
e8b05380 | 14020 | fi |
1c710c3c | 14021 | |
5213506e | 14022 | |
e8b05380 PB |
14023 | fi |
14024 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14025 | done | |
14026 | fi | |
1c710c3c | 14027 | |
e8b05380 PB |
14028 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14029 | set dummy ar | |
14030 | if test $build = $target ; then | |
14031 | AR_FOR_TARGET="$2" | |
14032 | else | |
14033 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 14034 | fi |
1c00b503 PB |
14035 | else |
14036 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
14037 | fi |
14038 | ||
d1f8db0c PB |
14039 | else |
14040 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
14041 | fi |
14042 | ||
14043 | ||
14044 | ||
14045 | ||
14046 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14047 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14049 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14050 | if test -x $with_build_time_tools/as; then |
14051 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14052 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
14053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14054 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 14055 | else |
5213506e RW |
14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14057 | $as_echo "no" >&6; } | |
d1f8db0c | 14058 | fi |
e8b05380 PB |
14059 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14060 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
14061 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14062 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
14063 | fi |
14064 | fi | |
3e19841a | 14065 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14066 | # Extract the first word of "as", so it can be a program name with args. |
14067 | set dummy as; ac_word=$2 | |
5213506e RW |
14068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14069 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14070 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 14071 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14072 | else |
1c710c3c DJ |
14073 | case $AS_FOR_TARGET in |
14074 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14075 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14076 | ;; | |
e8b05380 | 14077 | *) |
1c710c3c DJ |
14078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14079 | for as_dir in $gcc_cv_tool_dirs | |
14080 | do | |
14081 | IFS=$as_save_IFS | |
14082 | test -z "$as_dir" && as_dir=. | |
5213506e | 14083 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14084 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14085 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14087 | break 2 |
14088 | fi | |
14089 | done | |
5213506e RW |
14090 | done |
14091 | IFS=$as_save_IFS | |
1c710c3c | 14092 | |
e8b05380 PB |
14093 | ;; |
14094 | esac | |
14095 | fi | |
1c710c3c | 14096 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 14097 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14099 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14100 | else |
5213506e RW |
14101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14102 | $as_echo "no" >&6; } | |
e8b05380 PB |
14103 | fi |
14104 | ||
5213506e | 14105 | |
e8b05380 PB |
14106 | fi |
14107 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
14108 | |
14109 | ||
14110 | if test -n "$AS_FOR_TARGET"; then | |
14111 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14112 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14113 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14114 | fi | |
14115 | ||
14116 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14117 | for ncn_progname in as; do | |
14118 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14119 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14121 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14122 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14123 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14124 | else |
14125 | if test -n "$AS_FOR_TARGET"; then | |
14126 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14127 | else | |
14128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14129 | for as_dir in $PATH | |
14130 | do | |
14131 | IFS=$as_save_IFS | |
14132 | test -z "$as_dir" && as_dir=. | |
5213506e | 14133 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14135 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14137 | break 2 |
14138 | fi | |
14139 | done | |
5213506e RW |
14140 | done |
14141 | IFS=$as_save_IFS | |
278a7a38 AO |
14142 | |
14143 | fi | |
14144 | fi | |
14145 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14146 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
14147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14148 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 14149 | else |
5213506e RW |
14150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14151 | $as_echo "no" >&6; } | |
278a7a38 AO |
14152 | fi |
14153 | ||
5213506e | 14154 | |
278a7a38 AO |
14155 | done |
14156 | fi | |
14157 | ||
14158 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14159 | for ncn_progname in as; do |
5213506e RW |
14160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14161 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14162 | if test -x $with_build_time_tools/${ncn_progname}; then |
14163 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14165 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14166 | break |
14167 | else | |
5213506e RW |
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14169 | $as_echo "no" >&6; } | |
e8b05380 PB |
14170 | fi |
14171 | done | |
14172 | fi | |
14173 | ||
14174 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14175 | for ncn_progname in as; do | |
14176 | if test -n "$ncn_target_tool_prefix"; then | |
14177 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14178 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14180 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14181 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14182 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14183 | else |
14184 | if test -n "$AS_FOR_TARGET"; then | |
14185 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14186 | else | |
1c710c3c DJ |
14187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14188 | for as_dir in $PATH | |
14189 | do | |
14190 | IFS=$as_save_IFS | |
14191 | test -z "$as_dir" && as_dir=. | |
5213506e | 14192 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14193 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14194 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14196 | break 2 |
14197 | fi | |
14198 | done | |
5213506e RW |
14199 | done |
14200 | IFS=$as_save_IFS | |
1c710c3c | 14201 | |
e8b05380 PB |
14202 | fi |
14203 | fi | |
1c710c3c | 14204 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14205 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14207 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14208 | else |
5213506e RW |
14209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14210 | $as_echo "no" >&6; } | |
e8b05380 PB |
14211 | fi |
14212 | ||
5213506e | 14213 | |
e8b05380 PB |
14214 | fi |
14215 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14216 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14217 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14219 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14220 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14221 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14222 | else |
e8b05380 PB |
14223 | if test -n "$AS_FOR_TARGET"; then |
14224 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14225 | else |
1c710c3c DJ |
14226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14227 | for as_dir in $PATH | |
14228 | do | |
14229 | IFS=$as_save_IFS | |
14230 | test -z "$as_dir" && as_dir=. | |
5213506e | 14231 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14233 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14235 | break 2 |
14236 | fi | |
14237 | done | |
5213506e RW |
14238 | done |
14239 | IFS=$as_save_IFS | |
1c710c3c | 14240 | |
4de997d1 PB |
14241 | fi |
14242 | fi | |
1c710c3c | 14243 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14244 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14246 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 14247 | else |
5213506e RW |
14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14249 | $as_echo "no" >&6; } | |
4de997d1 | 14250 | fi |
1c710c3c | 14251 | |
5213506e | 14252 | |
e8b05380 PB |
14253 | fi |
14254 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14255 | done | |
14256 | fi | |
1c710c3c | 14257 | |
e8b05380 PB |
14258 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14259 | set dummy as | |
14260 | if test $build = $target ; then | |
14261 | AS_FOR_TARGET="$2" | |
14262 | else | |
14263 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 14264 | fi |
1c00b503 PB |
14265 | else |
14266 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 14267 | fi |
2693c0b0 | 14268 | |
d1f8db0c PB |
14269 | else |
14270 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
14271 | fi |
14272 | ||
e8b05380 PB |
14273 | |
14274 | ||
14275 | ||
14276 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14277 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14279 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14280 | if test -x $with_build_time_tools/dlltool; then |
14281 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14282 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14284 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 14285 | else |
5213506e RW |
14286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14287 | $as_echo "no" >&6; } | |
d1f8db0c | 14288 | fi |
e8b05380 PB |
14289 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14290 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
14291 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14292 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14293 | fi |
14294 | fi | |
3e19841a | 14295 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14296 | # Extract the first word of "dlltool", so it can be a program name with args. |
14297 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14299 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14300 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14301 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14302 | else |
1c710c3c DJ |
14303 | case $DLLTOOL_FOR_TARGET in |
14304 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14305 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14306 | ;; | |
e8b05380 | 14307 | *) |
1c710c3c DJ |
14308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14309 | for as_dir in $gcc_cv_tool_dirs | |
14310 | do | |
14311 | IFS=$as_save_IFS | |
14312 | test -z "$as_dir" && as_dir=. | |
5213506e | 14313 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14315 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14317 | break 2 |
14318 | fi | |
14319 | done | |
5213506e RW |
14320 | done |
14321 | IFS=$as_save_IFS | |
1c710c3c | 14322 | |
e8b05380 PB |
14323 | ;; |
14324 | esac | |
4de997d1 | 14325 | fi |
1c710c3c | 14326 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 14327 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14329 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14330 | else |
5213506e RW |
14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14332 | $as_echo "no" >&6; } | |
4de997d1 PB |
14333 | fi |
14334 | ||
5213506e | 14335 | |
e8b05380 PB |
14336 | fi |
14337 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
14338 | |
14339 | ||
14340 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14341 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14342 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14343 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14344 | fi | |
14345 | ||
14346 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14347 | for ncn_progname in dlltool; do | |
14348 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14349 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14351 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14352 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14353 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14354 | else |
14355 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14356 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14357 | else | |
14358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14359 | for as_dir in $PATH | |
14360 | do | |
14361 | IFS=$as_save_IFS | |
14362 | test -z "$as_dir" && as_dir=. | |
5213506e | 14363 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14365 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14367 | break 2 |
14368 | fi | |
14369 | done | |
5213506e RW |
14370 | done |
14371 | IFS=$as_save_IFS | |
278a7a38 AO |
14372 | |
14373 | fi | |
14374 | fi | |
14375 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14376 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14378 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 14379 | else |
5213506e RW |
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14381 | $as_echo "no" >&6; } | |
278a7a38 AO |
14382 | fi |
14383 | ||
5213506e | 14384 | |
278a7a38 AO |
14385 | done |
14386 | fi | |
14387 | ||
14388 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14389 | for ncn_progname in dlltool; do |
5213506e RW |
14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14391 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14392 | if test -x $with_build_time_tools/${ncn_progname}; then |
14393 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14395 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14396 | break |
14397 | else | |
5213506e RW |
14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14399 | $as_echo "no" >&6; } | |
e8b05380 PB |
14400 | fi |
14401 | done | |
14402 | fi | |
14403 | ||
14404 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14405 | for ncn_progname in dlltool; do | |
14406 | if test -n "$ncn_target_tool_prefix"; then | |
14407 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14408 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14410 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14411 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14412 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14413 | else |
e8b05380 PB |
14414 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14415 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14416 | else |
1c710c3c DJ |
14417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14418 | for as_dir in $PATH | |
14419 | do | |
14420 | IFS=$as_save_IFS | |
14421 | test -z "$as_dir" && as_dir=. | |
5213506e | 14422 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14424 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14426 | break 2 |
14427 | fi | |
14428 | done | |
5213506e RW |
14429 | done |
14430 | IFS=$as_save_IFS | |
1c710c3c | 14431 | |
4de997d1 PB |
14432 | fi |
14433 | fi | |
1c710c3c | 14434 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14435 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14437 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14438 | else |
5213506e RW |
14439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14440 | $as_echo "no" >&6; } | |
4de997d1 | 14441 | fi |
4de997d1 | 14442 | |
5213506e | 14443 | |
e8b05380 PB |
14444 | fi |
14445 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14446 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14447 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14449 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14450 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14451 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14452 | else |
e8b05380 PB |
14453 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14454 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14455 | else |
1c710c3c DJ |
14456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14457 | for as_dir in $PATH | |
14458 | do | |
14459 | IFS=$as_save_IFS | |
14460 | test -z "$as_dir" && as_dir=. | |
5213506e | 14461 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14462 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14463 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14465 | break 2 |
14466 | fi | |
14467 | done | |
5213506e RW |
14468 | done |
14469 | IFS=$as_save_IFS | |
1c710c3c | 14470 | |
4de997d1 PB |
14471 | fi |
14472 | fi | |
1c710c3c | 14473 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14474 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14476 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14477 | else |
5213506e RW |
14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14479 | $as_echo "no" >&6; } | |
4de997d1 | 14480 | fi |
1c710c3c | 14481 | |
5213506e | 14482 | |
e8b05380 PB |
14483 | fi |
14484 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
14485 | done | |
14486 | fi | |
1c710c3c | 14487 | |
e8b05380 PB |
14488 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
14489 | set dummy dlltool | |
14490 | if test $build = $target ; then | |
14491 | DLLTOOL_FOR_TARGET="$2" | |
14492 | else | |
14493 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14494 | fi | |
1c00b503 PB |
14495 | else |
14496 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
14497 | fi |
14498 | ||
d1f8db0c PB |
14499 | else |
14500 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14501 | fi |
14502 | ||
4de997d1 | 14503 | |
e8b05380 PB |
14504 | |
14505 | ||
3b5e8ee4 IS |
14506 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
14507 | if test -n "$with_build_time_tools"; then | |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14509 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14510 | if test -x $with_build_time_tools/dsymutil; then | |
14511 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14512 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14514 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14515 | else | |
14516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14517 | $as_echo "no" >&6; } | |
14518 | fi | |
14519 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14520 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14521 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14522 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14523 | fi | |
14524 | fi | |
14525 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14526 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14527 | set dummy dsymutil; ac_word=$2 | |
14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14529 | $as_echo_n "checking for $ac_word... " >&6; } | |
14530 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14531 | $as_echo_n "(cached) " >&6 | |
14532 | else | |
14533 | case $DSYMUTIL_FOR_TARGET in | |
14534 | [\\/]* | ?:[\\/]*) | |
14535 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14536 | ;; | |
14537 | *) | |
14538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14539 | for as_dir in $gcc_cv_tool_dirs | |
14540 | do | |
14541 | IFS=$as_save_IFS | |
14542 | test -z "$as_dir" && as_dir=. | |
14543 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14544 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14545 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14546 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14547 | break 2 | |
14548 | fi | |
14549 | done | |
14550 | done | |
14551 | IFS=$as_save_IFS | |
14552 | ||
14553 | ;; | |
14554 | esac | |
14555 | fi | |
14556 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14557 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14559 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14560 | else | |
14561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14562 | $as_echo "no" >&6; } | |
14563 | fi | |
14564 | ||
14565 | ||
14566 | fi | |
14567 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14568 | ||
14569 | ||
14570 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14571 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14572 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14573 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14574 | fi | |
14575 | ||
14576 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14577 | for ncn_progname in dsymutil; do | |
14578 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14579 | set dummy ${ncn_progname}; ac_word=$2 | |
14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14581 | $as_echo_n "checking for $ac_word... " >&6; } | |
14582 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14583 | $as_echo_n "(cached) " >&6 | |
14584 | else | |
14585 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14586 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14587 | else | |
14588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14589 | for as_dir in $PATH | |
14590 | do | |
14591 | IFS=$as_save_IFS | |
14592 | test -z "$as_dir" && as_dir=. | |
14593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14595 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14597 | break 2 | |
14598 | fi | |
14599 | done | |
14600 | done | |
14601 | IFS=$as_save_IFS | |
14602 | ||
14603 | fi | |
14604 | fi | |
14605 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14606 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14608 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14609 | else | |
14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14611 | $as_echo "no" >&6; } | |
14612 | fi | |
14613 | ||
14614 | ||
14615 | done | |
14616 | fi | |
14617 | ||
14618 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14619 | for ncn_progname in dsymutil; do | |
14620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14621 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14622 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14623 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14625 | $as_echo "yes" >&6; } | |
14626 | break | |
14627 | else | |
14628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14629 | $as_echo "no" >&6; } | |
14630 | fi | |
14631 | done | |
14632 | fi | |
14633 | ||
14634 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14635 | for ncn_progname in dsymutil; do | |
14636 | if test -n "$ncn_target_tool_prefix"; then | |
14637 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14638 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14640 | $as_echo_n "checking for $ac_word... " >&6; } | |
14641 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14642 | $as_echo_n "(cached) " >&6 | |
14643 | else | |
14644 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14645 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14646 | else | |
14647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14648 | for as_dir in $PATH | |
14649 | do | |
14650 | IFS=$as_save_IFS | |
14651 | test -z "$as_dir" && as_dir=. | |
14652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14654 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14656 | break 2 | |
14657 | fi | |
14658 | done | |
14659 | done | |
14660 | IFS=$as_save_IFS | |
14661 | ||
14662 | fi | |
14663 | fi | |
14664 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14665 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14667 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14668 | else | |
14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14670 | $as_echo "no" >&6; } | |
14671 | fi | |
14672 | ||
14673 | ||
14674 | fi | |
14675 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14676 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14677 | set dummy ${ncn_progname}; ac_word=$2 | |
14678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14679 | $as_echo_n "checking for $ac_word... " >&6; } | |
14680 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14681 | $as_echo_n "(cached) " >&6 | |
14682 | else | |
14683 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14684 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14685 | else | |
14686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14687 | for as_dir in $PATH | |
14688 | do | |
14689 | IFS=$as_save_IFS | |
14690 | test -z "$as_dir" && as_dir=. | |
14691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14693 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14695 | break 2 | |
14696 | fi | |
14697 | done | |
14698 | done | |
14699 | IFS=$as_save_IFS | |
14700 | ||
14701 | fi | |
14702 | fi | |
14703 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14704 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14706 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14707 | else | |
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14709 | $as_echo "no" >&6; } | |
14710 | fi | |
14711 | ||
14712 | ||
14713 | fi | |
14714 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
14715 | done | |
14716 | fi | |
14717 | ||
14718 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
14719 | set dummy dsymutil | |
14720 | if test $build = $target ; then | |
14721 | DSYMUTIL_FOR_TARGET="$2" | |
14722 | else | |
14723 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14724 | fi | |
14725 | else | |
14726 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
14727 | fi | |
14728 | ||
14729 | else | |
14730 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14731 | fi | |
14732 | ||
14733 | ||
14734 | ||
14735 | ||
e8b05380 PB |
14736 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
14737 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
14739 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14740 | if test -x $with_build_time_tools/ld; then |
14741 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
14742 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
14743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
14744 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 14745 | else |
5213506e RW |
14746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14747 | $as_echo "no" >&6; } | |
d1f8db0c | 14748 | fi |
e8b05380 PB |
14749 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14750 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
14751 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
14752 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 14753 | fi |
e8b05380 | 14754 | fi |
3e19841a | 14755 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14756 | # Extract the first word of "ld", so it can be a program name with args. |
14757 | set dummy ld; ac_word=$2 | |
5213506e RW |
14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14759 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14760 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 14761 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14762 | else |
1c710c3c DJ |
14763 | case $LD_FOR_TARGET in |
14764 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14765 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
14766 | ;; | |
e8b05380 | 14767 | *) |
1c710c3c DJ |
14768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14769 | for as_dir in $gcc_cv_tool_dirs | |
14770 | do | |
14771 | IFS=$as_save_IFS | |
14772 | test -z "$as_dir" && as_dir=. | |
5213506e | 14773 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14775 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14777 | break 2 |
14778 | fi | |
14779 | done | |
5213506e RW |
14780 | done |
14781 | IFS=$as_save_IFS | |
1c710c3c | 14782 | |
e8b05380 PB |
14783 | ;; |
14784 | esac | |
4de997d1 | 14785 | fi |
1c710c3c | 14786 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 14787 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14789 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 14790 | else |
5213506e RW |
14791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14792 | $as_echo "no" >&6; } | |
4de997d1 | 14793 | fi |
2693c0b0 | 14794 | |
5213506e | 14795 | |
e8b05380 PB |
14796 | fi |
14797 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
14798 | |
14799 | ||
14800 | if test -n "$LD_FOR_TARGET"; then | |
14801 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
14802 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14803 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14804 | fi | |
14805 | ||
14806 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14807 | for ncn_progname in ld; do | |
14808 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14809 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14811 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14812 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14813 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14814 | else |
14815 | if test -n "$LD_FOR_TARGET"; then | |
14816 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
14817 | else | |
14818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14819 | for as_dir in $PATH | |
14820 | do | |
14821 | IFS=$as_save_IFS | |
14822 | test -z "$as_dir" && as_dir=. | |
5213506e | 14823 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14825 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14827 | break 2 |
14828 | fi | |
14829 | done | |
5213506e RW |
14830 | done |
14831 | IFS=$as_save_IFS | |
278a7a38 AO |
14832 | |
14833 | fi | |
14834 | fi | |
14835 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14836 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
14837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14838 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 14839 | else |
5213506e RW |
14840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14841 | $as_echo "no" >&6; } | |
278a7a38 AO |
14842 | fi |
14843 | ||
5213506e | 14844 | |
278a7a38 AO |
14845 | done |
14846 | fi | |
14847 | ||
14848 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14849 | for ncn_progname in ld; do |
5213506e RW |
14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14851 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14852 | if test -x $with_build_time_tools/${ncn_progname}; then |
14853 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14855 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14856 | break |
14857 | else | |
5213506e RW |
14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14859 | $as_echo "no" >&6; } | |
e8b05380 PB |
14860 | fi |
14861 | done | |
ca9f4b81 AO |
14862 | fi |
14863 | ||
e8b05380 PB |
14864 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
14865 | for ncn_progname in ld; do | |
14866 | if test -n "$ncn_target_tool_prefix"; then | |
14867 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14868 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14870 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14871 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14872 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14873 | else |
4de997d1 PB |
14874 | if test -n "$LD_FOR_TARGET"; then |
14875 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14876 | else |
1c710c3c DJ |
14877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14878 | for as_dir in $PATH | |
14879 | do | |
14880 | IFS=$as_save_IFS | |
14881 | test -z "$as_dir" && as_dir=. | |
5213506e | 14882 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14884 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14886 | break 2 |
14887 | fi | |
14888 | done | |
5213506e RW |
14889 | done |
14890 | IFS=$as_save_IFS | |
1c710c3c | 14891 | |
ca9f4b81 AO |
14892 | fi |
14893 | fi | |
1c710c3c | 14894 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 14895 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14897 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14898 | else |
5213506e RW |
14899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14900 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14901 | fi |
14902 | ||
5213506e | 14903 | |
e8b05380 PB |
14904 | fi |
14905 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
14906 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14907 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14909 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14910 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14911 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14912 | else |
2693c0b0 PB |
14913 | if test -n "$LD_FOR_TARGET"; then |
14914 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14915 | else |
1c710c3c DJ |
14916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14917 | for as_dir in $PATH | |
14918 | do | |
14919 | IFS=$as_save_IFS | |
14920 | test -z "$as_dir" && as_dir=. | |
5213506e | 14921 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14923 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14925 | break 2 |
14926 | fi | |
14927 | done | |
5213506e RW |
14928 | done |
14929 | IFS=$as_save_IFS | |
1c710c3c | 14930 | |
ca9f4b81 AO |
14931 | fi |
14932 | fi | |
1c710c3c | 14933 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 14934 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14936 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14937 | else |
5213506e RW |
14938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14939 | $as_echo "no" >&6; } | |
ca9f4b81 | 14940 | fi |
1c710c3c | 14941 | |
5213506e | 14942 | |
e8b05380 PB |
14943 | fi |
14944 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
14945 | done | |
14946 | fi | |
1c710c3c | 14947 | |
2693c0b0 PB |
14948 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
14949 | set dummy ld | |
14950 | if test $build = $target ; then | |
14951 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 14952 | else |
2693c0b0 | 14953 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14954 | fi |
1c00b503 PB |
14955 | else |
14956 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
14957 | fi |
14958 | ||
d1f8db0c PB |
14959 | else |
14960 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
14961 | fi |
14962 | ||
14963 | ||
14964 | ||
14965 | ||
14966 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14967 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
14969 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14970 | if test -x $with_build_time_tools/lipo; then |
14971 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
14972 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
14973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
14974 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 14975 | else |
5213506e RW |
14976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14977 | $as_echo "no" >&6; } | |
d1f8db0c | 14978 | fi |
e8b05380 PB |
14979 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14980 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
14981 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
14982 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
14983 | fi |
14984 | fi | |
278a7a38 AO |
14985 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
14986 | # Extract the first word of "lipo", so it can be a program name with args. | |
14987 | set dummy lipo; ac_word=$2 | |
5213506e RW |
14988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14989 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14990 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14991 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14992 | else |
14993 | case $LIPO_FOR_TARGET in | |
14994 | [\\/]* | ?:[\\/]*) | |
14995 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
14996 | ;; | |
14997 | *) | |
14998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14999 | for as_dir in $gcc_cv_tool_dirs | |
15000 | do | |
15001 | IFS=$as_save_IFS | |
15002 | test -z "$as_dir" && as_dir=. | |
5213506e | 15003 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15005 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15007 | break 2 |
15008 | fi | |
15009 | done | |
5213506e RW |
15010 | done |
15011 | IFS=$as_save_IFS | |
278a7a38 AO |
15012 | |
15013 | ;; | |
15014 | esac | |
15015 | fi | |
15016 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 15017 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15019 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 15020 | else |
5213506e RW |
15021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15022 | $as_echo "no" >&6; } | |
278a7a38 AO |
15023 | fi |
15024 | ||
5213506e | 15025 | |
278a7a38 AO |
15026 | fi |
15027 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15028 | ||
15029 | ||
15030 | if test -n "$LIPO_FOR_TARGET"; then | |
15031 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15032 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15033 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15034 | fi | |
15035 | ||
15036 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15037 | for ncn_progname in lipo; do | |
15038 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15039 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15041 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15042 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15043 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15044 | else |
278a7a38 AO |
15045 | if test -n "$LIPO_FOR_TARGET"; then |
15046 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15047 | else | |
15048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15049 | for as_dir in $PATH | |
1c710c3c DJ |
15050 | do |
15051 | IFS=$as_save_IFS | |
15052 | test -z "$as_dir" && as_dir=. | |
5213506e | 15053 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15055 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15057 | break 2 |
15058 | fi | |
15059 | done | |
5213506e RW |
15060 | done |
15061 | IFS=$as_save_IFS | |
1c710c3c | 15062 | |
e8b05380 | 15063 | fi |
278a7a38 AO |
15064 | fi |
15065 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 15066 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15068 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 15069 | else |
5213506e RW |
15070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15071 | $as_echo "no" >&6; } | |
e8b05380 PB |
15072 | fi |
15073 | ||
5213506e | 15074 | |
278a7a38 | 15075 | done |
e8b05380 | 15076 | fi |
278a7a38 AO |
15077 | |
15078 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15079 | for ncn_progname in lipo; do |
5213506e RW |
15080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15081 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15082 | if test -x $with_build_time_tools/${ncn_progname}; then |
15083 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15085 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15086 | break |
15087 | else | |
5213506e RW |
15088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15089 | $as_echo "no" >&6; } | |
e8b05380 PB |
15090 | fi |
15091 | done | |
15092 | fi | |
15093 | ||
15094 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15095 | for ncn_progname in lipo; do | |
15096 | if test -n "$ncn_target_tool_prefix"; then | |
15097 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15098 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15100 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15101 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15102 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15103 | else |
15104 | if test -n "$LIPO_FOR_TARGET"; then | |
15105 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15106 | else | |
1c710c3c DJ |
15107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15108 | for as_dir in $PATH | |
15109 | do | |
15110 | IFS=$as_save_IFS | |
15111 | test -z "$as_dir" && as_dir=. | |
5213506e | 15112 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15114 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15116 | break 2 |
15117 | fi | |
15118 | done | |
5213506e RW |
15119 | done |
15120 | IFS=$as_save_IFS | |
1c710c3c | 15121 | |
040b1c5a GK |
15122 | fi |
15123 | fi | |
1c710c3c | 15124 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15125 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15127 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15128 | else |
5213506e RW |
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15130 | $as_echo "no" >&6; } | |
040b1c5a GK |
15131 | fi |
15132 | ||
5213506e | 15133 | |
e8b05380 PB |
15134 | fi |
15135 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15136 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15137 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15139 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15140 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15141 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15142 | else |
15143 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
15144 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
15145 | else | |
1c710c3c DJ |
15146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15147 | for as_dir in $PATH | |
15148 | do | |
15149 | IFS=$as_save_IFS | |
15150 | test -z "$as_dir" && as_dir=. | |
5213506e | 15151 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15153 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15155 | break 2 |
15156 | fi | |
15157 | done | |
5213506e RW |
15158 | done |
15159 | IFS=$as_save_IFS | |
1c710c3c | 15160 | |
040b1c5a GK |
15161 | fi |
15162 | fi | |
1c710c3c | 15163 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15164 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15166 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15167 | else |
5213506e RW |
15168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15169 | $as_echo "no" >&6; } | |
040b1c5a | 15170 | fi |
1c710c3c | 15171 | |
5213506e | 15172 | |
e8b05380 PB |
15173 | fi |
15174 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15175 | done | |
15176 | fi | |
1c710c3c | 15177 | |
040b1c5a GK |
15178 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15179 | set dummy lipo | |
15180 | if test $build = $target ; then | |
15181 | LIPO_FOR_TARGET="$2" | |
15182 | else | |
15183 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15184 | fi | |
1c00b503 PB |
15185 | else |
15186 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
15187 | fi |
15188 | ||
d1f8db0c PB |
15189 | else |
15190 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
15191 | fi |
15192 | ||
15193 | ||
15194 | ||
15195 | ||
15196 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15197 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15199 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15200 | if test -x $with_build_time_tools/nm; then |
15201 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15202 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
15203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15204 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 15205 | else |
5213506e RW |
15206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15207 | $as_echo "no" >&6; } | |
d1f8db0c | 15208 | fi |
e8b05380 PB |
15209 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15210 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
15211 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15212 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
15213 | fi |
15214 | fi | |
3e19841a | 15215 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15216 | # Extract the first word of "nm", so it can be a program name with args. |
15217 | set dummy nm; ac_word=$2 | |
5213506e RW |
15218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15219 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15220 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 15221 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15222 | else |
1c710c3c DJ |
15223 | case $NM_FOR_TARGET in |
15224 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15225 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15226 | ;; | |
e8b05380 | 15227 | *) |
1c710c3c DJ |
15228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15229 | for as_dir in $gcc_cv_tool_dirs | |
15230 | do | |
15231 | IFS=$as_save_IFS | |
15232 | test -z "$as_dir" && as_dir=. | |
5213506e | 15233 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15234 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15235 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15237 | break 2 |
15238 | fi | |
15239 | done | |
5213506e RW |
15240 | done |
15241 | IFS=$as_save_IFS | |
1c710c3c | 15242 | |
e8b05380 PB |
15243 | ;; |
15244 | esac | |
15245 | fi | |
1c710c3c | 15246 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 15247 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15249 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 15250 | else |
5213506e RW |
15251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15252 | $as_echo "no" >&6; } | |
e8b05380 PB |
15253 | fi |
15254 | ||
5213506e | 15255 | |
e8b05380 PB |
15256 | fi |
15257 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
15258 | |
15259 | ||
15260 | if test -n "$NM_FOR_TARGET"; then | |
15261 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15262 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15263 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15264 | fi | |
15265 | ||
15266 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15267 | for ncn_progname in nm; do | |
15268 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15269 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15271 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15272 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15273 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15274 | else |
15275 | if test -n "$NM_FOR_TARGET"; then | |
15276 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15277 | else | |
15278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15279 | for as_dir in $PATH | |
15280 | do | |
15281 | IFS=$as_save_IFS | |
15282 | test -z "$as_dir" && as_dir=. | |
5213506e | 15283 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15285 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15287 | break 2 |
15288 | fi | |
15289 | done | |
5213506e RW |
15290 | done |
15291 | IFS=$as_save_IFS | |
278a7a38 AO |
15292 | |
15293 | fi | |
15294 | fi | |
15295 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15296 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
15297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15298 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 15299 | else |
5213506e RW |
15300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15301 | $as_echo "no" >&6; } | |
278a7a38 AO |
15302 | fi |
15303 | ||
5213506e | 15304 | |
278a7a38 AO |
15305 | done |
15306 | fi | |
15307 | ||
15308 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15309 | for ncn_progname in nm; do |
5213506e RW |
15310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15311 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15312 | if test -x $with_build_time_tools/${ncn_progname}; then |
15313 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15315 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15316 | break |
15317 | else | |
5213506e RW |
15318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15319 | $as_echo "no" >&6; } | |
e8b05380 PB |
15320 | fi |
15321 | done | |
15322 | fi | |
15323 | ||
15324 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15325 | for ncn_progname in nm; do | |
15326 | if test -n "$ncn_target_tool_prefix"; then | |
15327 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15328 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15330 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15331 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15332 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15333 | else |
4de997d1 PB |
15334 | if test -n "$NM_FOR_TARGET"; then |
15335 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15336 | else |
1c710c3c DJ |
15337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15338 | for as_dir in $PATH | |
15339 | do | |
15340 | IFS=$as_save_IFS | |
15341 | test -z "$as_dir" && as_dir=. | |
5213506e | 15342 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15343 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15344 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15346 | break 2 |
15347 | fi | |
15348 | done | |
5213506e RW |
15349 | done |
15350 | IFS=$as_save_IFS | |
1c710c3c | 15351 | |
ca9f4b81 AO |
15352 | fi |
15353 | fi | |
1c710c3c | 15354 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 15355 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15357 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15358 | else |
5213506e RW |
15359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15360 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15361 | fi |
15362 | ||
5213506e | 15363 | |
e8b05380 PB |
15364 | fi |
15365 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15366 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15367 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15369 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15370 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15371 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15372 | else |
2693c0b0 PB |
15373 | if test -n "$NM_FOR_TARGET"; then |
15374 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15375 | else |
1c710c3c DJ |
15376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15377 | for as_dir in $PATH | |
15378 | do | |
15379 | IFS=$as_save_IFS | |
15380 | test -z "$as_dir" && as_dir=. | |
5213506e | 15381 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15382 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15383 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15385 | break 2 |
15386 | fi | |
15387 | done | |
5213506e RW |
15388 | done |
15389 | IFS=$as_save_IFS | |
1c710c3c | 15390 | |
ca9f4b81 AO |
15391 | fi |
15392 | fi | |
1c710c3c | 15393 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 15394 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15396 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15397 | else |
5213506e RW |
15398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15399 | $as_echo "no" >&6; } | |
ca9f4b81 | 15400 | fi |
1c710c3c | 15401 | |
5213506e | 15402 | |
e8b05380 PB |
15403 | fi |
15404 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15405 | done | |
15406 | fi | |
1c710c3c | 15407 | |
2693c0b0 PB |
15408 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15409 | set dummy nm | |
15410 | if test $build = $target ; then | |
15411 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 15412 | else |
2693c0b0 | 15413 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15414 | fi |
1c00b503 PB |
15415 | else |
15416 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
15417 | fi |
15418 | ||
d1f8db0c PB |
15419 | else |
15420 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
15421 | fi |
15422 | ||
15423 | ||
15424 | ||
15425 | ||
9bccfdf5 AP |
15426 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15427 | if test -n "$with_build_time_tools"; then | |
15428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15429 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15430 | if test -x $with_build_time_tools/objcopy; then | |
15431 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15432 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15434 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15435 | else | |
15436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15437 | $as_echo "no" >&6; } | |
15438 | fi | |
15439 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15440 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15441 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15442 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15443 | fi | |
15444 | fi | |
15445 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15446 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15447 | set dummy objcopy; ac_word=$2 | |
15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15449 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15450 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15451 | $as_echo_n "(cached) " >&6 |
15452 | else | |
15453 | case $OBJCOPY_FOR_TARGET in | |
15454 | [\\/]* | ?:[\\/]*) | |
15455 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15456 | ;; | |
15457 | *) | |
15458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15459 | for as_dir in $gcc_cv_tool_dirs | |
15460 | do | |
15461 | IFS=$as_save_IFS | |
15462 | test -z "$as_dir" && as_dir=. | |
15463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15464 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15465 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15467 | break 2 | |
15468 | fi | |
15469 | done | |
15470 | done | |
15471 | IFS=$as_save_IFS | |
15472 | ||
15473 | ;; | |
15474 | esac | |
15475 | fi | |
15476 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15477 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15479 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15480 | else | |
15481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15482 | $as_echo "no" >&6; } | |
15483 | fi | |
15484 | ||
15485 | ||
15486 | fi | |
15487 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15488 | ||
15489 | ||
15490 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15491 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15492 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15493 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15494 | fi | |
15495 | ||
15496 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15497 | for ncn_progname in objcopy; do | |
15498 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15499 | set dummy ${ncn_progname}; ac_word=$2 | |
15500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15501 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15502 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15503 | $as_echo_n "(cached) " >&6 |
15504 | else | |
15505 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15506 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15507 | else | |
15508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15509 | for as_dir in $PATH | |
15510 | do | |
15511 | IFS=$as_save_IFS | |
15512 | test -z "$as_dir" && as_dir=. | |
15513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15515 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15517 | break 2 | |
15518 | fi | |
15519 | done | |
15520 | done | |
15521 | IFS=$as_save_IFS | |
15522 | ||
15523 | fi | |
15524 | fi | |
15525 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15526 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15528 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15529 | else | |
15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15531 | $as_echo "no" >&6; } | |
15532 | fi | |
15533 | ||
15534 | ||
15535 | done | |
15536 | fi | |
15537 | ||
15538 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15539 | for ncn_progname in objcopy; do | |
15540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15541 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15542 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15543 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15545 | $as_echo "yes" >&6; } | |
15546 | break | |
15547 | else | |
15548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15549 | $as_echo "no" >&6; } | |
15550 | fi | |
15551 | done | |
15552 | fi | |
15553 | ||
15554 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15555 | for ncn_progname in objcopy; do | |
15556 | if test -n "$ncn_target_tool_prefix"; then | |
15557 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15558 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15560 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15561 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15562 | $as_echo_n "(cached) " >&6 |
15563 | else | |
15564 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15565 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15566 | else | |
15567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15568 | for as_dir in $PATH | |
15569 | do | |
15570 | IFS=$as_save_IFS | |
15571 | test -z "$as_dir" && as_dir=. | |
15572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15573 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15574 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15576 | break 2 | |
15577 | fi | |
15578 | done | |
15579 | done | |
15580 | IFS=$as_save_IFS | |
15581 | ||
15582 | fi | |
15583 | fi | |
15584 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15585 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15587 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15588 | else | |
15589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15590 | $as_echo "no" >&6; } | |
15591 | fi | |
15592 | ||
15593 | ||
15594 | fi | |
15595 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15596 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15597 | set dummy ${ncn_progname}; ac_word=$2 | |
15598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15599 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15600 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15601 | $as_echo_n "(cached) " >&6 |
15602 | else | |
15603 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15604 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15605 | else | |
15606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15607 | for as_dir in $PATH | |
15608 | do | |
15609 | IFS=$as_save_IFS | |
15610 | test -z "$as_dir" && as_dir=. | |
15611 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15612 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15613 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15615 | break 2 | |
15616 | fi | |
15617 | done | |
15618 | done | |
15619 | IFS=$as_save_IFS | |
15620 | ||
15621 | fi | |
15622 | fi | |
15623 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15624 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15626 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15627 | else | |
15628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15629 | $as_echo "no" >&6; } | |
15630 | fi | |
15631 | ||
15632 | ||
15633 | fi | |
15634 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15635 | done | |
15636 | fi | |
15637 | ||
15638 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15639 | set dummy objcopy | |
15640 | if test $build = $target ; then | |
15641 | OBJCOPY_FOR_TARGET="$2" | |
15642 | else | |
15643 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15644 | fi | |
15645 | else | |
15646 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15647 | fi | |
15648 | ||
15649 | else | |
15650 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15651 | fi | |
15652 | ||
15653 | ||
15654 | ||
15655 | ||
e8b05380 PB |
15656 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15657 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15659 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15660 | if test -x $with_build_time_tools/objdump; then |
15661 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15662 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
15663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15664 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 15665 | else |
5213506e RW |
15666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15667 | $as_echo "no" >&6; } | |
d1f8db0c | 15668 | fi |
e8b05380 PB |
15669 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15670 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
15671 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15672 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15673 | fi |
15674 | fi | |
3e19841a | 15675 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15676 | # Extract the first word of "objdump", so it can be a program name with args. |
15677 | set dummy objdump; ac_word=$2 | |
5213506e RW |
15678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15679 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15680 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15681 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15682 | else |
1c710c3c DJ |
15683 | case $OBJDUMP_FOR_TARGET in |
15684 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15685 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15686 | ;; | |
e8b05380 | 15687 | *) |
1c710c3c DJ |
15688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15689 | for as_dir in $gcc_cv_tool_dirs | |
15690 | do | |
15691 | IFS=$as_save_IFS | |
15692 | test -z "$as_dir" && as_dir=. | |
5213506e | 15693 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15694 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15695 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15697 | break 2 |
15698 | fi | |
15699 | done | |
5213506e RW |
15700 | done |
15701 | IFS=$as_save_IFS | |
1c710c3c | 15702 | |
e8b05380 PB |
15703 | ;; |
15704 | esac | |
15705 | fi | |
1c710c3c | 15706 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 15707 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15709 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 15710 | else |
5213506e RW |
15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15712 | $as_echo "no" >&6; } | |
e8b05380 PB |
15713 | fi |
15714 | ||
5213506e | 15715 | |
e8b05380 PB |
15716 | fi |
15717 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
15718 | |
15719 | ||
15720 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15721 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15722 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15723 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15724 | fi | |
15725 | ||
15726 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15727 | for ncn_progname in objdump; do | |
15728 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15729 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15731 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15732 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15733 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15734 | else |
15735 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15736 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15737 | else | |
15738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15739 | for as_dir in $PATH | |
15740 | do | |
15741 | IFS=$as_save_IFS | |
15742 | test -z "$as_dir" && as_dir=. | |
5213506e | 15743 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15745 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15747 | break 2 |
15748 | fi | |
15749 | done | |
5213506e RW |
15750 | done |
15751 | IFS=$as_save_IFS | |
278a7a38 AO |
15752 | |
15753 | fi | |
15754 | fi | |
15755 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15756 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15758 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 15759 | else |
5213506e RW |
15760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15761 | $as_echo "no" >&6; } | |
278a7a38 AO |
15762 | fi |
15763 | ||
5213506e | 15764 | |
278a7a38 AO |
15765 | done |
15766 | fi | |
15767 | ||
15768 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15769 | for ncn_progname in objdump; do |
5213506e RW |
15770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15771 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15772 | if test -x $with_build_time_tools/${ncn_progname}; then |
15773 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15775 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15776 | break |
15777 | else | |
5213506e RW |
15778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15779 | $as_echo "no" >&6; } | |
e8b05380 PB |
15780 | fi |
15781 | done | |
15782 | fi | |
15783 | ||
15784 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15785 | for ncn_progname in objdump; do | |
15786 | if test -n "$ncn_target_tool_prefix"; then | |
15787 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15788 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15790 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15791 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15792 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15793 | else |
15794 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15795 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15796 | else | |
1c710c3c DJ |
15797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15798 | for as_dir in $PATH | |
15799 | do | |
15800 | IFS=$as_save_IFS | |
15801 | test -z "$as_dir" && as_dir=. | |
5213506e | 15802 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15804 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15806 | break 2 |
15807 | fi | |
15808 | done | |
5213506e RW |
15809 | done |
15810 | IFS=$as_save_IFS | |
1c710c3c | 15811 | |
d739199a DJ |
15812 | fi |
15813 | fi | |
1c710c3c | 15814 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15815 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15817 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15818 | else |
5213506e RW |
15819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15820 | $as_echo "no" >&6; } | |
d739199a DJ |
15821 | fi |
15822 | ||
5213506e | 15823 | |
e8b05380 PB |
15824 | fi |
15825 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
15826 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 15827 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15829 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15830 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15831 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15832 | else |
15833 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15834 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15835 | else | |
1c710c3c DJ |
15836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15837 | for as_dir in $PATH | |
15838 | do | |
15839 | IFS=$as_save_IFS | |
15840 | test -z "$as_dir" && as_dir=. | |
5213506e | 15841 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15843 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15845 | break 2 |
15846 | fi | |
15847 | done | |
5213506e RW |
15848 | done |
15849 | IFS=$as_save_IFS | |
1c710c3c | 15850 | |
d739199a DJ |
15851 | fi |
15852 | fi | |
1c710c3c | 15853 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15854 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15856 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15857 | else |
5213506e RW |
15858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15859 | $as_echo "no" >&6; } | |
d739199a | 15860 | fi |
1c710c3c | 15861 | |
5213506e | 15862 | |
e8b05380 PB |
15863 | fi |
15864 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
15865 | done | |
15866 | fi | |
1c710c3c | 15867 | |
d739199a DJ |
15868 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
15869 | set dummy objdump | |
15870 | if test $build = $target ; then | |
15871 | OBJDUMP_FOR_TARGET="$2" | |
15872 | else | |
15873 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15874 | fi | |
1c00b503 PB |
15875 | else |
15876 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
15877 | fi |
15878 | ||
d1f8db0c PB |
15879 | else |
15880 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15881 | fi |
15882 | ||
15883 | ||
15884 | ||
15885 | ||
e4a9a572 IS |
15886 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
15887 | if test -n "$with_build_time_tools"; then | |
15888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
15889 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
15890 | if test -x $with_build_time_tools/otool; then | |
15891 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
15892 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
15894 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
15895 | else | |
15896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15897 | $as_echo "no" >&6; } | |
15898 | fi | |
15899 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15900 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
15901 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
15902 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15903 | fi | |
15904 | fi | |
15905 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15906 | # Extract the first word of "otool", so it can be a program name with args. | |
15907 | set dummy otool; ac_word=$2 | |
15908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15909 | $as_echo_n "checking for $ac_word... " >&6; } | |
15910 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
15911 | $as_echo_n "(cached) " >&6 | |
15912 | else | |
15913 | case $OTOOL_FOR_TARGET in | |
15914 | [\\/]* | ?:[\\/]*) | |
15915 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
15916 | ;; | |
15917 | *) | |
15918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15919 | for as_dir in $gcc_cv_tool_dirs | |
15920 | do | |
15921 | IFS=$as_save_IFS | |
15922 | test -z "$as_dir" && as_dir=. | |
15923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15925 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15927 | break 2 | |
15928 | fi | |
15929 | done | |
15930 | done | |
15931 | IFS=$as_save_IFS | |
15932 | ||
15933 | ;; | |
15934 | esac | |
15935 | fi | |
15936 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
15937 | if test -n "$OTOOL_FOR_TARGET"; then | |
15938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15939 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15940 | else | |
15941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15942 | $as_echo "no" >&6; } | |
15943 | fi | |
15944 | ||
15945 | ||
15946 | fi | |
15947 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
15948 | ||
15949 | ||
15950 | if test -n "$OTOOL_FOR_TARGET"; then | |
15951 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15952 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15953 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15954 | fi | |
15955 | ||
15956 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15957 | for ncn_progname in otool; do | |
15958 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15959 | set dummy ${ncn_progname}; ac_word=$2 | |
15960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15961 | $as_echo_n "checking for $ac_word... " >&6; } | |
15962 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15963 | $as_echo_n "(cached) " >&6 | |
15964 | else | |
15965 | if test -n "$OTOOL_FOR_TARGET"; then | |
15966 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15967 | else | |
15968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15969 | for as_dir in $PATH | |
15970 | do | |
15971 | IFS=$as_save_IFS | |
15972 | test -z "$as_dir" && as_dir=. | |
15973 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15975 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
15976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15977 | break 2 | |
15978 | fi | |
15979 | done | |
15980 | done | |
15981 | IFS=$as_save_IFS | |
15982 | ||
15983 | fi | |
15984 | fi | |
15985 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15986 | if test -n "$OTOOL_FOR_TARGET"; then | |
15987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15988 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15989 | else | |
15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15991 | $as_echo "no" >&6; } | |
15992 | fi | |
15993 | ||
15994 | ||
15995 | done | |
15996 | fi | |
15997 | ||
15998 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15999 | for ncn_progname in otool; do | |
16000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16001 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16002 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16003 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16005 | $as_echo "yes" >&6; } | |
16006 | break | |
16007 | else | |
16008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16009 | $as_echo "no" >&6; } | |
16010 | fi | |
16011 | done | |
16012 | fi | |
16013 | ||
16014 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16015 | for ncn_progname in otool; do | |
16016 | if test -n "$ncn_target_tool_prefix"; then | |
16017 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16018 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16020 | $as_echo_n "checking for $ac_word... " >&6; } | |
16021 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16022 | $as_echo_n "(cached) " >&6 | |
16023 | else | |
16024 | if test -n "$OTOOL_FOR_TARGET"; then | |
16025 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16026 | else | |
16027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16028 | for as_dir in $PATH | |
16029 | do | |
16030 | IFS=$as_save_IFS | |
16031 | test -z "$as_dir" && as_dir=. | |
16032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16034 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16036 | break 2 | |
16037 | fi | |
16038 | done | |
16039 | done | |
16040 | IFS=$as_save_IFS | |
16041 | ||
16042 | fi | |
16043 | fi | |
16044 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16045 | if test -n "$OTOOL_FOR_TARGET"; then | |
16046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16047 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16048 | else | |
16049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16050 | $as_echo "no" >&6; } | |
16051 | fi | |
16052 | ||
16053 | ||
16054 | fi | |
16055 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16056 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16057 | set dummy ${ncn_progname}; ac_word=$2 | |
16058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16059 | $as_echo_n "checking for $ac_word... " >&6; } | |
16060 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16061 | $as_echo_n "(cached) " >&6 | |
16062 | else | |
16063 | if test -n "$OTOOL_FOR_TARGET"; then | |
16064 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16065 | else | |
16066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16067 | for as_dir in $PATH | |
16068 | do | |
16069 | IFS=$as_save_IFS | |
16070 | test -z "$as_dir" && as_dir=. | |
16071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16073 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16075 | break 2 | |
16076 | fi | |
16077 | done | |
16078 | done | |
16079 | IFS=$as_save_IFS | |
16080 | ||
16081 | fi | |
16082 | fi | |
16083 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16084 | if test -n "$OTOOL_FOR_TARGET"; then | |
16085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16086 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16087 | else | |
16088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16089 | $as_echo "no" >&6; } | |
16090 | fi | |
16091 | ||
16092 | ||
16093 | fi | |
16094 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16095 | done | |
16096 | fi | |
16097 | ||
16098 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16099 | set dummy otool | |
16100 | if test $build = $target ; then | |
16101 | OTOOL_FOR_TARGET="$2" | |
16102 | else | |
16103 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16104 | fi | |
16105 | else | |
16106 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16107 | fi | |
16108 | ||
16109 | else | |
16110 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16111 | fi | |
16112 | ||
16113 | ||
16114 | ||
16115 | ||
e8b05380 PB |
16116 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16117 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16119 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16120 | if test -x $with_build_time_tools/ranlib; then |
16121 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16122 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
16123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16124 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 16125 | else |
5213506e RW |
16126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16127 | $as_echo "no" >&6; } | |
d1f8db0c | 16128 | fi |
e8b05380 PB |
16129 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16130 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
16131 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16132 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
16133 | fi |
16134 | fi | |
3e19841a | 16135 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16136 | # Extract the first word of "ranlib", so it can be a program name with args. |
16137 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16139 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16140 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16141 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16142 | else |
1c710c3c DJ |
16143 | case $RANLIB_FOR_TARGET in |
16144 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16145 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16146 | ;; | |
e8b05380 | 16147 | *) |
1c710c3c DJ |
16148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16149 | for as_dir in $gcc_cv_tool_dirs | |
16150 | do | |
16151 | IFS=$as_save_IFS | |
16152 | test -z "$as_dir" && as_dir=. | |
5213506e | 16153 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16155 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16157 | break 2 |
16158 | fi | |
16159 | done | |
5213506e RW |
16160 | done |
16161 | IFS=$as_save_IFS | |
1c710c3c | 16162 | |
e8b05380 PB |
16163 | ;; |
16164 | esac | |
16165 | fi | |
1c710c3c | 16166 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 16167 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16169 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 16170 | else |
5213506e RW |
16171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16172 | $as_echo "no" >&6; } | |
e8b05380 PB |
16173 | fi |
16174 | ||
5213506e | 16175 | |
e8b05380 PB |
16176 | fi |
16177 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
16178 | |
16179 | ||
16180 | if test -n "$RANLIB_FOR_TARGET"; then | |
16181 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16182 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16183 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16184 | fi | |
16185 | ||
16186 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16187 | for ncn_progname in ranlib; do | |
16188 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16189 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16191 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16192 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16193 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16194 | else |
16195 | if test -n "$RANLIB_FOR_TARGET"; then | |
16196 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16197 | else | |
16198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16199 | for as_dir in $PATH | |
16200 | do | |
16201 | IFS=$as_save_IFS | |
16202 | test -z "$as_dir" && as_dir=. | |
5213506e | 16203 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16204 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16205 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16207 | break 2 |
16208 | fi | |
16209 | done | |
5213506e RW |
16210 | done |
16211 | IFS=$as_save_IFS | |
278a7a38 AO |
16212 | |
16213 | fi | |
16214 | fi | |
16215 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16216 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
16217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16218 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 16219 | else |
5213506e RW |
16220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16221 | $as_echo "no" >&6; } | |
278a7a38 AO |
16222 | fi |
16223 | ||
5213506e | 16224 | |
278a7a38 AO |
16225 | done |
16226 | fi | |
16227 | ||
16228 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16229 | for ncn_progname in ranlib; do |
5213506e RW |
16230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16231 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16232 | if test -x $with_build_time_tools/${ncn_progname}; then |
16233 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16235 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16236 | break |
16237 | else | |
5213506e RW |
16238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16239 | $as_echo "no" >&6; } | |
e8b05380 PB |
16240 | fi |
16241 | done | |
16242 | fi | |
16243 | ||
16244 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16245 | for ncn_progname in ranlib; do | |
16246 | if test -n "$ncn_target_tool_prefix"; then | |
16247 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 16248 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16250 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16251 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16252 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16253 | else |
4de997d1 PB |
16254 | if test -n "$RANLIB_FOR_TARGET"; then |
16255 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16256 | else |
1c710c3c DJ |
16257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16258 | for as_dir in $PATH | |
16259 | do | |
16260 | IFS=$as_save_IFS | |
16261 | test -z "$as_dir" && as_dir=. | |
5213506e | 16262 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16264 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16266 | break 2 |
16267 | fi | |
16268 | done | |
5213506e RW |
16269 | done |
16270 | IFS=$as_save_IFS | |
1c710c3c | 16271 | |
ca9f4b81 AO |
16272 | fi |
16273 | fi | |
1c710c3c | 16274 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 16275 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16277 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16278 | else |
5213506e RW |
16279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16280 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16281 | fi |
16282 | ||
5213506e | 16283 | |
e8b05380 PB |
16284 | fi |
16285 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16286 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16287 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16289 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16290 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16291 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16292 | else |
2693c0b0 PB |
16293 | if test -n "$RANLIB_FOR_TARGET"; then |
16294 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16295 | else |
1c710c3c DJ |
16296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16297 | for as_dir in $PATH | |
16298 | do | |
16299 | IFS=$as_save_IFS | |
16300 | test -z "$as_dir" && as_dir=. | |
5213506e | 16301 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16303 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16305 | break 2 |
16306 | fi | |
16307 | done | |
5213506e RW |
16308 | done |
16309 | IFS=$as_save_IFS | |
1c710c3c | 16310 | |
ca9f4b81 AO |
16311 | fi |
16312 | fi | |
1c710c3c | 16313 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 16314 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16316 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16317 | else |
5213506e RW |
16318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16319 | $as_echo "no" >&6; } | |
ca9f4b81 | 16320 | fi |
1c710c3c | 16321 | |
5213506e | 16322 | |
e8b05380 PB |
16323 | fi |
16324 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16325 | done | |
16326 | fi | |
1c710c3c | 16327 | |
e8b05380 PB |
16328 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16329 | set dummy ranlib | |
16330 | if test $build = $target ; then | |
16331 | RANLIB_FOR_TARGET="$2" | |
16332 | else | |
16333 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 16334 | fi |
1c00b503 PB |
16335 | else |
16336 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 16337 | fi |
2693c0b0 | 16338 | |
d1f8db0c PB |
16339 | else |
16340 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
16341 | fi |
16342 | ||
e8b05380 PB |
16343 | |
16344 | ||
16345 | ||
e7a82751 RM |
16346 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16347 | if test -n "$with_build_time_tools"; then | |
16348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16349 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16350 | if test -x $with_build_time_tools/readelf; then | |
16351 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16352 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16354 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16355 | else | |
16356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16357 | $as_echo "no" >&6; } | |
16358 | fi | |
16359 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16360 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16361 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16362 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16363 | fi | |
16364 | fi | |
16365 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16366 | # Extract the first word of "readelf", so it can be a program name with args. | |
16367 | set dummy readelf; ac_word=$2 | |
16368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16369 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16370 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16371 | $as_echo_n "(cached) " >&6 |
16372 | else | |
16373 | case $READELF_FOR_TARGET in | |
16374 | [\\/]* | ?:[\\/]*) | |
16375 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16376 | ;; | |
16377 | *) | |
16378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16379 | for as_dir in $gcc_cv_tool_dirs | |
16380 | do | |
16381 | IFS=$as_save_IFS | |
16382 | test -z "$as_dir" && as_dir=. | |
16383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16384 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16385 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16387 | break 2 | |
16388 | fi | |
16389 | done | |
16390 | done | |
16391 | IFS=$as_save_IFS | |
16392 | ||
16393 | ;; | |
16394 | esac | |
16395 | fi | |
16396 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16397 | if test -n "$READELF_FOR_TARGET"; then | |
16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16399 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16400 | else | |
16401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16402 | $as_echo "no" >&6; } | |
16403 | fi | |
16404 | ||
16405 | ||
16406 | fi | |
16407 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16408 | ||
16409 | ||
16410 | if test -n "$READELF_FOR_TARGET"; then | |
16411 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16412 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16413 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16414 | fi | |
16415 | ||
16416 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16417 | for ncn_progname in readelf; do | |
16418 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16419 | set dummy ${ncn_progname}; ac_word=$2 | |
16420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16421 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16422 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16423 | $as_echo_n "(cached) " >&6 |
16424 | else | |
16425 | if test -n "$READELF_FOR_TARGET"; then | |
16426 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16427 | else | |
16428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16429 | for as_dir in $PATH | |
16430 | do | |
16431 | IFS=$as_save_IFS | |
16432 | test -z "$as_dir" && as_dir=. | |
16433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16434 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16435 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16437 | break 2 | |
16438 | fi | |
16439 | done | |
16440 | done | |
16441 | IFS=$as_save_IFS | |
16442 | ||
16443 | fi | |
16444 | fi | |
16445 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16446 | if test -n "$READELF_FOR_TARGET"; then | |
16447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16448 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16449 | else | |
16450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16451 | $as_echo "no" >&6; } | |
16452 | fi | |
16453 | ||
16454 | ||
16455 | done | |
16456 | fi | |
16457 | ||
16458 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16459 | for ncn_progname in readelf; do | |
16460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16461 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16462 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16463 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16465 | $as_echo "yes" >&6; } | |
16466 | break | |
16467 | else | |
16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16469 | $as_echo "no" >&6; } | |
16470 | fi | |
16471 | done | |
16472 | fi | |
16473 | ||
16474 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16475 | for ncn_progname in readelf; do | |
16476 | if test -n "$ncn_target_tool_prefix"; then | |
16477 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16478 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16480 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16481 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16482 | $as_echo_n "(cached) " >&6 |
16483 | else | |
16484 | if test -n "$READELF_FOR_TARGET"; then | |
16485 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16486 | else | |
16487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16488 | for as_dir in $PATH | |
16489 | do | |
16490 | IFS=$as_save_IFS | |
16491 | test -z "$as_dir" && as_dir=. | |
16492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16494 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16496 | break 2 | |
16497 | fi | |
16498 | done | |
16499 | done | |
16500 | IFS=$as_save_IFS | |
16501 | ||
16502 | fi | |
16503 | fi | |
16504 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16505 | if test -n "$READELF_FOR_TARGET"; then | |
16506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16507 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16508 | else | |
16509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16510 | $as_echo "no" >&6; } | |
16511 | fi | |
16512 | ||
16513 | ||
16514 | fi | |
16515 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16516 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16517 | set dummy ${ncn_progname}; ac_word=$2 | |
16518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16519 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16520 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16521 | $as_echo_n "(cached) " >&6 |
16522 | else | |
16523 | if test -n "$READELF_FOR_TARGET"; then | |
16524 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16525 | else | |
16526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16527 | for as_dir in $PATH | |
16528 | do | |
16529 | IFS=$as_save_IFS | |
16530 | test -z "$as_dir" && as_dir=. | |
16531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16533 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16535 | break 2 | |
16536 | fi | |
16537 | done | |
16538 | done | |
16539 | IFS=$as_save_IFS | |
16540 | ||
16541 | fi | |
16542 | fi | |
16543 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16544 | if test -n "$READELF_FOR_TARGET"; then | |
16545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16546 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16547 | else | |
16548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16549 | $as_echo "no" >&6; } | |
16550 | fi | |
16551 | ||
16552 | ||
16553 | fi | |
16554 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16555 | done | |
16556 | fi | |
16557 | ||
16558 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16559 | set dummy readelf | |
16560 | if test $build = $target ; then | |
16561 | READELF_FOR_TARGET="$2" | |
16562 | else | |
16563 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16564 | fi | |
16565 | else | |
16566 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16567 | fi | |
16568 | ||
16569 | else | |
16570 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16571 | fi | |
16572 | ||
16573 | ||
16574 | ||
16575 | ||
e8b05380 PB |
16576 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16577 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16579 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16580 | if test -x $with_build_time_tools/strip; then |
16581 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16582 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
16583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16584 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 16585 | else |
5213506e RW |
16586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16587 | $as_echo "no" >&6; } | |
d1f8db0c | 16588 | fi |
e8b05380 PB |
16589 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16590 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
16591 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16592 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
16593 | fi |
16594 | fi | |
3e19841a | 16595 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16596 | # Extract the first word of "strip", so it can be a program name with args. |
16597 | set dummy strip; ac_word=$2 | |
5213506e RW |
16598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16599 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16600 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16601 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16602 | else |
1c710c3c DJ |
16603 | case $STRIP_FOR_TARGET in |
16604 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16605 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16606 | ;; | |
e8b05380 | 16607 | *) |
1c710c3c DJ |
16608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16609 | for as_dir in $gcc_cv_tool_dirs | |
16610 | do | |
16611 | IFS=$as_save_IFS | |
16612 | test -z "$as_dir" && as_dir=. | |
5213506e | 16613 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16614 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16615 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16617 | break 2 |
16618 | fi | |
16619 | done | |
5213506e RW |
16620 | done |
16621 | IFS=$as_save_IFS | |
1c710c3c | 16622 | |
e8b05380 PB |
16623 | ;; |
16624 | esac | |
16625 | fi | |
1c710c3c | 16626 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 16627 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16629 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 16630 | else |
5213506e RW |
16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16632 | $as_echo "no" >&6; } | |
e8b05380 PB |
16633 | fi |
16634 | ||
5213506e | 16635 | |
e8b05380 PB |
16636 | fi |
16637 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
16638 | |
16639 | ||
16640 | if test -n "$STRIP_FOR_TARGET"; then | |
16641 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16642 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16643 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16644 | fi | |
16645 | ||
16646 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16647 | for ncn_progname in strip; do | |
16648 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16649 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16651 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16652 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16653 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16654 | else |
16655 | if test -n "$STRIP_FOR_TARGET"; then | |
16656 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16657 | else | |
16658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16659 | for as_dir in $PATH | |
16660 | do | |
16661 | IFS=$as_save_IFS | |
16662 | test -z "$as_dir" && as_dir=. | |
5213506e | 16663 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16665 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16667 | break 2 |
16668 | fi | |
16669 | done | |
5213506e RW |
16670 | done |
16671 | IFS=$as_save_IFS | |
278a7a38 AO |
16672 | |
16673 | fi | |
16674 | fi | |
16675 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16676 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
16677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16678 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 16679 | else |
5213506e RW |
16680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16681 | $as_echo "no" >&6; } | |
278a7a38 AO |
16682 | fi |
16683 | ||
5213506e | 16684 | |
278a7a38 AO |
16685 | done |
16686 | fi | |
16687 | ||
16688 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16689 | for ncn_progname in strip; do |
5213506e RW |
16690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16691 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16692 | if test -x $with_build_time_tools/${ncn_progname}; then |
16693 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16695 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16696 | break |
16697 | else | |
5213506e RW |
16698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16699 | $as_echo "no" >&6; } | |
e8b05380 PB |
16700 | fi |
16701 | done | |
16702 | fi | |
16703 | ||
16704 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16705 | for ncn_progname in strip; do | |
16706 | if test -n "$ncn_target_tool_prefix"; then | |
16707 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16708 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16710 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16711 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16712 | $as_echo_n "(cached) " >&6 |
af71363e AS |
16713 | else |
16714 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
16715 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
16716 | else | |
16717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16718 | for as_dir in $PATH | |
16719 | do | |
16720 | IFS=$as_save_IFS | |
16721 | test -z "$as_dir" && as_dir=. | |
5213506e | 16722 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16724 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16726 | break 2 |
16727 | fi | |
16728 | done | |
5213506e RW |
16729 | done |
16730 | IFS=$as_save_IFS | |
1c710c3c | 16731 | |
040b1c5a GK |
16732 | fi |
16733 | fi | |
1c710c3c | 16734 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16735 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16737 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16738 | else |
5213506e RW |
16739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16740 | $as_echo "no" >&6; } | |
040b1c5a GK |
16741 | fi |
16742 | ||
5213506e | 16743 | |
e8b05380 PB |
16744 | fi |
16745 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
16746 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16747 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16749 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16750 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16751 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
16752 | else |
16753 | if test -n "$STRIP_FOR_TARGET"; then | |
16754 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16755 | else | |
1c710c3c DJ |
16756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16757 | for as_dir in $PATH | |
16758 | do | |
16759 | IFS=$as_save_IFS | |
16760 | test -z "$as_dir" && as_dir=. | |
5213506e | 16761 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16763 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16765 | break 2 |
16766 | fi | |
16767 | done | |
5213506e RW |
16768 | done |
16769 | IFS=$as_save_IFS | |
1c710c3c | 16770 | |
040b1c5a GK |
16771 | fi |
16772 | fi | |
1c710c3c | 16773 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16774 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16776 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16777 | else |
5213506e RW |
16778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16779 | $as_echo "no" >&6; } | |
040b1c5a | 16780 | fi |
1c710c3c | 16781 | |
5213506e | 16782 | |
e8b05380 PB |
16783 | fi |
16784 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
16785 | done | |
16786 | fi | |
1c710c3c | 16787 | |
040b1c5a GK |
16788 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
16789 | set dummy strip | |
16790 | if test $build = $target ; then | |
16791 | STRIP_FOR_TARGET="$2" | |
16792 | else | |
16793 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16794 | fi | |
1c00b503 PB |
16795 | else |
16796 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
16797 | fi |
16798 | ||
d1f8db0c PB |
16799 | else |
16800 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
16801 | fi |
16802 | ||
16803 | ||
16804 | ||
16805 | ||
16806 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
16807 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
16809 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16810 | if test -x $with_build_time_tools/windres; then |
16811 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
16812 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
16813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
16814 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 16815 | else |
5213506e RW |
16816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16817 | $as_echo "no" >&6; } | |
d1f8db0c | 16818 | fi |
e8b05380 PB |
16819 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16820 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
16821 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
16822 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
16823 | fi |
16824 | fi | |
3e19841a | 16825 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16826 | # Extract the first word of "windres", so it can be a program name with args. |
16827 | set dummy windres; ac_word=$2 | |
5213506e RW |
16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16829 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16830 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16831 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16832 | else |
1c710c3c DJ |
16833 | case $WINDRES_FOR_TARGET in |
16834 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16835 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
16836 | ;; | |
e8b05380 | 16837 | *) |
1c710c3c DJ |
16838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16839 | for as_dir in $gcc_cv_tool_dirs | |
16840 | do | |
16841 | IFS=$as_save_IFS | |
16842 | test -z "$as_dir" && as_dir=. | |
5213506e | 16843 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16845 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16847 | break 2 |
16848 | fi | |
16849 | done | |
5213506e RW |
16850 | done |
16851 | IFS=$as_save_IFS | |
1c710c3c | 16852 | |
e8b05380 PB |
16853 | ;; |
16854 | esac | |
16855 | fi | |
1c710c3c | 16856 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 16857 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16859 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 16860 | else |
5213506e RW |
16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16862 | $as_echo "no" >&6; } | |
e8b05380 PB |
16863 | fi |
16864 | ||
5213506e | 16865 | |
e8b05380 PB |
16866 | fi |
16867 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
16868 | |
16869 | ||
16870 | if test -n "$WINDRES_FOR_TARGET"; then | |
16871 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
16872 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16873 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16874 | fi | |
16875 | ||
16876 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16877 | for ncn_progname in windres; do | |
16878 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16879 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16881 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16882 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16883 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16884 | else |
16885 | if test -n "$WINDRES_FOR_TARGET"; then | |
16886 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
16887 | else | |
16888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16889 | for as_dir in $PATH | |
16890 | do | |
16891 | IFS=$as_save_IFS | |
16892 | test -z "$as_dir" && as_dir=. | |
5213506e | 16893 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16895 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16897 | break 2 |
16898 | fi | |
16899 | done | |
5213506e RW |
16900 | done |
16901 | IFS=$as_save_IFS | |
278a7a38 AO |
16902 | |
16903 | fi | |
16904 | fi | |
16905 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16906 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
16907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16908 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 16909 | else |
5213506e RW |
16910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16911 | $as_echo "no" >&6; } | |
278a7a38 AO |
16912 | fi |
16913 | ||
5213506e | 16914 | |
278a7a38 AO |
16915 | done |
16916 | fi | |
16917 | ||
16918 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16919 | for ncn_progname in windres; do |
5213506e RW |
16920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16921 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16922 | if test -x $with_build_time_tools/${ncn_progname}; then |
16923 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16925 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16926 | break |
16927 | else | |
5213506e RW |
16928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16929 | $as_echo "no" >&6; } | |
e8b05380 PB |
16930 | fi |
16931 | done | |
16932 | fi | |
16933 | ||
16934 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16935 | for ncn_progname in windres; do | |
16936 | if test -n "$ncn_target_tool_prefix"; then | |
16937 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16938 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16940 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16941 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16942 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16943 | else |
4de997d1 PB |
16944 | if test -n "$WINDRES_FOR_TARGET"; then |
16945 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16946 | else |
1c710c3c DJ |
16947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16948 | for as_dir in $PATH | |
16949 | do | |
16950 | IFS=$as_save_IFS | |
16951 | test -z "$as_dir" && as_dir=. | |
5213506e | 16952 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16954 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16956 | break 2 |
16957 | fi | |
16958 | done | |
5213506e RW |
16959 | done |
16960 | IFS=$as_save_IFS | |
1c710c3c | 16961 | |
ca9f4b81 AO |
16962 | fi |
16963 | fi | |
1c710c3c | 16964 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 16965 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16967 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16968 | else |
5213506e RW |
16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16970 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16971 | fi |
16972 | ||
5213506e | 16973 | |
e8b05380 PB |
16974 | fi |
16975 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
16976 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16977 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16979 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16980 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16981 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16982 | else |
2693c0b0 PB |
16983 | if test -n "$WINDRES_FOR_TARGET"; then |
16984 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16985 | else |
1c710c3c DJ |
16986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16987 | for as_dir in $PATH | |
16988 | do | |
16989 | IFS=$as_save_IFS | |
16990 | test -z "$as_dir" && as_dir=. | |
5213506e | 16991 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16993 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16995 | break 2 |
16996 | fi | |
16997 | done | |
5213506e RW |
16998 | done |
16999 | IFS=$as_save_IFS | |
1c710c3c | 17000 | |
ca9f4b81 AO |
17001 | fi |
17002 | fi | |
1c710c3c | 17003 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 17004 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17006 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 17007 | else |
5213506e RW |
17008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17009 | $as_echo "no" >&6; } | |
ca9f4b81 | 17010 | fi |
1c710c3c | 17011 | |
5213506e | 17012 | |
e8b05380 PB |
17013 | fi |
17014 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17015 | done | |
17016 | fi | |
1c710c3c | 17017 | |
2693c0b0 PB |
17018 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17019 | set dummy windres | |
17020 | if test $build = $target ; then | |
17021 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 17022 | else |
2693c0b0 | 17023 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 17024 | fi |
1c00b503 PB |
17025 | else |
17026 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
17027 | fi |
17028 | ||
d1f8db0c PB |
17029 | else |
17030 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
17031 | fi |
17032 | ||
4977bab6 | 17033 | |
901119ae KT |
17034 | |
17035 | ||
17036 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17037 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17039 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
17040 | if test -x $with_build_time_tools/windmc; then |
17041 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17042 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
17043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17044 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17045 | else |
5213506e RW |
17046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17047 | $as_echo "no" >&6; } | |
901119ae KT |
17048 | fi |
17049 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17050 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
17051 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
17052 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
17053 | fi |
17054 | fi | |
17055 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17056 | # Extract the first word of "windmc", so it can be a program name with args. | |
17057 | set dummy windmc; ac_word=$2 | |
5213506e RW |
17058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17059 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17060 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17061 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17062 | else |
17063 | case $WINDMC_FOR_TARGET in | |
17064 | [\\/]* | ?:[\\/]*) | |
17065 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17066 | ;; | |
17067 | *) | |
17068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17069 | for as_dir in $gcc_cv_tool_dirs | |
17070 | do | |
17071 | IFS=$as_save_IFS | |
17072 | test -z "$as_dir" && as_dir=. | |
5213506e | 17073 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17075 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17077 | break 2 |
17078 | fi | |
17079 | done | |
5213506e RW |
17080 | done |
17081 | IFS=$as_save_IFS | |
901119ae KT |
17082 | |
17083 | ;; | |
17084 | esac | |
17085 | fi | |
17086 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 17087 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
17088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17089 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17090 | else |
5213506e RW |
17091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17092 | $as_echo "no" >&6; } | |
901119ae KT |
17093 | fi |
17094 | ||
5213506e | 17095 | |
901119ae KT |
17096 | fi |
17097 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17098 | ||
17099 | ||
17100 | if test -n "$WINDMC_FOR_TARGET"; then | |
17101 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17102 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17103 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17104 | fi | |
17105 | ||
17106 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17107 | for ncn_progname in windmc; do | |
17108 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17109 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17111 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17112 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17113 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17114 | else |
17115 | if test -n "$WINDMC_FOR_TARGET"; then | |
17116 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17117 | else | |
17118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17119 | for as_dir in $PATH | |
17120 | do | |
17121 | IFS=$as_save_IFS | |
17122 | test -z "$as_dir" && as_dir=. | |
5213506e | 17123 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17124 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17125 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17127 | break 2 |
17128 | fi | |
17129 | done | |
5213506e RW |
17130 | done |
17131 | IFS=$as_save_IFS | |
901119ae KT |
17132 | |
17133 | fi | |
17134 | fi | |
17135 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17136 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17138 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17139 | else |
5213506e RW |
17140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17141 | $as_echo "no" >&6; } | |
901119ae KT |
17142 | fi |
17143 | ||
5213506e | 17144 | |
901119ae KT |
17145 | done |
17146 | fi | |
17147 | ||
17148 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17149 | for ncn_progname in windmc; do | |
5213506e RW |
17150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17151 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
17152 | if test -x $with_build_time_tools/${ncn_progname}; then |
17153 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17155 | $as_echo "yes" >&6; } | |
901119ae KT |
17156 | break |
17157 | else | |
5213506e RW |
17158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17159 | $as_echo "no" >&6; } | |
901119ae KT |
17160 | fi |
17161 | done | |
17162 | fi | |
17163 | ||
17164 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17165 | for ncn_progname in windmc; do | |
17166 | if test -n "$ncn_target_tool_prefix"; then | |
17167 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17168 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
17169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17170 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17171 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17172 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17173 | else |
17174 | if test -n "$WINDMC_FOR_TARGET"; then | |
17175 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17176 | else | |
17177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17178 | for as_dir in $PATH | |
17179 | do | |
17180 | IFS=$as_save_IFS | |
17181 | test -z "$as_dir" && as_dir=. | |
5213506e | 17182 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17184 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17186 | break 2 |
17187 | fi | |
17188 | done | |
5213506e RW |
17189 | done |
17190 | IFS=$as_save_IFS | |
901119ae KT |
17191 | |
17192 | fi | |
17193 | fi | |
17194 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17195 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17197 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17198 | else |
5213506e RW |
17199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17200 | $as_echo "no" >&6; } | |
901119ae KT |
17201 | fi |
17202 | ||
5213506e | 17203 | |
901119ae KT |
17204 | fi |
17205 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17206 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17207 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17209 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17210 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17211 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17212 | else |
17213 | if test -n "$WINDMC_FOR_TARGET"; then | |
17214 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17215 | else | |
17216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17217 | for as_dir in $PATH | |
17218 | do | |
17219 | IFS=$as_save_IFS | |
17220 | test -z "$as_dir" && as_dir=. | |
5213506e | 17221 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17222 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17223 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17225 | break 2 |
17226 | fi | |
17227 | done | |
5213506e RW |
17228 | done |
17229 | IFS=$as_save_IFS | |
901119ae KT |
17230 | |
17231 | fi | |
17232 | fi | |
17233 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17234 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17236 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17237 | else |
5213506e RW |
17238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17239 | $as_echo "no" >&6; } | |
901119ae KT |
17240 | fi |
17241 | ||
5213506e | 17242 | |
901119ae KT |
17243 | fi |
17244 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17245 | done | |
17246 | fi | |
17247 | ||
17248 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17249 | set dummy windmc | |
17250 | if test $build = $target ; then | |
17251 | WINDMC_FOR_TARGET="$2" | |
17252 | else | |
17253 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17254 | fi | |
1c00b503 PB |
17255 | else |
17256 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
17257 | fi |
17258 | ||
17259 | else | |
17260 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17261 | fi | |
17262 | ||
17263 | ||
2abefe3d PB |
17264 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17265 | ||
5213506e RW |
17266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17267 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 17268 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17269 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17270 | # We already found the complete path | |
172e41aa | 17271 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17273 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17274 | else |
17275 | # Canadian cross, just use what we found | |
5213506e RW |
17276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17277 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17278 | fi |
2abefe3d PB |
17279 | else |
17280 | ok=yes | |
17281 | case " ${configdirs} " in | |
17282 | *" binutils "*) ;; | |
17283 | *) ok=no ;; | |
17284 | esac | |
1c710c3c | 17285 | |
2abefe3d PB |
17286 | if test $ok = yes; then |
17287 | # An in-tree tool is available and we can use it | |
17288 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
17289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17290 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17291 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17292 | # We already found the complete path | |
172e41aa | 17293 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17295 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17296 | elif test "x$target" = "x$host"; then |
17297 | # We can use an host tool | |
17298 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
17299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17300 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17301 | else |
17302 | # We need a cross tool | |
5213506e RW |
17303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17304 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17305 | fi |
17306 | fi | |
0b0dc272 | 17307 | |
5213506e RW |
17308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17309 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 17310 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17311 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17312 | # We already found the complete path | |
172e41aa | 17313 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17315 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17316 | else |
17317 | # Canadian cross, just use what we found | |
5213506e RW |
17318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17319 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17320 | fi |
2abefe3d PB |
17321 | else |
17322 | ok=yes | |
17323 | case " ${configdirs} " in | |
17324 | *" gas "*) ;; | |
17325 | *) ok=no ;; | |
17326 | esac | |
1c710c3c | 17327 | |
2abefe3d PB |
17328 | if test $ok = yes; then |
17329 | # An in-tree tool is available and we can use it | |
17330 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
17331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17332 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17333 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17334 | # We already found the complete path | |
172e41aa | 17335 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17337 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17338 | elif test "x$target" = "x$host"; then |
17339 | # We can use an host tool | |
17340 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
17341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17342 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17343 | else |
17344 | # We need a cross tool | |
5213506e RW |
17345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17346 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17347 | fi |
17348 | fi | |
0b0dc272 | 17349 | |
5213506e RW |
17350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17351 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 17352 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17353 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17354 | # We already found the complete path | |
172e41aa | 17355 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17357 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17358 | else |
17359 | # Canadian cross, just use what we found | |
5213506e RW |
17360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17361 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17362 | fi |
2abefe3d PB |
17363 | else |
17364 | ok=yes | |
17365 | case " ${configdirs} " in | |
17366 | *" gcc "*) ;; | |
17367 | *) ok=no ;; | |
17368 | esac | |
1c710c3c | 17369 | |
2abefe3d PB |
17370 | if test $ok = yes; then |
17371 | # An in-tree tool is available and we can use it | |
17372 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17374 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17375 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17376 | # We already found the complete path | |
172e41aa | 17377 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17379 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17380 | elif test "x$target" = "x$host"; then |
17381 | # We can use an host tool | |
17382 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
17383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17384 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17385 | else |
17386 | # We need a cross tool | |
5213506e RW |
17387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17388 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17389 | fi |
17390 | fi | |
0b0dc272 | 17391 | |
5213506e RW |
17392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17393 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 17394 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17395 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17396 | # We already found the complete path | |
172e41aa | 17397 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17399 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17400 | else |
17401 | # Canadian cross, just use what we found | |
5213506e RW |
17402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17403 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17404 | fi |
2abefe3d PB |
17405 | else |
17406 | ok=yes | |
17407 | case " ${configdirs} " in | |
17408 | *" gcc "*) ;; | |
17409 | *) ok=no ;; | |
17410 | esac | |
17411 | case ,${enable_languages}, in | |
17412 | *,c++,*) ;; | |
17413 | *) ok=no ;; | |
17414 | esac | |
17415 | if test $ok = yes; then | |
17416 | # An in-tree tool is available and we can use it | |
2077db1b | 17417 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
17418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17419 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17420 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17421 | # We already found the complete path | |
172e41aa | 17422 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17424 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17425 | elif test "x$target" = "x$host"; then |
17426 | # We can use an host tool | |
17427 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17429 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17430 | else |
17431 | # We need a cross tool | |
5213506e RW |
17432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17433 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17434 | fi |
17435 | fi | |
0b0dc272 | 17436 | |
5213506e RW |
17437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17438 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 17439 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17440 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17441 | # We already found the complete path | |
172e41aa | 17442 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17444 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17445 | else |
17446 | # Canadian cross, just use what we found | |
5213506e RW |
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17448 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17449 | fi |
2abefe3d PB |
17450 | else |
17451 | ok=yes | |
17452 | case " ${configdirs} " in | |
17453 | *" gcc "*) ;; | |
17454 | *) ok=no ;; | |
17455 | esac | |
17456 | case ,${enable_languages}, in | |
17457 | *,c++,*) ;; | |
17458 | *) ok=no ;; | |
17459 | esac | |
17460 | if test $ok = yes; then | |
17461 | # An in-tree tool is available and we can use it | |
2077db1b | 17462 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
17463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17464 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17465 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17466 | # We already found the complete path | |
172e41aa | 17467 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17469 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17470 | elif test "x$target" = "x$host"; then |
17471 | # We can use an host tool | |
17472 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17474 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17475 | else |
17476 | # We need a cross tool | |
5213506e RW |
17477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17478 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17479 | fi |
17480 | fi | |
0b0dc272 | 17481 | |
5213506e RW |
17482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17483 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 17484 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17485 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17486 | # We already found the complete path | |
172e41aa | 17487 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17489 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17490 | else |
17491 | # Canadian cross, just use what we found | |
5213506e RW |
17492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17493 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17494 | fi |
2abefe3d PB |
17495 | else |
17496 | ok=yes | |
17497 | case " ${configdirs} " in | |
17498 | *" binutils "*) ;; | |
17499 | *) ok=no ;; | |
17500 | esac | |
1c710c3c | 17501 | |
2abefe3d PB |
17502 | if test $ok = yes; then |
17503 | # An in-tree tool is available and we can use it | |
17504 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
17505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17506 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17507 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17508 | # We already found the complete path | |
172e41aa | 17509 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17511 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17512 | elif test "x$target" = "x$host"; then |
17513 | # We can use an host tool | |
17514 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
17515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17516 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17517 | else |
17518 | # We need a cross tool | |
5213506e RW |
17519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17520 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17521 | fi |
17522 | fi | |
0b0dc272 | 17523 | |
3b5e8ee4 IS |
17524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17525 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17526 | if test "x${build}" != "x${host}" ; then | |
17527 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17528 | # We already found the complete path | |
17529 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17531 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17532 | else | |
17533 | # Canadian cross, just use what we found | |
17534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17535 | $as_echo "pre-installed" >&6; } | |
17536 | fi | |
17537 | else | |
17538 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17539 | # We already found the complete path | |
17540 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17542 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17543 | elif test "x$target" = "x$host"; then | |
17544 | # We can use an host tool | |
17545 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17547 | $as_echo "host tool" >&6; } | |
17548 | else | |
17549 | # We need a cross tool | |
17550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17551 | $as_echo "pre-installed" >&6; } | |
17552 | fi | |
17553 | fi | |
17554 | ||
5213506e RW |
17555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17556 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 17557 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17558 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17559 | # We already found the complete path | |
172e41aa | 17560 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17562 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17563 | else |
17564 | # Canadian cross, just use what we found | |
5213506e RW |
17565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17566 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17567 | fi |
2abefe3d PB |
17568 | else |
17569 | ok=yes | |
17570 | case " ${configdirs} " in | |
17571 | *" gcc "*) ;; | |
17572 | *) ok=no ;; | |
17573 | esac | |
1c710c3c | 17574 | |
2abefe3d PB |
17575 | if test $ok = yes; then |
17576 | # An in-tree tool is available and we can use it | |
17577 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17579 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17580 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17581 | # We already found the complete path | |
172e41aa | 17582 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17584 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17585 | elif test "x$target" = "x$host"; then |
17586 | # We can use an host tool | |
17587 | GCC_FOR_TARGET='$()' | |
5213506e RW |
17588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17589 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17590 | else |
17591 | # We need a cross tool | |
5213506e RW |
17592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17593 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17594 | fi |
17595 | fi | |
0b0dc272 | 17596 | |
5213506e RW |
17597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17598 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 17599 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17600 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17601 | # We already found the complete path | |
172e41aa | 17602 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17604 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17605 | else |
17606 | # Canadian cross, just use what we found | |
5213506e RW |
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17608 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17609 | fi |
2abefe3d PB |
17610 | else |
17611 | ok=yes | |
17612 | case " ${configdirs} " in | |
17613 | *" gcc "*) ;; | |
17614 | *) ok=no ;; | |
17615 | esac | |
17616 | case ,${enable_languages}, in | |
17617 | *,fortran,*) ;; | |
17618 | *) ok=no ;; | |
17619 | esac | |
17620 | if test $ok = yes; then | |
17621 | # An in-tree tool is available and we can use it | |
17622 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17624 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17625 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17626 | # We already found the complete path | |
172e41aa | 17627 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17629 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17630 | elif test "x$target" = "x$host"; then |
17631 | # We can use an host tool | |
17632 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
17633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17634 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17635 | else |
17636 | # We need a cross tool | |
5213506e RW |
17637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17638 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17639 | fi |
17640 | fi | |
0b0dc272 | 17641 | |
632e2a07 ILT |
17642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17643 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17644 | if test "x${build}" != "x${host}" ; then | |
17645 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17646 | # We already found the complete path | |
17647 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17649 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17650 | else | |
17651 | # Canadian cross, just use what we found | |
17652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17653 | $as_echo "pre-installed" >&6; } | |
17654 | fi | |
17655 | else | |
17656 | ok=yes | |
17657 | case " ${configdirs} " in | |
17658 | *" gcc "*) ;; | |
17659 | *) ok=no ;; | |
17660 | esac | |
17661 | case ,${enable_languages}, in | |
17662 | *,go,*) ;; | |
17663 | *) ok=no ;; | |
17664 | esac | |
17665 | if test $ok = yes; then | |
17666 | # An in-tree tool is available and we can use it | |
17667 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17669 | $as_echo "just compiled" >&6; } | |
17670 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17671 | # We already found the complete path | |
17672 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17674 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17675 | elif test "x$target" = "x$host"; then | |
17676 | # We can use an host tool | |
17677 | GOC_FOR_TARGET='$(GOC)' | |
17678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17679 | $as_echo "host tool" >&6; } | |
17680 | else | |
17681 | # We need a cross tool | |
17682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17683 | $as_echo "pre-installed" >&6; } | |
17684 | fi | |
17685 | fi | |
17686 | ||
b4c522fa IB |
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17688 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17689 | if test "x${build}" != "x${host}" ; then | |
17690 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17691 | # We already found the complete path | |
17692 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17694 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17695 | else | |
17696 | # Canadian cross, just use what we found | |
17697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17698 | $as_echo "pre-installed" >&6; } | |
17699 | fi | |
17700 | else | |
17701 | ok=yes | |
17702 | case " ${configdirs} " in | |
17703 | *" gcc "*) ;; | |
17704 | *) ok=no ;; | |
17705 | esac | |
17706 | case ,${enable_languages}, in | |
17707 | *,d,*) ;; | |
17708 | *) ok=no ;; | |
17709 | esac | |
17710 | if test $ok = yes; then | |
17711 | # An in-tree tool is available and we can use it | |
17712 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17714 | $as_echo "just compiled" >&6; } | |
17715 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17716 | # We already found the complete path | |
17717 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17719 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17720 | elif test "x$target" = "x$host"; then | |
17721 | # We can use an host tool | |
17722 | GDC_FOR_TARGET='$(GDC)' | |
17723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17724 | $as_echo "host tool" >&6; } | |
17725 | else | |
17726 | # We need a cross tool | |
17727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17728 | $as_echo "pre-installed" >&6; } | |
17729 | fi | |
17730 | fi | |
17731 | ||
5213506e RW |
17732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17733 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 17734 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17735 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17736 | # We already found the complete path | |
172e41aa | 17737 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17739 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17740 | else |
17741 | # Canadian cross, just use what we found | |
5213506e RW |
17742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17743 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17744 | fi |
2abefe3d PB |
17745 | else |
17746 | ok=yes | |
17747 | case " ${configdirs} " in | |
17748 | *" ld "*) ;; | |
17749 | *) ok=no ;; | |
17750 | esac | |
1c710c3c | 17751 | |
2abefe3d PB |
17752 | if test $ok = yes; then |
17753 | # An in-tree tool is available and we can use it | |
17754 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
17755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17756 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17757 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17758 | # We already found the complete path | |
172e41aa | 17759 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17761 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17762 | elif test "x$target" = "x$host"; then |
17763 | # We can use an host tool | |
17764 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
17765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17766 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17767 | else |
17768 | # We need a cross tool | |
5213506e RW |
17769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17770 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17771 | fi |
17772 | fi | |
0b0dc272 | 17773 | |
5213506e RW |
17774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
17775 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 17776 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17777 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17778 | # We already found the complete path | |
172e41aa | 17779 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17781 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17782 | else |
17783 | # Canadian cross, just use what we found | |
5213506e RW |
17784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17785 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17786 | fi |
2abefe3d | 17787 | else |
e8b05380 PB |
17788 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17789 | # We already found the complete path | |
172e41aa | 17790 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17792 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 17793 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
17794 | # We can use an host tool |
17795 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
17796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17797 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17798 | else |
17799 | # We need a cross tool | |
5213506e RW |
17800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17801 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17802 | fi |
17803 | fi | |
0b0dc272 | 17804 | |
5213506e RW |
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
17806 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 17807 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17808 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17809 | # We already found the complete path | |
172e41aa | 17810 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17812 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17813 | else |
17814 | # Canadian cross, just use what we found | |
5213506e RW |
17815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17816 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17817 | fi |
2abefe3d PB |
17818 | else |
17819 | ok=yes | |
17820 | case " ${configdirs} " in | |
17821 | *" binutils "*) ;; | |
17822 | *) ok=no ;; | |
17823 | esac | |
1c710c3c | 17824 | |
2abefe3d PB |
17825 | if test $ok = yes; then |
17826 | # An in-tree tool is available and we can use it | |
17827 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
17828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17829 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17830 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17831 | # We already found the complete path | |
172e41aa | 17832 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17834 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17835 | elif test "x$target" = "x$host"; then |
17836 | # We can use an host tool | |
17837 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
17838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17839 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17840 | else |
17841 | # We need a cross tool | |
5213506e RW |
17842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17843 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17844 | fi |
17845 | fi | |
0b0dc272 | 17846 | |
9bccfdf5 AP |
17847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
17848 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
17849 | if test "x${build}" != "x${host}" ; then | |
17850 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17851 | # We already found the complete path | |
17852 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17854 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17855 | else | |
17856 | # Canadian cross, just use what we found | |
17857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17858 | $as_echo "pre-installed" >&6; } | |
17859 | fi | |
17860 | else | |
17861 | ok=yes | |
17862 | case " ${configdirs} " in | |
17863 | *" binutils "*) ;; | |
17864 | *) ok=no ;; | |
17865 | esac | |
17866 | ||
17867 | if test $ok = yes; then | |
17868 | # An in-tree tool is available and we can use it | |
17869 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
17870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17871 | $as_echo "just compiled" >&6; } | |
17872 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17873 | # We already found the complete path | |
17874 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17876 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17877 | elif test "x$target" = "x$host"; then | |
17878 | # We can use an host tool | |
ec8fd1c0 | 17879 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
17880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17881 | $as_echo "host tool" >&6; } | |
17882 | else | |
17883 | # We need a cross tool | |
17884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17885 | $as_echo "pre-installed" >&6; } | |
17886 | fi | |
17887 | fi | |
17888 | ||
5213506e RW |
17889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
17890 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 17891 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17892 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17893 | # We already found the complete path | |
172e41aa | 17894 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17896 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17897 | else |
17898 | # Canadian cross, just use what we found | |
5213506e RW |
17899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17900 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17901 | fi |
2abefe3d PB |
17902 | else |
17903 | ok=yes | |
17904 | case " ${configdirs} " in | |
17905 | *" binutils "*) ;; | |
17906 | *) ok=no ;; | |
17907 | esac | |
1c710c3c | 17908 | |
2abefe3d PB |
17909 | if test $ok = yes; then |
17910 | # An in-tree tool is available and we can use it | |
17911 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
17912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17913 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17914 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17915 | # We already found the complete path | |
172e41aa | 17916 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17918 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17919 | elif test "x$target" = "x$host"; then |
17920 | # We can use an host tool | |
17921 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
17922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17923 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17924 | else |
17925 | # We need a cross tool | |
5213506e RW |
17926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17927 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17928 | fi |
17929 | fi | |
0b0dc272 | 17930 | |
e4a9a572 IS |
17931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
17932 | $as_echo_n "checking where to find the target otool... " >&6; } | |
17933 | if test "x${build}" != "x${host}" ; then | |
17934 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17935 | # We already found the complete path | |
17936 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17938 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17939 | else | |
17940 | # Canadian cross, just use what we found | |
17941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17942 | $as_echo "pre-installed" >&6; } | |
17943 | fi | |
17944 | else | |
17945 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17946 | # We already found the complete path | |
17947 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17949 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17950 | elif test "x$target" = "x$host"; then | |
17951 | # We can use an host tool | |
17952 | OTOOL_FOR_TARGET='$(OTOOL)' | |
17953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17954 | $as_echo "host tool" >&6; } | |
17955 | else | |
17956 | # We need a cross tool | |
17957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17958 | $as_echo "pre-installed" >&6; } | |
17959 | fi | |
17960 | fi | |
17961 | ||
5213506e RW |
17962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
17963 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 17964 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17965 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17966 | # We already found the complete path | |
172e41aa | 17967 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17969 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17970 | else |
17971 | # Canadian cross, just use what we found | |
5213506e RW |
17972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17973 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17974 | fi |
2abefe3d PB |
17975 | else |
17976 | ok=yes | |
17977 | case " ${configdirs} " in | |
17978 | *" binutils "*) ;; | |
17979 | *) ok=no ;; | |
17980 | esac | |
1c710c3c | 17981 | |
2abefe3d PB |
17982 | if test $ok = yes; then |
17983 | # An in-tree tool is available and we can use it | |
17984 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
17985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17986 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17987 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17988 | # We already found the complete path | |
172e41aa | 17989 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17991 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17992 | elif test "x$target" = "x$host"; then |
17993 | # We can use an host tool | |
17994 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
17995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17996 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17997 | else |
17998 | # We need a cross tool | |
5213506e RW |
17999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18000 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18001 | fi |
18002 | fi | |
0b0dc272 | 18003 | |
e7a82751 RM |
18004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18005 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18006 | if test "x${build}" != "x${host}" ; then | |
18007 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18008 | # We already found the complete path | |
18009 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18011 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18012 | else | |
18013 | # Canadian cross, just use what we found | |
18014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18015 | $as_echo "pre-installed" >&6; } | |
18016 | fi | |
18017 | else | |
18018 | ok=yes | |
18019 | case " ${configdirs} " in | |
18020 | *" binutils "*) ;; | |
18021 | *) ok=no ;; | |
18022 | esac | |
18023 | ||
18024 | if test $ok = yes; then | |
18025 | # An in-tree tool is available and we can use it | |
18026 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18028 | $as_echo "just compiled" >&6; } | |
18029 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18030 | # We already found the complete path | |
18031 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18033 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18034 | elif test "x$target" = "x$host"; then | |
18035 | # We can use an host tool | |
18036 | READELF_FOR_TARGET='$(READELF)' | |
18037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18038 | $as_echo "host tool" >&6; } | |
18039 | else | |
18040 | # We need a cross tool | |
18041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18042 | $as_echo "pre-installed" >&6; } | |
18043 | fi | |
18044 | fi | |
18045 | ||
5213506e RW |
18046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18047 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 18048 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18049 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18050 | # We already found the complete path | |
172e41aa | 18051 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18053 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18054 | else |
18055 | # Canadian cross, just use what we found | |
5213506e RW |
18056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18057 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18058 | fi |
2abefe3d PB |
18059 | else |
18060 | ok=yes | |
18061 | case " ${configdirs} " in | |
18062 | *" binutils "*) ;; | |
18063 | *) ok=no ;; | |
18064 | esac | |
1c710c3c | 18065 | |
2abefe3d PB |
18066 | if test $ok = yes; then |
18067 | # An in-tree tool is available and we can use it | |
455c8f48 | 18068 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
18069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18070 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18071 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18072 | # We already found the complete path | |
172e41aa | 18073 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18075 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18076 | elif test "x$target" = "x$host"; then |
18077 | # We can use an host tool | |
18078 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
18079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18080 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18081 | else |
18082 | # We need a cross tool | |
5213506e RW |
18083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18084 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18085 | fi |
18086 | fi | |
0b0dc272 | 18087 | |
5213506e RW |
18088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18089 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 18090 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18091 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18092 | # We already found the complete path | |
172e41aa | 18093 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18095 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18096 | else |
18097 | # Canadian cross, just use what we found | |
5213506e RW |
18098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18099 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18100 | fi |
2abefe3d PB |
18101 | else |
18102 | ok=yes | |
18103 | case " ${configdirs} " in | |
18104 | *" binutils "*) ;; | |
18105 | *) ok=no ;; | |
18106 | esac | |
1c710c3c | 18107 | |
2abefe3d PB |
18108 | if test $ok = yes; then |
18109 | # An in-tree tool is available and we can use it | |
18110 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
18111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18112 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18113 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18114 | # We already found the complete path | |
172e41aa | 18115 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18117 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18118 | elif test "x$target" = "x$host"; then |
18119 | # We can use an host tool | |
18120 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
18121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18122 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18123 | else |
18124 | # We need a cross tool | |
5213506e RW |
18125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18126 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 18127 | fi |
671aa708 | 18128 | fi |
be912515 | 18129 | |
5213506e RW |
18130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18131 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
18132 | if test "x${build}" != "x${host}" ; then |
18133 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18134 | # We already found the complete path | |
18135 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18137 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18138 | else |
18139 | # Canadian cross, just use what we found | |
5213506e RW |
18140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18141 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18142 | fi |
18143 | else | |
18144 | ok=yes | |
18145 | case " ${configdirs} " in | |
18146 | *" binutils "*) ;; | |
18147 | *) ok=no ;; | |
18148 | esac | |
18149 | ||
18150 | if test $ok = yes; then | |
18151 | # An in-tree tool is available and we can use it | |
18152 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
18153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18154 | $as_echo "just compiled" >&6; } | |
901119ae KT |
18155 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18156 | # We already found the complete path | |
18157 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18159 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18160 | elif test "x$target" = "x$host"; then |
18161 | # We can use an host tool | |
18162 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
18163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18164 | $as_echo "host tool" >&6; } | |
901119ae KT |
18165 | else |
18166 | # We need a cross tool | |
5213506e RW |
18167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18168 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18169 | fi |
18170 | fi | |
18171 | ||
be912515 NN |
18172 | |
18173 | ||
2abefe3d | 18174 | |
0b0dc272 | 18175 | |
671aa708 NN |
18176 | # Certain tools may need extra flags. |
18177 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18178 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18179 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18180 | ||
2abefe3d PB |
18181 | # When building target libraries, except in a Canadian cross, we use |
18182 | # the same toolchain as the compiler we just built. | |
18183 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18184 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18185 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18186 | if test $host = $build; then | |
18187 | case " $configdirs " in | |
18188 | *" gcc "*) | |
18189 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18190 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18191 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18192 | ;; | |
18193 | esac | |
18194 | fi | |
18195 | ||
18196 | ||
18197 | ||
18198 | ||
18199 | ||
5213506e RW |
18200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18201 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18202 | # Check whether --enable-maintainer-mode was given. | |
18203 | if test "${enable_maintainer_mode+set}" = set; then : | |
18204 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
18205 | else |
18206 | USE_MAINTAINER_MODE=no | |
5213506e RW |
18207 | fi |
18208 | ||
18209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18210 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
18211 | |
18212 | ||
18213 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18214 | MAINTAINER_MODE_TRUE= | |
18215 | MAINTAINER_MODE_FALSE='#' | |
18216 | else | |
18217 | MAINTAINER_MODE_TRUE='#' | |
18218 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 18219 | fi |
ee03dc5e AO |
18220 | MAINT=$MAINTAINER_MODE_TRUE |
18221 | ||
2805b53a NN |
18222 | # --------------------- |
18223 | # GCC bootstrap support | |
18224 | # --------------------- | |
18225 | ||
18226 | # Stage specific cflags for build. | |
18227 | stage1_cflags="-g" | |
18228 | case $build in | |
18229 | vax-*-*) | |
18230 | case ${GCC} in | |
18231 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18232 | *) stage1_cflags="-g -J" ;; | |
18233 | esac ;; | |
2805b53a NN |
18234 | esac |
18235 | ||
0b50988a | 18236 | |
2805b53a | 18237 | |
8efea775 | 18238 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
18239 | # Check whether --enable-stage1-checking was given. |
18240 | if test "${enable_stage1_checking+set}" = set; then : | |
18241 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 18242 | else |
e643dc23 | 18243 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
18244 | # For --disable-checking or implicit --enable-checking=release, avoid |
18245 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18246 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
18247 | case $BUILD_CONFIG in |
18248 | *lto*) | |
7db11a5a JJ |
18249 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18250 | *) | |
18251 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 18252 | esac |
7db11a5a JJ |
18253 | if test "x$enable_checking" = x && \ |
18254 | test -d ${srcdir}/gcc && \ | |
18255 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 18256 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 18257 | fi |
8efea775 | 18258 | else |
e643dc23 | 18259 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 18260 | fi |
5213506e | 18261 | fi |
8efea775 PB |
18262 | |
18263 | ||
2aeb72e9 | 18264 | |
5213506e RW |
18265 | # Enable -Werror in bootstrap stage2 and later. |
18266 | # Check whether --enable-werror was given. | |
18267 | if test "${enable_werror+set}" = set; then : | |
18268 | enableval=$enable_werror; | |
09a9c095 NN |
18269 | case ${enable_werror} in |
18270 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18271 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
18272 | esac |
18273 | ||
afd88efc ML |
18274 | else |
18275 | ||
01c712cb ML |
18276 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18277 | case $BUILD_CONFIG in | |
18278 | bootstrap-debug) | |
18279 | stage2_werror_flag="--enable-werror-always" ;; | |
18280 | "") | |
18281 | stage2_werror_flag="--enable-werror-always" ;; | |
18282 | esac | |
18283 | fi | |
18284 | ||
afd88efc ML |
18285 | fi |
18286 | ||
18287 | ||
01c712cb | 18288 | |
2805b53a | 18289 | |
f2689b09 SE |
18290 | # Specify what files to not compare during bootstrap. |
18291 | ||
18292 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
18293 | case "$target" in | |
18294 | hppa*64*-*-hpux*) ;; | |
4f943869 | 18295 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; |
f2689b09 SE |
18296 | esac |
18297 | ||
18298 | ||
5213506e RW |
18299 | ac_config_files="$ac_config_files Makefile" |
18300 | ||
1c710c3c | 18301 | cat >confcache <<\_ACEOF |
671aa708 NN |
18302 | # This file is a shell script that caches the results of configure |
18303 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
18304 | # scripts and configure runs, see configure's option --config-cache. |
18305 | # It is not useful on other systems. If it contains results you don't | |
18306 | # want to keep, you may remove or edit it. | |
671aa708 | 18307 | # |
1c710c3c DJ |
18308 | # config.status only pays attention to the cache file if you give it |
18309 | # the --recheck option to rerun configure. | |
671aa708 | 18310 | # |
1c710c3c DJ |
18311 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18312 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18313 | # following values. | |
18314 | ||
18315 | _ACEOF | |
18316 | ||
671aa708 NN |
18317 | # The following way of writing the cache mishandles newlines in values, |
18318 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 18319 | # So, we kill variables containing newlines. |
671aa708 NN |
18320 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18321 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
18322 | ( |
18323 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18324 | eval ac_val=\$$ac_var | |
18325 | case $ac_val in #( | |
18326 | *${as_nl}*) | |
18327 | case $ac_var in #( | |
18328 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18329 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18330 | esac | |
18331 | case $ac_var in #( | |
18332 | _ | IFS | as_nl) ;; #( | |
18333 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18334 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18335 | esac ;; | |
18336 | esac | |
18337 | done | |
18338 | ||
1c710c3c | 18339 | (set) 2>&1 | |
5213506e RW |
18340 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18341 | *${as_nl}ac_space=\ *) | |
18342 | # `set' does not quote correctly, so add quotes: double-quote | |
18343 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
18344 | sed -n \ |
18345 | "s/'/'\\\\''/g; | |
18346 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 18347 | ;; #( |
1c710c3c DJ |
18348 | *) |
18349 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 18350 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 18351 | ;; |
5213506e RW |
18352 | esac | |
18353 | sort | |
18354 | ) | | |
1c710c3c | 18355 | sed ' |
5213506e | 18356 | /^ac_cv_env_/b end |
1c710c3c | 18357 | t clear |
5213506e | 18358 | :clear |
1c710c3c DJ |
18359 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18360 | t end | |
5213506e RW |
18361 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18362 | :end' >>confcache | |
18363 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18364 | if test -w "$cache_file"; then | |
22e05272 | 18365 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
18366 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18367 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
18368 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18369 | cat confcache >"$cache_file" | |
18370 | else | |
18371 | case $cache_file in #( | |
18372 | */* | ?:*) | |
18373 | mv -f confcache "$cache_file"$$ && | |
18374 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18375 | *) | |
18376 | mv -f confcache "$cache_file" ;; | |
18377 | esac | |
18378 | fi | |
18379 | fi | |
671aa708 | 18380 | else |
5213506e RW |
18381 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18382 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 18383 | fi |
4977bab6 | 18384 | fi |
671aa708 | 18385 | rm -f confcache |
79c06341 | 18386 | |
671aa708 NN |
18387 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18388 | # Let make expand exec_prefix. | |
18389 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 18390 | |
671aa708 NN |
18391 | # Transform confdefs.h into DEFS. |
18392 | # Protect against shell expansion while executing Makefile rules. | |
18393 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
18394 | # |
18395 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 18396 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 18397 | # look for a macro that doesn't take arguments. |
5213506e RW |
18398 | ac_script=' |
18399 | :mline | |
18400 | /\\$/{ | |
18401 | N | |
18402 | s,\\\n,, | |
18403 | b mline | |
18404 | } | |
1c710c3c | 18405 | t clear |
5213506e RW |
18406 | :clear |
18407 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 18408 | t quote |
5213506e | 18409 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 18410 | t quote |
5213506e RW |
18411 | b any |
18412 | :quote | |
18413 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18414 | s/\[/\\&/g | |
18415 | s/\]/\\&/g | |
18416 | s/\$/$$/g | |
18417 | H | |
18418 | :any | |
18419 | ${ | |
18420 | g | |
18421 | s/^\n// | |
18422 | s/\n/ /g | |
18423 | p | |
18424 | } | |
18425 | ' | |
18426 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
18427 | |
18428 | ||
18429 | ac_libobjs= | |
18430 | ac_ltlibobjs= | |
22e05272 | 18431 | U= |
1c710c3c DJ |
18432 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18433 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
18434 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18435 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18436 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18437 | # will be set to the directory where LIBOBJS objects are built. | |
18438 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18439 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
18440 | done |
18441 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 18442 | |
1c710c3c | 18443 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 18444 | |
af71363e | 18445 | |
1c710c3c | 18446 | |
22e05272 | 18447 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 18448 | ac_write_fail=0 |
1c710c3c DJ |
18449 | ac_clean_files_save=$ac_clean_files |
18450 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
18451 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18452 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18453 | as_write_fail=0 | |
18454 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
18455 | #! $SHELL |
18456 | # Generated by $as_me. | |
671aa708 | 18457 | # Run this file to recreate the current configuration. |
671aa708 | 18458 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 18459 | # configure, is in config.log if it exists. |
0b0dc272 | 18460 | |
1c710c3c DJ |
18461 | debug=false |
18462 | ac_cs_recheck=false | |
18463 | ac_cs_silent=false | |
1c710c3c | 18464 | |
5213506e RW |
18465 | SHELL=\${CONFIG_SHELL-$SHELL} |
18466 | export SHELL | |
18467 | _ASEOF | |
18468 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18469 | ## -------------------- ## | |
18470 | ## M4sh Initialization. ## | |
18471 | ## -------------------- ## | |
18472 | ||
18473 | # Be more Bourne compatible | |
18474 | DUALCASE=1; export DUALCASE # for MKS sh | |
18475 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18476 | emulate sh |
18477 | NULLCMD=: | |
5213506e | 18478 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
18479 | # is contrary to our usage. Disable this feature. |
18480 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
18481 | setopt NO_GLOB_SUBST |
18482 | else | |
18483 | case `(set -o) 2>/dev/null` in #( | |
18484 | *posix*) : | |
18485 | set -o posix ;; #( | |
18486 | *) : | |
18487 | ;; | |
18488 | esac | |
1c710c3c | 18489 | fi |
1c710c3c | 18490 | |
5213506e RW |
18491 | |
18492 | as_nl=' | |
18493 | ' | |
18494 | export as_nl | |
18495 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18496 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18497 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18498 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18499 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18500 | # but without wasting forks for bash or zsh. | |
18501 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18502 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18503 | as_echo='print -r --' | |
18504 | as_echo_n='print -rn --' | |
18505 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18506 | as_echo='printf %s\n' | |
18507 | as_echo_n='printf %s' | |
18508 | else | |
18509 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18510 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18511 | as_echo_n='/usr/ucb/echo -n' | |
18512 | else | |
18513 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18514 | as_echo_n_body='eval | |
18515 | arg=$1; | |
18516 | case $arg in #( | |
18517 | *"$as_nl"*) | |
18518 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18519 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18520 | esac; | |
18521 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18522 | ' | |
18523 | export as_echo_n_body | |
18524 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18525 | fi | |
18526 | export as_echo_body | |
18527 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
18528 | fi |
18529 | ||
5213506e RW |
18530 | # The user is always right. |
18531 | if test "${PATH_SEPARATOR+set}" != set; then | |
18532 | PATH_SEPARATOR=: | |
18533 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18534 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18535 | PATH_SEPARATOR=';' | |
18536 | } | |
18537 | fi | |
18538 | ||
18539 | ||
18540 | # IFS | |
18541 | # We need space, tab and new line, in precisely that order. Quoting is | |
18542 | # there to prevent editors from complaining about space-tab. | |
18543 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18544 | # splitting by setting IFS to empty value.) | |
18545 | IFS=" "" $as_nl" | |
18546 | ||
18547 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 18548 | as_myself= |
5213506e RW |
18549 | case $0 in #(( |
18550 | *[\\/]* ) as_myself=$0 ;; | |
18551 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18552 | for as_dir in $PATH | |
18553 | do | |
18554 | IFS=$as_save_IFS | |
18555 | test -z "$as_dir" && as_dir=. | |
18556 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18557 | done | |
18558 | IFS=$as_save_IFS | |
18559 | ||
18560 | ;; | |
18561 | esac | |
18562 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18563 | # in which case we are not to be found in the path. | |
18564 | if test "x$as_myself" = x; then | |
18565 | as_myself=$0 | |
18566 | fi | |
18567 | if test ! -f "$as_myself"; then | |
18568 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18569 | exit 1 | |
18570 | fi | |
1c710c3c | 18571 | |
5213506e RW |
18572 | # Unset variables that we do not need and which cause bugs (e.g. in |
18573 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18574 | # suppresses any "Segmentation fault" message there. '((' could | |
18575 | # trigger a bug in pdksh 5.2.14. | |
18576 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18577 | do eval test x\${$as_var+set} = xset \ | |
18578 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18579 | done | |
1c710c3c DJ |
18580 | PS1='$ ' |
18581 | PS2='> ' | |
18582 | PS4='+ ' | |
18583 | ||
18584 | # NLS nuisances. | |
5213506e RW |
18585 | LC_ALL=C |
18586 | export LC_ALL | |
18587 | LANGUAGE=C | |
18588 | export LANGUAGE | |
18589 | ||
18590 | # CDPATH. | |
18591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18592 | ||
18593 | ||
22e05272 JM |
18594 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18595 | # ---------------------------------------- | |
5213506e RW |
18596 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18597 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 18598 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
18599 | as_fn_error () |
18600 | { | |
22e05272 JM |
18601 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18602 | if test "$4"; then | |
18603 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18604 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 18605 | fi |
22e05272 | 18606 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
18607 | as_fn_exit $as_status |
18608 | } # as_fn_error | |
18609 | ||
18610 | ||
18611 | # as_fn_set_status STATUS | |
18612 | # ----------------------- | |
18613 | # Set $? to STATUS, without forking. | |
18614 | as_fn_set_status () | |
18615 | { | |
18616 | return $1 | |
18617 | } # as_fn_set_status | |
18618 | ||
18619 | # as_fn_exit STATUS | |
18620 | # ----------------- | |
18621 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18622 | as_fn_exit () | |
18623 | { | |
18624 | set +e | |
18625 | as_fn_set_status $1 | |
18626 | exit $1 | |
18627 | } # as_fn_exit | |
18628 | ||
18629 | # as_fn_unset VAR | |
18630 | # --------------- | |
18631 | # Portably unset VAR. | |
18632 | as_fn_unset () | |
18633 | { | |
18634 | { eval $1=; unset $1;} | |
18635 | } | |
18636 | as_unset=as_fn_unset | |
18637 | # as_fn_append VAR VALUE | |
18638 | # ---------------------- | |
18639 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18640 | # advantage of any shell optimizations that allow amortized linear growth over | |
18641 | # repeated appends, instead of the typical quadratic growth present in naive | |
18642 | # implementations. | |
18643 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18644 | eval 'as_fn_append () | |
18645 | { | |
18646 | eval $1+=\$2 | |
18647 | }' | |
18648 | else | |
18649 | as_fn_append () | |
18650 | { | |
18651 | eval $1=\$$1\$2 | |
18652 | } | |
18653 | fi # as_fn_append | |
18654 | ||
18655 | # as_fn_arith ARG... | |
18656 | # ------------------ | |
18657 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18658 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18659 | # must be portable across $(()) and expr. | |
18660 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18661 | eval 'as_fn_arith () | |
18662 | { | |
18663 | as_val=$(( $* )) | |
18664 | }' | |
18665 | else | |
18666 | as_fn_arith () | |
18667 | { | |
18668 | as_val=`expr "$@" || test $? -eq 1` | |
18669 | } | |
18670 | fi # as_fn_arith | |
18671 | ||
1c710c3c | 18672 | |
5213506e RW |
18673 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18674 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
18675 | as_expr=expr |
18676 | else | |
18677 | as_expr=false | |
18678 | fi | |
18679 | ||
5213506e | 18680 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
18681 | as_basename=basename |
18682 | else | |
18683 | as_basename=false | |
18684 | fi | |
18685 | ||
5213506e RW |
18686 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18687 | as_dirname=dirname | |
18688 | else | |
18689 | as_dirname=false | |
18690 | fi | |
1c710c3c | 18691 | |
5213506e | 18692 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
18693 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18694 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
18695 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18696 | $as_echo X/"$0" | | |
18697 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18698 | s//\1/ | |
18699 | q | |
18700 | } | |
18701 | /^X\/\(\/\/\)$/{ | |
18702 | s//\1/ | |
18703 | q | |
18704 | } | |
18705 | /^X\/\(\/\).*/{ | |
18706 | s//\1/ | |
18707 | q | |
18708 | } | |
18709 | s/.*/./; q'` | |
2aeb72e9 | 18710 | |
2aeb72e9 DD |
18711 | # Avoid depending upon Character Ranges. |
18712 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18713 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18714 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18715 | as_cr_digits='0123456789' | |
18716 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18717 | ||
5213506e RW |
18718 | ECHO_C= ECHO_N= ECHO_T= |
18719 | case `echo -n x` in #((((( | |
18720 | -n*) | |
18721 | case `echo 'xy\c'` in | |
18722 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18723 | xy) ECHO_C='\c';; | |
18724 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18725 | ECHO_T=' ';; | |
18726 | esac;; | |
18727 | *) | |
18728 | ECHO_N='-n';; | |
1c710c3c DJ |
18729 | esac |
18730 | ||
5213506e RW |
18731 | rm -f conf$$ conf$$.exe conf$$.file |
18732 | if test -d conf$$.dir; then | |
18733 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 18734 | else |
5213506e RW |
18735 | rm -f conf$$.dir |
18736 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 18737 | fi |
5213506e RW |
18738 | if (echo >conf$$.file) 2>/dev/null; then |
18739 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 18740 | as_ln_s='ln -s' |
5213506e RW |
18741 | # ... but there are two gotchas: |
18742 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18743 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 18744 | # In both cases, we have to default to `cp -pR'. |
5213506e | 18745 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 18746 | as_ln_s='cp -pR' |
5213506e RW |
18747 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18748 | as_ln_s=ln | |
18749 | else | |
22e05272 | 18750 | as_ln_s='cp -pR' |
2aeb72e9 | 18751 | fi |
1c710c3c | 18752 | else |
22e05272 | 18753 | as_ln_s='cp -pR' |
1c710c3c | 18754 | fi |
5213506e RW |
18755 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18756 | rmdir conf$$.dir 2>/dev/null | |
18757 | ||
18758 | ||
18759 | # as_fn_mkdir_p | |
18760 | # ------------- | |
18761 | # Create "$as_dir" as a directory, including parents if necessary. | |
18762 | as_fn_mkdir_p () | |
18763 | { | |
18764 | ||
18765 | case $as_dir in #( | |
18766 | -*) as_dir=./$as_dir;; | |
18767 | esac | |
18768 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18769 | as_dirs= | |
18770 | while :; do | |
18771 | case $as_dir in #( | |
18772 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18773 | *) as_qdir=$as_dir;; | |
18774 | esac | |
18775 | as_dirs="'$as_qdir' $as_dirs" | |
18776 | as_dir=`$as_dirname -- "$as_dir" || | |
18777 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18778 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18779 | X"$as_dir" : 'X\(//\)$' \| \ | |
18780 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18781 | $as_echo X"$as_dir" | | |
18782 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18783 | s//\1/ | |
18784 | q | |
18785 | } | |
18786 | /^X\(\/\/\)[^/].*/{ | |
18787 | s//\1/ | |
18788 | q | |
18789 | } | |
18790 | /^X\(\/\/\)$/{ | |
18791 | s//\1/ | |
18792 | q | |
18793 | } | |
18794 | /^X\(\/\).*/{ | |
18795 | s//\1/ | |
18796 | q | |
18797 | } | |
18798 | s/.*/./; q'` | |
18799 | test -d "$as_dir" && break | |
18800 | done | |
18801 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 18802 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 18803 | |
1c710c3c | 18804 | |
5213506e | 18805 | } # as_fn_mkdir_p |
1c710c3c | 18806 | if mkdir -p . 2>/dev/null; then |
5213506e | 18807 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
18808 | else |
18809 | test -d ./-p && rmdir ./-p | |
18810 | as_mkdir_p=false | |
18811 | fi | |
18812 | ||
22e05272 JM |
18813 | |
18814 | # as_fn_executable_p FILE | |
18815 | # ----------------------- | |
18816 | # Test if FILE is an executable regular file. | |
18817 | as_fn_executable_p () | |
18818 | { | |
18819 | test -f "$1" && test -x "$1" | |
18820 | } # as_fn_executable_p | |
18821 | as_test_x='test -x' | |
18822 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
18823 | |
18824 | # Sed expression to map a string onto a valid CPP name. | |
18825 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18826 | ||
18827 | # Sed expression to map a string onto a valid variable name. | |
18828 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18829 | ||
18830 | ||
1c710c3c | 18831 | exec 6>&1 |
5213506e RW |
18832 | ## ----------------------------------- ## |
18833 | ## Main body of $CONFIG_STATUS script. ## | |
18834 | ## ----------------------------------- ## | |
18835 | _ASEOF | |
18836 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18837 | ||
18838 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18839 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 18840 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
18841 | # values after options handling. |
18842 | ac_log=" | |
1c710c3c | 18843 | This file was extended by $as_me, which was |
22e05272 | 18844 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
18845 | |
18846 | CONFIG_FILES = $CONFIG_FILES | |
18847 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18848 | CONFIG_LINKS = $CONFIG_LINKS | |
18849 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18850 | $ $0 $@ | |
18851 | ||
5213506e RW |
18852 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18853 | " | |
18854 | ||
1c710c3c DJ |
18855 | _ACEOF |
18856 | ||
5213506e RW |
18857 | case $ac_config_files in *" |
18858 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18859 | esac | |
1c710c3c | 18860 | |
2aeb72e9 | 18861 | |
2aeb72e9 | 18862 | |
5213506e RW |
18863 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18864 | # Files that config.status was made for. | |
18865 | config_files="$ac_config_files" | |
1c710c3c | 18866 | |
5213506e | 18867 | _ACEOF |
2aeb72e9 | 18868 | |
5213506e | 18869 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 18870 | ac_cs_usage="\ |
5213506e RW |
18871 | \`$as_me' instantiates files and other configuration actions |
18872 | from templates according to the current configuration. Unless the files | |
18873 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 18874 | |
5213506e | 18875 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
18876 | |
18877 | -h, --help print this help, then exit | |
5213506e | 18878 | -V, --version print version number and configuration settings, then exit |
22e05272 | 18879 | --config print configuration, then exit |
5213506e RW |
18880 | -q, --quiet, --silent |
18881 | do not print progress messages | |
1c710c3c DJ |
18882 | -d, --debug don't remove temporary files |
18883 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
18884 | --file=FILE[:TEMPLATE] |
18885 | instantiate the configuration file FILE | |
1c710c3c DJ |
18886 | |
18887 | Configuration files: | |
18888 | $config_files | |
18889 | ||
5213506e | 18890 | Report bugs to the package provider." |
2aeb72e9 | 18891 | |
5213506e RW |
18892 | _ACEOF |
18893 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18894 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
18895 | ac_cs_version="\\ |
18896 | config.status | |
22e05272 JM |
18897 | configured by $0, generated by GNU Autoconf 2.69, |
18898 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 18899 | |
22e05272 | 18900 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
18901 | This config.status script is free software; the Free Software Foundation |
18902 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
18903 | |
18904 | ac_pwd='$ac_pwd' | |
18905 | srcdir='$srcdir' | |
18906 | INSTALL='$INSTALL' | |
87264276 | 18907 | AWK='$AWK' |
5213506e | 18908 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
18909 | _ACEOF |
18910 | ||
5213506e RW |
18911 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18912 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
18913 | ac_need_defaults=: |
18914 | while test $# != 0 | |
a4b9e93e | 18915 | do |
1c710c3c | 18916 | case $1 in |
22e05272 | 18917 | --*=?*) |
5213506e RW |
18918 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18919 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
18920 | ac_shift=: |
18921 | ;; | |
22e05272 JM |
18922 | --*=) |
18923 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18924 | ac_optarg= | |
18925 | ac_shift=: | |
18926 | ;; | |
5213506e | 18927 | *) |
1c710c3c DJ |
18928 | ac_option=$1 |
18929 | ac_optarg=$2 | |
18930 | ac_shift=shift | |
18931 | ;; | |
1c710c3c DJ |
18932 | esac |
18933 | ||
18934 | case $ac_option in | |
18935 | # Handling of the options. | |
671aa708 | 18936 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 18937 | ac_cs_recheck=: ;; |
5213506e RW |
18938 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18939 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
18940 | --config | --confi | --conf | --con | --co | --c ) |
18941 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 18942 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
18943 | debug=: ;; |
18944 | --file | --fil | --fi | --f ) | |
18945 | $ac_shift | |
5213506e RW |
18946 | case $ac_optarg in |
18947 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 18948 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
18949 | esac |
18950 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 18951 | ac_need_defaults=false;; |
5213506e RW |
18952 | --he | --h | --help | --hel | -h ) |
18953 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
18954 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18955 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18956 | ac_cs_silent=: ;; | |
18957 | ||
18958 | # This is an error. | |
22e05272 | 18959 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 18960 | Try \`$0 --help' for more information." ;; |
1c710c3c | 18961 | |
5213506e RW |
18962 | *) as_fn_append ac_config_targets " $1" |
18963 | ac_need_defaults=false ;; | |
1c710c3c | 18964 | |
0b0dc272 | 18965 | esac |
1c710c3c | 18966 | shift |
0b0dc272 AM |
18967 | done |
18968 | ||
1c710c3c | 18969 | ac_configure_extra_args= |
0b0dc272 | 18970 | |
1c710c3c DJ |
18971 | if $ac_cs_silent; then |
18972 | exec 6>/dev/null | |
18973 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18974 | fi | |
0b0dc272 | 18975 | |
1c710c3c | 18976 | _ACEOF |
5213506e | 18977 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 18978 | if \$ac_cs_recheck; then |
22e05272 | 18979 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
18980 | shift |
18981 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18982 | CONFIG_SHELL='$SHELL' | |
18983 | export CONFIG_SHELL | |
18984 | exec "\$@" | |
1c710c3c DJ |
18985 | fi |
18986 | ||
18987 | _ACEOF | |
5213506e RW |
18988 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18989 | exec 5>>config.log | |
18990 | { | |
18991 | echo | |
18992 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18993 | ## Running $as_me. ## | |
18994 | _ASBOX | |
18995 | $as_echo "$ac_log" | |
18996 | } >&5 | |
1c710c3c | 18997 | |
5213506e RW |
18998 | _ACEOF |
18999 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
19000 | # |
19001 | # INIT-COMMANDS | |
19002 | # | |
19003 | extrasub_build="$extrasub_build" | |
19004 | extrasub_host="$extrasub_host" | |
19005 | extrasub_target="$extrasub_target" | |
19006 | ||
5213506e | 19007 | _ACEOF |
1c710c3c | 19008 | |
5213506e | 19009 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 19010 | |
5213506e | 19011 | # Handling of arguments. |
1c710c3c DJ |
19012 | for ac_config_target in $ac_config_targets |
19013 | do | |
5213506e RW |
19014 | case $ac_config_target in |
19015 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19016 | ||
22e05272 | 19017 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
19018 | esac |
19019 | done | |
19020 | ||
5213506e | 19021 | |
1c710c3c DJ |
19022 | # If the user did not use the arguments to specify the items to instantiate, |
19023 | # then the envvar interface is used. Set only those that are not. | |
19024 | # We use the long form for the default assignment because of an extremely | |
19025 | # bizarre bug on SunOS 4.1.3. | |
19026 | if $ac_need_defaults; then | |
19027 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19028 | fi | |
19029 | ||
19030 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 19031 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 19032 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
19033 | # Hook for its removal unless debugging. |
19034 | # Note that there is a small window in which the directory will not be cleaned: | |
19035 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
19036 | $debug || |
19037 | { | |
22e05272 | 19038 | tmp= ac_tmp= |
5213506e | 19039 | trap 'exit_status=$? |
22e05272 JM |
19040 | : "${ac_tmp:=$tmp}" |
19041 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
19042 | ' 0 |
19043 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 19044 | } |
1c710c3c DJ |
19045 | # Create a (secure) tmp directory for tmp files. |
19046 | ||
19047 | { | |
5213506e | 19048 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 19049 | test -d "$tmp" |
1c710c3c DJ |
19050 | } || |
19051 | { | |
5213506e RW |
19052 | tmp=./conf$$-$RANDOM |
19053 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
19054 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19055 | ac_tmp=$tmp | |
5213506e RW |
19056 | |
19057 | # Set up the scripts for CONFIG_FILES section. | |
19058 | # No need to generate them if there are no CONFIG_FILES. | |
19059 | # This happens for instance with `./config.status config.h'. | |
19060 | if test -n "$CONFIG_FILES"; then | |
19061 | ||
19062 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19063 | ac_cs_awk_getline=: | |
19064 | ac_cs_awk_pipe_init= | |
19065 | ac_cs_awk_read_file=' | |
19066 | while ((getline aline < (F[key])) > 0) | |
19067 | print(aline) | |
19068 | close(F[key])' | |
19069 | ac_cs_awk_pipe_fini= | |
19070 | else | |
19071 | ac_cs_awk_getline=false | |
19072 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19073 | ac_cs_awk_read_file=' | |
19074 | print "|#_!!_#|" | |
19075 | print "cat " F[key] " &&" | |
19076 | '$ac_cs_awk_pipe_init | |
19077 | # The final `:' finishes the AND list. | |
19078 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19079 | fi | |
19080 | ac_cr=`echo X | tr X '\015'` | |
19081 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19082 | # But we know of no other shell where ac_cr would be empty at this | |
19083 | # point, so we can use a bashism as a fallback. | |
19084 | if test "x$ac_cr" = x; then | |
19085 | eval ac_cr=\$\'\\r\' | |
19086 | fi | |
19087 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19088 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 19089 | ac_cs_awk_cr='\\r' |
5213506e RW |
19090 | else |
19091 | ac_cs_awk_cr=$ac_cr | |
19092 | fi | |
19093 | ||
22e05272 | 19094 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
19095 | _ACEOF |
19096 | ||
19097 | # Create commands to substitute file output variables. | |
1c710c3c | 19098 | { |
5213506e | 19099 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 19100 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
19101 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19102 | echo "_ACAWK" && | |
19103 | echo "_ACEOF" | |
19104 | } >conf$$files.sh && | |
19105 | . ./conf$$files.sh || | |
22e05272 | 19106 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19107 | rm -f conf$$files.sh |
1c710c3c | 19108 | |
5213506e RW |
19109 | { |
19110 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19111 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19112 | echo "_ACEOF" | |
19113 | } >conf$$subs.sh || | |
22e05272 JM |
19114 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19115 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
19116 | ac_delim='%!_!# ' |
19117 | for ac_last_try in false false false false false :; do | |
19118 | . ./conf$$subs.sh || | |
22e05272 | 19119 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19120 | |
19121 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19122 | if test $ac_delim_n = $ac_delim_num; then | |
19123 | break | |
19124 | elif $ac_last_try; then | |
22e05272 | 19125 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19126 | else |
19127 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19128 | fi | |
19129 | done | |
19130 | rm -f conf$$subs.sh | |
19131 | ||
19132 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19133 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 19134 | _ACEOF |
5213506e RW |
19135 | sed -n ' |
19136 | h | |
19137 | s/^/S["/; s/!.*/"]=/ | |
19138 | p | |
19139 | g | |
19140 | s/^[^!]*!// | |
19141 | :repl | |
19142 | t repl | |
19143 | s/'"$ac_delim"'$// | |
19144 | t delim | |
19145 | :nl | |
19146 | h | |
22e05272 | 19147 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19148 | t more1 |
19149 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19150 | p | |
19151 | n | |
19152 | b repl | |
19153 | :more1 | |
19154 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19155 | p | |
19156 | g | |
19157 | s/.\{148\}// | |
19158 | t nl | |
19159 | :delim | |
19160 | h | |
22e05272 | 19161 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19162 | t more2 |
19163 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19164 | p | |
19165 | b | |
19166 | :more2 | |
19167 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19168 | p | |
19169 | g | |
19170 | s/.\{148\}// | |
19171 | t delim | |
19172 | ' <conf$$subs.awk | sed ' | |
19173 | /^[^""]/{ | |
19174 | N | |
19175 | s/\n// | |
19176 | } | |
19177 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19178 | rm -f conf$$subs.awk | |
19179 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19180 | _ACAWK | |
22e05272 | 19181 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
19182 | for (key in S) S_is_set[key] = 1 |
19183 | FS = "\a" | |
19184 | \$ac_cs_awk_pipe_init | |
19185 | } | |
19186 | { | |
19187 | line = $ 0 | |
19188 | nfields = split(line, field, "@") | |
19189 | substed = 0 | |
19190 | len = length(field[1]) | |
19191 | for (i = 2; i < nfields; i++) { | |
19192 | key = field[i] | |
19193 | keylen = length(key) | |
19194 | if (S_is_set[key]) { | |
19195 | value = S[key] | |
19196 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19197 | len += length(value) + length(field[++i]) | |
19198 | substed = 1 | |
19199 | } else | |
19200 | len += 1 + keylen | |
19201 | } | |
19202 | if (nfields == 3 && !substed) { | |
19203 | key = field[2] | |
19204 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19205 | \$ac_cs_awk_read_file | |
19206 | next | |
19207 | } | |
19208 | } | |
19209 | print line | |
19210 | } | |
19211 | \$ac_cs_awk_pipe_fini | |
19212 | _ACAWK | |
19213 | _ACEOF | |
19214 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19215 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19216 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19217 | else | |
19218 | cat | |
22e05272 JM |
19219 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19220 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
19221 | _ACEOF |
19222 | ||
22e05272 JM |
19223 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19224 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
19225 | # trailing colons and then remove the whole line if VPATH becomes empty |
19226 | # (actually we leave an empty line to preserve line numbers). | |
19227 | if test "x$srcdir" = x.; then | |
22e05272 JM |
19228 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19229 | h | |
19230 | s/// | |
19231 | s/^/:/ | |
19232 | s/[ ]*$/:/ | |
19233 | s/:\$(srcdir):/:/g | |
19234 | s/:\${srcdir}:/:/g | |
19235 | s/:@srcdir@:/:/g | |
19236 | s/^:*// | |
5213506e | 19237 | s/:*$// |
22e05272 JM |
19238 | x |
19239 | s/\(=[ ]*\).*/\1/ | |
19240 | G | |
19241 | s/\n// | |
5213506e RW |
19242 | s/^[^=]*=[ ]*$// |
19243 | }' | |
19244 | fi | |
2aeb72e9 | 19245 | |
5213506e RW |
19246 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19247 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 19248 | |
1c710c3c | 19249 | |
5213506e RW |
19250 | eval set X " :F $CONFIG_FILES " |
19251 | shift | |
19252 | for ac_tag | |
19253 | do | |
19254 | case $ac_tag in | |
19255 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19256 | esac | |
19257 | case $ac_mode$ac_tag in | |
19258 | :[FHL]*:*);; | |
22e05272 | 19259 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
19260 | :[FH]-) ac_tag=-:-;; |
19261 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19262 | esac | |
19263 | ac_save_IFS=$IFS | |
19264 | IFS=: | |
19265 | set x $ac_tag | |
19266 | IFS=$ac_save_IFS | |
19267 | shift | |
19268 | ac_file=$1 | |
19269 | shift | |
79c06341 | 19270 | |
5213506e RW |
19271 | case $ac_mode in |
19272 | :L) ac_source=$1;; | |
19273 | :[FH]) | |
19274 | ac_file_inputs= | |
19275 | for ac_f | |
19276 | do | |
19277 | case $ac_f in | |
22e05272 | 19278 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
19279 | *) # Look for the file first in the build tree, then in the source tree |
19280 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19281 | # because $ac_f cannot contain `:'. | |
19282 | test -f "$ac_f" || | |
19283 | case $ac_f in | |
19284 | [\\/$]*) false;; | |
19285 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19286 | esac || | |
22e05272 | 19287 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
19288 | esac |
19289 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19290 | as_fn_append ac_file_inputs " '$ac_f'" | |
19291 | done | |
1c710c3c | 19292 | |
5213506e RW |
19293 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19294 | # use $as_me), people would be surprised to read: | |
19295 | # /* config.h. Generated by config.status. */ | |
19296 | configure_input='Generated from '` | |
19297 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19298 | `' by configure.' | |
19299 | if test x"$ac_file" != x-; then | |
19300 | configure_input="$ac_file. $configure_input" | |
19301 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19302 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 19303 | fi |
5213506e RW |
19304 | # Neutralize special characters interpreted by sed in replacement strings. |
19305 | case $configure_input in #( | |
19306 | *\&* | *\|* | *\\* ) | |
19307 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19308 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19309 | *) ac_sed_conf_input=$configure_input;; | |
19310 | esac | |
11a67599 | 19311 | |
5213506e | 19312 | case $ac_tag in |
22e05272 JM |
19313 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19314 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
19315 | esac |
19316 | ;; | |
11a67599 ZW |
19317 | esac |
19318 | ||
5213506e | 19319 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
19320 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19321 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19322 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
19323 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19324 | $as_echo X"$ac_file" | | |
19325 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19326 | s//\1/ | |
19327 | q | |
19328 | } | |
19329 | /^X\(\/\/\)[^/].*/{ | |
19330 | s//\1/ | |
19331 | q | |
19332 | } | |
19333 | /^X\(\/\/\)$/{ | |
19334 | s//\1/ | |
19335 | q | |
19336 | } | |
19337 | /^X\(\/\).*/{ | |
19338 | s//\1/ | |
19339 | q | |
19340 | } | |
19341 | s/.*/./; q'` | |
19342 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 19343 | ac_builddir=. |
0b0dc272 | 19344 | |
5213506e RW |
19345 | case "$ac_dir" in |
19346 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19347 | *) | |
19348 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19349 | # A ".." for each directory in $ac_dir_suffix. | |
19350 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19351 | case $ac_top_builddir_sub in | |
19352 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19353 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19354 | esac ;; | |
19355 | esac | |
19356 | ac_abs_top_builddir=$ac_pwd | |
19357 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19358 | # for backward compatibility: | |
19359 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
19360 | |
19361 | case $srcdir in | |
5213506e | 19362 | .) # We are building in place. |
1c710c3c | 19363 | ac_srcdir=. |
5213506e RW |
19364 | ac_top_srcdir=$ac_top_builddir_sub |
19365 | ac_abs_top_srcdir=$ac_pwd ;; | |
19366 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 19367 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
19368 | ac_top_srcdir=$srcdir |
19369 | ac_abs_top_srcdir=$srcdir ;; | |
19370 | *) # Relative name. | |
19371 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19372 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19373 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 19374 | esac |
5213506e | 19375 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 19376 | |
0b0dc272 | 19377 | |
5213506e RW |
19378 | case $ac_mode in |
19379 | :F) | |
19380 | # | |
19381 | # CONFIG_FILE | |
19382 | # | |
1c710c3c DJ |
19383 | |
19384 | case $INSTALL in | |
19385 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 19386 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 19387 | esac |
5213506e | 19388 | _ACEOF |
11a67599 | 19389 | |
5213506e RW |
19390 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19391 | # If the template does not know about datarootdir, expand it. | |
19392 | # FIXME: This hack should be removed a few years after 2.60. | |
19393 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19394 | ac_sed_dataroot=' | |
19395 | /datarootdir/ { | |
19396 | p | |
19397 | q | |
19398 | } | |
19399 | /@datadir@/p | |
19400 | /@docdir@/p | |
19401 | /@infodir@/p | |
19402 | /@localedir@/p | |
19403 | /@mandir@/p' | |
19404 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19405 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19406 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19408 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 19409 | _ACEOF |
5213506e RW |
19410 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19411 | ac_datarootdir_hack=' | |
19412 | s&@datadir@&$datadir&g | |
19413 | s&@docdir@&$docdir&g | |
19414 | s&@infodir@&$infodir&g | |
19415 | s&@localedir@&$localedir&g | |
19416 | s&@mandir@&$mandir&g | |
19417 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19418 | esac | |
19419 | _ACEOF | |
19420 | ||
19421 | # Neutralize VPATH when `$srcdir' = `.'. | |
19422 | # Shell code in configure.ac might set extrasub. | |
19423 | # FIXME: do we really want to maintain this feature? | |
19424 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19425 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
19426 | $extrasub |
19427 | _ACEOF | |
5213506e | 19428 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
19429 | :t |
19430 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
19431 | s|@configure_input@|$ac_sed_conf_input|;t t |
19432 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19433 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19434 | s&@srcdir@&$ac_srcdir&;t t | |
19435 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19436 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19437 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19438 | s&@builddir@&$ac_builddir&;t t | |
19439 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19440 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19441 | s&@INSTALL@&$ac_INSTALL&;t t | |
19442 | $ac_datarootdir_hack | |
19443 | " | |
19444 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19445 | if $ac_cs_awk_getline; then | |
22e05272 | 19446 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 19447 | else |
22e05272 JM |
19448 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19449 | fi \ | |
19450 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
19451 | |
19452 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
19453 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19454 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19455 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 19456 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19457 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 19458 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19459 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 19460 | |
22e05272 | 19461 | rm -f "$ac_tmp/stdin" |
5213506e | 19462 | case $ac_file in |
22e05272 JM |
19463 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19464 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 19465 | esac \ |
22e05272 | 19466 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 19467 | ;; |
11a67599 | 19468 | |
11a67599 | 19469 | |
79c06341 | 19470 | |
5213506e RW |
19471 | esac |
19472 | ||
3e54529c RW |
19473 | |
19474 | case $ac_file$ac_mode in | |
19475 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19476 | sed "$extrasub_host" | | |
19477 | sed "$extrasub_target" > mf$$ | |
19478 | mv -f mf$$ Makefile ;; | |
19479 | ||
19480 | esac | |
5213506e RW |
19481 | done # for ac_tag |
19482 | ||
19483 | ||
19484 | as_fn_exit 0 | |
1c710c3c | 19485 | _ACEOF |
1c710c3c DJ |
19486 | ac_clean_files=$ac_clean_files_save |
19487 | ||
5213506e | 19488 | test $ac_write_fail = 0 || |
22e05272 | 19489 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19490 | |
1c710c3c DJ |
19491 | |
19492 | # configure is writing to config.log, and then calls config.status. | |
19493 | # config.status does its own redirection, appending to config.log. | |
19494 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19495 | # by configure, so config.status won't be able to write to it; its | |
19496 | # output is simply discarded. So we exec the FD to /dev/null, | |
19497 | # effectively closing config.log, so it can be properly (re)opened and | |
19498 | # appended to by config.status. When coming back to configure, we | |
19499 | # need to make the FD available again. | |
19500 | if test "$no_create" != yes; then | |
19501 | ac_cs_success=: | |
19502 | ac_config_status_args= | |
19503 | test "$silent" = yes && | |
19504 | ac_config_status_args="$ac_config_status_args --quiet" | |
19505 | exec 5>/dev/null | |
19506 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19507 | exec 5>>config.log | |
19508 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19509 | # would make configure fail if this is the last instruction. | |
22e05272 | 19510 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
19511 | fi |
19512 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19514 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 19515 | fi |
79c06341 | 19516 |