]>
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 |
cdfee50a | 688 | host_shared |
45b3824d TS |
689 | extra_linker_plugin_flags |
690 | extra_linker_plugin_configure_flags | |
33ad93b9 | 691 | islinc |
eae1a5d4 | 692 | isllibs |
5213506e | 693 | poststage1_ldflags |
ed2eaa9f | 694 | poststage1_libs |
5213506e | 695 | stage1_ldflags |
0b21f5d3 | 696 | stage1_libs |
0ff2d841 | 697 | extra_isl_gmp_configure_flags |
5213506e RW |
698 | extra_mpc_mpfr_configure_flags |
699 | extra_mpc_gmp_configure_flags | |
700 | extra_mpfr_configure_flags | |
701 | gmpinc | |
702 | gmplibs | |
4a5e71f2 L |
703 | PGO_BUILD_LTO_CFLAGS |
704 | PGO_BUILD_USE_CFLAGS | |
705 | PGO_BUILD_GEN_CFLAGS | |
7ffcf5d6 | 706 | HAVE_CXX11_FOR_BUILD |
ffac9597 | 707 | HAVE_CXX11 |
5213506e | 708 | do_compare |
5fee5ec3 | 709 | GDC |
5213506e RW |
710 | GNATMAKE |
711 | GNATBIND | |
712 | ac_ct_CXX | |
713 | CXXFLAGS | |
714 | CXX | |
715 | OBJEXT | |
716 | EXEEXT | |
717 | ac_ct_CC | |
718 | CPPFLAGS | |
719 | LDFLAGS | |
720 | CFLAGS | |
721 | CC | |
5f520819 | 722 | extra_liboffloadmic_configure_flags |
5213506e RW |
723 | target_subdir |
724 | host_subdir | |
725 | build_subdir | |
726 | build_libsubdir | |
87264276 PB |
727 | AWK |
728 | SED | |
5213506e RW |
729 | LN_S |
730 | LN | |
731 | INSTALL_DATA | |
732 | INSTALL_SCRIPT | |
733 | INSTALL_PROGRAM | |
734 | target_os | |
735 | target_vendor | |
736 | target_cpu | |
737 | target | |
738 | host_os | |
739 | host_vendor | |
740 | host_cpu | |
741 | host | |
742 | target_noncanonical | |
743 | host_noncanonical | |
744 | build_noncanonical | |
745 | build_os | |
746 | build_vendor | |
747 | build_cpu | |
748 | build | |
749 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
750 | target_alias | |
751 | host_alias | |
752 | build_alias | |
753 | LIBS | |
754 | ECHO_T | |
755 | ECHO_N | |
756 | ECHO_C | |
757 | DEFS | |
758 | mandir | |
759 | localedir | |
760 | libdir | |
761 | psdir | |
762 | pdfdir | |
763 | dvidir | |
764 | htmldir | |
765 | infodir | |
766 | docdir | |
767 | oldincludedir | |
768 | includedir | |
769 | localstatedir | |
770 | sharedstatedir | |
771 | sysconfdir | |
772 | datadir | |
773 | datarootdir | |
774 | libexecdir | |
775 | sbindir | |
776 | bindir | |
777 | program_transform_name | |
778 | prefix | |
779 | exec_prefix | |
780 | PACKAGE_URL | |
781 | PACKAGE_BUGREPORT | |
782 | PACKAGE_STRING | |
783 | PACKAGE_VERSION | |
784 | PACKAGE_TARNAME | |
785 | PACKAGE_NAME | |
786 | PATH_SEPARATOR | |
787 | SHELL' | |
788 | ac_subst_files='serialization_dependencies | |
789 | host_makefile_frag | |
790 | target_makefile_frag | |
791 | alphaieee_frag | |
792 | ospace_frag' | |
793 | ac_user_opts=' | |
794 | enable_option_checking | |
795 | with_build_libsubdir | |
a05c2c75 | 796 | with_system_zlib |
85c64bbe BS |
797 | enable_as_accelerator_for |
798 | enable_offload_targets | |
fe5bfa67 | 799 | enable_offload_defaulted |
5213506e | 800 | enable_gold |
21539e2e | 801 | enable_ld |
78edb32f | 802 | enable_compressed_debug_sections |
87e6d9dc TB |
803 | enable_libquadmath |
804 | enable_libquadmath_support | |
5213506e RW |
805 | enable_libada |
806 | enable_libssp | |
1873ec0c | 807 | enable_libstdcxx |
5f520819 | 808 | enable_liboffloadmic |
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 |
5213506e | 833 | enable_stage1_languages |
43c40f3e | 834 | enable_objc_gc |
114bf3f1 MK |
835 | with_target_bdw_gc |
836 | with_target_bdw_gc_include | |
837 | with_target_bdw_gc_lib | |
3c36aa6b | 838 | with_gcc_major_version_only |
5213506e RW |
839 | with_build_sysroot |
840 | with_debug_prefix_map | |
5646b7b9 | 841 | with_build_config |
beeda1d9 | 842 | enable_vtable_verify |
5213506e RW |
843 | enable_serial_configure |
844 | with_build_time_tools | |
845 | enable_maintainer_mode | |
846 | enable_stage1_checking | |
847 | enable_werror | |
5213506e RW |
848 | ' |
849 | ac_precious_vars='build_alias | |
850 | host_alias | |
851 | target_alias | |
852 | CC | |
853 | CFLAGS | |
854 | LDFLAGS | |
855 | LIBS | |
856 | CPPFLAGS | |
857 | CXX | |
858 | CXXFLAGS | |
859 | CCC | |
ffedf511 RW |
860 | build_configargs |
861 | host_configargs | |
862 | target_configargs | |
5213506e RW |
863 | AR |
864 | AS | |
865 | DLLTOOL | |
3b5e8ee4 | 866 | DSYMUTIL |
5213506e RW |
867 | LD |
868 | LIPO | |
869 | NM | |
870 | RANLIB | |
871 | STRIP | |
872 | WINDRES | |
873 | WINDMC | |
874 | OBJCOPY | |
875 | OBJDUMP | |
e4a9a572 | 876 | OTOOL |
e7a82751 | 877 | READELF |
5213506e RW |
878 | CC_FOR_TARGET |
879 | CXX_FOR_TARGET | |
880 | GCC_FOR_TARGET | |
5213506e | 881 | GFORTRAN_FOR_TARGET |
632e2a07 | 882 | GOC_FOR_TARGET |
b4c522fa | 883 | GDC_FOR_TARGET |
5213506e RW |
884 | AR_FOR_TARGET |
885 | AS_FOR_TARGET | |
886 | DLLTOOL_FOR_TARGET | |
3b5e8ee4 | 887 | DSYMUTIL_FOR_TARGET |
5213506e RW |
888 | LD_FOR_TARGET |
889 | LIPO_FOR_TARGET | |
890 | NM_FOR_TARGET | |
9bccfdf5 | 891 | OBJCOPY_FOR_TARGET |
5213506e | 892 | OBJDUMP_FOR_TARGET |
e4a9a572 | 893 | OTOOL_FOR_TARGET |
5213506e | 894 | RANLIB_FOR_TARGET |
e7a82751 | 895 | READELF_FOR_TARGET |
5213506e RW |
896 | STRIP_FOR_TARGET |
897 | WINDRES_FOR_TARGET | |
898 | WINDMC_FOR_TARGET' | |
899 | ||
671aa708 NN |
900 | |
901 | # Initialize some variables set by options. | |
1c710c3c DJ |
902 | ac_init_help= |
903 | ac_init_version=false | |
5213506e RW |
904 | ac_unrecognized_opts= |
905 | ac_unrecognized_sep= | |
671aa708 NN |
906 | # The variables have the same names as the options, with |
907 | # dashes changed to underlines. | |
1c710c3c | 908 | cache_file=/dev/null |
671aa708 | 909 | exec_prefix=NONE |
671aa708 | 910 | no_create= |
671aa708 NN |
911 | no_recursion= |
912 | prefix=NONE | |
913 | program_prefix=NONE | |
914 | program_suffix=NONE | |
915 | program_transform_name=s,x,x, | |
916 | silent= | |
917 | site= | |
918 | srcdir= | |
671aa708 NN |
919 | verbose= |
920 | x_includes=NONE | |
921 | x_libraries=NONE | |
1c710c3c DJ |
922 | |
923 | # Installation directory options. | |
924 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
925 | # and all the variables that are supposed to be based on exec_prefix | |
926 | # by default will actually change. | |
927 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 928 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
929 | bindir='${exec_prefix}/bin' |
930 | sbindir='${exec_prefix}/sbin' | |
931 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
932 | datarootdir='${prefix}/share' |
933 | datadir='${datarootdir}' | |
671aa708 NN |
934 | sysconfdir='${prefix}/etc' |
935 | sharedstatedir='${prefix}/com' | |
936 | localstatedir='${prefix}/var' | |
671aa708 NN |
937 | includedir='${prefix}/include' |
938 | oldincludedir='/usr/include' | |
5213506e RW |
939 | docdir='${datarootdir}/doc/${PACKAGE}' |
940 | infodir='${datarootdir}/info' | |
941 | htmldir='${docdir}' | |
942 | dvidir='${docdir}' | |
943 | pdfdir='${docdir}' | |
944 | psdir='${docdir}' | |
945 | libdir='${exec_prefix}/lib' | |
946 | localedir='${datarootdir}/locale' | |
947 | mandir='${datarootdir}/man' | |
79c06341 | 948 | |
671aa708 | 949 | ac_prev= |
5213506e | 950 | ac_dashdash= |
671aa708 NN |
951 | for ac_option |
952 | do | |
671aa708 NN |
953 | # If the previous option needs an argument, assign it. |
954 | if test -n "$ac_prev"; then | |
5213506e | 955 | eval $ac_prev=\$ac_option |
671aa708 NN |
956 | ac_prev= |
957 | continue | |
958 | fi | |
79c06341 | 959 | |
5213506e | 960 | case $ac_option in |
22e05272 JM |
961 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
962 | *=) ac_optarg= ;; | |
963 | *) ac_optarg=yes ;; | |
5213506e | 964 | esac |
671aa708 NN |
965 | |
966 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
967 | ||
5213506e RW |
968 | case $ac_dashdash$ac_option in |
969 | --) | |
970 | ac_dashdash=yes ;; | |
671aa708 NN |
971 | |
972 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
973 | ac_prev=bindir ;; | |
974 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 975 | bindir=$ac_optarg ;; |
671aa708 NN |
976 | |
977 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 978 | ac_prev=build_alias ;; |
671aa708 | 979 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 980 | build_alias=$ac_optarg ;; |
671aa708 NN |
981 | |
982 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
983 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
984 | ac_prev=cache_file ;; | |
985 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
986 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
987 | cache_file=$ac_optarg ;; |
988 | ||
989 | --config-cache | -C) | |
990 | cache_file=config.cache ;; | |
671aa708 | 991 | |
5213506e | 992 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 993 | ac_prev=datadir ;; |
5213506e | 994 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 995 | datadir=$ac_optarg ;; |
671aa708 | 996 | |
5213506e RW |
997 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
998 | | --dataroo | --dataro | --datar) | |
999 | ac_prev=datarootdir ;; | |
1000 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1001 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1002 | datarootdir=$ac_optarg ;; | |
1003 | ||
671aa708 | 1004 | -disable-* | --disable-*) |
5213506e | 1005 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 1006 | # Reject names that are not valid shell variable names. |
5213506e | 1007 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1008 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1009 | ac_useropt_orig=$ac_useropt |
1010 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1011 | case $ac_user_opts in | |
1012 | *" | |
1013 | "enable_$ac_useropt" | |
1014 | "*) ;; | |
1015 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1016 | ac_unrecognized_sep=', ';; | |
1017 | esac | |
1018 | eval enable_$ac_useropt=no ;; | |
1019 | ||
1020 | -docdir | --docdir | --docdi | --doc | --do) | |
1021 | ac_prev=docdir ;; | |
1022 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1023 | docdir=$ac_optarg ;; | |
1024 | ||
1025 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1026 | ac_prev=dvidir ;; | |
1027 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1028 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1029 | |
1030 | -enable-* | --enable-*) | |
5213506e | 1031 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1032 | # Reject names that are not valid shell variable names. |
5213506e | 1033 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1034 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1035 | ac_useropt_orig=$ac_useropt |
1036 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1037 | case $ac_user_opts in | |
1038 | *" | |
1039 | "enable_$ac_useropt" | |
1040 | "*) ;; | |
1041 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1042 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1043 | esac |
5213506e | 1044 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1045 | |
1046 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1047 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1048 | | --exec | --exe | --ex) | |
1049 | ac_prev=exec_prefix ;; | |
1050 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1051 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1052 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1053 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1054 | |
1055 | -gas | --gas | --ga | --g) | |
1056 | # Obsolete; use --with-gas. | |
1057 | with_gas=yes ;; | |
1058 | ||
1c710c3c DJ |
1059 | -help | --help | --hel | --he | -h) |
1060 | ac_init_help=long ;; | |
1061 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1062 | ac_init_help=recursive ;; | |
1063 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1064 | ac_init_help=short ;; | |
671aa708 NN |
1065 | |
1066 | -host | --host | --hos | --ho) | |
1c710c3c | 1067 | ac_prev=host_alias ;; |
671aa708 | 1068 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1069 | host_alias=$ac_optarg ;; |
671aa708 | 1070 | |
5213506e RW |
1071 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1072 | ac_prev=htmldir ;; | |
1073 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1074 | | --ht=*) | |
1075 | htmldir=$ac_optarg ;; | |
1076 | ||
671aa708 NN |
1077 | -includedir | --includedir | --includedi | --included | --include \ |
1078 | | --includ | --inclu | --incl | --inc) | |
1079 | ac_prev=includedir ;; | |
1080 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1081 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1082 | includedir=$ac_optarg ;; |
671aa708 NN |
1083 | |
1084 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1085 | ac_prev=infodir ;; | |
1086 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1087 | infodir=$ac_optarg ;; |
671aa708 NN |
1088 | |
1089 | -libdir | --libdir | --libdi | --libd) | |
1090 | ac_prev=libdir ;; | |
1091 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1092 | libdir=$ac_optarg ;; |
671aa708 NN |
1093 | |
1094 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1095 | | --libexe | --libex | --libe) | |
1096 | ac_prev=libexecdir ;; | |
1097 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1098 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1099 | libexecdir=$ac_optarg ;; |
671aa708 | 1100 | |
5213506e RW |
1101 | -localedir | --localedir | --localedi | --localed | --locale) |
1102 | ac_prev=localedir ;; | |
1103 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1104 | localedir=$ac_optarg ;; | |
1105 | ||
671aa708 | 1106 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1107 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1108 | ac_prev=localstatedir ;; |
1109 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1110 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1111 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1112 | |
1113 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1114 | ac_prev=mandir ;; | |
1115 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1116 | mandir=$ac_optarg ;; |
671aa708 NN |
1117 | |
1118 | -nfp | --nfp | --nf) | |
1119 | # Obsolete; use --without-fp. | |
1120 | with_fp=no ;; | |
1121 | ||
1122 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1123 | | --no-cr | --no-c | -n) |
671aa708 NN |
1124 | no_create=yes ;; |
1125 | ||
1126 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1127 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1128 | no_recursion=yes ;; | |
1129 | ||
1130 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1131 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1132 | | --oldin | --oldi | --old | --ol | --o) | |
1133 | ac_prev=oldincludedir ;; | |
1134 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1135 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1136 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1137 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1138 | |
1139 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1140 | ac_prev=prefix ;; | |
1141 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1142 | prefix=$ac_optarg ;; |
671aa708 NN |
1143 | |
1144 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1145 | | --program-pre | --program-pr | --program-p) | |
1146 | ac_prev=program_prefix ;; | |
1147 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1148 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1149 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1150 | |
1151 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1152 | | --program-suf | --program-su | --program-s) | |
1153 | ac_prev=program_suffix ;; | |
1154 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1155 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1156 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1157 | |
1158 | -program-transform-name | --program-transform-name \ | |
1159 | | --program-transform-nam | --program-transform-na \ | |
1160 | | --program-transform-n | --program-transform- \ | |
1161 | | --program-transform | --program-transfor \ | |
1162 | | --program-transfo | --program-transf \ | |
1163 | | --program-trans | --program-tran \ | |
1164 | | --progr-tra | --program-tr | --program-t) | |
1165 | ac_prev=program_transform_name ;; | |
1166 | -program-transform-name=* | --program-transform-name=* \ | |
1167 | | --program-transform-nam=* | --program-transform-na=* \ | |
1168 | | --program-transform-n=* | --program-transform-=* \ | |
1169 | | --program-transform=* | --program-transfor=* \ | |
1170 | | --program-transfo=* | --program-transf=* \ | |
1171 | | --program-trans=* | --program-tran=* \ | |
1172 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1173 | program_transform_name=$ac_optarg ;; |
671aa708 | 1174 | |
5213506e RW |
1175 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1176 | ac_prev=pdfdir ;; | |
1177 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1178 | pdfdir=$ac_optarg ;; | |
1179 | ||
1180 | -psdir | --psdir | --psdi | --psd | --ps) | |
1181 | ac_prev=psdir ;; | |
1182 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1183 | psdir=$ac_optarg ;; | |
1184 | ||
671aa708 NN |
1185 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1186 | | -silent | --silent | --silen | --sile | --sil) | |
1187 | silent=yes ;; | |
1188 | ||
1189 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1190 | ac_prev=sbindir ;; | |
1191 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1192 | | --sbi=* | --sb=*) | |
1c710c3c | 1193 | sbindir=$ac_optarg ;; |
671aa708 NN |
1194 | |
1195 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1196 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1197 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1198 | | --sha | --sh) | |
1199 | ac_prev=sharedstatedir ;; | |
1200 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1201 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1202 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1203 | | --sha=* | --sh=*) | |
1c710c3c | 1204 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1205 | |
1206 | -site | --site | --sit) | |
1207 | ac_prev=site ;; | |
1208 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1209 | site=$ac_optarg ;; |
671aa708 NN |
1210 | |
1211 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1212 | ac_prev=srcdir ;; | |
1213 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1214 | srcdir=$ac_optarg ;; |
671aa708 NN |
1215 | |
1216 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1217 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1218 | ac_prev=sysconfdir ;; | |
1219 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1220 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1221 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1222 | |
1223 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1224 | ac_prev=target_alias ;; |
671aa708 | 1225 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1226 | target_alias=$ac_optarg ;; |
671aa708 NN |
1227 | |
1228 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1229 | verbose=yes ;; | |
1230 | ||
1c710c3c DJ |
1231 | -version | --version | --versio | --versi | --vers | -V) |
1232 | ac_init_version=: ;; | |
671aa708 NN |
1233 | |
1234 | -with-* | --with-*) | |
5213506e | 1235 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1236 | # Reject names that are not valid shell variable names. |
5213506e | 1237 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1238 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1239 | ac_useropt_orig=$ac_useropt |
1240 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1241 | case $ac_user_opts in | |
1242 | *" | |
1243 | "with_$ac_useropt" | |
1244 | "*) ;; | |
1245 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1246 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1247 | esac |
5213506e | 1248 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1249 | |
1250 | -without-* | --without-*) | |
5213506e | 1251 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1252 | # Reject names that are not valid shell variable names. |
5213506e | 1253 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1254 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1255 | ac_useropt_orig=$ac_useropt |
1256 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1257 | case $ac_user_opts in | |
1258 | *" | |
1259 | "with_$ac_useropt" | |
1260 | "*) ;; | |
1261 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1262 | ac_unrecognized_sep=', ';; | |
1263 | esac | |
1264 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1265 | |
1266 | --x) | |
1267 | # Obsolete; use --with-x. | |
1268 | with_x=yes ;; | |
1269 | ||
1270 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1271 | | --x-incl | --x-inc | --x-in | --x-i) | |
1272 | ac_prev=x_includes ;; | |
1273 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1274 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1275 | x_includes=$ac_optarg ;; |
671aa708 NN |
1276 | |
1277 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1278 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1279 | ac_prev=x_libraries ;; | |
1280 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1281 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1282 | x_libraries=$ac_optarg ;; |
671aa708 | 1283 | |
22e05272 JM |
1284 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1285 | Try \`$0 --help' for more information" | |
671aa708 NN |
1286 | ;; |
1287 | ||
1c710c3c DJ |
1288 | *=*) |
1289 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1290 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1291 | case $ac_envvar in #( |
1292 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1293 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1294 | esac |
1295 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1296 | export $ac_envvar ;; |
1297 | ||
671aa708 | 1298 | *) |
1c710c3c | 1299 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1300 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1301 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1302 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1303 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1304 | ;; |
1305 | ||
1306 | esac | |
1307 | done | |
1308 | ||
1309 | if test -n "$ac_prev"; then | |
1c710c3c | 1310 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1311 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1312 | fi |
af71363e | 1313 | |
5213506e RW |
1314 | if test -n "$ac_unrecognized_opts"; then |
1315 | case $enable_option_checking in | |
1316 | no) ;; | |
22e05272 | 1317 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1318 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1319 | esac |
5213506e | 1320 | fi |
2aeb72e9 | 1321 | |
5213506e RW |
1322 | # Check all directory arguments for consistency. |
1323 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1324 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1325 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1326 | libdir localedir mandir | |
2aeb72e9 | 1327 | do |
5213506e RW |
1328 | eval ac_val=\$$ac_var |
1329 | # Remove trailing slashes. | |
1330 | case $ac_val in | |
1331 | */ ) | |
1332 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1333 | eval $ac_var=\$ac_val;; | |
1334 | esac | |
1335 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1336 | case $ac_val in |
5213506e RW |
1337 | [\\/$]* | ?:[\\/]* ) continue;; |
1338 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1339 | esac |
22e05272 | 1340 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1341 | done |
1342 | ||
1c710c3c DJ |
1343 | # There might be people who depend on the old broken behavior: `$host' |
1344 | # used to hold the argument of --host etc. | |
1345 | # FIXME: To remove some day. | |
1346 | build=$build_alias | |
1347 | host=$host_alias | |
1348 | target=$target_alias | |
0b0dc272 | 1349 | |
1c710c3c DJ |
1350 | # FIXME: To remove some day. |
1351 | if test "x$host_alias" != x; then | |
1352 | if test "x$build_alias" = x; then | |
1353 | cross_compiling=maybe | |
1c710c3c DJ |
1354 | elif test "x$build_alias" != "x$host_alias"; then |
1355 | cross_compiling=yes | |
1356 | fi | |
1357 | fi | |
1358 | ||
1359 | ac_tool_prefix= | |
1360 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1361 | ||
1362 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1363 | |
671aa708 | 1364 | |
5213506e RW |
1365 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1366 | ac_ls_di=`ls -di .` && | |
1367 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1368 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1369 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1370 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1371 | |
1372 | ||
671aa708 NN |
1373 | # Find the source files, if location was not specified. |
1374 | if test -z "$srcdir"; then | |
1375 | ac_srcdir_defaulted=yes | |
5213506e RW |
1376 | # Try the directory containing this script, then the parent directory. |
1377 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1378 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1379 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1380 | X"$as_myself" : 'X\(//\)$' \| \ | |
1381 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1382 | $as_echo X"$as_myself" | | |
1383 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1384 | s//\1/ | |
1385 | q | |
1386 | } | |
1387 | /^X\(\/\/\)[^/].*/{ | |
1388 | s//\1/ | |
1389 | q | |
1390 | } | |
1391 | /^X\(\/\/\)$/{ | |
1392 | s//\1/ | |
1393 | q | |
1394 | } | |
1395 | /^X\(\/\).*/{ | |
1396 | s//\1/ | |
1397 | q | |
1398 | } | |
1399 | s/.*/./; q'` | |
671aa708 | 1400 | srcdir=$ac_confdir |
5213506e | 1401 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1402 | srcdir=.. |
1403 | fi | |
1404 | else | |
1405 | ac_srcdir_defaulted=no | |
1406 | fi | |
5213506e RW |
1407 | if test ! -r "$srcdir/$ac_unique_file"; then |
1408 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1409 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1410 | fi |
1411 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1412 | ac_abs_confdir=`( | |
22e05272 | 1413 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1414 | pwd)` |
1415 | # When building in place, set srcdir=. | |
1416 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1417 | srcdir=. | |
1418 | fi | |
1419 | # Remove unnecessary trailing slashes from srcdir. | |
1420 | # Double slashes in file names in object file debugging info | |
1421 | # mess up M-x gdb in Emacs. | |
1422 | case $srcdir in | |
1423 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1424 | esac | |
87841584 AM |
1425 | case $srcdir in |
1426 | *" "*) | |
22e05272 | 1427 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1428 | ;; |
1429 | esac | |
ac9e6043 RW |
1430 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1431 | ||
5213506e RW |
1432 | for ac_var in $ac_precious_vars; do |
1433 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1434 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1435 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1436 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1437 | done | |
1c710c3c DJ |
1438 | |
1439 | # | |
1440 | # Report the --help message. | |
1441 | # | |
1442 | if test "$ac_init_help" = "long"; then | |
1443 | # Omit some internal or obsolete options to make the list less imposing. | |
1444 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1445 | cat <<_ACEOF | |
1446 | \`configure' configures this package to adapt to many kinds of systems. | |
1447 | ||
1448 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1449 | ||
1450 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1451 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1452 | ||
1453 | Defaults for the options are specified in brackets. | |
1454 | ||
1455 | Configuration: | |
1456 | -h, --help display this help and exit | |
1457 | --help=short display options specific to this package | |
1458 | --help=recursive display the short help of all the included packages | |
1459 | -V, --version display version information and exit | |
22e05272 | 1460 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1461 | --cache-file=FILE cache test results in FILE [disabled] |
1462 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1463 | -n, --no-create do not create output files | |
1464 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1465 | ||
1c710c3c DJ |
1466 | Installation directories: |
1467 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1468 | [$ac_default_prefix] |
1c710c3c | 1469 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1470 | [PREFIX] |
1c710c3c DJ |
1471 | |
1472 | By default, \`make install' will install all the files in | |
1473 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1474 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1475 | for instance \`--prefix=\$HOME'. | |
1476 | ||
1477 | For better control, use the options below. | |
1478 | ||
1479 | Fine tuning of the installation directories: | |
5213506e RW |
1480 | --bindir=DIR user executables [EPREFIX/bin] |
1481 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1482 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1483 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1484 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1485 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1486 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1487 | --includedir=DIR C header files [PREFIX/include] | |
1488 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1489 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1490 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1491 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1492 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1493 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1494 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1495 | --htmldir=DIR html documentation [DOCDIR] | |
1496 | --dvidir=DIR dvi documentation [DOCDIR] | |
1497 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1498 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1499 | _ACEOF |
1500 | ||
1501 | cat <<\_ACEOF | |
1502 | ||
1503 | Program names: | |
1504 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1505 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1506 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1507 | ||
1508 | System types: | |
1509 | --build=BUILD configure for building on BUILD [guessed] | |
1510 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1511 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1512 | _ACEOF | |
1513 | fi | |
1514 | ||
1515 | if test -n "$ac_init_help"; then | |
1516 | ||
1517 | cat <<\_ACEOF | |
1518 | ||
1519 | Optional Features: | |
5213506e | 1520 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1521 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1522 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1523 | --enable-as-accelerator-for=ARG |
1524 | build as offload target compiler. Specify offload | |
1525 | host triple by ARG | |
1526 | --enable-offload-targets=LIST | |
1527 | enable offloading to devices from comma-separated | |
1528 | LIST of TARGET[=DIR]. Use optional path to find | |
1529 | offload target compiler during the build | |
fe5bfa67 TB |
1530 | --enable-offload-defaulted |
1531 | If enabled, configured but not installed offload compilers and | |
1532 | libgomp plugins are silently ignored. Useful for distribution | |
1533 | compilers where those are in separate optional packages. | |
1534 | ||
21539e2e | 1535 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1536 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1537 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1538 | Enable compressed debug sections for gas, gold or ld |
1539 | by default | |
87e6d9dc TB |
1540 | --disable-libquadmath do not build libquadmath directory |
1541 | --disable-libquadmath-support | |
1542 | disable libquadmath support for Fortran | |
30b74385 RW |
1543 | --enable-libada build libada directory |
1544 | --enable-libssp build libssp directory | |
1873ec0c | 1545 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1546 | --enable-liboffloadmic=ARG |
1547 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1548 | --enable-bootstrap enable bootstrapping [yes if native build] |
4a5e71f2 L |
1549 | --enable-pgo-build[=lto] |
1550 | enable the PGO build | |
33ad93b9 | 1551 | --disable-isl-version-check |
560d18d3 | 1552 | disable check for isl version |
d7f09764 | 1553 | --enable-lto enable link time optimization support |
45b3824d TS |
1554 | --enable-linker-plugin-configure-flags=FLAGS |
1555 | additional flags for configuring linker plugins | |
1556 | [none] | |
1557 | --enable-linker-plugin-flags=FLAGS | |
1558 | additional flags for configuring and building linker | |
1559 | plugins [none] | |
cdfee50a | 1560 | --enable-host-shared build host code as shared libraries |
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 |
36230329 | 2810 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf 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 \ |
5f520819 | 2828 | target-liboffloadmic \ |
48310492 | 2829 | target-libatomic \ |
0a35513e | 2830 | target-libitm \ |
cb543528 | 2831 | target-libstdc++-v3 \ |
f35db108 | 2832 | target-libsanitizer \ |
2077db1b | 2833 | target-libvtv \ |
77008252 | 2834 | target-libssp \ |
1ec601bf | 2835 | target-libquadmath \ |
6de9cd9a | 2836 | target-libgfortran \ |
012447ea | 2837 | target-libffi \ |
d9cdb878 | 2838 | target-libobjc \ |
632e2a07 | 2839 | target-libada \ |
b4c522fa | 2840 | target-libgo \ |
bb50312e IB |
2841 | target-libphobos \ |
2842 | target-zlib" | |
671aa708 | 2843 | |
4dbda6f0 NN |
2844 | # these tools are built using the target libraries, and are intended to |
2845 | # run only in the target environment | |
671aa708 | 2846 | # |
4dbda6f0 | 2847 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2848 | # list belongs in this list. |
671aa708 | 2849 | # |
85bfb75e | 2850 | target_tools="target-rda" |
79c06341 | 2851 | |
671aa708 | 2852 | ################################################################################ |
79c06341 | 2853 | |
671aa708 NN |
2854 | ## All tools belong in one of the four categories, and are assigned above |
2855 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2856 | ## is important because configure will choke if they ever get through. | |
2857 | ## ${configdirs} is directories we build using the host tools. | |
2858 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2859 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2860 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2861 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2862 | |
ac9e6043 RW |
2863 | |
2864 | ||
671aa708 | 2865 | ################################################################################ |
79c06341 | 2866 | |
671aa708 | 2867 | srcname="gnu development package" |
79c06341 | 2868 | |
671aa708 NN |
2869 | # This gets set non-empty for some net releases of packages. |
2870 | appdirs="" | |
79c06341 | 2871 | |
671aa708 NN |
2872 | # Define is_cross_compiler to save on calls to 'test'. |
2873 | is_cross_compiler= | |
2874 | if test x"${host}" = x"${target}" ; then | |
2875 | is_cross_compiler=no | |
79c06341 | 2876 | else |
671aa708 | 2877 | is_cross_compiler=yes |
1c710c3c | 2878 | fi |
79c06341 | 2879 | |
b4acb5ef | 2880 | # Find the build and target subdir names. |
8b87bb96 | 2881 | |
2e9e6f68 DJ |
2882 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2883 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2884 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2885 | # However, they still use the build modules, because the corresponding | |
2886 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2887 | # finishes. So: | |
2888 | # - build_subdir is where we find build modules, and never changes. | |
2889 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2890 | ||
2891 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2892 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2893 | |
5213506e RW |
2894 | # Check whether --with-build-libsubdir was given. |
2895 | if test "${with_build_libsubdir+set}" = set; then : | |
2896 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2897 | else |
2898 | build_libsubdir="$build_subdir" | |
5213506e RW |
2899 | fi |
2900 | ||
215c351a PB |
2901 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2902 | if ( test $srcdir = . && test -d gcc ) \ | |
2903 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2904 | host_subdir="host-${host_noncanonical}" | |
2905 | else | |
2906 | host_subdir=. | |
2907 | fi | |
8b87bb96 NN |
2908 | # No prefix. |
2909 | target_subdir=${target_noncanonical} | |
1c710c3c | 2910 | |
0db770bd RW |
2911 | # Be sure to cover against remnants of an in-tree build. |
2912 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2913 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2914 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2915 | fi | |
79c06341 | 2916 | |
671aa708 NN |
2917 | # Skipdirs are removed silently. |
2918 | skipdirs= | |
2919 | # Noconfigdirs are removed loudly. | |
2920 | noconfigdirs="" | |
79c06341 | 2921 | |
671aa708 NN |
2922 | use_gnu_ld= |
2923 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2924 | if test x$with_gnu_ld = xno ; then | |
2925 | use_gnu_ld=no | |
5afab7ad | 2926 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2927 | fi |
2928 | ||
671aa708 NN |
2929 | use_gnu_as= |
2930 | # Make sure we don't let GNU as be added if we didn't want it. | |
2931 | if test x$with_gnu_as = xno ; then | |
2932 | use_gnu_as=no | |
2933 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2934 | fi |
2935 | ||
d7f09764 | 2936 | use_included_zlib= |
a05c2c75 L |
2937 | |
2938 | # Check whether --with-system-zlib was given. | |
2939 | if test "${with_system_zlib+set}" = set; then : | |
2940 | withval=$with_system_zlib; | |
2941 | fi | |
2942 | ||
d7f09764 DN |
2943 | # Make sure we don't let ZLIB be added if we didn't want it. |
2944 | if test x$with_system_zlib = xyes ; then | |
2945 | use_included_zlib=no | |
2946 | noconfigdirs="$noconfigdirs zlib" | |
2947 | fi | |
2948 | ||
1c710c3c | 2949 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2950 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2951 | |
671aa708 NN |
2952 | case ${with_x} in |
2953 | yes | "") ;; # the default value for this tree is that X11 is available | |
2954 | no) | |
b4f96efe | 2955 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2956 | # We won't be able to build gdbtk without X. |
1c710c3c | 2957 | enable_gdbtk=no |
671aa708 NN |
2958 | ;; |
2959 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2960 | esac | |
79c06341 | 2961 | |
1bcce263 | 2962 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2963 | # Remove these if host=target. |
2964 | cross_only="target-libgloss target-newlib target-opcodes" | |
2965 | ||
2966 | case $is_cross_compiler in | |
2967 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2968 | esac |
79c06341 | 2969 | |
671aa708 NN |
2970 | # If both --with-headers and --with-libs are specified, default to |
2971 | # --without-newlib. | |
ee6a22df L |
2972 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2973 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2974 | if test x"${with_newlib}" = x ; then |
2975 | with_newlib=no | |
2976 | fi | |
79c06341 JL |
2977 | fi |
2978 | ||
671aa708 NN |
2979 | # Recognize --with-newlib/--without-newlib. |
2980 | case ${with_newlib} in | |
2981 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2982 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2983 | esac | |
79c06341 | 2984 | |
85c64bbe BS |
2985 | # Check whether --enable-as-accelerator-for was given. |
2986 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2987 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2988 | fi |
2989 | ||
2990 | ||
2991 | # Check whether --enable-offload-targets was given. | |
2992 | if test "${enable_offload_targets+set}" = set; then : | |
2993 | enableval=$enable_offload_targets; | |
2994 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 2995 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
2996 | fi |
2997 | ||
2998 | else | |
2999 | enable_offload_targets= | |
3000 | fi | |
3001 | ||
3002 | ||
fe5bfa67 TB |
3003 | # Check whether --enable-offload-defaulted was given. |
3004 | if test "${enable_offload_defaulted+set}" = set; then : | |
3005 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3006 | else | |
3007 | enable_offload_defaulted= | |
3008 | fi | |
3009 | ||
3010 | ||
21539e2e MK |
3011 | # Handle --enable-gold, --enable-ld. |
3012 | # --disable-gold [--enable-ld] | |
3013 | # Build only ld. Default option. | |
9580395f L |
3014 | # --enable-gold [--enable-ld] |
3015 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3016 | # as "ld.bfd" and "ld". | |
3017 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
3018 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3019 | # install ld as "ld.bfd". | |
3020 | # --enable-gold[=default] --disable-ld | |
3021 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3022 | # --enable-gold --enable-ld=default | |
9580395f L |
3023 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3024 | # and ld.bfd). | |
21539e2e MK |
3025 | # In other words, ld is default |
3026 | # --enable-gold=default --enable-ld=default | |
3027 | # Error. | |
3028 | ||
3029 | default_ld= | |
5213506e RW |
3030 | # Check whether --enable-gold was given. |
3031 | if test "${enable_gold+set}" = set; then : | |
3032 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3033 | else |
3034 | ENABLE_GOLD=no | |
5213506e RW |
3035 | fi |
3036 | ||
21539e2e MK |
3037 | case "${ENABLE_GOLD}" in |
3038 | yes|default) | |
38e3d868 RM |
3039 | # Check for ELF target. |
3040 | is_elf=no | |
3041 | case "${target}" in | |
3042 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3043 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3044 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3045 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3046 | case "${target}" in |
3047 | *-*-linux*aout* | *-*-linux*oldld*) | |
3048 | ;; | |
3049 | *) | |
3050 | is_elf=yes | |
3051 | ;; | |
3052 | esac | |
3053 | esac | |
3054 | ||
3055 | if test "$is_elf" = "yes"; then | |
3056 | # Check for target supported by gold. | |
5afab7ad | 3057 | case "${target}" in |
7705dfd1 | 3058 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
fc259b52 | 3059 | | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*) |
21539e2e MK |
3060 | configdirs="$configdirs gold" |
3061 | if test x${ENABLE_GOLD} = xdefault; then | |
3062 | default_ld=gold | |
3063 | fi | |
38e3d868 | 3064 | ENABLE_GOLD=yes |
5afab7ad ILT |
3065 | ;; |
3066 | esac | |
38e3d868 RM |
3067 | fi |
3068 | ;; | |
3069 | no) | |
3070 | ;; | |
3071 | *) | |
22e05272 | 3072 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3073 | ;; |
21539e2e MK |
3074 | esac |
3075 | ||
3076 | # Check whether --enable-ld was given. | |
3077 | if test "${enable_ld+set}" = set; then : | |
3078 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3079 | else | |
3080 | ENABLE_LD=yes | |
3081 | fi | |
3082 | ||
3083 | ||
3084 | case "${ENABLE_LD}" in | |
3085 | default) | |
9580395f | 3086 | if test x${default_ld} != x; then |
22e05272 | 3087 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3088 | fi |
3089 | ;; | |
3090 | yes) | |
3091 | ;; | |
3092 | no) | |
3093 | if test x${ENABLE_GOLD} != xyes; then | |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3095 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3096 | fi | |
3097 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3098 | ;; | |
3099 | *) | |
22e05272 | 3100 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3101 | ;; |
3102 | esac | |
5afab7ad | 3103 | |
78edb32f L |
3104 | # PR gas/19109 |
3105 | # Decide the default method for compressing debug sections. | |
3106 | # Provide a configure time option to override our default. | |
3107 | # Check whether --enable-compressed_debug_sections was given. | |
3108 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3109 | enableval=$enable_compressed_debug_sections; | |
3110 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3111 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3112 | fi |
3113 | ||
3114 | else | |
3115 | enable_compressed_debug_sections= | |
3116 | fi | |
3117 | ||
3118 | ||
671aa708 | 3119 | # Configure extra directories which are host specific |
79c06341 | 3120 | |
671aa708 NN |
3121 | case "${host}" in |
3122 | *-cygwin*) | |
3123 | configdirs="$configdirs libtermcap" ;; | |
3124 | esac | |
79c06341 | 3125 | |
4fab7234 HPN |
3126 | # A target can indicate whether a language isn't supported for some reason. |
3127 | # Only spaces may be used in this macro; not newlines or tabs. | |
3128 | unsupported_languages= | |
3129 | ||
1c710c3c | 3130 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3131 | # target this usually means that a port of the program doesn't |
3132 | # exist yet. | |
ec8d6ddc | 3133 | |
671aa708 | 3134 | case "${host}" in |
111eeb6e | 3135 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3136 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3137 | ;; |
671aa708 | 3138 | esac |
ec8d6ddc | 3139 | |
6de9cd9a | 3140 | |
87e6d9dc TB |
3141 | # Check whether --enable-libquadmath was given. |
3142 | if test "${enable_libquadmath+set}" = set; then : | |
3143 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3144 | else | |
3145 | ENABLE_LIBQUADMATH=yes | |
3146 | fi | |
3147 | ||
3148 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3149 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3150 | fi | |
3151 | ||
3152 | ||
3153 | # Check whether --enable-libquadmath-support was given. | |
3154 | if test "${enable_libquadmath_support+set}" = set; then : | |
3155 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3156 | else | |
3157 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3158 | fi | |
3159 | ||
3160 | enable_libquadmath_support= | |
3161 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3162 | enable_libquadmath_support=no | |
3163 | fi | |
3164 | ||
3165 | ||
5213506e RW |
3166 | # Check whether --enable-libada was given. |
3167 | if test "${enable_libada+set}" = set; then : | |
3168 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3169 | else |
3170 | ENABLE_LIBADA=yes | |
5213506e RW |
3171 | fi |
3172 | ||
d9cdb878 | 3173 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3174 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3175 | fi |
3176 | ||
5213506e RW |
3177 | # Check whether --enable-libssp was given. |
3178 | if test "${enable_libssp+set}" = set; then : | |
3179 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3180 | else |
3181 | ENABLE_LIBSSP=yes | |
5213506e RW |
3182 | fi |
3183 | ||
ef0087a7 | 3184 | |
1873ec0c L |
3185 | # Check whether --enable-libstdcxx was given. |
3186 | if test "${enable_libstdcxx+set}" = set; then : | |
3187 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3188 | else | |
3189 | ENABLE_LIBSTDCXX=default | |
3190 | fi | |
3191 | ||
3192 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3193 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3194 | fi |
3195 | ||
5f520819 KY |
3196 | # If this is accelerator compiler and its target is intelmic we enable |
3197 | # target liboffloadmic by default. If this is compiler with offloading | |
3198 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3199 | # liboffloadmic is disabled by default. | |
3200 | # Check whether --enable-liboffloadmic was given. | |
3201 | if test "${enable_liboffloadmic+set}" = set; then : | |
3202 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3203 | no | host | target) | |
3204 | enable_liboffloadmic=$enableval ;; | |
3205 | *) | |
22e05272 | 3206 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
5f520819 KY |
3207 | esac |
3208 | else | |
4b4f2e35 | 3209 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3210 | case "${target}" in |
3211 | *-intelmic-* | *-intelmicemul-*) | |
3212 | enable_liboffloadmic=target | |
3213 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3214 | ;; | |
3215 | *) | |
3216 | enable_liboffloadmic=no | |
3217 | ;; | |
3218 | esac | |
3219 | else | |
3220 | case "${enable_offload_targets}" in | |
3221 | *-intelmic-* | *-intelmicemul-*) | |
3222 | enable_liboffloadmic=host | |
3223 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3224 | ;; | |
3225 | *) | |
3226 | enable_liboffloadmic=no | |
3227 | ;; | |
3228 | esac | |
3229 | fi | |
3230 | fi | |
3231 | ||
3232 | ||
3233 | ||
44a7d18d | 3234 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3235 | if test x$enable_libgomp = x ; then |
953ff289 | 3236 | case "${target}" in |
416ac4d4 | 3237 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3238 | ;; |
8c6d158a | 3239 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3240 | ;; |
b24513a1 | 3241 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3242 | ;; |
cac90078 | 3243 | *-*-darwin* | *-*-aix*) |
953ff289 | 3244 | ;; |
29b1533a | 3245 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3246 | ;; |
953ff289 DN |
3247 | *) |
3248 | noconfigdirs="$noconfigdirs target-libgomp" | |
3249 | ;; | |
3250 | esac | |
27079765 | 3251 | fi |
953ff289 | 3252 | |
48310492 RH |
3253 | # Disable libatomic on unsupported systems. |
3254 | if test -d ${srcdir}/libatomic; then | |
3255 | if test x$enable_libatomic = x; then | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3257 | $as_echo_n "checking for libatomic support... " >&6; } | |
3258 | if (srcdir=${srcdir}/libatomic; \ | |
3259 | . ${srcdir}/configure.tgt; \ | |
3260 | test -n "$UNSUPPORTED") | |
3261 | then | |
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3263 | $as_echo "no" >&6; } | |
3264 | noconfigdirs="$noconfigdirs target-libatomic" | |
3265 | else | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3267 | $as_echo "yes" >&6; } | |
3268 | fi | |
3269 | fi | |
3270 | fi | |
3271 | ||
5f520819 KY |
3272 | # Disable liboffloadmic on unsupported systems. |
3273 | if test -d ${srcdir}/liboffloadmic; then | |
3274 | if test x$enable_liboffloadmic != xno; then | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3276 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3277 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3278 | . ${srcdir}/configure.tgt; \ | |
3279 | test -n "$UNSUPPORTED") | |
3280 | then | |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3282 | $as_echo "no" >&6; } | |
3283 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3284 | else | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3286 | $as_echo "yes" >&6; } | |
3287 | fi | |
3288 | fi | |
3289 | fi | |
3290 | ||
e948157d RH |
3291 | # Disable libitm on unsupported systems. |
3292 | if test -d ${srcdir}/libitm; then | |
3293 | if test x$enable_libitm = x; then | |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3295 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3296 | if (srcdir=${srcdir}/libitm; \ |
3297 | . ${srcdir}/configure.tgt; \ | |
3298 | test -n "$UNSUPPORTED") | |
3299 | then | |
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3301 | $as_echo "no" >&6; } |
e948157d RH |
3302 | noconfigdirs="$noconfigdirs target-libitm" |
3303 | else | |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3305 | $as_echo "yes" >&6; } |
e948157d RH |
3306 | fi |
3307 | fi | |
0a35513e AH |
3308 | fi |
3309 | ||
93bf5390 RH |
3310 | # Disable libsanitizer on unsupported systems. |
3311 | if test -d ${srcdir}/libsanitizer; then | |
3312 | if test x$enable_libsanitizer = x; then | |
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3314 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3315 | if (srcdir=${srcdir}/libsanitizer; \ | |
3316 | . ${srcdir}/configure.tgt; \ | |
3317 | test -n "$UNSUPPORTED") | |
3318 | then | |
3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3320 | $as_echo "no" >&6; } | |
3321 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3322 | else | |
3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3324 | $as_echo "yes" >&6; } | |
3325 | fi | |
3326 | fi | |
3327 | fi | |
3328 | ||
2077db1b CT |
3329 | # Disable libvtv on unsupported systems. |
3330 | if test -d ${srcdir}/libvtv; then | |
3331 | if test x$enable_libvtv = x; then | |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3333 | $as_echo_n "checking for libvtv support... " >&6; } | |
3334 | if (srcdir=${srcdir}/libvtv; \ | |
3335 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3336 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3337 | then |
3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3339 | $as_echo "no" >&6; } | |
3340 | noconfigdirs="$noconfigdirs target-libvtv" | |
3341 | else | |
3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3343 | $as_echo "yes" >&6; } | |
3344 | fi | |
3345 | fi | |
3346 | fi | |
3347 | ||
d91491e5 SE |
3348 | # Disable libquadmath for some systems. |
3349 | case "${target}" in | |
e7fae550 DE |
3350 | avr-*-*) |
3351 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3352 | ;; | |
d91491e5 SE |
3353 | # libquadmath is unused on AIX and libquadmath build process use of |
3354 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3355 | powerpc-*-aix* | rs6000-*-aix*) | |
3356 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3357 | ;; | |
3358 | esac | |
3359 | ||
1e9e0e23 JM |
3360 | # Disable libssp for some systems. |
3361 | case "${target}" in | |
3362 | avr-*-*) | |
b318fb4b | 3363 | # No hosted I/O support. |
1e9e0e23 JM |
3364 | noconfigdirs="$noconfigdirs target-libssp" |
3365 | ;; | |
91dfef96 JM |
3366 | bpf-*-*) |
3367 | noconfigdirs="$noconfigdirs target-libssp" | |
3368 | ;; | |
1e9e0e23 JM |
3369 | powerpc-*-aix* | rs6000-*-aix*) |
3370 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3371 | ;; |
8d2af3a2 DD |
3372 | pru-*-*) |
3373 | # No hosted I/O support. | |
3374 | noconfigdirs="$noconfigdirs target-libssp" | |
3375 | ;; | |
85b8555e | 3376 | rl78-*-*) |
7cb62ef1 EB |
3377 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3378 | # doesn't fault for those - instead, it gives a build-time error | |
3379 | # for explicit misaligned loads. | |
85b8555e | 3380 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3381 | ;; |
0969ec7d EB |
3382 | visium-*-*) |
3383 | # No hosted I/O support. | |
3384 | noconfigdirs="$noconfigdirs target-libssp" | |
3385 | ;; | |
1e9e0e23 JM |
3386 | esac |
3387 | ||
1e9e0e23 | 3388 | # Disable libstdc++-v3 for some systems. |
67a1cb2a | 3389 | # Allow user to override this if they pass --enable-libstdcxx |
1873ec0c L |
3390 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then |
3391 | case "${target}" in | |
3392 | *-*-vxworks*) | |
3393 | # VxWorks uses the Dinkumware C++ library. | |
3394 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3395 | ;; | |
afa3d80e TS |
3396 | amdgcn*-*-*) |
3397 | # Not ported/fails to build when using newlib. | |
3398 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3399 | ;; | |
1873ec0c L |
3400 | arm*-wince-pe*) |
3401 | # the C++ libraries don't build on top of CE's C libraries | |
3402 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3403 | ;; | |
3404 | avr-*-*) | |
3405 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3406 | ;; | |
91dfef96 JM |
3407 | bpf-*-*) |
3408 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3409 | ;; | |
fef939d6 JB |
3410 | ft32-*-*) |
3411 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3412 | ;; | |
1873ec0c L |
3413 | esac |
3414 | fi | |
1e9e0e23 | 3415 | |
91dfef96 JM |
3416 | # Disable C++ on systems where it is known to not work. |
3417 | # For testing, you can override this with --enable-languages=c++. | |
3418 | case ,${enable_languages}, in | |
3419 | *,c++,*) | |
3420 | ;; | |
3421 | *) | |
3422 | case "${target}" in | |
3423 | bpf-*-*) | |
3424 | unsupported_languages="$unsupported_languages c++" | |
3425 | ;; | |
3426 | esac | |
3427 | ;; | |
3428 | esac | |
3429 | ||
3430 | # Disable Objc on systems where it is known to not work. | |
3431 | # For testing, you can override this with --enable-languages=objc. | |
3432 | case ,${enable_languages}, in | |
3433 | *,objc,*) | |
3434 | ;; | |
3435 | *) | |
3436 | case "${target}" in | |
3437 | bpf-*-*) | |
3438 | unsupported_languages="$unsupported_languages objc" | |
3439 | ;; | |
3440 | esac | |
3441 | ;; | |
3442 | esac | |
3443 | ||
260eedb9 IB |
3444 | # Disable D on systems where it is known to not work. |
3445 | # For testing, you can override this with --enable-languages=d. | |
3446 | case ,${enable_languages}, in | |
3447 | *,d,*) | |
3448 | ;; | |
3449 | *) | |
3450 | case "${target}" in | |
91dfef96 | 3451 | bpf-*-*) |
260eedb9 IB |
3452 | unsupported_languages="$unsupported_languages d" |
3453 | ;; | |
3454 | esac | |
3455 | ;; | |
3456 | esac | |
3457 | ||
3458 | # Disable libphobos on unsupported systems. | |
3459 | # For testing, you can override this with --enable-libphobos. | |
3460 | if test -d ${srcdir}/libphobos; then | |
3461 | if test x$enable_libphobos = x; then | |
3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3463 | $as_echo_n "checking for libphobos support... " >&6; } | |
3464 | if (srcdir=${srcdir}/libphobos; \ | |
3465 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3466 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3467 | then |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3469 | $as_echo "no" >&6; } | |
3470 | noconfigdirs="$noconfigdirs target-libphobos" | |
3471 | else | |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3473 | $as_echo "yes" >&6; } | |
3474 | fi | |
3475 | fi | |
3476 | fi | |
3477 | ||
1e9e0e23 JM |
3478 | # Disable Fortran for some systems. |
3479 | case "${target}" in | |
3480 | mmix-*-*) | |
3481 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3482 | unsupported_languages="$unsupported_languages fortran" | |
3483 | ;; | |
91dfef96 JM |
3484 | bpf-*-*) |
3485 | unsupported_languages="$unsupported_languages fortran" | |
3486 | ;; | |
1e9e0e23 JM |
3487 | esac |
3488 | ||
012447ea JJ |
3489 | # Disable libffi for some systems. |
3490 | case "${target}" in | |
3491 | powerpc-*-darwin*) | |
3492 | ;; | |
3493 | i[3456789]86-*-darwin*) | |
3494 | ;; | |
3495 | x86_64-*-darwin[912]*) | |
3496 | ;; | |
3497 | *-*-darwin*) | |
3498 | noconfigdirs="$noconfigdirs target-libffi" | |
3499 | ;; | |
3500 | *-*-netware*) | |
3501 | noconfigdirs="$noconfigdirs target-libffi" | |
3502 | ;; | |
3503 | *-*-phoenix*) | |
3504 | noconfigdirs="$noconfigdirs target-libffi" | |
3505 | ;; | |
3506 | *-*-rtems*) | |
3507 | noconfigdirs="$noconfigdirs target-libffi" | |
3508 | ;; | |
3509 | *-*-tpf*) | |
3510 | noconfigdirs="$noconfigdirs target-libffi" | |
3511 | ;; | |
3512 | *-*-uclinux*) | |
3513 | noconfigdirs="$noconfigdirs target-libffi" | |
3514 | ;; | |
3515 | *-*-vxworks*) | |
3516 | noconfigdirs="$noconfigdirs target-libffi" | |
3517 | ;; | |
b20e7532 AT |
3518 | aarch64*-*-freebsd*) |
3519 | noconfigdirs="$noconfigdirs target-libffi" | |
3520 | ;; | |
012447ea JJ |
3521 | alpha*-*-*vms*) |
3522 | noconfigdirs="$noconfigdirs target-libffi" | |
3523 | ;; | |
3524 | arm*-*-freebsd*) | |
3525 | noconfigdirs="$noconfigdirs target-libffi" | |
3526 | ;; | |
3527 | arm-wince-pe) | |
3528 | noconfigdirs="$noconfigdirs target-libffi" | |
3529 | ;; | |
3530 | arm*-*-symbianelf*) | |
3531 | noconfigdirs="$noconfigdirs target-libffi" | |
3532 | ;; | |
91dfef96 JM |
3533 | bpf-*-*) |
3534 | noconfigdirs="$noconfigdirs target-libffi" | |
3535 | ;; | |
012447ea JJ |
3536 | cris-*-* | crisv32-*-*) |
3537 | case "${target}" in | |
3538 | *-*-linux*) | |
3539 | ;; | |
3540 | *) # See PR46792 regarding target-libffi. | |
3541 | noconfigdirs="$noconfigdirs target-libffi";; | |
3542 | esac | |
3543 | ;; | |
3544 | hppa*64*-*-hpux*) | |
3545 | noconfigdirs="$noconfigdirs target-libffi" | |
3546 | ;; | |
3547 | hppa*-hp-hpux11*) | |
3548 | ;; | |
3549 | hppa*-*-hpux*) | |
3550 | noconfigdirs="$noconfigdirs target-libffi" | |
3551 | ;; | |
3552 | ia64*-*-*vms*) | |
3553 | noconfigdirs="$noconfigdirs target-libffi" | |
3554 | ;; | |
3555 | i[3456789]86-w64-mingw*) | |
3556 | noconfigdirs="$noconfigdirs target-libffi" | |
3557 | ;; | |
3558 | i[3456789]86-*-mingw*) | |
3559 | noconfigdirs="$noconfigdirs target-libffi" | |
3560 | ;; | |
3561 | x86_64-*-mingw*) | |
3562 | noconfigdirs="$noconfigdirs target-libffi" | |
3563 | ;; | |
3564 | mmix-*-*) | |
3565 | noconfigdirs="$noconfigdirs target-libffi" | |
3566 | ;; | |
3567 | powerpc-*-aix*) | |
012447ea JJ |
3568 | ;; |
3569 | rs6000-*-aix*) | |
012447ea JJ |
3570 | ;; |
3571 | ft32-*-*) | |
3572 | noconfigdirs="$noconfigdirs target-libffi" | |
3573 | ;; | |
3574 | *-*-lynxos*) | |
3575 | noconfigdirs="$noconfigdirs target-libffi" | |
3576 | ;; | |
3577 | esac | |
3578 | ||
3579 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3580 | # this in sync with contrib/config-list.mk. | |
3581 | case "${target}" in | |
91dfef96 | 3582 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3583 | unsupported_languages="$unsupported_languages go" |
3584 | ;; | |
3585 | esac | |
3586 | ||
f9d09df0 TT |
3587 | # Only allow gdbserver on some systems. |
3588 | if test -d ${srcdir}/gdbserver; then | |
3589 | if test x$enable_gdbserver = x; then | |
3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3591 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3592 | if (srcdir=${srcdir}/gdbserver; \ | |
3593 | . ${srcdir}/configure.srv; \ | |
3594 | test -n "$UNSUPPORTED") | |
3595 | then | |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3597 | $as_echo "no" >&6; } | |
3598 | noconfigdirs="$noconfigdirs gdbserver" | |
3599 | else | |
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3601 | $as_echo "yes" >&6; } | |
3602 | fi | |
3603 | fi | |
3604 | fi | |
3605 | ||
cdbc9e92 ILT |
3606 | # Disable libgo for some systems where it is known to not work. |
3607 | # For testing, you can easily override this with --enable-libgo. | |
3608 | if test x$enable_libgo = x; then | |
3609 | case "${target}" in | |
3610 | *-*-darwin*) | |
3611 | # PR 46986 | |
3612 | noconfigdirs="$noconfigdirs target-libgo" | |
3613 | ;; | |
3614 | *-*-cygwin* | *-*-mingw*) | |
3615 | noconfigdirs="$noconfigdirs target-libgo" | |
3616 | ;; | |
91dfef96 JM |
3617 | bpf-*-*) |
3618 | noconfigdirs="$noconfigdirs target-libgo" | |
3619 | ;; | |
cdbc9e92 ILT |
3620 | esac |
3621 | fi | |
3622 | ||
c03353e2 RIL |
3623 | # Default libgloss CPU subdirectory. |
3624 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3625 | |
fbcf0dca JM |
3626 | case "${target}" in |
3627 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3628 | libgloss_dir=wince | |
3629 | ;; | |
4dddfc74 YZ |
3630 | aarch64*-*-* ) |
3631 | libgloss_dir=aarch64 | |
3632 | ;; | |
fbcf0dca JM |
3633 | arm*-*-*) |
3634 | libgloss_dir=arm | |
3635 | ;; | |
3636 | cris-*-* | crisv32-*-*) | |
3637 | libgloss_dir=cris | |
3638 | ;; | |
3639 | hppa*-*-*) | |
3640 | libgloss_dir=pa | |
3641 | ;; | |
3642 | i[3456789]86-*-*) | |
3643 | libgloss_dir=i386 | |
3644 | ;; | |
c6c0594e | 3645 | loongarch*-*-*) |
3646 | libgloss_dir=loongarch | |
3647 | ;; | |
fbcf0dca JM |
3648 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3649 | libgloss_dir=m68hc11 | |
3650 | ;; | |
3651 | m68*-*-* | fido-*-*) | |
3652 | libgloss_dir=m68k | |
3653 | ;; | |
3654 | mips*-*-*) | |
3655 | libgloss_dir=mips | |
3656 | ;; | |
3657 | powerpc*-*-*) | |
3658 | libgloss_dir=rs6000 | |
3659 | ;; | |
8d2af3a2 DD |
3660 | pru-*-*) |
3661 | libgloss_dir=pru | |
3662 | ;; | |
fbcf0dca JM |
3663 | sparc*-*-*) |
3664 | libgloss_dir=sparc | |
3665 | ;; | |
3666 | esac | |
3667 | ||
6a789d5e | 3668 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3669 | case "${target}" in |
6a789d5e JM |
3670 | alpha*-dec-osf*) |
3671 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3672 | ;; | |
3673 | i[3456789]86-*-linux*) | |
3674 | # This section makes it possible to build newlib natively on linux. | |
3675 | # If we are using a cross compiler then don't configure newlib. | |
3676 | if test x${is_cross_compiler} != xno ; then | |
3677 | noconfigdirs="$noconfigdirs target-newlib" | |
3678 | fi | |
3679 | noconfigdirs="$noconfigdirs target-libgloss" | |
3680 | # If we are not using a cross compiler, do configure newlib. | |
3681 | # Note however, that newlib will only be configured in this situation | |
3682 | # if the --with-newlib option has been given, because otherwise | |
3683 | # 'target-newlib' will appear in skipdirs. | |
3684 | ;; | |
3685 | i[3456789]86-*-rdos*) | |
3686 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3687 | ;; | |
3688 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3689 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3690 | ;; | |
3691 | sparc-*-sunos4*) | |
3692 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3693 | ;; | |
91dfef96 JM |
3694 | bpf-*-*) |
3695 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3696 | ;; | |
6a789d5e JM |
3697 | *-*-aix*) |
3698 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3699 | ;; | |
3700 | *-*-beos*) | |
3701 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3702 | ;; | |
671aa708 | 3703 | *-*-chorusos) |
0036370f | 3704 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3705 | ;; |
6a789d5e JM |
3706 | *-*-dragonfly*) |
3707 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3708 | ;; | |
3709 | *-*-freebsd*) | |
3710 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3711 | ;; | |
3712 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3713 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3714 | ;; | |
3715 | *-*-lynxos*) | |
3716 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3717 | ;; | |
3718 | *-*-mingw*) | |
3719 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3720 | ;; | |
3721 | *-*-netbsd*) | |
3722 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3723 | ;; | |
3724 | *-*-netware*) | |
3725 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3726 | ;; | |
3727 | *-*-tpf*) | |
3728 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3729 | ;; | |
3730 | *-*-uclinux*) | |
3731 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3732 | ;; | |
3733 | *-*-vxworks*) | |
3734 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3735 | ;; | |
3736 | esac | |
3737 | ||
3738 | case "${target}" in | |
3739 | *-*-chorusos) | |
3740 | ;; | |
3be96231 TG |
3741 | aarch64-*-darwin*) |
3742 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3743 | noconfigdirs="$noconfigdirs sim target-rda" | |
3744 | ;; | |
7431c1a1 AS |
3745 | amdgcn*-*-*) |
3746 | ;; | |
3be96231 TG |
3747 | arm-*-darwin*) |
3748 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3749 | noconfigdirs="$noconfigdirs sim target-rda" | |
3750 | ;; | |
75eeae1a | 3751 | powerpc-*-darwin*) |
e1514c3f | 3752 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3753 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3754 | ;; |
354ebf88 RW |
3755 | i[3456789]86-*-darwin*) |
3756 | noconfigdirs="$noconfigdirs ld gprof" | |
3757 | noconfigdirs="$noconfigdirs sim target-rda" | |
3758 | ;; | |
3759 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3760 | noconfigdirs="$noconfigdirs ld gas gprof" |
3761 | noconfigdirs="$noconfigdirs sim target-rda" | |
3762 | ;; | |
42c1cd8a AT |
3763 | *-*-darwin*) |
3764 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3765 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3766 | ;; |
8c6d158a | 3767 | *-*-dragonfly*) |
8c6d158a | 3768 | ;; |
c3f84f61 | 3769 | *-*-freebsd*) |
88252529 | 3770 | if test "x$with_gmp" = x \ |
c0d0a722 | 3771 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3772 | && test -f /usr/local/include/gmp.h; then |
3773 | with_gmp=/usr/local | |
3774 | fi | |
6de9cd9a | 3775 | ;; |
ef4e7569 US |
3776 | *-*-kaos*) |
3777 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3778 | noconfigdirs="$noconfigdirs target-libgloss" |
3779 | ;; | |
671aa708 | 3780 | *-*-netbsd*) |
671aa708 | 3781 | ;; |
61fec9ff | 3782 | *-*-netware*) |
671aa708 | 3783 | ;; |
fd6487af JS |
3784 | *-*-phoenix*) |
3785 | noconfigdirs="$noconfigdirs target-libgloss" | |
3786 | ;; | |
671aa708 | 3787 | *-*-rtems*) |
2909494b | 3788 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3789 | ;; |
a8ba31f2 EC |
3790 | # The tpf target doesn't support gdb yet. |
3791 | *-*-tpf*) | |
6a789d5e | 3792 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3793 | ;; |
5785c0ed | 3794 | *-*-uclinux*) |
6a789d5e | 3795 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3796 | ;; |
671aa708 | 3797 | *-*-vxworks*) |
671aa708 NN |
3798 | ;; |
3799 | alpha*-dec-osf*) | |
3800 | # ld works, but does not support shared libraries. | |
671aa708 | 3801 | # gas doesn't generate exception information. |
6a789d5e | 3802 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3803 | ;; |
3804 | alpha*-*-*vms*) | |
2909494b | 3805 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3806 | ;; |
671aa708 NN |
3807 | alpha*-*-*) |
3808 | # newlib is not 64 bit ready | |
2909494b | 3809 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3810 | ;; |
91dfef96 JM |
3811 | bpf-*-*) |
3812 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3813 | ;; | |
671aa708 | 3814 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3815 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3816 | ;; |
2fd88f4f AK |
3817 | arc*-*-*) |
3818 | noconfigdirs="$noconfigdirs sim" | |
3819 | ;; | |
671aa708 | 3820 | arm-*-pe*) |
2909494b | 3821 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3822 | ;; |
671aa708 | 3823 | arm-*-riscix*) |
0036370f | 3824 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3825 | ;; |
b588ae30 GJL |
3826 | avr-*-*) |
3827 | if test x${with_avrlibc} != xno; then | |
3828 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3829 | fi | |
3830 | ;; | |
671aa708 | 3831 | c4x-*-* | tic4x-*-*) |
0036370f | 3832 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3833 | ;; |
0036370f JM |
3834 | tic54x-*-*) |
3835 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3836 | ;; |
671aa708 | 3837 | d10v-*-*) |
0036370f | 3838 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3839 | ;; |
3840 | d30v-*-*) | |
0036370f | 3841 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3842 | ;; |
3843 | fr30-*-elf*) | |
2909494b | 3844 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3845 | ;; |
a05c2c75 L |
3846 | ft32-*-*) |
3847 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3848 | ;; | |
55f2d967 | 3849 | moxie-*-*) |
a05c2c75 | 3850 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3851 | ;; |
671aa708 | 3852 | h8300*-*-*) |
2909494b | 3853 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3854 | ;; |
3855 | h8500-*-*) | |
0036370f | 3856 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3857 | ;; |
ee6a22df | 3858 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3859 | ;; |
a05c2c75 L |
3860 | hppa*64*-*-hpux*) |
3861 | noconfigdirs="$noconfigdirs gdb" | |
3862 | ;; | |
3863 | hppa*-*-hpux11*) | |
3864 | noconfigdirs="$noconfigdirs gdb ld" | |
3865 | ;; | |
4569f85e | 3866 | hppa*64*-*-linux*) |
671aa708 | 3867 | ;; |
56f8587a | 3868 | hppa*-*-linux*) |
3e732ba0 | 3869 | ;; |
671aa708 | 3870 | hppa*-*-*elf* | \ |
671aa708 NN |
3871 | hppa*-*-lites* | \ |
3872 | hppa*-*-openbsd* | \ | |
3873 | hppa*64*-*-*) | |
671aa708 | 3874 | ;; |
c03353e2 | 3875 | hppa*-*-pro*) |
c03353e2 | 3876 | ;; |
671aa708 | 3877 | hppa*-*-*) |
2909494b | 3878 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3879 | ;; |
fb87ad5d | 3880 | i960-*-*) |
0036370f | 3881 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3882 | ;; |
671aa708 NN |
3883 | ia64*-*-elf*) |
3884 | # No gdb support yet. | |
1bcce263 | 3885 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3886 | ;; |
3887 | ia64*-**-hpux*) | |
5a2931d1 | 3888 | # No ld support yet. |
a05c2c75 | 3889 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3890 | ;; |
52535a64 | 3891 | ia64*-*-*vms*) |
091fe9ca TG |
3892 | # No ld support yet. |
3893 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3894 | ;; |
ef4c4300 | 3895 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3896 | ;; |
3897 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3898 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3899 | ;; |
671aa708 NN |
3900 | *-*-cygwin*) |
3901 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3902 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3903 | # always build newlib if winsup directory is present. |
b91f0a41 | 3904 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3905 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3906 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3907 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3908 | fi |
1c710c3c | 3909 | ;; |
f2a0e225 | 3910 | i[3456789]86-*-pe) |
ebb9f8b0 | 3911 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3912 | ;; |
f2a0e225 | 3913 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3914 | # The linker does not yet know about weak symbols in COFF, |
3915 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3916 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3917 | ;; |
f2a0e225 | 3918 | i[3456789]86-*-sco*) |
0036370f | 3919 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3920 | ;; |
fbdd5d87 | 3921 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3922 | noconfigdirs="$noconfigdirs target-libgloss" |
3923 | ;; | |
f2a0e225 | 3924 | i[3456789]86-*-sysv4*) |
0036370f | 3925 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3926 | ;; |
f2a0e225 | 3927 | i[3456789]86-*-beos*) |
6a789d5e | 3928 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3929 | ;; |
d1f8db0c | 3930 | i[3456789]86-*-rdos*) |
6a789d5e | 3931 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3932 | ;; |
671aa708 | 3933 | mmix-*-*) |
2909494b | 3934 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3935 | ;; |
ab34901f | 3936 | mt-*-*) |
79dd769c AH |
3937 | noconfigdirs="$noconfigdirs sim" |
3938 | ;; | |
58b40a67 FT |
3939 | nfp-*-*) |
3940 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3941 | noconfigdirs="$noconfigdirs $target_libraries" | |
3942 | ;; | |
e6cbe965 SC |
3943 | pdp11-*-*) |
3944 | noconfigdirs="$noconfigdirs gdb gprof" | |
3945 | ;; | |
671aa708 NN |
3946 | powerpc-*-aix*) |
3947 | # copied from rs6000-*-* entry | |
6a789d5e | 3948 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3949 | ;; |
4569f85e | 3950 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3951 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3952 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3953 | # always build newlib. |
3954 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3955 | ;; | |
3956 | # This is temporary until we can link against shared libraries | |
3957 | powerpcle-*-solaris*) | |
0036370f | 3958 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3959 | ;; |
3960 | powerpc-*-beos*) | |
6a789d5e | 3961 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3962 | ;; |
671aa708 | 3963 | rs6000-*-lynxos*) |
6a789d5e | 3964 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3965 | ;; |
3966 | rs6000-*-aix*) | |
6a789d5e | 3967 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3968 | ;; |
3969 | rs6000-*-*) | |
2909494b | 3970 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3971 | ;; |
3972 | m68k-apollo-*) | |
0036370f | 3973 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3974 | ;; |
ca9fe997 | 3975 | microblaze*) |
2909494b | 3976 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3977 | ;; |
d896cc4d | 3978 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3979 | if test x$with_newlib = xyes; then |
3980 | noconfigdirs="$noconfigdirs gprof" | |
3981 | fi | |
d9dced13 | 3982 | ;; |
671aa708 | 3983 | mips*-*-irix5*) |
0036370f | 3984 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3985 | ;; |
3986 | mips*-*-irix6*) | |
2909494b | 3987 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3988 | ;; |
671aa708 | 3989 | mips*-*-bsd*) |
bc98bcc4 | 3990 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3991 | ;; |
671aa708 | 3992 | mips*-*-linux*) |
671aa708 | 3993 | ;; |
bc98bcc4 JBG |
3994 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3995 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3996 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3997 | ;; | |
671aa708 | 3998 | mips*-*-*) |
2909494b | 3999 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 4000 | ;; |
738f2522 | 4001 | nvptx*-*-*) |
738f2522 BS |
4002 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4003 | ;; | |
bc6d9014 | 4004 | sh-*-*) |
ea2002ba CB |
4005 | case "${target}" in |
4006 | sh*-*-elf) | |
2909494b | 4007 | ;; |
ea2002ba | 4008 | *) |
2909494b | 4009 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4010 | esac |
671aa708 | 4011 | ;; |
671aa708 | 4012 | sparc-*-sunos4*) |
6a789d5e | 4013 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4014 | use_gnu_ld=no |
4015 | fi | |
4016 | ;; | |
b42f0d7e | 4017 | tic6x-*-*) |
0d557ff8 | 4018 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4019 | ;; |
671aa708 | 4020 | v810-*-*) |
0036370f | 4021 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4022 | ;; |
4023 | vax-*-*) | |
2909494b | 4024 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4025 | ;; |
1fc1d82e MR |
4026 | wasm32-*-*) |
4027 | noconfigdirs="$noconfigdirs ld" | |
4028 | ;; | |
c6c0594e | 4029 | loongarch*-*-linux*) |
4030 | ;; | |
4031 | loongarch*-*-*) | |
4032 | noconfigdirs="$noconfigdirs gprof" | |
4033 | ;; | |
671aa708 | 4034 | esac |
79c06341 | 4035 | |
671aa708 NN |
4036 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4037 | # depends upon some newlib header files. | |
4038 | case "${noconfigdirs}" in | |
4039 | *target-libgloss*) ;; | |
4040 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4041 | esac | |
4042 | ||
671aa708 | 4043 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4044 | host_makefile_frag=/dev/null |
4045 | if test -d ${srcdir}/config ; then | |
4046 | case "${host}" in | |
f2a0e225 | 4047 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4048 | host_makefile_frag="config/mh-djgpp" |
4049 | ;; | |
4050 | *-cygwin*) | |
2a79c47f | 4051 | |
5213506e RW |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4053 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4054 | echo a >cygwin-cat-check |
e25a8c82 | 4055 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4056 | rm cygwin-cat-check |
5213506e RW |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4058 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4059 | else |
4060 | rm cygwin-cat-check | |
5213506e RW |
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4062 | $as_echo "no" >&6; } | |
22e05272 | 4063 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4064 | Please either mount the build directory in binary mode or run the following |
4065 | commands before running any configure script: | |
4066 | set -o igncr | |
4067 | export SHELLOPTS | |
5213506e | 4068 | " "$LINENO" 5 |
2a79c47f NC |
4069 | fi |
4070 | ||
671aa708 NN |
4071 | host_makefile_frag="config/mh-cygwin" |
4072 | ;; | |
c53a18d3 | 4073 | *-mingw*) |
1f5a6b84 | 4074 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4075 | ;; |
cabb9d59 | 4076 | alpha*-linux*) |
13be44ed UB |
4077 | host_makefile_frag="config/mh-alpha-linux" |
4078 | ;; | |
efd41714 | 4079 | hppa*-hp-hpux10*) |
efd41714 | 4080 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 4081 | ;; |
111eeb6e | 4082 | hppa*-hp-hpux*) |
efd41714 PB |
4083 | host_makefile_frag="config/mh-pa" |
4084 | ;; | |
4085 | hppa*-*) | |
4086 | host_makefile_frag="config/mh-pa" | |
4087 | ;; | |
54258e22 | 4088 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4089 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4090 | ;; |
d19bca38 PB |
4091 | powerpc-*-aix*) |
4092 | host_makefile_frag="config/mh-ppc-aix" | |
4093 | ;; | |
4094 | rs6000-*-aix*) | |
4095 | host_makefile_frag="config/mh-ppc-aix" | |
4096 | ;; | |
671aa708 NN |
4097 | esac |
4098 | fi | |
4099 | ||
55ffb5ed | 4100 | if test "${build}" != "${host}" ; then |
0999159b PB |
4101 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4102 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4103 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
c841dc0a | 4104 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
0999159b | 4105 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3b5e8ee4 | 4106 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4107 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4108 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4109 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4110 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4111 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4112 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4113 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4114 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4115 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4116 | else | |
4117 | AR_FOR_BUILD="\$(AR)" | |
4118 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4119 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4120 | CXX_FOR_BUILD="\$(CXX)" |
3b5e8ee4 | 4121 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4122 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4123 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4124 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4125 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4126 | LD_FOR_BUILD="\$(LD)" | |
4127 | NM_FOR_BUILD="\$(NM)" | |
4128 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4129 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4130 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4131 | fi |
4132 | ||
4133 | ac_ext=c | |
1c710c3c DJ |
4134 | ac_cpp='$CPP $CPPFLAGS' |
4135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4138 | if test -n "$ac_tool_prefix"; then | |
4139 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4140 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4142 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4143 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4144 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4145 | else |
4146 | if test -n "$CC"; then | |
4147 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4148 | else | |
4149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4150 | for as_dir in $PATH | |
4151 | do | |
4152 | IFS=$as_save_IFS | |
4153 | test -z "$as_dir" && as_dir=. | |
5213506e | 4154 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4156 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4158 | break 2 |
4159 | fi | |
4160 | done | |
5213506e RW |
4161 | done |
4162 | IFS=$as_save_IFS | |
1c710c3c DJ |
4163 | |
4164 | fi | |
4165 | fi | |
4166 | CC=$ac_cv_prog_CC | |
4167 | if test -n "$CC"; then | |
5213506e RW |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4169 | $as_echo "$CC" >&6; } | |
1c710c3c | 4170 | else |
5213506e RW |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4172 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4173 | fi |
4174 | ||
5213506e | 4175 | |
1c710c3c DJ |
4176 | fi |
4177 | if test -z "$ac_cv_prog_CC"; then | |
4178 | ac_ct_CC=$CC | |
fb0103e5 RG |
4179 | # Extract the first word of "gcc", so it can be a program name with args. |
4180 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4182 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4183 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4184 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4185 | else |
4186 | if test -n "$ac_ct_CC"; then | |
4187 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4188 | else | |
4189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4190 | for as_dir in $PATH | |
4191 | do | |
4192 | IFS=$as_save_IFS | |
4193 | test -z "$as_dir" && as_dir=. | |
5213506e | 4194 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4196 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4198 | break 2 |
4199 | fi | |
4200 | done | |
5213506e RW |
4201 | done |
4202 | IFS=$as_save_IFS | |
1c710c3c DJ |
4203 | |
4204 | fi | |
4205 | fi | |
4206 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4207 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4209 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4210 | else |
5213506e RW |
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4212 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4213 | fi |
4214 | ||
5213506e RW |
4215 | if test "x$ac_ct_CC" = x; then |
4216 | CC="" | |
4217 | else | |
4218 | case $cross_compiling:$ac_tool_warned in | |
4219 | yes:) | |
4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4221 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4222 | ac_tool_warned=yes ;; | |
4223 | esac | |
4224 | CC=$ac_ct_CC | |
4225 | fi | |
1c710c3c DJ |
4226 | else |
4227 | CC="$ac_cv_prog_CC" | |
4228 | fi | |
4229 | ||
4230 | if test -z "$CC"; then | |
5213506e RW |
4231 | if test -n "$ac_tool_prefix"; then |
4232 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4233 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4235 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4236 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4237 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4238 | else |
4239 | if test -n "$CC"; then | |
4240 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4241 | else | |
1c710c3c DJ |
4242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4243 | for as_dir in $PATH | |
4244 | do | |
4245 | IFS=$as_save_IFS | |
4246 | test -z "$as_dir" && as_dir=. | |
5213506e | 4247 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4248 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4249 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4250 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4251 | break 2 |
4252 | fi | |
4253 | done | |
5213506e RW |
4254 | done |
4255 | IFS=$as_save_IFS | |
1c710c3c | 4256 | |
0b0dc272 | 4257 | fi |
0b0dc272 | 4258 | fi |
1c710c3c | 4259 | CC=$ac_cv_prog_CC |
af71363e | 4260 | if test -n "$CC"; then |
5213506e RW |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4262 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4263 | else |
5213506e RW |
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4265 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4266 | fi |
4267 | ||
2aeb72e9 | 4268 | |
5213506e | 4269 | fi |
1c710c3c | 4270 | fi |
55ffb5ed NN |
4271 | if test -z "$CC"; then |
4272 | # Extract the first word of "cc", so it can be a program name with args. | |
4273 | set dummy cc; ac_word=$2 | |
5213506e RW |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4275 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4276 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4277 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4278 | else |
4279 | if test -n "$CC"; then | |
4280 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4281 | else | |
0b0dc272 | 4282 | ac_prog_rejected=no |
1c710c3c DJ |
4283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4284 | for as_dir in $PATH | |
4285 | do | |
4286 | IFS=$as_save_IFS | |
4287 | test -z "$as_dir" && as_dir=. | |
5213506e | 4288 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4290 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4291 | ac_prog_rejected=yes | |
4292 | continue | |
4293 | fi | |
4294 | ac_cv_prog_CC="cc" | |
5213506e | 4295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4296 | break 2 |
4297 | fi | |
4298 | done | |
5213506e RW |
4299 | done |
4300 | IFS=$as_save_IFS | |
1c710c3c | 4301 | |
55ffb5ed NN |
4302 | if test $ac_prog_rejected = yes; then |
4303 | # We found a bogon in the path, so make sure we never use it. | |
4304 | set dummy $ac_cv_prog_CC | |
4305 | shift | |
1c710c3c | 4306 | if test $# != 0; then |
55ffb5ed NN |
4307 | # We chose a different compiler from the bogus one. |
4308 | # However, it has the same basename, so the bogon will be chosen | |
4309 | # first if we set CC to just the basename; use the full file name. | |
4310 | shift | |
1c710c3c | 4311 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4312 | fi |
4313 | fi | |
4314 | fi | |
4315 | fi | |
1c710c3c | 4316 | CC=$ac_cv_prog_CC |
55ffb5ed | 4317 | if test -n "$CC"; then |
5213506e RW |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4319 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4320 | else |
5213506e RW |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4322 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4323 | fi |
4324 | ||
5213506e | 4325 | |
1c710c3c DJ |
4326 | fi |
4327 | if test -z "$CC"; then | |
4328 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4329 | for ac_prog in cl.exe |
1c710c3c DJ |
4330 | do |
4331 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4332 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4334 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4335 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4336 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4337 | else |
4338 | if test -n "$CC"; then | |
4339 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4340 | else | |
1c710c3c DJ |
4341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4342 | for as_dir in $PATH | |
4343 | do | |
4344 | IFS=$as_save_IFS | |
4345 | test -z "$as_dir" && as_dir=. | |
5213506e | 4346 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4347 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4348 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4350 | break 2 |
4351 | fi | |
4352 | done | |
5213506e RW |
4353 | done |
4354 | IFS=$as_save_IFS | |
1c710c3c | 4355 | |
55ffb5ed NN |
4356 | fi |
4357 | fi | |
1c710c3c | 4358 | CC=$ac_cv_prog_CC |
55ffb5ed | 4359 | if test -n "$CC"; then |
5213506e RW |
4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4361 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4362 | else |
5213506e RW |
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4364 | $as_echo "no" >&6; } | |
fb0103e5 | 4365 | fi |
af71363e | 4366 | |
5213506e | 4367 | |
1c710c3c DJ |
4368 | test -n "$CC" && break |
4369 | done | |
af71363e | 4370 | fi |
1c710c3c DJ |
4371 | if test -z "$CC"; then |
4372 | ac_ct_CC=$CC | |
5213506e | 4373 | for ac_prog in cl.exe |
1c710c3c DJ |
4374 | do |
4375 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4376 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4378 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4379 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4380 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4381 | else |
1c710c3c DJ |
4382 | if test -n "$ac_ct_CC"; then |
4383 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4384 | else |
1c710c3c DJ |
4385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4386 | for as_dir in $PATH | |
4387 | do | |
4388 | IFS=$as_save_IFS | |
4389 | test -z "$as_dir" && as_dir=. | |
5213506e | 4390 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4392 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4394 | break 2 |
4395 | fi | |
4396 | done | |
5213506e RW |
4397 | done |
4398 | IFS=$as_save_IFS | |
1c710c3c | 4399 | |
af71363e AS |
4400 | fi |
4401 | fi | |
1c710c3c DJ |
4402 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4403 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4405 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4406 | else |
5213506e RW |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4408 | $as_echo "no" >&6; } | |
af71363e | 4409 | fi |
0b0dc272 | 4410 | |
5213506e | 4411 | |
1c710c3c DJ |
4412 | test -n "$ac_ct_CC" && break |
4413 | done | |
4414 | ||
5213506e RW |
4415 | if test "x$ac_ct_CC" = x; then |
4416 | CC="" | |
4417 | else | |
4418 | case $cross_compiling:$ac_tool_warned in | |
4419 | yes:) | |
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4421 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4422 | ac_tool_warned=yes ;; | |
4423 | esac | |
4424 | CC=$ac_ct_CC | |
4425 | fi | |
1c710c3c DJ |
4426 | fi |
4427 | ||
4428 | fi | |
4429 | ||
4430 | ||
5213506e RW |
4431 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4432 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4433 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4434 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4435 | |
4436 | # Provide some information about the compiler. | |
5213506e RW |
4437 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4438 | set X $ac_compile | |
4439 | ac_compiler=$2 | |
4440 | for ac_option in --version -v -V -qversion; do | |
4441 | { { ac_try="$ac_compiler $ac_option >&5" | |
4442 | case "(($ac_try" in | |
4443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4444 | *) ac_try_echo=$ac_try;; | |
4445 | esac | |
4446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4447 | $as_echo "$ac_try_echo"; } >&5 | |
4448 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4449 | ac_status=$? |
5213506e RW |
4450 | if test -s conftest.err; then |
4451 | sed '10a\ | |
4452 | ... rest of stderr output deleted ... | |
4453 | 10q' conftest.err >conftest.er1 | |
4454 | cat conftest.er1 >&5 | |
5213506e | 4455 | fi |
22e05272 | 4456 | rm -f conftest.er1 conftest.err |
5213506e RW |
4457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4458 | test $ac_status = 0; } | |
4459 | done | |
1c710c3c | 4460 | |
5213506e | 4461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4462 | /* end confdefs.h. */ |
4463 | ||
4464 | int | |
4465 | main () | |
4466 | { | |
4467 | ||
4468 | ; | |
4469 | return 0; | |
4470 | } | |
4471 | _ACEOF | |
4472 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4473 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4474 | # Try to create an executable without -o first, disregard a.out. |
4475 | # It will help us diagnose broken compilers, and finding out an intuition | |
4476 | # of exeext. | |
22e05272 JM |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4478 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4479 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4480 | ||
4481 | # The possible output files: | |
4482 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4483 | ||
4484 | ac_rmfiles= | |
4485 | for ac_file in $ac_files | |
4486 | do | |
4487 | case $ac_file in | |
4488 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4489 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4490 | esac | |
4491 | done | |
4492 | rm -f $ac_rmfiles | |
4493 | ||
4494 | if { { ac_try="$ac_link_default" | |
4495 | case "(($ac_try" in | |
4496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4497 | *) ac_try_echo=$ac_try;; | |
4498 | esac | |
4499 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4500 | $as_echo "$ac_try_echo"; } >&5 | |
4501 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4502 | ac_status=$? |
5213506e RW |
4503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4504 | test $ac_status = 0; }; then : | |
4505 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4506 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4507 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4508 | # so that the user can short-circuit this test for compilers unknown to | |
4509 | # Autoconf. | |
4510 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4511 | do |
4512 | test -f "$ac_file" || continue | |
4513 | case $ac_file in | |
5213506e | 4514 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4515 | ;; |
4516 | [ab].out ) | |
4517 | # We found the default executable, but exeext='' is most | |
4518 | # certainly right. | |
4519 | break;; | |
4520 | *.* ) | |
5213506e RW |
4521 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4522 | then :; else | |
4523 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4524 | fi | |
4525 | # We set ac_cv_exeext here because the later test for it is not | |
4526 | # safe: cross compilers may not add the suffix if given an `-o' | |
4527 | # argument, so we may need to know it at that point already. | |
4528 | # Even if this section looks crufty: it has the advantage of | |
4529 | # actually working. | |
1c710c3c DJ |
4530 | break;; |
4531 | * ) | |
4532 | break;; | |
4533 | esac | |
4534 | done | |
5213506e RW |
4535 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4536 | ||
1c710c3c | 4537 | else |
5213506e RW |
4538 | ac_file='' |
4539 | fi | |
5213506e | 4540 | if test -z "$ac_file"; then : |
22e05272 JM |
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4542 | $as_echo "no" >&6; } | |
4543 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4544 | sed 's/^/| /' conftest.$ac_ext >&5 |
4545 | ||
5213506e RW |
4546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4547 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4548 | as_fn_error 77 "C compiler cannot create executables |
4549 | See \`config.log' for more details" "$LINENO" 5; } | |
4550 | else | |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4552 | $as_echo "yes" >&6; } | |
1c710c3c | 4553 | fi |
22e05272 JM |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4555 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4557 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4558 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4559 | |
22e05272 | 4560 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4561 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4563 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4564 | if { { ac_try="$ac_link" | |
4565 | case "(($ac_try" in | |
4566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4567 | *) ac_try_echo=$ac_try;; | |
4568 | esac | |
4569 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4570 | $as_echo "$ac_try_echo"; } >&5 | |
4571 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4572 | ac_status=$? |
5213506e RW |
4573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4574 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4575 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4576 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4577 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4578 | # `rm'. | |
4579 | for ac_file in conftest.exe conftest conftest.*; do | |
4580 | test -f "$ac_file" || continue | |
4581 | case $ac_file in | |
5213506e | 4582 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4583 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4584 | break;; |
4585 | * ) break;; | |
4586 | esac | |
4587 | done | |
af71363e | 4588 | else |
5213506e RW |
4589 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4590 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4591 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4592 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4593 | fi |
22e05272 | 4594 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4596 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4597 | |
4598 | rm -f conftest.$ac_ext | |
4599 | EXEEXT=$ac_cv_exeext | |
4600 | ac_exeext=$EXEEXT | |
22e05272 JM |
4601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4602 | /* end confdefs.h. */ | |
4603 | #include <stdio.h> | |
4604 | int | |
4605 | main () | |
4606 | { | |
4607 | FILE *f = fopen ("conftest.out", "w"); | |
4608 | return ferror (f) || fclose (f) != 0; | |
4609 | ||
4610 | ; | |
4611 | return 0; | |
4612 | } | |
4613 | _ACEOF | |
4614 | ac_clean_files="$ac_clean_files conftest.out" | |
4615 | # Check that the compiler produces executables we can run. If not, either | |
4616 | # the compiler is broken, or we cross compile. | |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4618 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4619 | if test "$cross_compiling" != yes; then | |
4620 | { { ac_try="$ac_link" | |
4621 | case "(($ac_try" in | |
4622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4623 | *) ac_try_echo=$ac_try;; | |
4624 | esac | |
4625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4626 | $as_echo "$ac_try_echo"; } >&5 | |
4627 | (eval "$ac_link") 2>&5 | |
4628 | ac_status=$? | |
4629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4630 | test $ac_status = 0; } | |
4631 | if { ac_try='./conftest$ac_cv_exeext' | |
4632 | { { case "(($ac_try" in | |
4633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4634 | *) ac_try_echo=$ac_try;; | |
4635 | esac | |
4636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4637 | $as_echo "$ac_try_echo"; } >&5 | |
4638 | (eval "$ac_try") 2>&5 | |
4639 | ac_status=$? | |
4640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4641 | test $ac_status = 0; }; }; then | |
4642 | cross_compiling=no | |
4643 | else | |
4644 | if test "$cross_compiling" = maybe; then | |
4645 | cross_compiling=yes | |
4646 | else | |
4647 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4648 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4649 | as_fn_error $? "cannot run C compiled programs. | |
4650 | If you meant to cross compile, use \`--host'. | |
4651 | See \`config.log' for more details" "$LINENO" 5; } | |
4652 | fi | |
4653 | fi | |
4654 | fi | |
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4656 | $as_echo "$cross_compiling" >&6; } | |
4657 | ||
4658 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4659 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4661 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4662 | if ${ac_cv_objext+:} false; then : |
5213506e | 4663 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4664 | else |
5213506e | 4665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4666 | /* end confdefs.h. */ |
4667 | ||
4668 | int | |
4669 | main () | |
4670 | { | |
4671 | ||
4672 | ; | |
4673 | return 0; | |
4674 | } | |
4675 | _ACEOF | |
4676 | rm -f conftest.o conftest.obj | |
5213506e RW |
4677 | if { { ac_try="$ac_compile" |
4678 | case "(($ac_try" in | |
4679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4680 | *) ac_try_echo=$ac_try;; | |
4681 | esac | |
4682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4683 | $as_echo "$ac_try_echo"; } >&5 | |
4684 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4685 | ac_status=$? |
5213506e RW |
4686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4687 | test $ac_status = 0; }; then : | |
4688 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4689 | test -f "$ac_file" || continue; | |
1c710c3c | 4690 | case $ac_file in |
5213506e | 4691 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4692 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4693 | break;; | |
4694 | esac | |
4695 | done | |
4696 | else | |
5213506e | 4697 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4698 | sed 's/^/| /' conftest.$ac_ext >&5 |
4699 | ||
5213506e RW |
4700 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4701 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4702 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4703 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4704 | fi |
1c710c3c DJ |
4705 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4706 | fi | |
5213506e RW |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4708 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4709 | OBJEXT=$ac_cv_objext |
4710 | ac_objext=$OBJEXT | |
5213506e RW |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4712 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4713 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4714 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4715 | else |
5213506e | 4716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4717 | /* end confdefs.h. */ |
4718 | ||
4719 | int | |
4720 | main () | |
4721 | { | |
4722 | #ifndef __GNUC__ | |
4723 | choke me | |
4724 | #endif | |
4725 | ||
4726 | ; | |
4727 | return 0; | |
4728 | } | |
4729 | _ACEOF | |
5213506e | 4730 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4731 | ac_compiler_gnu=yes |
4732 | else | |
5213506e | 4733 | ac_compiler_gnu=no |
1c710c3c | 4734 | fi |
5213506e | 4735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4736 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4737 | ||
4738 | fi | |
5213506e RW |
4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4740 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4741 | if test $ac_compiler_gnu = yes; then | |
4742 | GCC=yes | |
4743 | else | |
4744 | GCC= | |
4745 | fi | |
1c710c3c DJ |
4746 | ac_test_CFLAGS=${CFLAGS+set} |
4747 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4749 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4750 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4751 | $as_echo_n "(cached) " >&6 |
4752 | else | |
4753 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4754 | ac_c_werror_flag=yes | |
4755 | ac_cv_prog_cc_g=no | |
4756 | CFLAGS="-g" | |
4757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4758 | /* end confdefs.h. */ |
4759 | ||
4760 | int | |
4761 | main () | |
4762 | { | |
4763 | ||
4764 | ; | |
4765 | return 0; | |
4766 | } | |
4767 | _ACEOF | |
5213506e | 4768 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4769 | ac_cv_prog_cc_g=yes |
4770 | else | |
5213506e RW |
4771 | CFLAGS="" |
4772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4773 | /* end confdefs.h. */ | |
4774 | ||
4775 | int | |
4776 | main () | |
4777 | { | |
4778 | ||
4779 | ; | |
4780 | return 0; | |
4781 | } | |
4782 | _ACEOF | |
4783 | if ac_fn_c_try_compile "$LINENO"; then : | |
4784 | ||
4785 | else | |
4786 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4787 | CFLAGS="-g" | |
4788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4789 | /* end confdefs.h. */ | |
af71363e | 4790 | |
5213506e RW |
4791 | int |
4792 | main () | |
4793 | { | |
4794 | ||
4795 | ; | |
4796 | return 0; | |
4797 | } | |
4798 | _ACEOF | |
4799 | if ac_fn_c_try_compile "$LINENO"; then : | |
4800 | ac_cv_prog_cc_g=yes | |
4801 | fi | |
4802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4803 | fi |
5213506e | 4804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4805 | fi |
5213506e RW |
4806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4807 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4808 | fi | |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4810 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4811 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4812 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4813 | elif test $ac_cv_prog_cc_g = yes; then |
4814 | if test "$GCC" = yes; then | |
4815 | CFLAGS="-g -O2" | |
4816 | else | |
4817 | CFLAGS="-g" | |
4818 | fi | |
4819 | else | |
4820 | if test "$GCC" = yes; then | |
4821 | CFLAGS="-O2" | |
4822 | else | |
4823 | CFLAGS= | |
4824 | fi | |
4825 | fi | |
5213506e RW |
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4827 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4828 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4829 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4830 | else |
5213506e | 4831 | ac_cv_prog_cc_c89=no |
1c710c3c | 4832 | ac_save_CC=$CC |
5213506e | 4833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4834 | /* end confdefs.h. */ |
4835 | #include <stdarg.h> | |
4836 | #include <stdio.h> | |
22e05272 | 4837 | struct stat; |
1c710c3c DJ |
4838 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4839 | struct buf { int x; }; | |
4840 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4841 | static char *e (p, i) | |
4842 | char **p; | |
4843 | int i; | |
4844 | { | |
4845 | return p[i]; | |
4846 | } | |
4847 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4848 | { | |
4849 | char *s; | |
4850 | va_list v; | |
4851 | va_start (v,p); | |
4852 | s = g (p, va_arg (v,int)); | |
4853 | va_end (v); | |
4854 | return s; | |
4855 | } | |
4856 | ||
4857 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4858 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4859 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4860 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4861 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4862 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4863 | that's true only with -std. */ |
1c710c3c DJ |
4864 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4865 | ||
5213506e RW |
4866 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4867 | inside strings and character constants. */ | |
4868 | #define FOO(x) 'x' | |
4869 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4870 | ||
1c710c3c DJ |
4871 | int test (int i, double x); |
4872 | struct s1 {int (*f) (int a);}; | |
4873 | struct s2 {int (*f) (double a);}; | |
4874 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4875 | int argc; | |
4876 | char **argv; | |
4877 | int | |
4878 | main () | |
4879 | { | |
4880 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4881 | ; | |
4882 | return 0; | |
4883 | } | |
4884 | _ACEOF | |
5213506e RW |
4885 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4886 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4887 | do |
4888 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4889 | if ac_fn_c_try_compile "$LINENO"; then : |
4890 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4891 | fi |
5213506e RW |
4892 | rm -f core conftest.err conftest.$ac_objext |
4893 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4894 | done |
5213506e | 4895 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4896 | CC=$ac_save_CC |
4897 | ||
4898 | fi | |
5213506e RW |
4899 | # AC_CACHE_VAL |
4900 | case "x$ac_cv_prog_cc_c89" in | |
4901 | x) | |
4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4903 | $as_echo "none needed" >&6; } ;; | |
4904 | xno) | |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4906 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4907 | *) |
5213506e RW |
4908 | CC="$CC $ac_cv_prog_cc_c89" |
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4910 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4911 | esac |
5213506e | 4912 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4913 | |
2aeb72e9 DD |
4914 | fi |
4915 | ||
2aeb72e9 DD |
4916 | ac_ext=c |
4917 | ac_cpp='$CPP $CPPFLAGS' | |
4918 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4919 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4920 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4921 | ||
91743432 NC |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4923 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4924 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4925 | $as_echo_n "(cached) " >&6 | |
4926 | else | |
4927 | ac_cv_prog_cc_c99=no | |
4928 | ac_save_CC=$CC | |
4929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4930 | /* end confdefs.h. */ | |
4931 | #include <stdarg.h> | |
4932 | #include <stdbool.h> | |
4933 | #include <stdlib.h> | |
4934 | #include <wchar.h> | |
4935 | #include <stdio.h> | |
4936 | ||
4937 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4938 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4939 | #define showlist(...) puts (#__VA_ARGS__) | |
4940 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4941 | static void | |
4942 | test_varargs_macros (void) | |
4943 | { | |
4944 | int x = 1234; | |
4945 | int y = 5678; | |
4946 | debug ("Flag"); | |
4947 | debug ("X = %d\n", x); | |
4948 | showlist (The first, second, and third items.); | |
4949 | report (x>y, "x is %d but y is %d", x, y); | |
4950 | } | |
4951 | ||
4952 | // Check long long types. | |
4953 | #define BIG64 18446744073709551615ull | |
4954 | #define BIG32 4294967295ul | |
4955 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4956 | #if !BIG_OK | |
4957 | your preprocessor is broken; | |
4958 | #endif | |
4959 | #if BIG_OK | |
4960 | #else | |
4961 | your preprocessor is broken; | |
4962 | #endif | |
4963 | static long long int bignum = -9223372036854775807LL; | |
4964 | static unsigned long long int ubignum = BIG64; | |
4965 | ||
4966 | struct incomplete_array | |
4967 | { | |
4968 | int datasize; | |
4969 | double data[]; | |
4970 | }; | |
4971 | ||
4972 | struct named_init { | |
4973 | int number; | |
4974 | const wchar_t *name; | |
4975 | double average; | |
4976 | }; | |
4977 | ||
4978 | typedef const char *ccp; | |
4979 | ||
4980 | static inline int | |
4981 | test_restrict (ccp restrict text) | |
4982 | { | |
4983 | // See if C++-style comments work. | |
4984 | // Iterate through items via the restricted pointer. | |
4985 | // Also check for declarations in for loops. | |
4986 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4987 | continue; | |
4988 | return 0; | |
4989 | } | |
4990 | ||
4991 | // Check varargs and va_copy. | |
4992 | static void | |
4993 | test_varargs (const char *format, ...) | |
4994 | { | |
4995 | va_list args; | |
4996 | va_start (args, format); | |
4997 | va_list args_copy; | |
4998 | va_copy (args_copy, args); | |
4999 | ||
5000 | const char *str; | |
5001 | int number; | |
5002 | float fnumber; | |
5003 | ||
5004 | while (*format) | |
5005 | { | |
5006 | switch (*format++) | |
5007 | { | |
5008 | case 's': // string | |
5009 | str = va_arg (args_copy, const char *); | |
5010 | break; | |
5011 | case 'd': // int | |
5012 | number = va_arg (args_copy, int); | |
5013 | break; | |
5014 | case 'f': // float | |
5015 | fnumber = va_arg (args_copy, double); | |
5016 | break; | |
5017 | default: | |
5018 | break; | |
5019 | } | |
5020 | } | |
5021 | va_end (args_copy); | |
5022 | va_end (args); | |
5023 | } | |
5024 | ||
5025 | int | |
5026 | main () | |
5027 | { | |
5028 | ||
5029 | // Check bool. | |
5030 | _Bool success = false; | |
5031 | ||
5032 | // Check restrict. | |
5033 | if (test_restrict ("String literal") == 0) | |
5034 | success = true; | |
5035 | char *restrict newvar = "Another string"; | |
5036 | ||
5037 | // Check varargs. | |
5038 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5039 | test_varargs_macros (); | |
5040 | ||
5041 | // Check flexible array members. | |
5042 | struct incomplete_array *ia = | |
5043 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5044 | ia->datasize = 10; | |
5045 | for (int i = 0; i < ia->datasize; ++i) | |
5046 | ia->data[i] = i * 1.234; | |
5047 | ||
5048 | // Check named initializers. | |
5049 | struct named_init ni = { | |
5050 | .number = 34, | |
5051 | .name = L"Test wide string", | |
5052 | .average = 543.34343, | |
5053 | }; | |
5054 | ||
5055 | ni.number = 58; | |
5056 | ||
5057 | int dynamic_array[ni.number]; | |
5058 | dynamic_array[ni.number - 1] = 543; | |
5059 | ||
5060 | // work around unused variable warnings | |
5061 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5062 | || dynamic_array[ni.number - 1] != 543); | |
5063 | ||
5064 | ; | |
5065 | return 0; | |
5066 | } | |
5067 | _ACEOF | |
5068 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5069 | do | |
5070 | CC="$ac_save_CC $ac_arg" | |
5071 | if ac_fn_c_try_compile "$LINENO"; then : | |
5072 | ac_cv_prog_cc_c99=$ac_arg | |
5073 | fi | |
5074 | rm -f core conftest.err conftest.$ac_objext | |
5075 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5076 | done | |
5077 | rm -f conftest.$ac_ext | |
5078 | CC=$ac_save_CC | |
5079 | ||
5080 | fi | |
5081 | # AC_CACHE_VAL | |
5082 | case "x$ac_cv_prog_cc_c99" in | |
5083 | x) | |
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5085 | $as_echo "none needed" >&6; } ;; | |
5086 | xno) | |
5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5088 | $as_echo "unsupported" >&6; } ;; | |
5089 | *) | |
5090 | CC="$CC $ac_cv_prog_cc_c99" | |
5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5092 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5093 | esac | |
5094 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5095 | ||
5096 | fi | |
5097 | ||
5098 | ||
5213506e | 5099 | ac_ext=cpp |
2aeb72e9 DD |
5100 | ac_cpp='$CXXCPP $CPPFLAGS' |
5101 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5102 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5103 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
5104 | if test -z "$CXX"; then |
5105 | if test -n "$CCC"; then | |
5106 | CXX=$CCC | |
5107 | else | |
5108 | if test -n "$ac_tool_prefix"; then | |
5109 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
5110 | do |
5111 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5112 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5114 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5115 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 5116 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
5117 | else |
5118 | if test -n "$CXX"; then | |
5119 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5120 | else | |
5121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5122 | for as_dir in $PATH | |
5123 | do | |
5124 | IFS=$as_save_IFS | |
5125 | test -z "$as_dir" && as_dir=. | |
5213506e | 5126 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 5128 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 5129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
5130 | break 2 |
5131 | fi | |
5132 | done | |
5213506e RW |
5133 | done |
5134 | IFS=$as_save_IFS | |
55ffb5ed | 5135 | |
c3a86da9 DJ |
5136 | fi |
5137 | fi | |
5138 | CXX=$ac_cv_prog_CXX | |
5139 | if test -n "$CXX"; then | |
5213506e RW |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5141 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 5142 | else |
5213506e RW |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5144 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5145 | fi |
5146 | ||
5213506e | 5147 | |
c3a86da9 DJ |
5148 | test -n "$CXX" && break |
5149 | done | |
5150 | fi | |
5151 | if test -z "$CXX"; then | |
5152 | ac_ct_CXX=$CXX | |
5213506e | 5153 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
5154 | do |
5155 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5156 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5158 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5159 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 5160 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
5161 | else |
5162 | if test -n "$ac_ct_CXX"; then | |
5163 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5164 | else | |
5165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5166 | for as_dir in $PATH | |
5167 | do | |
5168 | IFS=$as_save_IFS | |
5169 | test -z "$as_dir" && as_dir=. | |
5213506e | 5170 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 5172 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 5173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
5174 | break 2 |
5175 | fi | |
5176 | done | |
5213506e RW |
5177 | done |
5178 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5179 | |
5180 | fi | |
5181 | fi | |
5182 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5183 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5185 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5186 | else |
5213506e RW |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5188 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5189 | fi |
5190 | ||
5213506e | 5191 | |
c3a86da9 DJ |
5192 | test -n "$ac_ct_CXX" && break |
5193 | done | |
c3a86da9 | 5194 | |
5213506e RW |
5195 | if test "x$ac_ct_CXX" = x; then |
5196 | CXX="g++" | |
5197 | else | |
5198 | case $cross_compiling:$ac_tool_warned in | |
5199 | yes:) | |
5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5201 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5202 | ac_tool_warned=yes ;; | |
5203 | esac | |
5204 | CXX=$ac_ct_CXX | |
5205 | fi | |
c3a86da9 DJ |
5206 | fi |
5207 | ||
5213506e RW |
5208 | fi |
5209 | fi | |
c3a86da9 | 5210 | # Provide some information about the compiler. |
5213506e RW |
5211 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5212 | set X $ac_compile | |
5213 | ac_compiler=$2 | |
5214 | for ac_option in --version -v -V -qversion; do | |
5215 | { { ac_try="$ac_compiler $ac_option >&5" | |
5216 | case "(($ac_try" in | |
5217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5218 | *) ac_try_echo=$ac_try;; | |
5219 | esac | |
5220 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5221 | $as_echo "$ac_try_echo"; } >&5 | |
5222 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5223 | ac_status=$? |
5213506e RW |
5224 | if test -s conftest.err; then |
5225 | sed '10a\ | |
5226 | ... rest of stderr output deleted ... | |
5227 | 10q' conftest.err >conftest.er1 | |
5228 | cat conftest.er1 >&5 | |
5213506e | 5229 | fi |
22e05272 | 5230 | rm -f conftest.er1 conftest.err |
5213506e RW |
5231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5232 | test $ac_status = 0; } | |
5233 | done | |
c3a86da9 | 5234 | |
5213506e RW |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5236 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5237 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5238 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5239 | else |
5213506e | 5240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5241 | /* end confdefs.h. */ |
5242 | ||
5243 | int | |
5244 | main () | |
5245 | { | |
5246 | #ifndef __GNUC__ | |
5247 | choke me | |
5248 | #endif | |
5249 | ||
5250 | ; | |
5251 | return 0; | |
5252 | } | |
5253 | _ACEOF | |
5213506e | 5254 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5255 | ac_compiler_gnu=yes |
5256 | else | |
5213506e | 5257 | ac_compiler_gnu=no |
c3a86da9 | 5258 | fi |
5213506e | 5259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5260 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5261 | ||
5262 | fi | |
5213506e RW |
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5264 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5265 | if test $ac_compiler_gnu = yes; then | |
5266 | GXX=yes | |
5267 | else | |
5268 | GXX= | |
5269 | fi | |
c3a86da9 DJ |
5270 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5271 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5273 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5274 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5275 | $as_echo_n "(cached) " >&6 |
5276 | else | |
5277 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5278 | ac_cxx_werror_flag=yes | |
5279 | ac_cv_prog_cxx_g=no | |
5280 | CXXFLAGS="-g" | |
5281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5282 | /* end confdefs.h. */ |
5283 | ||
5284 | int | |
5285 | main () | |
5286 | { | |
5287 | ||
5288 | ; | |
5289 | return 0; | |
5290 | } | |
5291 | _ACEOF | |
5213506e | 5292 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5293 | ac_cv_prog_cxx_g=yes |
5294 | else | |
5213506e RW |
5295 | CXXFLAGS="" |
5296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5297 | /* end confdefs.h. */ |
5213506e | 5298 | |
c3a86da9 DJ |
5299 | int |
5300 | main () | |
5301 | { | |
5213506e | 5302 | |
c3a86da9 DJ |
5303 | ; |
5304 | return 0; | |
5305 | } | |
5306 | _ACEOF | |
5213506e | 5307 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5308 | |
5213506e RW |
5309 | else |
5310 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5311 | CXXFLAGS="-g" | |
5312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5313 | /* end confdefs.h. */ |
5213506e | 5314 | |
c3a86da9 DJ |
5315 | int |
5316 | main () | |
5317 | { | |
5213506e | 5318 | |
c3a86da9 DJ |
5319 | ; |
5320 | return 0; | |
5321 | } | |
5322 | _ACEOF | |
5213506e RW |
5323 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5324 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5325 | fi |
5213506e RW |
5326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5327 | fi | |
5328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5329 | fi | |
5330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5331 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5332 | fi | |
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5334 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5335 | if test "$ac_test_CXXFLAGS" = set; then | |
5336 | CXXFLAGS=$ac_save_CXXFLAGS | |
5337 | elif test $ac_cv_prog_cxx_g = yes; then | |
5338 | if test "$GXX" = yes; then | |
5339 | CXXFLAGS="-g -O2" | |
5340 | else | |
5341 | CXXFLAGS="-g" | |
5342 | fi | |
5343 | else | |
5344 | if test "$GXX" = yes; then | |
5345 | CXXFLAGS="-O2" | |
5346 | else | |
5347 | CXXFLAGS= | |
5348 | fi | |
c3a86da9 | 5349 | fi |
c3a86da9 DJ |
5350 | ac_ext=c |
5351 | ac_cpp='$CPP $CPPFLAGS' | |
5352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5355 | ||
5356 | ||
5357 | # We must set the default linker to the linker used by gcc for the correct | |
5358 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5359 | # set the LD default to the ld used by gcc. | |
5360 | if test -z "$LD"; then | |
5361 | if test "$GCC" = yes; then | |
5362 | case $build in | |
5363 | *-*-mingw*) | |
5364 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5365 | *) | |
5366 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5367 | esac | |
5368 | case $gcc_prog_ld in | |
5369 | # Accept absolute paths. | |
5370 | [\\/]* | [A-Za-z]:[\\/]*) | |
5371 | LD="$gcc_prog_ld" ;; | |
5372 | esac | |
5373 | fi | |
23f6b2f9 PB |
5374 | fi |
5375 | ||
0b21f5d3 EB |
5376 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5377 | have_static_libs=no | |
5378 | if test "$GCC" = yes; then | |
5379 | saved_LDFLAGS="$LDFLAGS" | |
5380 | ||
5381 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5383 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5384 | ac_ext=cpp | |
5385 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5386 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5387 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5388 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5389 | ||
5390 | ||
5391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5392 | /* end confdefs.h. */ | |
0d6414b2 EB |
5393 | |
5394 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5395 | #error -static-libstdc++ not implemented | |
5396 | #endif | |
0b21f5d3 EB |
5397 | int main() {} |
5398 | _ACEOF | |
5399 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5401 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5402 | else | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5404 | $as_echo "no" >&6; } | |
5405 | fi | |
5406 | rm -f core conftest.err conftest.$ac_objext \ | |
5407 | conftest$ac_exeext conftest.$ac_ext | |
5408 | ac_ext=c | |
5409 | ac_cpp='$CPP $CPPFLAGS' | |
5410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5413 | ||
5414 | ||
5415 | LDFLAGS="$saved_LDFLAGS" | |
5416 | fi | |
5417 | ||
23f6b2f9 PB |
5418 | |
5419 | ||
55ffb5ed | 5420 | |
1c710c3c DJ |
5421 | if test -n "$ac_tool_prefix"; then |
5422 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5423 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5425 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5426 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5427 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5428 | else |
5429 | if test -n "$GNATBIND"; then | |
5430 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5431 | else | |
1c710c3c DJ |
5432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5433 | for as_dir in $PATH | |
5434 | do | |
5435 | IFS=$as_save_IFS | |
5436 | test -z "$as_dir" && as_dir=. | |
5213506e | 5437 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5438 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5439 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5441 | break 2 |
5442 | fi | |
5443 | done | |
5213506e RW |
5444 | done |
5445 | IFS=$as_save_IFS | |
1c710c3c | 5446 | |
55ffb5ed NN |
5447 | fi |
5448 | fi | |
1c710c3c | 5449 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5450 | if test -n "$GNATBIND"; then |
5213506e RW |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5452 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5453 | else |
5213506e RW |
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5455 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5456 | fi |
5457 | ||
5213506e | 5458 | |
1c710c3c | 5459 | fi |
55ffb5ed | 5460 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5461 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5462 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5463 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5465 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5466 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5467 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5468 | else |
1c710c3c DJ |
5469 | if test -n "$ac_ct_GNATBIND"; then |
5470 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5471 | else |
1c710c3c DJ |
5472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5473 | for as_dir in $PATH | |
5474 | do | |
5475 | IFS=$as_save_IFS | |
5476 | test -z "$as_dir" && as_dir=. | |
5213506e | 5477 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5479 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5481 | break 2 |
5482 | fi | |
5483 | done | |
5213506e RW |
5484 | done |
5485 | IFS=$as_save_IFS | |
1c710c3c | 5486 | |
55ffb5ed NN |
5487 | fi |
5488 | fi | |
1c710c3c DJ |
5489 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5490 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5492 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5493 | else |
5213506e RW |
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5495 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5496 | fi |
5497 | ||
5213506e RW |
5498 | if test "x$ac_ct_GNATBIND" = x; then |
5499 | GNATBIND="no" | |
5500 | else | |
5501 | case $cross_compiling:$ac_tool_warned in | |
5502 | yes:) | |
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5504 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5505 | ac_tool_warned=yes ;; | |
5506 | esac | |
5507 | GNATBIND=$ac_ct_GNATBIND | |
5508 | fi | |
55ffb5ed | 5509 | else |
1c710c3c | 5510 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5511 | fi |
5512 | ||
1c710c3c DJ |
5513 | if test -n "$ac_tool_prefix"; then |
5514 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5515 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5517 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5518 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5519 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5520 | else |
5521 | if test -n "$GNATMAKE"; then | |
5522 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5523 | else | |
1c710c3c DJ |
5524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5525 | for as_dir in $PATH | |
5526 | do | |
5527 | IFS=$as_save_IFS | |
5528 | test -z "$as_dir" && as_dir=. | |
5213506e | 5529 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5531 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5533 | break 2 |
5534 | fi | |
5535 | done | |
5213506e RW |
5536 | done |
5537 | IFS=$as_save_IFS | |
1c710c3c | 5538 | |
5305be7e RG |
5539 | fi |
5540 | fi | |
1c710c3c | 5541 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5542 | if test -n "$GNATMAKE"; then |
5213506e RW |
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5544 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5545 | else |
5213506e RW |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5547 | $as_echo "no" >&6; } | |
5305be7e RG |
5548 | fi |
5549 | ||
5213506e | 5550 | |
1c710c3c | 5551 | fi |
5305be7e | 5552 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5553 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5554 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5555 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5557 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5558 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5559 | $as_echo_n "(cached) " >&6 |
5305be7e | 5560 | else |
1c710c3c DJ |
5561 | if test -n "$ac_ct_GNATMAKE"; then |
5562 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5563 | else |
1c710c3c DJ |
5564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5565 | for as_dir in $PATH | |
5566 | do | |
5567 | IFS=$as_save_IFS | |
5568 | test -z "$as_dir" && as_dir=. | |
5213506e | 5569 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5570 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5571 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5573 | break 2 |
5574 | fi | |
5575 | done | |
5213506e RW |
5576 | done |
5577 | IFS=$as_save_IFS | |
1c710c3c | 5578 | |
5305be7e RG |
5579 | fi |
5580 | fi | |
1c710c3c DJ |
5581 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5582 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5584 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5585 | else |
5213506e RW |
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5587 | $as_echo "no" >&6; } | |
5305be7e RG |
5588 | fi |
5589 | ||
5213506e RW |
5590 | if test "x$ac_ct_GNATMAKE" = x; then |
5591 | GNATMAKE="no" | |
5592 | else | |
5593 | case $cross_compiling:$ac_tool_warned in | |
5594 | yes:) | |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5596 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5597 | ac_tool_warned=yes ;; | |
5598 | esac | |
5599 | GNATMAKE=$ac_ct_GNATMAKE | |
5600 | fi | |
5305be7e | 5601 | else |
1c710c3c | 5602 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5603 | fi |
5604 | ||
5213506e RW |
5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5606 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
22e05272 | 5607 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5608 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5609 | else |
5610 | cat >conftest.adb <<EOF | |
5611 | procedure conftest is begin null; end conftest; | |
5612 | EOF | |
5613 | acx_cv_cc_gcc_supports_ada=no | |
5614 | # There is a bug in old released versions of GCC which causes the | |
5615 | # driver to exit successfully when the appropriate language module | |
5616 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5617 | # Therefore we must check for the error message as well as an | |
5618 | # unsuccessful exit. | |
1db673ca RO |
5619 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5620 | # given a .adb file, but produce no object file. So we must check | |
5621 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5622 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5623 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5624 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5625 | fi |
5626 | rm -f conftest.* | |
5627 | fi | |
5213506e RW |
5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5629 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5630 | |
7cb62ef1 | 5631 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5632 | have_gnat=yes |
5633 | else | |
5634 | have_gnat=no | |
5635 | fi | |
5636 | ||
5fee5ec3 IB |
5637 | |
5638 | ||
5639 | if test -n "$ac_tool_prefix"; then | |
5640 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5641 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5643 | $as_echo_n "checking for $ac_word... " >&6; } | |
5644 | if ${ac_cv_prog_GDC+:} false; then : | |
5645 | $as_echo_n "(cached) " >&6 | |
5646 | else | |
5647 | if test -n "$GDC"; then | |
5648 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5649 | else | |
5650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5651 | for as_dir in $PATH | |
5652 | do | |
5653 | IFS=$as_save_IFS | |
5654 | test -z "$as_dir" && as_dir=. | |
5655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5657 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5659 | break 2 | |
5660 | fi | |
5661 | done | |
5662 | done | |
5663 | IFS=$as_save_IFS | |
5664 | ||
5665 | fi | |
5666 | fi | |
5667 | GDC=$ac_cv_prog_GDC | |
5668 | if test -n "$GDC"; then | |
5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5670 | $as_echo "$GDC" >&6; } | |
5671 | else | |
5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5673 | $as_echo "no" >&6; } | |
5674 | fi | |
5675 | ||
5676 | ||
5677 | fi | |
5678 | if test -z "$ac_cv_prog_GDC"; then | |
5679 | ac_ct_GDC=$GDC | |
5680 | # Extract the first word of "gdc", so it can be a program name with args. | |
5681 | set dummy gdc; ac_word=$2 | |
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5683 | $as_echo_n "checking for $ac_word... " >&6; } | |
5684 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5685 | $as_echo_n "(cached) " >&6 | |
5686 | else | |
5687 | if test -n "$ac_ct_GDC"; then | |
5688 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5689 | else | |
5690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5691 | for as_dir in $PATH | |
5692 | do | |
5693 | IFS=$as_save_IFS | |
5694 | test -z "$as_dir" && as_dir=. | |
5695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5697 | ac_cv_prog_ac_ct_GDC="gdc" | |
5698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5699 | break 2 | |
5700 | fi | |
5701 | done | |
5702 | done | |
5703 | IFS=$as_save_IFS | |
5704 | ||
5705 | fi | |
5706 | fi | |
5707 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5708 | if test -n "$ac_ct_GDC"; then | |
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5710 | $as_echo "$ac_ct_GDC" >&6; } | |
5711 | else | |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5713 | $as_echo "no" >&6; } | |
5714 | fi | |
5715 | ||
5716 | if test "x$ac_ct_GDC" = x; then | |
5717 | GDC="no" | |
5718 | else | |
5719 | case $cross_compiling:$ac_tool_warned in | |
5720 | yes:) | |
5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5722 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5723 | ac_tool_warned=yes ;; | |
5724 | esac | |
5725 | GDC=$ac_ct_GDC | |
5726 | fi | |
5727 | else | |
5728 | GDC="$ac_cv_prog_GDC" | |
5729 | fi | |
5730 | ||
7c6ae994 IB |
5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 |
5732 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5733 | if ${acx_cv_d_compiler_works+:} false; then : | |
5734 | $as_echo_n "(cached) " >&6 | |
5735 | else | |
5736 | cat >conftest.d <<EOF | |
5737 | module conftest; int main() { return 0; } | |
5738 | EOF | |
5739 | acx_cv_d_compiler_works=no | |
5fee5ec3 | 5740 | if test "x$GDC" != xno; then |
7c6ae994 IB |
5741 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` |
5742 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5743 | acx_cv_d_compiler_works=yes | |
5744 | fi | |
5745 | rm -f conftest.* | |
5746 | fi | |
5747 | fi | |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5749 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5750 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5fee5ec3 IB |
5751 | have_gdc=yes |
5752 | else | |
5753 | have_gdc=no | |
5754 | fi | |
5755 | ||
5213506e RW |
5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5757 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5758 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5759 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5760 | else |
5761 | echo abfoo >t1 | |
5762 | echo cdfoo >t2 | |
b55e6680 | 5763 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5764 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5765 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5766 | : | |
5767 | else | |
5768 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5769 | fi | |
5770 | fi | |
a76494aa PB |
5771 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5772 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5773 | : |
a76494aa PB |
5774 | else |
5775 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5776 | fi | |
5777 | fi | |
5778 | rm t1 t2 | |
5779 | ||
5780 | fi | |
5213506e RW |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5782 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5783 | do_compare="$gcc_cv_prog_cmp_skip" |
5784 | ||
5785 | ||
55ffb5ed | 5786 | |
ff3ac0f4 ILT |
5787 | # Check whether --enable-bootstrap was given. |
5788 | if test "${enable_bootstrap+set}" = set; then : | |
5789 | enableval=$enable_bootstrap; | |
5790 | else | |
5791 | enable_bootstrap=default | |
5792 | fi | |
5793 | ||
5794 | ||
5795 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5796 | if test -r $srcdir/gcc/configure; then |
5797 | have_compiler=yes | |
5798 | else | |
5799 | have_compiler=no | |
5800 | fi | |
ff3ac0f4 ILT |
5801 | |
5802 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5803 | *:*:*:no) ;; | |
5804 | ||
5805 | # Default behavior. Enable bootstrap if we have a compiler | |
5806 | # and we are in a native configuration. | |
5807 | yes:$build:$build:default) | |
5808 | enable_bootstrap=yes ;; | |
5809 | ||
5810 | *:*:*:default) | |
5811 | enable_bootstrap=no ;; | |
5812 | ||
5813 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5814 | yes:$build:$build:yes) | |
5815 | ;; | |
5816 | ||
5817 | # Other configurations, but we have a compiler. Assume the user knows | |
5818 | # what he's doing. | |
5819 | yes:*:*:yes) | |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5821 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5822 | ;; | |
5823 | ||
5824 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5825 | no:*:*:yes) | |
22e05272 | 5826 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5827 | |
5828 | # Fail if wrong command line | |
5829 | *) | |
22e05272 | 5830 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5831 | ;; |
5832 | esac | |
5833 | ||
5329b59a | 5834 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5835 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5836 | # require C++11 (or higher). | |
46070488 | 5837 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5838 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5839 | elif test "$have_compiler" = yes; then |
5840 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5841 | ac_ext=cpp | |
5842 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5843 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5844 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5845 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5846 | ac_success=no | |
5847 | ||
5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5849 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5850 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5851 | $as_echo_n "(cached) " >&6 | |
5852 | else | |
5853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5854 | /* end confdefs.h. */ | |
5855 | ||
5856 | ||
5857 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5858 | // Hopefully, this will speed up the test. | |
5859 | ||
5860 | #ifndef __cplusplus | |
5861 | ||
5862 | #error "This is not a C++ compiler" | |
5863 | ||
5864 | #elif __cplusplus < 201103L | |
5865 | ||
5866 | #error "This is not a C++11 compiler" | |
5867 | ||
5868 | #else | |
5869 | ||
5870 | namespace cxx11 | |
5871 | { | |
5872 | ||
5873 | namespace test_static_assert | |
5874 | { | |
5875 | ||
5876 | template <typename T> | |
5877 | struct check | |
5878 | { | |
5879 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5880 | }; | |
5881 | ||
5882 | } | |
5883 | ||
5884 | namespace test_final_override | |
5885 | { | |
5886 | ||
5887 | struct Base | |
5888 | { | |
5889 | virtual ~Base() {} | |
5890 | virtual void f() {} | |
5891 | }; | |
5892 | ||
5893 | struct Derived : public Base | |
5894 | { | |
5895 | virtual ~Derived() override {} | |
5896 | virtual void f() override {} | |
5897 | }; | |
5898 | ||
5899 | } | |
5900 | ||
5901 | namespace test_double_right_angle_brackets | |
5902 | { | |
5903 | ||
5904 | template < typename T > | |
5905 | struct check {}; | |
5906 | ||
5907 | typedef check<void> single_type; | |
5908 | typedef check<check<void>> double_type; | |
5909 | typedef check<check<check<void>>> triple_type; | |
5910 | typedef check<check<check<check<void>>>> quadruple_type; | |
5911 | ||
5912 | } | |
5913 | ||
5914 | namespace test_decltype | |
5915 | { | |
5916 | ||
5917 | int | |
5918 | f() | |
5919 | { | |
5920 | int a = 1; | |
5921 | decltype(a) b = 2; | |
5922 | return a + b; | |
5923 | } | |
5924 | ||
5925 | } | |
5926 | ||
5927 | namespace test_type_deduction | |
5928 | { | |
5929 | ||
5930 | template < typename T1, typename T2 > | |
5931 | struct is_same | |
5932 | { | |
5933 | static const bool value = false; | |
5934 | }; | |
5935 | ||
5936 | template < typename T > | |
5937 | struct is_same<T, T> | |
5938 | { | |
5939 | static const bool value = true; | |
5940 | }; | |
5941 | ||
5942 | template < typename T1, typename T2 > | |
5943 | auto | |
5944 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5945 | { | |
5946 | return a1 + a2; | |
5947 | } | |
5948 | ||
5949 | int | |
5950 | test(const int c, volatile int v) | |
5951 | { | |
5952 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5953 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5954 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5955 | auto ac = c; | |
5956 | auto av = v; | |
5957 | auto sumi = ac + av + 'x'; | |
5958 | auto sumf = ac + av + 1.0; | |
5959 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5960 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5961 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5962 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5963 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5964 | return (sumf > 0.0) ? sumi : add(c, v); | |
5965 | } | |
5966 | ||
5967 | } | |
5968 | ||
5969 | namespace test_noexcept | |
5970 | { | |
5971 | ||
5972 | int f() { return 0; } | |
5973 | int g() noexcept { return 0; } | |
5974 | ||
5975 | static_assert(noexcept(f()) == false, ""); | |
5976 | static_assert(noexcept(g()) == true, ""); | |
5977 | ||
5978 | } | |
5979 | ||
5980 | namespace test_constexpr | |
5981 | { | |
5982 | ||
5983 | template < typename CharT > | |
5984 | unsigned long constexpr | |
5985 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5986 | { | |
5987 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5988 | } | |
5989 | ||
5990 | template < typename CharT > | |
5991 | unsigned long constexpr | |
5992 | strlen_c(const CharT *const s) noexcept | |
5993 | { | |
5994 | return strlen_c_r(s, 0UL); | |
5995 | } | |
5996 | ||
5997 | static_assert(strlen_c("") == 0UL, ""); | |
5998 | static_assert(strlen_c("1") == 1UL, ""); | |
5999 | static_assert(strlen_c("example") == 7UL, ""); | |
6000 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6001 | ||
6002 | } | |
6003 | ||
6004 | namespace test_rvalue_references | |
6005 | { | |
6006 | ||
6007 | template < int N > | |
6008 | struct answer | |
6009 | { | |
6010 | static constexpr int value = N; | |
6011 | }; | |
6012 | ||
6013 | answer<1> f(int&) { return answer<1>(); } | |
6014 | answer<2> f(const int&) { return answer<2>(); } | |
6015 | answer<3> f(int&&) { return answer<3>(); } | |
6016 | ||
6017 | void | |
6018 | test() | |
6019 | { | |
6020 | int i = 0; | |
6021 | const int c = 0; | |
6022 | static_assert(decltype(f(i))::value == 1, ""); | |
6023 | static_assert(decltype(f(c))::value == 2, ""); | |
6024 | static_assert(decltype(f(0))::value == 3, ""); | |
6025 | } | |
6026 | ||
6027 | } | |
6028 | ||
6029 | namespace test_uniform_initialization | |
6030 | { | |
6031 | ||
6032 | struct test | |
6033 | { | |
6034 | static const int zero {}; | |
6035 | static const int one {1}; | |
6036 | }; | |
6037 | ||
6038 | static_assert(test::zero == 0, ""); | |
6039 | static_assert(test::one == 1, ""); | |
6040 | ||
6041 | } | |
6042 | ||
6043 | namespace test_lambdas | |
6044 | { | |
6045 | ||
6046 | void | |
6047 | test1() | |
6048 | { | |
6049 | auto lambda1 = [](){}; | |
6050 | auto lambda2 = lambda1; | |
6051 | lambda1(); | |
6052 | lambda2(); | |
6053 | } | |
6054 | ||
6055 | int | |
6056 | test2() | |
6057 | { | |
6058 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6059 | auto b = []() -> int { return '0'; }(); | |
6060 | auto c = [=](){ return a + b; }(); | |
6061 | auto d = [&](){ return c; }(); | |
6062 | auto e = [a, &b](int x) mutable { | |
6063 | const auto identity = [](int y){ return y; }; | |
6064 | for (auto i = 0; i < a; ++i) | |
6065 | a += b--; | |
6066 | return x + identity(a + b); | |
6067 | }(0); | |
6068 | return a + b + c + d + e; | |
6069 | } | |
6070 | ||
6071 | int | |
6072 | test3() | |
6073 | { | |
6074 | const auto nullary = [](){ return 0; }; | |
6075 | const auto unary = [](int x){ return x; }; | |
6076 | using nullary_t = decltype(nullary); | |
6077 | using unary_t = decltype(unary); | |
6078 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6079 | const auto higher2nd = [unary](nullary_t f1){ | |
6080 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6081 | }; | |
6082 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6083 | } | |
6084 | ||
6085 | } | |
6086 | ||
6087 | namespace test_variadic_templates | |
6088 | { | |
6089 | ||
6090 | template <int...> | |
6091 | struct sum; | |
6092 | ||
6093 | template <int N0, int... N1toN> | |
6094 | struct sum<N0, N1toN...> | |
6095 | { | |
6096 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6097 | }; | |
6098 | ||
6099 | template <> | |
6100 | struct sum<> | |
6101 | { | |
6102 | static constexpr auto value = 0; | |
6103 | }; | |
6104 | ||
6105 | static_assert(sum<>::value == 0, ""); | |
6106 | static_assert(sum<1>::value == 1, ""); | |
6107 | static_assert(sum<23>::value == 23, ""); | |
6108 | static_assert(sum<1, 2>::value == 3, ""); | |
6109 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6110 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6111 | ||
6112 | } | |
6113 | ||
6114 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6115 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6116 | // because of this. | |
6117 | namespace test_template_alias_sfinae | |
6118 | { | |
6119 | ||
6120 | struct foo {}; | |
6121 | ||
6122 | template<typename T> | |
6123 | using member = typename T::member_type; | |
6124 | ||
6125 | template<typename T> | |
6126 | void func(...) {} | |
6127 | ||
6128 | template<typename T> | |
6129 | void func(member<T>*) {} | |
6130 | ||
6131 | void test(); | |
6132 | ||
6133 | void test() { func<foo>(0); } | |
6134 | ||
6135 | } | |
6136 | ||
6137 | } // namespace cxx11 | |
6138 | ||
6139 | #endif // __cplusplus >= 201103L | |
6140 | ||
6141 | ||
6142 | ||
6143 | _ACEOF | |
6144 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6145 | ax_cv_cxx_compile_cxx11=yes | |
6146 | else | |
6147 | ax_cv_cxx_compile_cxx11=no | |
6148 | fi | |
6149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6150 | fi | |
6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6152 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6153 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6154 | ac_success=yes | |
6155 | fi | |
6156 | ||
6157 | if test x$ac_success = xno; then | |
6158 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6159 | switch="-std=gnu++${alternative}" | |
6160 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6162 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6163 | if eval \${$cachevar+:} false; then : | |
6164 | $as_echo_n "(cached) " >&6 | |
6165 | else | |
6166 | ac_save_CXX="$CXX" | |
6167 | CXX="$CXX $switch" | |
6168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6169 | /* end confdefs.h. */ | |
6170 | ||
6171 | ||
6172 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6173 | // Hopefully, this will speed up the test. | |
6174 | ||
6175 | #ifndef __cplusplus | |
6176 | ||
6177 | #error "This is not a C++ compiler" | |
6178 | ||
6179 | #elif __cplusplus < 201103L | |
6180 | ||
6181 | #error "This is not a C++11 compiler" | |
6182 | ||
6183 | #else | |
6184 | ||
6185 | namespace cxx11 | |
6186 | { | |
6187 | ||
6188 | namespace test_static_assert | |
6189 | { | |
6190 | ||
6191 | template <typename T> | |
6192 | struct check | |
6193 | { | |
6194 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6195 | }; | |
6196 | ||
6197 | } | |
6198 | ||
6199 | namespace test_final_override | |
6200 | { | |
6201 | ||
6202 | struct Base | |
6203 | { | |
6204 | virtual ~Base() {} | |
6205 | virtual void f() {} | |
6206 | }; | |
6207 | ||
6208 | struct Derived : public Base | |
6209 | { | |
6210 | virtual ~Derived() override {} | |
6211 | virtual void f() override {} | |
6212 | }; | |
6213 | ||
6214 | } | |
6215 | ||
6216 | namespace test_double_right_angle_brackets | |
6217 | { | |
6218 | ||
6219 | template < typename T > | |
6220 | struct check {}; | |
6221 | ||
6222 | typedef check<void> single_type; | |
6223 | typedef check<check<void>> double_type; | |
6224 | typedef check<check<check<void>>> triple_type; | |
6225 | typedef check<check<check<check<void>>>> quadruple_type; | |
6226 | ||
6227 | } | |
6228 | ||
6229 | namespace test_decltype | |
6230 | { | |
6231 | ||
6232 | int | |
6233 | f() | |
6234 | { | |
6235 | int a = 1; | |
6236 | decltype(a) b = 2; | |
6237 | return a + b; | |
6238 | } | |
6239 | ||
6240 | } | |
6241 | ||
6242 | namespace test_type_deduction | |
6243 | { | |
6244 | ||
6245 | template < typename T1, typename T2 > | |
6246 | struct is_same | |
6247 | { | |
6248 | static const bool value = false; | |
6249 | }; | |
6250 | ||
6251 | template < typename T > | |
6252 | struct is_same<T, T> | |
6253 | { | |
6254 | static const bool value = true; | |
6255 | }; | |
6256 | ||
6257 | template < typename T1, typename T2 > | |
6258 | auto | |
6259 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6260 | { | |
6261 | return a1 + a2; | |
6262 | } | |
6263 | ||
6264 | int | |
6265 | test(const int c, volatile int v) | |
6266 | { | |
6267 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6268 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6269 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6270 | auto ac = c; | |
6271 | auto av = v; | |
6272 | auto sumi = ac + av + 'x'; | |
6273 | auto sumf = ac + av + 1.0; | |
6274 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6275 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6276 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6277 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6278 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6279 | return (sumf > 0.0) ? sumi : add(c, v); | |
6280 | } | |
6281 | ||
6282 | } | |
6283 | ||
6284 | namespace test_noexcept | |
6285 | { | |
6286 | ||
6287 | int f() { return 0; } | |
6288 | int g() noexcept { return 0; } | |
6289 | ||
6290 | static_assert(noexcept(f()) == false, ""); | |
6291 | static_assert(noexcept(g()) == true, ""); | |
6292 | ||
6293 | } | |
6294 | ||
6295 | namespace test_constexpr | |
6296 | { | |
6297 | ||
6298 | template < typename CharT > | |
6299 | unsigned long constexpr | |
6300 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6301 | { | |
6302 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6303 | } | |
6304 | ||
6305 | template < typename CharT > | |
6306 | unsigned long constexpr | |
6307 | strlen_c(const CharT *const s) noexcept | |
6308 | { | |
6309 | return strlen_c_r(s, 0UL); | |
6310 | } | |
6311 | ||
6312 | static_assert(strlen_c("") == 0UL, ""); | |
6313 | static_assert(strlen_c("1") == 1UL, ""); | |
6314 | static_assert(strlen_c("example") == 7UL, ""); | |
6315 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6316 | ||
6317 | } | |
6318 | ||
6319 | namespace test_rvalue_references | |
6320 | { | |
6321 | ||
6322 | template < int N > | |
6323 | struct answer | |
6324 | { | |
6325 | static constexpr int value = N; | |
6326 | }; | |
6327 | ||
6328 | answer<1> f(int&) { return answer<1>(); } | |
6329 | answer<2> f(const int&) { return answer<2>(); } | |
6330 | answer<3> f(int&&) { return answer<3>(); } | |
6331 | ||
6332 | void | |
6333 | test() | |
6334 | { | |
6335 | int i = 0; | |
6336 | const int c = 0; | |
6337 | static_assert(decltype(f(i))::value == 1, ""); | |
6338 | static_assert(decltype(f(c))::value == 2, ""); | |
6339 | static_assert(decltype(f(0))::value == 3, ""); | |
6340 | } | |
6341 | ||
6342 | } | |
6343 | ||
6344 | namespace test_uniform_initialization | |
6345 | { | |
6346 | ||
6347 | struct test | |
6348 | { | |
6349 | static const int zero {}; | |
6350 | static const int one {1}; | |
6351 | }; | |
6352 | ||
6353 | static_assert(test::zero == 0, ""); | |
6354 | static_assert(test::one == 1, ""); | |
6355 | ||
6356 | } | |
6357 | ||
6358 | namespace test_lambdas | |
6359 | { | |
6360 | ||
6361 | void | |
6362 | test1() | |
6363 | { | |
6364 | auto lambda1 = [](){}; | |
6365 | auto lambda2 = lambda1; | |
6366 | lambda1(); | |
6367 | lambda2(); | |
6368 | } | |
6369 | ||
6370 | int | |
6371 | test2() | |
6372 | { | |
6373 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6374 | auto b = []() -> int { return '0'; }(); | |
6375 | auto c = [=](){ return a + b; }(); | |
6376 | auto d = [&](){ return c; }(); | |
6377 | auto e = [a, &b](int x) mutable { | |
6378 | const auto identity = [](int y){ return y; }; | |
6379 | for (auto i = 0; i < a; ++i) | |
6380 | a += b--; | |
6381 | return x + identity(a + b); | |
6382 | }(0); | |
6383 | return a + b + c + d + e; | |
6384 | } | |
6385 | ||
6386 | int | |
6387 | test3() | |
6388 | { | |
6389 | const auto nullary = [](){ return 0; }; | |
6390 | const auto unary = [](int x){ return x; }; | |
6391 | using nullary_t = decltype(nullary); | |
6392 | using unary_t = decltype(unary); | |
6393 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6394 | const auto higher2nd = [unary](nullary_t f1){ | |
6395 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6396 | }; | |
6397 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6398 | } | |
6399 | ||
6400 | } | |
6401 | ||
6402 | namespace test_variadic_templates | |
6403 | { | |
6404 | ||
6405 | template <int...> | |
6406 | struct sum; | |
6407 | ||
6408 | template <int N0, int... N1toN> | |
6409 | struct sum<N0, N1toN...> | |
6410 | { | |
6411 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6412 | }; | |
6413 | ||
6414 | template <> | |
6415 | struct sum<> | |
6416 | { | |
6417 | static constexpr auto value = 0; | |
6418 | }; | |
6419 | ||
6420 | static_assert(sum<>::value == 0, ""); | |
6421 | static_assert(sum<1>::value == 1, ""); | |
6422 | static_assert(sum<23>::value == 23, ""); | |
6423 | static_assert(sum<1, 2>::value == 3, ""); | |
6424 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6425 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6426 | ||
6427 | } | |
6428 | ||
6429 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6430 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6431 | // because of this. | |
6432 | namespace test_template_alias_sfinae | |
6433 | { | |
6434 | ||
6435 | struct foo {}; | |
6436 | ||
6437 | template<typename T> | |
6438 | using member = typename T::member_type; | |
6439 | ||
6440 | template<typename T> | |
6441 | void func(...) {} | |
6442 | ||
6443 | template<typename T> | |
6444 | void func(member<T>*) {} | |
6445 | ||
6446 | void test(); | |
6447 | ||
6448 | void test() { func<foo>(0); } | |
6449 | ||
6450 | } | |
6451 | ||
6452 | } // namespace cxx11 | |
6453 | ||
6454 | #endif // __cplusplus >= 201103L | |
6455 | ||
6456 | ||
6457 | ||
6458 | _ACEOF | |
6459 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6460 | eval $cachevar=yes | |
6461 | else | |
6462 | eval $cachevar=no | |
6463 | fi | |
6464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6465 | CXX="$ac_save_CXX" | |
6466 | fi | |
6467 | eval ac_res=\$$cachevar | |
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6469 | $as_echo "$ac_res" >&6; } | |
6470 | if eval test x\$$cachevar = xyes; then | |
6471 | CXX="$CXX $switch" | |
6472 | if test -n "$CXXCPP" ; then | |
6473 | CXXCPP="$CXXCPP $switch" | |
6474 | fi | |
6475 | ac_success=yes | |
6476 | break | |
6477 | fi | |
6478 | done | |
6479 | fi | |
6480 | ||
6481 | if test x$ac_success = xno; then | |
6482 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6483 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6484 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6486 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6487 | if eval \${$cachevar+:} false; then : | |
6488 | $as_echo_n "(cached) " >&6 | |
6489 | else | |
6490 | ac_save_CXX="$CXX" | |
6491 | CXX="$CXX $switch" | |
6492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6493 | /* end confdefs.h. */ | |
6494 | ||
6495 | ||
6496 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6497 | // Hopefully, this will speed up the test. | |
6498 | ||
6499 | #ifndef __cplusplus | |
6500 | ||
6501 | #error "This is not a C++ compiler" | |
6502 | ||
6503 | #elif __cplusplus < 201103L | |
6504 | ||
6505 | #error "This is not a C++11 compiler" | |
6506 | ||
6507 | #else | |
6508 | ||
6509 | namespace cxx11 | |
6510 | { | |
6511 | ||
6512 | namespace test_static_assert | |
6513 | { | |
6514 | ||
6515 | template <typename T> | |
6516 | struct check | |
6517 | { | |
6518 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6519 | }; | |
6520 | ||
6521 | } | |
6522 | ||
6523 | namespace test_final_override | |
6524 | { | |
6525 | ||
6526 | struct Base | |
6527 | { | |
6528 | virtual ~Base() {} | |
6529 | virtual void f() {} | |
6530 | }; | |
6531 | ||
6532 | struct Derived : public Base | |
6533 | { | |
6534 | virtual ~Derived() override {} | |
6535 | virtual void f() override {} | |
6536 | }; | |
6537 | ||
6538 | } | |
6539 | ||
6540 | namespace test_double_right_angle_brackets | |
6541 | { | |
6542 | ||
6543 | template < typename T > | |
6544 | struct check {}; | |
6545 | ||
6546 | typedef check<void> single_type; | |
6547 | typedef check<check<void>> double_type; | |
6548 | typedef check<check<check<void>>> triple_type; | |
6549 | typedef check<check<check<check<void>>>> quadruple_type; | |
6550 | ||
6551 | } | |
6552 | ||
6553 | namespace test_decltype | |
6554 | { | |
6555 | ||
6556 | int | |
6557 | f() | |
6558 | { | |
6559 | int a = 1; | |
6560 | decltype(a) b = 2; | |
6561 | return a + b; | |
6562 | } | |
6563 | ||
6564 | } | |
6565 | ||
6566 | namespace test_type_deduction | |
6567 | { | |
6568 | ||
6569 | template < typename T1, typename T2 > | |
6570 | struct is_same | |
6571 | { | |
6572 | static const bool value = false; | |
6573 | }; | |
6574 | ||
6575 | template < typename T > | |
6576 | struct is_same<T, T> | |
6577 | { | |
6578 | static const bool value = true; | |
6579 | }; | |
6580 | ||
6581 | template < typename T1, typename T2 > | |
6582 | auto | |
6583 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6584 | { | |
6585 | return a1 + a2; | |
6586 | } | |
6587 | ||
6588 | int | |
6589 | test(const int c, volatile int v) | |
6590 | { | |
6591 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6592 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6593 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6594 | auto ac = c; | |
6595 | auto av = v; | |
6596 | auto sumi = ac + av + 'x'; | |
6597 | auto sumf = ac + av + 1.0; | |
6598 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6599 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6600 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6601 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6602 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6603 | return (sumf > 0.0) ? sumi : add(c, v); | |
6604 | } | |
6605 | ||
6606 | } | |
6607 | ||
6608 | namespace test_noexcept | |
6609 | { | |
6610 | ||
6611 | int f() { return 0; } | |
6612 | int g() noexcept { return 0; } | |
6613 | ||
6614 | static_assert(noexcept(f()) == false, ""); | |
6615 | static_assert(noexcept(g()) == true, ""); | |
6616 | ||
6617 | } | |
6618 | ||
6619 | namespace test_constexpr | |
6620 | { | |
6621 | ||
6622 | template < typename CharT > | |
6623 | unsigned long constexpr | |
6624 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6625 | { | |
6626 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6627 | } | |
6628 | ||
6629 | template < typename CharT > | |
6630 | unsigned long constexpr | |
6631 | strlen_c(const CharT *const s) noexcept | |
6632 | { | |
6633 | return strlen_c_r(s, 0UL); | |
6634 | } | |
6635 | ||
6636 | static_assert(strlen_c("") == 0UL, ""); | |
6637 | static_assert(strlen_c("1") == 1UL, ""); | |
6638 | static_assert(strlen_c("example") == 7UL, ""); | |
6639 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6640 | ||
6641 | } | |
6642 | ||
6643 | namespace test_rvalue_references | |
6644 | { | |
6645 | ||
6646 | template < int N > | |
6647 | struct answer | |
6648 | { | |
6649 | static constexpr int value = N; | |
6650 | }; | |
6651 | ||
6652 | answer<1> f(int&) { return answer<1>(); } | |
6653 | answer<2> f(const int&) { return answer<2>(); } | |
6654 | answer<3> f(int&&) { return answer<3>(); } | |
6655 | ||
6656 | void | |
6657 | test() | |
6658 | { | |
6659 | int i = 0; | |
6660 | const int c = 0; | |
6661 | static_assert(decltype(f(i))::value == 1, ""); | |
6662 | static_assert(decltype(f(c))::value == 2, ""); | |
6663 | static_assert(decltype(f(0))::value == 3, ""); | |
6664 | } | |
6665 | ||
6666 | } | |
6667 | ||
6668 | namespace test_uniform_initialization | |
6669 | { | |
6670 | ||
6671 | struct test | |
6672 | { | |
6673 | static const int zero {}; | |
6674 | static const int one {1}; | |
6675 | }; | |
6676 | ||
6677 | static_assert(test::zero == 0, ""); | |
6678 | static_assert(test::one == 1, ""); | |
6679 | ||
6680 | } | |
6681 | ||
6682 | namespace test_lambdas | |
6683 | { | |
6684 | ||
6685 | void | |
6686 | test1() | |
6687 | { | |
6688 | auto lambda1 = [](){}; | |
6689 | auto lambda2 = lambda1; | |
6690 | lambda1(); | |
6691 | lambda2(); | |
6692 | } | |
6693 | ||
6694 | int | |
6695 | test2() | |
6696 | { | |
6697 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6698 | auto b = []() -> int { return '0'; }(); | |
6699 | auto c = [=](){ return a + b; }(); | |
6700 | auto d = [&](){ return c; }(); | |
6701 | auto e = [a, &b](int x) mutable { | |
6702 | const auto identity = [](int y){ return y; }; | |
6703 | for (auto i = 0; i < a; ++i) | |
6704 | a += b--; | |
6705 | return x + identity(a + b); | |
6706 | }(0); | |
6707 | return a + b + c + d + e; | |
6708 | } | |
6709 | ||
6710 | int | |
6711 | test3() | |
6712 | { | |
6713 | const auto nullary = [](){ return 0; }; | |
6714 | const auto unary = [](int x){ return x; }; | |
6715 | using nullary_t = decltype(nullary); | |
6716 | using unary_t = decltype(unary); | |
6717 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6718 | const auto higher2nd = [unary](nullary_t f1){ | |
6719 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6720 | }; | |
6721 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6722 | } | |
6723 | ||
6724 | } | |
6725 | ||
6726 | namespace test_variadic_templates | |
6727 | { | |
6728 | ||
6729 | template <int...> | |
6730 | struct sum; | |
6731 | ||
6732 | template <int N0, int... N1toN> | |
6733 | struct sum<N0, N1toN...> | |
6734 | { | |
6735 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6736 | }; | |
6737 | ||
6738 | template <> | |
6739 | struct sum<> | |
6740 | { | |
6741 | static constexpr auto value = 0; | |
6742 | }; | |
6743 | ||
6744 | static_assert(sum<>::value == 0, ""); | |
6745 | static_assert(sum<1>::value == 1, ""); | |
6746 | static_assert(sum<23>::value == 23, ""); | |
6747 | static_assert(sum<1, 2>::value == 3, ""); | |
6748 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6749 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6750 | ||
6751 | } | |
6752 | ||
6753 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6754 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6755 | // because of this. | |
6756 | namespace test_template_alias_sfinae | |
6757 | { | |
6758 | ||
6759 | struct foo {}; | |
6760 | ||
6761 | template<typename T> | |
6762 | using member = typename T::member_type; | |
6763 | ||
6764 | template<typename T> | |
6765 | void func(...) {} | |
6766 | ||
6767 | template<typename T> | |
6768 | void func(member<T>*) {} | |
6769 | ||
6770 | void test(); | |
6771 | ||
6772 | void test() { func<foo>(0); } | |
6773 | ||
6774 | } | |
6775 | ||
6776 | } // namespace cxx11 | |
6777 | ||
6778 | #endif // __cplusplus >= 201103L | |
6779 | ||
6780 | ||
6781 | ||
6782 | _ACEOF | |
6783 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6784 | eval $cachevar=yes | |
6785 | else | |
6786 | eval $cachevar=no | |
6787 | fi | |
6788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6789 | CXX="$ac_save_CXX" | |
6790 | fi | |
6791 | eval ac_res=\$$cachevar | |
6792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6793 | $as_echo "$ac_res" >&6; } | |
6794 | if eval test x\$$cachevar = xyes; then | |
6795 | CXX="$CXX $switch" | |
6796 | if test -n "$CXXCPP" ; then | |
6797 | CXXCPP="$CXXCPP $switch" | |
6798 | fi | |
6799 | ac_success=yes | |
6800 | break | |
6801 | fi | |
6802 | done | |
6803 | if test x$ac_success = xyes; then | |
6804 | break | |
6805 | fi | |
6806 | done | |
6807 | fi | |
7ffcf5d6 | 6808 | |
ffac9597 JM |
6809 | ac_ext=c |
6810 | ac_cpp='$CPP $CPPFLAGS' | |
6811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6814 | ||
6815 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6816 | if test x$ac_success = xno; then | |
6817 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6818 | fi | |
6819 | fi | |
6820 | if test x$ac_success = xno; then | |
6821 | HAVE_CXX11=0 | |
6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6823 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6824 | else | |
6825 | HAVE_CXX11=1 | |
6826 | ||
6827 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6828 | ||
6829 | fi | |
6830 | ||
6831 | ||
7ffcf5d6 TB |
6832 | |
6833 | if test "${build}" != "${host}"; then | |
6834 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6835 | ac_ext=cpp | |
6836 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6837 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6838 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6839 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6840 | ac_success=no | |
6841 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6842 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6843 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6844 | CXX="$CXX_FOR_BUILD" | |
6845 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6846 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6848 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6849 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6850 | $as_echo_n "(cached) " >&6 | |
6851 | else | |
6852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6853 | /* end confdefs.h. */ | |
6854 | ||
6855 | ||
6856 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6857 | // Hopefully, this will speed up the test. | |
6858 | ||
6859 | #ifndef __cplusplus | |
6860 | ||
6861 | #error "This is not a C++ compiler" | |
6862 | ||
6863 | #elif __cplusplus < 201103L | |
6864 | ||
6865 | #error "This is not a C++11 compiler" | |
6866 | ||
6867 | #else | |
6868 | ||
6869 | namespace cxx11 | |
6870 | { | |
6871 | ||
6872 | namespace test_static_assert | |
6873 | { | |
6874 | ||
6875 | template <typename T> | |
6876 | struct check | |
6877 | { | |
6878 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6879 | }; | |
6880 | ||
6881 | } | |
6882 | ||
6883 | namespace test_final_override | |
6884 | { | |
6885 | ||
6886 | struct Base | |
6887 | { | |
6888 | virtual ~Base() {} | |
6889 | virtual void f() {} | |
6890 | }; | |
6891 | ||
6892 | struct Derived : public Base | |
6893 | { | |
6894 | virtual ~Derived() override {} | |
6895 | virtual void f() override {} | |
6896 | }; | |
6897 | ||
6898 | } | |
6899 | ||
6900 | namespace test_double_right_angle_brackets | |
6901 | { | |
6902 | ||
6903 | template < typename T > | |
6904 | struct check {}; | |
6905 | ||
6906 | typedef check<void> single_type; | |
6907 | typedef check<check<void>> double_type; | |
6908 | typedef check<check<check<void>>> triple_type; | |
6909 | typedef check<check<check<check<void>>>> quadruple_type; | |
6910 | ||
6911 | } | |
6912 | ||
6913 | namespace test_decltype | |
6914 | { | |
6915 | ||
6916 | int | |
6917 | f() | |
6918 | { | |
6919 | int a = 1; | |
6920 | decltype(a) b = 2; | |
6921 | return a + b; | |
6922 | } | |
6923 | ||
6924 | } | |
6925 | ||
6926 | namespace test_type_deduction | |
6927 | { | |
6928 | ||
6929 | template < typename T1, typename T2 > | |
6930 | struct is_same | |
6931 | { | |
6932 | static const bool value = false; | |
6933 | }; | |
6934 | ||
6935 | template < typename T > | |
6936 | struct is_same<T, T> | |
6937 | { | |
6938 | static const bool value = true; | |
6939 | }; | |
6940 | ||
6941 | template < typename T1, typename T2 > | |
6942 | auto | |
6943 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6944 | { | |
6945 | return a1 + a2; | |
6946 | } | |
6947 | ||
6948 | int | |
6949 | test(const int c, volatile int v) | |
6950 | { | |
6951 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6952 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6953 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6954 | auto ac = c; | |
6955 | auto av = v; | |
6956 | auto sumi = ac + av + 'x'; | |
6957 | auto sumf = ac + av + 1.0; | |
6958 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6959 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6960 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6961 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6962 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6963 | return (sumf > 0.0) ? sumi : add(c, v); | |
6964 | } | |
6965 | ||
6966 | } | |
6967 | ||
6968 | namespace test_noexcept | |
6969 | { | |
6970 | ||
6971 | int f() { return 0; } | |
6972 | int g() noexcept { return 0; } | |
6973 | ||
6974 | static_assert(noexcept(f()) == false, ""); | |
6975 | static_assert(noexcept(g()) == true, ""); | |
6976 | ||
6977 | } | |
6978 | ||
6979 | namespace test_constexpr | |
6980 | { | |
6981 | ||
6982 | template < typename CharT > | |
6983 | unsigned long constexpr | |
6984 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6985 | { | |
6986 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6987 | } | |
6988 | ||
6989 | template < typename CharT > | |
6990 | unsigned long constexpr | |
6991 | strlen_c(const CharT *const s) noexcept | |
6992 | { | |
6993 | return strlen_c_r(s, 0UL); | |
6994 | } | |
6995 | ||
6996 | static_assert(strlen_c("") == 0UL, ""); | |
6997 | static_assert(strlen_c("1") == 1UL, ""); | |
6998 | static_assert(strlen_c("example") == 7UL, ""); | |
6999 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7000 | ||
7001 | } | |
7002 | ||
7003 | namespace test_rvalue_references | |
7004 | { | |
7005 | ||
7006 | template < int N > | |
7007 | struct answer | |
7008 | { | |
7009 | static constexpr int value = N; | |
7010 | }; | |
7011 | ||
7012 | answer<1> f(int&) { return answer<1>(); } | |
7013 | answer<2> f(const int&) { return answer<2>(); } | |
7014 | answer<3> f(int&&) { return answer<3>(); } | |
7015 | ||
7016 | void | |
7017 | test() | |
7018 | { | |
7019 | int i = 0; | |
7020 | const int c = 0; | |
7021 | static_assert(decltype(f(i))::value == 1, ""); | |
7022 | static_assert(decltype(f(c))::value == 2, ""); | |
7023 | static_assert(decltype(f(0))::value == 3, ""); | |
7024 | } | |
7025 | ||
7026 | } | |
7027 | ||
7028 | namespace test_uniform_initialization | |
7029 | { | |
7030 | ||
7031 | struct test | |
7032 | { | |
7033 | static const int zero {}; | |
7034 | static const int one {1}; | |
7035 | }; | |
7036 | ||
7037 | static_assert(test::zero == 0, ""); | |
7038 | static_assert(test::one == 1, ""); | |
7039 | ||
7040 | } | |
7041 | ||
7042 | namespace test_lambdas | |
7043 | { | |
7044 | ||
7045 | void | |
7046 | test1() | |
7047 | { | |
7048 | auto lambda1 = [](){}; | |
7049 | auto lambda2 = lambda1; | |
7050 | lambda1(); | |
7051 | lambda2(); | |
7052 | } | |
7053 | ||
7054 | int | |
7055 | test2() | |
7056 | { | |
7057 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7058 | auto b = []() -> int { return '0'; }(); | |
7059 | auto c = [=](){ return a + b; }(); | |
7060 | auto d = [&](){ return c; }(); | |
7061 | auto e = [a, &b](int x) mutable { | |
7062 | const auto identity = [](int y){ return y; }; | |
7063 | for (auto i = 0; i < a; ++i) | |
7064 | a += b--; | |
7065 | return x + identity(a + b); | |
7066 | }(0); | |
7067 | return a + b + c + d + e; | |
7068 | } | |
7069 | ||
7070 | int | |
7071 | test3() | |
7072 | { | |
7073 | const auto nullary = [](){ return 0; }; | |
7074 | const auto unary = [](int x){ return x; }; | |
7075 | using nullary_t = decltype(nullary); | |
7076 | using unary_t = decltype(unary); | |
7077 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7078 | const auto higher2nd = [unary](nullary_t f1){ | |
7079 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7080 | }; | |
7081 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7082 | } | |
7083 | ||
7084 | } | |
7085 | ||
7086 | namespace test_variadic_templates | |
7087 | { | |
7088 | ||
7089 | template <int...> | |
7090 | struct sum; | |
7091 | ||
7092 | template <int N0, int... N1toN> | |
7093 | struct sum<N0, N1toN...> | |
7094 | { | |
7095 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7096 | }; | |
7097 | ||
7098 | template <> | |
7099 | struct sum<> | |
7100 | { | |
7101 | static constexpr auto value = 0; | |
7102 | }; | |
7103 | ||
7104 | static_assert(sum<>::value == 0, ""); | |
7105 | static_assert(sum<1>::value == 1, ""); | |
7106 | static_assert(sum<23>::value == 23, ""); | |
7107 | static_assert(sum<1, 2>::value == 3, ""); | |
7108 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7109 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7110 | ||
7111 | } | |
7112 | ||
7113 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7114 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7115 | // because of this. | |
7116 | namespace test_template_alias_sfinae | |
7117 | { | |
7118 | ||
7119 | struct foo {}; | |
7120 | ||
7121 | template<typename T> | |
7122 | using member = typename T::member_type; | |
7123 | ||
7124 | template<typename T> | |
7125 | void func(...) {} | |
7126 | ||
7127 | template<typename T> | |
7128 | void func(member<T>*) {} | |
7129 | ||
7130 | void test(); | |
7131 | ||
7132 | void test() { func<foo>(0); } | |
7133 | ||
7134 | } | |
7135 | ||
7136 | } // namespace cxx11 | |
7137 | ||
7138 | #endif // __cplusplus >= 201103L | |
7139 | ||
7140 | ||
7141 | ||
7142 | _ACEOF | |
7143 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7144 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7145 | else | |
7146 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7147 | fi | |
7148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7149 | fi | |
7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7151 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7152 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7153 | ac_success=yes | |
7154 | fi | |
7155 | ||
7156 | if test x$ac_success = xno; then | |
7157 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7158 | switch="-std=gnu++${alternative}" | |
7159 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7161 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7162 | if eval \${$cachevar+:} false; then : | |
7163 | $as_echo_n "(cached) " >&6 | |
7164 | else | |
7165 | ac_save_CXX="$CXX" | |
7166 | CXX="$CXX $switch" | |
7167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7168 | /* end confdefs.h. */ | |
7169 | ||
7170 | ||
7171 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7172 | // Hopefully, this will speed up the test. | |
7173 | ||
7174 | #ifndef __cplusplus | |
7175 | ||
7176 | #error "This is not a C++ compiler" | |
7177 | ||
7178 | #elif __cplusplus < 201103L | |
7179 | ||
7180 | #error "This is not a C++11 compiler" | |
7181 | ||
7182 | #else | |
7183 | ||
7184 | namespace cxx11 | |
7185 | { | |
7186 | ||
7187 | namespace test_static_assert | |
7188 | { | |
7189 | ||
7190 | template <typename T> | |
7191 | struct check | |
7192 | { | |
7193 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7194 | }; | |
7195 | ||
7196 | } | |
7197 | ||
7198 | namespace test_final_override | |
7199 | { | |
7200 | ||
7201 | struct Base | |
7202 | { | |
7203 | virtual ~Base() {} | |
7204 | virtual void f() {} | |
7205 | }; | |
7206 | ||
7207 | struct Derived : public Base | |
7208 | { | |
7209 | virtual ~Derived() override {} | |
7210 | virtual void f() override {} | |
7211 | }; | |
7212 | ||
7213 | } | |
7214 | ||
7215 | namespace test_double_right_angle_brackets | |
7216 | { | |
7217 | ||
7218 | template < typename T > | |
7219 | struct check {}; | |
7220 | ||
7221 | typedef check<void> single_type; | |
7222 | typedef check<check<void>> double_type; | |
7223 | typedef check<check<check<void>>> triple_type; | |
7224 | typedef check<check<check<check<void>>>> quadruple_type; | |
7225 | ||
7226 | } | |
7227 | ||
7228 | namespace test_decltype | |
7229 | { | |
7230 | ||
7231 | int | |
7232 | f() | |
7233 | { | |
7234 | int a = 1; | |
7235 | decltype(a) b = 2; | |
7236 | return a + b; | |
7237 | } | |
7238 | ||
7239 | } | |
7240 | ||
7241 | namespace test_type_deduction | |
7242 | { | |
7243 | ||
7244 | template < typename T1, typename T2 > | |
7245 | struct is_same | |
7246 | { | |
7247 | static const bool value = false; | |
7248 | }; | |
7249 | ||
7250 | template < typename T > | |
7251 | struct is_same<T, T> | |
7252 | { | |
7253 | static const bool value = true; | |
7254 | }; | |
7255 | ||
7256 | template < typename T1, typename T2 > | |
7257 | auto | |
7258 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7259 | { | |
7260 | return a1 + a2; | |
7261 | } | |
7262 | ||
7263 | int | |
7264 | test(const int c, volatile int v) | |
7265 | { | |
7266 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7267 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7268 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7269 | auto ac = c; | |
7270 | auto av = v; | |
7271 | auto sumi = ac + av + 'x'; | |
7272 | auto sumf = ac + av + 1.0; | |
7273 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7274 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7275 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7276 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7277 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7278 | return (sumf > 0.0) ? sumi : add(c, v); | |
7279 | } | |
7280 | ||
7281 | } | |
7282 | ||
7283 | namespace test_noexcept | |
7284 | { | |
7285 | ||
7286 | int f() { return 0; } | |
7287 | int g() noexcept { return 0; } | |
7288 | ||
7289 | static_assert(noexcept(f()) == false, ""); | |
7290 | static_assert(noexcept(g()) == true, ""); | |
7291 | ||
7292 | } | |
7293 | ||
7294 | namespace test_constexpr | |
7295 | { | |
7296 | ||
7297 | template < typename CharT > | |
7298 | unsigned long constexpr | |
7299 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7300 | { | |
7301 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7302 | } | |
7303 | ||
7304 | template < typename CharT > | |
7305 | unsigned long constexpr | |
7306 | strlen_c(const CharT *const s) noexcept | |
7307 | { | |
7308 | return strlen_c_r(s, 0UL); | |
7309 | } | |
7310 | ||
7311 | static_assert(strlen_c("") == 0UL, ""); | |
7312 | static_assert(strlen_c("1") == 1UL, ""); | |
7313 | static_assert(strlen_c("example") == 7UL, ""); | |
7314 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7315 | ||
7316 | } | |
7317 | ||
7318 | namespace test_rvalue_references | |
7319 | { | |
7320 | ||
7321 | template < int N > | |
7322 | struct answer | |
7323 | { | |
7324 | static constexpr int value = N; | |
7325 | }; | |
7326 | ||
7327 | answer<1> f(int&) { return answer<1>(); } | |
7328 | answer<2> f(const int&) { return answer<2>(); } | |
7329 | answer<3> f(int&&) { return answer<3>(); } | |
7330 | ||
7331 | void | |
7332 | test() | |
7333 | { | |
7334 | int i = 0; | |
7335 | const int c = 0; | |
7336 | static_assert(decltype(f(i))::value == 1, ""); | |
7337 | static_assert(decltype(f(c))::value == 2, ""); | |
7338 | static_assert(decltype(f(0))::value == 3, ""); | |
7339 | } | |
7340 | ||
7341 | } | |
7342 | ||
7343 | namespace test_uniform_initialization | |
7344 | { | |
7345 | ||
7346 | struct test | |
7347 | { | |
7348 | static const int zero {}; | |
7349 | static const int one {1}; | |
7350 | }; | |
7351 | ||
7352 | static_assert(test::zero == 0, ""); | |
7353 | static_assert(test::one == 1, ""); | |
7354 | ||
7355 | } | |
7356 | ||
7357 | namespace test_lambdas | |
7358 | { | |
7359 | ||
7360 | void | |
7361 | test1() | |
7362 | { | |
7363 | auto lambda1 = [](){}; | |
7364 | auto lambda2 = lambda1; | |
7365 | lambda1(); | |
7366 | lambda2(); | |
7367 | } | |
7368 | ||
7369 | int | |
7370 | test2() | |
7371 | { | |
7372 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7373 | auto b = []() -> int { return '0'; }(); | |
7374 | auto c = [=](){ return a + b; }(); | |
7375 | auto d = [&](){ return c; }(); | |
7376 | auto e = [a, &b](int x) mutable { | |
7377 | const auto identity = [](int y){ return y; }; | |
7378 | for (auto i = 0; i < a; ++i) | |
7379 | a += b--; | |
7380 | return x + identity(a + b); | |
7381 | }(0); | |
7382 | return a + b + c + d + e; | |
7383 | } | |
7384 | ||
7385 | int | |
7386 | test3() | |
7387 | { | |
7388 | const auto nullary = [](){ return 0; }; | |
7389 | const auto unary = [](int x){ return x; }; | |
7390 | using nullary_t = decltype(nullary); | |
7391 | using unary_t = decltype(unary); | |
7392 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7393 | const auto higher2nd = [unary](nullary_t f1){ | |
7394 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7395 | }; | |
7396 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7397 | } | |
7398 | ||
7399 | } | |
7400 | ||
7401 | namespace test_variadic_templates | |
7402 | { | |
7403 | ||
7404 | template <int...> | |
7405 | struct sum; | |
7406 | ||
7407 | template <int N0, int... N1toN> | |
7408 | struct sum<N0, N1toN...> | |
7409 | { | |
7410 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7411 | }; | |
7412 | ||
7413 | template <> | |
7414 | struct sum<> | |
7415 | { | |
7416 | static constexpr auto value = 0; | |
7417 | }; | |
7418 | ||
7419 | static_assert(sum<>::value == 0, ""); | |
7420 | static_assert(sum<1>::value == 1, ""); | |
7421 | static_assert(sum<23>::value == 23, ""); | |
7422 | static_assert(sum<1, 2>::value == 3, ""); | |
7423 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7424 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7425 | ||
7426 | } | |
7427 | ||
7428 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7429 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7430 | // because of this. | |
7431 | namespace test_template_alias_sfinae | |
7432 | { | |
7433 | ||
7434 | struct foo {}; | |
7435 | ||
7436 | template<typename T> | |
7437 | using member = typename T::member_type; | |
7438 | ||
7439 | template<typename T> | |
7440 | void func(...) {} | |
7441 | ||
7442 | template<typename T> | |
7443 | void func(member<T>*) {} | |
7444 | ||
7445 | void test(); | |
7446 | ||
7447 | void test() { func<foo>(0); } | |
7448 | ||
7449 | } | |
7450 | ||
7451 | } // namespace cxx11 | |
7452 | ||
7453 | #endif // __cplusplus >= 201103L | |
7454 | ||
7455 | ||
7456 | ||
7457 | _ACEOF | |
7458 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7459 | eval $cachevar=yes | |
7460 | else | |
7461 | eval $cachevar=no | |
7462 | fi | |
7463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7464 | CXX="$ac_save_CXX" | |
7465 | fi | |
7466 | eval ac_res=\$$cachevar | |
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7468 | $as_echo "$ac_res" >&6; } | |
7469 | if eval test x\$$cachevar = xyes; then | |
7470 | CXX="$CXX $switch" | |
7471 | if test -n "$CXXCPP" ; then | |
7472 | CXXCPP="$CXXCPP $switch" | |
7473 | fi | |
7474 | ac_success=yes | |
7475 | break | |
7476 | fi | |
7477 | done | |
7478 | fi | |
7479 | ||
7480 | if test x$ac_success = xno; then | |
7481 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7482 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7483 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7485 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7486 | if eval \${$cachevar+:} false; then : | |
7487 | $as_echo_n "(cached) " >&6 | |
7488 | else | |
7489 | ac_save_CXX="$CXX" | |
7490 | CXX="$CXX $switch" | |
7491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7492 | /* end confdefs.h. */ | |
7493 | ||
7494 | ||
7495 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7496 | // Hopefully, this will speed up the test. | |
7497 | ||
7498 | #ifndef __cplusplus | |
7499 | ||
7500 | #error "This is not a C++ compiler" | |
7501 | ||
7502 | #elif __cplusplus < 201103L | |
7503 | ||
7504 | #error "This is not a C++11 compiler" | |
7505 | ||
7506 | #else | |
7507 | ||
7508 | namespace cxx11 | |
7509 | { | |
7510 | ||
7511 | namespace test_static_assert | |
7512 | { | |
7513 | ||
7514 | template <typename T> | |
7515 | struct check | |
7516 | { | |
7517 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7518 | }; | |
7519 | ||
7520 | } | |
7521 | ||
7522 | namespace test_final_override | |
7523 | { | |
7524 | ||
7525 | struct Base | |
7526 | { | |
7527 | virtual ~Base() {} | |
7528 | virtual void f() {} | |
7529 | }; | |
7530 | ||
7531 | struct Derived : public Base | |
7532 | { | |
7533 | virtual ~Derived() override {} | |
7534 | virtual void f() override {} | |
7535 | }; | |
7536 | ||
7537 | } | |
7538 | ||
7539 | namespace test_double_right_angle_brackets | |
7540 | { | |
7541 | ||
7542 | template < typename T > | |
7543 | struct check {}; | |
7544 | ||
7545 | typedef check<void> single_type; | |
7546 | typedef check<check<void>> double_type; | |
7547 | typedef check<check<check<void>>> triple_type; | |
7548 | typedef check<check<check<check<void>>>> quadruple_type; | |
7549 | ||
7550 | } | |
7551 | ||
7552 | namespace test_decltype | |
7553 | { | |
7554 | ||
7555 | int | |
7556 | f() | |
7557 | { | |
7558 | int a = 1; | |
7559 | decltype(a) b = 2; | |
7560 | return a + b; | |
7561 | } | |
7562 | ||
7563 | } | |
7564 | ||
7565 | namespace test_type_deduction | |
7566 | { | |
7567 | ||
7568 | template < typename T1, typename T2 > | |
7569 | struct is_same | |
7570 | { | |
7571 | static const bool value = false; | |
7572 | }; | |
7573 | ||
7574 | template < typename T > | |
7575 | struct is_same<T, T> | |
7576 | { | |
7577 | static const bool value = true; | |
7578 | }; | |
7579 | ||
7580 | template < typename T1, typename T2 > | |
7581 | auto | |
7582 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7583 | { | |
7584 | return a1 + a2; | |
7585 | } | |
7586 | ||
7587 | int | |
7588 | test(const int c, volatile int v) | |
7589 | { | |
7590 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7591 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7592 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7593 | auto ac = c; | |
7594 | auto av = v; | |
7595 | auto sumi = ac + av + 'x'; | |
7596 | auto sumf = ac + av + 1.0; | |
7597 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7598 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7599 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7600 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7601 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7602 | return (sumf > 0.0) ? sumi : add(c, v); | |
7603 | } | |
7604 | ||
7605 | } | |
7606 | ||
7607 | namespace test_noexcept | |
7608 | { | |
7609 | ||
7610 | int f() { return 0; } | |
7611 | int g() noexcept { return 0; } | |
7612 | ||
7613 | static_assert(noexcept(f()) == false, ""); | |
7614 | static_assert(noexcept(g()) == true, ""); | |
7615 | ||
7616 | } | |
7617 | ||
7618 | namespace test_constexpr | |
7619 | { | |
7620 | ||
7621 | template < typename CharT > | |
7622 | unsigned long constexpr | |
7623 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7624 | { | |
7625 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7626 | } | |
7627 | ||
7628 | template < typename CharT > | |
7629 | unsigned long constexpr | |
7630 | strlen_c(const CharT *const s) noexcept | |
7631 | { | |
7632 | return strlen_c_r(s, 0UL); | |
7633 | } | |
7634 | ||
7635 | static_assert(strlen_c("") == 0UL, ""); | |
7636 | static_assert(strlen_c("1") == 1UL, ""); | |
7637 | static_assert(strlen_c("example") == 7UL, ""); | |
7638 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7639 | ||
7640 | } | |
7641 | ||
7642 | namespace test_rvalue_references | |
7643 | { | |
7644 | ||
7645 | template < int N > | |
7646 | struct answer | |
7647 | { | |
7648 | static constexpr int value = N; | |
7649 | }; | |
7650 | ||
7651 | answer<1> f(int&) { return answer<1>(); } | |
7652 | answer<2> f(const int&) { return answer<2>(); } | |
7653 | answer<3> f(int&&) { return answer<3>(); } | |
7654 | ||
7655 | void | |
7656 | test() | |
7657 | { | |
7658 | int i = 0; | |
7659 | const int c = 0; | |
7660 | static_assert(decltype(f(i))::value == 1, ""); | |
7661 | static_assert(decltype(f(c))::value == 2, ""); | |
7662 | static_assert(decltype(f(0))::value == 3, ""); | |
7663 | } | |
7664 | ||
7665 | } | |
7666 | ||
7667 | namespace test_uniform_initialization | |
7668 | { | |
7669 | ||
7670 | struct test | |
7671 | { | |
7672 | static const int zero {}; | |
7673 | static const int one {1}; | |
7674 | }; | |
7675 | ||
7676 | static_assert(test::zero == 0, ""); | |
7677 | static_assert(test::one == 1, ""); | |
7678 | ||
7679 | } | |
7680 | ||
7681 | namespace test_lambdas | |
7682 | { | |
7683 | ||
7684 | void | |
7685 | test1() | |
7686 | { | |
7687 | auto lambda1 = [](){}; | |
7688 | auto lambda2 = lambda1; | |
7689 | lambda1(); | |
7690 | lambda2(); | |
7691 | } | |
7692 | ||
7693 | int | |
7694 | test2() | |
7695 | { | |
7696 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7697 | auto b = []() -> int { return '0'; }(); | |
7698 | auto c = [=](){ return a + b; }(); | |
7699 | auto d = [&](){ return c; }(); | |
7700 | auto e = [a, &b](int x) mutable { | |
7701 | const auto identity = [](int y){ return y; }; | |
7702 | for (auto i = 0; i < a; ++i) | |
7703 | a += b--; | |
7704 | return x + identity(a + b); | |
7705 | }(0); | |
7706 | return a + b + c + d + e; | |
7707 | } | |
7708 | ||
7709 | int | |
7710 | test3() | |
7711 | { | |
7712 | const auto nullary = [](){ return 0; }; | |
7713 | const auto unary = [](int x){ return x; }; | |
7714 | using nullary_t = decltype(nullary); | |
7715 | using unary_t = decltype(unary); | |
7716 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7717 | const auto higher2nd = [unary](nullary_t f1){ | |
7718 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7719 | }; | |
7720 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7721 | } | |
7722 | ||
7723 | } | |
7724 | ||
7725 | namespace test_variadic_templates | |
7726 | { | |
7727 | ||
7728 | template <int...> | |
7729 | struct sum; | |
7730 | ||
7731 | template <int N0, int... N1toN> | |
7732 | struct sum<N0, N1toN...> | |
7733 | { | |
7734 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7735 | }; | |
7736 | ||
7737 | template <> | |
7738 | struct sum<> | |
7739 | { | |
7740 | static constexpr auto value = 0; | |
7741 | }; | |
7742 | ||
7743 | static_assert(sum<>::value == 0, ""); | |
7744 | static_assert(sum<1>::value == 1, ""); | |
7745 | static_assert(sum<23>::value == 23, ""); | |
7746 | static_assert(sum<1, 2>::value == 3, ""); | |
7747 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7748 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7749 | ||
7750 | } | |
7751 | ||
7752 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7753 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7754 | // because of this. | |
7755 | namespace test_template_alias_sfinae | |
7756 | { | |
7757 | ||
7758 | struct foo {}; | |
7759 | ||
7760 | template<typename T> | |
7761 | using member = typename T::member_type; | |
7762 | ||
7763 | template<typename T> | |
7764 | void func(...) {} | |
7765 | ||
7766 | template<typename T> | |
7767 | void func(member<T>*) {} | |
7768 | ||
7769 | void test(); | |
7770 | ||
7771 | void test() { func<foo>(0); } | |
7772 | ||
7773 | } | |
7774 | ||
7775 | } // namespace cxx11 | |
7776 | ||
7777 | #endif // __cplusplus >= 201103L | |
7778 | ||
7779 | ||
7780 | ||
7781 | _ACEOF | |
7782 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7783 | eval $cachevar=yes | |
7784 | else | |
7785 | eval $cachevar=no | |
7786 | fi | |
7787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7788 | CXX="$ac_save_CXX" | |
7789 | fi | |
7790 | eval ac_res=\$$cachevar | |
7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7792 | $as_echo "$ac_res" >&6; } | |
7793 | if eval test x\$$cachevar = xyes; then | |
7794 | CXX="$CXX $switch" | |
7795 | if test -n "$CXXCPP" ; then | |
7796 | CXXCPP="$CXXCPP $switch" | |
7797 | fi | |
7798 | ac_success=yes | |
7799 | break | |
7800 | fi | |
7801 | done | |
7802 | if test x$ac_success = xyes; then | |
7803 | break | |
7804 | fi | |
7805 | done | |
7806 | fi | |
7807 | CXX_FOR_BUILD="$CXX" | |
7808 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7809 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7810 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7811 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7812 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7813 | ac_ext=c | |
7814 | ac_cpp='$CPP $CPPFLAGS' | |
7815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7818 | ||
7819 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7820 | if test x$ac_success = xno; then | |
7821 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7822 | fi | |
7823 | fi | |
7824 | if test x$ac_success = xno; then | |
7825 | HAVE_CXX11_FOR_BUILD=0 | |
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7827 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7828 | else | |
7829 | HAVE_CXX11_FOR_BUILD=1 | |
7830 | ||
7831 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7832 | ||
7833 | fi | |
7834 | ||
7835 | ||
7836 | fi | |
46070488 JM |
7837 | fi |
7838 | ||
4a5e71f2 L |
7839 | # Check whether --enable-pgo-build was given. |
7840 | if test "${enable_pgo_build+set}" = set; then : | |
7841 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7842 | else | |
7843 | enable_pgo_build=no | |
7844 | fi | |
7845 | ||
7846 | ||
7847 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7848 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7849 | *:*:*:no) ;; | |
7850 | ||
7851 | # Allow the PGO build only if we aren't building a compiler and | |
7852 | # we are in a native configuration. | |
7853 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7854 | ||
7855 | # Disallow the PGO bootstrap if we are building a compiler. | |
7856 | yes:*:*:yes | yes:*:*:lto) | |
7857 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7858 | ||
7859 | *) | |
7860 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7861 | ;; | |
7862 | esac | |
7863 | ||
7864 | if test "$enable_pgo_build" != "no"; then | |
7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7866 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7867 | old_CFLAGS="$CFLAGS" | |
7868 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7869 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7870 | ||
7871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7872 | /* end confdefs.h. */ | |
7873 | int foo; | |
7874 | _ACEOF | |
7875 | if ac_fn_c_try_compile "$LINENO"; then : | |
7876 | ||
7877 | else | |
7878 | PGO_BUILD_GEN_CFLAGS= | |
7879 | fi | |
7880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7881 | CFLAGS="$old_CFLAGS" | |
7882 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7884 | $as_echo "yes" >&6; } | |
7885 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7886 | else | |
7887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7888 | $as_echo "no" >&6; } | |
7889 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7890 | fi | |
7891 | ||
7892 | if test "$enable_pgo_build" = "lto"; then | |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7894 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7895 | old_CFLAGS="$CFLAGS" | |
7896 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7897 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7899 | /* end confdefs.h. */ | |
7900 | int foo; | |
7901 | _ACEOF | |
7902 | if ac_fn_c_try_compile "$LINENO"; then : | |
7903 | ||
7904 | else | |
7905 | PGO_BUILD_LTO_CFLAGS= | |
7906 | fi | |
7907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7908 | CFLAGS="$old_CFLAGS" | |
7909 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7911 | $as_echo "yes" >&6; } | |
7912 | else | |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7914 | $as_echo "no" >&6; } | |
7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7916 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7917 | fi | |
7918 | fi | |
7919 | fi | |
7920 | ||
7921 | ||
7922 | ||
7923 | ||
592c90ff KG |
7924 | # Used for setting $lt_cv_objdir |
7925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7926 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7927 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7928 | $as_echo_n "(cached) " >&6 |
7929 | else | |
7930 | rm -f .libs 2>/dev/null | |
7931 | mkdir .libs 2>/dev/null | |
7932 | if test -d .libs; then | |
7933 | lt_cv_objdir=.libs | |
7934 | else | |
7935 | # MS-DOS does not allow filenames that begin with a dot. | |
7936 | lt_cv_objdir=_libs | |
7937 | fi | |
7938 | rmdir .libs 2>/dev/null | |
7939 | fi | |
7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7941 | $as_echo "$lt_cv_objdir" >&6; } | |
7942 | objdir=$lt_cv_objdir | |
7943 | ||
7944 | ||
7945 | ||
7946 | ||
7947 | ||
7948 | cat >>confdefs.h <<_ACEOF | |
7949 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7950 | _ACEOF | |
7951 | ||
7952 | ||
7953 | ||
acd26225 | 7954 | # Check for GMP, MPFR and MPC |
3a5729ea | 7955 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 7956 | gmpinc= |
e69bf64b | 7957 | have_gmp=no |
acd26225 KG |
7958 | |
7959 | # Specify a location for mpc | |
7960 | # check for this first so it ends up on the link line before mpfr. | |
7961 | ||
5213506e RW |
7962 | # Check whether --with-mpc was given. |
7963 | if test "${with_mpc+set}" = set; then : | |
7964 | withval=$with_mpc; | |
7965 | fi | |
acd26225 | 7966 | |
acd26225 | 7967 | |
9965e3cd | 7968 | # Check whether --with-mpc-include was given. |
5213506e RW |
7969 | if test "${with_mpc_include+set}" = set; then : |
7970 | withval=$with_mpc_include; | |
7971 | fi | |
acd26225 | 7972 | |
acd26225 | 7973 | |
9965e3cd | 7974 | # Check whether --with-mpc-lib was given. |
5213506e RW |
7975 | if test "${with_mpc_lib+set}" = set; then : |
7976 | withval=$with_mpc_lib; | |
7977 | fi | |
acd26225 | 7978 | |
acd26225 KG |
7979 | |
7980 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
7981 | gmplibs="-L$with_mpc/lib $gmplibs" |
7982 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
7983 | fi |
7984 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 7985 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
7986 | fi |
7987 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 7988 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
7989 | fi |
7990 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 7991 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 7992 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
7993 | # Do not test the mpc version. Assume that it is sufficient, since |
7994 | # it is in the source tree, and the library has not been built yet | |
7995 | # but it would be included on the link line in the version check below | |
7996 | # hence making the test fail. | |
3a5729ea | 7997 | have_gmp=yes |
acd26225 | 7998 | fi |
e69bf64b | 7999 | |
bebf829d PB |
8000 | # Specify a location for mpfr |
8001 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 8002 | |
5213506e RW |
8003 | # Check whether --with-mpfr was given. |
8004 | if test "${with_mpfr+set}" = set; then : | |
8005 | withval=$with_mpfr; | |
8006 | fi | |
1c710c3c | 8007 | |
bebf829d | 8008 | |
9965e3cd | 8009 | # Check whether --with-mpfr-include was given. |
5213506e RW |
8010 | if test "${with_mpfr_include+set}" = set; then : |
8011 | withval=$with_mpfr_include; | |
8012 | fi | |
1c710c3c | 8013 | |
8a877c9c | 8014 | |
9965e3cd | 8015 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
8016 | if test "${with_mpfr_lib+set}" = set; then : |
8017 | withval=$with_mpfr_lib; | |
8018 | fi | |
8a877c9c | 8019 | |
bebf829d PB |
8020 | |
8021 | if test "x$with_mpfr" != x; then | |
8022 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 8023 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 8024 | fi |
8a877c9c | 8025 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 8026 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
8027 | fi |
8028 | if test "x$with_mpfr_lib" != x; then | |
8029 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
8030 | fi | |
e69bf64b | 8031 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
8032 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
8033 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 8034 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 8035 | fi |
00f35794 BE |
8036 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
8037 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
8038 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
8039 | # Do not test the mpfr version. Assume that it is sufficient, since |
8040 | # it is in the source tree, and the library has not been built yet | |
8041 | # but it would be included on the link line in the version check below | |
8042 | # hence making the test fail. | |
8043 | have_gmp=yes | |
8044 | fi | |
bebf829d | 8045 | |
6de9cd9a | 8046 | # Specify a location for gmp |
1c710c3c | 8047 | |
5213506e RW |
8048 | # Check whether --with-gmp was given. |
8049 | if test "${with_gmp+set}" = set; then : | |
8050 | withval=$with_gmp; | |
8051 | fi | |
1c710c3c | 8052 | |
6de9cd9a | 8053 | |
9965e3cd | 8054 | # Check whether --with-gmp-include was given. |
5213506e RW |
8055 | if test "${with_gmp_include+set}" = set; then : |
8056 | withval=$with_gmp_include; | |
8057 | fi | |
1c710c3c | 8058 | |
8a877c9c | 8059 | |
9965e3cd | 8060 | # Check whether --with-gmp-lib was given. |
5213506e RW |
8061 | if test "${with_gmp_lib+set}" = set; then : |
8062 | withval=$with_gmp_lib; | |
8063 | fi | |
8a877c9c KG |
8064 | |
8065 | ||
6de9cd9a | 8066 | |
bebf829d PB |
8067 | if test "x$with_gmp" != x; then |
8068 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8069 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 8070 | fi |
8a877c9c KG |
8071 | if test "x$with_gmp_include" != x; then |
8072 | gmpinc="-I$with_gmp_include $gmpinc" | |
8073 | fi | |
8074 | if test "x$with_gmp_lib" != x; then | |
8075 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8076 | fi | |
e69bf64b | 8077 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 8078 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 8079 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 8080 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 8081 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 8082 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
8083 | # Do not test the gmp version. Assume that it is sufficient, since |
8084 | # it is in the source tree, and the library has not been built yet | |
8085 | # but it would be included on the link line in the version check below | |
8086 | # hence making the test fail. | |
8087 | have_gmp=yes | |
8088 | fi | |
6de9cd9a | 8089 | |
d943d7c4 | 8090 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
8091 | have_gmp=yes |
8092 | saved_CFLAGS="$CFLAGS" | |
8093 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
8094 | # Check for the recommended and required versions of GMP. |
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8096 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4a5e71f2 | 8097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
362c6d2f KG |
8098 | /* end confdefs.h. */ |
8099 | #include "gmp.h" | |
8100 | int | |
8101 | main () | |
8102 | { | |
8103 | ||
8104 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8105 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 8106 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
8107 | choke me |
8108 | #endif | |
8109 | ||
8110 | ; | |
8111 | return 0; | |
8112 | } | |
8113 | _ACEOF | |
8114 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 8115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8116 | /* end confdefs.h. */ |
362c6d2f | 8117 | #include <gmp.h> |
1c710c3c DJ |
8118 | int |
8119 | main () | |
8120 | { | |
6de9cd9a | 8121 | |
362c6d2f KG |
8122 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8123 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8124 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
8125 | choke me |
8126 | #endif | |
1c710c3c DJ |
8127 | |
8128 | ; | |
8129 | return 0; | |
8130 | } | |
8131 | _ACEOF | |
5213506e RW |
8132 | if ac_fn_c_try_compile "$LINENO"; then : |
8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8134 | $as_echo "yes" >&6; } | |
362c6d2f KG |
8135 | else |
8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8137 | $as_echo "buggy but acceptable" >&6; } | |
8138 | fi | |
8139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 8140 | else |
5213506e RW |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8142 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8143 | fi |
5213506e | 8144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 8145 | |
acd26225 | 8146 | # If we have GMP, check the MPFR version. |
e69bf64b | 8147 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
8148 | # Check for the recommended and required versions of MPFR. |
8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8150 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 8151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8152 | /* end confdefs.h. */ |
70ec446f | 8153 | #include <gmp.h> |
e69bf64b | 8154 | #include <mpfr.h> |
1c710c3c DJ |
8155 | int |
8156 | main () | |
8157 | { | |
e48d66a9 | 8158 | |
8be34204 | 8159 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
8160 | choke me |
8161 | #endif | |
1c710c3c DJ |
8162 | |
8163 | ; | |
8164 | return 0; | |
8165 | } | |
8166 | _ACEOF | |
5213506e RW |
8167 | if ac_fn_c_try_compile "$LINENO"; then : |
8168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 8169 | /* end confdefs.h. */ |
a3993f33 | 8170 | #include <gmp.h> |
e69bf64b | 8171 | #include <mpfr.h> |
1c710c3c DJ |
8172 | int |
8173 | main () | |
8174 | { | |
a3993f33 | 8175 | |
8be34204 | 8176 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
8177 | choke me |
8178 | #endif | |
acd26225 KG |
8179 | |
8180 | ; | |
8181 | return 0; | |
8182 | } | |
8183 | _ACEOF | |
5213506e RW |
8184 | if ac_fn_c_try_compile "$LINENO"; then : |
8185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8186 | $as_echo "yes" >&6; } | |
acd26225 | 8187 | else |
5213506e RW |
8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8189 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 8190 | fi |
5213506e | 8191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 8192 | else |
5213506e RW |
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8194 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 8195 | fi |
5213506e | 8196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8197 | fi |
8198 | ||
8199 | # Check for the MPC header version. | |
3a5729ea | 8200 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 8201 | # Check for the recommended and required versions of MPC. |
5213506e RW |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8203 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
8205 | /* end confdefs.h. */ |
8206 | #include <mpc.h> | |
8207 | int | |
8208 | main () | |
8209 | { | |
8210 | ||
362c6d2f KG |
8211 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8212 | choke me | |
8213 | #endif | |
8214 | ||
8215 | ; | |
8216 | return 0; | |
8217 | } | |
8218 | _ACEOF | |
8219 | if ac_fn_c_try_compile "$LINENO"; then : | |
8220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8221 | /* end confdefs.h. */ | |
8222 | #include <mpc.h> | |
8223 | int | |
8224 | main () | |
8225 | { | |
8226 | ||
8227 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
8228 | choke me |
8229 | #endif | |
8230 | ||
8231 | ; | |
8232 | return 0; | |
8233 | } | |
8234 | _ACEOF | |
5213506e RW |
8235 | if ac_fn_c_try_compile "$LINENO"; then : |
8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 8237 | $as_echo "yes" >&6; } |
362c6d2f KG |
8238 | else |
8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8240 | $as_echo "buggy but acceptable" >&6; } | |
8241 | fi | |
8242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 8243 | else |
5213506e | 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 8245 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 8246 | fi |
5213506e | 8247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8248 | fi |
8249 | ||
8250 | # Now check the MPFR library. | |
8251 | if test x"$have_gmp" = xyes; then | |
8252 | saved_LIBS="$LIBS" | |
8253 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
8255 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 8256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 8257 | /* end confdefs.h. */ |
3a5729ea | 8258 | #include <mpc.h> |
acd26225 KG |
8259 | int |
8260 | main () | |
8261 | { | |
8262 | ||
8263 | mpfr_t n; | |
8264 | mpfr_t x; | |
3a5729ea | 8265 | mpc_t c; |
acd26225 KG |
8266 | int t; |
8267 | mpfr_init (n); | |
8268 | mpfr_init (x); | |
90ca6847 TB |
8269 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8270 | mpfr_erfc (n, x, MPFR_RNDN); | |
8271 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
8272 | mpfr_clear(n); |
8273 | mpfr_clear(x); | |
8274 | mpc_init2 (c, 53); | |
8275 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8276 | mpc_cosh (c, c, MPC_RNDNN); | |
8277 | mpc_pow (c, c, c, MPC_RNDNN); | |
8278 | mpc_acosh (c, c, MPC_RNDNN); | |
8279 | mpc_clear (c); | |
1c710c3c DJ |
8280 | |
8281 | ; | |
8282 | return 0; | |
8283 | } | |
8284 | _ACEOF | |
5213506e RW |
8285 | if ac_fn_c_try_link "$LINENO"; then : |
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8287 | $as_echo "yes" >&6; } | |
1c710c3c | 8288 | else |
5213506e RW |
8289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8290 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8291 | fi |
5213506e RW |
8292 | rm -f core conftest.err conftest.$ac_objext \ |
8293 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
8294 | LIBS="$saved_LIBS" |
8295 | fi | |
8296 | ||
e69bf64b | 8297 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 8298 | |
362c6d2f KG |
8299 | # The library versions listed in the error message below should match |
8300 | # the HARD-minimums enforced above. | |
e69bf64b | 8301 | if test x$have_gmp != xyes; then |
8be34204 | 8302 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
8303 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8304 | their locations. Source code for these libraries can be found at | |
8305 | their respective hosting sites as well as at | |
aeebd94c | 8306 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
3a5729ea KG |
8307 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
8308 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
8309 | make sure that you have installed both the libraries and the header | |
8310 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 8311 | fi |
70ec446f KG |
8312 | fi |
8313 | ||
acd26225 KG |
8314 | # Flags needed for both GMP, MPFR and/or MPC. |
8315 | ||
8316 | ||
6de9cd9a DN |
8317 | |
8318 | ||
8319 | ||
9e3eba15 | 8320 | |
0ff2d841 | 8321 | |
0b21f5d3 | 8322 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 8323 | |
0b21f5d3 EB |
8324 | # Check whether --with-stage1-libs was given. |
8325 | if test "${with_stage1_libs+set}" = set; then : | |
8326 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8327 | stage1_libs= | |
00020c16 | 8328 | else |
0b21f5d3 | 8329 | stage1_libs=$withval |
00020c16 ILT |
8330 | fi |
8331 | else | |
5dc85f7e | 8332 | stage1_libs= |
5213506e RW |
8333 | fi |
8334 | ||
00020c16 ILT |
8335 | |
8336 | ||
aac9103b TT |
8337 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8338 | # default is yes if gcc is being built; no otherwise. The reason for | |
8339 | # this default is that gdb is sometimes linked against GNU Source | |
8340 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8341 | # this case, -static-libstdc++ will cause crashes. | |
8342 | ||
8343 | # Check whether --with-static-standard-libraries was given. | |
8344 | if test "${with_static_standard_libraries+set}" = set; then : | |
8345 | withval=$with_static_standard_libraries; | |
8346 | else | |
8347 | with_static_standard_libraries=auto | |
8348 | fi | |
8349 | ||
8350 | if test "$with_static_standard_libraries" = auto; then | |
8351 | with_static_standard_libraries=$have_compiler | |
8352 | fi | |
8353 | ||
0b21f5d3 | 8354 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 8355 | |
0b21f5d3 EB |
8356 | # Check whether --with-stage1-ldflags was given. |
8357 | if test "${with_stage1_ldflags+set}" = set; then : | |
8358 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8359 | stage1_ldflags= | |
00020c16 | 8360 | else |
0b21f5d3 | 8361 | stage1_ldflags=$withval |
00020c16 ILT |
8362 | fi |
8363 | else | |
0b21f5d3 EB |
8364 | stage1_ldflags= |
8365 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8366 | # if supported. But if the user explicitly specified the libraries to use, | |
8367 | # trust that they are doing what they want. | |
aac9103b TT |
8368 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8369 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8370 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8371 | fi | |
5213506e RW |
8372 | fi |
8373 | ||
00020c16 ILT |
8374 | |
8375 | ||
5dc85f7e | 8376 | # Libraries to use for stage2 and later builds. |
00020c16 | 8377 | |
5213506e RW |
8378 | # Check whether --with-boot-libs was given. |
8379 | if test "${with_boot_libs+set}" = set; then : | |
8380 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8381 | poststage1_libs= |
8382 | else | |
8383 | poststage1_libs=$withval | |
8384 | fi | |
8385 | else | |
5dc85f7e | 8386 | poststage1_libs= |
5213506e RW |
8387 | fi |
8388 | ||
00020c16 ILT |
8389 | |
8390 | ||
ed2eaa9f ILT |
8391 | # Linker flags to use for stage2 and later builds. |
8392 | ||
8393 | # Check whether --with-boot-ldflags was given. | |
8394 | if test "${with_boot_ldflags+set}" = set; then : | |
8395 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8396 | poststage1_ldflags= | |
8397 | else | |
8398 | poststage1_ldflags=$withval | |
8399 | fi | |
8400 | else | |
8401 | poststage1_ldflags= | |
bec93d73 ILT |
8402 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8403 | # statically. But if the user explicitly specified the libraries to | |
8404 | # use, trust that they are doing what they want. | |
8405 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8406 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8407 | fi | |
8408 | fi | |
8409 | ||
8410 | ||
8411 | ||
e357a5e0 | 8412 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8413 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8414 | |
8415 | ||
33ad93b9 RG |
8416 | # Check whether --with-isl was given. |
8417 | if test "${with_isl+set}" = set; then : | |
8418 | withval=$with_isl; | |
5213506e | 8419 | fi |
f8bf9252 | 8420 | |
f8bf9252 | 8421 | |
eae1a5d4 | 8422 | # Treat --without-isl as a request to disable |
625afa23 | 8423 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8424 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8425 | # Check for isl |
625afa23 RG |
8426 | |
8427 | ||
33ad93b9 RG |
8428 | # Check whether --with-isl-include was given. |
8429 | if test "${with_isl_include+set}" = set; then : | |
8430 | withval=$with_isl_include; | |
5213506e RW |
8431 | fi |
8432 | ||
f8bf9252 | 8433 | |
33ad93b9 RG |
8434 | # Check whether --with-isl-lib was given. |
8435 | if test "${with_isl_lib+set}" = set; then : | |
8436 | withval=$with_isl_lib; | |
5213506e | 8437 | fi |
f8bf9252 | 8438 | |
f8bf9252 | 8439 | |
33ad93b9 RG |
8440 | # Check whether --enable-isl-version-check was given. |
8441 | if test "${enable_isl_version_check+set}" = set; then : | |
8442 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8443 | else | |
8444 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8445 | fi |
8446 | ||
8447 | ||
33ad93b9 RG |
8448 | # Initialize isllibs and islinc. |
8449 | case $with_isl in | |
8450 | no) | |
8451 | isllibs= | |
8452 | islinc= | |
8453 | ;; | |
8454 | "" | yes) | |
8455 | ;; | |
8456 | *) | |
8457 | isllibs="-L$with_isl/lib" | |
8458 | islinc="-I$with_isl/include" | |
8459 | ;; | |
8460 | esac | |
8461 | if test "x${with_isl_include}" != x ; then | |
8462 | islinc="-I$with_isl_include" | |
8463 | fi | |
8464 | if test "x${with_isl_lib}" != x; then | |
8465 | isllibs="-L$with_isl_lib" | |
8466 | fi | |
8467 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8468 | && test -d ${srcdir}/isl; then | |
8469 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8470 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8471 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8473 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8474 | fi |
7d32a440 | 8475 | |
eae1a5d4 RG |
8476 | isllibs="${isllibs} -lisl" |
8477 | ||
7d32a440 | 8478 | |
7d32a440 | 8479 | |
9847828b RB |
8480 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8481 | _isl_saved_CFLAGS=$CFLAGS | |
8482 | _isl_saved_LDFLAGS=$LDFLAGS | |
8483 | _isl_saved_LIBS=$LIBS | |
8484 | ||
8485 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8486 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8487 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8488 | |
f877b3ad RB |
8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8490 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8492 | /* end confdefs.h. */ |
f877b3ad | 8493 | #include <isl/schedule.h> |
622dbadf BC |
8494 | int |
8495 | main () | |
8496 | { | |
f877b3ad | 8497 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8498 | ; |
8499 | return 0; | |
8500 | } | |
8501 | _ACEOF | |
8502 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8503 | gcc_cv_isl=yes |
622dbadf BC |
8504 | else |
8505 | gcc_cv_isl=no | |
8506 | fi | |
8507 | rm -f core conftest.err conftest.$ac_objext \ | |
8508 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8510 | $as_echo "$gcc_cv_isl" >&6; } | |
8511 | ||
560d18d3 | 8512 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8514 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8515 | fi |
8516 | ||
9847828b RB |
8517 | CFLAGS=$_isl_saved_CFLAGS |
8518 | LDFLAGS=$_isl_saved_LDFLAGS | |
8519 | LIBS=$_isl_saved_LIBS | |
8520 | fi | |
8521 | ||
8522 | ||
f8bf9252 | 8523 | |
f8bf9252 | 8524 | |
33ad93b9 RG |
8525 | |
8526 | ||
33ad93b9 RG |
8527 | if test "x${with_isl}" = xno; then |
8528 | graphite_requested=no | |
8529 | elif test "x${with_isl}" != x \ | |
8530 | || test "x${with_isl_include}" != x \ | |
8531 | || test "x${with_isl_lib}" != x ; then | |
8532 | graphite_requested=yes | |
8533 | else | |
8534 | graphite_requested=no | |
7d32a440 | 8535 | fi |
d789184e | 8536 | |
d789184e SP |
8537 | |
8538 | ||
33ad93b9 RG |
8539 | if test "${gcc_cv_isl}" = no ; then |
8540 | isllibs= | |
8541 | islinc= | |
8542 | fi | |
8543 | ||
8544 | if test "${graphite_requested}" = yes \ | |
8545 | && test "x${isllibs}" = x \ | |
8546 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8547 | |
22e05272 | 8548 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8549 | fi |
f8bf9252 | 8550 | |
d32ef397 | 8551 | |
d32ef397 AS |
8552 | fi |
8553 | ||
e357a5e0 | 8554 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8555 | if test "x$with_isl" = xno || |
625afa23 | 8556 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8557 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8558 | islinc= |
32d024bf RG |
8559 | fi |
8560 | ||
625afa23 RG |
8561 | |
8562 | ||
8563 | ||
d7f09764 DN |
8564 | # Check for LTO support. |
8565 | # Check whether --enable-lto was given. | |
8566 | if test "${enable_lto+set}" = set; then : | |
8567 | enableval=$enable_lto; enable_lto=$enableval | |
8568 | else | |
8569 | enable_lto=yes; default_enable_lto=yes | |
8570 | fi | |
8571 | ||
8572 | ||
7413962d | 8573 | |
9a02962b DK |
8574 | |
8575 | ||
8576 | target_elf=no | |
8577 | case $target in | |
8578 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8579 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8580 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8581 | nvptx-*-none) |
9a02962b DK |
8582 | target_elf=no |
8583 | ;; | |
8584 | *) | |
8585 | target_elf=yes | |
8586 | ;; | |
8587 | esac | |
8588 | ||
8589 | if test $target_elf = yes; then : | |
48215350 DK |
8590 | # ELF platforms build the lto-plugin always. |
8591 | build_lto_plugin=yes | |
9a02962b | 8592 | |
9a02962b DK |
8593 | else |
8594 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8595 | case $target in |
deeba76a | 8596 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8597 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8598 | *) enable_lto=no ;; |
8599 | esac | |
9a02962b | 8600 | else |
db50fe7d IS |
8601 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8602 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8603 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8604 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8605 | # -flto it won't be needed until after installation anyway. | |
8606 | case $target in | |
9e530bcd | 8607 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8608 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8609 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8610 | fi |
8611 | ;; | |
8612 | esac | |
8613 | fi | |
1cd0b716 | 8614 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8615 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8616 | case $target in |
48215350 | 8617 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8618 | *) ;; |
8619 | esac | |
48215350 | 8620 | |
9a02962b DK |
8621 | fi |
8622 | ||
d7f09764 | 8623 | |
45b3824d TS |
8624 | # Check whether --enable-linker-plugin-configure-flags was given. |
8625 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8626 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8627 | else | |
8628 | extra_linker_plugin_configure_flags= | |
8629 | fi | |
8630 | ||
8631 | ||
8632 | # Check whether --enable-linker-plugin-flags was given. | |
8633 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8634 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8635 | else | |
8636 | extra_linker_plugin_flags= | |
8637 | fi | |
8638 | ||
8639 | ||
8640 | ||
cdfee50a NS |
8641 | # Enable --enable-host-shared. |
8642 | # Checked early to determine whether jit is an 'all' language | |
8643 | # Check whether --enable-host-shared was given. | |
8644 | if test "${enable_host_shared+set}" = set; then : | |
8645 | enableval=$enable_host_shared; host_shared=$enableval | |
1edfc8f2 | 8646 | case $host in |
a1d2b162 IS |
8647 | x86_64-*-darwin* | aarch64-*-darwin*) |
8648 | if test x$host_shared != xyes ; then | |
8649 | # PIC is the default, and actually cannot be switched off. | |
8650 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8651 | host_shared=yes | |
8652 | fi ;; | |
8653 | *) ;; | |
8654 | esac | |
cdfee50a | 8655 | else |
1edfc8f2 | 8656 | case $host in |
a1d2b162 IS |
8657 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; |
8658 | *) host_shared=no ;; | |
8659 | esac | |
cdfee50a NS |
8660 | fi |
8661 | ||
8662 | ||
f8bf9252 | 8663 | |
0823efed | 8664 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8665 | stage1_languages=,c, |
2805b53a | 8666 | |
00020c16 | 8667 | # Target libraries that we bootstrap. |
ad1e5170 | 8668 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8669 | |
55ffb5ed NN |
8670 | # Figure out what language subdirectories are present. |
8671 | # Look if the user specified --enable-languages="..."; if not, use | |
8672 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8673 | # go away some day. | |
8674 | # NB: embedded tabs in this IF block -- do not untabify | |
8675 | if test -d ${srcdir}/gcc; then | |
8676 | if test x"${enable_languages+set}" != xset; then | |
8677 | if test x"${LANGUAGES+set}" = xset; then | |
8678 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8679 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8680 | else |
cdfee50a | 8681 | enable_languages=default |
55ffb5ed NN |
8682 | fi |
8683 | else | |
8684 | if test x"${enable_languages}" = x || | |
8685 | test x"${enable_languages}" = xyes; | |
8686 | then | |
6b1786aa | 8687 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8688 | exit 1 |
8689 | fi | |
8690 | fi | |
8691 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8692 | ||
7f26dfa3 FXC |
8693 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8694 | # and make the substitution. | |
8695 | case ,${enable_languages}, in | |
8696 | *,f95,*) | |
6b1786aa | 8697 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8698 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8699 | ;; | |
8700 | esac | |
8701 | ||
0823efed DN |
8702 | # If bootstrapping, C++ must be enabled. |
8703 | case ",$enable_languages,:$enable_bootstrap" in | |
8704 | *,c++,*:*) ;; | |
8705 | *:yes) | |
ff3ac0f4 ILT |
8706 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8707 | enable_languages="${enable_languages},c++" | |
8708 | else | |
22e05272 | 8709 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8710 | fi |
8711 | ;; | |
8712 | esac | |
8713 | ||
55ffb5ed NN |
8714 | # First scan to see if an enabled language requires some other language. |
8715 | # We assume that a given config-lang.in will list all the language | |
8716 | # front ends it requires, even if some are required indirectly. | |
8717 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8718 | case ${lang_frag} in | |
8719 | ..) ;; | |
8720 | # The odd quoting in the next line works around | |
8721 | # an apparent bug in bash 1.12 on linux. | |
8722 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8723 | *) | |
69ecd18f ILT |
8724 | # From the config-lang.in, get $language, $lang_requires, and |
8725 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8726 | language= |
8727 | lang_requires= | |
69ecd18f | 8728 | lang_requires_boot_languages= |
d4360477 NS |
8729 | # set srcdir during sourcing lang_frag to the gcc dir. |
8730 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8731 | # polutes this shell | |
8732 | saved_srcdir=${srcdir} | |
8733 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8734 | srcdir=${saved_srcdir} | |
69ecd18f | 8735 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8736 | case ,${enable_languages}, in |
8737 | *,$other,*) ;; | |
cdfee50a | 8738 | *,default,*) ;; |
55ffb5ed NN |
8739 | *,all,*) ;; |
8740 | *,$language,*) | |
8741 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8742 | enable_languages="${enable_languages},${other}" | |
8743 | ;; | |
8744 | esac | |
8745 | done | |
69ecd18f ILT |
8746 | for other in ${lang_requires_boot_languages} ; do |
8747 | if test "$other" != "c"; then | |
8748 | case ,${enable_stage1_languages}, in | |
8749 | *,$other,*) ;; | |
cdfee50a | 8750 | *,default,*) ;; |
69ecd18f ILT |
8751 | *,all,*) ;; |
8752 | *) | |
8753 | case ,${enable_languages}, in | |
8754 | *,$language,*) | |
8755 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8756 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8757 | ;; | |
8758 | esac | |
8759 | ;; | |
8760 | esac | |
8761 | fi | |
8762 | done | |
55ffb5ed NN |
8763 | ;; |
8764 | esac | |
8765 | done | |
8766 | ||
e1888513 | 8767 | new_enable_languages=,c, |
d7f09764 DN |
8768 | |
8769 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8770 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8771 | case ,${enable_languages}, in |
8772 | *,lto,*) ;; | |
8773 | *) enable_languages="${enable_languages},lto" ;; | |
8774 | esac | |
1cd0b716 | 8775 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8776 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8777 | fi |
8778 | fi | |
8779 | ||
426c1eb0 TS |
8780 | # If we're building an offloading compiler, add the LTO front end. |
8781 | if test x"$enable_as_accelerator_for" != x ; then | |
8782 | case ,${enable_languages}, in | |
8783 | *,lto,*) ;; | |
8784 | *) enable_languages="${enable_languages},lto" ;; | |
8785 | esac | |
8786 | fi | |
8787 | ||
cdfee50a | 8788 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8789 | potential_languages=,c, |
55ffb5ed | 8790 | |
4da3b0f8 ILT |
8791 | enabled_target_libs= |
8792 | disabled_target_libs= | |
8793 | ||
55ffb5ed NN |
8794 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8795 | case ${lang_frag} in | |
8796 | ..) ;; | |
8797 | # The odd quoting in the next line works around | |
8798 | # an apparent bug in bash 1.12 on linux. | |
8799 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8800 | *) | |
1c710c3c | 8801 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8802 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8803 | language= |
8804 | target_libs= | |
8805 | lang_dirs= | |
1546bb64 | 8806 | subdir_requires= |
e1888513 PB |
8807 | boot_language=no |
8808 | build_by_default=yes | |
d4360477 NS |
8809 | # set srcdir during sourcing. See above about save & restore |
8810 | saved_srcdir=${srcdir} | |
8811 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8812 | srcdir=${saved_srcdir} | |
e1888513 PB |
8813 | if test x${language} = x; then |
8814 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8815 | exit 1 | |
8816 | fi | |
8817 | ||
78767fd9 | 8818 | if test "$language" = "c++"; then |
0823efed | 8819 | boot_language=yes |
00020c16 ILT |
8820 | fi |
8821 | ||
178f875a | 8822 | add_this_lang=no |
cdfee50a NS |
8823 | # C is always enabled, so no need to add it again |
8824 | if test "$language" != "c"; then | |
8825 | case ,${enable_languages}, in | |
8826 | *,${language},*) | |
8827 | # Language was explicitly selected; include it | |
d4a10d0a | 8828 | add_this_lang=yes |
cdfee50a NS |
8829 | ;; |
8830 | *,all,*) | |
8831 | # All languages are enabled | |
8832 | add_this_lang=all | |
8833 | ;; | |
8834 | *,default,*) | |
8835 | # 'default' was selected, select it if it is a default language | |
178f875a | 8836 | add_this_lang=${build_by_default} |
cdfee50a NS |
8837 | ;; |
8838 | esac | |
8839 | fi | |
6de9cd9a | 8840 | |
1546bb64 | 8841 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 8842 | for i in $subdir_requires; do |
b6348cb3 | 8843 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
8844 | case ${add_this_lang} in |
8845 | yes) | |
1546bb64 | 8846 | # Specifically requested language; tell them. |
22e05272 | 8847 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 8848 | ;; |
cdfee50a NS |
8849 | all) |
8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8851 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8852 | add_this_lang=unsupported | |
8853 | ;; | |
1546bb64 PB |
8854 | *) |
8855 | # Silently disable. | |
e1888513 | 8856 | add_this_lang=unsupported |
1546bb64 PB |
8857 | ;; |
8858 | esac | |
8859 | done | |
8860 | ||
e1888513 | 8861 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
8862 | case ${add_this_lang}:${language}:${have_gnat} in |
8863 | yes:ada:no) | |
e1888513 | 8864 | # Specifically requested language; tell them. |
22e05272 | 8865 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 8866 | ;; |
cdfee50a NS |
8867 | all:ada:no) |
8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8869 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8870 | add_this_lang=unsupported | |
8871 | ;; | |
e1888513 PB |
8872 | *:ada:no) |
8873 | # Silently disable. | |
8874 | add_this_lang=unsupported | |
8875 | ;; | |
8876 | esac | |
8877 | ||
5fee5ec3 IB |
8878 | # Disable D if no preexisting GDC is available. |
8879 | case ${add_this_lang}:${language}:${have_gdc} in | |
8880 | yes:d:no) | |
8881 | # Specifically requested language; tell them. | |
8882 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
8883 | ;; | |
8884 | all:d:no) | |
8885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
8886 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
8887 | add_this_lang=unsupported | |
8888 | ;; | |
8889 | *:d:no) | |
8890 | # Silently disable. | |
8891 | add_this_lang=unsupported | |
8892 | ;; | |
8893 | esac | |
8894 | ||
cdfee50a | 8895 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
8896 | # but not if building for Mingw. All code in Windows |
8897 | # is position independent code (PIC). | |
c83027f3 NB |
8898 | case $target in |
8899 | *mingw*) ;; | |
8900 | *) | |
8901 | case ${add_this_lang}:${language}:${host_shared} in | |
8902 | yes:jit:no) | |
8903 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 8904 | as_fn_error $? " |
cdfee50a NS |
8905 | Enabling language \"jit\" requires --enable-host-shared. |
8906 | ||
8907 | --enable-host-shared typically slows the rest of the compiler down by | |
8908 | a few %, so you must explicitly enable it. | |
8909 | ||
8910 | If you want to build both the jit and the regular compiler, it is often | |
8911 | best to do this via two separate configure/builds, in separate | |
8912 | directories, to avoid imposing the performance cost of | |
8913 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
8914 | ;; |
8915 | all:jit:no) | |
8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 8917 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
8918 | add_this_lang=unsupported |
8919 | ;; | |
8920 | *:jit:no) | |
8921 | # Silently disable. | |
8922 | add_this_lang=unsupported | |
8923 | ;; | |
8924 | esac | |
8925 | ;; | |
8926 | esac | |
cdfee50a NS |
8927 | |
8928 | # Disable a language that is unsupported by the target. | |
8929 | case "${add_this_lang}: $unsupported_languages " in | |
8930 | no:*) ;; | |
8931 | unsupported:*) ;; | |
8932 | *:*" $language "*) | |
8933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
8934 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 8935 | add_this_lang=unsupported |
4fab7234 HPN |
8936 | ;; |
8937 | esac | |
8938 | ||
6de9cd9a | 8939 | case $add_this_lang in |
e1888513 | 8940 | unsupported) |
55ffb5ed | 8941 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
8942 | disabled_target_libs="$disabled_target_libs $target_libs" |
8943 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 8944 | ;; |
e1888513 PB |
8945 | no) |
8946 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
8947 | disabled_target_libs="$disabled_target_libs $target_libs" |
8948 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
8949 | potential_languages="${potential_languages}${language}," |
8950 | ;; | |
cdfee50a | 8951 | all|yes) |
e1888513 PB |
8952 | new_enable_languages="${new_enable_languages}${language}," |
8953 | potential_languages="${potential_languages}${language}," | |
2805b53a | 8954 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 8955 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
8956 | case "${boot_language}:,$enable_stage1_languages," in |
8957 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 8958 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
8959 | case ",$stage1_languages," in |
8960 | *,$language,* | ,yes, | ,all,) ;; | |
8961 | *) stage1_languages="${stage1_languages}${language}," ;; | |
8962 | esac | |
00020c16 | 8963 | # We need to bootstrap any supporting libraries. |
5fee5ec3 | 8964 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
2805b53a NN |
8965 | ;; |
8966 | esac | |
8967 | ;; | |
55ffb5ed NN |
8968 | esac |
8969 | ;; | |
8970 | esac | |
8971 | done | |
8972 | ||
4da3b0f8 ILT |
8973 | # Add target libraries which are only needed for disabled languages |
8974 | # to noconfigdirs. | |
8975 | if test -n "$disabled_target_libs"; then | |
8976 | for dir in $disabled_target_libs; do | |
8977 | case " $enabled_target_libs " in | |
8978 | *" ${dir} "*) ;; | |
8979 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
8980 | esac | |
8981 | done | |
8982 | fi | |
8983 | ||
5213506e RW |
8984 | # Check whether --enable-stage1-languages was given. |
8985 | if test "${enable_stage1_languages+set}" = set; then : | |
8986 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
8987 | ,no,|,,) |
8988 | # Set it to something that will have no effect in the loop below | |
8989 | enable_stage1_languages=c ;; | |
8990 | ,yes,) | |
8991 | enable_stage1_languages=`echo $new_enable_languages | \ | |
8992 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
8993 | *,all,*) | |
8994 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
8995 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
8996 | esac | |
8997 | ||
8998 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
8999 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
9000 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
9001 | case $potential_languages in | |
9002 | *,$i,*) | |
9003 | case $stage1_languages in | |
9004 | *,$i,*) ;; | |
9005 | *) stage1_languages="$stage1_languages$i," ;; | |
9006 | esac ;; | |
9007 | *) | |
9008 | case $missing_languages in | |
9009 | *,$i,*) ;; | |
9010 | *) missing_languages="$missing_languages$i," ;; | |
9011 | esac ;; | |
9012 | esac | |
9013 | done | |
5213506e RW |
9014 | fi |
9015 | ||
e1888513 PB |
9016 | |
9017 | # Remove leading/trailing commas that were added for simplicity | |
9018 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 9019 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
9020 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
9021 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
9022 | ||
55ffb5ed | 9023 | if test "x$missing_languages" != x; then |
22e05272 | 9024 | as_fn_error $? " |
0cf085e4 | 9025 | The following requested languages could not be built: ${missing_languages} |
5213506e | 9026 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 9027 | fi |
55ffb5ed NN |
9028 | if test "x$new_enable_languages" != "x$enable_languages"; then |
9029 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 9030 | enable_languages="$new_enable_languages" |
55ffb5ed | 9031 | fi |
e1888513 | 9032 | |
1c710c3c | 9033 | |
b2eaac4a | 9034 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
9035 | fi |
9036 | ||
27079765 AH |
9037 | # Handle --disable-<component> generically. |
9038 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
9039 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
9040 | varname=`echo $dirname | sed -e s/+/_/g` |
9041 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
9042 | noconfigdirs="$noconfigdirs $dir" |
9043 | fi | |
9044 | done | |
9045 | ||
43c40f3e RO |
9046 | # Check for Boehm's garbage collector |
9047 | # Check whether --enable-objc-gc was given. | |
9048 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
9049 | enableval=$enable_objc_gc; |
9050 | fi | |
9051 | ||
9052 | ||
9053 | # Check whether --with-target-bdw-gc was given. | |
9054 | if test "${with_target_bdw_gc+set}" = set; then : | |
9055 | withval=$with_target_bdw_gc; | |
9056 | fi | |
9057 | ||
9058 | ||
9059 | # Check whether --with-target-bdw-gc-include was given. | |
9060 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9061 | withval=$with_target_bdw_gc_include; | |
9062 | fi | |
9063 | ||
9064 | ||
9065 | # Check whether --with-target-bdw-gc-lib was given. | |
9066 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9067 | withval=$with_target_bdw_gc_lib; | |
9068 | fi | |
9069 | ||
9070 | ||
9071 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9073 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9074 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
9075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
9076 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
9077 | else |
9078 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 9079 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 9080 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 9081 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
9082 | else |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9084 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
9085 | fi | |
9086 | fi | |
43c40f3e RO |
9087 | esac |
9088 | ||
5e9d6aa4 | 9089 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 9090 | case ,${enable_languages}, in |
1007a55c | 9091 | *,c++,*) |
5e9d6aa4 | 9092 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
9093 | case "${noconfigdirs}" in |
9094 | *target-libstdc++-v3*) | |
5e9d6aa4 | 9095 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
9096 | ;; |
9097 | *) ;; | |
9098 | esac | |
9099 | ;; | |
99776ebd | 9100 | *) |
5e9d6aa4 | 9101 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
9102 | ;; |
9103 | esac | |
9104 | ||
dc614a83 AB |
9105 | # If gcc/ is not in the source tree then we'll not be building a |
9106 | # target compiler, assume in that case we don't want to build any | |
9107 | # target libraries or tools. | |
9108 | # | |
9109 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9110 | # this configure script, but don't always have target tools available. | |
9111 | if test ! -d ${srcdir}/gcc; then | |
9112 | skipdirs="${skipdirs} ${target_configdirs}" | |
9113 | fi | |
9114 | ||
ee6a22df L |
9115 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9116 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
9117 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9118 | ||
9119 | notsupp="" | |
9120 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 9121 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
9122 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9123 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9124 | if test -r $srcdir/$dirname/configure ; then | |
9125 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9126 | true | |
9127 | else | |
9128 | notsupp="$notsupp $dir" | |
9129 | fi | |
9130 | fi | |
9131 | fi | |
ee6a22df L |
9132 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9133 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9134 | if test -r $srcdir/$dirname/configure ; then | |
9135 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9136 | true | |
9137 | else | |
9138 | notsupp="$notsupp $dir" | |
9139 | fi | |
9140 | fi | |
9141 | fi | |
55ffb5ed NN |
9142 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9143 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9144 | if test -r $srcdir/$dirname/configure ; then | |
9145 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9146 | true | |
9147 | else | |
9148 | notsupp="$notsupp $dir" | |
9149 | fi | |
9150 | fi | |
9151 | fi | |
9152 | done | |
9153 | ||
55ffb5ed NN |
9154 | # Quietly strip out all directories which aren't configurable in this tree. |
9155 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9156 | # is now the case. | |
23f6b2f9 PB |
9157 | build_configdirs_all="$build_configdirs" |
9158 | build_configdirs= | |
9159 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 9160 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
9161 | if test -f ${srcdir}/$j/configure ; then |
9162 | build_configdirs="${build_configdirs} $i" | |
9163 | fi | |
9164 | done | |
9165 | ||
55ffb5ed NN |
9166 | configdirs_all="$configdirs" |
9167 | configdirs= | |
9168 | for i in ${configdirs_all} ; do | |
9169 | if test -f ${srcdir}/$i/configure ; then | |
9170 | configdirs="${configdirs} $i" | |
9171 | fi | |
9172 | done | |
23f6b2f9 | 9173 | |
55ffb5ed NN |
9174 | target_configdirs_all="$target_configdirs" |
9175 | target_configdirs= | |
9176 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 9177 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
9178 | if test -f ${srcdir}/$j/configure ; then |
9179 | target_configdirs="${target_configdirs} $i" | |
9180 | fi | |
9181 | done | |
9182 | ||
45b3824d TS |
9183 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9184 | # so we have to add it after the preceding checks. | |
9185 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9186 | then | |
9187 | case " $configdirs " in | |
9188 | *" libiberty "*) | |
9189 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9190 | configdirs="$configdirs libiberty-linker-plugin" | |
9191 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9192 | --with-libiberty=../libiberty-linker-plugin";; | |
9193 | *) | |
22e05272 | 9194 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
9195 | esac |
9196 | fi | |
9197 | ||
fca38047 TS |
9198 | # Sometimes we have special requirements for the host libiberty. |
9199 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 9200 | extra_host_zlib_configure_flags= |
fca38047 | 9201 | case " $configdirs " in |
15368960 | 9202 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
fca38047 TS |
9203 | # When these are to be built as shared libraries, the same applies to |
9204 | # libiberty. | |
9205 | extra_host_libiberty_configure_flags=--enable-shared | |
9206 | ;; | |
1c01ebf6 L |
9207 | *" bfd "*) |
9208 | # When bfd is to be built as a shared library, the same applies to | |
9209 | # zlib. | |
9210 | if test "$enable_shared" = "yes"; then | |
9211 | extra_host_zlib_configure_flags=--enable-host-shared | |
9212 | fi | |
9213 | ;; | |
fca38047 TS |
9214 | esac |
9215 | ||
9216 | ||
1c01ebf6 | 9217 | |
55ffb5ed NN |
9218 | # Produce a warning message for the subdirs we can't configure. |
9219 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9220 | # FSF releases, it's important to let people know when their machine isn't | |
9221 | # supported by the one or two programs in a package. | |
9222 | ||
9223 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9224 | # If $appdirs is non-empty, at least one of those directories must still | |
9225 | # be configured, or we error out. (E.g., if the gas release supports a | |
9226 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9227 | # pretend that all is well.) | |
9228 | if test -n "$appdirs" ; then | |
9229 | for dir in $appdirs ; do | |
9230 | if test -r $dir/Makefile.in ; then | |
9231 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9232 | appdirs="" | |
9233 | break | |
9234 | fi | |
23f6b2f9 | 9235 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
9236 | appdirs="" |
9237 | break | |
9238 | fi | |
9239 | fi | |
9240 | done | |
9241 | if test -n "$appdirs" ; then | |
9242 | echo "*** This configuration is not supported by this package." 1>&2 | |
9243 | exit 1 | |
9244 | fi | |
9245 | fi | |
9246 | # Okay, some application will build, or we don't care to check. Still | |
9247 | # notify of subdirs not getting built. | |
9248 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9249 | echo " ${notsupp}" 1>&2 | |
9250 | echo " (Any other directories should still work fine.)" 1>&2 | |
9251 | fi | |
9252 | ||
9253 | case "$host" in | |
9254 | *msdosdjgpp*) | |
9255 | enable_gdbtk=no ;; | |
9256 | esac | |
9257 | ||
c3a86da9 DJ |
9258 | # To find our prefix, in gcc_cv_tool_prefix. |
9259 | ||
9260 | # The user is always right. | |
9261 | if test "${PATH_SEPARATOR+set}" != set; then | |
9262 | echo "#! /bin/sh" >conf$$.sh | |
9263 | echo "exit 0" >>conf$$.sh | |
9264 | chmod +x conf$$.sh | |
9265 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9266 | PATH_SEPARATOR=';' | |
9267 | else | |
9268 | PATH_SEPARATOR=: | |
9269 | fi | |
9270 | rm -f conf$$.sh | |
9271 | fi | |
9272 | ||
9273 | ||
3c36aa6b JJ |
9274 | get_gcc_base_ver="cat" |
9275 | ||
9276 | # Check whether --with-gcc-major-version-only was given. | |
9277 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9278 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 9279 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
9280 | fi |
9281 | ||
9282 | fi | |
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
c3a86da9 DJ |
9288 | |
9289 | if test "x$exec_prefix" = xNONE; then | |
9290 | if test "x$prefix" = xNONE; then | |
9291 | gcc_cv_tool_prefix=$ac_default_prefix | |
9292 | else | |
9293 | gcc_cv_tool_prefix=$prefix | |
9294 | fi | |
9295 | else | |
9296 | gcc_cv_tool_prefix=$exec_prefix | |
9297 | fi | |
9298 | ||
9299 | # If there is no compiler in the tree, use the PATH only. In any | |
9300 | # case, if there is no compiler in the tree nobody should use | |
9301 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9302 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
9303 | if test x$with_gcc_major_version_only = xyes ; then |
9304 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9305 | else | |
9306 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9307 | fi | |
c3a86da9 DJ |
9308 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9309 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9310 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9311 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9312 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9313 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9314 | else | |
9315 | gcc_cv_tool_dirs= | |
9316 | fi | |
9317 | ||
9318 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9319 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9320 | fi | |
9321 | ||
9322 | ||
9323 | ||
55ffb5ed NN |
9324 | copy_dirs= |
9325 | ||
1c710c3c | 9326 | |
5213506e RW |
9327 | # Check whether --with-build-sysroot was given. |
9328 | if test "${with_build_sysroot+set}" = set; then : | |
9329 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
9330 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9331 | fi | |
9332 | else | |
9333 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 9334 | fi |
526635cb MM |
9335 | |
9336 | ||
c8aea42c | 9337 | |
5213506e RW |
9338 | |
9339 | # Check whether --with-debug-prefix-map was given. | |
9340 | if test "${with_debug_prefix_map+set}" = set; then : | |
9341 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
9342 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9343 | for debug_map in $withval; do | |
9344 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9345 | done | |
9346 | fi | |
9347 | else | |
9348 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
9349 | fi |
9350 | ||
c8aea42c PB |
9351 | |
9352 | ||
1c8bd6a3 PB |
9353 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9354 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9355 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9356 | # We want to ensure that TARGET libraries (which we know are built with | |
9357 | # gcc) are built with "-O2 -g", so include those options when setting | |
9358 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9359 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9360 | if test "x${is_cross_compiler}" = xyes; then |
9361 | CFLAGS_FOR_TARGET="-g -O2" | |
9362 | else | |
9363 | CFLAGS_FOR_TARGET=$CFLAGS | |
9364 | case " $CFLAGS " in | |
9365 | *" -O2 "*) ;; | |
9366 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9367 | esac | |
9368 | case " $CFLAGS " in | |
9369 | *" -g "* | *" -g3 "*) ;; | |
9370 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9371 | esac | |
9372 | fi | |
1c8bd6a3 PB |
9373 | fi |
9374 | ||
9375 | ||
9376 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9377 | if test "x${is_cross_compiler}" = xyes; then |
9378 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9379 | else | |
9380 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9381 | case " $CXXFLAGS " in | |
9382 | *" -O2 "*) ;; | |
9383 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9384 | esac | |
9385 | case " $CXXFLAGS " in | |
9386 | *" -g "* | *" -g3 "*) ;; | |
9387 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9388 | esac | |
9389 | fi | |
1c8bd6a3 PB |
9390 | fi |
9391 | ||
9392 | ||
6f57bdf6 DK |
9393 | |
9394 | ||
55ffb5ed NN |
9395 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9396 | # the named directory are copied to $(tooldir)/sys-include. | |
9397 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9398 | if test x${is_cross_compiler} = xno ; then | |
9399 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9400 | exit 1 | |
9401 | fi | |
9402 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9403 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9404 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9405 | fi |
9406 | fi | |
9407 | ||
9408 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9409 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9410 | # are permitted. | |
9411 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9412 | if test x${is_cross_compiler} = xno ; then | |
9413 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9414 | exit 1 | |
9415 | fi | |
9416 | if test x"${with_libs}" != xyes ; then | |
9417 | # Copy the libraries in reverse order, so that files in the first named | |
9418 | # library override files in subsequent libraries. | |
c3a86da9 | 9419 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9420 | for l in ${with_libs}; do |
1c710c3c | 9421 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9422 | done |
9423 | fi | |
9424 | fi | |
9425 | ||
d7f09764 | 9426 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9427 | # |
9428 | # This is done by determining whether or not the appropriate directory | |
9429 | # is available, and by checking whether or not specific configurations | |
9430 | # have requested that this magic not happen. | |
1c710c3c DJ |
9431 | # |
9432 | # The command line options always override the explicit settings in | |
6b1786aa | 9433 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9434 | # |
1c710c3c | 9435 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9436 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9437 | # --without-gnu-ld options for the configure script. Similarly, if |
9438 | # the default is to use the included zlib and you don't want to do that, | |
9439 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9440 | |
9441 | if test x${use_gnu_as} = x && | |
9442 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9443 | with_gnu_as=yes | |
9444 | extra_host_args="$extra_host_args --with-gnu-as" | |
9445 | fi | |
9446 | ||
9447 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9448 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9449 | with_gnu_ld=yes |
9450 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9451 | fi | |
9452 | ||
d7f09764 DN |
9453 | if test x${use_included_zlib} = x && |
9454 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9455 | : | |
9456 | else | |
9457 | with_system_zlib=yes | |
9458 | extra_host_args="$extra_host_args --with-system-zlib" | |
9459 | fi | |
9460 | ||
e8b05380 PB |
9461 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9462 | # can detect this case. | |
9463 | ||
9464 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9465 | with_newlib=yes | |
9466 | extra_host_args="$extra_host_args --with-newlib" | |
9467 | fi | |
9468 | ||
55ffb5ed NN |
9469 | # Handle ${copy_dirs} |
9470 | set fnord ${copy_dirs} | |
9471 | shift | |
9472 | while test $# != 0 ; do | |
9473 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9474 | : | |
9475 | else | |
9476 | echo Copying $1 to $2 | |
9477 | ||
9478 | # Use the install script to create the directory and all required | |
9479 | # parent directories. | |
9480 | if test -d $2 ; then | |
9481 | : | |
9482 | else | |
9483 | echo >config.temp | |
9484 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9485 | fi | |
9486 | ||
9487 | # Copy the directory, assuming we have tar. | |
9488 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9489 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9490 | ||
9491 | # It is the responsibility of the user to correctly adjust all | |
9492 | # symlinks. If somebody can figure out how to handle them correctly | |
9493 | # here, feel free to add the code. | |
9494 | ||
9495 | echo $1 > $2/COPIED | |
9496 | fi | |
9497 | shift; shift | |
9498 | done | |
9499 | ||
e8b05380 PB |
9500 | # Determine a target-dependent exec_prefix that the installed |
9501 | # gcc will search in. Keep this list sorted by triplet, with | |
9502 | # the *-*-osname triplets last. | |
9503 | md_exec_prefix= | |
9504 | case "${target}" in | |
30b74385 | 9505 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9506 | md_exec_prefix=/dev/env/DJDIR/bin |
9507 | ;; | |
e8b05380 | 9508 | *-*-hpux* | \ |
e8b05380 | 9509 | *-*-nto-qnx* | \ |
6de66370 | 9510 | *-*-solaris2*) |
e8b05380 PB |
9511 | md_exec_prefix=/usr/ccs/bin |
9512 | ;; | |
9513 | esac | |
9514 | ||
671aa708 NN |
9515 | extra_arflags_for_target= |
9516 | extra_nmflags_for_target= | |
9517 | extra_ranlibflags_for_target= | |
9518 | target_makefile_frag=/dev/null | |
9519 | case "${target}" in | |
58e24147 AM |
9520 | spu-*-*) |
9521 | target_makefile_frag="config/mt-spu" | |
9522 | ;; | |
d896cc4d | 9523 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9524 | target_makefile_frag="config/mt-sde" |
9525 | ;; | |
1ec3b87b RS |
9526 | mipsisa*-*-elfoabi*) |
9527 | target_makefile_frag="config/mt-mips-elfoabi" | |
9528 | ;; | |
08d0963a RS |
9529 | mips*-*-*linux* | mips*-*-gnu*) |
9530 | target_makefile_frag="config/mt-mips-gnu" | |
9531 | ;; | |
707f1839 SL |
9532 | nios2-*-elf*) |
9533 | target_makefile_frag="config/mt-nios2-elf" | |
9534 | ;; | |
76052545 EB |
9535 | *-*-linux-android*) |
9536 | target_makefile_frag="config/mt-android" | |
9537 | ;; | |
416ac4d4 | 9538 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9539 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9540 | ;; |
9541 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9542 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9543 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9544 | # harmless if we're using GNU nm or ar. | |
9545 | extra_arflags_for_target=" -X32_64" | |
9546 | extra_nmflags_for_target=" -B -X32_64" | |
9547 | ;; | |
671aa708 NN |
9548 | esac |
9549 | ||
9550 | alphaieee_frag=/dev/null | |
9551 | case $target in | |
9552 | alpha*-*-*) | |
9553 | # This just makes sure to use the -mieee option to build target libs. | |
9554 | # This should probably be set individually by each library. | |
9555 | alphaieee_frag="config/mt-alphaieee" | |
9556 | ;; | |
9557 | esac | |
9558 | ||
9559 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9560 | # the target libraries, similarly if it is not specified, use -Os | |
9561 | # on selected platforms. | |
9562 | ospace_frag=/dev/null | |
9563 | case "${enable_target_optspace}:${target}" in | |
9564 | yes:*) | |
9565 | ospace_frag="config/mt-ospace" | |
9566 | ;; | |
9567 | :d30v-*) | |
9568 | ospace_frag="config/mt-d30v" | |
9569 | ;; | |
d9063947 | 9570 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9571 | ospace_frag="config/mt-ospace" |
9572 | ;; | |
9573 | no:* | :*) | |
9574 | ;; | |
9575 | *) | |
9576 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9577 | ;; | |
9578 | esac | |
9579 | ||
671aa708 NN |
9580 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9581 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9582 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9583 | build_tooldir=${tooldir} |
9584 | ||
671aa708 NN |
9585 | # Create a .gdbinit file which runs the one in srcdir |
9586 | # and tells GDB to look there for source files. | |
9587 | ||
9588 | if test -r ${srcdir}/.gdbinit ; then | |
9589 | case ${srcdir} in | |
9590 | .) ;; | |
9591 | *) cat > ./.gdbinit <<EOF | |
9592 | # ${NO_EDIT} | |
9593 | dir ${srcdir} | |
9594 | dir . | |
9595 | source ${srcdir}/.gdbinit | |
9596 | EOF | |
9597 | ;; | |
9598 | esac | |
9599 | fi | |
9600 | ||
671aa708 NN |
9601 | # Make sure that the compiler is able to generate an executable. If it |
9602 | # can't, we are probably in trouble. We don't care whether we can run the | |
9603 | # executable--we might be using a cross compiler--we only care whether it | |
9604 | # can be created. At this point the main configure script has set CC. | |
9605 | we_are_ok=no | |
9606 | echo "int main () { return 0; }" > conftest.c | |
9607 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9608 | if test $? = 0 ; then | |
9609 | if test -s conftest || test -s conftest.exe ; then | |
9610 | we_are_ok=yes | |
9611 | fi | |
1c710c3c | 9612 | fi |
671aa708 NN |
9613 | case $we_are_ok in |
9614 | no) | |
9615 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9616 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9617 | rm -f conftest* | |
9618 | exit 1 | |
9619 | ;; | |
9620 | esac | |
9621 | rm -f conftest* | |
9622 | ||
d89f0ad6 | 9623 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9624 | case "${host}" in |
9625 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9626 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9627 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9628 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9629 | esac | |
9630 | ||
d89f0ad6 AL |
9631 | # On systems where the dynamic library environment variable is PATH, |
9632 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9633 | # built executables to PATH. | |
9634 | if test "$RPATH_ENVVAR" = PATH; then | |
9635 | GCC_SHLIB_SUBDIR=/shlib | |
9636 | else | |
9637 | GCC_SHLIB_SUBDIR= | |
9638 | fi | |
9639 | ||
beeda1d9 JJ |
9640 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9641 | case $enable_bootstrap in | |
9642 | yes) | |
9643 | bootstrap_suffix=bootstrap | |
9644 | BUILD_CONFIG=bootstrap-debug | |
9645 | ;; | |
9646 | no) | |
9647 | bootstrap_suffix=no-bootstrap | |
9648 | BUILD_CONFIG= | |
9649 | ;; | |
9650 | esac | |
9651 | ||
9652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9653 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9654 | ||
9655 | ||
9656 | # Check whether --with-build-config was given. | |
9657 | if test "${with_build_config+set}" = set; then : | |
9658 | withval=$with_build_config; case $with_build_config in | |
9659 | yes) with_build_config= ;; | |
9660 | no) with_build_config= BUILD_CONFIG= ;; | |
9661 | esac | |
9662 | fi | |
9663 | ||
9664 | ||
9665 | if test "x${with_build_config}" != x; then | |
9666 | BUILD_CONFIG=$with_build_config | |
9667 | else | |
9668 | case $BUILD_CONFIG in | |
9669 | bootstrap-debug) | |
9670 | if echo "int f (void) { return 0; }" > conftest.c && | |
9671 | ${CC} -c conftest.c && | |
9672 | mv conftest.o conftest.o.g0 && | |
9673 | ${CC} -c -g conftest.c && | |
9674 | mv conftest.o conftest.o.g && | |
9675 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9676 | : | |
9677 | else | |
9678 | BUILD_CONFIG= | |
9679 | fi | |
9680 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9681 | ;; | |
9682 | esac | |
9683 | fi | |
9684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9685 | $as_echo "$BUILD_CONFIG" >&6; } | |
9686 | ||
9687 | ||
9688 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9690 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9691 | # Check whether --enable-vtable-verify was given. | |
9692 | if test "${enable_vtable_verify+set}" = set; then : | |
9693 | enableval=$enable_vtable_verify; case "$enableval" in | |
9694 | yes) enable_vtable_verify=yes ;; | |
9695 | no) enable_vtable_verify=no ;; | |
9696 | *) enable_vtable_verify=no;; | |
9697 | esac | |
9698 | else | |
9699 | enable_vtable_verify=no | |
9700 | fi | |
9701 | ||
9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9703 | $as_echo "$enable_vtable_verify" >&6; } | |
9704 | ||
671aa708 NN |
9705 | # Record target_configdirs and the configure arguments for target and |
9706 | # build configuration in Makefile. | |
9707 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9708 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9709 | bootstrap_fixincludes=no |
671aa708 | 9710 | |
ad1e5170 JR |
9711 | # If we are building libgomp, bootstrap it. |
9712 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9713 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9714 | fi | |
9715 | ||
beeda1d9 JJ |
9716 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9717 | # or bootstrap-ubsan, bootstrap it. | |
9718 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9719 | case "$BUILD_CONFIG" in | |
170e618e | 9720 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9721 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9722 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9723 | ;; |
9724 | esac | |
ac8701fe L |
9725 | fi |
9726 | ||
beeda1d9 JJ |
9727 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9728 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9729 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9730 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9731 | fi | |
9732 | ||
5fee5ec3 IB |
9733 | # If we are building libatomic and the list of enabled languages includes the |
9734 | # D frontend, bootstrap it. | |
9735 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9736 | case ,${enable_languages}, in | |
9737 | *,d,*) | |
9738 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9739 | ;; | |
9740 | esac | |
9741 | fi | |
9742 | ||
671aa708 NN |
9743 | # Determine whether gdb needs tk/tcl or not. |
9744 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9745 | # and in that case we want gdb to be built without tk. Ugh! | |
9746 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9747 | # so we should be able to put the 'maybe's in unconditionally and | |
9748 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9749 | # 100% sure that that's safe though. | |
e914a571 | 9750 | |
b4f96efe | 9751 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9752 | case "$enable_gdbtk" in |
9753 | no) | |
9754 | GDB_TK="" ;; | |
e914a571 AC |
9755 | yes) |
9756 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9757 | *) |
e914a571 AC |
9758 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9759 | # distro. Eventually someone will fix this and move Insight, nee | |
9760 | # gdbtk to a separate directory. | |
9761 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9762 | GDB_TK="${gdb_tk}" | |
9763 | else | |
9764 | GDB_TK="" | |
9765 | fi | |
9766 | ;; | |
671aa708 | 9767 | esac |
ef9db8d5 DJ |
9768 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9769 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9770 | |
f9d09df0 TT |
9771 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9772 | # else does, only include them if one of these is built. The Makefile | |
9773 | # provides the ordering, so it's enough here to add to the list. | |
9774 | case " ${configdirs} " in | |
9775 | *\ gdb\ *) | |
9776 | configdirs="${configdirs} gnulib gdbsupport" | |
9777 | ;; | |
9778 | *\ gdbserver\ *) | |
9779 | configdirs="${configdirs} gnulib gdbsupport" | |
9780 | ;; | |
f14c9bd4 MF |
9781 | *\ sim\ *) |
9782 | configdirs="${configdirs} gnulib" | |
9783 | ;; | |
f9d09df0 | 9784 | esac |
98e5be21 | 9785 | |
60975492 | 9786 | # Strip out unwanted targets. |
8b87bb96 NN |
9787 | |
9788 | # While at that, we remove Makefiles if we were started for recursive | |
9789 | # configuration, so that the top-level Makefile reconfigures them, | |
9790 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9791 | |
3e54529c RW |
9792 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9793 | # but now we're fixing up the Makefile ourselves with the additional | |
9794 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9795 | # extrasub-{build,host,target} not because there is any reason to split | |
9796 | # the substitutions up that way, but only to remain below the limit of | |
9797 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9798 | |
9799 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9800 | # configure will not warn you at all. | |
8b87bb96 | 9801 | |
79cd2b23 RW |
9802 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9803 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9804 | yes:yes:*\ gold\ *:*) | |
22e05272 | 9805 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
9806 | ;; |
9807 | esac | |
9808 | ||
3e54529c | 9809 | extrasub_build= |
23f6b2f9 | 9810 | for module in ${build_configdirs} ; do |
5607edfd PB |
9811 | if test -z "${no_recursion}" \ |
9812 | && test -f ${build_subdir}/${module}/Makefile; then | |
9813 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9814 | rm -f ${build_subdir}/${module}/Makefile | |
9815 | fi | |
3e54529c | 9816 | extrasub_build="$extrasub_build |
5607edfd PB |
9817 | /^@if build-$module\$/d |
9818 | /^@endif build-$module\$/d | |
da34ca3f | 9819 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 9820 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
9821 | /^@endif build-$module-$bootstrap_suffix\$/d |
9822 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 9823 | done |
3e54529c | 9824 | extrasub_host= |
5607edfd | 9825 | for module in ${configdirs} ; do |
a6fbc1e2 | 9826 | if test -z "${no_recursion}"; then |
f063a9ed | 9827 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
9828 | if test -f ${file}; then |
9829 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9830 | rm -f ${file} | |
9831 | fi | |
9832 | done | |
5607edfd | 9833 | fi |
9e1c8fc1 JJ |
9834 | case ${module},${bootstrap_fixincludes} in |
9835 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9836 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9837 | esac | |
3e54529c | 9838 | extrasub_host="$extrasub_host |
5607edfd PB |
9839 | /^@if $module\$/d |
9840 | /^@endif $module\$/d | |
da34ca3f | 9841 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 9842 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
9843 | /^@endif $module-$host_bootstrap_suffix\$/d |
9844 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 9845 | done |
3e54529c | 9846 | extrasub_target= |
5607edfd PB |
9847 | for module in ${target_configdirs} ; do |
9848 | if test -z "${no_recursion}" \ | |
9849 | && test -f ${target_subdir}/${module}/Makefile; then | |
9850 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9851 | rm -f ${target_subdir}/${module}/Makefile | |
9852 | fi | |
00020c16 ILT |
9853 | |
9854 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9855 | case $bootstrap_target_libs in | |
9856 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9857 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9858 | esac | |
9859 | ||
3e54529c | 9860 | extrasub_target="$extrasub_target |
5607edfd PB |
9861 | /^@if target-$module\$/d |
9862 | /^@endif target-$module\$/d | |
da34ca3f | 9863 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 9864 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
9865 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9866 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
9867 | done |
9868 | ||
3e54529c RW |
9869 | # Do the final fixup along with target modules. |
9870 | extrasub_target="$extrasub_target | |
da34ca3f AO |
9871 | /^@if /,/^@endif /d |
9872 | /^@unless /d | |
9873 | /^@endunless /d" | |
671aa708 | 9874 | |
4a5e71f2 L |
9875 | if test "$enable_pgo_build" != "no"; then |
9876 | extrasub_build="$extrasub_build | |
9877 | /^@if pgo-build\$/d | |
9878 | /^@endif pgo-build\$/d" | |
9879 | fi | |
9880 | ||
671aa708 NN |
9881 | # Create the serialization dependencies. This uses a temporary file. |
9882 | ||
5213506e RW |
9883 | # Check whether --enable-serial-configure was given. |
9884 | if test "${enable_serial_configure+set}" = set; then : | |
9885 | enableval=$enable_serial_configure; | |
9886 | fi | |
ade82b16 AO |
9887 | |
9888 | ||
bf1d3e81 NN |
9889 | case ${enable_serial_configure} in |
9890 | yes) | |
9891 | enable_serial_build_configure=yes | |
9892 | enable_serial_host_configure=yes | |
9893 | enable_serial_target_configure=yes | |
9894 | ;; | |
9895 | esac | |
9896 | ||
671aa708 NN |
9897 | # These force 'configure's to be done one at a time, to avoid problems |
9898 | # with contention over a shared config.cache. | |
9899 | rm -f serdep.tmp | |
ade82b16 | 9900 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 9901 | olditem= |
bf1d3e81 | 9902 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
9903 | for item in ${build_configdirs} ; do |
9904 | case ${olditem} in | |
9905 | "") ;; | |
ade82b16 | 9906 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9907 | esac |
9908 | olditem=${item} | |
9909 | done | |
9910 | olditem= | |
bf1d3e81 | 9911 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
9912 | for item in ${configdirs} ; do |
9913 | case ${olditem} in | |
9914 | "") ;; | |
ade82b16 | 9915 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9916 | esac |
9917 | olditem=${item} | |
9918 | done | |
9919 | olditem= | |
bf1d3e81 | 9920 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
9921 | for item in ${target_configdirs} ; do |
9922 | case ${olditem} in | |
9923 | "") ;; | |
ade82b16 | 9924 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9925 | esac |
9926 | olditem=${item} | |
9927 | done | |
9928 | serialization_dependencies=serdep.tmp | |
9929 | ||
9930 | ||
ade82b16 | 9931 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 9932 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
9933 | # might not want to pass down to subconfigures. The exception being |
9934 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
9935 | # files altogether, and which should be passed on to subconfigures. | |
9936 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
9937 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 9938 | baseargs= |
29a63921 | 9939 | tbaseargs= |
1c710c3c DJ |
9940 | keep_next=no |
9941 | skip_next=no | |
9942 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
9943 | for ac_arg |
9944 | do | |
1c710c3c DJ |
9945 | if test X"$skip_next" = X"yes"; then |
9946 | skip_next=no | |
9947 | continue | |
9948 | fi | |
9949 | if test X"$keep_next" = X"yes"; then | |
9950 | case $ac_arg in | |
9951 | *\'*) | |
9952 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9953 | esac | |
9954 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9955 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
9956 | keep_next=no |
9957 | continue | |
9958 | fi | |
9959 | ||
9960 | # Handle separated arguments. Based on the logic generated by | |
9961 | # autoconf 2.59. | |
9962 | case $ac_arg in | |
9963 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
9964 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
9965 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
9966 | | -with-* | --with-* | -without-* | --without-* | --x) | |
9967 | separate_arg=no | |
9968 | ;; | |
9969 | -*) | |
9970 | separate_arg=yes | |
9971 | ;; | |
9972 | *) | |
9973 | separate_arg=no | |
9974 | ;; | |
9975 | esac | |
9976 | ||
29a63921 AO |
9977 | skip_targ=no |
9978 | case $ac_arg in | |
9979 | ||
9980 | --with-* | --without-*) | |
9981 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
9982 | ||
9983 | case $libopt in | |
9984 | *[-_]include) | |
9985 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
9986 | ;; | |
9987 | *[-_]lib) | |
9988 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
9989 | ;; | |
9990 | *) | |
9991 | lib=$libopt | |
9992 | ;; | |
9993 | esac | |
9994 | ||
9995 | ||
9996 | case $lib in | |
4a9bb2aa | 9997 | mpc | mpfr | gmp | isl) |
29a63921 AO |
9998 | # If we're processing --with-$lib, --with-$lib-include or |
9999 | # --with-$lib-lib, for one of the libs above, and target is | |
10000 | # different from host, don't pass the current argument to any | |
10001 | # target library's configure. | |
10002 | if test x$is_cross_compiler = xyes; then | |
10003 | skip_targ=yes | |
10004 | fi | |
10005 | ;; | |
10006 | esac | |
10007 | ;; | |
10008 | esac | |
10009 | ||
1c710c3c | 10010 | case "$ac_arg" in |
f1a036e4 NC |
10011 | --cache-file=/dev/null | \ |
10012 | -cache-file=/dev/null ) | |
10013 | # Handled here to avoid the test to skip args below. | |
10014 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 10015 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
10016 | # Assert: $separate_arg should always be no. |
10017 | keep_next=$separate_arg | |
10018 | ;; | |
1c710c3c DJ |
10019 | --no*) |
10020 | continue | |
10021 | ;; | |
10022 | --c* | \ | |
10023 | --sr* | \ | |
10024 | --ho* | \ | |
10025 | --bu* | \ | |
10026 | --t* | \ | |
10027 | --program-* | \ | |
10028 | -cache_file* | \ | |
10029 | -srcdir* | \ | |
10030 | -host* | \ | |
10031 | -build* | \ | |
10032 | -target* | \ | |
10033 | -program-prefix* | \ | |
10034 | -program-suffix* | \ | |
10035 | -program-transform-name* ) | |
10036 | skip_next=$separate_arg | |
10037 | continue | |
10038 | ;; | |
10039 | -*) | |
10040 | # An option. Add it. | |
10041 | case $ac_arg in | |
10042 | *\'*) | |
10043 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10044 | esac | |
10045 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
10046 | if test X"$skip_targ" = Xno; then |
10047 | tbaseargs="$tbaseargs '$ac_arg'" | |
10048 | fi | |
1c710c3c DJ |
10049 | keep_next=$separate_arg |
10050 | ;; | |
10051 | *) | |
10052 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10053 | # pass it down; let the Makefile handle this. | |
10054 | continue | |
10055 | ;; | |
10056 | esac | |
10057 | done | |
10058 | # Remove the initial space we just introduced and, as these will be | |
10059 | # expanded by make, quote '$'. | |
10060 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 10061 | |
43bb47c2 DJ |
10062 | # Add in --program-transform-name, after --program-prefix and |
10063 | # --program-suffix have been applied to it. Autoconf has already | |
10064 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10065 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 10066 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
10067 | # Also, because we want to override the logic in subdir configure scripts to |
10068 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10069 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10070 | ${program_transform_name} | |
10071 | EOF_SED | |
10072 | gcc_transform_name=`cat conftestsed.out` | |
10073 | rm -f conftestsed.out | |
10074 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 10075 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
10076 | if test "$silent" = yes; then |
10077 | baseargs="$baseargs --silent" | |
29a63921 | 10078 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 10079 | fi |
0115d4a3 | 10080 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 10081 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 10082 | |
ffedf511 RW |
10083 | # Record and document user additions to sub configure arguments. |
10084 | ||
10085 | ||
10086 | ||
10087 | ||
671aa708 NN |
10088 | # For the build-side libraries, we just need to pretend we're native, |
10089 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
10090 | # desired. We can't even use the same cache file for all build-side |
10091 | # libraries, as they're compiled differently; some with C, some with | |
10092 | # C++ or with different feature-enabling options. | |
10093 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
10094 | |
10095 | # For host modules, accept cache file option, or specification as blank. | |
10096 | case "${cache_file}" in | |
10097 | "") # empty | |
10098 | cache_file_option="" ;; | |
10099 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10100 | cache_file_option="--cache-file=${cache_file}" ;; | |
10101 | *) # relative path | |
10102 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10103 | esac | |
10104 | ||
09438bde NN |
10105 | # Host dirs don't like to share a cache file either, horribly enough. |
10106 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 10107 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 10108 | |
29a63921 | 10109 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
10110 | |
10111 | # Passing a --with-cross-host argument lets the target libraries know | |
10112 | # whether they are being built with a cross-compiler or being built | |
10113 | # native. However, it would be better to use other mechanisms to make the | |
10114 | # sorts of decisions they want to make on this basis. Please consider | |
10115 | # this option to be deprecated. FIXME. | |
10116 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 10117 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
10118 | fi |
10119 | ||
79e0604d FXC |
10120 | # Special user-friendly check for native x86_64-linux build, if |
10121 | # multilib is not explicitly enabled. | |
10122 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10123 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 10124 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
10125 | dev64=no |
10126 | echo "int main () { return 0; }" > conftest.c | |
10127 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10128 | if test $? = 0 ; then | |
10129 | if test -s conftest || test -s conftest.exe ; then | |
10130 | dev64=yes | |
10131 | fi | |
10132 | fi | |
10133 | rm -f conftest* | |
10134 | if test x${dev64} != xyes ; then | |
22e05272 | 10135 | 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 |
10136 | fi |
10137 | ;; | |
10138 | esac | |
10139 | ||
dc683a3f RW |
10140 | # Default to --enable-multilib. |
10141 | if test x${enable_multilib} = x ; then | |
671aa708 | 10142 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 10143 | fi |
671aa708 NN |
10144 | |
10145 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10146 | # changed from the earlier setting of with_newlib. | |
10147 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10148 | target_configargs="--with-newlib ${target_configargs}" | |
10149 | fi | |
10150 | ||
6b9eb62c NN |
10151 | # Different target subdirs use different values of certain variables |
10152 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10153 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10154 | # it doesn't automatically accept command-line overrides of them. | |
10155 | # This means it's not safe for target subdirs to share a cache file, | |
10156 | # which is disgusting, but there you have it. Hopefully this can be | |
10157 | # fixed in future. It's still worthwhile to use a cache file for each | |
10158 | # directory. I think. | |
10159 | ||
bebcd931 MS |
10160 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10161 | # We need to pass --target, as newer autoconf's requires consistency | |
10162 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 10163 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 10164 | |
671aa708 NN |
10165 | FLAGS_FOR_TARGET= |
10166 | case " $target_configdirs " in | |
10167 | *" newlib "*) | |
10168 | case " $target_configargs " in | |
10169 | *" --with-newlib "*) | |
10170 | case "$target" in | |
5d571eaa | 10171 | *-cygwin*) |
443e6238 | 10172 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 10173 | ;; |
671aa708 NN |
10174 | esac |
10175 | ||
10176 | # If we're not building GCC, don't discard standard headers. | |
10177 | if test -d ${srcdir}/gcc; then | |
10178 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10179 | ||
10180 | if test "${build}" != "${host}"; then | |
10181 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10182 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10183 | # to it. This is right: we don't want to search that directory | |
10184 | # for binaries, but we want the header files in there, so add | |
10185 | # them explicitly. | |
0463992b | 10186 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
10187 | |
10188 | # Someone might think of using the pre-installed headers on | |
10189 | # Canadian crosses, in case the installed compiler is not fully | |
10190 | # compatible with the compiler being built. In this case, it | |
10191 | # would be better to flag an error than risking having | |
10192 | # incompatible object files being constructed. We can't | |
10193 | # guarantee that an error will be flagged, but let's hope the | |
10194 | # compiler will do it, when presented with incompatible header | |
10195 | # files. | |
10196 | fi | |
10197 | fi | |
10198 | ||
10199 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 10200 | i[3456789]86-*-linux*-no) |
671aa708 NN |
10201 | # Here host == target, so we don't need to build gcc, |
10202 | # so we don't want to discard standard headers. | |
10203 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10204 | ;; | |
10205 | *) | |
10206 | # If we're building newlib, use its generic headers last, but search | |
10207 | # for any libc-related directories first (so make it the last -B | |
10208 | # switch). | |
10209 | 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 |
10210 | |
10211 | # If we're building libgloss, find the startup file, simulator library | |
10212 | # and linker script. | |
10213 | case " $target_configdirs " in | |
10214 | *" libgloss "*) | |
10215 | # Look for startup file, simulator library and maybe linker script. | |
10216 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10217 | # Look for libnosys.a in case the target needs it. | |
10218 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10219 | # Most targets have the linker script in the source directory. | |
10220 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10221 | ;; | |
10222 | esac | |
671aa708 NN |
10223 | ;; |
10224 | esac | |
10225 | ;; | |
10226 | esac | |
10227 | ;; | |
10228 | esac | |
5d571eaa | 10229 | |
b91f0a41 | 10230 | case "$target" in |
5d571eaa OS |
10231 | x86_64-*mingw* | *-w64-mingw*) |
10232 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10233 | # however, use a symlink named 'mingw' in ${prefix} . | |
10234 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10235 | ;; | |
10236 | *-mingw*) | |
10237 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10238 | 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' | |
10239 | ;; | |
b91f0a41 | 10240 | esac |
671aa708 | 10241 | |
6691a79e ME |
10242 | # Allow the user to override the flags for |
10243 | # our build compiler if desired. | |
f019adc1 MF |
10244 | if test x"${build}" = x"${host}" ; then |
10245 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
84401ce5 | 10246 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
f019adc1 MF |
10247 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10248 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10249 | fi | |
6691a79e | 10250 | |
671aa708 NN |
10251 | # On Canadian crosses, we'll be searching the right directories for |
10252 | # the previously-installed cross compiler, so don't bother to add | |
10253 | # flags for directories within the install tree of the compiler | |
10254 | # being built; programs in there won't even run. | |
10255 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10256 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 10257 | 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 |
10258 | fi |
10259 | ||
10260 | if test "x${use_gnu_ld}" = x && | |
10261 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10262 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 10263 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
10264 | fi |
10265 | ||
e88a2c09 DD |
10266 | # Search for other target-specific linker scripts and such. |
10267 | case "${target}" in | |
3e19841a PB |
10268 | mep*) |
10269 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10270 | ;; | |
e88a2c09 DD |
10271 | esac |
10272 | ||
671aa708 | 10273 | # Makefile fragments. |
7b61653a PE |
10274 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10275 | do | |
10276 | eval fragval=\$$frag | |
10277 | if test $fragval != /dev/null; then | |
10278 | eval $frag=${srcdir}/$fragval | |
10279 | fi | |
10280 | done | |
671aa708 NN |
10281 | |
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | # Miscellanea: directories, flags, etc. | |
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
d89f0ad6 | 10294 | |
23f6b2f9 | 10295 | # Build module lists & subconfigure args. |
671aa708 NN |
10296 | |
10297 | ||
10298 | ||
2abefe3d PB |
10299 | # Host module lists & subconfigure args. |
10300 | ||
10301 | ||
10302 | ||
aae29963 | 10303 | |
2abefe3d PB |
10304 | # Target module lists & subconfigure args. |
10305 | ||
10306 | ||
10307 | ||
10308 | # Build tools. | |
10309 | ||
10310 | ||
10311 | ||
0999159b PB |
10312 | |
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
10322 | ||
10323 | ||
10324 | ||
b4c522fa | 10325 | |
3b5e8ee4 | 10326 | |
a1d2b162 IS |
10327 | |
10328 | ||
2abefe3d PB |
10329 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10330 | # on the build machine. These are used if the Makefile can't locate these | |
10331 | # programs in objdir. | |
10332 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10333 | ||
10334 | for ac_prog in 'bison -y' byacc yacc | |
10335 | do | |
1c710c3c | 10336 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10337 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10339 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10340 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 10341 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10342 | else |
10343 | if test -n "$YACC"; then | |
10344 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10345 | else | |
1c710c3c DJ |
10346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10347 | for as_dir in $PATH | |
10348 | do | |
10349 | IFS=$as_save_IFS | |
10350 | test -z "$as_dir" && as_dir=. | |
5213506e | 10351 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10352 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10353 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 10354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10355 | break 2 |
10356 | fi | |
10357 | done | |
5213506e RW |
10358 | done |
10359 | IFS=$as_save_IFS | |
1c710c3c | 10360 | |
2abefe3d PB |
10361 | fi |
10362 | fi | |
1c710c3c | 10363 | YACC=$ac_cv_prog_YACC |
2abefe3d | 10364 | if test -n "$YACC"; then |
5213506e RW |
10365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10366 | $as_echo "$YACC" >&6; } | |
2abefe3d | 10367 | else |
5213506e RW |
10368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10369 | $as_echo "no" >&6; } | |
2abefe3d PB |
10370 | fi |
10371 | ||
5213506e | 10372 | |
1c710c3c | 10373 | test -n "$YACC" && break |
2abefe3d PB |
10374 | done |
10375 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10376 | ||
10377 | case " $build_configdirs " in | |
10378 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
10379 | esac |
10380 | ||
10381 | for ac_prog in bison | |
10382 | do | |
1c710c3c | 10383 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10384 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10386 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10387 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 10388 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10389 | else |
10390 | if test -n "$BISON"; then | |
10391 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10392 | else | |
1c710c3c DJ |
10393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10394 | for as_dir in $PATH | |
10395 | do | |
10396 | IFS=$as_save_IFS | |
10397 | test -z "$as_dir" && as_dir=. | |
5213506e | 10398 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10399 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10400 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 10401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10402 | break 2 |
10403 | fi | |
10404 | done | |
5213506e RW |
10405 | done |
10406 | IFS=$as_save_IFS | |
1c710c3c | 10407 | |
2abefe3d PB |
10408 | fi |
10409 | fi | |
1c710c3c | 10410 | BISON=$ac_cv_prog_BISON |
2abefe3d | 10411 | if test -n "$BISON"; then |
5213506e RW |
10412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10413 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10414 | else |
5213506e RW |
10415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10416 | $as_echo "no" >&6; } | |
2abefe3d PB |
10417 | fi |
10418 | ||
5213506e | 10419 | |
1c710c3c | 10420 | test -n "$BISON" && break |
2abefe3d PB |
10421 | done |
10422 | test -n "$BISON" || BISON="$MISSING bison" | |
10423 | ||
10424 | case " $build_configdirs " in | |
10425 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10426 | esac | |
10427 | ||
10428 | for ac_prog in gm4 gnum4 m4 | |
10429 | do | |
1c710c3c | 10430 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10431 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10433 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10434 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10435 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10436 | else |
10437 | if test -n "$M4"; then | |
10438 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10439 | else | |
1c710c3c DJ |
10440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10441 | for as_dir in $PATH | |
10442 | do | |
10443 | IFS=$as_save_IFS | |
10444 | test -z "$as_dir" && as_dir=. | |
5213506e | 10445 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10447 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10449 | break 2 |
10450 | fi | |
10451 | done | |
5213506e RW |
10452 | done |
10453 | IFS=$as_save_IFS | |
1c710c3c | 10454 | |
2abefe3d PB |
10455 | fi |
10456 | fi | |
1c710c3c | 10457 | M4=$ac_cv_prog_M4 |
2abefe3d | 10458 | if test -n "$M4"; then |
5213506e RW |
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10460 | $as_echo "$M4" >&6; } | |
2abefe3d | 10461 | else |
5213506e RW |
10462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10463 | $as_echo "no" >&6; } | |
2abefe3d PB |
10464 | fi |
10465 | ||
5213506e | 10466 | |
1c710c3c | 10467 | test -n "$M4" && break |
2abefe3d PB |
10468 | done |
10469 | test -n "$M4" || M4="$MISSING m4" | |
10470 | ||
10471 | case " $build_configdirs " in | |
10472 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10473 | esac | |
10474 | ||
10475 | for ac_prog in flex lex | |
10476 | do | |
1c710c3c | 10477 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10478 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10480 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10481 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10482 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10483 | else |
10484 | if test -n "$LEX"; then | |
10485 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10486 | else | |
1c710c3c DJ |
10487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10488 | for as_dir in $PATH | |
10489 | do | |
10490 | IFS=$as_save_IFS | |
10491 | test -z "$as_dir" && as_dir=. | |
5213506e | 10492 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10494 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10496 | break 2 |
10497 | fi | |
10498 | done | |
5213506e RW |
10499 | done |
10500 | IFS=$as_save_IFS | |
1c710c3c | 10501 | |
2abefe3d PB |
10502 | fi |
10503 | fi | |
1c710c3c | 10504 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10505 | if test -n "$LEX"; then |
5213506e RW |
10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10507 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10508 | else |
5213506e RW |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10510 | $as_echo "no" >&6; } | |
2abefe3d PB |
10511 | fi |
10512 | ||
5213506e | 10513 | |
1c710c3c | 10514 | test -n "$LEX" && break |
2abefe3d PB |
10515 | done |
10516 | test -n "$LEX" || LEX="$MISSING flex" | |
10517 | ||
10518 | case " $build_configdirs " in | |
10519 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10520 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10521 | esac | |
10522 | ||
10523 | for ac_prog in flex | |
10524 | do | |
1c710c3c | 10525 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10526 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10528 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10529 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10530 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10531 | else |
10532 | if test -n "$FLEX"; then | |
10533 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10534 | else | |
1c710c3c DJ |
10535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10536 | for as_dir in $PATH | |
10537 | do | |
10538 | IFS=$as_save_IFS | |
10539 | test -z "$as_dir" && as_dir=. | |
5213506e | 10540 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10542 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10544 | break 2 |
10545 | fi | |
10546 | done | |
5213506e RW |
10547 | done |
10548 | IFS=$as_save_IFS | |
1c710c3c | 10549 | |
2abefe3d PB |
10550 | fi |
10551 | fi | |
1c710c3c | 10552 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10553 | if test -n "$FLEX"; then |
5213506e RW |
10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10555 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10556 | else |
5213506e RW |
10557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10558 | $as_echo "no" >&6; } | |
2abefe3d PB |
10559 | fi |
10560 | ||
5213506e | 10561 | |
1c710c3c | 10562 | test -n "$FLEX" && break |
2abefe3d PB |
10563 | done |
10564 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10565 | ||
10566 | case " $build_configdirs " in | |
10567 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10568 | esac | |
10569 | ||
10570 | for ac_prog in makeinfo | |
10571 | do | |
1c710c3c | 10572 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10573 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10575 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10576 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10577 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10578 | else |
10579 | if test -n "$MAKEINFO"; then | |
10580 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10581 | else | |
1c710c3c DJ |
10582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10583 | for as_dir in $PATH | |
10584 | do | |
10585 | IFS=$as_save_IFS | |
10586 | test -z "$as_dir" && as_dir=. | |
5213506e | 10587 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10589 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10591 | break 2 |
10592 | fi | |
10593 | done | |
5213506e RW |
10594 | done |
10595 | IFS=$as_save_IFS | |
1c710c3c | 10596 | |
2abefe3d PB |
10597 | fi |
10598 | fi | |
1c710c3c | 10599 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10600 | if test -n "$MAKEINFO"; then |
5213506e RW |
10601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10602 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10603 | else |
5213506e RW |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10605 | $as_echo "no" >&6; } | |
2abefe3d PB |
10606 | fi |
10607 | ||
5213506e | 10608 | |
1c710c3c | 10609 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10610 | done |
10611 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10612 | ||
10613 | case " $build_configdirs " in | |
10614 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10615 | *) | |
10616 | ||
d18ff35a | 10617 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10618 | # higher, else we use the "missing" dummy. |
10619 | if ${MAKEINFO} --version \ | |
d18ff35a | 10620 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10621 | : |
10622 | else | |
10623 | MAKEINFO="$MISSING makeinfo" | |
10624 | fi | |
10625 | ;; | |
10626 | ||
10627 | esac | |
671aa708 | 10628 | |
2abefe3d | 10629 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10630 | |
2abefe3d PB |
10631 | for ac_prog in expect |
10632 | do | |
1c710c3c | 10633 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10634 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10636 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10637 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10638 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10639 | else |
10640 | if test -n "$EXPECT"; then | |
10641 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10642 | else | |
1c710c3c DJ |
10643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10644 | for as_dir in $PATH | |
10645 | do | |
10646 | IFS=$as_save_IFS | |
10647 | test -z "$as_dir" && as_dir=. | |
5213506e | 10648 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10650 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10652 | break 2 |
10653 | fi | |
10654 | done | |
5213506e RW |
10655 | done |
10656 | IFS=$as_save_IFS | |
1c710c3c | 10657 | |
2abefe3d PB |
10658 | fi |
10659 | fi | |
1c710c3c | 10660 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10661 | if test -n "$EXPECT"; then |
5213506e RW |
10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10663 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10664 | else |
5213506e RW |
10665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10666 | $as_echo "no" >&6; } | |
2abefe3d | 10667 | fi |
671aa708 | 10668 | |
5213506e | 10669 | |
1c710c3c | 10670 | test -n "$EXPECT" && break |
2abefe3d PB |
10671 | done |
10672 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10673 | |
2abefe3d PB |
10674 | case " $configdirs " in |
10675 | *" expect "*) | |
10676 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10677 | ;; | |
10678 | esac | |
671aa708 | 10679 | |
2abefe3d PB |
10680 | for ac_prog in runtest |
10681 | do | |
1c710c3c | 10682 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10683 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10685 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10686 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10687 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10688 | else |
10689 | if test -n "$RUNTEST"; then | |
10690 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10691 | else |
1c710c3c DJ |
10692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10693 | for as_dir in $PATH | |
10694 | do | |
10695 | IFS=$as_save_IFS | |
10696 | test -z "$as_dir" && as_dir=. | |
5213506e | 10697 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10699 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10701 | break 2 |
10702 | fi | |
10703 | done | |
5213506e RW |
10704 | done |
10705 | IFS=$as_save_IFS | |
1c710c3c | 10706 | |
2abefe3d PB |
10707 | fi |
10708 | fi | |
1c710c3c | 10709 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10710 | if test -n "$RUNTEST"; then |
5213506e RW |
10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10712 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10713 | else |
5213506e RW |
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10715 | $as_echo "no" >&6; } | |
2abefe3d | 10716 | fi |
671aa708 | 10717 | |
5213506e | 10718 | |
1c710c3c | 10719 | test -n "$RUNTEST" && break |
2abefe3d PB |
10720 | done |
10721 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10722 | |
2abefe3d PB |
10723 | case " $configdirs " in |
10724 | *" dejagnu "*) | |
c394e891 | 10725 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10726 | ;; |
10727 | esac | |
671aa708 NN |
10728 | |
10729 | ||
671aa708 | 10730 | # Host tools. |
ca9f4b81 AO |
10731 | ncn_tool_prefix= |
10732 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10733 | ncn_target_tool_prefix= | |
10734 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10735 | ||
278a7a38 AO |
10736 | |
10737 | ||
10738 | if test -n "$AR"; then | |
10739 | ac_cv_prog_AR=$AR | |
10740 | elif test -n "$ac_cv_prog_AR"; then | |
10741 | AR=$ac_cv_prog_AR | |
10742 | fi | |
10743 | ||
10744 | if test -n "$ac_cv_prog_AR"; then | |
10745 | for ncn_progname in ar; do | |
10746 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10747 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10749 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10750 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10751 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10752 | else |
10753 | if test -n "$AR"; then | |
10754 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10755 | else | |
10756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10757 | for as_dir in $PATH | |
10758 | do | |
10759 | IFS=$as_save_IFS | |
10760 | test -z "$as_dir" && as_dir=. | |
5213506e | 10761 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10763 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10765 | break 2 |
10766 | fi | |
10767 | done | |
5213506e RW |
10768 | done |
10769 | IFS=$as_save_IFS | |
278a7a38 AO |
10770 | |
10771 | fi | |
10772 | fi | |
10773 | AR=$ac_cv_prog_AR | |
10774 | if test -n "$AR"; then | |
5213506e RW |
10775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10776 | $as_echo "$AR" >&6; } | |
278a7a38 | 10777 | else |
5213506e RW |
10778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10779 | $as_echo "no" >&6; } | |
278a7a38 AO |
10780 | fi |
10781 | ||
5213506e | 10782 | |
278a7a38 AO |
10783 | done |
10784 | fi | |
10785 | ||
10786 | for ncn_progname in ar; do | |
2693c0b0 PB |
10787 | if test -n "$ncn_tool_prefix"; then |
10788 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10789 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10791 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10792 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10793 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10794 | else |
10795 | if test -n "$AR"; then | |
10796 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10797 | else | |
1c710c3c DJ |
10798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10799 | for as_dir in $PATH | |
10800 | do | |
10801 | IFS=$as_save_IFS | |
10802 | test -z "$as_dir" && as_dir=. | |
5213506e | 10803 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10805 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10807 | break 2 |
10808 | fi | |
10809 | done | |
5213506e RW |
10810 | done |
10811 | IFS=$as_save_IFS | |
1c710c3c | 10812 | |
ca9f4b81 AO |
10813 | fi |
10814 | fi | |
1c710c3c | 10815 | AR=$ac_cv_prog_AR |
ca9f4b81 | 10816 | if test -n "$AR"; then |
5213506e RW |
10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10818 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10819 | else |
5213506e RW |
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10821 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10822 | fi |
10823 | ||
5213506e | 10824 | |
2693c0b0 PB |
10825 | fi |
10826 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10828 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10830 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10831 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10832 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10833 | else |
2693c0b0 | 10834 | if test -n "$AR"; then |
af71363e AS |
10835 | ac_cv_prog_AR="$AR" # Let the user override the test. |
10836 | else | |
1c710c3c DJ |
10837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10838 | for as_dir in $PATH | |
10839 | do | |
10840 | IFS=$as_save_IFS | |
10841 | test -z "$as_dir" && as_dir=. | |
5213506e | 10842 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10844 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10846 | break 2 |
10847 | fi | |
10848 | done | |
5213506e RW |
10849 | done |
10850 | IFS=$as_save_IFS | |
1c710c3c | 10851 | |
ca9f4b81 AO |
10852 | fi |
10853 | fi | |
1c710c3c | 10854 | AR=$ac_cv_prog_AR |
2693c0b0 | 10855 | if test -n "$AR"; then |
5213506e RW |
10856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10857 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10858 | else |
5213506e RW |
10859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10860 | $as_echo "no" >&6; } | |
ca9f4b81 | 10861 | fi |
1c710c3c | 10862 | |
5213506e | 10863 | |
2693c0b0 PB |
10864 | fi |
10865 | test -n "$ac_cv_prog_AR" && break | |
10866 | done | |
10867 | ||
10868 | if test -z "$ac_cv_prog_AR" ; then | |
10869 | set dummy ar | |
10870 | if test $build = $host ; then | |
10871 | AR="$2" | |
ca9f4b81 | 10872 | else |
2693c0b0 | 10873 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 10874 | fi |
ca9f4b81 AO |
10875 | fi |
10876 | ||
278a7a38 AO |
10877 | |
10878 | ||
10879 | if test -n "$AS"; then | |
10880 | ac_cv_prog_AS=$AS | |
10881 | elif test -n "$ac_cv_prog_AS"; then | |
10882 | AS=$ac_cv_prog_AS | |
10883 | fi | |
10884 | ||
10885 | if test -n "$ac_cv_prog_AS"; then | |
10886 | for ncn_progname in as; do | |
10887 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10888 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10890 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10891 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10892 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10893 | else |
10894 | if test -n "$AS"; then | |
10895 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10896 | else | |
10897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10898 | for as_dir in $PATH | |
10899 | do | |
10900 | IFS=$as_save_IFS | |
10901 | test -z "$as_dir" && as_dir=. | |
5213506e | 10902 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10904 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10906 | break 2 |
10907 | fi | |
10908 | done | |
5213506e RW |
10909 | done |
10910 | IFS=$as_save_IFS | |
278a7a38 AO |
10911 | |
10912 | fi | |
10913 | fi | |
10914 | AS=$ac_cv_prog_AS | |
10915 | if test -n "$AS"; then | |
5213506e RW |
10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10917 | $as_echo "$AS" >&6; } | |
278a7a38 | 10918 | else |
5213506e RW |
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10920 | $as_echo "no" >&6; } | |
278a7a38 AO |
10921 | fi |
10922 | ||
5213506e | 10923 | |
278a7a38 AO |
10924 | done |
10925 | fi | |
10926 | ||
10927 | for ncn_progname in as; do | |
2693c0b0 PB |
10928 | if test -n "$ncn_tool_prefix"; then |
10929 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10930 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10932 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10933 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10934 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10935 | else |
10936 | if test -n "$AS"; then | |
10937 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 10938 | else |
1c710c3c DJ |
10939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10940 | for as_dir in $PATH | |
10941 | do | |
10942 | IFS=$as_save_IFS | |
10943 | test -z "$as_dir" && as_dir=. | |
5213506e | 10944 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10946 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10948 | break 2 |
10949 | fi | |
10950 | done | |
5213506e RW |
10951 | done |
10952 | IFS=$as_save_IFS | |
1c710c3c | 10953 | |
ca9f4b81 AO |
10954 | fi |
10955 | fi | |
1c710c3c | 10956 | AS=$ac_cv_prog_AS |
ca9f4b81 | 10957 | if test -n "$AS"; then |
5213506e RW |
10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10959 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10960 | else |
5213506e RW |
10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10962 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10963 | fi |
10964 | ||
5213506e | 10965 | |
2693c0b0 PB |
10966 | fi |
10967 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
10968 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10969 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10971 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10972 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10973 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10974 | else |
2693c0b0 PB |
10975 | if test -n "$AS"; then |
10976 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 10977 | else |
1c710c3c DJ |
10978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10979 | for as_dir in $PATH | |
10980 | do | |
10981 | IFS=$as_save_IFS | |
10982 | test -z "$as_dir" && as_dir=. | |
5213506e | 10983 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10985 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10987 | break 2 |
10988 | fi | |
10989 | done | |
5213506e RW |
10990 | done |
10991 | IFS=$as_save_IFS | |
1c710c3c | 10992 | |
ca9f4b81 AO |
10993 | fi |
10994 | fi | |
1c710c3c | 10995 | AS=$ac_cv_prog_AS |
2693c0b0 | 10996 | if test -n "$AS"; then |
5213506e RW |
10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10998 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10999 | else |
5213506e RW |
11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11001 | $as_echo "no" >&6; } | |
ca9f4b81 | 11002 | fi |
1c710c3c | 11003 | |
5213506e | 11004 | |
2693c0b0 PB |
11005 | fi |
11006 | test -n "$ac_cv_prog_AS" && break | |
11007 | done | |
11008 | ||
11009 | if test -z "$ac_cv_prog_AS" ; then | |
11010 | set dummy as | |
11011 | if test $build = $host ; then | |
11012 | AS="$2" | |
ca9f4b81 | 11013 | else |
2693c0b0 | 11014 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 11015 | fi |
ca9f4b81 AO |
11016 | fi |
11017 | ||
278a7a38 AO |
11018 | |
11019 | ||
11020 | if test -n "$DLLTOOL"; then | |
11021 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
11022 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
11023 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11024 | fi | |
11025 | ||
11026 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
11027 | for ncn_progname in dlltool; do | |
11028 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11029 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11031 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11032 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11033 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11034 | else |
11035 | if test -n "$DLLTOOL"; then | |
11036 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11037 | else | |
11038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11039 | for as_dir in $PATH | |
11040 | do | |
11041 | IFS=$as_save_IFS | |
11042 | test -z "$as_dir" && as_dir=. | |
5213506e | 11043 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11045 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11047 | break 2 |
11048 | fi | |
11049 | done | |
5213506e RW |
11050 | done |
11051 | IFS=$as_save_IFS | |
278a7a38 AO |
11052 | |
11053 | fi | |
11054 | fi | |
11055 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11056 | if test -n "$DLLTOOL"; then | |
5213506e RW |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11058 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 11059 | else |
5213506e RW |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11061 | $as_echo "no" >&6; } | |
278a7a38 AO |
11062 | fi |
11063 | ||
5213506e | 11064 | |
278a7a38 AO |
11065 | done |
11066 | fi | |
11067 | ||
11068 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
11069 | if test -n "$ncn_tool_prefix"; then |
11070 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11071 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11073 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11074 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11075 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11076 | else |
11077 | if test -n "$DLLTOOL"; then | |
11078 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11079 | else | |
1c710c3c DJ |
11080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11081 | for as_dir in $PATH | |
11082 | do | |
11083 | IFS=$as_save_IFS | |
11084 | test -z "$as_dir" && as_dir=. | |
5213506e | 11085 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11086 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11087 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11089 | break 2 |
11090 | fi | |
11091 | done | |
5213506e RW |
11092 | done |
11093 | IFS=$as_save_IFS | |
1c710c3c | 11094 | |
ca9f4b81 AO |
11095 | fi |
11096 | fi | |
1c710c3c | 11097 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 11098 | if test -n "$DLLTOOL"; then |
5213506e RW |
11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11100 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11101 | else |
5213506e RW |
11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11103 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11104 | fi |
11105 | ||
5213506e | 11106 | |
2693c0b0 PB |
11107 | fi |
11108 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11109 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11110 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11112 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11113 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11114 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11115 | else |
2693c0b0 PB |
11116 | if test -n "$DLLTOOL"; then |
11117 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 11118 | else |
1c710c3c DJ |
11119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11120 | for as_dir in $PATH | |
11121 | do | |
11122 | IFS=$as_save_IFS | |
11123 | test -z "$as_dir" && as_dir=. | |
5213506e | 11124 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11126 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11128 | break 2 |
11129 | fi | |
11130 | done | |
5213506e RW |
11131 | done |
11132 | IFS=$as_save_IFS | |
1c710c3c | 11133 | |
ca9f4b81 AO |
11134 | fi |
11135 | fi | |
1c710c3c | 11136 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 11137 | if test -n "$DLLTOOL"; then |
5213506e RW |
11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11139 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11140 | else |
5213506e RW |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11142 | $as_echo "no" >&6; } | |
ca9f4b81 | 11143 | fi |
1c710c3c | 11144 | |
5213506e | 11145 | |
2693c0b0 PB |
11146 | fi |
11147 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11148 | done | |
11149 | ||
11150 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11151 | set dummy dlltool | |
11152 | if test $build = $host ; then | |
11153 | DLLTOOL="$2" | |
ca9f4b81 | 11154 | else |
2693c0b0 | 11155 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 11156 | fi |
ca9f4b81 AO |
11157 | fi |
11158 | ||
278a7a38 AO |
11159 | |
11160 | ||
3b5e8ee4 IS |
11161 | if test -n "$DSYMUTIL"; then |
11162 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11163 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11164 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11165 | fi | |
11166 | ||
11167 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11168 | for ncn_progname in dsymutil; do | |
11169 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11170 | set dummy ${ncn_progname}; ac_word=$2 | |
11171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11172 | $as_echo_n "checking for $ac_word... " >&6; } | |
11173 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11174 | $as_echo_n "(cached) " >&6 | |
11175 | else | |
11176 | if test -n "$DSYMUTIL"; then | |
11177 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11178 | else | |
11179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11180 | for as_dir in $PATH | |
11181 | do | |
11182 | IFS=$as_save_IFS | |
11183 | test -z "$as_dir" && as_dir=. | |
11184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11185 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11186 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11188 | break 2 | |
11189 | fi | |
11190 | done | |
11191 | done | |
11192 | IFS=$as_save_IFS | |
11193 | ||
11194 | fi | |
11195 | fi | |
11196 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11197 | if test -n "$DSYMUTIL"; then | |
11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11199 | $as_echo "$DSYMUTIL" >&6; } | |
11200 | else | |
11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11202 | $as_echo "no" >&6; } | |
11203 | fi | |
11204 | ||
11205 | ||
11206 | done | |
11207 | fi | |
11208 | ||
11209 | for ncn_progname in dsymutil; do | |
11210 | if test -n "$ncn_tool_prefix"; then | |
11211 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11212 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11214 | $as_echo_n "checking for $ac_word... " >&6; } | |
11215 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11216 | $as_echo_n "(cached) " >&6 | |
11217 | else | |
11218 | if test -n "$DSYMUTIL"; then | |
11219 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11220 | else | |
11221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11222 | for as_dir in $PATH | |
11223 | do | |
11224 | IFS=$as_save_IFS | |
11225 | test -z "$as_dir" && as_dir=. | |
11226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11228 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11230 | break 2 | |
11231 | fi | |
11232 | done | |
11233 | done | |
11234 | IFS=$as_save_IFS | |
11235 | ||
11236 | fi | |
11237 | fi | |
11238 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11239 | if test -n "$DSYMUTIL"; then | |
11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11241 | $as_echo "$DSYMUTIL" >&6; } | |
11242 | else | |
11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11244 | $as_echo "no" >&6; } | |
11245 | fi | |
11246 | ||
11247 | ||
11248 | fi | |
11249 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11251 | set dummy ${ncn_progname}; ac_word=$2 | |
11252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11253 | $as_echo_n "checking for $ac_word... " >&6; } | |
11254 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11255 | $as_echo_n "(cached) " >&6 | |
11256 | else | |
11257 | if test -n "$DSYMUTIL"; then | |
11258 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11259 | else | |
11260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11261 | for as_dir in $PATH | |
11262 | do | |
11263 | IFS=$as_save_IFS | |
11264 | test -z "$as_dir" && as_dir=. | |
11265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11267 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11269 | break 2 | |
11270 | fi | |
11271 | done | |
11272 | done | |
11273 | IFS=$as_save_IFS | |
11274 | ||
11275 | fi | |
11276 | fi | |
11277 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11278 | if test -n "$DSYMUTIL"; then | |
11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11280 | $as_echo "$DSYMUTIL" >&6; } | |
11281 | else | |
11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11283 | $as_echo "no" >&6; } | |
11284 | fi | |
11285 | ||
11286 | ||
11287 | fi | |
11288 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11289 | done | |
11290 | ||
11291 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11292 | set dummy dsymutil | |
11293 | if test $build = $host ; then | |
11294 | DSYMUTIL="$2" | |
11295 | else | |
11296 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11297 | fi | |
11298 | fi | |
11299 | ||
11300 | ||
11301 | ||
278a7a38 AO |
11302 | if test -n "$LD"; then |
11303 | ac_cv_prog_LD=$LD | |
11304 | elif test -n "$ac_cv_prog_LD"; then | |
11305 | LD=$ac_cv_prog_LD | |
11306 | fi | |
11307 | ||
11308 | if test -n "$ac_cv_prog_LD"; then | |
11309 | for ncn_progname in ld; do | |
11310 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11311 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11313 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11314 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11315 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11316 | else |
11317 | if test -n "$LD"; then | |
11318 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11319 | else | |
11320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11321 | for as_dir in $PATH | |
11322 | do | |
11323 | IFS=$as_save_IFS | |
11324 | test -z "$as_dir" && as_dir=. | |
5213506e | 11325 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11326 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11327 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11329 | break 2 |
11330 | fi | |
11331 | done | |
5213506e RW |
11332 | done |
11333 | IFS=$as_save_IFS | |
278a7a38 AO |
11334 | |
11335 | fi | |
11336 | fi | |
11337 | LD=$ac_cv_prog_LD | |
11338 | if test -n "$LD"; then | |
5213506e RW |
11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11340 | $as_echo "$LD" >&6; } | |
278a7a38 | 11341 | else |
5213506e RW |
11342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11343 | $as_echo "no" >&6; } | |
278a7a38 AO |
11344 | fi |
11345 | ||
5213506e | 11346 | |
278a7a38 AO |
11347 | done |
11348 | fi | |
11349 | ||
11350 | for ncn_progname in ld; do | |
2693c0b0 PB |
11351 | if test -n "$ncn_tool_prefix"; then |
11352 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11353 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11355 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11356 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11357 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11358 | else |
11359 | if test -n "$LD"; then | |
11360 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11361 | else | |
1c710c3c DJ |
11362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11363 | for as_dir in $PATH | |
11364 | do | |
11365 | IFS=$as_save_IFS | |
11366 | test -z "$as_dir" && as_dir=. | |
5213506e | 11367 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11369 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11371 | break 2 |
11372 | fi | |
11373 | done | |
5213506e RW |
11374 | done |
11375 | IFS=$as_save_IFS | |
1c710c3c | 11376 | |
ca9f4b81 AO |
11377 | fi |
11378 | fi | |
1c710c3c | 11379 | LD=$ac_cv_prog_LD |
ca9f4b81 | 11380 | if test -n "$LD"; then |
5213506e RW |
11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11382 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11383 | else |
5213506e RW |
11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11385 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11386 | fi |
11387 | ||
5213506e | 11388 | |
2693c0b0 PB |
11389 | fi |
11390 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11391 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11392 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11394 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11395 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11396 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11397 | else |
2693c0b0 PB |
11398 | if test -n "$LD"; then |
11399 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 11400 | else |
1c710c3c DJ |
11401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11402 | for as_dir in $PATH | |
11403 | do | |
11404 | IFS=$as_save_IFS | |
11405 | test -z "$as_dir" && as_dir=. | |
5213506e | 11406 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11408 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11410 | break 2 |
11411 | fi | |
11412 | done | |
5213506e RW |
11413 | done |
11414 | IFS=$as_save_IFS | |
1c710c3c | 11415 | |
ca9f4b81 AO |
11416 | fi |
11417 | fi | |
1c710c3c | 11418 | LD=$ac_cv_prog_LD |
2693c0b0 | 11419 | if test -n "$LD"; then |
5213506e RW |
11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11421 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11422 | else |
5213506e RW |
11423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11424 | $as_echo "no" >&6; } | |
ca9f4b81 | 11425 | fi |
1c710c3c | 11426 | |
5213506e | 11427 | |
2693c0b0 PB |
11428 | fi |
11429 | test -n "$ac_cv_prog_LD" && break | |
11430 | done | |
11431 | ||
11432 | if test -z "$ac_cv_prog_LD" ; then | |
11433 | set dummy ld | |
11434 | if test $build = $host ; then | |
11435 | LD="$2" | |
ca9f4b81 | 11436 | else |
2693c0b0 | 11437 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11438 | fi |
ca9f4b81 AO |
11439 | fi |
11440 | ||
278a7a38 AO |
11441 | |
11442 | ||
11443 | if test -n "$LIPO"; then | |
11444 | ac_cv_prog_LIPO=$LIPO | |
11445 | elif test -n "$ac_cv_prog_LIPO"; then | |
11446 | LIPO=$ac_cv_prog_LIPO | |
11447 | fi | |
11448 | ||
11449 | if test -n "$ac_cv_prog_LIPO"; then | |
11450 | for ncn_progname in lipo; do | |
11451 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11452 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11454 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11455 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11456 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11457 | else |
11458 | if test -n "$LIPO"; then | |
11459 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11460 | else | |
11461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11462 | for as_dir in $PATH | |
11463 | do | |
11464 | IFS=$as_save_IFS | |
11465 | test -z "$as_dir" && as_dir=. | |
5213506e | 11466 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11468 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11470 | break 2 |
11471 | fi | |
11472 | done | |
5213506e RW |
11473 | done |
11474 | IFS=$as_save_IFS | |
278a7a38 AO |
11475 | |
11476 | fi | |
11477 | fi | |
11478 | LIPO=$ac_cv_prog_LIPO | |
11479 | if test -n "$LIPO"; then | |
5213506e RW |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11481 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11482 | else |
5213506e RW |
11483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11484 | $as_echo "no" >&6; } | |
278a7a38 AO |
11485 | fi |
11486 | ||
5213506e | 11487 | |
278a7a38 AO |
11488 | done |
11489 | fi | |
11490 | ||
11491 | for ncn_progname in lipo; do | |
2abefe3d PB |
11492 | if test -n "$ncn_tool_prefix"; then |
11493 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11494 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11496 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11497 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11498 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11499 | else |
11500 | if test -n "$LIPO"; then | |
11501 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11502 | else | |
1c710c3c DJ |
11503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11504 | for as_dir in $PATH | |
11505 | do | |
11506 | IFS=$as_save_IFS | |
11507 | test -z "$as_dir" && as_dir=. | |
5213506e | 11508 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11509 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11510 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11512 | break 2 |
11513 | fi | |
11514 | done | |
5213506e RW |
11515 | done |
11516 | IFS=$as_save_IFS | |
1c710c3c | 11517 | |
2abefe3d PB |
11518 | fi |
11519 | fi | |
1c710c3c | 11520 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11521 | if test -n "$LIPO"; then |
5213506e RW |
11522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11523 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11524 | else |
5213506e RW |
11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11526 | $as_echo "no" >&6; } | |
2abefe3d PB |
11527 | fi |
11528 | ||
5213506e | 11529 | |
2abefe3d PB |
11530 | fi |
11531 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11532 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11533 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11535 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11536 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11537 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11538 | else |
11539 | if test -n "$LIPO"; then | |
11540 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11541 | else | |
1c710c3c DJ |
11542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11543 | for as_dir in $PATH | |
11544 | do | |
11545 | IFS=$as_save_IFS | |
11546 | test -z "$as_dir" && as_dir=. | |
5213506e | 11547 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11549 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11551 | break 2 |
11552 | fi | |
11553 | done | |
5213506e RW |
11554 | done |
11555 | IFS=$as_save_IFS | |
1c710c3c | 11556 | |
2abefe3d PB |
11557 | fi |
11558 | fi | |
1c710c3c | 11559 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11560 | if test -n "$LIPO"; then |
5213506e RW |
11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11562 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11563 | else |
5213506e RW |
11564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11565 | $as_echo "no" >&6; } | |
2abefe3d | 11566 | fi |
1c710c3c | 11567 | |
5213506e | 11568 | |
2abefe3d PB |
11569 | fi |
11570 | test -n "$ac_cv_prog_LIPO" && break | |
11571 | done | |
11572 | ||
11573 | if test -z "$ac_cv_prog_LIPO" ; then | |
11574 | set dummy lipo | |
11575 | if test $build = $host ; then | |
11576 | LIPO="$2" | |
11577 | else | |
11578 | LIPO="${ncn_tool_prefix}$2" | |
11579 | fi | |
11580 | fi | |
11581 | ||
278a7a38 AO |
11582 | |
11583 | ||
11584 | if test -n "$NM"; then | |
11585 | ac_cv_prog_NM=$NM | |
11586 | elif test -n "$ac_cv_prog_NM"; then | |
11587 | NM=$ac_cv_prog_NM | |
11588 | fi | |
11589 | ||
11590 | if test -n "$ac_cv_prog_NM"; then | |
11591 | for ncn_progname in nm; do | |
11592 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11593 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11595 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11596 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11597 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11598 | else |
11599 | if test -n "$NM"; then | |
11600 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11601 | else | |
1c710c3c DJ |
11602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11603 | for as_dir in $PATH | |
11604 | do | |
11605 | IFS=$as_save_IFS | |
11606 | test -z "$as_dir" && as_dir=. | |
5213506e | 11607 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11608 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11609 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11611 | break 2 |
11612 | fi | |
11613 | done | |
5213506e RW |
11614 | done |
11615 | IFS=$as_save_IFS | |
1c710c3c | 11616 | |
ca9f4b81 AO |
11617 | fi |
11618 | fi | |
1c710c3c | 11619 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11620 | if test -n "$NM"; then |
5213506e RW |
11621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11622 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11623 | else |
5213506e RW |
11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11625 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11626 | fi |
11627 | ||
5213506e | 11628 | |
278a7a38 AO |
11629 | done |
11630 | fi | |
11631 | ||
11632 | for ncn_progname in nm; do | |
11633 | if test -n "$ncn_tool_prefix"; then | |
11634 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11635 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11637 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11638 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11639 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11640 | else |
2693c0b0 PB |
11641 | if test -n "$NM"; then |
11642 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11643 | else |
1c710c3c DJ |
11644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11645 | for as_dir in $PATH | |
11646 | do | |
11647 | IFS=$as_save_IFS | |
11648 | test -z "$as_dir" && as_dir=. | |
5213506e | 11649 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11651 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11653 | break 2 |
11654 | fi | |
11655 | done | |
5213506e RW |
11656 | done |
11657 | IFS=$as_save_IFS | |
1c710c3c | 11658 | |
ca9f4b81 AO |
11659 | fi |
11660 | fi | |
1c710c3c | 11661 | NM=$ac_cv_prog_NM |
2693c0b0 | 11662 | if test -n "$NM"; then |
5213506e RW |
11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11664 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11665 | else |
5213506e RW |
11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11667 | $as_echo "no" >&6; } | |
ca9f4b81 | 11668 | fi |
1c710c3c | 11669 | |
5213506e | 11670 | |
2693c0b0 | 11671 | fi |
278a7a38 AO |
11672 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11674 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11676 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11677 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11678 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11679 | else |
11680 | if test -n "$NM"; then | |
11681 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11682 | else | |
11683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11684 | for as_dir in $PATH | |
11685 | do | |
11686 | IFS=$as_save_IFS | |
11687 | test -z "$as_dir" && as_dir=. | |
5213506e | 11688 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11690 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11692 | break 2 |
11693 | fi | |
11694 | done | |
5213506e RW |
11695 | done |
11696 | IFS=$as_save_IFS | |
278a7a38 AO |
11697 | |
11698 | fi | |
11699 | fi | |
11700 | NM=$ac_cv_prog_NM | |
11701 | if test -n "$NM"; then | |
5213506e RW |
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11703 | $as_echo "$NM" >&6; } | |
278a7a38 | 11704 | else |
5213506e RW |
11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11706 | $as_echo "no" >&6; } | |
278a7a38 AO |
11707 | fi |
11708 | ||
5213506e | 11709 | |
278a7a38 AO |
11710 | fi |
11711 | test -n "$ac_cv_prog_NM" && break | |
11712 | done | |
11713 | ||
11714 | if test -z "$ac_cv_prog_NM" ; then | |
11715 | set dummy nm | |
11716 | if test $build = $host ; then | |
11717 | NM="$2" | |
11718 | else | |
11719 | NM="${ncn_tool_prefix}$2" | |
11720 | fi | |
11721 | fi | |
11722 | ||
11723 | ||
11724 | ||
11725 | if test -n "$RANLIB"; then | |
11726 | ac_cv_prog_RANLIB=$RANLIB | |
11727 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11728 | RANLIB=$ac_cv_prog_RANLIB | |
11729 | fi | |
11730 | ||
11731 | if test -n "$ac_cv_prog_RANLIB"; then | |
11732 | for ncn_progname in ranlib; do | |
11733 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11734 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11736 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11737 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11738 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11739 | else |
11740 | if test -n "$RANLIB"; then | |
11741 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11742 | else | |
11743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11744 | for as_dir in $PATH | |
11745 | do | |
11746 | IFS=$as_save_IFS | |
11747 | test -z "$as_dir" && as_dir=. | |
5213506e | 11748 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11749 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11750 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11752 | break 2 |
11753 | fi | |
11754 | done | |
5213506e RW |
11755 | done |
11756 | IFS=$as_save_IFS | |
278a7a38 AO |
11757 | |
11758 | fi | |
11759 | fi | |
11760 | RANLIB=$ac_cv_prog_RANLIB | |
11761 | if test -n "$RANLIB"; then | |
5213506e RW |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11763 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 11764 | else |
5213506e RW |
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11766 | $as_echo "no" >&6; } | |
278a7a38 AO |
11767 | fi |
11768 | ||
5213506e | 11769 | |
278a7a38 AO |
11770 | done |
11771 | fi | |
ca9f4b81 | 11772 | |
278a7a38 | 11773 | for ncn_progname in ranlib; do |
2693c0b0 PB |
11774 | if test -n "$ncn_tool_prefix"; then |
11775 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11776 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11778 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11779 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11780 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11781 | else |
11782 | if test -n "$RANLIB"; then | |
11783 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11784 | else | |
1c710c3c DJ |
11785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11786 | for as_dir in $PATH | |
11787 | do | |
11788 | IFS=$as_save_IFS | |
11789 | test -z "$as_dir" && as_dir=. | |
5213506e | 11790 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11792 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11794 | break 2 |
11795 | fi | |
11796 | done | |
5213506e RW |
11797 | done |
11798 | IFS=$as_save_IFS | |
1c710c3c | 11799 | |
ca9f4b81 AO |
11800 | fi |
11801 | fi | |
1c710c3c | 11802 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 11803 | if test -n "$RANLIB"; then |
5213506e RW |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11805 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11806 | else |
5213506e RW |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11808 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11809 | fi |
11810 | ||
5213506e | 11811 | |
2693c0b0 PB |
11812 | fi |
11813 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11814 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11815 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11817 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11818 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11819 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11820 | else |
2693c0b0 PB |
11821 | if test -n "$RANLIB"; then |
11822 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 11823 | else |
1c710c3c DJ |
11824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11825 | for as_dir in $PATH | |
11826 | do | |
11827 | IFS=$as_save_IFS | |
11828 | test -z "$as_dir" && as_dir=. | |
5213506e | 11829 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11831 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11833 | break 2 |
11834 | fi | |
11835 | done | |
5213506e RW |
11836 | done |
11837 | IFS=$as_save_IFS | |
1c710c3c | 11838 | |
ca9f4b81 AO |
11839 | fi |
11840 | fi | |
1c710c3c | 11841 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 11842 | if test -n "$RANLIB"; then |
5213506e RW |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11844 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11845 | else |
5213506e RW |
11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11847 | $as_echo "no" >&6; } | |
ca9f4b81 | 11848 | fi |
1c710c3c | 11849 | |
5213506e | 11850 | |
ca9f4b81 | 11851 | fi |
2693c0b0 PB |
11852 | test -n "$ac_cv_prog_RANLIB" && break |
11853 | done | |
11854 | ||
11855 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 11856 | RANLIB="true" |
ca9f4b81 AO |
11857 | fi |
11858 | ||
278a7a38 AO |
11859 | |
11860 | ||
11861 | if test -n "$STRIP"; then | |
11862 | ac_cv_prog_STRIP=$STRIP | |
11863 | elif test -n "$ac_cv_prog_STRIP"; then | |
11864 | STRIP=$ac_cv_prog_STRIP | |
11865 | fi | |
11866 | ||
11867 | if test -n "$ac_cv_prog_STRIP"; then | |
11868 | for ncn_progname in strip; do | |
11869 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11870 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11872 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11873 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11874 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11875 | else |
11876 | if test -n "$STRIP"; then | |
11877 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11878 | else | |
11879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11880 | for as_dir in $PATH | |
11881 | do | |
11882 | IFS=$as_save_IFS | |
11883 | test -z "$as_dir" && as_dir=. | |
5213506e | 11884 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11886 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11888 | break 2 |
11889 | fi | |
11890 | done | |
5213506e RW |
11891 | done |
11892 | IFS=$as_save_IFS | |
278a7a38 AO |
11893 | |
11894 | fi | |
11895 | fi | |
11896 | STRIP=$ac_cv_prog_STRIP | |
11897 | if test -n "$STRIP"; then | |
5213506e RW |
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11899 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 11900 | else |
5213506e RW |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11902 | $as_echo "no" >&6; } | |
278a7a38 AO |
11903 | fi |
11904 | ||
5213506e | 11905 | |
278a7a38 AO |
11906 | done |
11907 | fi | |
11908 | ||
11909 | for ncn_progname in strip; do | |
2abefe3d PB |
11910 | if test -n "$ncn_tool_prefix"; then |
11911 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11912 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11914 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11915 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11916 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11917 | else |
11918 | if test -n "$STRIP"; then | |
11919 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11920 | else | |
1c710c3c DJ |
11921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11922 | for as_dir in $PATH | |
11923 | do | |
11924 | IFS=$as_save_IFS | |
11925 | test -z "$as_dir" && as_dir=. | |
5213506e | 11926 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11928 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11930 | break 2 |
11931 | fi | |
11932 | done | |
5213506e RW |
11933 | done |
11934 | IFS=$as_save_IFS | |
1c710c3c | 11935 | |
2abefe3d PB |
11936 | fi |
11937 | fi | |
1c710c3c | 11938 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11939 | if test -n "$STRIP"; then |
5213506e RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11941 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11942 | else |
5213506e RW |
11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11944 | $as_echo "no" >&6; } | |
2abefe3d PB |
11945 | fi |
11946 | ||
5213506e | 11947 | |
2abefe3d PB |
11948 | fi |
11949 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
11950 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11951 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11953 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11954 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11955 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11956 | else |
11957 | if test -n "$STRIP"; then | |
11958 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11959 | else | |
1c710c3c DJ |
11960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11961 | for as_dir in $PATH | |
11962 | do | |
11963 | IFS=$as_save_IFS | |
11964 | test -z "$as_dir" && as_dir=. | |
5213506e | 11965 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11966 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11967 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11969 | break 2 |
11970 | fi | |
11971 | done | |
5213506e RW |
11972 | done |
11973 | IFS=$as_save_IFS | |
1c710c3c | 11974 | |
2abefe3d PB |
11975 | fi |
11976 | fi | |
1c710c3c | 11977 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11978 | if test -n "$STRIP"; then |
5213506e RW |
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11980 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11981 | else |
5213506e RW |
11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11983 | $as_echo "no" >&6; } | |
2abefe3d | 11984 | fi |
1c710c3c | 11985 | |
5213506e | 11986 | |
2abefe3d PB |
11987 | fi |
11988 | test -n "$ac_cv_prog_STRIP" && break | |
11989 | done | |
11990 | ||
11991 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 11992 | STRIP="true" |
2abefe3d PB |
11993 | fi |
11994 | ||
278a7a38 AO |
11995 | |
11996 | ||
11997 | if test -n "$WINDRES"; then | |
11998 | ac_cv_prog_WINDRES=$WINDRES | |
11999 | elif test -n "$ac_cv_prog_WINDRES"; then | |
12000 | WINDRES=$ac_cv_prog_WINDRES | |
12001 | fi | |
12002 | ||
12003 | if test -n "$ac_cv_prog_WINDRES"; then | |
12004 | for ncn_progname in windres; do | |
12005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12006 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12008 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12009 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12010 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12011 | else |
12012 | if test -n "$WINDRES"; then | |
12013 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12014 | else | |
12015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12016 | for as_dir in $PATH | |
12017 | do | |
12018 | IFS=$as_save_IFS | |
12019 | test -z "$as_dir" && as_dir=. | |
5213506e | 12020 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12022 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12024 | break 2 |
12025 | fi | |
12026 | done | |
5213506e RW |
12027 | done |
12028 | IFS=$as_save_IFS | |
278a7a38 AO |
12029 | |
12030 | fi | |
12031 | fi | |
12032 | WINDRES=$ac_cv_prog_WINDRES | |
12033 | if test -n "$WINDRES"; then | |
5213506e RW |
12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12035 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 12036 | else |
5213506e RW |
12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12038 | $as_echo "no" >&6; } | |
278a7a38 AO |
12039 | fi |
12040 | ||
5213506e | 12041 | |
278a7a38 AO |
12042 | done |
12043 | fi | |
12044 | ||
12045 | for ncn_progname in windres; do | |
2693c0b0 PB |
12046 | if test -n "$ncn_tool_prefix"; then |
12047 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12048 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12050 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12051 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12052 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12053 | else |
12054 | if test -n "$WINDRES"; then | |
12055 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12056 | else | |
1c710c3c DJ |
12057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12058 | for as_dir in $PATH | |
12059 | do | |
12060 | IFS=$as_save_IFS | |
12061 | test -z "$as_dir" && as_dir=. | |
5213506e | 12062 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12064 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12066 | break 2 |
12067 | fi | |
12068 | done | |
5213506e RW |
12069 | done |
12070 | IFS=$as_save_IFS | |
1c710c3c | 12071 | |
ca9f4b81 AO |
12072 | fi |
12073 | fi | |
1c710c3c | 12074 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 12075 | if test -n "$WINDRES"; then |
5213506e RW |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12077 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12078 | else |
5213506e RW |
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12080 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12081 | fi |
12082 | ||
5213506e | 12083 | |
2693c0b0 PB |
12084 | fi |
12085 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12086 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12087 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12089 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12090 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12091 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12092 | else |
2693c0b0 PB |
12093 | if test -n "$WINDRES"; then |
12094 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 12095 | else |
1c710c3c DJ |
12096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12097 | for as_dir in $PATH | |
12098 | do | |
12099 | IFS=$as_save_IFS | |
12100 | test -z "$as_dir" && as_dir=. | |
5213506e | 12101 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12103 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12105 | break 2 |
12106 | fi | |
12107 | done | |
5213506e RW |
12108 | done |
12109 | IFS=$as_save_IFS | |
1c710c3c | 12110 | |
ca9f4b81 AO |
12111 | fi |
12112 | fi | |
1c710c3c | 12113 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 12114 | if test -n "$WINDRES"; then |
5213506e RW |
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12116 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12117 | else |
5213506e RW |
12118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12119 | $as_echo "no" >&6; } | |
ca9f4b81 | 12120 | fi |
1c710c3c | 12121 | |
5213506e | 12122 | |
2693c0b0 PB |
12123 | fi |
12124 | test -n "$ac_cv_prog_WINDRES" && break | |
12125 | done | |
12126 | ||
12127 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12128 | set dummy windres | |
12129 | if test $build = $host ; then | |
12130 | WINDRES="$2" | |
ca9f4b81 | 12131 | else |
2693c0b0 | 12132 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 12133 | fi |
ca9f4b81 AO |
12134 | fi |
12135 | ||
278a7a38 AO |
12136 | |
12137 | ||
901119ae KT |
12138 | if test -n "$WINDMC"; then |
12139 | ac_cv_prog_WINDMC=$WINDMC | |
12140 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12141 | WINDMC=$ac_cv_prog_WINDMC | |
12142 | fi | |
12143 | ||
12144 | if test -n "$ac_cv_prog_WINDMC"; then | |
12145 | for ncn_progname in windmc; do | |
12146 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12147 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12149 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12150 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12151 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12152 | else |
12153 | if test -n "$WINDMC"; then | |
12154 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12155 | else | |
12156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12157 | for as_dir in $PATH | |
12158 | do | |
12159 | IFS=$as_save_IFS | |
12160 | test -z "$as_dir" && as_dir=. | |
5213506e | 12161 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12162 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12163 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12165 | break 2 |
12166 | fi | |
12167 | done | |
5213506e RW |
12168 | done |
12169 | IFS=$as_save_IFS | |
901119ae KT |
12170 | |
12171 | fi | |
12172 | fi | |
12173 | WINDMC=$ac_cv_prog_WINDMC | |
12174 | if test -n "$WINDMC"; then | |
5213506e RW |
12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12176 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12177 | else |
5213506e RW |
12178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12179 | $as_echo "no" >&6; } | |
901119ae KT |
12180 | fi |
12181 | ||
5213506e | 12182 | |
901119ae KT |
12183 | done |
12184 | fi | |
12185 | ||
12186 | for ncn_progname in windmc; do | |
12187 | if test -n "$ncn_tool_prefix"; then | |
12188 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12189 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12191 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12192 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12193 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12194 | else |
12195 | if test -n "$WINDMC"; then | |
12196 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12197 | else | |
12198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12199 | for as_dir in $PATH | |
12200 | do | |
12201 | IFS=$as_save_IFS | |
12202 | test -z "$as_dir" && as_dir=. | |
5213506e | 12203 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12204 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12205 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12207 | break 2 |
12208 | fi | |
12209 | done | |
5213506e RW |
12210 | done |
12211 | IFS=$as_save_IFS | |
901119ae KT |
12212 | |
12213 | fi | |
12214 | fi | |
12215 | WINDMC=$ac_cv_prog_WINDMC | |
12216 | if test -n "$WINDMC"; then | |
5213506e RW |
12217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12218 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12219 | else |
5213506e RW |
12220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12221 | $as_echo "no" >&6; } | |
901119ae KT |
12222 | fi |
12223 | ||
5213506e | 12224 | |
901119ae KT |
12225 | fi |
12226 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12227 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12228 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12230 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12231 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12232 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12233 | else |
12234 | if test -n "$WINDMC"; then | |
12235 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12236 | else | |
12237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12238 | for as_dir in $PATH | |
12239 | do | |
12240 | IFS=$as_save_IFS | |
12241 | test -z "$as_dir" && as_dir=. | |
5213506e | 12242 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12244 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12246 | break 2 |
12247 | fi | |
12248 | done | |
5213506e RW |
12249 | done |
12250 | IFS=$as_save_IFS | |
901119ae KT |
12251 | |
12252 | fi | |
12253 | fi | |
12254 | WINDMC=$ac_cv_prog_WINDMC | |
12255 | if test -n "$WINDMC"; then | |
5213506e RW |
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12257 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12258 | else |
5213506e RW |
12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12260 | $as_echo "no" >&6; } | |
901119ae KT |
12261 | fi |
12262 | ||
5213506e | 12263 | |
901119ae KT |
12264 | fi |
12265 | test -n "$ac_cv_prog_WINDMC" && break | |
12266 | done | |
12267 | ||
12268 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12269 | set dummy windmc | |
12270 | if test $build = $host ; then | |
12271 | WINDMC="$2" | |
12272 | else | |
12273 | WINDMC="${ncn_tool_prefix}$2" | |
12274 | fi | |
12275 | fi | |
12276 | ||
12277 | ||
12278 | ||
278a7a38 AO |
12279 | if test -n "$OBJCOPY"; then |
12280 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12281 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12282 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12283 | fi | |
12284 | ||
12285 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12286 | for ncn_progname in objcopy; do | |
12287 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12288 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12290 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12291 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12292 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12293 | else |
12294 | if test -n "$OBJCOPY"; then | |
12295 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12296 | else | |
12297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12298 | for as_dir in $PATH | |
12299 | do | |
12300 | IFS=$as_save_IFS | |
12301 | test -z "$as_dir" && as_dir=. | |
5213506e | 12302 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12303 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12304 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12306 | break 2 |
12307 | fi | |
12308 | done | |
5213506e RW |
12309 | done |
12310 | IFS=$as_save_IFS | |
278a7a38 AO |
12311 | |
12312 | fi | |
12313 | fi | |
12314 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12315 | if test -n "$OBJCOPY"; then | |
5213506e RW |
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12317 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 12318 | else |
5213506e RW |
12319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12320 | $as_echo "no" >&6; } | |
278a7a38 AO |
12321 | fi |
12322 | ||
5213506e | 12323 | |
278a7a38 AO |
12324 | done |
12325 | fi | |
12326 | ||
12327 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
12328 | if test -n "$ncn_tool_prefix"; then |
12329 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12330 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12332 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12333 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12334 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12335 | else |
12336 | if test -n "$OBJCOPY"; then | |
12337 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12338 | else | |
1c710c3c DJ |
12339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12340 | for as_dir in $PATH | |
12341 | do | |
12342 | IFS=$as_save_IFS | |
12343 | test -z "$as_dir" && as_dir=. | |
5213506e | 12344 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12346 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12348 | break 2 |
12349 | fi | |
12350 | done | |
5213506e RW |
12351 | done |
12352 | IFS=$as_save_IFS | |
1c710c3c | 12353 | |
ca9f4b81 AO |
12354 | fi |
12355 | fi | |
1c710c3c | 12356 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 12357 | if test -n "$OBJCOPY"; then |
5213506e RW |
12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12359 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12360 | else |
5213506e RW |
12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12362 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12363 | fi |
12364 | ||
5213506e | 12365 | |
2693c0b0 PB |
12366 | fi |
12367 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12368 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12369 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12371 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12372 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12373 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12374 | else |
2693c0b0 PB |
12375 | if test -n "$OBJCOPY"; then |
12376 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 12377 | else |
1c710c3c DJ |
12378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12379 | for as_dir in $PATH | |
12380 | do | |
12381 | IFS=$as_save_IFS | |
12382 | test -z "$as_dir" && as_dir=. | |
5213506e | 12383 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12384 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12385 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12387 | break 2 |
12388 | fi | |
12389 | done | |
5213506e RW |
12390 | done |
12391 | IFS=$as_save_IFS | |
1c710c3c | 12392 | |
ca9f4b81 AO |
12393 | fi |
12394 | fi | |
1c710c3c | 12395 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 12396 | if test -n "$OBJCOPY"; then |
5213506e RW |
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12398 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12399 | else |
5213506e RW |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12401 | $as_echo "no" >&6; } | |
ca9f4b81 | 12402 | fi |
1c710c3c | 12403 | |
5213506e | 12404 | |
2693c0b0 PB |
12405 | fi |
12406 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12407 | done | |
12408 | ||
12409 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12410 | set dummy objcopy | |
12411 | if test $build = $host ; then | |
12412 | OBJCOPY="$2" | |
ca9f4b81 | 12413 | else |
2693c0b0 | 12414 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12415 | fi |
ca9f4b81 AO |
12416 | fi |
12417 | ||
278a7a38 AO |
12418 | |
12419 | ||
12420 | if test -n "$OBJDUMP"; then | |
12421 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12422 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12423 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12424 | fi | |
12425 | ||
12426 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12427 | for ncn_progname in objdump; do | |
12428 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12429 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12431 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12432 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12433 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12434 | else |
12435 | if test -n "$OBJDUMP"; then | |
12436 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12437 | else | |
12438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12439 | for as_dir in $PATH | |
12440 | do | |
12441 | IFS=$as_save_IFS | |
12442 | test -z "$as_dir" && as_dir=. | |
5213506e | 12443 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12444 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12445 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12447 | break 2 |
12448 | fi | |
12449 | done | |
5213506e RW |
12450 | done |
12451 | IFS=$as_save_IFS | |
278a7a38 AO |
12452 | |
12453 | fi | |
12454 | fi | |
12455 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12456 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12458 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12459 | else |
5213506e RW |
12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12461 | $as_echo "no" >&6; } | |
278a7a38 AO |
12462 | fi |
12463 | ||
5213506e | 12464 | |
278a7a38 AO |
12465 | done |
12466 | fi | |
12467 | ||
12468 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12469 | if test -n "$ncn_tool_prefix"; then |
12470 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12471 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12473 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12474 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12475 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12476 | else |
12477 | if test -n "$OBJDUMP"; then | |
12478 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12479 | else | |
1c710c3c DJ |
12480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12481 | for as_dir in $PATH | |
12482 | do | |
12483 | IFS=$as_save_IFS | |
12484 | test -z "$as_dir" && as_dir=. | |
5213506e | 12485 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12486 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12487 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12489 | break 2 |
12490 | fi | |
12491 | done | |
5213506e RW |
12492 | done |
12493 | IFS=$as_save_IFS | |
1c710c3c | 12494 | |
ca9f4b81 AO |
12495 | fi |
12496 | fi | |
1c710c3c | 12497 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 12498 | if test -n "$OBJDUMP"; then |
5213506e RW |
12499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12500 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12501 | else |
5213506e RW |
12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12503 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12504 | fi |
12505 | ||
5213506e | 12506 | |
2693c0b0 PB |
12507 | fi |
12508 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12509 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12510 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12512 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12513 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12514 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12515 | else |
2693c0b0 PB |
12516 | if test -n "$OBJDUMP"; then |
12517 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12518 | else |
1c710c3c DJ |
12519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12520 | for as_dir in $PATH | |
12521 | do | |
12522 | IFS=$as_save_IFS | |
12523 | test -z "$as_dir" && as_dir=. | |
5213506e | 12524 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12526 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12528 | break 2 |
12529 | fi | |
12530 | done | |
5213506e RW |
12531 | done |
12532 | IFS=$as_save_IFS | |
1c710c3c | 12533 | |
ca9f4b81 AO |
12534 | fi |
12535 | fi | |
1c710c3c | 12536 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12537 | if test -n "$OBJDUMP"; then |
5213506e RW |
12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12539 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12540 | else |
5213506e RW |
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12542 | $as_echo "no" >&6; } | |
ca9f4b81 | 12543 | fi |
1c710c3c | 12544 | |
5213506e | 12545 | |
2693c0b0 PB |
12546 | fi |
12547 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12548 | done | |
12549 | ||
12550 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12551 | set dummy objdump | |
12552 | if test $build = $host ; then | |
12553 | OBJDUMP="$2" | |
ca9f4b81 | 12554 | else |
2693c0b0 | 12555 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12556 | fi |
ca9f4b81 AO |
12557 | fi |
12558 | ||
671aa708 NN |
12559 | |
12560 | ||
e4a9a572 IS |
12561 | if test -n "$OTOOL"; then |
12562 | ac_cv_prog_OTOOL=$OTOOL | |
12563 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12564 | OTOOL=$ac_cv_prog_OTOOL | |
12565 | fi | |
12566 | ||
12567 | if test -n "$ac_cv_prog_OTOOL"; then | |
12568 | for ncn_progname in otool; do | |
12569 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12570 | set dummy ${ncn_progname}; ac_word=$2 | |
12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12572 | $as_echo_n "checking for $ac_word... " >&6; } | |
12573 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12574 | $as_echo_n "(cached) " >&6 | |
12575 | else | |
12576 | if test -n "$OTOOL"; then | |
12577 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12578 | else | |
12579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12580 | for as_dir in $PATH | |
12581 | do | |
12582 | IFS=$as_save_IFS | |
12583 | test -z "$as_dir" && as_dir=. | |
12584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12585 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12586 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12588 | break 2 | |
12589 | fi | |
12590 | done | |
12591 | done | |
12592 | IFS=$as_save_IFS | |
12593 | ||
12594 | fi | |
12595 | fi | |
12596 | OTOOL=$ac_cv_prog_OTOOL | |
12597 | if test -n "$OTOOL"; then | |
12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12599 | $as_echo "$OTOOL" >&6; } | |
12600 | else | |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12602 | $as_echo "no" >&6; } | |
12603 | fi | |
12604 | ||
12605 | ||
12606 | done | |
12607 | fi | |
12608 | ||
12609 | for ncn_progname in otool; do | |
12610 | if test -n "$ncn_tool_prefix"; then | |
12611 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12612 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12614 | $as_echo_n "checking for $ac_word... " >&6; } | |
12615 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12616 | $as_echo_n "(cached) " >&6 | |
12617 | else | |
12618 | if test -n "$OTOOL"; then | |
12619 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12620 | else | |
12621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12622 | for as_dir in $PATH | |
12623 | do | |
12624 | IFS=$as_save_IFS | |
12625 | test -z "$as_dir" && as_dir=. | |
12626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12628 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
12629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12630 | break 2 | |
12631 | fi | |
12632 | done | |
12633 | done | |
12634 | IFS=$as_save_IFS | |
12635 | ||
12636 | fi | |
12637 | fi | |
12638 | OTOOL=$ac_cv_prog_OTOOL | |
12639 | if test -n "$OTOOL"; then | |
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12641 | $as_echo "$OTOOL" >&6; } | |
12642 | else | |
12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12644 | $as_echo "no" >&6; } | |
12645 | fi | |
12646 | ||
12647 | ||
12648 | fi | |
12649 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12650 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12651 | set dummy ${ncn_progname}; ac_word=$2 | |
12652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12653 | $as_echo_n "checking for $ac_word... " >&6; } | |
12654 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12655 | $as_echo_n "(cached) " >&6 | |
12656 | else | |
12657 | if test -n "$OTOOL"; then | |
12658 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12659 | else | |
12660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12661 | for as_dir in $PATH | |
12662 | do | |
12663 | IFS=$as_save_IFS | |
12664 | test -z "$as_dir" && as_dir=. | |
12665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12666 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12667 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12669 | break 2 | |
12670 | fi | |
12671 | done | |
12672 | done | |
12673 | IFS=$as_save_IFS | |
12674 | ||
12675 | fi | |
12676 | fi | |
12677 | OTOOL=$ac_cv_prog_OTOOL | |
12678 | if test -n "$OTOOL"; then | |
12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12680 | $as_echo "$OTOOL" >&6; } | |
12681 | else | |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12683 | $as_echo "no" >&6; } | |
12684 | fi | |
12685 | ||
12686 | ||
12687 | fi | |
12688 | test -n "$ac_cv_prog_OTOOL" && break | |
12689 | done | |
12690 | ||
12691 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12692 | set dummy otool | |
12693 | if test $build = $host ; then | |
12694 | OTOOL="$2" | |
12695 | else | |
12696 | OTOOL="${ncn_tool_prefix}$2" | |
12697 | fi | |
12698 | fi | |
12699 | ||
12700 | ||
12701 | ||
e7a82751 RM |
12702 | if test -n "$READELF"; then |
12703 | ac_cv_prog_READELF=$READELF | |
12704 | elif test -n "$ac_cv_prog_READELF"; then | |
12705 | READELF=$ac_cv_prog_READELF | |
12706 | fi | |
12707 | ||
12708 | if test -n "$ac_cv_prog_READELF"; then | |
12709 | for ncn_progname in readelf; do | |
12710 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12711 | set dummy ${ncn_progname}; ac_word=$2 | |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12713 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12714 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12715 | $as_echo_n "(cached) " >&6 |
12716 | else | |
12717 | if test -n "$READELF"; then | |
12718 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12719 | else | |
12720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12721 | for as_dir in $PATH | |
12722 | do | |
12723 | IFS=$as_save_IFS | |
12724 | test -z "$as_dir" && as_dir=. | |
12725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12727 | ac_cv_prog_READELF="${ncn_progname}" |
12728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12729 | break 2 | |
12730 | fi | |
12731 | done | |
12732 | done | |
12733 | IFS=$as_save_IFS | |
12734 | ||
12735 | fi | |
12736 | fi | |
12737 | READELF=$ac_cv_prog_READELF | |
12738 | if test -n "$READELF"; then | |
12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12740 | $as_echo "$READELF" >&6; } | |
12741 | else | |
12742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12743 | $as_echo "no" >&6; } | |
12744 | fi | |
12745 | ||
12746 | ||
12747 | done | |
12748 | fi | |
12749 | ||
12750 | for ncn_progname in readelf; do | |
12751 | if test -n "$ncn_tool_prefix"; then | |
12752 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12753 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12755 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12756 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12757 | $as_echo_n "(cached) " >&6 |
12758 | else | |
12759 | if test -n "$READELF"; then | |
12760 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12761 | else | |
12762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12763 | for as_dir in $PATH | |
12764 | do | |
12765 | IFS=$as_save_IFS | |
12766 | test -z "$as_dir" && as_dir=. | |
12767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12769 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12771 | break 2 | |
12772 | fi | |
12773 | done | |
12774 | done | |
12775 | IFS=$as_save_IFS | |
12776 | ||
12777 | fi | |
12778 | fi | |
12779 | READELF=$ac_cv_prog_READELF | |
12780 | if test -n "$READELF"; then | |
12781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12782 | $as_echo "$READELF" >&6; } | |
12783 | else | |
12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12785 | $as_echo "no" >&6; } | |
12786 | fi | |
12787 | ||
12788 | ||
12789 | fi | |
12790 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12791 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12792 | set dummy ${ncn_progname}; ac_word=$2 | |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12794 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12795 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12796 | $as_echo_n "(cached) " >&6 |
12797 | else | |
12798 | if test -n "$READELF"; then | |
12799 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12800 | else | |
12801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12802 | for as_dir in $PATH | |
12803 | do | |
12804 | IFS=$as_save_IFS | |
12805 | test -z "$as_dir" && as_dir=. | |
12806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12808 | ac_cv_prog_READELF="${ncn_progname}" |
12809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12810 | break 2 | |
12811 | fi | |
12812 | done | |
12813 | done | |
12814 | IFS=$as_save_IFS | |
12815 | ||
12816 | fi | |
12817 | fi | |
12818 | READELF=$ac_cv_prog_READELF | |
12819 | if test -n "$READELF"; then | |
12820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12821 | $as_echo "$READELF" >&6; } | |
12822 | else | |
12823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12824 | $as_echo "no" >&6; } | |
12825 | fi | |
12826 | ||
12827 | ||
12828 | fi | |
12829 | test -n "$ac_cv_prog_READELF" && break | |
12830 | done | |
12831 | ||
12832 | if test -z "$ac_cv_prog_READELF" ; then | |
12833 | set dummy readelf | |
12834 | if test $build = $host ; then | |
12835 | READELF="$2" | |
12836 | else | |
12837 | READELF="${ncn_tool_prefix}$2" | |
12838 | fi | |
12839 | fi | |
12840 | ||
12841 | ||
12842 | ||
671aa708 NN |
12843 | |
12844 | ||
12845 | ||
5fee5ec3 IB |
12846 | |
12847 | ||
2abefe3d | 12848 | # Target tools. |
1c710c3c | 12849 | |
5213506e RW |
12850 | # Check whether --with-build-time-tools was given. |
12851 | if test "${with_build_time_tools+set}" = set; then : | |
12852 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
12853 | x/*) ;; |
12854 | *) | |
12855 | with_build_time_tools= | |
5213506e RW |
12856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
12857 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
12858 | ;; |
12859 | esac | |
ca9f4b81 | 12860 | else |
e8b05380 | 12861 | with_build_time_tools= |
5213506e RW |
12862 | fi |
12863 | ||
ca9f4b81 | 12864 | |
278a7a38 AO |
12865 | |
12866 | ||
12867 | if test -n "$CC_FOR_TARGET"; then | |
12868 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
12869 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12870 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12871 | fi | |
12872 | ||
12873 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12874 | for ncn_progname in cc gcc; do | |
12875 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12876 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12878 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12879 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12880 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12881 | else |
12882 | if test -n "$CC_FOR_TARGET"; then | |
12883 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12884 | else | |
12885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12886 | for as_dir in $PATH | |
12887 | do | |
12888 | IFS=$as_save_IFS | |
12889 | test -z "$as_dir" && as_dir=. | |
5213506e | 12890 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12892 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12894 | break 2 |
12895 | fi | |
12896 | done | |
5213506e RW |
12897 | done |
12898 | IFS=$as_save_IFS | |
278a7a38 AO |
12899 | |
12900 | fi | |
12901 | fi | |
12902 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12903 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12905 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 12906 | else |
5213506e RW |
12907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12908 | $as_echo "no" >&6; } | |
278a7a38 AO |
12909 | fi |
12910 | ||
5213506e | 12911 | |
278a7a38 AO |
12912 | done |
12913 | fi | |
12914 | ||
12915 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12916 | for ncn_progname in cc gcc; do |
5213506e RW |
12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12918 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12919 | if test -x $with_build_time_tools/${ncn_progname}; then |
12920 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12922 | $as_echo "yes" >&6; } | |
72a7ab82 | 12923 | break |
e8b05380 | 12924 | else |
5213506e RW |
12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12926 | $as_echo "no" >&6; } | |
72a7ab82 AP |
12927 | fi |
12928 | done | |
4de997d1 PB |
12929 | fi |
12930 | ||
e8b05380 PB |
12931 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
12932 | for ncn_progname in cc gcc; do | |
12933 | if test -n "$ncn_target_tool_prefix"; then | |
12934 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12935 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12937 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12938 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12939 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
12940 | else |
12941 | if test -n "$CC_FOR_TARGET"; then | |
12942 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12943 | else | |
1c710c3c DJ |
12944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12945 | for as_dir in $PATH | |
12946 | do | |
12947 | IFS=$as_save_IFS | |
12948 | test -z "$as_dir" && as_dir=. | |
5213506e | 12949 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12951 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12953 | break 2 |
12954 | fi | |
12955 | done | |
5213506e RW |
12956 | done |
12957 | IFS=$as_save_IFS | |
1c710c3c | 12958 | |
4de997d1 PB |
12959 | fi |
12960 | fi | |
1c710c3c | 12961 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 12962 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12964 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12965 | else |
5213506e RW |
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12967 | $as_echo "no" >&6; } | |
4de997d1 PB |
12968 | fi |
12969 | ||
5213506e | 12970 | |
e8b05380 PB |
12971 | fi |
12972 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
12973 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12974 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12976 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12977 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12978 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12979 | else |
2693c0b0 PB |
12980 | if test -n "$CC_FOR_TARGET"; then |
12981 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12982 | else |
1c710c3c DJ |
12983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12984 | for as_dir in $PATH | |
12985 | do | |
12986 | IFS=$as_save_IFS | |
12987 | test -z "$as_dir" && as_dir=. | |
5213506e | 12988 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12989 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12990 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12992 | break 2 |
12993 | fi | |
12994 | done | |
5213506e RW |
12995 | done |
12996 | IFS=$as_save_IFS | |
1c710c3c | 12997 | |
4de997d1 PB |
12998 | fi |
12999 | fi | |
1c710c3c | 13000 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 13001 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13003 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 13004 | else |
5213506e RW |
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13006 | $as_echo "no" >&6; } | |
4de997d1 | 13007 | fi |
1c710c3c | 13008 | |
5213506e | 13009 | |
e8b05380 PB |
13010 | fi |
13011 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
13012 | done | |
13013 | fi | |
1c710c3c | 13014 | |
2693c0b0 PB |
13015 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
13016 | set dummy cc gcc | |
13017 | if test $build = $target ; then | |
13018 | CC_FOR_TARGET="$2" | |
4de997d1 | 13019 | else |
2693c0b0 | 13020 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13021 | fi |
1c00b503 PB |
13022 | else |
13023 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
13024 | fi |
13025 | ||
278a7a38 AO |
13026 | |
13027 | ||
13028 | if test -n "$CXX_FOR_TARGET"; then | |
13029 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13030 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13031 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13032 | fi | |
13033 | ||
13034 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13035 | for ncn_progname in c++ g++ cxx gxx; do | |
13036 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13037 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13039 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13040 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13041 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13042 | else |
13043 | if test -n "$CXX_FOR_TARGET"; then | |
13044 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13045 | else | |
13046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13047 | for as_dir in $PATH | |
13048 | do | |
13049 | IFS=$as_save_IFS | |
13050 | test -z "$as_dir" && as_dir=. | |
5213506e | 13051 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13053 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13055 | break 2 |
13056 | fi | |
13057 | done | |
5213506e RW |
13058 | done |
13059 | IFS=$as_save_IFS | |
278a7a38 AO |
13060 | |
13061 | fi | |
13062 | fi | |
13063 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13064 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13066 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 13067 | else |
5213506e RW |
13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13069 | $as_echo "no" >&6; } | |
278a7a38 AO |
13070 | fi |
13071 | ||
5213506e | 13072 | |
278a7a38 AO |
13073 | done |
13074 | fi | |
13075 | ||
13076 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13077 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13079 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13080 | if test -x $with_build_time_tools/${ncn_progname}; then |
13081 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13083 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13084 | break |
13085 | else | |
5213506e RW |
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13087 | $as_echo "no" >&6; } | |
e8b05380 PB |
13088 | fi |
13089 | done | |
13090 | fi | |
13091 | ||
13092 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13093 | for ncn_progname in c++ g++ cxx gxx; do | |
13094 | if test -n "$ncn_target_tool_prefix"; then | |
13095 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13096 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13098 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13099 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13100 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13101 | else |
13102 | if test -n "$CXX_FOR_TARGET"; then | |
13103 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13104 | else | |
1c710c3c DJ |
13105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13106 | for as_dir in $PATH | |
13107 | do | |
13108 | IFS=$as_save_IFS | |
13109 | test -z "$as_dir" && as_dir=. | |
5213506e | 13110 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13112 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13114 | break 2 |
13115 | fi | |
13116 | done | |
5213506e RW |
13117 | done |
13118 | IFS=$as_save_IFS | |
1c710c3c | 13119 | |
4de997d1 PB |
13120 | fi |
13121 | fi | |
1c710c3c | 13122 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 13123 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13125 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13126 | else |
5213506e RW |
13127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13128 | $as_echo "no" >&6; } | |
4de997d1 PB |
13129 | fi |
13130 | ||
5213506e | 13131 | |
e8b05380 PB |
13132 | fi |
13133 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13134 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13135 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13137 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13138 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13139 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13140 | else |
2693c0b0 PB |
13141 | if test -n "$CXX_FOR_TARGET"; then |
13142 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13143 | else |
1c710c3c DJ |
13144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13145 | for as_dir in $PATH | |
13146 | do | |
13147 | IFS=$as_save_IFS | |
13148 | test -z "$as_dir" && as_dir=. | |
5213506e | 13149 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13151 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13153 | break 2 |
13154 | fi | |
13155 | done | |
5213506e RW |
13156 | done |
13157 | IFS=$as_save_IFS | |
1c710c3c | 13158 | |
4de997d1 PB |
13159 | fi |
13160 | fi | |
1c710c3c | 13161 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 13162 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13164 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13165 | else |
5213506e RW |
13166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13167 | $as_echo "no" >&6; } | |
4de997d1 | 13168 | fi |
1c710c3c | 13169 | |
5213506e | 13170 | |
e8b05380 PB |
13171 | fi |
13172 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13173 | done | |
13174 | fi | |
1c710c3c | 13175 | |
2693c0b0 PB |
13176 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13177 | set dummy c++ g++ cxx gxx | |
13178 | if test $build = $target ; then | |
13179 | CXX_FOR_TARGET="$2" | |
4de997d1 | 13180 | else |
2693c0b0 | 13181 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13182 | fi |
1c00b503 PB |
13183 | else |
13184 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
13185 | fi |
13186 | ||
278a7a38 AO |
13187 | |
13188 | ||
13189 | if test -n "$GCC_FOR_TARGET"; then | |
13190 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13191 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13192 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13193 | fi | |
13194 | ||
13195 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13196 | for ncn_progname in gcc; do | |
13197 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13198 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13200 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13201 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13202 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13203 | else |
13204 | if test -n "$GCC_FOR_TARGET"; then | |
13205 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13206 | else | |
13207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13208 | for as_dir in $PATH | |
13209 | do | |
13210 | IFS=$as_save_IFS | |
13211 | test -z "$as_dir" && as_dir=. | |
5213506e | 13212 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13214 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13216 | break 2 |
13217 | fi | |
13218 | done | |
5213506e RW |
13219 | done |
13220 | IFS=$as_save_IFS | |
278a7a38 AO |
13221 | |
13222 | fi | |
13223 | fi | |
13224 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13225 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13227 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 13228 | else |
5213506e RW |
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13230 | $as_echo "no" >&6; } | |
278a7a38 AO |
13231 | fi |
13232 | ||
5213506e | 13233 | |
278a7a38 AO |
13234 | done |
13235 | fi | |
13236 | ||
13237 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13238 | for ncn_progname in gcc; do |
5213506e RW |
13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13240 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13241 | if test -x $with_build_time_tools/${ncn_progname}; then |
13242 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13244 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13245 | break |
13246 | else | |
5213506e RW |
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13248 | $as_echo "no" >&6; } | |
e8b05380 PB |
13249 | fi |
13250 | done | |
13251 | fi | |
13252 | ||
13253 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13254 | for ncn_progname in gcc; do | |
13255 | if test -n "$ncn_target_tool_prefix"; then | |
13256 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13257 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13259 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13260 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13261 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13262 | else |
e8b05380 PB |
13263 | if test -n "$GCC_FOR_TARGET"; then |
13264 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13265 | else |
1c710c3c DJ |
13266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13267 | for as_dir in $PATH | |
13268 | do | |
13269 | IFS=$as_save_IFS | |
13270 | test -z "$as_dir" && as_dir=. | |
5213506e | 13271 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13272 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13273 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13275 | break 2 |
13276 | fi | |
13277 | done | |
5213506e RW |
13278 | done |
13279 | IFS=$as_save_IFS | |
1c710c3c | 13280 | |
ca9f4b81 AO |
13281 | fi |
13282 | fi | |
1c710c3c | 13283 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13284 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13286 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13287 | else |
5213506e RW |
13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13289 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13290 | fi |
13291 | ||
5213506e | 13292 | |
e8b05380 PB |
13293 | fi |
13294 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13295 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13296 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13298 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13299 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13300 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13301 | else |
e8b05380 PB |
13302 | if test -n "$GCC_FOR_TARGET"; then |
13303 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13304 | else |
1c710c3c DJ |
13305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13306 | for as_dir in $PATH | |
13307 | do | |
13308 | IFS=$as_save_IFS | |
13309 | test -z "$as_dir" && as_dir=. | |
5213506e | 13310 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13312 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13314 | break 2 |
13315 | fi | |
13316 | done | |
5213506e RW |
13317 | done |
13318 | IFS=$as_save_IFS | |
1c710c3c | 13319 | |
ca9f4b81 AO |
13320 | fi |
13321 | fi | |
1c710c3c | 13322 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13323 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13325 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13326 | else |
5213506e RW |
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13328 | $as_echo "no" >&6; } | |
ca9f4b81 | 13329 | fi |
1c710c3c | 13330 | |
5213506e | 13331 | |
e8b05380 PB |
13332 | fi |
13333 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13334 | done | |
13335 | fi | |
1c710c3c | 13336 | |
e8b05380 PB |
13337 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13338 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
13339 | else |
13340 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
13341 | fi |
13342 | ||
278a7a38 AO |
13343 | |
13344 | ||
278a7a38 AO |
13345 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13346 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13347 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13348 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
13349 | fi |
13350 | ||
278a7a38 AO |
13351 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13352 | for ncn_progname in gfortran; do | |
13353 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 13354 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13356 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13357 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13358 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13359 | else |
278a7a38 AO |
13360 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13361 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 13362 | else |
1c710c3c DJ |
13363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13364 | for as_dir in $PATH | |
13365 | do | |
13366 | IFS=$as_save_IFS | |
13367 | test -z "$as_dir" && as_dir=. | |
5213506e | 13368 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13370 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13372 | break 2 |
13373 | fi | |
13374 | done | |
5213506e RW |
13375 | done |
13376 | IFS=$as_save_IFS | |
1c710c3c | 13377 | |
e8b05380 PB |
13378 | fi |
13379 | fi | |
278a7a38 AO |
13380 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13381 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13383 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13384 | else |
5213506e RW |
13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13386 | $as_echo "no" >&6; } | |
e8b05380 | 13387 | fi |
1c710c3c | 13388 | |
5213506e | 13389 | |
e8b05380 PB |
13390 | done |
13391 | fi | |
1c710c3c | 13392 | |
278a7a38 | 13393 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 13394 | for ncn_progname in gfortran; do |
5213506e RW |
13395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13396 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13397 | if test -x $with_build_time_tools/${ncn_progname}; then |
13398 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13400 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13401 | break |
13402 | else | |
5213506e RW |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13404 | $as_echo "no" >&6; } | |
e8b05380 PB |
13405 | fi |
13406 | done | |
13407 | fi | |
13408 | ||
13409 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13410 | for ncn_progname in gfortran; do | |
13411 | if test -n "$ncn_target_tool_prefix"; then | |
13412 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13413 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13415 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13416 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13417 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13418 | else |
13419 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13420 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13421 | else | |
13422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13423 | for as_dir in $PATH | |
13424 | do | |
13425 | IFS=$as_save_IFS | |
13426 | test -z "$as_dir" && as_dir=. | |
5213506e | 13427 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13428 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13429 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13431 | break 2 |
13432 | fi | |
13433 | done | |
5213506e RW |
13434 | done |
13435 | IFS=$as_save_IFS | |
1c710c3c | 13436 | |
e8b05380 PB |
13437 | fi |
13438 | fi | |
1c710c3c | 13439 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13440 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13442 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13443 | else |
5213506e RW |
13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13445 | $as_echo "no" >&6; } | |
e8b05380 PB |
13446 | fi |
13447 | ||
5213506e | 13448 | |
e8b05380 PB |
13449 | fi |
13450 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13451 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13452 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13454 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13455 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13456 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13457 | else |
13458 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13459 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13460 | else | |
1c710c3c DJ |
13461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13462 | for as_dir in $PATH | |
13463 | do | |
13464 | IFS=$as_save_IFS | |
13465 | test -z "$as_dir" && as_dir=. | |
5213506e | 13466 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13468 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13470 | break 2 |
13471 | fi | |
13472 | done | |
5213506e RW |
13473 | done |
13474 | IFS=$as_save_IFS | |
1c710c3c | 13475 | |
e8b05380 PB |
13476 | fi |
13477 | fi | |
1c710c3c | 13478 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13479 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13481 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13482 | else |
5213506e RW |
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13484 | $as_echo "no" >&6; } | |
e8b05380 | 13485 | fi |
1c710c3c | 13486 | |
5213506e | 13487 | |
e8b05380 PB |
13488 | fi |
13489 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13490 | done | |
13491 | fi | |
1c710c3c | 13492 | |
e8b05380 PB |
13493 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13494 | set dummy gfortran | |
2693c0b0 | 13495 | if test $build = $target ; then |
e8b05380 | 13496 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13497 | else |
e8b05380 PB |
13498 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13499 | fi | |
1c00b503 PB |
13500 | else |
13501 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13502 | fi |
13503 | ||
13504 | ||
13505 | ||
632e2a07 ILT |
13506 | if test -n "$GOC_FOR_TARGET"; then |
13507 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13508 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13509 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13510 | fi | |
13511 | ||
13512 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13513 | for ncn_progname in gccgo; do | |
13514 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13515 | set dummy ${ncn_progname}; ac_word=$2 | |
13516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13517 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13518 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13519 | $as_echo_n "(cached) " >&6 |
13520 | else | |
13521 | if test -n "$GOC_FOR_TARGET"; then | |
13522 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13523 | else | |
13524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13525 | for as_dir in $PATH | |
13526 | do | |
13527 | IFS=$as_save_IFS | |
13528 | test -z "$as_dir" && as_dir=. | |
13529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13531 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13533 | break 2 | |
13534 | fi | |
13535 | done | |
13536 | done | |
13537 | IFS=$as_save_IFS | |
13538 | ||
13539 | fi | |
13540 | fi | |
13541 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13542 | if test -n "$GOC_FOR_TARGET"; then | |
13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13544 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13545 | else | |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13547 | $as_echo "no" >&6; } | |
13548 | fi | |
13549 | ||
13550 | ||
13551 | done | |
13552 | fi | |
13553 | ||
13554 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13555 | for ncn_progname in gccgo; do | |
13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13557 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13558 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13559 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13561 | $as_echo "yes" >&6; } | |
13562 | break | |
13563 | else | |
13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13565 | $as_echo "no" >&6; } | |
13566 | fi | |
13567 | done | |
13568 | fi | |
13569 | ||
13570 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13571 | for ncn_progname in gccgo; do | |
13572 | if test -n "$ncn_target_tool_prefix"; then | |
13573 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13574 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13576 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13577 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13578 | $as_echo_n "(cached) " >&6 |
13579 | else | |
13580 | if test -n "$GOC_FOR_TARGET"; then | |
13581 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13582 | else | |
13583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13584 | for as_dir in $PATH | |
13585 | do | |
13586 | IFS=$as_save_IFS | |
13587 | test -z "$as_dir" && as_dir=. | |
13588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13589 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13590 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13592 | break 2 | |
13593 | fi | |
13594 | done | |
13595 | done | |
13596 | IFS=$as_save_IFS | |
13597 | ||
13598 | fi | |
13599 | fi | |
13600 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13601 | if test -n "$GOC_FOR_TARGET"; then | |
13602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13603 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13604 | else | |
13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13606 | $as_echo "no" >&6; } | |
13607 | fi | |
13608 | ||
13609 | ||
13610 | fi | |
13611 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13612 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13613 | set dummy ${ncn_progname}; ac_word=$2 | |
13614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13615 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13616 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13617 | $as_echo_n "(cached) " >&6 |
13618 | else | |
13619 | if test -n "$GOC_FOR_TARGET"; then | |
13620 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13621 | else | |
13622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13623 | for as_dir in $PATH | |
13624 | do | |
13625 | IFS=$as_save_IFS | |
13626 | test -z "$as_dir" && as_dir=. | |
13627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13629 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13631 | break 2 | |
13632 | fi | |
13633 | done | |
13634 | done | |
13635 | IFS=$as_save_IFS | |
13636 | ||
13637 | fi | |
13638 | fi | |
13639 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13640 | if test -n "$GOC_FOR_TARGET"; then | |
13641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13642 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13643 | else | |
13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13645 | $as_echo "no" >&6; } | |
13646 | fi | |
13647 | ||
13648 | ||
13649 | fi | |
13650 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
13651 | done | |
13652 | fi | |
13653 | ||
13654 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
13655 | set dummy gccgo | |
13656 | if test $build = $target ; then | |
13657 | GOC_FOR_TARGET="$2" | |
13658 | else | |
13659 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13660 | fi | |
13661 | else | |
13662 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
13663 | fi | |
13664 | ||
13665 | ||
13666 | ||
b4c522fa IB |
13667 | if test -n "$GDC_FOR_TARGET"; then |
13668 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13669 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13670 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13671 | fi | |
13672 | ||
13673 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13674 | for ncn_progname in gdc; do | |
13675 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13676 | set dummy ${ncn_progname}; ac_word=$2 | |
13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13678 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13679 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13680 | $as_echo_n "(cached) " >&6 |
13681 | else | |
13682 | if test -n "$GDC_FOR_TARGET"; then | |
13683 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13684 | else | |
13685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13686 | for as_dir in $PATH | |
13687 | do | |
13688 | IFS=$as_save_IFS | |
13689 | test -z "$as_dir" && as_dir=. | |
13690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13692 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13694 | break 2 | |
13695 | fi | |
13696 | done | |
13697 | done | |
13698 | IFS=$as_save_IFS | |
13699 | ||
13700 | fi | |
13701 | fi | |
13702 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13703 | if test -n "$GDC_FOR_TARGET"; then | |
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13705 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13706 | else | |
13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13708 | $as_echo "no" >&6; } | |
13709 | fi | |
13710 | ||
13711 | ||
13712 | done | |
13713 | fi | |
13714 | ||
13715 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13716 | for ncn_progname in gdc; do | |
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13718 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13719 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13720 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13722 | $as_echo "yes" >&6; } | |
13723 | break | |
13724 | else | |
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13726 | $as_echo "no" >&6; } | |
13727 | fi | |
13728 | done | |
13729 | fi | |
13730 | ||
13731 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13732 | for ncn_progname in gdc; do | |
13733 | if test -n "$ncn_target_tool_prefix"; then | |
13734 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13735 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13737 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13738 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13739 | $as_echo_n "(cached) " >&6 |
13740 | else | |
13741 | if test -n "$GDC_FOR_TARGET"; then | |
13742 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13743 | else | |
13744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13745 | for as_dir in $PATH | |
13746 | do | |
13747 | IFS=$as_save_IFS | |
13748 | test -z "$as_dir" && as_dir=. | |
13749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13751 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13753 | break 2 | |
13754 | fi | |
13755 | done | |
13756 | done | |
13757 | IFS=$as_save_IFS | |
13758 | ||
13759 | fi | |
13760 | fi | |
13761 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13762 | if test -n "$GDC_FOR_TARGET"; then | |
13763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13764 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13765 | else | |
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13767 | $as_echo "no" >&6; } | |
13768 | fi | |
13769 | ||
13770 | ||
13771 | fi | |
13772 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
13773 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13774 | set dummy ${ncn_progname}; ac_word=$2 | |
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13776 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13777 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13778 | $as_echo_n "(cached) " >&6 |
13779 | else | |
13780 | if test -n "$GDC_FOR_TARGET"; then | |
13781 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13782 | else | |
13783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13784 | for as_dir in $PATH | |
13785 | do | |
13786 | IFS=$as_save_IFS | |
13787 | test -z "$as_dir" && as_dir=. | |
13788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13790 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13792 | break 2 | |
13793 | fi | |
13794 | done | |
13795 | done | |
13796 | IFS=$as_save_IFS | |
13797 | ||
13798 | fi | |
13799 | fi | |
13800 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13801 | if test -n "$GDC_FOR_TARGET"; then | |
13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13803 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13804 | else | |
13805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13806 | $as_echo "no" >&6; } | |
13807 | fi | |
13808 | ||
13809 | ||
13810 | fi | |
13811 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
13812 | done | |
13813 | fi | |
13814 | ||
13815 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
13816 | set dummy gdc | |
13817 | if test $build = $target ; then | |
13818 | GDC_FOR_TARGET="$2" | |
13819 | else | |
13820 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13821 | fi | |
13822 | else | |
13823 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
13824 | fi | |
13825 | ||
13826 | ||
13827 | ||
e8b05380 PB |
13828 | cat > conftest.c << \EOF |
13829 | #ifdef __GNUC__ | |
13830 | gcc_yay; | |
13831 | #endif | |
13832 | EOF | |
13833 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
13834 | have_gcc_for_target=yes | |
13835 | else | |
13836 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
13837 | have_gcc_for_target=no | |
13838 | fi | |
13839 | rm conftest.c | |
13840 | ||
13841 | ||
13842 | ||
13843 | ||
13844 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
13845 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
13847 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13848 | if test -x $with_build_time_tools/ar; then |
13849 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
13850 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
13852 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 13853 | else |
5213506e RW |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13855 | $as_echo "no" >&6; } | |
d1f8db0c | 13856 | fi |
e8b05380 PB |
13857 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13858 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
13859 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
13860 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
13861 | fi |
13862 | fi | |
3e19841a | 13863 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13864 | # Extract the first word of "ar", so it can be a program name with args. |
13865 | set dummy ar; ac_word=$2 | |
5213506e RW |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13867 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13868 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 13869 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13870 | else |
1c710c3c DJ |
13871 | case $AR_FOR_TARGET in |
13872 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13873 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
13874 | ;; | |
e8b05380 | 13875 | *) |
1c710c3c DJ |
13876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13877 | for as_dir in $gcc_cv_tool_dirs | |
13878 | do | |
13879 | IFS=$as_save_IFS | |
13880 | test -z "$as_dir" && as_dir=. | |
5213506e | 13881 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13882 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13883 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13885 | break 2 |
13886 | fi | |
13887 | done | |
5213506e RW |
13888 | done |
13889 | IFS=$as_save_IFS | |
1c710c3c | 13890 | |
e8b05380 PB |
13891 | ;; |
13892 | esac | |
13893 | fi | |
1c710c3c | 13894 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 13895 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13897 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13898 | else |
5213506e RW |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13900 | $as_echo "no" >&6; } | |
4de997d1 PB |
13901 | fi |
13902 | ||
5213506e | 13903 | |
e8b05380 PB |
13904 | fi |
13905 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
13906 | |
13907 | ||
13908 | if test -n "$AR_FOR_TARGET"; then | |
13909 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
13910 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13911 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13912 | fi | |
13913 | ||
13914 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13915 | for ncn_progname in ar; do | |
13916 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13917 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13919 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13920 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13921 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13922 | else |
13923 | if test -n "$AR_FOR_TARGET"; then | |
13924 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13925 | else | |
13926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13927 | for as_dir in $PATH | |
13928 | do | |
13929 | IFS=$as_save_IFS | |
13930 | test -z "$as_dir" && as_dir=. | |
5213506e | 13931 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13932 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13933 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13935 | break 2 |
13936 | fi | |
13937 | done | |
5213506e RW |
13938 | done |
13939 | IFS=$as_save_IFS | |
278a7a38 AO |
13940 | |
13941 | fi | |
13942 | fi | |
13943 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13944 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
13945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13946 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 13947 | else |
5213506e RW |
13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13949 | $as_echo "no" >&6; } | |
278a7a38 AO |
13950 | fi |
13951 | ||
5213506e | 13952 | |
278a7a38 AO |
13953 | done |
13954 | fi | |
13955 | ||
13956 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13957 | for ncn_progname in ar; do |
5213506e RW |
13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13959 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13960 | if test -x $with_build_time_tools/${ncn_progname}; then |
13961 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13963 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13964 | break |
13965 | else | |
5213506e RW |
13966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13967 | $as_echo "no" >&6; } | |
e8b05380 PB |
13968 | fi |
13969 | done | |
13970 | fi | |
13971 | ||
13972 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
13973 | for ncn_progname in ar; do | |
13974 | if test -n "$ncn_target_tool_prefix"; then | |
13975 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13976 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13978 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13979 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13980 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13981 | else |
e8b05380 PB |
13982 | if test -n "$AR_FOR_TARGET"; then |
13983 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13984 | else |
1c710c3c DJ |
13985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13986 | for as_dir in $PATH | |
13987 | do | |
13988 | IFS=$as_save_IFS | |
13989 | test -z "$as_dir" && as_dir=. | |
5213506e | 13990 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13992 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13994 | break 2 |
13995 | fi | |
13996 | done | |
5213506e RW |
13997 | done |
13998 | IFS=$as_save_IFS | |
1c710c3c | 13999 | |
4de997d1 PB |
14000 | fi |
14001 | fi | |
1c710c3c | 14002 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14003 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14005 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 14006 | else |
5213506e RW |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14008 | $as_echo "no" >&6; } | |
4de997d1 PB |
14009 | fi |
14010 | ||
5213506e | 14011 | |
e8b05380 PB |
14012 | fi |
14013 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
14014 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14015 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14017 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14018 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14019 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14020 | else |
14021 | if test -n "$AR_FOR_TARGET"; then | |
14022 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14023 | else | |
1c710c3c DJ |
14024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14025 | for as_dir in $PATH | |
14026 | do | |
14027 | IFS=$as_save_IFS | |
14028 | test -z "$as_dir" && as_dir=. | |
5213506e | 14029 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14030 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14031 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 14032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14033 | break 2 |
14034 | fi | |
14035 | done | |
5213506e RW |
14036 | done |
14037 | IFS=$as_save_IFS | |
1c710c3c | 14038 | |
e8b05380 PB |
14039 | fi |
14040 | fi | |
1c710c3c | 14041 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14042 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14044 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 14045 | else |
5213506e RW |
14046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14047 | $as_echo "no" >&6; } | |
e8b05380 | 14048 | fi |
1c710c3c | 14049 | |
5213506e | 14050 | |
e8b05380 PB |
14051 | fi |
14052 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14053 | done | |
14054 | fi | |
1c710c3c | 14055 | |
e8b05380 PB |
14056 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14057 | set dummy ar | |
14058 | if test $build = $target ; then | |
14059 | AR_FOR_TARGET="$2" | |
14060 | else | |
14061 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 14062 | fi |
1c00b503 PB |
14063 | else |
14064 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
14065 | fi |
14066 | ||
d1f8db0c PB |
14067 | else |
14068 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
14069 | fi |
14070 | ||
14071 | ||
14072 | ||
14073 | ||
14074 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14075 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14077 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14078 | if test -x $with_build_time_tools/as; then |
14079 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14080 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
14081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14082 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 14083 | else |
5213506e RW |
14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14085 | $as_echo "no" >&6; } | |
d1f8db0c | 14086 | fi |
e8b05380 PB |
14087 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14088 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
14089 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14090 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
14091 | fi |
14092 | fi | |
3e19841a | 14093 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14094 | # Extract the first word of "as", so it can be a program name with args. |
14095 | set dummy as; ac_word=$2 | |
5213506e RW |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14097 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14098 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 14099 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14100 | else |
1c710c3c DJ |
14101 | case $AS_FOR_TARGET in |
14102 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14103 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14104 | ;; | |
e8b05380 | 14105 | *) |
1c710c3c DJ |
14106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14107 | for as_dir in $gcc_cv_tool_dirs | |
14108 | do | |
14109 | IFS=$as_save_IFS | |
14110 | test -z "$as_dir" && as_dir=. | |
5213506e | 14111 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14113 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14115 | break 2 |
14116 | fi | |
14117 | done | |
5213506e RW |
14118 | done |
14119 | IFS=$as_save_IFS | |
1c710c3c | 14120 | |
e8b05380 PB |
14121 | ;; |
14122 | esac | |
14123 | fi | |
1c710c3c | 14124 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 14125 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14127 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14128 | else |
5213506e RW |
14129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14130 | $as_echo "no" >&6; } | |
e8b05380 PB |
14131 | fi |
14132 | ||
5213506e | 14133 | |
e8b05380 PB |
14134 | fi |
14135 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
14136 | |
14137 | ||
14138 | if test -n "$AS_FOR_TARGET"; then | |
14139 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14140 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14141 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14142 | fi | |
14143 | ||
14144 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14145 | for ncn_progname in as; do | |
14146 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14147 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14149 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14150 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14151 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14152 | else |
14153 | if test -n "$AS_FOR_TARGET"; then | |
14154 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14155 | else | |
14156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14157 | for as_dir in $PATH | |
14158 | do | |
14159 | IFS=$as_save_IFS | |
14160 | test -z "$as_dir" && as_dir=. | |
5213506e | 14161 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14162 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14163 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14165 | break 2 |
14166 | fi | |
14167 | done | |
5213506e RW |
14168 | done |
14169 | IFS=$as_save_IFS | |
278a7a38 AO |
14170 | |
14171 | fi | |
14172 | fi | |
14173 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14174 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14176 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 14177 | else |
5213506e RW |
14178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14179 | $as_echo "no" >&6; } | |
278a7a38 AO |
14180 | fi |
14181 | ||
5213506e | 14182 | |
278a7a38 AO |
14183 | done |
14184 | fi | |
14185 | ||
14186 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14187 | for ncn_progname in as; do |
5213506e RW |
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14189 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14190 | if test -x $with_build_time_tools/${ncn_progname}; then |
14191 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14193 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14194 | break |
14195 | else | |
5213506e RW |
14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14197 | $as_echo "no" >&6; } | |
e8b05380 PB |
14198 | fi |
14199 | done | |
14200 | fi | |
14201 | ||
14202 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14203 | for ncn_progname in as; do | |
14204 | if test -n "$ncn_target_tool_prefix"; then | |
14205 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14206 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14208 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14209 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14210 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14211 | else |
14212 | if test -n "$AS_FOR_TARGET"; then | |
14213 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14214 | else | |
1c710c3c DJ |
14215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14216 | for as_dir in $PATH | |
14217 | do | |
14218 | IFS=$as_save_IFS | |
14219 | test -z "$as_dir" && as_dir=. | |
5213506e | 14220 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14222 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14224 | break 2 |
14225 | fi | |
14226 | done | |
5213506e RW |
14227 | done |
14228 | IFS=$as_save_IFS | |
1c710c3c | 14229 | |
e8b05380 PB |
14230 | fi |
14231 | fi | |
1c710c3c | 14232 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14233 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14235 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14236 | else |
5213506e RW |
14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14238 | $as_echo "no" >&6; } | |
e8b05380 PB |
14239 | fi |
14240 | ||
5213506e | 14241 | |
e8b05380 PB |
14242 | fi |
14243 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14244 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14245 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14247 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14248 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14249 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14250 | else |
e8b05380 PB |
14251 | if test -n "$AS_FOR_TARGET"; then |
14252 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14253 | else |
1c710c3c DJ |
14254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14255 | for as_dir in $PATH | |
14256 | do | |
14257 | IFS=$as_save_IFS | |
14258 | test -z "$as_dir" && as_dir=. | |
5213506e | 14259 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14260 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14261 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14263 | break 2 |
14264 | fi | |
14265 | done | |
5213506e RW |
14266 | done |
14267 | IFS=$as_save_IFS | |
1c710c3c | 14268 | |
4de997d1 PB |
14269 | fi |
14270 | fi | |
1c710c3c | 14271 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14272 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14274 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 14275 | else |
5213506e RW |
14276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14277 | $as_echo "no" >&6; } | |
4de997d1 | 14278 | fi |
1c710c3c | 14279 | |
5213506e | 14280 | |
e8b05380 PB |
14281 | fi |
14282 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14283 | done | |
14284 | fi | |
1c710c3c | 14285 | |
e8b05380 PB |
14286 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14287 | set dummy as | |
14288 | if test $build = $target ; then | |
14289 | AS_FOR_TARGET="$2" | |
14290 | else | |
14291 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 14292 | fi |
1c00b503 PB |
14293 | else |
14294 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 14295 | fi |
2693c0b0 | 14296 | |
d1f8db0c PB |
14297 | else |
14298 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
14299 | fi |
14300 | ||
e8b05380 PB |
14301 | |
14302 | ||
14303 | ||
14304 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14305 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14307 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14308 | if test -x $with_build_time_tools/dlltool; then |
14309 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14310 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14312 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 14313 | else |
5213506e RW |
14314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14315 | $as_echo "no" >&6; } | |
d1f8db0c | 14316 | fi |
e8b05380 PB |
14317 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14318 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
14319 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14320 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14321 | fi |
14322 | fi | |
3e19841a | 14323 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14324 | # Extract the first word of "dlltool", so it can be a program name with args. |
14325 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14327 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14328 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14329 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14330 | else |
1c710c3c DJ |
14331 | case $DLLTOOL_FOR_TARGET in |
14332 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14333 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14334 | ;; | |
e8b05380 | 14335 | *) |
1c710c3c DJ |
14336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14337 | for as_dir in $gcc_cv_tool_dirs | |
14338 | do | |
14339 | IFS=$as_save_IFS | |
14340 | test -z "$as_dir" && as_dir=. | |
5213506e | 14341 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14343 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14345 | break 2 |
14346 | fi | |
14347 | done | |
5213506e RW |
14348 | done |
14349 | IFS=$as_save_IFS | |
1c710c3c | 14350 | |
e8b05380 PB |
14351 | ;; |
14352 | esac | |
4de997d1 | 14353 | fi |
1c710c3c | 14354 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 14355 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14357 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14358 | else |
5213506e RW |
14359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14360 | $as_echo "no" >&6; } | |
4de997d1 PB |
14361 | fi |
14362 | ||
5213506e | 14363 | |
e8b05380 PB |
14364 | fi |
14365 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
14366 | |
14367 | ||
14368 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14369 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14370 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14371 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14372 | fi | |
14373 | ||
14374 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14375 | for ncn_progname in dlltool; do | |
14376 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14377 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14379 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14380 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14381 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14382 | else |
14383 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14384 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14385 | else | |
14386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14387 | for as_dir in $PATH | |
14388 | do | |
14389 | IFS=$as_save_IFS | |
14390 | test -z "$as_dir" && as_dir=. | |
5213506e | 14391 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14393 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14395 | break 2 |
14396 | fi | |
14397 | done | |
5213506e RW |
14398 | done |
14399 | IFS=$as_save_IFS | |
278a7a38 AO |
14400 | |
14401 | fi | |
14402 | fi | |
14403 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14404 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14406 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 14407 | else |
5213506e RW |
14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14409 | $as_echo "no" >&6; } | |
278a7a38 AO |
14410 | fi |
14411 | ||
5213506e | 14412 | |
278a7a38 AO |
14413 | done |
14414 | fi | |
14415 | ||
14416 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14417 | for ncn_progname in dlltool; do |
5213506e RW |
14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14419 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14420 | if test -x $with_build_time_tools/${ncn_progname}; then |
14421 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14423 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14424 | break |
14425 | else | |
5213506e RW |
14426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14427 | $as_echo "no" >&6; } | |
e8b05380 PB |
14428 | fi |
14429 | done | |
14430 | fi | |
14431 | ||
14432 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14433 | for ncn_progname in dlltool; do | |
14434 | if test -n "$ncn_target_tool_prefix"; then | |
14435 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14436 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14438 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14439 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14440 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14441 | else |
e8b05380 PB |
14442 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14443 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14444 | else |
1c710c3c DJ |
14445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14446 | for as_dir in $PATH | |
14447 | do | |
14448 | IFS=$as_save_IFS | |
14449 | test -z "$as_dir" && as_dir=. | |
5213506e | 14450 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14451 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14452 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14454 | break 2 |
14455 | fi | |
14456 | done | |
5213506e RW |
14457 | done |
14458 | IFS=$as_save_IFS | |
1c710c3c | 14459 | |
4de997d1 PB |
14460 | fi |
14461 | fi | |
1c710c3c | 14462 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14463 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14465 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14466 | else |
5213506e RW |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14468 | $as_echo "no" >&6; } | |
4de997d1 | 14469 | fi |
4de997d1 | 14470 | |
5213506e | 14471 | |
e8b05380 PB |
14472 | fi |
14473 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14474 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14475 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14477 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14478 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14479 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14480 | else |
e8b05380 PB |
14481 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14482 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14483 | else |
1c710c3c DJ |
14484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14485 | for as_dir in $PATH | |
14486 | do | |
14487 | IFS=$as_save_IFS | |
14488 | test -z "$as_dir" && as_dir=. | |
5213506e | 14489 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14491 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14493 | break 2 |
14494 | fi | |
14495 | done | |
5213506e RW |
14496 | done |
14497 | IFS=$as_save_IFS | |
1c710c3c | 14498 | |
4de997d1 PB |
14499 | fi |
14500 | fi | |
1c710c3c | 14501 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14502 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14504 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14505 | else |
5213506e RW |
14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14507 | $as_echo "no" >&6; } | |
4de997d1 | 14508 | fi |
1c710c3c | 14509 | |
5213506e | 14510 | |
e8b05380 PB |
14511 | fi |
14512 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
14513 | done | |
14514 | fi | |
1c710c3c | 14515 | |
e8b05380 PB |
14516 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
14517 | set dummy dlltool | |
14518 | if test $build = $target ; then | |
14519 | DLLTOOL_FOR_TARGET="$2" | |
14520 | else | |
14521 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14522 | fi | |
1c00b503 PB |
14523 | else |
14524 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
14525 | fi |
14526 | ||
d1f8db0c PB |
14527 | else |
14528 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14529 | fi |
14530 | ||
4de997d1 | 14531 | |
e8b05380 PB |
14532 | |
14533 | ||
3b5e8ee4 IS |
14534 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
14535 | if test -n "$with_build_time_tools"; then | |
14536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14537 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14538 | if test -x $with_build_time_tools/dsymutil; then | |
14539 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14540 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14542 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14543 | else | |
14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14545 | $as_echo "no" >&6; } | |
14546 | fi | |
14547 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14548 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14549 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14550 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14551 | fi | |
14552 | fi | |
14553 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14554 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14555 | set dummy dsymutil; ac_word=$2 | |
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14557 | $as_echo_n "checking for $ac_word... " >&6; } | |
14558 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14559 | $as_echo_n "(cached) " >&6 | |
14560 | else | |
14561 | case $DSYMUTIL_FOR_TARGET in | |
14562 | [\\/]* | ?:[\\/]*) | |
14563 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14564 | ;; | |
14565 | *) | |
14566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14567 | for as_dir in $gcc_cv_tool_dirs | |
14568 | do | |
14569 | IFS=$as_save_IFS | |
14570 | test -z "$as_dir" && as_dir=. | |
14571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14572 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14573 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14575 | break 2 | |
14576 | fi | |
14577 | done | |
14578 | done | |
14579 | IFS=$as_save_IFS | |
14580 | ||
14581 | ;; | |
14582 | esac | |
14583 | fi | |
14584 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14585 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14587 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14588 | else | |
14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14590 | $as_echo "no" >&6; } | |
14591 | fi | |
14592 | ||
14593 | ||
14594 | fi | |
14595 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14596 | ||
14597 | ||
14598 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14599 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14600 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14601 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14602 | fi | |
14603 | ||
14604 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14605 | for ncn_progname in dsymutil; do | |
14606 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14607 | set dummy ${ncn_progname}; ac_word=$2 | |
14608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14609 | $as_echo_n "checking for $ac_word... " >&6; } | |
14610 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14611 | $as_echo_n "(cached) " >&6 | |
14612 | else | |
14613 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14614 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14615 | else | |
14616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14617 | for as_dir in $PATH | |
14618 | do | |
14619 | IFS=$as_save_IFS | |
14620 | test -z "$as_dir" && as_dir=. | |
14621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14623 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14625 | break 2 | |
14626 | fi | |
14627 | done | |
14628 | done | |
14629 | IFS=$as_save_IFS | |
14630 | ||
14631 | fi | |
14632 | fi | |
14633 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14634 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14636 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14637 | else | |
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14639 | $as_echo "no" >&6; } | |
14640 | fi | |
14641 | ||
14642 | ||
14643 | done | |
14644 | fi | |
14645 | ||
14646 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14647 | for ncn_progname in dsymutil; do | |
14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14649 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14650 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14651 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14653 | $as_echo "yes" >&6; } | |
14654 | break | |
14655 | else | |
14656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14657 | $as_echo "no" >&6; } | |
14658 | fi | |
14659 | done | |
14660 | fi | |
14661 | ||
14662 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14663 | for ncn_progname in dsymutil; do | |
14664 | if test -n "$ncn_target_tool_prefix"; then | |
14665 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14666 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14668 | $as_echo_n "checking for $ac_word... " >&6; } | |
14669 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14670 | $as_echo_n "(cached) " >&6 | |
14671 | else | |
14672 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14673 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14674 | else | |
14675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14676 | for as_dir in $PATH | |
14677 | do | |
14678 | IFS=$as_save_IFS | |
14679 | test -z "$as_dir" && as_dir=. | |
14680 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14681 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14682 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14684 | break 2 | |
14685 | fi | |
14686 | done | |
14687 | done | |
14688 | IFS=$as_save_IFS | |
14689 | ||
14690 | fi | |
14691 | fi | |
14692 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14693 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14695 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14696 | else | |
14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14698 | $as_echo "no" >&6; } | |
14699 | fi | |
14700 | ||
14701 | ||
14702 | fi | |
14703 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14704 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14705 | set dummy ${ncn_progname}; ac_word=$2 | |
14706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14707 | $as_echo_n "checking for $ac_word... " >&6; } | |
14708 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14709 | $as_echo_n "(cached) " >&6 | |
14710 | else | |
14711 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14712 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14713 | else | |
14714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14715 | for as_dir in $PATH | |
14716 | do | |
14717 | IFS=$as_save_IFS | |
14718 | test -z "$as_dir" && as_dir=. | |
14719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14721 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14723 | break 2 | |
14724 | fi | |
14725 | done | |
14726 | done | |
14727 | IFS=$as_save_IFS | |
14728 | ||
14729 | fi | |
14730 | fi | |
14731 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14732 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14734 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14735 | else | |
14736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14737 | $as_echo "no" >&6; } | |
14738 | fi | |
14739 | ||
14740 | ||
14741 | fi | |
14742 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
14743 | done | |
14744 | fi | |
14745 | ||
14746 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
14747 | set dummy dsymutil | |
14748 | if test $build = $target ; then | |
14749 | DSYMUTIL_FOR_TARGET="$2" | |
14750 | else | |
14751 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14752 | fi | |
14753 | else | |
14754 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
14755 | fi | |
14756 | ||
14757 | else | |
14758 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14759 | fi | |
14760 | ||
14761 | ||
14762 | ||
14763 | ||
e8b05380 PB |
14764 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
14765 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
14767 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14768 | if test -x $with_build_time_tools/ld; then |
14769 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
14770 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
14772 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 14773 | else |
5213506e RW |
14774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14775 | $as_echo "no" >&6; } | |
d1f8db0c | 14776 | fi |
e8b05380 PB |
14777 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14778 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
14779 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
14780 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 14781 | fi |
e8b05380 | 14782 | fi |
3e19841a | 14783 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14784 | # Extract the first word of "ld", so it can be a program name with args. |
14785 | set dummy ld; ac_word=$2 | |
5213506e RW |
14786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14787 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14788 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 14789 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14790 | else |
1c710c3c DJ |
14791 | case $LD_FOR_TARGET in |
14792 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14793 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
14794 | ;; | |
e8b05380 | 14795 | *) |
1c710c3c DJ |
14796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14797 | for as_dir in $gcc_cv_tool_dirs | |
14798 | do | |
14799 | IFS=$as_save_IFS | |
14800 | test -z "$as_dir" && as_dir=. | |
5213506e | 14801 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14802 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14803 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14805 | break 2 |
14806 | fi | |
14807 | done | |
5213506e RW |
14808 | done |
14809 | IFS=$as_save_IFS | |
1c710c3c | 14810 | |
e8b05380 PB |
14811 | ;; |
14812 | esac | |
4de997d1 | 14813 | fi |
1c710c3c | 14814 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 14815 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14817 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 14818 | else |
5213506e RW |
14819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14820 | $as_echo "no" >&6; } | |
4de997d1 | 14821 | fi |
2693c0b0 | 14822 | |
5213506e | 14823 | |
e8b05380 PB |
14824 | fi |
14825 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
14826 | |
14827 | ||
14828 | if test -n "$LD_FOR_TARGET"; then | |
14829 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
14830 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14831 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14832 | fi | |
14833 | ||
14834 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14835 | for ncn_progname in ld; do | |
14836 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14837 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14839 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14840 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14841 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14842 | else |
14843 | if test -n "$LD_FOR_TARGET"; then | |
14844 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
14845 | else | |
14846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14847 | for as_dir in $PATH | |
14848 | do | |
14849 | IFS=$as_save_IFS | |
14850 | test -z "$as_dir" && as_dir=. | |
5213506e | 14851 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14852 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14853 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14855 | break 2 |
14856 | fi | |
14857 | done | |
5213506e RW |
14858 | done |
14859 | IFS=$as_save_IFS | |
278a7a38 AO |
14860 | |
14861 | fi | |
14862 | fi | |
14863 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14864 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14866 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 14867 | else |
5213506e RW |
14868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14869 | $as_echo "no" >&6; } | |
278a7a38 AO |
14870 | fi |
14871 | ||
5213506e | 14872 | |
278a7a38 AO |
14873 | done |
14874 | fi | |
14875 | ||
14876 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14877 | for ncn_progname in ld; do |
5213506e RW |
14878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14879 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14880 | if test -x $with_build_time_tools/${ncn_progname}; then |
14881 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14883 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14884 | break |
14885 | else | |
5213506e RW |
14886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14887 | $as_echo "no" >&6; } | |
e8b05380 PB |
14888 | fi |
14889 | done | |
ca9f4b81 AO |
14890 | fi |
14891 | ||
e8b05380 PB |
14892 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
14893 | for ncn_progname in ld; do | |
14894 | if test -n "$ncn_target_tool_prefix"; then | |
14895 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14896 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14898 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14899 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14900 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14901 | else |
4de997d1 PB |
14902 | if test -n "$LD_FOR_TARGET"; then |
14903 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14904 | else |
1c710c3c DJ |
14905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14906 | for as_dir in $PATH | |
14907 | do | |
14908 | IFS=$as_save_IFS | |
14909 | test -z "$as_dir" && as_dir=. | |
5213506e | 14910 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14911 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14912 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14914 | break 2 |
14915 | fi | |
14916 | done | |
5213506e RW |
14917 | done |
14918 | IFS=$as_save_IFS | |
1c710c3c | 14919 | |
ca9f4b81 AO |
14920 | fi |
14921 | fi | |
1c710c3c | 14922 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 14923 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14925 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14926 | else |
5213506e RW |
14927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14928 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14929 | fi |
14930 | ||
5213506e | 14931 | |
e8b05380 PB |
14932 | fi |
14933 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
14934 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14935 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14937 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14938 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14939 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14940 | else |
2693c0b0 PB |
14941 | if test -n "$LD_FOR_TARGET"; then |
14942 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14943 | else |
1c710c3c DJ |
14944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14945 | for as_dir in $PATH | |
14946 | do | |
14947 | IFS=$as_save_IFS | |
14948 | test -z "$as_dir" && as_dir=. | |
5213506e | 14949 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14951 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14953 | break 2 |
14954 | fi | |
14955 | done | |
5213506e RW |
14956 | done |
14957 | IFS=$as_save_IFS | |
1c710c3c | 14958 | |
ca9f4b81 AO |
14959 | fi |
14960 | fi | |
1c710c3c | 14961 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 14962 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14964 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14965 | else |
5213506e RW |
14966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14967 | $as_echo "no" >&6; } | |
ca9f4b81 | 14968 | fi |
1c710c3c | 14969 | |
5213506e | 14970 | |
e8b05380 PB |
14971 | fi |
14972 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
14973 | done | |
14974 | fi | |
1c710c3c | 14975 | |
2693c0b0 PB |
14976 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
14977 | set dummy ld | |
14978 | if test $build = $target ; then | |
14979 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 14980 | else |
2693c0b0 | 14981 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14982 | fi |
1c00b503 PB |
14983 | else |
14984 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
14985 | fi |
14986 | ||
d1f8db0c PB |
14987 | else |
14988 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
14989 | fi |
14990 | ||
14991 | ||
14992 | ||
14993 | ||
14994 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14995 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
14997 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14998 | if test -x $with_build_time_tools/lipo; then |
14999 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
15000 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
15002 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 15003 | else |
5213506e RW |
15004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15005 | $as_echo "no" >&6; } | |
d1f8db0c | 15006 | fi |
e8b05380 PB |
15007 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15008 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
15009 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
15010 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
15011 | fi |
15012 | fi | |
278a7a38 AO |
15013 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
15014 | # Extract the first word of "lipo", so it can be a program name with args. | |
15015 | set dummy lipo; ac_word=$2 | |
5213506e RW |
15016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15017 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15018 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15019 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15020 | else |
15021 | case $LIPO_FOR_TARGET in | |
15022 | [\\/]* | ?:[\\/]*) | |
15023 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
15024 | ;; | |
15025 | *) | |
15026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15027 | for as_dir in $gcc_cv_tool_dirs | |
15028 | do | |
15029 | IFS=$as_save_IFS | |
15030 | test -z "$as_dir" && as_dir=. | |
5213506e | 15031 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15033 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15035 | break 2 |
15036 | fi | |
15037 | done | |
5213506e RW |
15038 | done |
15039 | IFS=$as_save_IFS | |
278a7a38 AO |
15040 | |
15041 | ;; | |
15042 | esac | |
15043 | fi | |
15044 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 15045 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15047 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 15048 | else |
5213506e RW |
15049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15050 | $as_echo "no" >&6; } | |
278a7a38 AO |
15051 | fi |
15052 | ||
5213506e | 15053 | |
278a7a38 AO |
15054 | fi |
15055 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15056 | ||
15057 | ||
15058 | if test -n "$LIPO_FOR_TARGET"; then | |
15059 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15060 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15061 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15062 | fi | |
15063 | ||
15064 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15065 | for ncn_progname in lipo; do | |
15066 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15067 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15069 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15070 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15071 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15072 | else |
278a7a38 AO |
15073 | if test -n "$LIPO_FOR_TARGET"; then |
15074 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15075 | else | |
15076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15077 | for as_dir in $PATH | |
1c710c3c DJ |
15078 | do |
15079 | IFS=$as_save_IFS | |
15080 | test -z "$as_dir" && as_dir=. | |
5213506e | 15081 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15083 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15085 | break 2 |
15086 | fi | |
15087 | done | |
5213506e RW |
15088 | done |
15089 | IFS=$as_save_IFS | |
1c710c3c | 15090 | |
e8b05380 | 15091 | fi |
278a7a38 AO |
15092 | fi |
15093 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 15094 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15096 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 15097 | else |
5213506e RW |
15098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15099 | $as_echo "no" >&6; } | |
e8b05380 PB |
15100 | fi |
15101 | ||
5213506e | 15102 | |
278a7a38 | 15103 | done |
e8b05380 | 15104 | fi |
278a7a38 AO |
15105 | |
15106 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15107 | for ncn_progname in lipo; do |
5213506e RW |
15108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15109 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15110 | if test -x $with_build_time_tools/${ncn_progname}; then |
15111 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15113 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15114 | break |
15115 | else | |
5213506e RW |
15116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15117 | $as_echo "no" >&6; } | |
e8b05380 PB |
15118 | fi |
15119 | done | |
15120 | fi | |
15121 | ||
15122 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15123 | for ncn_progname in lipo; do | |
15124 | if test -n "$ncn_target_tool_prefix"; then | |
15125 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15126 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15128 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15129 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15130 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15131 | else |
15132 | if test -n "$LIPO_FOR_TARGET"; then | |
15133 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15134 | else | |
1c710c3c DJ |
15135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15136 | for as_dir in $PATH | |
15137 | do | |
15138 | IFS=$as_save_IFS | |
15139 | test -z "$as_dir" && as_dir=. | |
5213506e | 15140 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15142 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15144 | break 2 |
15145 | fi | |
15146 | done | |
5213506e RW |
15147 | done |
15148 | IFS=$as_save_IFS | |
1c710c3c | 15149 | |
040b1c5a GK |
15150 | fi |
15151 | fi | |
1c710c3c | 15152 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15153 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15155 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15156 | else |
5213506e RW |
15157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15158 | $as_echo "no" >&6; } | |
040b1c5a GK |
15159 | fi |
15160 | ||
5213506e | 15161 | |
e8b05380 PB |
15162 | fi |
15163 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15164 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15165 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15167 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15168 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15169 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15170 | else |
15171 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
15172 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
15173 | else | |
1c710c3c DJ |
15174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15175 | for as_dir in $PATH | |
15176 | do | |
15177 | IFS=$as_save_IFS | |
15178 | test -z "$as_dir" && as_dir=. | |
5213506e | 15179 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15181 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15183 | break 2 |
15184 | fi | |
15185 | done | |
5213506e RW |
15186 | done |
15187 | IFS=$as_save_IFS | |
1c710c3c | 15188 | |
040b1c5a GK |
15189 | fi |
15190 | fi | |
1c710c3c | 15191 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15192 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15194 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15195 | else |
5213506e RW |
15196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15197 | $as_echo "no" >&6; } | |
040b1c5a | 15198 | fi |
1c710c3c | 15199 | |
5213506e | 15200 | |
e8b05380 PB |
15201 | fi |
15202 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15203 | done | |
15204 | fi | |
1c710c3c | 15205 | |
040b1c5a GK |
15206 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15207 | set dummy lipo | |
15208 | if test $build = $target ; then | |
15209 | LIPO_FOR_TARGET="$2" | |
15210 | else | |
15211 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15212 | fi | |
1c00b503 PB |
15213 | else |
15214 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
15215 | fi |
15216 | ||
d1f8db0c PB |
15217 | else |
15218 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
15219 | fi |
15220 | ||
15221 | ||
15222 | ||
15223 | ||
15224 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15225 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15227 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15228 | if test -x $with_build_time_tools/nm; then |
15229 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15230 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
15231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15232 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 15233 | else |
5213506e RW |
15234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15235 | $as_echo "no" >&6; } | |
d1f8db0c | 15236 | fi |
e8b05380 PB |
15237 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15238 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
15239 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15240 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
15241 | fi |
15242 | fi | |
3e19841a | 15243 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15244 | # Extract the first word of "nm", so it can be a program name with args. |
15245 | set dummy nm; ac_word=$2 | |
5213506e RW |
15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15247 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15248 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 15249 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15250 | else |
1c710c3c DJ |
15251 | case $NM_FOR_TARGET in |
15252 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15253 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15254 | ;; | |
e8b05380 | 15255 | *) |
1c710c3c DJ |
15256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15257 | for as_dir in $gcc_cv_tool_dirs | |
15258 | do | |
15259 | IFS=$as_save_IFS | |
15260 | test -z "$as_dir" && as_dir=. | |
5213506e | 15261 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15263 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15265 | break 2 |
15266 | fi | |
15267 | done | |
5213506e RW |
15268 | done |
15269 | IFS=$as_save_IFS | |
1c710c3c | 15270 | |
e8b05380 PB |
15271 | ;; |
15272 | esac | |
15273 | fi | |
1c710c3c | 15274 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 15275 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15277 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 15278 | else |
5213506e RW |
15279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15280 | $as_echo "no" >&6; } | |
e8b05380 PB |
15281 | fi |
15282 | ||
5213506e | 15283 | |
e8b05380 PB |
15284 | fi |
15285 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
15286 | |
15287 | ||
15288 | if test -n "$NM_FOR_TARGET"; then | |
15289 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15290 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15291 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15292 | fi | |
15293 | ||
15294 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15295 | for ncn_progname in nm; do | |
15296 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15297 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15299 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15300 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15301 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15302 | else |
15303 | if test -n "$NM_FOR_TARGET"; then | |
15304 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15305 | else | |
15306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15307 | for as_dir in $PATH | |
15308 | do | |
15309 | IFS=$as_save_IFS | |
15310 | test -z "$as_dir" && as_dir=. | |
5213506e | 15311 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15312 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15313 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15315 | break 2 |
15316 | fi | |
15317 | done | |
5213506e RW |
15318 | done |
15319 | IFS=$as_save_IFS | |
278a7a38 AO |
15320 | |
15321 | fi | |
15322 | fi | |
15323 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15324 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
15325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15326 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 15327 | else |
5213506e RW |
15328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15329 | $as_echo "no" >&6; } | |
278a7a38 AO |
15330 | fi |
15331 | ||
5213506e | 15332 | |
278a7a38 AO |
15333 | done |
15334 | fi | |
15335 | ||
15336 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15337 | for ncn_progname in nm; do |
5213506e RW |
15338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15339 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15340 | if test -x $with_build_time_tools/${ncn_progname}; then |
15341 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15343 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15344 | break |
15345 | else | |
5213506e RW |
15346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15347 | $as_echo "no" >&6; } | |
e8b05380 PB |
15348 | fi |
15349 | done | |
15350 | fi | |
15351 | ||
15352 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15353 | for ncn_progname in nm; do | |
15354 | if test -n "$ncn_target_tool_prefix"; then | |
15355 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15356 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15358 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15359 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15360 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15361 | else |
4de997d1 PB |
15362 | if test -n "$NM_FOR_TARGET"; then |
15363 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15364 | else |
1c710c3c DJ |
15365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15366 | for as_dir in $PATH | |
15367 | do | |
15368 | IFS=$as_save_IFS | |
15369 | test -z "$as_dir" && as_dir=. | |
5213506e | 15370 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15372 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15374 | break 2 |
15375 | fi | |
15376 | done | |
5213506e RW |
15377 | done |
15378 | IFS=$as_save_IFS | |
1c710c3c | 15379 | |
ca9f4b81 AO |
15380 | fi |
15381 | fi | |
1c710c3c | 15382 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 15383 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15385 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15386 | else |
5213506e RW |
15387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15388 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15389 | fi |
15390 | ||
5213506e | 15391 | |
e8b05380 PB |
15392 | fi |
15393 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15394 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15395 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15397 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15398 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15399 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15400 | else |
2693c0b0 PB |
15401 | if test -n "$NM_FOR_TARGET"; then |
15402 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15403 | else |
1c710c3c DJ |
15404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15405 | for as_dir in $PATH | |
15406 | do | |
15407 | IFS=$as_save_IFS | |
15408 | test -z "$as_dir" && as_dir=. | |
5213506e | 15409 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15410 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15411 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15413 | break 2 |
15414 | fi | |
15415 | done | |
5213506e RW |
15416 | done |
15417 | IFS=$as_save_IFS | |
1c710c3c | 15418 | |
ca9f4b81 AO |
15419 | fi |
15420 | fi | |
1c710c3c | 15421 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 15422 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15424 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15425 | else |
5213506e RW |
15426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15427 | $as_echo "no" >&6; } | |
ca9f4b81 | 15428 | fi |
1c710c3c | 15429 | |
5213506e | 15430 | |
e8b05380 PB |
15431 | fi |
15432 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15433 | done | |
15434 | fi | |
1c710c3c | 15435 | |
2693c0b0 PB |
15436 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15437 | set dummy nm | |
15438 | if test $build = $target ; then | |
15439 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 15440 | else |
2693c0b0 | 15441 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15442 | fi |
1c00b503 PB |
15443 | else |
15444 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
15445 | fi |
15446 | ||
d1f8db0c PB |
15447 | else |
15448 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
15449 | fi |
15450 | ||
15451 | ||
15452 | ||
15453 | ||
9bccfdf5 AP |
15454 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15455 | if test -n "$with_build_time_tools"; then | |
15456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15457 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15458 | if test -x $with_build_time_tools/objcopy; then | |
15459 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15460 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15462 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15463 | else | |
15464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15465 | $as_echo "no" >&6; } | |
15466 | fi | |
15467 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15468 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15469 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15470 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15471 | fi | |
15472 | fi | |
15473 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15474 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15475 | set dummy objcopy; ac_word=$2 | |
15476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15477 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15478 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15479 | $as_echo_n "(cached) " >&6 |
15480 | else | |
15481 | case $OBJCOPY_FOR_TARGET in | |
15482 | [\\/]* | ?:[\\/]*) | |
15483 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15484 | ;; | |
15485 | *) | |
15486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15487 | for as_dir in $gcc_cv_tool_dirs | |
15488 | do | |
15489 | IFS=$as_save_IFS | |
15490 | test -z "$as_dir" && as_dir=. | |
15491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15492 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15493 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15495 | break 2 | |
15496 | fi | |
15497 | done | |
15498 | done | |
15499 | IFS=$as_save_IFS | |
15500 | ||
15501 | ;; | |
15502 | esac | |
15503 | fi | |
15504 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15505 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15507 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15508 | else | |
15509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15510 | $as_echo "no" >&6; } | |
15511 | fi | |
15512 | ||
15513 | ||
15514 | fi | |
15515 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15516 | ||
15517 | ||
15518 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15519 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15520 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15521 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15522 | fi | |
15523 | ||
15524 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15525 | for ncn_progname in objcopy; do | |
15526 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15527 | set dummy ${ncn_progname}; ac_word=$2 | |
15528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15529 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15530 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15531 | $as_echo_n "(cached) " >&6 |
15532 | else | |
15533 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15534 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15535 | else | |
15536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15537 | for as_dir in $PATH | |
15538 | do | |
15539 | IFS=$as_save_IFS | |
15540 | test -z "$as_dir" && as_dir=. | |
15541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15542 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15543 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15545 | break 2 | |
15546 | fi | |
15547 | done | |
15548 | done | |
15549 | IFS=$as_save_IFS | |
15550 | ||
15551 | fi | |
15552 | fi | |
15553 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15554 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15556 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15557 | else | |
15558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15559 | $as_echo "no" >&6; } | |
15560 | fi | |
15561 | ||
15562 | ||
15563 | done | |
15564 | fi | |
15565 | ||
15566 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15567 | for ncn_progname in objcopy; do | |
15568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15569 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15570 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15571 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15573 | $as_echo "yes" >&6; } | |
15574 | break | |
15575 | else | |
15576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15577 | $as_echo "no" >&6; } | |
15578 | fi | |
15579 | done | |
15580 | fi | |
15581 | ||
15582 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15583 | for ncn_progname in objcopy; do | |
15584 | if test -n "$ncn_target_tool_prefix"; then | |
15585 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15586 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15588 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15589 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15590 | $as_echo_n "(cached) " >&6 |
15591 | else | |
15592 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15593 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15594 | else | |
15595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15596 | for as_dir in $PATH | |
15597 | do | |
15598 | IFS=$as_save_IFS | |
15599 | test -z "$as_dir" && as_dir=. | |
15600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15602 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15604 | break 2 | |
15605 | fi | |
15606 | done | |
15607 | done | |
15608 | IFS=$as_save_IFS | |
15609 | ||
15610 | fi | |
15611 | fi | |
15612 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15613 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15615 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15616 | else | |
15617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15618 | $as_echo "no" >&6; } | |
15619 | fi | |
15620 | ||
15621 | ||
15622 | fi | |
15623 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15624 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15625 | set dummy ${ncn_progname}; ac_word=$2 | |
15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15627 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15628 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15629 | $as_echo_n "(cached) " >&6 |
15630 | else | |
15631 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15632 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15633 | else | |
15634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15635 | for as_dir in $PATH | |
15636 | do | |
15637 | IFS=$as_save_IFS | |
15638 | test -z "$as_dir" && as_dir=. | |
15639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15640 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15641 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15643 | break 2 | |
15644 | fi | |
15645 | done | |
15646 | done | |
15647 | IFS=$as_save_IFS | |
15648 | ||
15649 | fi | |
15650 | fi | |
15651 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15652 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15654 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15655 | else | |
15656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15657 | $as_echo "no" >&6; } | |
15658 | fi | |
15659 | ||
15660 | ||
15661 | fi | |
15662 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15663 | done | |
15664 | fi | |
15665 | ||
15666 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15667 | set dummy objcopy | |
15668 | if test $build = $target ; then | |
15669 | OBJCOPY_FOR_TARGET="$2" | |
15670 | else | |
15671 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15672 | fi | |
15673 | else | |
15674 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15675 | fi | |
15676 | ||
15677 | else | |
15678 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15679 | fi | |
15680 | ||
15681 | ||
15682 | ||
15683 | ||
e8b05380 PB |
15684 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15685 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15687 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15688 | if test -x $with_build_time_tools/objdump; then |
15689 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15690 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
15691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15692 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 15693 | else |
5213506e RW |
15694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15695 | $as_echo "no" >&6; } | |
d1f8db0c | 15696 | fi |
e8b05380 PB |
15697 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15698 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
15699 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15700 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15701 | fi |
15702 | fi | |
3e19841a | 15703 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15704 | # Extract the first word of "objdump", so it can be a program name with args. |
15705 | set dummy objdump; ac_word=$2 | |
5213506e RW |
15706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15707 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15708 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15709 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15710 | else |
1c710c3c DJ |
15711 | case $OBJDUMP_FOR_TARGET in |
15712 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15713 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15714 | ;; | |
e8b05380 | 15715 | *) |
1c710c3c DJ |
15716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15717 | for as_dir in $gcc_cv_tool_dirs | |
15718 | do | |
15719 | IFS=$as_save_IFS | |
15720 | test -z "$as_dir" && as_dir=. | |
5213506e | 15721 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15723 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15725 | break 2 |
15726 | fi | |
15727 | done | |
5213506e RW |
15728 | done |
15729 | IFS=$as_save_IFS | |
1c710c3c | 15730 | |
e8b05380 PB |
15731 | ;; |
15732 | esac | |
15733 | fi | |
1c710c3c | 15734 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 15735 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15737 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 15738 | else |
5213506e RW |
15739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15740 | $as_echo "no" >&6; } | |
e8b05380 PB |
15741 | fi |
15742 | ||
5213506e | 15743 | |
e8b05380 PB |
15744 | fi |
15745 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
15746 | |
15747 | ||
15748 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15749 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15750 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15751 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15752 | fi | |
15753 | ||
15754 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15755 | for ncn_progname in objdump; do | |
15756 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15757 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15759 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15760 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15761 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15762 | else |
15763 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15764 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15765 | else | |
15766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15767 | for as_dir in $PATH | |
15768 | do | |
15769 | IFS=$as_save_IFS | |
15770 | test -z "$as_dir" && as_dir=. | |
5213506e | 15771 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15773 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15775 | break 2 |
15776 | fi | |
15777 | done | |
5213506e RW |
15778 | done |
15779 | IFS=$as_save_IFS | |
278a7a38 AO |
15780 | |
15781 | fi | |
15782 | fi | |
15783 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15784 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15786 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 15787 | else |
5213506e RW |
15788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15789 | $as_echo "no" >&6; } | |
278a7a38 AO |
15790 | fi |
15791 | ||
5213506e | 15792 | |
278a7a38 AO |
15793 | done |
15794 | fi | |
15795 | ||
15796 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15797 | for ncn_progname in objdump; do |
5213506e RW |
15798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15799 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15800 | if test -x $with_build_time_tools/${ncn_progname}; then |
15801 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15803 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15804 | break |
15805 | else | |
5213506e RW |
15806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15807 | $as_echo "no" >&6; } | |
e8b05380 PB |
15808 | fi |
15809 | done | |
15810 | fi | |
15811 | ||
15812 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15813 | for ncn_progname in objdump; do | |
15814 | if test -n "$ncn_target_tool_prefix"; then | |
15815 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15816 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15818 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15819 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15820 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15821 | else |
15822 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15823 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15824 | else | |
1c710c3c DJ |
15825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15826 | for as_dir in $PATH | |
15827 | do | |
15828 | IFS=$as_save_IFS | |
15829 | test -z "$as_dir" && as_dir=. | |
5213506e | 15830 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15831 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15832 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15834 | break 2 |
15835 | fi | |
15836 | done | |
5213506e RW |
15837 | done |
15838 | IFS=$as_save_IFS | |
1c710c3c | 15839 | |
d739199a DJ |
15840 | fi |
15841 | fi | |
1c710c3c | 15842 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15843 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15845 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15846 | else |
5213506e RW |
15847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15848 | $as_echo "no" >&6; } | |
d739199a DJ |
15849 | fi |
15850 | ||
5213506e | 15851 | |
e8b05380 PB |
15852 | fi |
15853 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
15854 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 15855 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15857 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15858 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15859 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15860 | else |
15861 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15862 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15863 | else | |
1c710c3c DJ |
15864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15865 | for as_dir in $PATH | |
15866 | do | |
15867 | IFS=$as_save_IFS | |
15868 | test -z "$as_dir" && as_dir=. | |
5213506e | 15869 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15870 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15871 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15873 | break 2 |
15874 | fi | |
15875 | done | |
5213506e RW |
15876 | done |
15877 | IFS=$as_save_IFS | |
1c710c3c | 15878 | |
d739199a DJ |
15879 | fi |
15880 | fi | |
1c710c3c | 15881 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15882 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15884 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15885 | else |
5213506e RW |
15886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15887 | $as_echo "no" >&6; } | |
d739199a | 15888 | fi |
1c710c3c | 15889 | |
5213506e | 15890 | |
e8b05380 PB |
15891 | fi |
15892 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
15893 | done | |
15894 | fi | |
1c710c3c | 15895 | |
d739199a DJ |
15896 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
15897 | set dummy objdump | |
15898 | if test $build = $target ; then | |
15899 | OBJDUMP_FOR_TARGET="$2" | |
15900 | else | |
15901 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15902 | fi | |
1c00b503 PB |
15903 | else |
15904 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
15905 | fi |
15906 | ||
d1f8db0c PB |
15907 | else |
15908 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15909 | fi |
15910 | ||
15911 | ||
15912 | ||
15913 | ||
e4a9a572 IS |
15914 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
15915 | if test -n "$with_build_time_tools"; then | |
15916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
15917 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
15918 | if test -x $with_build_time_tools/otool; then | |
15919 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
15920 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
15922 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
15923 | else | |
15924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15925 | $as_echo "no" >&6; } | |
15926 | fi | |
15927 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15928 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
15929 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
15930 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15931 | fi | |
15932 | fi | |
15933 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15934 | # Extract the first word of "otool", so it can be a program name with args. | |
15935 | set dummy otool; ac_word=$2 | |
15936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15937 | $as_echo_n "checking for $ac_word... " >&6; } | |
15938 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
15939 | $as_echo_n "(cached) " >&6 | |
15940 | else | |
15941 | case $OTOOL_FOR_TARGET in | |
15942 | [\\/]* | ?:[\\/]*) | |
15943 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
15944 | ;; | |
15945 | *) | |
15946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15947 | for as_dir in $gcc_cv_tool_dirs | |
15948 | do | |
15949 | IFS=$as_save_IFS | |
15950 | test -z "$as_dir" && as_dir=. | |
15951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15953 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15955 | break 2 | |
15956 | fi | |
15957 | done | |
15958 | done | |
15959 | IFS=$as_save_IFS | |
15960 | ||
15961 | ;; | |
15962 | esac | |
15963 | fi | |
15964 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
15965 | if test -n "$OTOOL_FOR_TARGET"; then | |
15966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15967 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15968 | else | |
15969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15970 | $as_echo "no" >&6; } | |
15971 | fi | |
15972 | ||
15973 | ||
15974 | fi | |
15975 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
15976 | ||
15977 | ||
15978 | if test -n "$OTOOL_FOR_TARGET"; then | |
15979 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15980 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15981 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15982 | fi | |
15983 | ||
15984 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15985 | for ncn_progname in otool; do | |
15986 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15987 | set dummy ${ncn_progname}; ac_word=$2 | |
15988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15989 | $as_echo_n "checking for $ac_word... " >&6; } | |
15990 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15991 | $as_echo_n "(cached) " >&6 | |
15992 | else | |
15993 | if test -n "$OTOOL_FOR_TARGET"; then | |
15994 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15995 | else | |
15996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15997 | for as_dir in $PATH | |
15998 | do | |
15999 | IFS=$as_save_IFS | |
16000 | test -z "$as_dir" && as_dir=. | |
16001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16003 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16005 | break 2 | |
16006 | fi | |
16007 | done | |
16008 | done | |
16009 | IFS=$as_save_IFS | |
16010 | ||
16011 | fi | |
16012 | fi | |
16013 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16014 | if test -n "$OTOOL_FOR_TARGET"; then | |
16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16016 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16017 | else | |
16018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16019 | $as_echo "no" >&6; } | |
16020 | fi | |
16021 | ||
16022 | ||
16023 | done | |
16024 | fi | |
16025 | ||
16026 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16027 | for ncn_progname in otool; do | |
16028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16029 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16030 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16031 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16033 | $as_echo "yes" >&6; } | |
16034 | break | |
16035 | else | |
16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16037 | $as_echo "no" >&6; } | |
16038 | fi | |
16039 | done | |
16040 | fi | |
16041 | ||
16042 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16043 | for ncn_progname in otool; do | |
16044 | if test -n "$ncn_target_tool_prefix"; then | |
16045 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16046 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16048 | $as_echo_n "checking for $ac_word... " >&6; } | |
16049 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16050 | $as_echo_n "(cached) " >&6 | |
16051 | else | |
16052 | if test -n "$OTOOL_FOR_TARGET"; then | |
16053 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16054 | else | |
16055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16056 | for as_dir in $PATH | |
16057 | do | |
16058 | IFS=$as_save_IFS | |
16059 | test -z "$as_dir" && as_dir=. | |
16060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16062 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16064 | break 2 | |
16065 | fi | |
16066 | done | |
16067 | done | |
16068 | IFS=$as_save_IFS | |
16069 | ||
16070 | fi | |
16071 | fi | |
16072 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16073 | if test -n "$OTOOL_FOR_TARGET"; then | |
16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16075 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16076 | else | |
16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16078 | $as_echo "no" >&6; } | |
16079 | fi | |
16080 | ||
16081 | ||
16082 | fi | |
16083 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16084 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16085 | set dummy ${ncn_progname}; ac_word=$2 | |
16086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16087 | $as_echo_n "checking for $ac_word... " >&6; } | |
16088 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16089 | $as_echo_n "(cached) " >&6 | |
16090 | else | |
16091 | if test -n "$OTOOL_FOR_TARGET"; then | |
16092 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16093 | else | |
16094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16095 | for as_dir in $PATH | |
16096 | do | |
16097 | IFS=$as_save_IFS | |
16098 | test -z "$as_dir" && as_dir=. | |
16099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16100 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16101 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16103 | break 2 | |
16104 | fi | |
16105 | done | |
16106 | done | |
16107 | IFS=$as_save_IFS | |
16108 | ||
16109 | fi | |
16110 | fi | |
16111 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16112 | if test -n "$OTOOL_FOR_TARGET"; then | |
16113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16114 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16115 | else | |
16116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16117 | $as_echo "no" >&6; } | |
16118 | fi | |
16119 | ||
16120 | ||
16121 | fi | |
16122 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16123 | done | |
16124 | fi | |
16125 | ||
16126 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16127 | set dummy otool | |
16128 | if test $build = $target ; then | |
16129 | OTOOL_FOR_TARGET="$2" | |
16130 | else | |
16131 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16132 | fi | |
16133 | else | |
16134 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16135 | fi | |
16136 | ||
16137 | else | |
16138 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16139 | fi | |
16140 | ||
16141 | ||
16142 | ||
16143 | ||
e8b05380 PB |
16144 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16145 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16147 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16148 | if test -x $with_build_time_tools/ranlib; then |
16149 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16150 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
16151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16152 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 16153 | else |
5213506e RW |
16154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16155 | $as_echo "no" >&6; } | |
d1f8db0c | 16156 | fi |
e8b05380 PB |
16157 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16158 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
16159 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16160 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
16161 | fi |
16162 | fi | |
3e19841a | 16163 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16164 | # Extract the first word of "ranlib", so it can be a program name with args. |
16165 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
16166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16167 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16168 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16169 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16170 | else |
1c710c3c DJ |
16171 | case $RANLIB_FOR_TARGET in |
16172 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16173 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16174 | ;; | |
e8b05380 | 16175 | *) |
1c710c3c DJ |
16176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16177 | for as_dir in $gcc_cv_tool_dirs | |
16178 | do | |
16179 | IFS=$as_save_IFS | |
16180 | test -z "$as_dir" && as_dir=. | |
5213506e | 16181 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16182 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16183 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16185 | break 2 |
16186 | fi | |
16187 | done | |
5213506e RW |
16188 | done |
16189 | IFS=$as_save_IFS | |
1c710c3c | 16190 | |
e8b05380 PB |
16191 | ;; |
16192 | esac | |
16193 | fi | |
1c710c3c | 16194 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 16195 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16197 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 16198 | else |
5213506e RW |
16199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16200 | $as_echo "no" >&6; } | |
e8b05380 PB |
16201 | fi |
16202 | ||
5213506e | 16203 | |
e8b05380 PB |
16204 | fi |
16205 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
16206 | |
16207 | ||
16208 | if test -n "$RANLIB_FOR_TARGET"; then | |
16209 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16210 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16211 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16212 | fi | |
16213 | ||
16214 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16215 | for ncn_progname in ranlib; do | |
16216 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16217 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16219 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16220 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16221 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16222 | else |
16223 | if test -n "$RANLIB_FOR_TARGET"; then | |
16224 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16225 | else | |
16226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16227 | for as_dir in $PATH | |
16228 | do | |
16229 | IFS=$as_save_IFS | |
16230 | test -z "$as_dir" && as_dir=. | |
5213506e | 16231 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16233 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16235 | break 2 |
16236 | fi | |
16237 | done | |
5213506e RW |
16238 | done |
16239 | IFS=$as_save_IFS | |
278a7a38 AO |
16240 | |
16241 | fi | |
16242 | fi | |
16243 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16244 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
16245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16246 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 16247 | else |
5213506e RW |
16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16249 | $as_echo "no" >&6; } | |
278a7a38 AO |
16250 | fi |
16251 | ||
5213506e | 16252 | |
278a7a38 AO |
16253 | done |
16254 | fi | |
16255 | ||
16256 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16257 | for ncn_progname in ranlib; do |
5213506e RW |
16258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16259 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16260 | if test -x $with_build_time_tools/${ncn_progname}; then |
16261 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16263 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16264 | break |
16265 | else | |
5213506e RW |
16266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16267 | $as_echo "no" >&6; } | |
e8b05380 PB |
16268 | fi |
16269 | done | |
16270 | fi | |
16271 | ||
16272 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16273 | for ncn_progname in ranlib; do | |
16274 | if test -n "$ncn_target_tool_prefix"; then | |
16275 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 16276 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16278 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16279 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16280 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16281 | else |
4de997d1 PB |
16282 | if test -n "$RANLIB_FOR_TARGET"; then |
16283 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16284 | else |
1c710c3c DJ |
16285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16286 | for as_dir in $PATH | |
16287 | do | |
16288 | IFS=$as_save_IFS | |
16289 | test -z "$as_dir" && as_dir=. | |
5213506e | 16290 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16291 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16292 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16294 | break 2 |
16295 | fi | |
16296 | done | |
5213506e RW |
16297 | done |
16298 | IFS=$as_save_IFS | |
1c710c3c | 16299 | |
ca9f4b81 AO |
16300 | fi |
16301 | fi | |
1c710c3c | 16302 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 16303 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16305 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16306 | else |
5213506e RW |
16307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16308 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16309 | fi |
16310 | ||
5213506e | 16311 | |
e8b05380 PB |
16312 | fi |
16313 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16314 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16315 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16317 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16318 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16319 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16320 | else |
2693c0b0 PB |
16321 | if test -n "$RANLIB_FOR_TARGET"; then |
16322 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16323 | else |
1c710c3c DJ |
16324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16325 | for as_dir in $PATH | |
16326 | do | |
16327 | IFS=$as_save_IFS | |
16328 | test -z "$as_dir" && as_dir=. | |
5213506e | 16329 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16331 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16333 | break 2 |
16334 | fi | |
16335 | done | |
5213506e RW |
16336 | done |
16337 | IFS=$as_save_IFS | |
1c710c3c | 16338 | |
ca9f4b81 AO |
16339 | fi |
16340 | fi | |
1c710c3c | 16341 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 16342 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16344 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16345 | else |
5213506e RW |
16346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16347 | $as_echo "no" >&6; } | |
ca9f4b81 | 16348 | fi |
1c710c3c | 16349 | |
5213506e | 16350 | |
e8b05380 PB |
16351 | fi |
16352 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16353 | done | |
16354 | fi | |
1c710c3c | 16355 | |
e8b05380 PB |
16356 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16357 | set dummy ranlib | |
16358 | if test $build = $target ; then | |
16359 | RANLIB_FOR_TARGET="$2" | |
16360 | else | |
16361 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 16362 | fi |
1c00b503 PB |
16363 | else |
16364 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 16365 | fi |
2693c0b0 | 16366 | |
d1f8db0c PB |
16367 | else |
16368 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
16369 | fi |
16370 | ||
e8b05380 PB |
16371 | |
16372 | ||
16373 | ||
e7a82751 RM |
16374 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16375 | if test -n "$with_build_time_tools"; then | |
16376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16377 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16378 | if test -x $with_build_time_tools/readelf; then | |
16379 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16380 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16382 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16383 | else | |
16384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16385 | $as_echo "no" >&6; } | |
16386 | fi | |
16387 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16388 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16389 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16390 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16391 | fi | |
16392 | fi | |
16393 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16394 | # Extract the first word of "readelf", so it can be a program name with args. | |
16395 | set dummy readelf; ac_word=$2 | |
16396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16397 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16398 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16399 | $as_echo_n "(cached) " >&6 |
16400 | else | |
16401 | case $READELF_FOR_TARGET in | |
16402 | [\\/]* | ?:[\\/]*) | |
16403 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16404 | ;; | |
16405 | *) | |
16406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16407 | for as_dir in $gcc_cv_tool_dirs | |
16408 | do | |
16409 | IFS=$as_save_IFS | |
16410 | test -z "$as_dir" && as_dir=. | |
16411 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16413 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16415 | break 2 | |
16416 | fi | |
16417 | done | |
16418 | done | |
16419 | IFS=$as_save_IFS | |
16420 | ||
16421 | ;; | |
16422 | esac | |
16423 | fi | |
16424 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16425 | if test -n "$READELF_FOR_TARGET"; then | |
16426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16427 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16428 | else | |
16429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16430 | $as_echo "no" >&6; } | |
16431 | fi | |
16432 | ||
16433 | ||
16434 | fi | |
16435 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16436 | ||
16437 | ||
16438 | if test -n "$READELF_FOR_TARGET"; then | |
16439 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16440 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16441 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16442 | fi | |
16443 | ||
16444 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16445 | for ncn_progname in readelf; do | |
16446 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16447 | set dummy ${ncn_progname}; ac_word=$2 | |
16448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16449 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16450 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16451 | $as_echo_n "(cached) " >&6 |
16452 | else | |
16453 | if test -n "$READELF_FOR_TARGET"; then | |
16454 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16455 | else | |
16456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16457 | for as_dir in $PATH | |
16458 | do | |
16459 | IFS=$as_save_IFS | |
16460 | test -z "$as_dir" && as_dir=. | |
16461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16462 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16463 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16465 | break 2 | |
16466 | fi | |
16467 | done | |
16468 | done | |
16469 | IFS=$as_save_IFS | |
16470 | ||
16471 | fi | |
16472 | fi | |
16473 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16474 | if test -n "$READELF_FOR_TARGET"; then | |
16475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16476 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16477 | else | |
16478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16479 | $as_echo "no" >&6; } | |
16480 | fi | |
16481 | ||
16482 | ||
16483 | done | |
16484 | fi | |
16485 | ||
16486 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16487 | for ncn_progname in readelf; do | |
16488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16489 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16490 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16491 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16493 | $as_echo "yes" >&6; } | |
16494 | break | |
16495 | else | |
16496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16497 | $as_echo "no" >&6; } | |
16498 | fi | |
16499 | done | |
16500 | fi | |
16501 | ||
16502 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16503 | for ncn_progname in readelf; do | |
16504 | if test -n "$ncn_target_tool_prefix"; then | |
16505 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16506 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16508 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16509 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16510 | $as_echo_n "(cached) " >&6 |
16511 | else | |
16512 | if test -n "$READELF_FOR_TARGET"; then | |
16513 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16514 | else | |
16515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16516 | for as_dir in $PATH | |
16517 | do | |
16518 | IFS=$as_save_IFS | |
16519 | test -z "$as_dir" && as_dir=. | |
16520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16522 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16524 | break 2 | |
16525 | fi | |
16526 | done | |
16527 | done | |
16528 | IFS=$as_save_IFS | |
16529 | ||
16530 | fi | |
16531 | fi | |
16532 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16533 | if test -n "$READELF_FOR_TARGET"; then | |
16534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16535 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16536 | else | |
16537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16538 | $as_echo "no" >&6; } | |
16539 | fi | |
16540 | ||
16541 | ||
16542 | fi | |
16543 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16544 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16545 | set dummy ${ncn_progname}; ac_word=$2 | |
16546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16547 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16548 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16549 | $as_echo_n "(cached) " >&6 |
16550 | else | |
16551 | if test -n "$READELF_FOR_TARGET"; then | |
16552 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16553 | else | |
16554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16555 | for as_dir in $PATH | |
16556 | do | |
16557 | IFS=$as_save_IFS | |
16558 | test -z "$as_dir" && as_dir=. | |
16559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16561 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16563 | break 2 | |
16564 | fi | |
16565 | done | |
16566 | done | |
16567 | IFS=$as_save_IFS | |
16568 | ||
16569 | fi | |
16570 | fi | |
16571 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16572 | if test -n "$READELF_FOR_TARGET"; then | |
16573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16574 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16575 | else | |
16576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16577 | $as_echo "no" >&6; } | |
16578 | fi | |
16579 | ||
16580 | ||
16581 | fi | |
16582 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16583 | done | |
16584 | fi | |
16585 | ||
16586 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16587 | set dummy readelf | |
16588 | if test $build = $target ; then | |
16589 | READELF_FOR_TARGET="$2" | |
16590 | else | |
16591 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16592 | fi | |
16593 | else | |
16594 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16595 | fi | |
16596 | ||
16597 | else | |
16598 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16599 | fi | |
16600 | ||
16601 | ||
16602 | ||
16603 | ||
e8b05380 PB |
16604 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16605 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16607 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16608 | if test -x $with_build_time_tools/strip; then |
16609 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16610 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
16611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16612 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 16613 | else |
5213506e RW |
16614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16615 | $as_echo "no" >&6; } | |
d1f8db0c | 16616 | fi |
e8b05380 PB |
16617 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16618 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
16619 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16620 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
16621 | fi |
16622 | fi | |
3e19841a | 16623 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16624 | # Extract the first word of "strip", so it can be a program name with args. |
16625 | set dummy strip; ac_word=$2 | |
5213506e RW |
16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16627 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16628 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16629 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16630 | else |
1c710c3c DJ |
16631 | case $STRIP_FOR_TARGET in |
16632 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16633 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16634 | ;; | |
e8b05380 | 16635 | *) |
1c710c3c DJ |
16636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16637 | for as_dir in $gcc_cv_tool_dirs | |
16638 | do | |
16639 | IFS=$as_save_IFS | |
16640 | test -z "$as_dir" && as_dir=. | |
5213506e | 16641 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16642 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16643 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16645 | break 2 |
16646 | fi | |
16647 | done | |
5213506e RW |
16648 | done |
16649 | IFS=$as_save_IFS | |
1c710c3c | 16650 | |
e8b05380 PB |
16651 | ;; |
16652 | esac | |
16653 | fi | |
1c710c3c | 16654 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 16655 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16657 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 16658 | else |
5213506e RW |
16659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16660 | $as_echo "no" >&6; } | |
e8b05380 PB |
16661 | fi |
16662 | ||
5213506e | 16663 | |
e8b05380 PB |
16664 | fi |
16665 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
16666 | |
16667 | ||
16668 | if test -n "$STRIP_FOR_TARGET"; then | |
16669 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16670 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16671 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16672 | fi | |
16673 | ||
16674 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16675 | for ncn_progname in strip; do | |
16676 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16677 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16679 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16680 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16681 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16682 | else |
16683 | if test -n "$STRIP_FOR_TARGET"; then | |
16684 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16685 | else | |
16686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16687 | for as_dir in $PATH | |
16688 | do | |
16689 | IFS=$as_save_IFS | |
16690 | test -z "$as_dir" && as_dir=. | |
5213506e | 16691 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16693 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16695 | break 2 |
16696 | fi | |
16697 | done | |
5213506e RW |
16698 | done |
16699 | IFS=$as_save_IFS | |
278a7a38 AO |
16700 | |
16701 | fi | |
16702 | fi | |
16703 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16704 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
16705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16706 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 16707 | else |
5213506e RW |
16708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16709 | $as_echo "no" >&6; } | |
278a7a38 AO |
16710 | fi |
16711 | ||
5213506e | 16712 | |
278a7a38 AO |
16713 | done |
16714 | fi | |
16715 | ||
16716 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16717 | for ncn_progname in strip; do |
5213506e RW |
16718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16719 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16720 | if test -x $with_build_time_tools/${ncn_progname}; then |
16721 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16723 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16724 | break |
16725 | else | |
5213506e RW |
16726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16727 | $as_echo "no" >&6; } | |
e8b05380 PB |
16728 | fi |
16729 | done | |
16730 | fi | |
16731 | ||
16732 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16733 | for ncn_progname in strip; do | |
16734 | if test -n "$ncn_target_tool_prefix"; then | |
16735 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16736 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16738 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16739 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16740 | $as_echo_n "(cached) " >&6 |
af71363e AS |
16741 | else |
16742 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
16743 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
16744 | else | |
16745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16746 | for as_dir in $PATH | |
16747 | do | |
16748 | IFS=$as_save_IFS | |
16749 | test -z "$as_dir" && as_dir=. | |
5213506e | 16750 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16751 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16752 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16754 | break 2 |
16755 | fi | |
16756 | done | |
5213506e RW |
16757 | done |
16758 | IFS=$as_save_IFS | |
1c710c3c | 16759 | |
040b1c5a GK |
16760 | fi |
16761 | fi | |
1c710c3c | 16762 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16763 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16765 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16766 | else |
5213506e RW |
16767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16768 | $as_echo "no" >&6; } | |
040b1c5a GK |
16769 | fi |
16770 | ||
5213506e | 16771 | |
e8b05380 PB |
16772 | fi |
16773 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
16774 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16775 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16777 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16778 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16779 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
16780 | else |
16781 | if test -n "$STRIP_FOR_TARGET"; then | |
16782 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16783 | else | |
1c710c3c DJ |
16784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16785 | for as_dir in $PATH | |
16786 | do | |
16787 | IFS=$as_save_IFS | |
16788 | test -z "$as_dir" && as_dir=. | |
5213506e | 16789 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16791 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16793 | break 2 |
16794 | fi | |
16795 | done | |
5213506e RW |
16796 | done |
16797 | IFS=$as_save_IFS | |
1c710c3c | 16798 | |
040b1c5a GK |
16799 | fi |
16800 | fi | |
1c710c3c | 16801 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16802 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16804 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16805 | else |
5213506e RW |
16806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16807 | $as_echo "no" >&6; } | |
040b1c5a | 16808 | fi |
1c710c3c | 16809 | |
5213506e | 16810 | |
e8b05380 PB |
16811 | fi |
16812 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
16813 | done | |
16814 | fi | |
1c710c3c | 16815 | |
040b1c5a GK |
16816 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
16817 | set dummy strip | |
16818 | if test $build = $target ; then | |
16819 | STRIP_FOR_TARGET="$2" | |
16820 | else | |
16821 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16822 | fi | |
1c00b503 PB |
16823 | else |
16824 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
16825 | fi |
16826 | ||
d1f8db0c PB |
16827 | else |
16828 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
16829 | fi |
16830 | ||
16831 | ||
16832 | ||
16833 | ||
16834 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
16835 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
16837 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16838 | if test -x $with_build_time_tools/windres; then |
16839 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
16840 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
16841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
16842 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 16843 | else |
5213506e RW |
16844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16845 | $as_echo "no" >&6; } | |
d1f8db0c | 16846 | fi |
e8b05380 PB |
16847 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16848 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
16849 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
16850 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
16851 | fi |
16852 | fi | |
3e19841a | 16853 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16854 | # Extract the first word of "windres", so it can be a program name with args. |
16855 | set dummy windres; ac_word=$2 | |
5213506e RW |
16856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16857 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16858 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16859 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16860 | else |
1c710c3c DJ |
16861 | case $WINDRES_FOR_TARGET in |
16862 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16863 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
16864 | ;; | |
e8b05380 | 16865 | *) |
1c710c3c DJ |
16866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16867 | for as_dir in $gcc_cv_tool_dirs | |
16868 | do | |
16869 | IFS=$as_save_IFS | |
16870 | test -z "$as_dir" && as_dir=. | |
5213506e | 16871 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16872 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16873 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16875 | break 2 |
16876 | fi | |
16877 | done | |
5213506e RW |
16878 | done |
16879 | IFS=$as_save_IFS | |
1c710c3c | 16880 | |
e8b05380 PB |
16881 | ;; |
16882 | esac | |
16883 | fi | |
1c710c3c | 16884 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 16885 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16887 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 16888 | else |
5213506e RW |
16889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16890 | $as_echo "no" >&6; } | |
e8b05380 PB |
16891 | fi |
16892 | ||
5213506e | 16893 | |
e8b05380 PB |
16894 | fi |
16895 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
16896 | |
16897 | ||
16898 | if test -n "$WINDRES_FOR_TARGET"; then | |
16899 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
16900 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16901 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16902 | fi | |
16903 | ||
16904 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16905 | for ncn_progname in windres; do | |
16906 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16907 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16909 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16910 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16911 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16912 | else |
16913 | if test -n "$WINDRES_FOR_TARGET"; then | |
16914 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
16915 | else | |
16916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16917 | for as_dir in $PATH | |
16918 | do | |
16919 | IFS=$as_save_IFS | |
16920 | test -z "$as_dir" && as_dir=. | |
5213506e | 16921 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16923 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16925 | break 2 |
16926 | fi | |
16927 | done | |
5213506e RW |
16928 | done |
16929 | IFS=$as_save_IFS | |
278a7a38 AO |
16930 | |
16931 | fi | |
16932 | fi | |
16933 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16934 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
16935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16936 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 16937 | else |
5213506e RW |
16938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16939 | $as_echo "no" >&6; } | |
278a7a38 AO |
16940 | fi |
16941 | ||
5213506e | 16942 | |
278a7a38 AO |
16943 | done |
16944 | fi | |
16945 | ||
16946 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16947 | for ncn_progname in windres; do |
5213506e RW |
16948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16949 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16950 | if test -x $with_build_time_tools/${ncn_progname}; then |
16951 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16953 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16954 | break |
16955 | else | |
5213506e RW |
16956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16957 | $as_echo "no" >&6; } | |
e8b05380 PB |
16958 | fi |
16959 | done | |
16960 | fi | |
16961 | ||
16962 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16963 | for ncn_progname in windres; do | |
16964 | if test -n "$ncn_target_tool_prefix"; then | |
16965 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16966 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16968 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16969 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16970 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16971 | else |
4de997d1 PB |
16972 | if test -n "$WINDRES_FOR_TARGET"; then |
16973 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16974 | else |
1c710c3c DJ |
16975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16976 | for as_dir in $PATH | |
16977 | do | |
16978 | IFS=$as_save_IFS | |
16979 | test -z "$as_dir" && as_dir=. | |
5213506e | 16980 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16982 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16984 | break 2 |
16985 | fi | |
16986 | done | |
5213506e RW |
16987 | done |
16988 | IFS=$as_save_IFS | |
1c710c3c | 16989 | |
ca9f4b81 AO |
16990 | fi |
16991 | fi | |
1c710c3c | 16992 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 16993 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16995 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16996 | else |
5213506e RW |
16997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16998 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16999 | fi |
17000 | ||
5213506e | 17001 | |
e8b05380 PB |
17002 | fi |
17003 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
17004 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 17005 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
17006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17007 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17008 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17009 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 17010 | else |
2693c0b0 PB |
17011 | if test -n "$WINDRES_FOR_TARGET"; then |
17012 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 17013 | else |
1c710c3c DJ |
17014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17015 | for as_dir in $PATH | |
17016 | do | |
17017 | IFS=$as_save_IFS | |
17018 | test -z "$as_dir" && as_dir=. | |
5213506e | 17019 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17020 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17021 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 17022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17023 | break 2 |
17024 | fi | |
17025 | done | |
5213506e RW |
17026 | done |
17027 | IFS=$as_save_IFS | |
1c710c3c | 17028 | |
ca9f4b81 AO |
17029 | fi |
17030 | fi | |
1c710c3c | 17031 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 17032 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17034 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 17035 | else |
5213506e RW |
17036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17037 | $as_echo "no" >&6; } | |
ca9f4b81 | 17038 | fi |
1c710c3c | 17039 | |
5213506e | 17040 | |
e8b05380 PB |
17041 | fi |
17042 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17043 | done | |
17044 | fi | |
1c710c3c | 17045 | |
2693c0b0 PB |
17046 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17047 | set dummy windres | |
17048 | if test $build = $target ; then | |
17049 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 17050 | else |
2693c0b0 | 17051 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 17052 | fi |
1c00b503 PB |
17053 | else |
17054 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
17055 | fi |
17056 | ||
d1f8db0c PB |
17057 | else |
17058 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
17059 | fi |
17060 | ||
4977bab6 | 17061 | |
901119ae KT |
17062 | |
17063 | ||
17064 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17065 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17067 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
17068 | if test -x $with_build_time_tools/windmc; then |
17069 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17070 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17072 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17073 | else |
5213506e RW |
17074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17075 | $as_echo "no" >&6; } | |
901119ae KT |
17076 | fi |
17077 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17078 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
17079 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
17080 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
17081 | fi |
17082 | fi | |
17083 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17084 | # Extract the first word of "windmc", so it can be a program name with args. | |
17085 | set dummy windmc; ac_word=$2 | |
5213506e RW |
17086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17087 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17088 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17089 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17090 | else |
17091 | case $WINDMC_FOR_TARGET in | |
17092 | [\\/]* | ?:[\\/]*) | |
17093 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17094 | ;; | |
17095 | *) | |
17096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17097 | for as_dir in $gcc_cv_tool_dirs | |
17098 | do | |
17099 | IFS=$as_save_IFS | |
17100 | test -z "$as_dir" && as_dir=. | |
5213506e | 17101 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17103 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17105 | break 2 |
17106 | fi | |
17107 | done | |
5213506e RW |
17108 | done |
17109 | IFS=$as_save_IFS | |
901119ae KT |
17110 | |
17111 | ;; | |
17112 | esac | |
17113 | fi | |
17114 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 17115 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
17116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17117 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17118 | else |
5213506e RW |
17119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17120 | $as_echo "no" >&6; } | |
901119ae KT |
17121 | fi |
17122 | ||
5213506e | 17123 | |
901119ae KT |
17124 | fi |
17125 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17126 | ||
17127 | ||
17128 | if test -n "$WINDMC_FOR_TARGET"; then | |
17129 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17130 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17131 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17132 | fi | |
17133 | ||
17134 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17135 | for ncn_progname in windmc; do | |
17136 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17137 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17139 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17140 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17141 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17142 | else |
17143 | if test -n "$WINDMC_FOR_TARGET"; then | |
17144 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17145 | else | |
17146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17147 | for as_dir in $PATH | |
17148 | do | |
17149 | IFS=$as_save_IFS | |
17150 | test -z "$as_dir" && as_dir=. | |
5213506e | 17151 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17153 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17155 | break 2 |
17156 | fi | |
17157 | done | |
5213506e RW |
17158 | done |
17159 | IFS=$as_save_IFS | |
901119ae KT |
17160 | |
17161 | fi | |
17162 | fi | |
17163 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17164 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17166 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17167 | else |
5213506e RW |
17168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17169 | $as_echo "no" >&6; } | |
901119ae KT |
17170 | fi |
17171 | ||
5213506e | 17172 | |
901119ae KT |
17173 | done |
17174 | fi | |
17175 | ||
17176 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17177 | for ncn_progname in windmc; do | |
5213506e RW |
17178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17179 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
17180 | if test -x $with_build_time_tools/${ncn_progname}; then |
17181 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17183 | $as_echo "yes" >&6; } | |
901119ae KT |
17184 | break |
17185 | else | |
5213506e RW |
17186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17187 | $as_echo "no" >&6; } | |
901119ae KT |
17188 | fi |
17189 | done | |
17190 | fi | |
17191 | ||
17192 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17193 | for ncn_progname in windmc; do | |
17194 | if test -n "$ncn_target_tool_prefix"; then | |
17195 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17196 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
17197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17198 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17199 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17200 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17201 | else |
17202 | if test -n "$WINDMC_FOR_TARGET"; then | |
17203 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17204 | else | |
17205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17206 | for as_dir in $PATH | |
17207 | do | |
17208 | IFS=$as_save_IFS | |
17209 | test -z "$as_dir" && as_dir=. | |
5213506e | 17210 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17212 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17214 | break 2 |
17215 | fi | |
17216 | done | |
5213506e RW |
17217 | done |
17218 | IFS=$as_save_IFS | |
901119ae KT |
17219 | |
17220 | fi | |
17221 | fi | |
17222 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17223 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17225 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17226 | else |
5213506e RW |
17227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17228 | $as_echo "no" >&6; } | |
901119ae KT |
17229 | fi |
17230 | ||
5213506e | 17231 | |
901119ae KT |
17232 | fi |
17233 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17234 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17235 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17237 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17238 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17239 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17240 | else |
17241 | if test -n "$WINDMC_FOR_TARGET"; then | |
17242 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17243 | else | |
17244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17245 | for as_dir in $PATH | |
17246 | do | |
17247 | IFS=$as_save_IFS | |
17248 | test -z "$as_dir" && as_dir=. | |
5213506e | 17249 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17251 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17253 | break 2 |
17254 | fi | |
17255 | done | |
5213506e RW |
17256 | done |
17257 | IFS=$as_save_IFS | |
901119ae KT |
17258 | |
17259 | fi | |
17260 | fi | |
17261 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17262 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17264 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17265 | else |
5213506e RW |
17266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17267 | $as_echo "no" >&6; } | |
901119ae KT |
17268 | fi |
17269 | ||
5213506e | 17270 | |
901119ae KT |
17271 | fi |
17272 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17273 | done | |
17274 | fi | |
17275 | ||
17276 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17277 | set dummy windmc | |
17278 | if test $build = $target ; then | |
17279 | WINDMC_FOR_TARGET="$2" | |
17280 | else | |
17281 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17282 | fi | |
1c00b503 PB |
17283 | else |
17284 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
17285 | fi |
17286 | ||
17287 | else | |
17288 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17289 | fi | |
17290 | ||
17291 | ||
2abefe3d PB |
17292 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17293 | ||
5213506e RW |
17294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17295 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 17296 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17297 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17298 | # We already found the complete path | |
172e41aa | 17299 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17301 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17302 | else |
17303 | # Canadian cross, just use what we found | |
5213506e RW |
17304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17305 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17306 | fi |
2abefe3d PB |
17307 | else |
17308 | ok=yes | |
17309 | case " ${configdirs} " in | |
17310 | *" binutils "*) ;; | |
17311 | *) ok=no ;; | |
17312 | esac | |
1c710c3c | 17313 | |
2abefe3d PB |
17314 | if test $ok = yes; then |
17315 | # An in-tree tool is available and we can use it | |
17316 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
17317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17318 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17319 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17320 | # We already found the complete path | |
172e41aa | 17321 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17323 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17324 | elif test "x$target" = "x$host"; then |
17325 | # We can use an host tool | |
17326 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
17327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17328 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17329 | else |
17330 | # We need a cross tool | |
5213506e RW |
17331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17332 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17333 | fi |
17334 | fi | |
0b0dc272 | 17335 | |
5213506e RW |
17336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17337 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 17338 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17339 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17340 | # We already found the complete path | |
172e41aa | 17341 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17343 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17344 | else |
17345 | # Canadian cross, just use what we found | |
5213506e RW |
17346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17347 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17348 | fi |
2abefe3d PB |
17349 | else |
17350 | ok=yes | |
17351 | case " ${configdirs} " in | |
17352 | *" gas "*) ;; | |
17353 | *) ok=no ;; | |
17354 | esac | |
1c710c3c | 17355 | |
2abefe3d PB |
17356 | if test $ok = yes; then |
17357 | # An in-tree tool is available and we can use it | |
17358 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
17359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17360 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17361 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17362 | # We already found the complete path | |
172e41aa | 17363 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17365 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17366 | elif test "x$target" = "x$host"; then |
17367 | # We can use an host tool | |
17368 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
17369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17370 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17371 | else |
17372 | # We need a cross tool | |
5213506e RW |
17373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17374 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17375 | fi |
17376 | fi | |
0b0dc272 | 17377 | |
5213506e RW |
17378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17379 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 17380 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17381 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17382 | # We already found the complete path | |
172e41aa | 17383 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17385 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17386 | else |
17387 | # Canadian cross, just use what we found | |
5213506e RW |
17388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17389 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17390 | fi |
2abefe3d PB |
17391 | else |
17392 | ok=yes | |
17393 | case " ${configdirs} " in | |
17394 | *" gcc "*) ;; | |
17395 | *) ok=no ;; | |
17396 | esac | |
1c710c3c | 17397 | |
2abefe3d PB |
17398 | if test $ok = yes; then |
17399 | # An in-tree tool is available and we can use it | |
17400 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17402 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17403 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17404 | # We already found the complete path | |
172e41aa | 17405 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17407 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17408 | elif test "x$target" = "x$host"; then |
17409 | # We can use an host tool | |
17410 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
17411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17412 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17413 | else |
17414 | # We need a cross tool | |
5213506e RW |
17415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17416 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17417 | fi |
17418 | fi | |
0b0dc272 | 17419 | |
5213506e RW |
17420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17421 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 17422 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17423 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17424 | # We already found the complete path | |
172e41aa | 17425 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17427 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17428 | else |
17429 | # Canadian cross, just use what we found | |
5213506e RW |
17430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17431 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17432 | fi |
2abefe3d PB |
17433 | else |
17434 | ok=yes | |
17435 | case " ${configdirs} " in | |
17436 | *" gcc "*) ;; | |
17437 | *) ok=no ;; | |
17438 | esac | |
17439 | case ,${enable_languages}, in | |
17440 | *,c++,*) ;; | |
17441 | *) ok=no ;; | |
17442 | esac | |
17443 | if test $ok = yes; then | |
17444 | # An in-tree tool is available and we can use it | |
2077db1b | 17445 | 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 |
17446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17447 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17448 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17449 | # We already found the complete path | |
172e41aa | 17450 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17452 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17453 | elif test "x$target" = "x$host"; then |
17454 | # We can use an host tool | |
17455 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17457 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17458 | else |
17459 | # We need a cross tool | |
5213506e RW |
17460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17461 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17462 | fi |
17463 | fi | |
0b0dc272 | 17464 | |
5213506e RW |
17465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17466 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 17467 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17468 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17469 | # We already found the complete path | |
172e41aa | 17470 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17472 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17473 | else |
17474 | # Canadian cross, just use what we found | |
5213506e RW |
17475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17476 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17477 | fi |
2abefe3d PB |
17478 | else |
17479 | ok=yes | |
17480 | case " ${configdirs} " in | |
17481 | *" gcc "*) ;; | |
17482 | *) ok=no ;; | |
17483 | esac | |
17484 | case ,${enable_languages}, in | |
17485 | *,c++,*) ;; | |
17486 | *) ok=no ;; | |
17487 | esac | |
17488 | if test $ok = yes; then | |
17489 | # An in-tree tool is available and we can use it | |
2077db1b | 17490 | 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 |
17491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17492 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17493 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17494 | # We already found the complete path | |
172e41aa | 17495 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17497 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17498 | elif test "x$target" = "x$host"; then |
17499 | # We can use an host tool | |
17500 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17502 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17503 | else |
17504 | # We need a cross tool | |
5213506e RW |
17505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17506 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17507 | fi |
17508 | fi | |
0b0dc272 | 17509 | |
5213506e RW |
17510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17511 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 17512 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17513 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17514 | # We already found the complete path | |
172e41aa | 17515 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17517 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17518 | else |
17519 | # Canadian cross, just use what we found | |
5213506e RW |
17520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17521 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17522 | fi |
2abefe3d PB |
17523 | else |
17524 | ok=yes | |
17525 | case " ${configdirs} " in | |
17526 | *" binutils "*) ;; | |
17527 | *) ok=no ;; | |
17528 | esac | |
1c710c3c | 17529 | |
2abefe3d PB |
17530 | if test $ok = yes; then |
17531 | # An in-tree tool is available and we can use it | |
17532 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
17533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17534 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17535 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17536 | # We already found the complete path | |
172e41aa | 17537 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17539 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17540 | elif test "x$target" = "x$host"; then |
17541 | # We can use an host tool | |
17542 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
17543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17544 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17545 | else |
17546 | # We need a cross tool | |
5213506e RW |
17547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17548 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17549 | fi |
17550 | fi | |
0b0dc272 | 17551 | |
3b5e8ee4 IS |
17552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17553 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17554 | if test "x${build}" != "x${host}" ; then | |
17555 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17556 | # We already found the complete path | |
17557 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17559 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17560 | else | |
17561 | # Canadian cross, just use what we found | |
17562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17563 | $as_echo "pre-installed" >&6; } | |
17564 | fi | |
17565 | else | |
17566 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17567 | # We already found the complete path | |
17568 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17570 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17571 | elif test "x$target" = "x$host"; then | |
17572 | # We can use an host tool | |
17573 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17575 | $as_echo "host tool" >&6; } | |
17576 | else | |
17577 | # We need a cross tool | |
17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17579 | $as_echo "pre-installed" >&6; } | |
17580 | fi | |
17581 | fi | |
17582 | ||
5213506e RW |
17583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17584 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 17585 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17586 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17587 | # We already found the complete path | |
172e41aa | 17588 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17590 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17591 | else |
17592 | # Canadian cross, just use what we found | |
5213506e RW |
17593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17594 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17595 | fi |
2abefe3d PB |
17596 | else |
17597 | ok=yes | |
17598 | case " ${configdirs} " in | |
17599 | *" gcc "*) ;; | |
17600 | *) ok=no ;; | |
17601 | esac | |
1c710c3c | 17602 | |
2abefe3d PB |
17603 | if test $ok = yes; then |
17604 | # An in-tree tool is available and we can use it | |
17605 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17607 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17608 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17609 | # We already found the complete path | |
172e41aa | 17610 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17612 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17613 | elif test "x$target" = "x$host"; then |
17614 | # We can use an host tool | |
17615 | GCC_FOR_TARGET='$()' | |
5213506e RW |
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17617 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17618 | else |
17619 | # We need a cross tool | |
5213506e RW |
17620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17621 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17622 | fi |
17623 | fi | |
0b0dc272 | 17624 | |
5213506e RW |
17625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17626 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 17627 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17628 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17629 | # We already found the complete path | |
172e41aa | 17630 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17632 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17633 | else |
17634 | # Canadian cross, just use what we found | |
5213506e RW |
17635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17636 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17637 | fi |
2abefe3d PB |
17638 | else |
17639 | ok=yes | |
17640 | case " ${configdirs} " in | |
17641 | *" gcc "*) ;; | |
17642 | *) ok=no ;; | |
17643 | esac | |
17644 | case ,${enable_languages}, in | |
17645 | *,fortran,*) ;; | |
17646 | *) ok=no ;; | |
17647 | esac | |
17648 | if test $ok = yes; then | |
17649 | # An in-tree tool is available and we can use it | |
17650 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17652 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17653 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17654 | # We already found the complete path | |
172e41aa | 17655 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17657 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17658 | elif test "x$target" = "x$host"; then |
17659 | # We can use an host tool | |
17660 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
17661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17662 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17663 | else |
17664 | # We need a cross tool | |
5213506e RW |
17665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17666 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17667 | fi |
17668 | fi | |
0b0dc272 | 17669 | |
632e2a07 ILT |
17670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17671 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17672 | if test "x${build}" != "x${host}" ; then | |
17673 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17674 | # We already found the complete path | |
17675 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17677 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17678 | else | |
17679 | # Canadian cross, just use what we found | |
17680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17681 | $as_echo "pre-installed" >&6; } | |
17682 | fi | |
17683 | else | |
17684 | ok=yes | |
17685 | case " ${configdirs} " in | |
17686 | *" gcc "*) ;; | |
17687 | *) ok=no ;; | |
17688 | esac | |
17689 | case ,${enable_languages}, in | |
17690 | *,go,*) ;; | |
17691 | *) ok=no ;; | |
17692 | esac | |
17693 | if test $ok = yes; then | |
17694 | # An in-tree tool is available and we can use it | |
17695 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17697 | $as_echo "just compiled" >&6; } | |
17698 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17699 | # We already found the complete path | |
17700 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17702 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17703 | elif test "x$target" = "x$host"; then | |
17704 | # We can use an host tool | |
17705 | GOC_FOR_TARGET='$(GOC)' | |
17706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17707 | $as_echo "host tool" >&6; } | |
17708 | else | |
17709 | # We need a cross tool | |
17710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17711 | $as_echo "pre-installed" >&6; } | |
17712 | fi | |
17713 | fi | |
17714 | ||
b4c522fa IB |
17715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17716 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17717 | if test "x${build}" != "x${host}" ; then | |
17718 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17719 | # We already found the complete path | |
17720 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17722 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17723 | else | |
17724 | # Canadian cross, just use what we found | |
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17726 | $as_echo "pre-installed" >&6; } | |
17727 | fi | |
17728 | else | |
17729 | ok=yes | |
17730 | case " ${configdirs} " in | |
17731 | *" gcc "*) ;; | |
17732 | *) ok=no ;; | |
17733 | esac | |
17734 | case ,${enable_languages}, in | |
17735 | *,d,*) ;; | |
17736 | *) ok=no ;; | |
17737 | esac | |
17738 | if test $ok = yes; then | |
17739 | # An in-tree tool is available and we can use it | |
17740 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17742 | $as_echo "just compiled" >&6; } | |
17743 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17744 | # We already found the complete path | |
17745 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17747 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17748 | elif test "x$target" = "x$host"; then | |
17749 | # We can use an host tool | |
17750 | GDC_FOR_TARGET='$(GDC)' | |
17751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17752 | $as_echo "host tool" >&6; } | |
17753 | else | |
17754 | # We need a cross tool | |
17755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17756 | $as_echo "pre-installed" >&6; } | |
17757 | fi | |
17758 | fi | |
17759 | ||
5213506e RW |
17760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17761 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 17762 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17763 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17764 | # We already found the complete path | |
172e41aa | 17765 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17767 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17768 | else |
17769 | # Canadian cross, just use what we found | |
5213506e RW |
17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17771 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17772 | fi |
2abefe3d PB |
17773 | else |
17774 | ok=yes | |
17775 | case " ${configdirs} " in | |
17776 | *" ld "*) ;; | |
17777 | *) ok=no ;; | |
17778 | esac | |
1c710c3c | 17779 | |
2abefe3d PB |
17780 | if test $ok = yes; then |
17781 | # An in-tree tool is available and we can use it | |
17782 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
17783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17784 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17785 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17786 | # We already found the complete path | |
172e41aa | 17787 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17789 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17790 | elif test "x$target" = "x$host"; then |
17791 | # We can use an host tool | |
17792 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
17793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17794 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17795 | else |
17796 | # We need a cross tool | |
5213506e RW |
17797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17798 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17799 | fi |
17800 | fi | |
0b0dc272 | 17801 | |
5213506e RW |
17802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
17803 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 17804 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17805 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17806 | # We already found the complete path | |
172e41aa | 17807 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17809 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17810 | else |
17811 | # Canadian cross, just use what we found | |
5213506e RW |
17812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17813 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17814 | fi |
2abefe3d | 17815 | else |
e8b05380 PB |
17816 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17817 | # We already found the complete path | |
172e41aa | 17818 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17820 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 17821 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
17822 | # We can use an host tool |
17823 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
17824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17825 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17826 | else |
17827 | # We need a cross tool | |
5213506e RW |
17828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17829 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17830 | fi |
17831 | fi | |
0b0dc272 | 17832 | |
5213506e RW |
17833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
17834 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 17835 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17836 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17837 | # We already found the complete path | |
172e41aa | 17838 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17840 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17841 | else |
17842 | # Canadian cross, just use what we found | |
5213506e RW |
17843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17844 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17845 | fi |
2abefe3d PB |
17846 | else |
17847 | ok=yes | |
17848 | case " ${configdirs} " in | |
17849 | *" binutils "*) ;; | |
17850 | *) ok=no ;; | |
17851 | esac | |
1c710c3c | 17852 | |
2abefe3d PB |
17853 | if test $ok = yes; then |
17854 | # An in-tree tool is available and we can use it | |
17855 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
17856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17857 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17858 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17859 | # We already found the complete path | |
172e41aa | 17860 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17862 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17863 | elif test "x$target" = "x$host"; then |
17864 | # We can use an host tool | |
17865 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17867 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17868 | else |
17869 | # We need a cross tool | |
5213506e RW |
17870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17871 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17872 | fi |
17873 | fi | |
0b0dc272 | 17874 | |
9bccfdf5 AP |
17875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
17876 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
17877 | if test "x${build}" != "x${host}" ; then | |
17878 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17879 | # We already found the complete path | |
17880 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17882 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17883 | else | |
17884 | # Canadian cross, just use what we found | |
17885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17886 | $as_echo "pre-installed" >&6; } | |
17887 | fi | |
17888 | else | |
17889 | ok=yes | |
17890 | case " ${configdirs} " in | |
17891 | *" binutils "*) ;; | |
17892 | *) ok=no ;; | |
17893 | esac | |
17894 | ||
17895 | if test $ok = yes; then | |
17896 | # An in-tree tool is available and we can use it | |
17897 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
17898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17899 | $as_echo "just compiled" >&6; } | |
17900 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17901 | # We already found the complete path | |
17902 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17904 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17905 | elif test "x$target" = "x$host"; then | |
17906 | # We can use an host tool | |
ec8fd1c0 | 17907 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
17908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17909 | $as_echo "host tool" >&6; } | |
17910 | else | |
17911 | # We need a cross tool | |
17912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17913 | $as_echo "pre-installed" >&6; } | |
17914 | fi | |
17915 | fi | |
17916 | ||
5213506e RW |
17917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
17918 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 17919 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17920 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17921 | # We already found the complete path | |
172e41aa | 17922 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17924 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17925 | else |
17926 | # Canadian cross, just use what we found | |
5213506e RW |
17927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17928 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17929 | fi |
2abefe3d PB |
17930 | else |
17931 | ok=yes | |
17932 | case " ${configdirs} " in | |
17933 | *" binutils "*) ;; | |
17934 | *) ok=no ;; | |
17935 | esac | |
1c710c3c | 17936 | |
2abefe3d PB |
17937 | if test $ok = yes; then |
17938 | # An in-tree tool is available and we can use it | |
17939 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
17940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17941 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17942 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17943 | # We already found the complete path | |
172e41aa | 17944 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17946 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17947 | elif test "x$target" = "x$host"; then |
17948 | # We can use an host tool | |
17949 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
17950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17951 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17952 | else |
17953 | # We need a cross tool | |
5213506e RW |
17954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17955 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17956 | fi |
17957 | fi | |
0b0dc272 | 17958 | |
e4a9a572 IS |
17959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
17960 | $as_echo_n "checking where to find the target otool... " >&6; } | |
17961 | if test "x${build}" != "x${host}" ; then | |
17962 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17963 | # We already found the complete path | |
17964 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17966 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17967 | else | |
17968 | # Canadian cross, just use what we found | |
17969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17970 | $as_echo "pre-installed" >&6; } | |
17971 | fi | |
17972 | else | |
17973 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17974 | # We already found the complete path | |
17975 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17977 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17978 | elif test "x$target" = "x$host"; then | |
17979 | # We can use an host tool | |
17980 | OTOOL_FOR_TARGET='$(OTOOL)' | |
17981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17982 | $as_echo "host tool" >&6; } | |
17983 | else | |
17984 | # We need a cross tool | |
17985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17986 | $as_echo "pre-installed" >&6; } | |
17987 | fi | |
17988 | fi | |
17989 | ||
5213506e RW |
17990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
17991 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 17992 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17993 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17994 | # We already found the complete path | |
172e41aa | 17995 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17997 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17998 | else |
17999 | # Canadian cross, just use what we found | |
5213506e RW |
18000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18001 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18002 | fi |
2abefe3d PB |
18003 | else |
18004 | ok=yes | |
18005 | case " ${configdirs} " in | |
18006 | *" binutils "*) ;; | |
18007 | *) ok=no ;; | |
18008 | esac | |
1c710c3c | 18009 | |
2abefe3d PB |
18010 | if test $ok = yes; then |
18011 | # An in-tree tool is available and we can use it | |
18012 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
18013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18014 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18015 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18016 | # We already found the complete path | |
172e41aa | 18017 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
18018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18019 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18020 | elif test "x$target" = "x$host"; then |
18021 | # We can use an host tool | |
18022 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
18023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18024 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18025 | else |
18026 | # We need a cross tool | |
5213506e RW |
18027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18028 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18029 | fi |
18030 | fi | |
0b0dc272 | 18031 | |
e7a82751 RM |
18032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18033 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18034 | if test "x${build}" != "x${host}" ; then | |
18035 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18036 | # We already found the complete path | |
18037 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18039 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18040 | else | |
18041 | # Canadian cross, just use what we found | |
18042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18043 | $as_echo "pre-installed" >&6; } | |
18044 | fi | |
18045 | else | |
18046 | ok=yes | |
18047 | case " ${configdirs} " in | |
18048 | *" binutils "*) ;; | |
18049 | *) ok=no ;; | |
18050 | esac | |
18051 | ||
18052 | if test $ok = yes; then | |
18053 | # An in-tree tool is available and we can use it | |
18054 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18056 | $as_echo "just compiled" >&6; } | |
18057 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18058 | # We already found the complete path | |
18059 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18061 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18062 | elif test "x$target" = "x$host"; then | |
18063 | # We can use an host tool | |
18064 | READELF_FOR_TARGET='$(READELF)' | |
18065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18066 | $as_echo "host tool" >&6; } | |
18067 | else | |
18068 | # We need a cross tool | |
18069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18070 | $as_echo "pre-installed" >&6; } | |
18071 | fi | |
18072 | fi | |
18073 | ||
5213506e RW |
18074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18075 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 18076 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18077 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18078 | # We already found the complete path | |
172e41aa | 18079 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18081 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18082 | else |
18083 | # Canadian cross, just use what we found | |
5213506e RW |
18084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18085 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18086 | fi |
2abefe3d PB |
18087 | else |
18088 | ok=yes | |
18089 | case " ${configdirs} " in | |
18090 | *" binutils "*) ;; | |
18091 | *) ok=no ;; | |
18092 | esac | |
1c710c3c | 18093 | |
2abefe3d PB |
18094 | if test $ok = yes; then |
18095 | # An in-tree tool is available and we can use it | |
455c8f48 | 18096 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18098 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18099 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18100 | # We already found the complete path | |
172e41aa | 18101 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18103 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18104 | elif test "x$target" = "x$host"; then |
18105 | # We can use an host tool | |
18106 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
18107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18108 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18109 | else |
18110 | # We need a cross tool | |
5213506e RW |
18111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18112 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18113 | fi |
18114 | fi | |
0b0dc272 | 18115 | |
5213506e RW |
18116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18117 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 18118 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18119 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18120 | # We already found the complete path | |
172e41aa | 18121 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18123 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18124 | else |
18125 | # Canadian cross, just use what we found | |
5213506e RW |
18126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18127 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18128 | fi |
2abefe3d PB |
18129 | else |
18130 | ok=yes | |
18131 | case " ${configdirs} " in | |
18132 | *" binutils "*) ;; | |
18133 | *) ok=no ;; | |
18134 | esac | |
1c710c3c | 18135 | |
2abefe3d PB |
18136 | if test $ok = yes; then |
18137 | # An in-tree tool is available and we can use it | |
18138 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
18139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18140 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18141 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18142 | # We already found the complete path | |
172e41aa | 18143 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18145 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18146 | elif test "x$target" = "x$host"; then |
18147 | # We can use an host tool | |
18148 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
18149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18150 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18151 | else |
18152 | # We need a cross tool | |
5213506e RW |
18153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18154 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 18155 | fi |
671aa708 | 18156 | fi |
be912515 | 18157 | |
5213506e RW |
18158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18159 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
18160 | if test "x${build}" != "x${host}" ; then |
18161 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18162 | # We already found the complete path | |
18163 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18165 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18166 | else |
18167 | # Canadian cross, just use what we found | |
5213506e RW |
18168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18169 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18170 | fi |
18171 | else | |
18172 | ok=yes | |
18173 | case " ${configdirs} " in | |
18174 | *" binutils "*) ;; | |
18175 | *) ok=no ;; | |
18176 | esac | |
18177 | ||
18178 | if test $ok = yes; then | |
18179 | # An in-tree tool is available and we can use it | |
18180 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
18181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18182 | $as_echo "just compiled" >&6; } | |
901119ae KT |
18183 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18184 | # We already found the complete path | |
18185 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18187 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18188 | elif test "x$target" = "x$host"; then |
18189 | # We can use an host tool | |
18190 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
18191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18192 | $as_echo "host tool" >&6; } | |
901119ae KT |
18193 | else |
18194 | # We need a cross tool | |
5213506e RW |
18195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18196 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18197 | fi |
18198 | fi | |
18199 | ||
be912515 NN |
18200 | |
18201 | ||
2abefe3d | 18202 | |
0b0dc272 | 18203 | |
671aa708 NN |
18204 | # Certain tools may need extra flags. |
18205 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18206 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18207 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18208 | ||
2abefe3d PB |
18209 | # When building target libraries, except in a Canadian cross, we use |
18210 | # the same toolchain as the compiler we just built. | |
18211 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18212 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18213 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18214 | if test $host = $build; then | |
18215 | case " $configdirs " in | |
18216 | *" gcc "*) | |
18217 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18218 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18219 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18220 | ;; | |
18221 | esac | |
18222 | fi | |
18223 | ||
18224 | ||
18225 | ||
18226 | ||
18227 | ||
5213506e RW |
18228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18229 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18230 | # Check whether --enable-maintainer-mode was given. | |
18231 | if test "${enable_maintainer_mode+set}" = set; then : | |
18232 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
18233 | else |
18234 | USE_MAINTAINER_MODE=no | |
5213506e RW |
18235 | fi |
18236 | ||
18237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18238 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
18239 | |
18240 | ||
18241 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18242 | MAINTAINER_MODE_TRUE= | |
18243 | MAINTAINER_MODE_FALSE='#' | |
18244 | else | |
18245 | MAINTAINER_MODE_TRUE='#' | |
18246 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 18247 | fi |
ee03dc5e AO |
18248 | MAINT=$MAINTAINER_MODE_TRUE |
18249 | ||
2805b53a NN |
18250 | # --------------------- |
18251 | # GCC bootstrap support | |
18252 | # --------------------- | |
18253 | ||
18254 | # Stage specific cflags for build. | |
18255 | stage1_cflags="-g" | |
18256 | case $build in | |
18257 | vax-*-*) | |
18258 | case ${GCC} in | |
18259 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18260 | *) stage1_cflags="-g -J" ;; | |
18261 | esac ;; | |
2805b53a NN |
18262 | esac |
18263 | ||
0b50988a | 18264 | |
2805b53a | 18265 | |
8efea775 | 18266 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
18267 | # Check whether --enable-stage1-checking was given. |
18268 | if test "${enable_stage1_checking+set}" = set; then : | |
18269 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 18270 | else |
e643dc23 | 18271 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
18272 | # For --disable-checking or implicit --enable-checking=release, avoid |
18273 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18274 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
18275 | case $BUILD_CONFIG in |
18276 | *lto*) | |
7db11a5a JJ |
18277 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18278 | *) | |
18279 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 18280 | esac |
7db11a5a JJ |
18281 | if test "x$enable_checking" = x && \ |
18282 | test -d ${srcdir}/gcc && \ | |
18283 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 18284 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 18285 | fi |
8efea775 | 18286 | else |
e643dc23 | 18287 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 18288 | fi |
5213506e | 18289 | fi |
8efea775 PB |
18290 | |
18291 | ||
2aeb72e9 | 18292 | |
5213506e RW |
18293 | # Enable -Werror in bootstrap stage2 and later. |
18294 | # Check whether --enable-werror was given. | |
18295 | if test "${enable_werror+set}" = set; then : | |
18296 | enableval=$enable_werror; | |
09a9c095 NN |
18297 | case ${enable_werror} in |
18298 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18299 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
18300 | esac |
18301 | ||
afd88efc ML |
18302 | else |
18303 | ||
01c712cb ML |
18304 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18305 | case $BUILD_CONFIG in | |
18306 | bootstrap-debug) | |
18307 | stage2_werror_flag="--enable-werror-always" ;; | |
18308 | "") | |
18309 | stage2_werror_flag="--enable-werror-always" ;; | |
18310 | esac | |
18311 | fi | |
18312 | ||
afd88efc ML |
18313 | fi |
18314 | ||
18315 | ||
01c712cb | 18316 | |
2805b53a | 18317 | |
f2689b09 SE |
18318 | # Specify what files to not compare during bootstrap. |
18319 | ||
18320 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
18321 | case "$target" in | |
18322 | hppa*64*-*-hpux*) ;; | |
4f943869 MK |
18323 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
18324 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
f2689b09 SE |
18325 | esac |
18326 | ||
18327 | ||
5213506e RW |
18328 | ac_config_files="$ac_config_files Makefile" |
18329 | ||
1c710c3c | 18330 | cat >confcache <<\_ACEOF |
671aa708 NN |
18331 | # This file is a shell script that caches the results of configure |
18332 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
18333 | # scripts and configure runs, see configure's option --config-cache. |
18334 | # It is not useful on other systems. If it contains results you don't | |
18335 | # want to keep, you may remove or edit it. | |
671aa708 | 18336 | # |
1c710c3c DJ |
18337 | # config.status only pays attention to the cache file if you give it |
18338 | # the --recheck option to rerun configure. | |
671aa708 | 18339 | # |
1c710c3c DJ |
18340 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18341 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18342 | # following values. | |
18343 | ||
18344 | _ACEOF | |
18345 | ||
671aa708 NN |
18346 | # The following way of writing the cache mishandles newlines in values, |
18347 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 18348 | # So, we kill variables containing newlines. |
671aa708 NN |
18349 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18350 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
18351 | ( |
18352 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18353 | eval ac_val=\$$ac_var | |
18354 | case $ac_val in #( | |
18355 | *${as_nl}*) | |
18356 | case $ac_var in #( | |
18357 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18358 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18359 | esac | |
18360 | case $ac_var in #( | |
18361 | _ | IFS | as_nl) ;; #( | |
18362 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18363 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18364 | esac ;; | |
18365 | esac | |
18366 | done | |
18367 | ||
1c710c3c | 18368 | (set) 2>&1 | |
5213506e RW |
18369 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18370 | *${as_nl}ac_space=\ *) | |
18371 | # `set' does not quote correctly, so add quotes: double-quote | |
18372 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
18373 | sed -n \ |
18374 | "s/'/'\\\\''/g; | |
18375 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 18376 | ;; #( |
1c710c3c DJ |
18377 | *) |
18378 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 18379 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 18380 | ;; |
5213506e RW |
18381 | esac | |
18382 | sort | |
18383 | ) | | |
1c710c3c | 18384 | sed ' |
5213506e | 18385 | /^ac_cv_env_/b end |
1c710c3c | 18386 | t clear |
5213506e | 18387 | :clear |
1c710c3c DJ |
18388 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18389 | t end | |
5213506e RW |
18390 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18391 | :end' >>confcache | |
18392 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18393 | if test -w "$cache_file"; then | |
22e05272 | 18394 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
18395 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18396 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
18397 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18398 | cat confcache >"$cache_file" | |
18399 | else | |
18400 | case $cache_file in #( | |
18401 | */* | ?:*) | |
18402 | mv -f confcache "$cache_file"$$ && | |
18403 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18404 | *) | |
18405 | mv -f confcache "$cache_file" ;; | |
18406 | esac | |
18407 | fi | |
18408 | fi | |
671aa708 | 18409 | else |
5213506e RW |
18410 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18411 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 18412 | fi |
4977bab6 | 18413 | fi |
671aa708 | 18414 | rm -f confcache |
79c06341 | 18415 | |
671aa708 NN |
18416 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18417 | # Let make expand exec_prefix. | |
18418 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 18419 | |
671aa708 NN |
18420 | # Transform confdefs.h into DEFS. |
18421 | # Protect against shell expansion while executing Makefile rules. | |
18422 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
18423 | # |
18424 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 18425 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 18426 | # look for a macro that doesn't take arguments. |
5213506e RW |
18427 | ac_script=' |
18428 | :mline | |
18429 | /\\$/{ | |
18430 | N | |
18431 | s,\\\n,, | |
18432 | b mline | |
18433 | } | |
1c710c3c | 18434 | t clear |
5213506e RW |
18435 | :clear |
18436 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 18437 | t quote |
5213506e | 18438 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 18439 | t quote |
5213506e RW |
18440 | b any |
18441 | :quote | |
18442 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18443 | s/\[/\\&/g | |
18444 | s/\]/\\&/g | |
18445 | s/\$/$$/g | |
18446 | H | |
18447 | :any | |
18448 | ${ | |
18449 | g | |
18450 | s/^\n// | |
18451 | s/\n/ /g | |
18452 | p | |
18453 | } | |
18454 | ' | |
18455 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
18456 | |
18457 | ||
18458 | ac_libobjs= | |
18459 | ac_ltlibobjs= | |
22e05272 | 18460 | U= |
1c710c3c DJ |
18461 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18462 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
18463 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18464 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18465 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18466 | # will be set to the directory where LIBOBJS objects are built. | |
18467 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18468 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
18469 | done |
18470 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 18471 | |
1c710c3c | 18472 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 18473 | |
af71363e | 18474 | |
1c710c3c | 18475 | |
22e05272 | 18476 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 18477 | ac_write_fail=0 |
1c710c3c DJ |
18478 | ac_clean_files_save=$ac_clean_files |
18479 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
18480 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18481 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18482 | as_write_fail=0 | |
18483 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
18484 | #! $SHELL |
18485 | # Generated by $as_me. | |
671aa708 | 18486 | # Run this file to recreate the current configuration. |
671aa708 | 18487 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 18488 | # configure, is in config.log if it exists. |
0b0dc272 | 18489 | |
1c710c3c DJ |
18490 | debug=false |
18491 | ac_cs_recheck=false | |
18492 | ac_cs_silent=false | |
1c710c3c | 18493 | |
5213506e RW |
18494 | SHELL=\${CONFIG_SHELL-$SHELL} |
18495 | export SHELL | |
18496 | _ASEOF | |
18497 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18498 | ## -------------------- ## | |
18499 | ## M4sh Initialization. ## | |
18500 | ## -------------------- ## | |
18501 | ||
18502 | # Be more Bourne compatible | |
18503 | DUALCASE=1; export DUALCASE # for MKS sh | |
18504 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18505 | emulate sh |
18506 | NULLCMD=: | |
5213506e | 18507 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
18508 | # is contrary to our usage. Disable this feature. |
18509 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
18510 | setopt NO_GLOB_SUBST |
18511 | else | |
18512 | case `(set -o) 2>/dev/null` in #( | |
18513 | *posix*) : | |
18514 | set -o posix ;; #( | |
18515 | *) : | |
18516 | ;; | |
18517 | esac | |
1c710c3c | 18518 | fi |
1c710c3c | 18519 | |
5213506e RW |
18520 | |
18521 | as_nl=' | |
18522 | ' | |
18523 | export as_nl | |
18524 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18525 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18526 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18527 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18528 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18529 | # but without wasting forks for bash or zsh. | |
18530 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18531 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18532 | as_echo='print -r --' | |
18533 | as_echo_n='print -rn --' | |
18534 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18535 | as_echo='printf %s\n' | |
18536 | as_echo_n='printf %s' | |
18537 | else | |
18538 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18539 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18540 | as_echo_n='/usr/ucb/echo -n' | |
18541 | else | |
18542 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18543 | as_echo_n_body='eval | |
18544 | arg=$1; | |
18545 | case $arg in #( | |
18546 | *"$as_nl"*) | |
18547 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18548 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18549 | esac; | |
18550 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18551 | ' | |
18552 | export as_echo_n_body | |
18553 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18554 | fi | |
18555 | export as_echo_body | |
18556 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
18557 | fi |
18558 | ||
5213506e RW |
18559 | # The user is always right. |
18560 | if test "${PATH_SEPARATOR+set}" != set; then | |
18561 | PATH_SEPARATOR=: | |
18562 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18563 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18564 | PATH_SEPARATOR=';' | |
18565 | } | |
18566 | fi | |
18567 | ||
18568 | ||
18569 | # IFS | |
18570 | # We need space, tab and new line, in precisely that order. Quoting is | |
18571 | # there to prevent editors from complaining about space-tab. | |
18572 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18573 | # splitting by setting IFS to empty value.) | |
18574 | IFS=" "" $as_nl" | |
18575 | ||
18576 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 18577 | as_myself= |
5213506e RW |
18578 | case $0 in #(( |
18579 | *[\\/]* ) as_myself=$0 ;; | |
18580 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18581 | for as_dir in $PATH | |
18582 | do | |
18583 | IFS=$as_save_IFS | |
18584 | test -z "$as_dir" && as_dir=. | |
18585 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18586 | done | |
18587 | IFS=$as_save_IFS | |
18588 | ||
18589 | ;; | |
18590 | esac | |
18591 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18592 | # in which case we are not to be found in the path. | |
18593 | if test "x$as_myself" = x; then | |
18594 | as_myself=$0 | |
18595 | fi | |
18596 | if test ! -f "$as_myself"; then | |
18597 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18598 | exit 1 | |
18599 | fi | |
1c710c3c | 18600 | |
5213506e RW |
18601 | # Unset variables that we do not need and which cause bugs (e.g. in |
18602 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18603 | # suppresses any "Segmentation fault" message there. '((' could | |
18604 | # trigger a bug in pdksh 5.2.14. | |
18605 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18606 | do eval test x\${$as_var+set} = xset \ | |
18607 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18608 | done | |
1c710c3c DJ |
18609 | PS1='$ ' |
18610 | PS2='> ' | |
18611 | PS4='+ ' | |
18612 | ||
18613 | # NLS nuisances. | |
5213506e RW |
18614 | LC_ALL=C |
18615 | export LC_ALL | |
18616 | LANGUAGE=C | |
18617 | export LANGUAGE | |
18618 | ||
18619 | # CDPATH. | |
18620 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18621 | ||
18622 | ||
22e05272 JM |
18623 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18624 | # ---------------------------------------- | |
5213506e RW |
18625 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18626 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 18627 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
18628 | as_fn_error () |
18629 | { | |
22e05272 JM |
18630 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18631 | if test "$4"; then | |
18632 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18633 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 18634 | fi |
22e05272 | 18635 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
18636 | as_fn_exit $as_status |
18637 | } # as_fn_error | |
18638 | ||
18639 | ||
18640 | # as_fn_set_status STATUS | |
18641 | # ----------------------- | |
18642 | # Set $? to STATUS, without forking. | |
18643 | as_fn_set_status () | |
18644 | { | |
18645 | return $1 | |
18646 | } # as_fn_set_status | |
18647 | ||
18648 | # as_fn_exit STATUS | |
18649 | # ----------------- | |
18650 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18651 | as_fn_exit () | |
18652 | { | |
18653 | set +e | |
18654 | as_fn_set_status $1 | |
18655 | exit $1 | |
18656 | } # as_fn_exit | |
18657 | ||
18658 | # as_fn_unset VAR | |
18659 | # --------------- | |
18660 | # Portably unset VAR. | |
18661 | as_fn_unset () | |
18662 | { | |
18663 | { eval $1=; unset $1;} | |
18664 | } | |
18665 | as_unset=as_fn_unset | |
18666 | # as_fn_append VAR VALUE | |
18667 | # ---------------------- | |
18668 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18669 | # advantage of any shell optimizations that allow amortized linear growth over | |
18670 | # repeated appends, instead of the typical quadratic growth present in naive | |
18671 | # implementations. | |
18672 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18673 | eval 'as_fn_append () | |
18674 | { | |
18675 | eval $1+=\$2 | |
18676 | }' | |
18677 | else | |
18678 | as_fn_append () | |
18679 | { | |
18680 | eval $1=\$$1\$2 | |
18681 | } | |
18682 | fi # as_fn_append | |
18683 | ||
18684 | # as_fn_arith ARG... | |
18685 | # ------------------ | |
18686 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18687 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18688 | # must be portable across $(()) and expr. | |
18689 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18690 | eval 'as_fn_arith () | |
18691 | { | |
18692 | as_val=$(( $* )) | |
18693 | }' | |
18694 | else | |
18695 | as_fn_arith () | |
18696 | { | |
18697 | as_val=`expr "$@" || test $? -eq 1` | |
18698 | } | |
18699 | fi # as_fn_arith | |
18700 | ||
1c710c3c | 18701 | |
5213506e RW |
18702 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18703 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
18704 | as_expr=expr |
18705 | else | |
18706 | as_expr=false | |
18707 | fi | |
18708 | ||
5213506e | 18709 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
18710 | as_basename=basename |
18711 | else | |
18712 | as_basename=false | |
18713 | fi | |
18714 | ||
5213506e RW |
18715 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18716 | as_dirname=dirname | |
18717 | else | |
18718 | as_dirname=false | |
18719 | fi | |
1c710c3c | 18720 | |
5213506e | 18721 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
18722 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18723 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
18724 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18725 | $as_echo X/"$0" | | |
18726 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18727 | s//\1/ | |
18728 | q | |
18729 | } | |
18730 | /^X\/\(\/\/\)$/{ | |
18731 | s//\1/ | |
18732 | q | |
18733 | } | |
18734 | /^X\/\(\/\).*/{ | |
18735 | s//\1/ | |
18736 | q | |
18737 | } | |
18738 | s/.*/./; q'` | |
2aeb72e9 | 18739 | |
2aeb72e9 DD |
18740 | # Avoid depending upon Character Ranges. |
18741 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18742 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18743 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18744 | as_cr_digits='0123456789' | |
18745 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18746 | ||
5213506e RW |
18747 | ECHO_C= ECHO_N= ECHO_T= |
18748 | case `echo -n x` in #((((( | |
18749 | -n*) | |
18750 | case `echo 'xy\c'` in | |
18751 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18752 | xy) ECHO_C='\c';; | |
18753 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18754 | ECHO_T=' ';; | |
18755 | esac;; | |
18756 | *) | |
18757 | ECHO_N='-n';; | |
1c710c3c DJ |
18758 | esac |
18759 | ||
5213506e RW |
18760 | rm -f conf$$ conf$$.exe conf$$.file |
18761 | if test -d conf$$.dir; then | |
18762 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 18763 | else |
5213506e RW |
18764 | rm -f conf$$.dir |
18765 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 18766 | fi |
5213506e RW |
18767 | if (echo >conf$$.file) 2>/dev/null; then |
18768 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 18769 | as_ln_s='ln -s' |
5213506e RW |
18770 | # ... but there are two gotchas: |
18771 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18772 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 18773 | # In both cases, we have to default to `cp -pR'. |
5213506e | 18774 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 18775 | as_ln_s='cp -pR' |
5213506e RW |
18776 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18777 | as_ln_s=ln | |
18778 | else | |
22e05272 | 18779 | as_ln_s='cp -pR' |
2aeb72e9 | 18780 | fi |
1c710c3c | 18781 | else |
22e05272 | 18782 | as_ln_s='cp -pR' |
1c710c3c | 18783 | fi |
5213506e RW |
18784 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18785 | rmdir conf$$.dir 2>/dev/null | |
18786 | ||
18787 | ||
18788 | # as_fn_mkdir_p | |
18789 | # ------------- | |
18790 | # Create "$as_dir" as a directory, including parents if necessary. | |
18791 | as_fn_mkdir_p () | |
18792 | { | |
18793 | ||
18794 | case $as_dir in #( | |
18795 | -*) as_dir=./$as_dir;; | |
18796 | esac | |
18797 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18798 | as_dirs= | |
18799 | while :; do | |
18800 | case $as_dir in #( | |
18801 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18802 | *) as_qdir=$as_dir;; | |
18803 | esac | |
18804 | as_dirs="'$as_qdir' $as_dirs" | |
18805 | as_dir=`$as_dirname -- "$as_dir" || | |
18806 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18807 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18808 | X"$as_dir" : 'X\(//\)$' \| \ | |
18809 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18810 | $as_echo X"$as_dir" | | |
18811 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18812 | s//\1/ | |
18813 | q | |
18814 | } | |
18815 | /^X\(\/\/\)[^/].*/{ | |
18816 | s//\1/ | |
18817 | q | |
18818 | } | |
18819 | /^X\(\/\/\)$/{ | |
18820 | s//\1/ | |
18821 | q | |
18822 | } | |
18823 | /^X\(\/\).*/{ | |
18824 | s//\1/ | |
18825 | q | |
18826 | } | |
18827 | s/.*/./; q'` | |
18828 | test -d "$as_dir" && break | |
18829 | done | |
18830 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 18831 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 18832 | |
1c710c3c | 18833 | |
5213506e | 18834 | } # as_fn_mkdir_p |
1c710c3c | 18835 | if mkdir -p . 2>/dev/null; then |
5213506e | 18836 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
18837 | else |
18838 | test -d ./-p && rmdir ./-p | |
18839 | as_mkdir_p=false | |
18840 | fi | |
18841 | ||
22e05272 JM |
18842 | |
18843 | # as_fn_executable_p FILE | |
18844 | # ----------------------- | |
18845 | # Test if FILE is an executable regular file. | |
18846 | as_fn_executable_p () | |
18847 | { | |
18848 | test -f "$1" && test -x "$1" | |
18849 | } # as_fn_executable_p | |
18850 | as_test_x='test -x' | |
18851 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
18852 | |
18853 | # Sed expression to map a string onto a valid CPP name. | |
18854 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18855 | ||
18856 | # Sed expression to map a string onto a valid variable name. | |
18857 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18858 | ||
18859 | ||
1c710c3c | 18860 | exec 6>&1 |
5213506e RW |
18861 | ## ----------------------------------- ## |
18862 | ## Main body of $CONFIG_STATUS script. ## | |
18863 | ## ----------------------------------- ## | |
18864 | _ASEOF | |
18865 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18866 | ||
18867 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18868 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 18869 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
18870 | # values after options handling. |
18871 | ac_log=" | |
1c710c3c | 18872 | This file was extended by $as_me, which was |
22e05272 | 18873 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
18874 | |
18875 | CONFIG_FILES = $CONFIG_FILES | |
18876 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18877 | CONFIG_LINKS = $CONFIG_LINKS | |
18878 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18879 | $ $0 $@ | |
18880 | ||
5213506e RW |
18881 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18882 | " | |
18883 | ||
1c710c3c DJ |
18884 | _ACEOF |
18885 | ||
5213506e RW |
18886 | case $ac_config_files in *" |
18887 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18888 | esac | |
1c710c3c | 18889 | |
2aeb72e9 | 18890 | |
2aeb72e9 | 18891 | |
5213506e RW |
18892 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18893 | # Files that config.status was made for. | |
18894 | config_files="$ac_config_files" | |
1c710c3c | 18895 | |
5213506e | 18896 | _ACEOF |
2aeb72e9 | 18897 | |
5213506e | 18898 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 18899 | ac_cs_usage="\ |
5213506e RW |
18900 | \`$as_me' instantiates files and other configuration actions |
18901 | from templates according to the current configuration. Unless the files | |
18902 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 18903 | |
5213506e | 18904 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
18905 | |
18906 | -h, --help print this help, then exit | |
5213506e | 18907 | -V, --version print version number and configuration settings, then exit |
22e05272 | 18908 | --config print configuration, then exit |
5213506e RW |
18909 | -q, --quiet, --silent |
18910 | do not print progress messages | |
1c710c3c DJ |
18911 | -d, --debug don't remove temporary files |
18912 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
18913 | --file=FILE[:TEMPLATE] |
18914 | instantiate the configuration file FILE | |
1c710c3c DJ |
18915 | |
18916 | Configuration files: | |
18917 | $config_files | |
18918 | ||
5213506e | 18919 | Report bugs to the package provider." |
2aeb72e9 | 18920 | |
5213506e RW |
18921 | _ACEOF |
18922 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18923 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
18924 | ac_cs_version="\\ |
18925 | config.status | |
22e05272 JM |
18926 | configured by $0, generated by GNU Autoconf 2.69, |
18927 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 18928 | |
22e05272 | 18929 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
18930 | This config.status script is free software; the Free Software Foundation |
18931 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
18932 | |
18933 | ac_pwd='$ac_pwd' | |
18934 | srcdir='$srcdir' | |
18935 | INSTALL='$INSTALL' | |
87264276 | 18936 | AWK='$AWK' |
5213506e | 18937 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
18938 | _ACEOF |
18939 | ||
5213506e RW |
18940 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18941 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
18942 | ac_need_defaults=: |
18943 | while test $# != 0 | |
a4b9e93e | 18944 | do |
1c710c3c | 18945 | case $1 in |
22e05272 | 18946 | --*=?*) |
5213506e RW |
18947 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18948 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
18949 | ac_shift=: |
18950 | ;; | |
22e05272 JM |
18951 | --*=) |
18952 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18953 | ac_optarg= | |
18954 | ac_shift=: | |
18955 | ;; | |
5213506e | 18956 | *) |
1c710c3c DJ |
18957 | ac_option=$1 |
18958 | ac_optarg=$2 | |
18959 | ac_shift=shift | |
18960 | ;; | |
1c710c3c DJ |
18961 | esac |
18962 | ||
18963 | case $ac_option in | |
18964 | # Handling of the options. | |
671aa708 | 18965 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 18966 | ac_cs_recheck=: ;; |
5213506e RW |
18967 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18968 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
18969 | --config | --confi | --conf | --con | --co | --c ) |
18970 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 18971 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
18972 | debug=: ;; |
18973 | --file | --fil | --fi | --f ) | |
18974 | $ac_shift | |
5213506e RW |
18975 | case $ac_optarg in |
18976 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 18977 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
18978 | esac |
18979 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 18980 | ac_need_defaults=false;; |
5213506e RW |
18981 | --he | --h | --help | --hel | -h ) |
18982 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
18983 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18984 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18985 | ac_cs_silent=: ;; | |
18986 | ||
18987 | # This is an error. | |
22e05272 | 18988 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 18989 | Try \`$0 --help' for more information." ;; |
1c710c3c | 18990 | |
5213506e RW |
18991 | *) as_fn_append ac_config_targets " $1" |
18992 | ac_need_defaults=false ;; | |
1c710c3c | 18993 | |
0b0dc272 | 18994 | esac |
1c710c3c | 18995 | shift |
0b0dc272 AM |
18996 | done |
18997 | ||
1c710c3c | 18998 | ac_configure_extra_args= |
0b0dc272 | 18999 | |
1c710c3c DJ |
19000 | if $ac_cs_silent; then |
19001 | exec 6>/dev/null | |
19002 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19003 | fi | |
0b0dc272 | 19004 | |
1c710c3c | 19005 | _ACEOF |
5213506e | 19006 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 19007 | if \$ac_cs_recheck; then |
22e05272 | 19008 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
19009 | shift |
19010 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19011 | CONFIG_SHELL='$SHELL' | |
19012 | export CONFIG_SHELL | |
19013 | exec "\$@" | |
1c710c3c DJ |
19014 | fi |
19015 | ||
19016 | _ACEOF | |
5213506e RW |
19017 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19018 | exec 5>>config.log | |
19019 | { | |
19020 | echo | |
19021 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19022 | ## Running $as_me. ## | |
19023 | _ASBOX | |
19024 | $as_echo "$ac_log" | |
19025 | } >&5 | |
1c710c3c | 19026 | |
5213506e RW |
19027 | _ACEOF |
19028 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
19029 | # |
19030 | # INIT-COMMANDS | |
19031 | # | |
19032 | extrasub_build="$extrasub_build" | |
19033 | extrasub_host="$extrasub_host" | |
19034 | extrasub_target="$extrasub_target" | |
19035 | ||
5213506e | 19036 | _ACEOF |
1c710c3c | 19037 | |
5213506e | 19038 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 19039 | |
5213506e | 19040 | # Handling of arguments. |
1c710c3c DJ |
19041 | for ac_config_target in $ac_config_targets |
19042 | do | |
5213506e RW |
19043 | case $ac_config_target in |
19044 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19045 | ||
22e05272 | 19046 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
19047 | esac |
19048 | done | |
19049 | ||
5213506e | 19050 | |
1c710c3c DJ |
19051 | # If the user did not use the arguments to specify the items to instantiate, |
19052 | # then the envvar interface is used. Set only those that are not. | |
19053 | # We use the long form for the default assignment because of an extremely | |
19054 | # bizarre bug on SunOS 4.1.3. | |
19055 | if $ac_need_defaults; then | |
19056 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19057 | fi | |
19058 | ||
19059 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 19060 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 19061 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
19062 | # Hook for its removal unless debugging. |
19063 | # Note that there is a small window in which the directory will not be cleaned: | |
19064 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
19065 | $debug || |
19066 | { | |
22e05272 | 19067 | tmp= ac_tmp= |
5213506e | 19068 | trap 'exit_status=$? |
22e05272 JM |
19069 | : "${ac_tmp:=$tmp}" |
19070 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
19071 | ' 0 |
19072 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 19073 | } |
1c710c3c DJ |
19074 | # Create a (secure) tmp directory for tmp files. |
19075 | ||
19076 | { | |
5213506e | 19077 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 19078 | test -d "$tmp" |
1c710c3c DJ |
19079 | } || |
19080 | { | |
5213506e RW |
19081 | tmp=./conf$$-$RANDOM |
19082 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
19083 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19084 | ac_tmp=$tmp | |
5213506e RW |
19085 | |
19086 | # Set up the scripts for CONFIG_FILES section. | |
19087 | # No need to generate them if there are no CONFIG_FILES. | |
19088 | # This happens for instance with `./config.status config.h'. | |
19089 | if test -n "$CONFIG_FILES"; then | |
19090 | ||
19091 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19092 | ac_cs_awk_getline=: | |
19093 | ac_cs_awk_pipe_init= | |
19094 | ac_cs_awk_read_file=' | |
19095 | while ((getline aline < (F[key])) > 0) | |
19096 | print(aline) | |
19097 | close(F[key])' | |
19098 | ac_cs_awk_pipe_fini= | |
19099 | else | |
19100 | ac_cs_awk_getline=false | |
19101 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19102 | ac_cs_awk_read_file=' | |
19103 | print "|#_!!_#|" | |
19104 | print "cat " F[key] " &&" | |
19105 | '$ac_cs_awk_pipe_init | |
19106 | # The final `:' finishes the AND list. | |
19107 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19108 | fi | |
19109 | ac_cr=`echo X | tr X '\015'` | |
19110 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19111 | # But we know of no other shell where ac_cr would be empty at this | |
19112 | # point, so we can use a bashism as a fallback. | |
19113 | if test "x$ac_cr" = x; then | |
19114 | eval ac_cr=\$\'\\r\' | |
19115 | fi | |
19116 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19117 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 19118 | ac_cs_awk_cr='\\r' |
5213506e RW |
19119 | else |
19120 | ac_cs_awk_cr=$ac_cr | |
19121 | fi | |
19122 | ||
22e05272 | 19123 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
19124 | _ACEOF |
19125 | ||
19126 | # Create commands to substitute file output variables. | |
1c710c3c | 19127 | { |
5213506e | 19128 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 19129 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
19130 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19131 | echo "_ACAWK" && | |
19132 | echo "_ACEOF" | |
19133 | } >conf$$files.sh && | |
19134 | . ./conf$$files.sh || | |
22e05272 | 19135 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19136 | rm -f conf$$files.sh |
1c710c3c | 19137 | |
5213506e RW |
19138 | { |
19139 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19140 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19141 | echo "_ACEOF" | |
19142 | } >conf$$subs.sh || | |
22e05272 JM |
19143 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19144 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
19145 | ac_delim='%!_!# ' |
19146 | for ac_last_try in false false false false false :; do | |
19147 | . ./conf$$subs.sh || | |
22e05272 | 19148 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19149 | |
19150 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19151 | if test $ac_delim_n = $ac_delim_num; then | |
19152 | break | |
19153 | elif $ac_last_try; then | |
22e05272 | 19154 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19155 | else |
19156 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19157 | fi | |
19158 | done | |
19159 | rm -f conf$$subs.sh | |
19160 | ||
19161 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19162 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 19163 | _ACEOF |
5213506e RW |
19164 | sed -n ' |
19165 | h | |
19166 | s/^/S["/; s/!.*/"]=/ | |
19167 | p | |
19168 | g | |
19169 | s/^[^!]*!// | |
19170 | :repl | |
19171 | t repl | |
19172 | s/'"$ac_delim"'$// | |
19173 | t delim | |
19174 | :nl | |
19175 | h | |
22e05272 | 19176 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19177 | t more1 |
19178 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19179 | p | |
19180 | n | |
19181 | b repl | |
19182 | :more1 | |
19183 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19184 | p | |
19185 | g | |
19186 | s/.\{148\}// | |
19187 | t nl | |
19188 | :delim | |
19189 | h | |
22e05272 | 19190 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19191 | t more2 |
19192 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19193 | p | |
19194 | b | |
19195 | :more2 | |
19196 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19197 | p | |
19198 | g | |
19199 | s/.\{148\}// | |
19200 | t delim | |
19201 | ' <conf$$subs.awk | sed ' | |
19202 | /^[^""]/{ | |
19203 | N | |
19204 | s/\n// | |
19205 | } | |
19206 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19207 | rm -f conf$$subs.awk | |
19208 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19209 | _ACAWK | |
22e05272 | 19210 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
19211 | for (key in S) S_is_set[key] = 1 |
19212 | FS = "\a" | |
19213 | \$ac_cs_awk_pipe_init | |
19214 | } | |
19215 | { | |
19216 | line = $ 0 | |
19217 | nfields = split(line, field, "@") | |
19218 | substed = 0 | |
19219 | len = length(field[1]) | |
19220 | for (i = 2; i < nfields; i++) { | |
19221 | key = field[i] | |
19222 | keylen = length(key) | |
19223 | if (S_is_set[key]) { | |
19224 | value = S[key] | |
19225 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19226 | len += length(value) + length(field[++i]) | |
19227 | substed = 1 | |
19228 | } else | |
19229 | len += 1 + keylen | |
19230 | } | |
19231 | if (nfields == 3 && !substed) { | |
19232 | key = field[2] | |
19233 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19234 | \$ac_cs_awk_read_file | |
19235 | next | |
19236 | } | |
19237 | } | |
19238 | print line | |
19239 | } | |
19240 | \$ac_cs_awk_pipe_fini | |
19241 | _ACAWK | |
19242 | _ACEOF | |
19243 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19244 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19245 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19246 | else | |
19247 | cat | |
22e05272 JM |
19248 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19249 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
19250 | _ACEOF |
19251 | ||
22e05272 JM |
19252 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19253 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
19254 | # trailing colons and then remove the whole line if VPATH becomes empty |
19255 | # (actually we leave an empty line to preserve line numbers). | |
19256 | if test "x$srcdir" = x.; then | |
22e05272 JM |
19257 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19258 | h | |
19259 | s/// | |
19260 | s/^/:/ | |
19261 | s/[ ]*$/:/ | |
19262 | s/:\$(srcdir):/:/g | |
19263 | s/:\${srcdir}:/:/g | |
19264 | s/:@srcdir@:/:/g | |
19265 | s/^:*// | |
5213506e | 19266 | s/:*$// |
22e05272 JM |
19267 | x |
19268 | s/\(=[ ]*\).*/\1/ | |
19269 | G | |
19270 | s/\n// | |
5213506e RW |
19271 | s/^[^=]*=[ ]*$// |
19272 | }' | |
19273 | fi | |
2aeb72e9 | 19274 | |
5213506e RW |
19275 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19276 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 19277 | |
1c710c3c | 19278 | |
5213506e RW |
19279 | eval set X " :F $CONFIG_FILES " |
19280 | shift | |
19281 | for ac_tag | |
19282 | do | |
19283 | case $ac_tag in | |
19284 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19285 | esac | |
19286 | case $ac_mode$ac_tag in | |
19287 | :[FHL]*:*);; | |
22e05272 | 19288 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
19289 | :[FH]-) ac_tag=-:-;; |
19290 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19291 | esac | |
19292 | ac_save_IFS=$IFS | |
19293 | IFS=: | |
19294 | set x $ac_tag | |
19295 | IFS=$ac_save_IFS | |
19296 | shift | |
19297 | ac_file=$1 | |
19298 | shift | |
79c06341 | 19299 | |
5213506e RW |
19300 | case $ac_mode in |
19301 | :L) ac_source=$1;; | |
19302 | :[FH]) | |
19303 | ac_file_inputs= | |
19304 | for ac_f | |
19305 | do | |
19306 | case $ac_f in | |
22e05272 | 19307 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
19308 | *) # Look for the file first in the build tree, then in the source tree |
19309 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19310 | # because $ac_f cannot contain `:'. | |
19311 | test -f "$ac_f" || | |
19312 | case $ac_f in | |
19313 | [\\/$]*) false;; | |
19314 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19315 | esac || | |
22e05272 | 19316 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
19317 | esac |
19318 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19319 | as_fn_append ac_file_inputs " '$ac_f'" | |
19320 | done | |
1c710c3c | 19321 | |
5213506e RW |
19322 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19323 | # use $as_me), people would be surprised to read: | |
19324 | # /* config.h. Generated by config.status. */ | |
19325 | configure_input='Generated from '` | |
19326 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19327 | `' by configure.' | |
19328 | if test x"$ac_file" != x-; then | |
19329 | configure_input="$ac_file. $configure_input" | |
19330 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19331 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 19332 | fi |
5213506e RW |
19333 | # Neutralize special characters interpreted by sed in replacement strings. |
19334 | case $configure_input in #( | |
19335 | *\&* | *\|* | *\\* ) | |
19336 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19337 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19338 | *) ac_sed_conf_input=$configure_input;; | |
19339 | esac | |
11a67599 | 19340 | |
5213506e | 19341 | case $ac_tag in |
22e05272 JM |
19342 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19343 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
19344 | esac |
19345 | ;; | |
11a67599 ZW |
19346 | esac |
19347 | ||
5213506e | 19348 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
19349 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19350 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19351 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
19352 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19353 | $as_echo X"$ac_file" | | |
19354 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19355 | s//\1/ | |
19356 | q | |
19357 | } | |
19358 | /^X\(\/\/\)[^/].*/{ | |
19359 | s//\1/ | |
19360 | q | |
19361 | } | |
19362 | /^X\(\/\/\)$/{ | |
19363 | s//\1/ | |
19364 | q | |
19365 | } | |
19366 | /^X\(\/\).*/{ | |
19367 | s//\1/ | |
19368 | q | |
19369 | } | |
19370 | s/.*/./; q'` | |
19371 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 19372 | ac_builddir=. |
0b0dc272 | 19373 | |
5213506e RW |
19374 | case "$ac_dir" in |
19375 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19376 | *) | |
19377 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19378 | # A ".." for each directory in $ac_dir_suffix. | |
19379 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19380 | case $ac_top_builddir_sub in | |
19381 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19382 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19383 | esac ;; | |
19384 | esac | |
19385 | ac_abs_top_builddir=$ac_pwd | |
19386 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19387 | # for backward compatibility: | |
19388 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
19389 | |
19390 | case $srcdir in | |
5213506e | 19391 | .) # We are building in place. |
1c710c3c | 19392 | ac_srcdir=. |
5213506e RW |
19393 | ac_top_srcdir=$ac_top_builddir_sub |
19394 | ac_abs_top_srcdir=$ac_pwd ;; | |
19395 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 19396 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
19397 | ac_top_srcdir=$srcdir |
19398 | ac_abs_top_srcdir=$srcdir ;; | |
19399 | *) # Relative name. | |
19400 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19401 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19402 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 19403 | esac |
5213506e | 19404 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 19405 | |
0b0dc272 | 19406 | |
5213506e RW |
19407 | case $ac_mode in |
19408 | :F) | |
19409 | # | |
19410 | # CONFIG_FILE | |
19411 | # | |
1c710c3c DJ |
19412 | |
19413 | case $INSTALL in | |
19414 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 19415 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 19416 | esac |
5213506e | 19417 | _ACEOF |
11a67599 | 19418 | |
5213506e RW |
19419 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19420 | # If the template does not know about datarootdir, expand it. | |
19421 | # FIXME: This hack should be removed a few years after 2.60. | |
19422 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19423 | ac_sed_dataroot=' | |
19424 | /datarootdir/ { | |
19425 | p | |
19426 | q | |
19427 | } | |
19428 | /@datadir@/p | |
19429 | /@docdir@/p | |
19430 | /@infodir@/p | |
19431 | /@localedir@/p | |
19432 | /@mandir@/p' | |
19433 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19434 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19435 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19437 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 19438 | _ACEOF |
5213506e RW |
19439 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19440 | ac_datarootdir_hack=' | |
19441 | s&@datadir@&$datadir&g | |
19442 | s&@docdir@&$docdir&g | |
19443 | s&@infodir@&$infodir&g | |
19444 | s&@localedir@&$localedir&g | |
19445 | s&@mandir@&$mandir&g | |
19446 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19447 | esac | |
19448 | _ACEOF | |
19449 | ||
19450 | # Neutralize VPATH when `$srcdir' = `.'. | |
19451 | # Shell code in configure.ac might set extrasub. | |
19452 | # FIXME: do we really want to maintain this feature? | |
19453 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19454 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
19455 | $extrasub |
19456 | _ACEOF | |
5213506e | 19457 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
19458 | :t |
19459 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
19460 | s|@configure_input@|$ac_sed_conf_input|;t t |
19461 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19462 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19463 | s&@srcdir@&$ac_srcdir&;t t | |
19464 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19465 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19466 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19467 | s&@builddir@&$ac_builddir&;t t | |
19468 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19469 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19470 | s&@INSTALL@&$ac_INSTALL&;t t | |
19471 | $ac_datarootdir_hack | |
19472 | " | |
19473 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19474 | if $ac_cs_awk_getline; then | |
22e05272 | 19475 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 19476 | else |
22e05272 JM |
19477 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19478 | fi \ | |
19479 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
19480 | |
19481 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
19482 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19483 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19484 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 19485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19486 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 19487 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19488 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 19489 | |
22e05272 | 19490 | rm -f "$ac_tmp/stdin" |
5213506e | 19491 | case $ac_file in |
22e05272 JM |
19492 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19493 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 19494 | esac \ |
22e05272 | 19495 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 19496 | ;; |
11a67599 | 19497 | |
11a67599 | 19498 | |
79c06341 | 19499 | |
5213506e RW |
19500 | esac |
19501 | ||
3e54529c RW |
19502 | |
19503 | case $ac_file$ac_mode in | |
19504 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19505 | sed "$extrasub_host" | | |
19506 | sed "$extrasub_target" > mf$$ | |
19507 | mv -f mf$$ Makefile ;; | |
19508 | ||
19509 | esac | |
5213506e RW |
19510 | done # for ac_tag |
19511 | ||
19512 | ||
19513 | as_fn_exit 0 | |
1c710c3c | 19514 | _ACEOF |
1c710c3c DJ |
19515 | ac_clean_files=$ac_clean_files_save |
19516 | ||
5213506e | 19517 | test $ac_write_fail = 0 || |
22e05272 | 19518 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19519 | |
1c710c3c DJ |
19520 | |
19521 | # configure is writing to config.log, and then calls config.status. | |
19522 | # config.status does its own redirection, appending to config.log. | |
19523 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19524 | # by configure, so config.status won't be able to write to it; its | |
19525 | # output is simply discarded. So we exec the FD to /dev/null, | |
19526 | # effectively closing config.log, so it can be properly (re)opened and | |
19527 | # appended to by config.status. When coming back to configure, we | |
19528 | # need to make the FD available again. | |
19529 | if test "$no_create" != yes; then | |
19530 | ac_cs_success=: | |
19531 | ac_config_status_args= | |
19532 | test "$silent" = yes && | |
19533 | ac_config_status_args="$ac_config_status_args --quiet" | |
19534 | exec 5>/dev/null | |
19535 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19536 | exec 5>>config.log | |
19537 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19538 | # would make configure fail if this is the last instruction. | |
22e05272 | 19539 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
19540 | fi |
19541 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19542 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19543 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 19544 | fi |
79c06341 | 19545 |