]>
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 |
9d2d38a4 | 2810 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf" |
671aa708 | 2811 | |
671aa708 NN |
2812 | # these tools are built for the host environment |
2813 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2814 | # know that we are building the simulator. | |
2815 | # binutils, gas and ld appear in that order because it makes sense to run | |
2816 | # "make check" in that particular order. | |
38e3d868 | 2817 | # If --enable-gold is used, "gold" may replace "ld". |
2efd8b1f | 2818 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools" |
671aa708 | 2819 | |
671aa708 NN |
2820 | # these libraries are built for the target environment, and are built after |
2821 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2822 | # Note that libiberty is not a target library. |
291f172e | 2823 | target_libraries="target-libgcc \ |
eff02e4f | 2824 | target-libbacktrace \ |
671aa708 NN |
2825 | target-libgloss \ |
2826 | target-newlib \ | |
6d3b5aea | 2827 | target-libgomp \ |
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 | ;; | |
012447ea JJ |
3547 | ia64*-*-*vms*) |
3548 | noconfigdirs="$noconfigdirs target-libffi" | |
3549 | ;; | |
3550 | i[3456789]86-w64-mingw*) | |
3551 | noconfigdirs="$noconfigdirs target-libffi" | |
3552 | ;; | |
3553 | i[3456789]86-*-mingw*) | |
3554 | noconfigdirs="$noconfigdirs target-libffi" | |
3555 | ;; | |
3556 | x86_64-*-mingw*) | |
3557 | noconfigdirs="$noconfigdirs target-libffi" | |
3558 | ;; | |
3559 | mmix-*-*) | |
3560 | noconfigdirs="$noconfigdirs target-libffi" | |
3561 | ;; | |
3562 | powerpc-*-aix*) | |
012447ea JJ |
3563 | ;; |
3564 | rs6000-*-aix*) | |
012447ea JJ |
3565 | ;; |
3566 | ft32-*-*) | |
3567 | noconfigdirs="$noconfigdirs target-libffi" | |
3568 | ;; | |
3569 | *-*-lynxos*) | |
3570 | noconfigdirs="$noconfigdirs target-libffi" | |
3571 | ;; | |
3572 | esac | |
3573 | ||
3574 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3575 | # this in sync with contrib/config-list.mk. | |
3576 | case "${target}" in | |
91dfef96 | 3577 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3578 | unsupported_languages="$unsupported_languages go" |
3579 | ;; | |
3580 | esac | |
3581 | ||
f9d09df0 TT |
3582 | # Only allow gdbserver on some systems. |
3583 | if test -d ${srcdir}/gdbserver; then | |
3584 | if test x$enable_gdbserver = x; then | |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3586 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3587 | if (srcdir=${srcdir}/gdbserver; \ | |
3588 | . ${srcdir}/configure.srv; \ | |
3589 | test -n "$UNSUPPORTED") | |
3590 | then | |
3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3592 | $as_echo "no" >&6; } | |
3593 | noconfigdirs="$noconfigdirs gdbserver" | |
3594 | else | |
3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3596 | $as_echo "yes" >&6; } | |
3597 | fi | |
3598 | fi | |
3599 | fi | |
3600 | ||
cdbc9e92 ILT |
3601 | # Disable libgo for some systems where it is known to not work. |
3602 | # For testing, you can easily override this with --enable-libgo. | |
3603 | if test x$enable_libgo = x; then | |
3604 | case "${target}" in | |
3605 | *-*-darwin*) | |
3606 | # PR 46986 | |
3607 | noconfigdirs="$noconfigdirs target-libgo" | |
3608 | ;; | |
3609 | *-*-cygwin* | *-*-mingw*) | |
3610 | noconfigdirs="$noconfigdirs target-libgo" | |
3611 | ;; | |
91dfef96 JM |
3612 | bpf-*-*) |
3613 | noconfigdirs="$noconfigdirs target-libgo" | |
3614 | ;; | |
cdbc9e92 ILT |
3615 | esac |
3616 | fi | |
3617 | ||
c03353e2 RIL |
3618 | # Default libgloss CPU subdirectory. |
3619 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3620 | |
fbcf0dca JM |
3621 | case "${target}" in |
3622 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3623 | libgloss_dir=wince | |
3624 | ;; | |
4dddfc74 YZ |
3625 | aarch64*-*-* ) |
3626 | libgloss_dir=aarch64 | |
3627 | ;; | |
fbcf0dca JM |
3628 | arm*-*-*) |
3629 | libgloss_dir=arm | |
3630 | ;; | |
3631 | cris-*-* | crisv32-*-*) | |
3632 | libgloss_dir=cris | |
3633 | ;; | |
3634 | hppa*-*-*) | |
3635 | libgloss_dir=pa | |
3636 | ;; | |
3637 | i[3456789]86-*-*) | |
3638 | libgloss_dir=i386 | |
3639 | ;; | |
c6c0594e | 3640 | loongarch*-*-*) |
3641 | libgloss_dir=loongarch | |
3642 | ;; | |
fbcf0dca JM |
3643 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3644 | libgloss_dir=m68hc11 | |
3645 | ;; | |
3646 | m68*-*-* | fido-*-*) | |
3647 | libgloss_dir=m68k | |
3648 | ;; | |
3649 | mips*-*-*) | |
3650 | libgloss_dir=mips | |
3651 | ;; | |
3652 | powerpc*-*-*) | |
3653 | libgloss_dir=rs6000 | |
3654 | ;; | |
8d2af3a2 DD |
3655 | pru-*-*) |
3656 | libgloss_dir=pru | |
3657 | ;; | |
fbcf0dca JM |
3658 | sparc*-*-*) |
3659 | libgloss_dir=sparc | |
3660 | ;; | |
3661 | esac | |
3662 | ||
6a789d5e | 3663 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3664 | case "${target}" in |
6a789d5e JM |
3665 | alpha*-dec-osf*) |
3666 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3667 | ;; | |
3668 | i[3456789]86-*-linux*) | |
3669 | # This section makes it possible to build newlib natively on linux. | |
3670 | # If we are using a cross compiler then don't configure newlib. | |
3671 | if test x${is_cross_compiler} != xno ; then | |
3672 | noconfigdirs="$noconfigdirs target-newlib" | |
3673 | fi | |
3674 | noconfigdirs="$noconfigdirs target-libgloss" | |
3675 | # If we are not using a cross compiler, do configure newlib. | |
3676 | # Note however, that newlib will only be configured in this situation | |
3677 | # if the --with-newlib option has been given, because otherwise | |
3678 | # 'target-newlib' will appear in skipdirs. | |
3679 | ;; | |
3680 | i[3456789]86-*-rdos*) | |
3681 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3682 | ;; | |
3683 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3684 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3685 | ;; | |
3686 | sparc-*-sunos4*) | |
3687 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3688 | ;; | |
91dfef96 JM |
3689 | bpf-*-*) |
3690 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3691 | ;; | |
6a789d5e JM |
3692 | *-*-aix*) |
3693 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3694 | ;; | |
3695 | *-*-beos*) | |
3696 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3697 | ;; | |
671aa708 | 3698 | *-*-chorusos) |
0036370f | 3699 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3700 | ;; |
6a789d5e JM |
3701 | *-*-dragonfly*) |
3702 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3703 | ;; | |
3704 | *-*-freebsd*) | |
3705 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3706 | ;; | |
3707 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3708 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3709 | ;; | |
3710 | *-*-lynxos*) | |
3711 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3712 | ;; | |
3713 | *-*-mingw*) | |
3714 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3715 | ;; | |
3716 | *-*-netbsd*) | |
3717 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3718 | ;; | |
3719 | *-*-netware*) | |
3720 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3721 | ;; | |
3722 | *-*-tpf*) | |
3723 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3724 | ;; | |
3725 | *-*-uclinux*) | |
3726 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3727 | ;; | |
3728 | *-*-vxworks*) | |
3729 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3730 | ;; | |
3731 | esac | |
3732 | ||
3733 | case "${target}" in | |
3734 | *-*-chorusos) | |
3735 | ;; | |
3be96231 TG |
3736 | aarch64-*-darwin*) |
3737 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3738 | noconfigdirs="$noconfigdirs sim target-rda" | |
3739 | ;; | |
7431c1a1 AS |
3740 | amdgcn*-*-*) |
3741 | ;; | |
3be96231 TG |
3742 | arm-*-darwin*) |
3743 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3744 | noconfigdirs="$noconfigdirs sim target-rda" | |
3745 | ;; | |
75eeae1a | 3746 | powerpc-*-darwin*) |
e1514c3f | 3747 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3748 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3749 | ;; |
354ebf88 RW |
3750 | i[3456789]86-*-darwin*) |
3751 | noconfigdirs="$noconfigdirs ld gprof" | |
3752 | noconfigdirs="$noconfigdirs sim target-rda" | |
3753 | ;; | |
3754 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3755 | noconfigdirs="$noconfigdirs ld gas gprof" |
3756 | noconfigdirs="$noconfigdirs sim target-rda" | |
3757 | ;; | |
42c1cd8a AT |
3758 | *-*-darwin*) |
3759 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3760 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3761 | ;; |
8c6d158a | 3762 | *-*-dragonfly*) |
8c6d158a | 3763 | ;; |
c3f84f61 | 3764 | *-*-freebsd*) |
88252529 | 3765 | if test "x$with_gmp" = x \ |
c0d0a722 | 3766 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3767 | && test -f /usr/local/include/gmp.h; then |
3768 | with_gmp=/usr/local | |
3769 | fi | |
6de9cd9a | 3770 | ;; |
ef4e7569 US |
3771 | *-*-kaos*) |
3772 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3773 | noconfigdirs="$noconfigdirs target-libgloss" |
3774 | ;; | |
671aa708 | 3775 | *-*-netbsd*) |
671aa708 | 3776 | ;; |
61fec9ff | 3777 | *-*-netware*) |
671aa708 | 3778 | ;; |
fd6487af JS |
3779 | *-*-phoenix*) |
3780 | noconfigdirs="$noconfigdirs target-libgloss" | |
3781 | ;; | |
671aa708 | 3782 | *-*-rtems*) |
2909494b | 3783 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3784 | ;; |
a8ba31f2 EC |
3785 | # The tpf target doesn't support gdb yet. |
3786 | *-*-tpf*) | |
6a789d5e | 3787 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3788 | ;; |
5785c0ed | 3789 | *-*-uclinux*) |
6a789d5e | 3790 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3791 | ;; |
671aa708 | 3792 | *-*-vxworks*) |
671aa708 NN |
3793 | ;; |
3794 | alpha*-dec-osf*) | |
3795 | # ld works, but does not support shared libraries. | |
671aa708 | 3796 | # gas doesn't generate exception information. |
6a789d5e | 3797 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3798 | ;; |
3799 | alpha*-*-*vms*) | |
2909494b | 3800 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3801 | ;; |
671aa708 NN |
3802 | alpha*-*-*) |
3803 | # newlib is not 64 bit ready | |
2909494b | 3804 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3805 | ;; |
91dfef96 JM |
3806 | bpf-*-*) |
3807 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3808 | ;; | |
671aa708 | 3809 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3810 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3811 | ;; |
2fd88f4f AK |
3812 | arc*-*-*) |
3813 | noconfigdirs="$noconfigdirs sim" | |
3814 | ;; | |
671aa708 | 3815 | arm-*-pe*) |
2909494b | 3816 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3817 | ;; |
671aa708 | 3818 | arm-*-riscix*) |
0036370f | 3819 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3820 | ;; |
b588ae30 GJL |
3821 | avr-*-*) |
3822 | if test x${with_avrlibc} != xno; then | |
3823 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3824 | fi | |
3825 | ;; | |
671aa708 | 3826 | c4x-*-* | tic4x-*-*) |
0036370f | 3827 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3828 | ;; |
0036370f JM |
3829 | tic54x-*-*) |
3830 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3831 | ;; |
671aa708 | 3832 | d10v-*-*) |
0036370f | 3833 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3834 | ;; |
3835 | d30v-*-*) | |
0036370f | 3836 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3837 | ;; |
3838 | fr30-*-elf*) | |
2909494b | 3839 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3840 | ;; |
a05c2c75 L |
3841 | ft32-*-*) |
3842 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3843 | ;; | |
55f2d967 | 3844 | moxie-*-*) |
a05c2c75 | 3845 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3846 | ;; |
671aa708 | 3847 | h8300*-*-*) |
2909494b | 3848 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3849 | ;; |
3850 | h8500-*-*) | |
0036370f | 3851 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3852 | ;; |
a05c2c75 L |
3853 | hppa*64*-*-hpux*) |
3854 | noconfigdirs="$noconfigdirs gdb" | |
3855 | ;; | |
4569f85e | 3856 | hppa*64*-*-linux*) |
671aa708 | 3857 | ;; |
56f8587a | 3858 | hppa*-*-linux*) |
3e732ba0 | 3859 | ;; |
671aa708 | 3860 | hppa*-*-*elf* | \ |
671aa708 NN |
3861 | hppa*-*-lites* | \ |
3862 | hppa*-*-openbsd* | \ | |
3863 | hppa*64*-*-*) | |
671aa708 | 3864 | ;; |
c03353e2 | 3865 | hppa*-*-pro*) |
c03353e2 | 3866 | ;; |
671aa708 | 3867 | hppa*-*-*) |
2909494b | 3868 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3869 | ;; |
fb87ad5d | 3870 | i960-*-*) |
0036370f | 3871 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3872 | ;; |
671aa708 NN |
3873 | ia64*-*-elf*) |
3874 | # No gdb support yet. | |
1bcce263 | 3875 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3876 | ;; |
3877 | ia64*-**-hpux*) | |
5a2931d1 | 3878 | # No ld support yet. |
a05c2c75 | 3879 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3880 | ;; |
52535a64 | 3881 | ia64*-*-*vms*) |
091fe9ca TG |
3882 | # No ld support yet. |
3883 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3884 | ;; |
ef4c4300 | 3885 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3886 | ;; |
3887 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3888 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3889 | ;; |
671aa708 NN |
3890 | *-*-cygwin*) |
3891 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3892 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3893 | # always build newlib if winsup directory is present. |
b91f0a41 | 3894 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3895 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3896 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3897 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3898 | fi |
1c710c3c | 3899 | ;; |
f2a0e225 | 3900 | i[3456789]86-*-pe) |
ebb9f8b0 | 3901 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3902 | ;; |
f2a0e225 | 3903 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3904 | # The linker does not yet know about weak symbols in COFF, |
3905 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3906 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3907 | ;; |
f2a0e225 | 3908 | i[3456789]86-*-sco*) |
0036370f | 3909 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3910 | ;; |
fbdd5d87 | 3911 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3912 | noconfigdirs="$noconfigdirs target-libgloss" |
3913 | ;; | |
f2a0e225 | 3914 | i[3456789]86-*-sysv4*) |
0036370f | 3915 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3916 | ;; |
f2a0e225 | 3917 | i[3456789]86-*-beos*) |
6a789d5e | 3918 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3919 | ;; |
d1f8db0c | 3920 | i[3456789]86-*-rdos*) |
6a789d5e | 3921 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3922 | ;; |
671aa708 | 3923 | mmix-*-*) |
2909494b | 3924 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3925 | ;; |
ab34901f | 3926 | mt-*-*) |
79dd769c AH |
3927 | noconfigdirs="$noconfigdirs sim" |
3928 | ;; | |
58b40a67 FT |
3929 | nfp-*-*) |
3930 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3931 | noconfigdirs="$noconfigdirs $target_libraries" | |
3932 | ;; | |
e6cbe965 SC |
3933 | pdp11-*-*) |
3934 | noconfigdirs="$noconfigdirs gdb gprof" | |
3935 | ;; | |
671aa708 NN |
3936 | powerpc-*-aix*) |
3937 | # copied from rs6000-*-* entry | |
6a789d5e | 3938 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3939 | ;; |
4569f85e | 3940 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3941 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3942 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3943 | # always build newlib. |
3944 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3945 | ;; | |
3946 | # This is temporary until we can link against shared libraries | |
3947 | powerpcle-*-solaris*) | |
0036370f | 3948 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3949 | ;; |
3950 | powerpc-*-beos*) | |
6a789d5e | 3951 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3952 | ;; |
671aa708 | 3953 | rs6000-*-lynxos*) |
6a789d5e | 3954 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3955 | ;; |
3956 | rs6000-*-aix*) | |
6a789d5e | 3957 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3958 | ;; |
3959 | rs6000-*-*) | |
2909494b | 3960 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3961 | ;; |
3962 | m68k-apollo-*) | |
0036370f | 3963 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3964 | ;; |
ca9fe997 | 3965 | microblaze*) |
2909494b | 3966 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3967 | ;; |
d896cc4d | 3968 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3969 | if test x$with_newlib = xyes; then |
3970 | noconfigdirs="$noconfigdirs gprof" | |
3971 | fi | |
d9dced13 | 3972 | ;; |
671aa708 | 3973 | mips*-*-irix5*) |
0036370f | 3974 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3975 | ;; |
3976 | mips*-*-irix6*) | |
2909494b | 3977 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3978 | ;; |
671aa708 | 3979 | mips*-*-bsd*) |
bc98bcc4 | 3980 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3981 | ;; |
671aa708 | 3982 | mips*-*-linux*) |
671aa708 | 3983 | ;; |
bc98bcc4 JBG |
3984 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3985 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3986 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3987 | ;; | |
671aa708 | 3988 | mips*-*-*) |
2909494b | 3989 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3990 | ;; |
738f2522 | 3991 | nvptx*-*-*) |
738f2522 BS |
3992 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3993 | ;; | |
bc6d9014 | 3994 | sh-*-*) |
ea2002ba CB |
3995 | case "${target}" in |
3996 | sh*-*-elf) | |
2909494b | 3997 | ;; |
ea2002ba | 3998 | *) |
2909494b | 3999 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4000 | esac |
671aa708 | 4001 | ;; |
671aa708 | 4002 | sparc-*-sunos4*) |
6a789d5e | 4003 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4004 | use_gnu_ld=no |
4005 | fi | |
4006 | ;; | |
b42f0d7e | 4007 | tic6x-*-*) |
0d557ff8 | 4008 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4009 | ;; |
671aa708 | 4010 | v810-*-*) |
0036370f | 4011 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4012 | ;; |
4013 | vax-*-*) | |
2909494b | 4014 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4015 | ;; |
1fc1d82e MR |
4016 | wasm32-*-*) |
4017 | noconfigdirs="$noconfigdirs ld" | |
4018 | ;; | |
c6c0594e | 4019 | loongarch*-*-linux*) |
4020 | ;; | |
4021 | loongarch*-*-*) | |
4022 | noconfigdirs="$noconfigdirs gprof" | |
4023 | ;; | |
671aa708 | 4024 | esac |
79c06341 | 4025 | |
671aa708 NN |
4026 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4027 | # depends upon some newlib header files. | |
4028 | case "${noconfigdirs}" in | |
4029 | *target-libgloss*) ;; | |
4030 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4031 | esac | |
4032 | ||
671aa708 | 4033 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4034 | host_makefile_frag=/dev/null |
4035 | if test -d ${srcdir}/config ; then | |
4036 | case "${host}" in | |
f2a0e225 | 4037 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4038 | host_makefile_frag="config/mh-djgpp" |
4039 | ;; | |
4040 | *-cygwin*) | |
2a79c47f | 4041 | |
5213506e RW |
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4043 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4044 | echo a >cygwin-cat-check |
e25a8c82 | 4045 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4046 | rm cygwin-cat-check |
5213506e RW |
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4048 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4049 | else |
4050 | rm cygwin-cat-check | |
5213506e RW |
4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4052 | $as_echo "no" >&6; } | |
22e05272 | 4053 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4054 | Please either mount the build directory in binary mode or run the following |
4055 | commands before running any configure script: | |
4056 | set -o igncr | |
4057 | export SHELLOPTS | |
5213506e | 4058 | " "$LINENO" 5 |
2a79c47f NC |
4059 | fi |
4060 | ||
671aa708 NN |
4061 | host_makefile_frag="config/mh-cygwin" |
4062 | ;; | |
c53a18d3 | 4063 | *-mingw*) |
1f5a6b84 | 4064 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4065 | ;; |
cabb9d59 | 4066 | alpha*-linux*) |
13be44ed UB |
4067 | host_makefile_frag="config/mh-alpha-linux" |
4068 | ;; | |
111eeb6e | 4069 | hppa*-hp-hpux*) |
efd41714 PB |
4070 | host_makefile_frag="config/mh-pa" |
4071 | ;; | |
4072 | hppa*-*) | |
4073 | host_makefile_frag="config/mh-pa" | |
4074 | ;; | |
54258e22 | 4075 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4076 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4077 | ;; |
d19bca38 PB |
4078 | powerpc-*-aix*) |
4079 | host_makefile_frag="config/mh-ppc-aix" | |
4080 | ;; | |
4081 | rs6000-*-aix*) | |
4082 | host_makefile_frag="config/mh-ppc-aix" | |
4083 | ;; | |
671aa708 NN |
4084 | esac |
4085 | fi | |
4086 | ||
55ffb5ed | 4087 | if test "${build}" != "${host}" ; then |
0999159b PB |
4088 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4089 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4090 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
c841dc0a | 4091 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
0999159b | 4092 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3b5e8ee4 | 4093 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4094 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4095 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4096 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4097 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4098 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4099 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4100 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4101 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4102 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4103 | else | |
4104 | AR_FOR_BUILD="\$(AR)" | |
4105 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4106 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4107 | CXX_FOR_BUILD="\$(CXX)" |
3b5e8ee4 | 4108 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4109 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4110 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4111 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4112 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4113 | LD_FOR_BUILD="\$(LD)" | |
4114 | NM_FOR_BUILD="\$(NM)" | |
4115 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4116 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4117 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4118 | fi |
4119 | ||
4120 | ac_ext=c | |
1c710c3c DJ |
4121 | ac_cpp='$CPP $CPPFLAGS' |
4122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4125 | if test -n "$ac_tool_prefix"; then | |
4126 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4127 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4129 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4130 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4131 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4132 | else |
4133 | if test -n "$CC"; then | |
4134 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4135 | else | |
4136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4137 | for as_dir in $PATH | |
4138 | do | |
4139 | IFS=$as_save_IFS | |
4140 | test -z "$as_dir" && as_dir=. | |
5213506e | 4141 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4143 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4145 | break 2 |
4146 | fi | |
4147 | done | |
5213506e RW |
4148 | done |
4149 | IFS=$as_save_IFS | |
1c710c3c DJ |
4150 | |
4151 | fi | |
4152 | fi | |
4153 | CC=$ac_cv_prog_CC | |
4154 | if test -n "$CC"; then | |
5213506e RW |
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4156 | $as_echo "$CC" >&6; } | |
1c710c3c | 4157 | else |
5213506e RW |
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4159 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4160 | fi |
4161 | ||
5213506e | 4162 | |
1c710c3c DJ |
4163 | fi |
4164 | if test -z "$ac_cv_prog_CC"; then | |
4165 | ac_ct_CC=$CC | |
fb0103e5 RG |
4166 | # Extract the first word of "gcc", so it can be a program name with args. |
4167 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4169 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4170 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4171 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4172 | else |
4173 | if test -n "$ac_ct_CC"; then | |
4174 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4175 | else | |
4176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4177 | for as_dir in $PATH | |
4178 | do | |
4179 | IFS=$as_save_IFS | |
4180 | test -z "$as_dir" && as_dir=. | |
5213506e | 4181 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4182 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4183 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4185 | break 2 |
4186 | fi | |
4187 | done | |
5213506e RW |
4188 | done |
4189 | IFS=$as_save_IFS | |
1c710c3c DJ |
4190 | |
4191 | fi | |
4192 | fi | |
4193 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4194 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4196 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4197 | else |
5213506e RW |
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4199 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4200 | fi |
4201 | ||
5213506e RW |
4202 | if test "x$ac_ct_CC" = x; then |
4203 | CC="" | |
4204 | else | |
4205 | case $cross_compiling:$ac_tool_warned in | |
4206 | yes:) | |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4208 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4209 | ac_tool_warned=yes ;; | |
4210 | esac | |
4211 | CC=$ac_ct_CC | |
4212 | fi | |
1c710c3c DJ |
4213 | else |
4214 | CC="$ac_cv_prog_CC" | |
4215 | fi | |
4216 | ||
4217 | if test -z "$CC"; then | |
5213506e RW |
4218 | if test -n "$ac_tool_prefix"; then |
4219 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4220 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4222 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4223 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4224 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4225 | else |
4226 | if test -n "$CC"; then | |
4227 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4228 | else | |
1c710c3c DJ |
4229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4230 | for as_dir in $PATH | |
4231 | do | |
4232 | IFS=$as_save_IFS | |
4233 | test -z "$as_dir" && as_dir=. | |
5213506e | 4234 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4236 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4238 | break 2 |
4239 | fi | |
4240 | done | |
5213506e RW |
4241 | done |
4242 | IFS=$as_save_IFS | |
1c710c3c | 4243 | |
0b0dc272 | 4244 | fi |
0b0dc272 | 4245 | fi |
1c710c3c | 4246 | CC=$ac_cv_prog_CC |
af71363e | 4247 | if test -n "$CC"; then |
5213506e RW |
4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4249 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4250 | else |
5213506e RW |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4252 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4253 | fi |
4254 | ||
2aeb72e9 | 4255 | |
5213506e | 4256 | fi |
1c710c3c | 4257 | fi |
55ffb5ed NN |
4258 | if test -z "$CC"; then |
4259 | # Extract the first word of "cc", so it can be a program name with args. | |
4260 | set dummy cc; ac_word=$2 | |
5213506e RW |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4262 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4263 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4264 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4265 | else |
4266 | if test -n "$CC"; then | |
4267 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4268 | else | |
0b0dc272 | 4269 | ac_prog_rejected=no |
1c710c3c DJ |
4270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4271 | for as_dir in $PATH | |
4272 | do | |
4273 | IFS=$as_save_IFS | |
4274 | test -z "$as_dir" && as_dir=. | |
5213506e | 4275 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4277 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4278 | ac_prog_rejected=yes | |
4279 | continue | |
4280 | fi | |
4281 | ac_cv_prog_CC="cc" | |
5213506e | 4282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4283 | break 2 |
4284 | fi | |
4285 | done | |
5213506e RW |
4286 | done |
4287 | IFS=$as_save_IFS | |
1c710c3c | 4288 | |
55ffb5ed NN |
4289 | if test $ac_prog_rejected = yes; then |
4290 | # We found a bogon in the path, so make sure we never use it. | |
4291 | set dummy $ac_cv_prog_CC | |
4292 | shift | |
1c710c3c | 4293 | if test $# != 0; then |
55ffb5ed NN |
4294 | # We chose a different compiler from the bogus one. |
4295 | # However, it has the same basename, so the bogon will be chosen | |
4296 | # first if we set CC to just the basename; use the full file name. | |
4297 | shift | |
1c710c3c | 4298 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4299 | fi |
4300 | fi | |
4301 | fi | |
4302 | fi | |
1c710c3c | 4303 | CC=$ac_cv_prog_CC |
55ffb5ed | 4304 | if test -n "$CC"; then |
5213506e RW |
4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4306 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4307 | else |
5213506e RW |
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4309 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4310 | fi |
4311 | ||
5213506e | 4312 | |
1c710c3c DJ |
4313 | fi |
4314 | if test -z "$CC"; then | |
4315 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4316 | for ac_prog in cl.exe |
1c710c3c DJ |
4317 | do |
4318 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4319 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4321 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4322 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4323 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4324 | else |
4325 | if test -n "$CC"; then | |
4326 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4327 | else | |
1c710c3c DJ |
4328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4329 | for as_dir in $PATH | |
4330 | do | |
4331 | IFS=$as_save_IFS | |
4332 | test -z "$as_dir" && as_dir=. | |
5213506e | 4333 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4335 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4337 | break 2 |
4338 | fi | |
4339 | done | |
5213506e RW |
4340 | done |
4341 | IFS=$as_save_IFS | |
1c710c3c | 4342 | |
55ffb5ed NN |
4343 | fi |
4344 | fi | |
1c710c3c | 4345 | CC=$ac_cv_prog_CC |
55ffb5ed | 4346 | if test -n "$CC"; then |
5213506e RW |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4348 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4349 | else |
5213506e RW |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4351 | $as_echo "no" >&6; } | |
fb0103e5 | 4352 | fi |
af71363e | 4353 | |
5213506e | 4354 | |
1c710c3c DJ |
4355 | test -n "$CC" && break |
4356 | done | |
af71363e | 4357 | fi |
1c710c3c DJ |
4358 | if test -z "$CC"; then |
4359 | ac_ct_CC=$CC | |
5213506e | 4360 | for ac_prog in cl.exe |
1c710c3c DJ |
4361 | do |
4362 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4363 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4365 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4366 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4367 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4368 | else |
1c710c3c DJ |
4369 | if test -n "$ac_ct_CC"; then |
4370 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4371 | else |
1c710c3c DJ |
4372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4373 | for as_dir in $PATH | |
4374 | do | |
4375 | IFS=$as_save_IFS | |
4376 | test -z "$as_dir" && as_dir=. | |
5213506e | 4377 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4378 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4379 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4381 | break 2 |
4382 | fi | |
4383 | done | |
5213506e RW |
4384 | done |
4385 | IFS=$as_save_IFS | |
1c710c3c | 4386 | |
af71363e AS |
4387 | fi |
4388 | fi | |
1c710c3c DJ |
4389 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4390 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4392 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4393 | else |
5213506e RW |
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4395 | $as_echo "no" >&6; } | |
af71363e | 4396 | fi |
0b0dc272 | 4397 | |
5213506e | 4398 | |
1c710c3c DJ |
4399 | test -n "$ac_ct_CC" && break |
4400 | done | |
4401 | ||
5213506e RW |
4402 | if test "x$ac_ct_CC" = x; then |
4403 | CC="" | |
4404 | else | |
4405 | case $cross_compiling:$ac_tool_warned in | |
4406 | yes:) | |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4408 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4409 | ac_tool_warned=yes ;; | |
4410 | esac | |
4411 | CC=$ac_ct_CC | |
4412 | fi | |
1c710c3c DJ |
4413 | fi |
4414 | ||
4415 | fi | |
4416 | ||
4417 | ||
5213506e RW |
4418 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4419 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4420 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4421 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4422 | |
4423 | # Provide some information about the compiler. | |
5213506e RW |
4424 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4425 | set X $ac_compile | |
4426 | ac_compiler=$2 | |
4427 | for ac_option in --version -v -V -qversion; do | |
4428 | { { ac_try="$ac_compiler $ac_option >&5" | |
4429 | case "(($ac_try" in | |
4430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4431 | *) ac_try_echo=$ac_try;; | |
4432 | esac | |
4433 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4434 | $as_echo "$ac_try_echo"; } >&5 | |
4435 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4436 | ac_status=$? |
5213506e RW |
4437 | if test -s conftest.err; then |
4438 | sed '10a\ | |
4439 | ... rest of stderr output deleted ... | |
4440 | 10q' conftest.err >conftest.er1 | |
4441 | cat conftest.er1 >&5 | |
5213506e | 4442 | fi |
22e05272 | 4443 | rm -f conftest.er1 conftest.err |
5213506e RW |
4444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4445 | test $ac_status = 0; } | |
4446 | done | |
1c710c3c | 4447 | |
5213506e | 4448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4449 | /* end confdefs.h. */ |
4450 | ||
4451 | int | |
4452 | main () | |
4453 | { | |
4454 | ||
4455 | ; | |
4456 | return 0; | |
4457 | } | |
4458 | _ACEOF | |
4459 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4460 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4461 | # Try to create an executable without -o first, disregard a.out. |
4462 | # It will help us diagnose broken compilers, and finding out an intuition | |
4463 | # of exeext. | |
22e05272 JM |
4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4465 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4466 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4467 | ||
4468 | # The possible output files: | |
4469 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4470 | ||
4471 | ac_rmfiles= | |
4472 | for ac_file in $ac_files | |
4473 | do | |
4474 | case $ac_file in | |
4475 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4476 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4477 | esac | |
4478 | done | |
4479 | rm -f $ac_rmfiles | |
4480 | ||
4481 | if { { ac_try="$ac_link_default" | |
4482 | case "(($ac_try" in | |
4483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4484 | *) ac_try_echo=$ac_try;; | |
4485 | esac | |
4486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4487 | $as_echo "$ac_try_echo"; } >&5 | |
4488 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4489 | ac_status=$? |
5213506e RW |
4490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4491 | test $ac_status = 0; }; then : | |
4492 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4493 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4494 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4495 | # so that the user can short-circuit this test for compilers unknown to | |
4496 | # Autoconf. | |
4497 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4498 | do |
4499 | test -f "$ac_file" || continue | |
4500 | case $ac_file in | |
5213506e | 4501 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4502 | ;; |
4503 | [ab].out ) | |
4504 | # We found the default executable, but exeext='' is most | |
4505 | # certainly right. | |
4506 | break;; | |
4507 | *.* ) | |
5213506e RW |
4508 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4509 | then :; else | |
4510 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4511 | fi | |
4512 | # We set ac_cv_exeext here because the later test for it is not | |
4513 | # safe: cross compilers may not add the suffix if given an `-o' | |
4514 | # argument, so we may need to know it at that point already. | |
4515 | # Even if this section looks crufty: it has the advantage of | |
4516 | # actually working. | |
1c710c3c DJ |
4517 | break;; |
4518 | * ) | |
4519 | break;; | |
4520 | esac | |
4521 | done | |
5213506e RW |
4522 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4523 | ||
1c710c3c | 4524 | else |
5213506e RW |
4525 | ac_file='' |
4526 | fi | |
5213506e | 4527 | if test -z "$ac_file"; then : |
22e05272 JM |
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4529 | $as_echo "no" >&6; } | |
4530 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4531 | sed 's/^/| /' conftest.$ac_ext >&5 |
4532 | ||
5213506e RW |
4533 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4534 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4535 | as_fn_error 77 "C compiler cannot create executables |
4536 | See \`config.log' for more details" "$LINENO" 5; } | |
4537 | else | |
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4539 | $as_echo "yes" >&6; } | |
1c710c3c | 4540 | fi |
22e05272 JM |
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4542 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4544 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4545 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4546 | |
22e05272 | 4547 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4548 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4550 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4551 | if { { ac_try="$ac_link" | |
4552 | case "(($ac_try" in | |
4553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4554 | *) ac_try_echo=$ac_try;; | |
4555 | esac | |
4556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4557 | $as_echo "$ac_try_echo"; } >&5 | |
4558 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4559 | ac_status=$? |
5213506e RW |
4560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4561 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4562 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4563 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4564 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4565 | # `rm'. | |
4566 | for ac_file in conftest.exe conftest conftest.*; do | |
4567 | test -f "$ac_file" || continue | |
4568 | case $ac_file in | |
5213506e | 4569 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4570 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4571 | break;; |
4572 | * ) break;; | |
4573 | esac | |
4574 | done | |
af71363e | 4575 | else |
5213506e RW |
4576 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4577 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4578 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4579 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4580 | fi |
22e05272 | 4581 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4583 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4584 | |
4585 | rm -f conftest.$ac_ext | |
4586 | EXEEXT=$ac_cv_exeext | |
4587 | ac_exeext=$EXEEXT | |
22e05272 JM |
4588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4589 | /* end confdefs.h. */ | |
4590 | #include <stdio.h> | |
4591 | int | |
4592 | main () | |
4593 | { | |
4594 | FILE *f = fopen ("conftest.out", "w"); | |
4595 | return ferror (f) || fclose (f) != 0; | |
4596 | ||
4597 | ; | |
4598 | return 0; | |
4599 | } | |
4600 | _ACEOF | |
4601 | ac_clean_files="$ac_clean_files conftest.out" | |
4602 | # Check that the compiler produces executables we can run. If not, either | |
4603 | # the compiler is broken, or we cross compile. | |
4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4605 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4606 | if test "$cross_compiling" != yes; then | |
4607 | { { ac_try="$ac_link" | |
4608 | case "(($ac_try" in | |
4609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4610 | *) ac_try_echo=$ac_try;; | |
4611 | esac | |
4612 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4613 | $as_echo "$ac_try_echo"; } >&5 | |
4614 | (eval "$ac_link") 2>&5 | |
4615 | ac_status=$? | |
4616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4617 | test $ac_status = 0; } | |
4618 | if { ac_try='./conftest$ac_cv_exeext' | |
4619 | { { case "(($ac_try" in | |
4620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4621 | *) ac_try_echo=$ac_try;; | |
4622 | esac | |
4623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4624 | $as_echo "$ac_try_echo"; } >&5 | |
4625 | (eval "$ac_try") 2>&5 | |
4626 | ac_status=$? | |
4627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4628 | test $ac_status = 0; }; }; then | |
4629 | cross_compiling=no | |
4630 | else | |
4631 | if test "$cross_compiling" = maybe; then | |
4632 | cross_compiling=yes | |
4633 | else | |
4634 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4635 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4636 | as_fn_error $? "cannot run C compiled programs. | |
4637 | If you meant to cross compile, use \`--host'. | |
4638 | See \`config.log' for more details" "$LINENO" 5; } | |
4639 | fi | |
4640 | fi | |
4641 | fi | |
4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4643 | $as_echo "$cross_compiling" >&6; } | |
4644 | ||
4645 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4646 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4648 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4649 | if ${ac_cv_objext+:} false; then : |
5213506e | 4650 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4651 | else |
5213506e | 4652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4653 | /* end confdefs.h. */ |
4654 | ||
4655 | int | |
4656 | main () | |
4657 | { | |
4658 | ||
4659 | ; | |
4660 | return 0; | |
4661 | } | |
4662 | _ACEOF | |
4663 | rm -f conftest.o conftest.obj | |
5213506e RW |
4664 | if { { ac_try="$ac_compile" |
4665 | case "(($ac_try" in | |
4666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4667 | *) ac_try_echo=$ac_try;; | |
4668 | esac | |
4669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4670 | $as_echo "$ac_try_echo"; } >&5 | |
4671 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4672 | ac_status=$? |
5213506e RW |
4673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4674 | test $ac_status = 0; }; then : | |
4675 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4676 | test -f "$ac_file" || continue; | |
1c710c3c | 4677 | case $ac_file in |
5213506e | 4678 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4679 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4680 | break;; | |
4681 | esac | |
4682 | done | |
4683 | else | |
5213506e | 4684 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4685 | sed 's/^/| /' conftest.$ac_ext >&5 |
4686 | ||
5213506e RW |
4687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4689 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4690 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4691 | fi |
1c710c3c DJ |
4692 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4693 | fi | |
5213506e RW |
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4695 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4696 | OBJEXT=$ac_cv_objext |
4697 | ac_objext=$OBJEXT | |
5213506e RW |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4699 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4700 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4701 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4702 | else |
5213506e | 4703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4704 | /* end confdefs.h. */ |
4705 | ||
4706 | int | |
4707 | main () | |
4708 | { | |
4709 | #ifndef __GNUC__ | |
4710 | choke me | |
4711 | #endif | |
4712 | ||
4713 | ; | |
4714 | return 0; | |
4715 | } | |
4716 | _ACEOF | |
5213506e | 4717 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4718 | ac_compiler_gnu=yes |
4719 | else | |
5213506e | 4720 | ac_compiler_gnu=no |
1c710c3c | 4721 | fi |
5213506e | 4722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4723 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4724 | ||
4725 | fi | |
5213506e RW |
4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4727 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4728 | if test $ac_compiler_gnu = yes; then | |
4729 | GCC=yes | |
4730 | else | |
4731 | GCC= | |
4732 | fi | |
1c710c3c DJ |
4733 | ac_test_CFLAGS=${CFLAGS+set} |
4734 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4736 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4737 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4738 | $as_echo_n "(cached) " >&6 |
4739 | else | |
4740 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4741 | ac_c_werror_flag=yes | |
4742 | ac_cv_prog_cc_g=no | |
4743 | CFLAGS="-g" | |
4744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4745 | /* end confdefs.h. */ |
4746 | ||
4747 | int | |
4748 | main () | |
4749 | { | |
4750 | ||
4751 | ; | |
4752 | return 0; | |
4753 | } | |
4754 | _ACEOF | |
5213506e | 4755 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4756 | ac_cv_prog_cc_g=yes |
4757 | else | |
5213506e RW |
4758 | CFLAGS="" |
4759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4760 | /* end confdefs.h. */ | |
4761 | ||
4762 | int | |
4763 | main () | |
4764 | { | |
4765 | ||
4766 | ; | |
4767 | return 0; | |
4768 | } | |
4769 | _ACEOF | |
4770 | if ac_fn_c_try_compile "$LINENO"; then : | |
4771 | ||
4772 | else | |
4773 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4774 | CFLAGS="-g" | |
4775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4776 | /* end confdefs.h. */ | |
af71363e | 4777 | |
5213506e RW |
4778 | int |
4779 | main () | |
4780 | { | |
4781 | ||
4782 | ; | |
4783 | return 0; | |
4784 | } | |
4785 | _ACEOF | |
4786 | if ac_fn_c_try_compile "$LINENO"; then : | |
4787 | ac_cv_prog_cc_g=yes | |
4788 | fi | |
4789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4790 | fi |
5213506e | 4791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4792 | fi |
5213506e RW |
4793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4794 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4795 | fi | |
4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4797 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4798 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4799 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4800 | elif test $ac_cv_prog_cc_g = yes; then |
4801 | if test "$GCC" = yes; then | |
4802 | CFLAGS="-g -O2" | |
4803 | else | |
4804 | CFLAGS="-g" | |
4805 | fi | |
4806 | else | |
4807 | if test "$GCC" = yes; then | |
4808 | CFLAGS="-O2" | |
4809 | else | |
4810 | CFLAGS= | |
4811 | fi | |
4812 | fi | |
5213506e RW |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4814 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4815 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4816 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4817 | else |
5213506e | 4818 | ac_cv_prog_cc_c89=no |
1c710c3c | 4819 | ac_save_CC=$CC |
5213506e | 4820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4821 | /* end confdefs.h. */ |
4822 | #include <stdarg.h> | |
4823 | #include <stdio.h> | |
22e05272 | 4824 | struct stat; |
1c710c3c DJ |
4825 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4826 | struct buf { int x; }; | |
4827 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4828 | static char *e (p, i) | |
4829 | char **p; | |
4830 | int i; | |
4831 | { | |
4832 | return p[i]; | |
4833 | } | |
4834 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4835 | { | |
4836 | char *s; | |
4837 | va_list v; | |
4838 | va_start (v,p); | |
4839 | s = g (p, va_arg (v,int)); | |
4840 | va_end (v); | |
4841 | return s; | |
4842 | } | |
4843 | ||
4844 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4845 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4846 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4847 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4848 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4849 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4850 | that's true only with -std. */ |
1c710c3c DJ |
4851 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4852 | ||
5213506e RW |
4853 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4854 | inside strings and character constants. */ | |
4855 | #define FOO(x) 'x' | |
4856 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4857 | ||
1c710c3c DJ |
4858 | int test (int i, double x); |
4859 | struct s1 {int (*f) (int a);}; | |
4860 | struct s2 {int (*f) (double a);}; | |
4861 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4862 | int argc; | |
4863 | char **argv; | |
4864 | int | |
4865 | main () | |
4866 | { | |
4867 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4868 | ; | |
4869 | return 0; | |
4870 | } | |
4871 | _ACEOF | |
5213506e RW |
4872 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4873 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4874 | do |
4875 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4876 | if ac_fn_c_try_compile "$LINENO"; then : |
4877 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4878 | fi |
5213506e RW |
4879 | rm -f core conftest.err conftest.$ac_objext |
4880 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4881 | done |
5213506e | 4882 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4883 | CC=$ac_save_CC |
4884 | ||
4885 | fi | |
5213506e RW |
4886 | # AC_CACHE_VAL |
4887 | case "x$ac_cv_prog_cc_c89" in | |
4888 | x) | |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4890 | $as_echo "none needed" >&6; } ;; | |
4891 | xno) | |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4893 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4894 | *) |
5213506e RW |
4895 | CC="$CC $ac_cv_prog_cc_c89" |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4897 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4898 | esac |
5213506e | 4899 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4900 | |
2aeb72e9 DD |
4901 | fi |
4902 | ||
2aeb72e9 DD |
4903 | ac_ext=c |
4904 | ac_cpp='$CPP $CPPFLAGS' | |
4905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4908 | ||
91743432 NC |
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4910 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4911 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4912 | $as_echo_n "(cached) " >&6 | |
4913 | else | |
4914 | ac_cv_prog_cc_c99=no | |
4915 | ac_save_CC=$CC | |
4916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4917 | /* end confdefs.h. */ | |
4918 | #include <stdarg.h> | |
4919 | #include <stdbool.h> | |
4920 | #include <stdlib.h> | |
4921 | #include <wchar.h> | |
4922 | #include <stdio.h> | |
4923 | ||
4924 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4925 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4926 | #define showlist(...) puts (#__VA_ARGS__) | |
4927 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4928 | static void | |
4929 | test_varargs_macros (void) | |
4930 | { | |
4931 | int x = 1234; | |
4932 | int y = 5678; | |
4933 | debug ("Flag"); | |
4934 | debug ("X = %d\n", x); | |
4935 | showlist (The first, second, and third items.); | |
4936 | report (x>y, "x is %d but y is %d", x, y); | |
4937 | } | |
4938 | ||
4939 | // Check long long types. | |
4940 | #define BIG64 18446744073709551615ull | |
4941 | #define BIG32 4294967295ul | |
4942 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4943 | #if !BIG_OK | |
4944 | your preprocessor is broken; | |
4945 | #endif | |
4946 | #if BIG_OK | |
4947 | #else | |
4948 | your preprocessor is broken; | |
4949 | #endif | |
4950 | static long long int bignum = -9223372036854775807LL; | |
4951 | static unsigned long long int ubignum = BIG64; | |
4952 | ||
4953 | struct incomplete_array | |
4954 | { | |
4955 | int datasize; | |
4956 | double data[]; | |
4957 | }; | |
4958 | ||
4959 | struct named_init { | |
4960 | int number; | |
4961 | const wchar_t *name; | |
4962 | double average; | |
4963 | }; | |
4964 | ||
4965 | typedef const char *ccp; | |
4966 | ||
4967 | static inline int | |
4968 | test_restrict (ccp restrict text) | |
4969 | { | |
4970 | // See if C++-style comments work. | |
4971 | // Iterate through items via the restricted pointer. | |
4972 | // Also check for declarations in for loops. | |
4973 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4974 | continue; | |
4975 | return 0; | |
4976 | } | |
4977 | ||
4978 | // Check varargs and va_copy. | |
4979 | static void | |
4980 | test_varargs (const char *format, ...) | |
4981 | { | |
4982 | va_list args; | |
4983 | va_start (args, format); | |
4984 | va_list args_copy; | |
4985 | va_copy (args_copy, args); | |
4986 | ||
4987 | const char *str; | |
4988 | int number; | |
4989 | float fnumber; | |
4990 | ||
4991 | while (*format) | |
4992 | { | |
4993 | switch (*format++) | |
4994 | { | |
4995 | case 's': // string | |
4996 | str = va_arg (args_copy, const char *); | |
4997 | break; | |
4998 | case 'd': // int | |
4999 | number = va_arg (args_copy, int); | |
5000 | break; | |
5001 | case 'f': // float | |
5002 | fnumber = va_arg (args_copy, double); | |
5003 | break; | |
5004 | default: | |
5005 | break; | |
5006 | } | |
5007 | } | |
5008 | va_end (args_copy); | |
5009 | va_end (args); | |
5010 | } | |
5011 | ||
5012 | int | |
5013 | main () | |
5014 | { | |
5015 | ||
5016 | // Check bool. | |
5017 | _Bool success = false; | |
5018 | ||
5019 | // Check restrict. | |
5020 | if (test_restrict ("String literal") == 0) | |
5021 | success = true; | |
5022 | char *restrict newvar = "Another string"; | |
5023 | ||
5024 | // Check varargs. | |
5025 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5026 | test_varargs_macros (); | |
5027 | ||
5028 | // Check flexible array members. | |
5029 | struct incomplete_array *ia = | |
5030 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5031 | ia->datasize = 10; | |
5032 | for (int i = 0; i < ia->datasize; ++i) | |
5033 | ia->data[i] = i * 1.234; | |
5034 | ||
5035 | // Check named initializers. | |
5036 | struct named_init ni = { | |
5037 | .number = 34, | |
5038 | .name = L"Test wide string", | |
5039 | .average = 543.34343, | |
5040 | }; | |
5041 | ||
5042 | ni.number = 58; | |
5043 | ||
5044 | int dynamic_array[ni.number]; | |
5045 | dynamic_array[ni.number - 1] = 543; | |
5046 | ||
5047 | // work around unused variable warnings | |
5048 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5049 | || dynamic_array[ni.number - 1] != 543); | |
5050 | ||
5051 | ; | |
5052 | return 0; | |
5053 | } | |
5054 | _ACEOF | |
5055 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5056 | do | |
5057 | CC="$ac_save_CC $ac_arg" | |
5058 | if ac_fn_c_try_compile "$LINENO"; then : | |
5059 | ac_cv_prog_cc_c99=$ac_arg | |
5060 | fi | |
5061 | rm -f core conftest.err conftest.$ac_objext | |
5062 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5063 | done | |
5064 | rm -f conftest.$ac_ext | |
5065 | CC=$ac_save_CC | |
5066 | ||
5067 | fi | |
5068 | # AC_CACHE_VAL | |
5069 | case "x$ac_cv_prog_cc_c99" in | |
5070 | x) | |
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5072 | $as_echo "none needed" >&6; } ;; | |
5073 | xno) | |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5075 | $as_echo "unsupported" >&6; } ;; | |
5076 | *) | |
5077 | CC="$CC $ac_cv_prog_cc_c99" | |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5079 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5080 | esac | |
5081 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5082 | ||
5083 | fi | |
5084 | ||
5085 | ||
5213506e | 5086 | ac_ext=cpp |
2aeb72e9 DD |
5087 | ac_cpp='$CXXCPP $CPPFLAGS' |
5088 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5089 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5090 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
5091 | if test -z "$CXX"; then |
5092 | if test -n "$CCC"; then | |
5093 | CXX=$CCC | |
5094 | else | |
5095 | if test -n "$ac_tool_prefix"; then | |
5096 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
5097 | do |
5098 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5099 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5101 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5102 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 5103 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
5104 | else |
5105 | if test -n "$CXX"; then | |
5106 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5107 | else | |
5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5109 | for as_dir in $PATH | |
5110 | do | |
5111 | IFS=$as_save_IFS | |
5112 | test -z "$as_dir" && as_dir=. | |
5213506e | 5113 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 5115 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 5116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
5117 | break 2 |
5118 | fi | |
5119 | done | |
5213506e RW |
5120 | done |
5121 | IFS=$as_save_IFS | |
55ffb5ed | 5122 | |
c3a86da9 DJ |
5123 | fi |
5124 | fi | |
5125 | CXX=$ac_cv_prog_CXX | |
5126 | if test -n "$CXX"; then | |
5213506e RW |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5128 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 5129 | else |
5213506e RW |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5131 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5132 | fi |
5133 | ||
5213506e | 5134 | |
c3a86da9 DJ |
5135 | test -n "$CXX" && break |
5136 | done | |
5137 | fi | |
5138 | if test -z "$CXX"; then | |
5139 | ac_ct_CXX=$CXX | |
5213506e | 5140 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
5141 | do |
5142 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5143 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5145 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5146 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 5147 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
5148 | else |
5149 | if test -n "$ac_ct_CXX"; then | |
5150 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5151 | else | |
5152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5153 | for as_dir in $PATH | |
5154 | do | |
5155 | IFS=$as_save_IFS | |
5156 | test -z "$as_dir" && as_dir=. | |
5213506e | 5157 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5158 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 5159 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 5160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
5161 | break 2 |
5162 | fi | |
5163 | done | |
5213506e RW |
5164 | done |
5165 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5166 | |
5167 | fi | |
5168 | fi | |
5169 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5170 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5172 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5173 | else |
5213506e RW |
5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5175 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5176 | fi |
5177 | ||
5213506e | 5178 | |
c3a86da9 DJ |
5179 | test -n "$ac_ct_CXX" && break |
5180 | done | |
c3a86da9 | 5181 | |
5213506e RW |
5182 | if test "x$ac_ct_CXX" = x; then |
5183 | CXX="g++" | |
5184 | else | |
5185 | case $cross_compiling:$ac_tool_warned in | |
5186 | yes:) | |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5188 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5189 | ac_tool_warned=yes ;; | |
5190 | esac | |
5191 | CXX=$ac_ct_CXX | |
5192 | fi | |
c3a86da9 DJ |
5193 | fi |
5194 | ||
5213506e RW |
5195 | fi |
5196 | fi | |
c3a86da9 | 5197 | # Provide some information about the compiler. |
5213506e RW |
5198 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5199 | set X $ac_compile | |
5200 | ac_compiler=$2 | |
5201 | for ac_option in --version -v -V -qversion; do | |
5202 | { { ac_try="$ac_compiler $ac_option >&5" | |
5203 | case "(($ac_try" in | |
5204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5205 | *) ac_try_echo=$ac_try;; | |
5206 | esac | |
5207 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5208 | $as_echo "$ac_try_echo"; } >&5 | |
5209 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5210 | ac_status=$? |
5213506e RW |
5211 | if test -s conftest.err; then |
5212 | sed '10a\ | |
5213 | ... rest of stderr output deleted ... | |
5214 | 10q' conftest.err >conftest.er1 | |
5215 | cat conftest.er1 >&5 | |
5213506e | 5216 | fi |
22e05272 | 5217 | rm -f conftest.er1 conftest.err |
5213506e RW |
5218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5219 | test $ac_status = 0; } | |
5220 | done | |
c3a86da9 | 5221 | |
5213506e RW |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5223 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5224 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5225 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5226 | else |
5213506e | 5227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5228 | /* end confdefs.h. */ |
5229 | ||
5230 | int | |
5231 | main () | |
5232 | { | |
5233 | #ifndef __GNUC__ | |
5234 | choke me | |
5235 | #endif | |
5236 | ||
5237 | ; | |
5238 | return 0; | |
5239 | } | |
5240 | _ACEOF | |
5213506e | 5241 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5242 | ac_compiler_gnu=yes |
5243 | else | |
5213506e | 5244 | ac_compiler_gnu=no |
c3a86da9 | 5245 | fi |
5213506e | 5246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5247 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5248 | ||
5249 | fi | |
5213506e RW |
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5251 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5252 | if test $ac_compiler_gnu = yes; then | |
5253 | GXX=yes | |
5254 | else | |
5255 | GXX= | |
5256 | fi | |
c3a86da9 DJ |
5257 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5258 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5260 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5261 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5262 | $as_echo_n "(cached) " >&6 |
5263 | else | |
5264 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5265 | ac_cxx_werror_flag=yes | |
5266 | ac_cv_prog_cxx_g=no | |
5267 | CXXFLAGS="-g" | |
5268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5269 | /* end confdefs.h. */ |
5270 | ||
5271 | int | |
5272 | main () | |
5273 | { | |
5274 | ||
5275 | ; | |
5276 | return 0; | |
5277 | } | |
5278 | _ACEOF | |
5213506e | 5279 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5280 | ac_cv_prog_cxx_g=yes |
5281 | else | |
5213506e RW |
5282 | CXXFLAGS="" |
5283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5284 | /* end confdefs.h. */ |
5213506e | 5285 | |
c3a86da9 DJ |
5286 | int |
5287 | main () | |
5288 | { | |
5213506e | 5289 | |
c3a86da9 DJ |
5290 | ; |
5291 | return 0; | |
5292 | } | |
5293 | _ACEOF | |
5213506e | 5294 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5295 | |
5213506e RW |
5296 | else |
5297 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5298 | CXXFLAGS="-g" | |
5299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5300 | /* end confdefs.h. */ |
5213506e | 5301 | |
c3a86da9 DJ |
5302 | int |
5303 | main () | |
5304 | { | |
5213506e | 5305 | |
c3a86da9 DJ |
5306 | ; |
5307 | return 0; | |
5308 | } | |
5309 | _ACEOF | |
5213506e RW |
5310 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5311 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5312 | fi |
5213506e RW |
5313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5314 | fi | |
5315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5316 | fi | |
5317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5318 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5319 | fi | |
5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5321 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5322 | if test "$ac_test_CXXFLAGS" = set; then | |
5323 | CXXFLAGS=$ac_save_CXXFLAGS | |
5324 | elif test $ac_cv_prog_cxx_g = yes; then | |
5325 | if test "$GXX" = yes; then | |
5326 | CXXFLAGS="-g -O2" | |
5327 | else | |
5328 | CXXFLAGS="-g" | |
5329 | fi | |
5330 | else | |
5331 | if test "$GXX" = yes; then | |
5332 | CXXFLAGS="-O2" | |
5333 | else | |
5334 | CXXFLAGS= | |
5335 | fi | |
c3a86da9 | 5336 | fi |
c3a86da9 DJ |
5337 | ac_ext=c |
5338 | ac_cpp='$CPP $CPPFLAGS' | |
5339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5342 | ||
5343 | ||
5344 | # We must set the default linker to the linker used by gcc for the correct | |
5345 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5346 | # set the LD default to the ld used by gcc. | |
5347 | if test -z "$LD"; then | |
5348 | if test "$GCC" = yes; then | |
5349 | case $build in | |
5350 | *-*-mingw*) | |
5351 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5352 | *) | |
5353 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5354 | esac | |
5355 | case $gcc_prog_ld in | |
5356 | # Accept absolute paths. | |
5357 | [\\/]* | [A-Za-z]:[\\/]*) | |
5358 | LD="$gcc_prog_ld" ;; | |
5359 | esac | |
5360 | fi | |
23f6b2f9 PB |
5361 | fi |
5362 | ||
0b21f5d3 EB |
5363 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5364 | have_static_libs=no | |
5365 | if test "$GCC" = yes; then | |
5366 | saved_LDFLAGS="$LDFLAGS" | |
5367 | ||
5368 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5370 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5371 | ac_ext=cpp | |
5372 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5373 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5374 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5375 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5376 | ||
5377 | ||
5378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5379 | /* end confdefs.h. */ | |
0d6414b2 EB |
5380 | |
5381 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5382 | #error -static-libstdc++ not implemented | |
5383 | #endif | |
0b21f5d3 EB |
5384 | int main() {} |
5385 | _ACEOF | |
5386 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5388 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5389 | else | |
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5391 | $as_echo "no" >&6; } | |
5392 | fi | |
5393 | rm -f core conftest.err conftest.$ac_objext \ | |
5394 | conftest$ac_exeext conftest.$ac_ext | |
5395 | ac_ext=c | |
5396 | ac_cpp='$CPP $CPPFLAGS' | |
5397 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5398 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5399 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5400 | ||
5401 | ||
5402 | LDFLAGS="$saved_LDFLAGS" | |
5403 | fi | |
5404 | ||
23f6b2f9 PB |
5405 | |
5406 | ||
55ffb5ed | 5407 | |
1c710c3c DJ |
5408 | if test -n "$ac_tool_prefix"; then |
5409 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5410 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5412 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5413 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5414 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5415 | else |
5416 | if test -n "$GNATBIND"; then | |
5417 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5418 | else | |
1c710c3c DJ |
5419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5420 | for as_dir in $PATH | |
5421 | do | |
5422 | IFS=$as_save_IFS | |
5423 | test -z "$as_dir" && as_dir=. | |
5213506e | 5424 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5425 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5426 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5428 | break 2 |
5429 | fi | |
5430 | done | |
5213506e RW |
5431 | done |
5432 | IFS=$as_save_IFS | |
1c710c3c | 5433 | |
55ffb5ed NN |
5434 | fi |
5435 | fi | |
1c710c3c | 5436 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5437 | if test -n "$GNATBIND"; then |
5213506e RW |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5439 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5440 | else |
5213506e RW |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5442 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5443 | fi |
5444 | ||
5213506e | 5445 | |
1c710c3c | 5446 | fi |
55ffb5ed | 5447 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5448 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5449 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5450 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5452 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5453 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5454 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5455 | else |
1c710c3c DJ |
5456 | if test -n "$ac_ct_GNATBIND"; then |
5457 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5458 | else |
1c710c3c DJ |
5459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5460 | for as_dir in $PATH | |
5461 | do | |
5462 | IFS=$as_save_IFS | |
5463 | test -z "$as_dir" && as_dir=. | |
5213506e | 5464 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5466 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5468 | break 2 |
5469 | fi | |
5470 | done | |
5213506e RW |
5471 | done |
5472 | IFS=$as_save_IFS | |
1c710c3c | 5473 | |
55ffb5ed NN |
5474 | fi |
5475 | fi | |
1c710c3c DJ |
5476 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5477 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5479 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5480 | else |
5213506e RW |
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5482 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5483 | fi |
5484 | ||
5213506e RW |
5485 | if test "x$ac_ct_GNATBIND" = x; then |
5486 | GNATBIND="no" | |
5487 | else | |
5488 | case $cross_compiling:$ac_tool_warned in | |
5489 | yes:) | |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5491 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5492 | ac_tool_warned=yes ;; | |
5493 | esac | |
5494 | GNATBIND=$ac_ct_GNATBIND | |
5495 | fi | |
55ffb5ed | 5496 | else |
1c710c3c | 5497 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5498 | fi |
5499 | ||
1c710c3c DJ |
5500 | if test -n "$ac_tool_prefix"; then |
5501 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5502 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5504 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5505 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5506 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5507 | else |
5508 | if test -n "$GNATMAKE"; then | |
5509 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5510 | else | |
1c710c3c DJ |
5511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5512 | for as_dir in $PATH | |
5513 | do | |
5514 | IFS=$as_save_IFS | |
5515 | test -z "$as_dir" && as_dir=. | |
5213506e | 5516 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5518 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5520 | break 2 |
5521 | fi | |
5522 | done | |
5213506e RW |
5523 | done |
5524 | IFS=$as_save_IFS | |
1c710c3c | 5525 | |
5305be7e RG |
5526 | fi |
5527 | fi | |
1c710c3c | 5528 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5529 | if test -n "$GNATMAKE"; then |
5213506e RW |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5531 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5532 | else |
5213506e RW |
5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5534 | $as_echo "no" >&6; } | |
5305be7e RG |
5535 | fi |
5536 | ||
5213506e | 5537 | |
1c710c3c | 5538 | fi |
5305be7e | 5539 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5540 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5541 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5542 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5544 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5545 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5546 | $as_echo_n "(cached) " >&6 |
5305be7e | 5547 | else |
1c710c3c DJ |
5548 | if test -n "$ac_ct_GNATMAKE"; then |
5549 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5550 | else |
1c710c3c DJ |
5551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5552 | for as_dir in $PATH | |
5553 | do | |
5554 | IFS=$as_save_IFS | |
5555 | test -z "$as_dir" && as_dir=. | |
5213506e | 5556 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5558 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5560 | break 2 |
5561 | fi | |
5562 | done | |
5213506e RW |
5563 | done |
5564 | IFS=$as_save_IFS | |
1c710c3c | 5565 | |
5305be7e RG |
5566 | fi |
5567 | fi | |
1c710c3c DJ |
5568 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5569 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5571 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5572 | else |
5213506e RW |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5574 | $as_echo "no" >&6; } | |
5305be7e RG |
5575 | fi |
5576 | ||
5213506e RW |
5577 | if test "x$ac_ct_GNATMAKE" = x; then |
5578 | GNATMAKE="no" | |
5579 | else | |
5580 | case $cross_compiling:$ac_tool_warned in | |
5581 | yes:) | |
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5583 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5584 | ac_tool_warned=yes ;; | |
5585 | esac | |
5586 | GNATMAKE=$ac_ct_GNATMAKE | |
5587 | fi | |
5305be7e | 5588 | else |
1c710c3c | 5589 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5590 | fi |
5591 | ||
71f068a9 RS |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 |
5593 | $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } | |
22e05272 | 5594 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5595 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5596 | else |
5597 | cat >conftest.adb <<EOF | |
71f068a9 RS |
5598 | pragma Warnings (Off); |
5599 | with System.CRTL; | |
5600 | pragma Warnings (On); | |
5601 | use type System.CRTL.int64; | |
55ffb5ed NN |
5602 | procedure conftest is begin null; end conftest; |
5603 | EOF | |
5604 | acx_cv_cc_gcc_supports_ada=no | |
5605 | # There is a bug in old released versions of GCC which causes the | |
5606 | # driver to exit successfully when the appropriate language module | |
5607 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5608 | # Therefore we must check for the error message as well as an | |
5609 | # unsuccessful exit. | |
1db673ca RO |
5610 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5611 | # given a .adb file, but produce no object file. So we must check | |
5612 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5613 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5614 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5615 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5616 | fi |
5617 | rm -f conftest.* | |
5618 | fi | |
5213506e RW |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5620 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5621 | |
7cb62ef1 | 5622 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5623 | have_gnat=yes |
5624 | else | |
5625 | have_gnat=no | |
5626 | fi | |
5627 | ||
5fee5ec3 IB |
5628 | |
5629 | ||
5630 | if test -n "$ac_tool_prefix"; then | |
5631 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5632 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5634 | $as_echo_n "checking for $ac_word... " >&6; } | |
5635 | if ${ac_cv_prog_GDC+:} false; then : | |
5636 | $as_echo_n "(cached) " >&6 | |
5637 | else | |
5638 | if test -n "$GDC"; then | |
5639 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5640 | else | |
5641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5642 | for as_dir in $PATH | |
5643 | do | |
5644 | IFS=$as_save_IFS | |
5645 | test -z "$as_dir" && as_dir=. | |
5646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5648 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5650 | break 2 | |
5651 | fi | |
5652 | done | |
5653 | done | |
5654 | IFS=$as_save_IFS | |
5655 | ||
5656 | fi | |
5657 | fi | |
5658 | GDC=$ac_cv_prog_GDC | |
5659 | if test -n "$GDC"; then | |
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5661 | $as_echo "$GDC" >&6; } | |
5662 | else | |
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5664 | $as_echo "no" >&6; } | |
5665 | fi | |
5666 | ||
5667 | ||
5668 | fi | |
5669 | if test -z "$ac_cv_prog_GDC"; then | |
5670 | ac_ct_GDC=$GDC | |
5671 | # Extract the first word of "gdc", so it can be a program name with args. | |
5672 | set dummy gdc; ac_word=$2 | |
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5674 | $as_echo_n "checking for $ac_word... " >&6; } | |
5675 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5676 | $as_echo_n "(cached) " >&6 | |
5677 | else | |
5678 | if test -n "$ac_ct_GDC"; then | |
5679 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5680 | else | |
5681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5682 | for as_dir in $PATH | |
5683 | do | |
5684 | IFS=$as_save_IFS | |
5685 | test -z "$as_dir" && as_dir=. | |
5686 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5688 | ac_cv_prog_ac_ct_GDC="gdc" | |
5689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5690 | break 2 | |
5691 | fi | |
5692 | done | |
5693 | done | |
5694 | IFS=$as_save_IFS | |
5695 | ||
5696 | fi | |
5697 | fi | |
5698 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5699 | if test -n "$ac_ct_GDC"; then | |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5701 | $as_echo "$ac_ct_GDC" >&6; } | |
5702 | else | |
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5704 | $as_echo "no" >&6; } | |
5705 | fi | |
5706 | ||
5707 | if test "x$ac_ct_GDC" = x; then | |
5708 | GDC="no" | |
5709 | else | |
5710 | case $cross_compiling:$ac_tool_warned in | |
5711 | yes:) | |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5713 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5714 | ac_tool_warned=yes ;; | |
5715 | esac | |
5716 | GDC=$ac_ct_GDC | |
5717 | fi | |
5718 | else | |
5719 | GDC="$ac_cv_prog_GDC" | |
5720 | fi | |
5721 | ||
7c6ae994 IB |
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 |
5723 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5724 | if ${acx_cv_d_compiler_works+:} false; then : | |
5725 | $as_echo_n "(cached) " >&6 | |
5726 | else | |
5727 | cat >conftest.d <<EOF | |
5728 | module conftest; int main() { return 0; } | |
5729 | EOF | |
5730 | acx_cv_d_compiler_works=no | |
5fee5ec3 | 5731 | if test "x$GDC" != xno; then |
7c6ae994 IB |
5732 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` |
5733 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5734 | acx_cv_d_compiler_works=yes | |
5735 | fi | |
5736 | rm -f conftest.* | |
5737 | fi | |
5738 | fi | |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5740 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5741 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5fee5ec3 IB |
5742 | have_gdc=yes |
5743 | else | |
5744 | have_gdc=no | |
5745 | fi | |
5746 | ||
5213506e RW |
5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5748 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5749 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5750 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5751 | else |
5752 | echo abfoo >t1 | |
5753 | echo cdfoo >t2 | |
b55e6680 | 5754 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5755 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5756 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5757 | : | |
5758 | else | |
5759 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5760 | fi | |
5761 | fi | |
a76494aa PB |
5762 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5763 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5764 | : |
a76494aa PB |
5765 | else |
5766 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5767 | fi | |
5768 | fi | |
5769 | rm t1 t2 | |
5770 | ||
5771 | fi | |
5213506e RW |
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5773 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5774 | do_compare="$gcc_cv_prog_cmp_skip" |
5775 | ||
5776 | ||
55ffb5ed | 5777 | |
ff3ac0f4 ILT |
5778 | # Check whether --enable-bootstrap was given. |
5779 | if test "${enable_bootstrap+set}" = set; then : | |
5780 | enableval=$enable_bootstrap; | |
5781 | else | |
5782 | enable_bootstrap=default | |
5783 | fi | |
5784 | ||
5785 | ||
5786 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5787 | if test -r $srcdir/gcc/configure; then |
5788 | have_compiler=yes | |
5789 | else | |
5790 | have_compiler=no | |
5791 | fi | |
ff3ac0f4 ILT |
5792 | |
5793 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5794 | *:*:*:no) ;; | |
5795 | ||
5796 | # Default behavior. Enable bootstrap if we have a compiler | |
5797 | # and we are in a native configuration. | |
5798 | yes:$build:$build:default) | |
5799 | enable_bootstrap=yes ;; | |
5800 | ||
5801 | *:*:*:default) | |
5802 | enable_bootstrap=no ;; | |
5803 | ||
5804 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5805 | yes:$build:$build:yes) | |
5806 | ;; | |
5807 | ||
5808 | # Other configurations, but we have a compiler. Assume the user knows | |
5809 | # what he's doing. | |
5810 | yes:*:*:yes) | |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5812 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5813 | ;; | |
5814 | ||
5815 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5816 | no:*:*:yes) | |
22e05272 | 5817 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5818 | |
5819 | # Fail if wrong command line | |
5820 | *) | |
22e05272 | 5821 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5822 | ;; |
5823 | esac | |
5824 | ||
5329b59a | 5825 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5826 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5827 | # require C++11 (or higher). | |
46070488 | 5828 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5829 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5830 | elif test "$have_compiler" = yes; then |
5831 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5832 | ac_ext=cpp | |
5833 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5834 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5835 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5836 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5837 | ac_success=no | |
5838 | ||
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5840 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5841 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5842 | $as_echo_n "(cached) " >&6 | |
5843 | else | |
5844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5845 | /* end confdefs.h. */ | |
5846 | ||
5847 | ||
5848 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5849 | // Hopefully, this will speed up the test. | |
5850 | ||
5851 | #ifndef __cplusplus | |
5852 | ||
5853 | #error "This is not a C++ compiler" | |
5854 | ||
5855 | #elif __cplusplus < 201103L | |
5856 | ||
5857 | #error "This is not a C++11 compiler" | |
5858 | ||
5859 | #else | |
5860 | ||
5861 | namespace cxx11 | |
5862 | { | |
5863 | ||
5864 | namespace test_static_assert | |
5865 | { | |
5866 | ||
5867 | template <typename T> | |
5868 | struct check | |
5869 | { | |
5870 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5871 | }; | |
5872 | ||
5873 | } | |
5874 | ||
5875 | namespace test_final_override | |
5876 | { | |
5877 | ||
5878 | struct Base | |
5879 | { | |
5880 | virtual ~Base() {} | |
5881 | virtual void f() {} | |
5882 | }; | |
5883 | ||
5884 | struct Derived : public Base | |
5885 | { | |
5886 | virtual ~Derived() override {} | |
5887 | virtual void f() override {} | |
5888 | }; | |
5889 | ||
5890 | } | |
5891 | ||
5892 | namespace test_double_right_angle_brackets | |
5893 | { | |
5894 | ||
5895 | template < typename T > | |
5896 | struct check {}; | |
5897 | ||
5898 | typedef check<void> single_type; | |
5899 | typedef check<check<void>> double_type; | |
5900 | typedef check<check<check<void>>> triple_type; | |
5901 | typedef check<check<check<check<void>>>> quadruple_type; | |
5902 | ||
5903 | } | |
5904 | ||
5905 | namespace test_decltype | |
5906 | { | |
5907 | ||
5908 | int | |
5909 | f() | |
5910 | { | |
5911 | int a = 1; | |
5912 | decltype(a) b = 2; | |
5913 | return a + b; | |
5914 | } | |
5915 | ||
5916 | } | |
5917 | ||
5918 | namespace test_type_deduction | |
5919 | { | |
5920 | ||
5921 | template < typename T1, typename T2 > | |
5922 | struct is_same | |
5923 | { | |
5924 | static const bool value = false; | |
5925 | }; | |
5926 | ||
5927 | template < typename T > | |
5928 | struct is_same<T, T> | |
5929 | { | |
5930 | static const bool value = true; | |
5931 | }; | |
5932 | ||
5933 | template < typename T1, typename T2 > | |
5934 | auto | |
5935 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5936 | { | |
5937 | return a1 + a2; | |
5938 | } | |
5939 | ||
5940 | int | |
5941 | test(const int c, volatile int v) | |
5942 | { | |
5943 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5944 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5945 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5946 | auto ac = c; | |
5947 | auto av = v; | |
5948 | auto sumi = ac + av + 'x'; | |
5949 | auto sumf = ac + av + 1.0; | |
5950 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5951 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5952 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5953 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5954 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5955 | return (sumf > 0.0) ? sumi : add(c, v); | |
5956 | } | |
5957 | ||
5958 | } | |
5959 | ||
5960 | namespace test_noexcept | |
5961 | { | |
5962 | ||
5963 | int f() { return 0; } | |
5964 | int g() noexcept { return 0; } | |
5965 | ||
5966 | static_assert(noexcept(f()) == false, ""); | |
5967 | static_assert(noexcept(g()) == true, ""); | |
5968 | ||
5969 | } | |
5970 | ||
5971 | namespace test_constexpr | |
5972 | { | |
5973 | ||
5974 | template < typename CharT > | |
5975 | unsigned long constexpr | |
5976 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5977 | { | |
5978 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5979 | } | |
5980 | ||
5981 | template < typename CharT > | |
5982 | unsigned long constexpr | |
5983 | strlen_c(const CharT *const s) noexcept | |
5984 | { | |
5985 | return strlen_c_r(s, 0UL); | |
5986 | } | |
5987 | ||
5988 | static_assert(strlen_c("") == 0UL, ""); | |
5989 | static_assert(strlen_c("1") == 1UL, ""); | |
5990 | static_assert(strlen_c("example") == 7UL, ""); | |
5991 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
5992 | ||
5993 | } | |
5994 | ||
5995 | namespace test_rvalue_references | |
5996 | { | |
5997 | ||
5998 | template < int N > | |
5999 | struct answer | |
6000 | { | |
6001 | static constexpr int value = N; | |
6002 | }; | |
6003 | ||
6004 | answer<1> f(int&) { return answer<1>(); } | |
6005 | answer<2> f(const int&) { return answer<2>(); } | |
6006 | answer<3> f(int&&) { return answer<3>(); } | |
6007 | ||
6008 | void | |
6009 | test() | |
6010 | { | |
6011 | int i = 0; | |
6012 | const int c = 0; | |
6013 | static_assert(decltype(f(i))::value == 1, ""); | |
6014 | static_assert(decltype(f(c))::value == 2, ""); | |
6015 | static_assert(decltype(f(0))::value == 3, ""); | |
6016 | } | |
6017 | ||
6018 | } | |
6019 | ||
6020 | namespace test_uniform_initialization | |
6021 | { | |
6022 | ||
6023 | struct test | |
6024 | { | |
6025 | static const int zero {}; | |
6026 | static const int one {1}; | |
6027 | }; | |
6028 | ||
6029 | static_assert(test::zero == 0, ""); | |
6030 | static_assert(test::one == 1, ""); | |
6031 | ||
6032 | } | |
6033 | ||
6034 | namespace test_lambdas | |
6035 | { | |
6036 | ||
6037 | void | |
6038 | test1() | |
6039 | { | |
6040 | auto lambda1 = [](){}; | |
6041 | auto lambda2 = lambda1; | |
6042 | lambda1(); | |
6043 | lambda2(); | |
6044 | } | |
6045 | ||
6046 | int | |
6047 | test2() | |
6048 | { | |
6049 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6050 | auto b = []() -> int { return '0'; }(); | |
6051 | auto c = [=](){ return a + b; }(); | |
6052 | auto d = [&](){ return c; }(); | |
6053 | auto e = [a, &b](int x) mutable { | |
6054 | const auto identity = [](int y){ return y; }; | |
6055 | for (auto i = 0; i < a; ++i) | |
6056 | a += b--; | |
6057 | return x + identity(a + b); | |
6058 | }(0); | |
6059 | return a + b + c + d + e; | |
6060 | } | |
6061 | ||
6062 | int | |
6063 | test3() | |
6064 | { | |
6065 | const auto nullary = [](){ return 0; }; | |
6066 | const auto unary = [](int x){ return x; }; | |
6067 | using nullary_t = decltype(nullary); | |
6068 | using unary_t = decltype(unary); | |
6069 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6070 | const auto higher2nd = [unary](nullary_t f1){ | |
6071 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6072 | }; | |
6073 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6074 | } | |
6075 | ||
6076 | } | |
6077 | ||
6078 | namespace test_variadic_templates | |
6079 | { | |
6080 | ||
6081 | template <int...> | |
6082 | struct sum; | |
6083 | ||
6084 | template <int N0, int... N1toN> | |
6085 | struct sum<N0, N1toN...> | |
6086 | { | |
6087 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6088 | }; | |
6089 | ||
6090 | template <> | |
6091 | struct sum<> | |
6092 | { | |
6093 | static constexpr auto value = 0; | |
6094 | }; | |
6095 | ||
6096 | static_assert(sum<>::value == 0, ""); | |
6097 | static_assert(sum<1>::value == 1, ""); | |
6098 | static_assert(sum<23>::value == 23, ""); | |
6099 | static_assert(sum<1, 2>::value == 3, ""); | |
6100 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6101 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6102 | ||
6103 | } | |
6104 | ||
6105 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6106 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6107 | // because of this. | |
6108 | namespace test_template_alias_sfinae | |
6109 | { | |
6110 | ||
6111 | struct foo {}; | |
6112 | ||
6113 | template<typename T> | |
6114 | using member = typename T::member_type; | |
6115 | ||
6116 | template<typename T> | |
6117 | void func(...) {} | |
6118 | ||
6119 | template<typename T> | |
6120 | void func(member<T>*) {} | |
6121 | ||
6122 | void test(); | |
6123 | ||
6124 | void test() { func<foo>(0); } | |
6125 | ||
6126 | } | |
6127 | ||
6128 | } // namespace cxx11 | |
6129 | ||
6130 | #endif // __cplusplus >= 201103L | |
6131 | ||
6132 | ||
6133 | ||
6134 | _ACEOF | |
6135 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6136 | ax_cv_cxx_compile_cxx11=yes | |
6137 | else | |
6138 | ax_cv_cxx_compile_cxx11=no | |
6139 | fi | |
6140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6141 | fi | |
6142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6143 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6144 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6145 | ac_success=yes | |
6146 | fi | |
6147 | ||
6148 | if test x$ac_success = xno; then | |
6149 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6150 | switch="-std=gnu++${alternative}" | |
6151 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6153 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6154 | if eval \${$cachevar+:} false; then : | |
6155 | $as_echo_n "(cached) " >&6 | |
6156 | else | |
6157 | ac_save_CXX="$CXX" | |
6158 | CXX="$CXX $switch" | |
6159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6160 | /* end confdefs.h. */ | |
6161 | ||
6162 | ||
6163 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6164 | // Hopefully, this will speed up the test. | |
6165 | ||
6166 | #ifndef __cplusplus | |
6167 | ||
6168 | #error "This is not a C++ compiler" | |
6169 | ||
6170 | #elif __cplusplus < 201103L | |
6171 | ||
6172 | #error "This is not a C++11 compiler" | |
6173 | ||
6174 | #else | |
6175 | ||
6176 | namespace cxx11 | |
6177 | { | |
6178 | ||
6179 | namespace test_static_assert | |
6180 | { | |
6181 | ||
6182 | template <typename T> | |
6183 | struct check | |
6184 | { | |
6185 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6186 | }; | |
6187 | ||
6188 | } | |
6189 | ||
6190 | namespace test_final_override | |
6191 | { | |
6192 | ||
6193 | struct Base | |
6194 | { | |
6195 | virtual ~Base() {} | |
6196 | virtual void f() {} | |
6197 | }; | |
6198 | ||
6199 | struct Derived : public Base | |
6200 | { | |
6201 | virtual ~Derived() override {} | |
6202 | virtual void f() override {} | |
6203 | }; | |
6204 | ||
6205 | } | |
6206 | ||
6207 | namespace test_double_right_angle_brackets | |
6208 | { | |
6209 | ||
6210 | template < typename T > | |
6211 | struct check {}; | |
6212 | ||
6213 | typedef check<void> single_type; | |
6214 | typedef check<check<void>> double_type; | |
6215 | typedef check<check<check<void>>> triple_type; | |
6216 | typedef check<check<check<check<void>>>> quadruple_type; | |
6217 | ||
6218 | } | |
6219 | ||
6220 | namespace test_decltype | |
6221 | { | |
6222 | ||
6223 | int | |
6224 | f() | |
6225 | { | |
6226 | int a = 1; | |
6227 | decltype(a) b = 2; | |
6228 | return a + b; | |
6229 | } | |
6230 | ||
6231 | } | |
6232 | ||
6233 | namespace test_type_deduction | |
6234 | { | |
6235 | ||
6236 | template < typename T1, typename T2 > | |
6237 | struct is_same | |
6238 | { | |
6239 | static const bool value = false; | |
6240 | }; | |
6241 | ||
6242 | template < typename T > | |
6243 | struct is_same<T, T> | |
6244 | { | |
6245 | static const bool value = true; | |
6246 | }; | |
6247 | ||
6248 | template < typename T1, typename T2 > | |
6249 | auto | |
6250 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6251 | { | |
6252 | return a1 + a2; | |
6253 | } | |
6254 | ||
6255 | int | |
6256 | test(const int c, volatile int v) | |
6257 | { | |
6258 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6259 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6260 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6261 | auto ac = c; | |
6262 | auto av = v; | |
6263 | auto sumi = ac + av + 'x'; | |
6264 | auto sumf = ac + av + 1.0; | |
6265 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6266 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6267 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6268 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6269 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6270 | return (sumf > 0.0) ? sumi : add(c, v); | |
6271 | } | |
6272 | ||
6273 | } | |
6274 | ||
6275 | namespace test_noexcept | |
6276 | { | |
6277 | ||
6278 | int f() { return 0; } | |
6279 | int g() noexcept { return 0; } | |
6280 | ||
6281 | static_assert(noexcept(f()) == false, ""); | |
6282 | static_assert(noexcept(g()) == true, ""); | |
6283 | ||
6284 | } | |
6285 | ||
6286 | namespace test_constexpr | |
6287 | { | |
6288 | ||
6289 | template < typename CharT > | |
6290 | unsigned long constexpr | |
6291 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6292 | { | |
6293 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6294 | } | |
6295 | ||
6296 | template < typename CharT > | |
6297 | unsigned long constexpr | |
6298 | strlen_c(const CharT *const s) noexcept | |
6299 | { | |
6300 | return strlen_c_r(s, 0UL); | |
6301 | } | |
6302 | ||
6303 | static_assert(strlen_c("") == 0UL, ""); | |
6304 | static_assert(strlen_c("1") == 1UL, ""); | |
6305 | static_assert(strlen_c("example") == 7UL, ""); | |
6306 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6307 | ||
6308 | } | |
6309 | ||
6310 | namespace test_rvalue_references | |
6311 | { | |
6312 | ||
6313 | template < int N > | |
6314 | struct answer | |
6315 | { | |
6316 | static constexpr int value = N; | |
6317 | }; | |
6318 | ||
6319 | answer<1> f(int&) { return answer<1>(); } | |
6320 | answer<2> f(const int&) { return answer<2>(); } | |
6321 | answer<3> f(int&&) { return answer<3>(); } | |
6322 | ||
6323 | void | |
6324 | test() | |
6325 | { | |
6326 | int i = 0; | |
6327 | const int c = 0; | |
6328 | static_assert(decltype(f(i))::value == 1, ""); | |
6329 | static_assert(decltype(f(c))::value == 2, ""); | |
6330 | static_assert(decltype(f(0))::value == 3, ""); | |
6331 | } | |
6332 | ||
6333 | } | |
6334 | ||
6335 | namespace test_uniform_initialization | |
6336 | { | |
6337 | ||
6338 | struct test | |
6339 | { | |
6340 | static const int zero {}; | |
6341 | static const int one {1}; | |
6342 | }; | |
6343 | ||
6344 | static_assert(test::zero == 0, ""); | |
6345 | static_assert(test::one == 1, ""); | |
6346 | ||
6347 | } | |
6348 | ||
6349 | namespace test_lambdas | |
6350 | { | |
6351 | ||
6352 | void | |
6353 | test1() | |
6354 | { | |
6355 | auto lambda1 = [](){}; | |
6356 | auto lambda2 = lambda1; | |
6357 | lambda1(); | |
6358 | lambda2(); | |
6359 | } | |
6360 | ||
6361 | int | |
6362 | test2() | |
6363 | { | |
6364 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6365 | auto b = []() -> int { return '0'; }(); | |
6366 | auto c = [=](){ return a + b; }(); | |
6367 | auto d = [&](){ return c; }(); | |
6368 | auto e = [a, &b](int x) mutable { | |
6369 | const auto identity = [](int y){ return y; }; | |
6370 | for (auto i = 0; i < a; ++i) | |
6371 | a += b--; | |
6372 | return x + identity(a + b); | |
6373 | }(0); | |
6374 | return a + b + c + d + e; | |
6375 | } | |
6376 | ||
6377 | int | |
6378 | test3() | |
6379 | { | |
6380 | const auto nullary = [](){ return 0; }; | |
6381 | const auto unary = [](int x){ return x; }; | |
6382 | using nullary_t = decltype(nullary); | |
6383 | using unary_t = decltype(unary); | |
6384 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6385 | const auto higher2nd = [unary](nullary_t f1){ | |
6386 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6387 | }; | |
6388 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6389 | } | |
6390 | ||
6391 | } | |
6392 | ||
6393 | namespace test_variadic_templates | |
6394 | { | |
6395 | ||
6396 | template <int...> | |
6397 | struct sum; | |
6398 | ||
6399 | template <int N0, int... N1toN> | |
6400 | struct sum<N0, N1toN...> | |
6401 | { | |
6402 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6403 | }; | |
6404 | ||
6405 | template <> | |
6406 | struct sum<> | |
6407 | { | |
6408 | static constexpr auto value = 0; | |
6409 | }; | |
6410 | ||
6411 | static_assert(sum<>::value == 0, ""); | |
6412 | static_assert(sum<1>::value == 1, ""); | |
6413 | static_assert(sum<23>::value == 23, ""); | |
6414 | static_assert(sum<1, 2>::value == 3, ""); | |
6415 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6416 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6417 | ||
6418 | } | |
6419 | ||
6420 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6421 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6422 | // because of this. | |
6423 | namespace test_template_alias_sfinae | |
6424 | { | |
6425 | ||
6426 | struct foo {}; | |
6427 | ||
6428 | template<typename T> | |
6429 | using member = typename T::member_type; | |
6430 | ||
6431 | template<typename T> | |
6432 | void func(...) {} | |
6433 | ||
6434 | template<typename T> | |
6435 | void func(member<T>*) {} | |
6436 | ||
6437 | void test(); | |
6438 | ||
6439 | void test() { func<foo>(0); } | |
6440 | ||
6441 | } | |
6442 | ||
6443 | } // namespace cxx11 | |
6444 | ||
6445 | #endif // __cplusplus >= 201103L | |
6446 | ||
6447 | ||
6448 | ||
6449 | _ACEOF | |
6450 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6451 | eval $cachevar=yes | |
6452 | else | |
6453 | eval $cachevar=no | |
6454 | fi | |
6455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6456 | CXX="$ac_save_CXX" | |
6457 | fi | |
6458 | eval ac_res=\$$cachevar | |
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6460 | $as_echo "$ac_res" >&6; } | |
6461 | if eval test x\$$cachevar = xyes; then | |
6462 | CXX="$CXX $switch" | |
6463 | if test -n "$CXXCPP" ; then | |
6464 | CXXCPP="$CXXCPP $switch" | |
6465 | fi | |
6466 | ac_success=yes | |
6467 | break | |
6468 | fi | |
6469 | done | |
6470 | fi | |
6471 | ||
6472 | if test x$ac_success = xno; then | |
6473 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6474 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6475 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6477 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6478 | if eval \${$cachevar+:} false; then : | |
6479 | $as_echo_n "(cached) " >&6 | |
6480 | else | |
6481 | ac_save_CXX="$CXX" | |
6482 | CXX="$CXX $switch" | |
6483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6484 | /* end confdefs.h. */ | |
6485 | ||
6486 | ||
6487 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6488 | // Hopefully, this will speed up the test. | |
6489 | ||
6490 | #ifndef __cplusplus | |
6491 | ||
6492 | #error "This is not a C++ compiler" | |
6493 | ||
6494 | #elif __cplusplus < 201103L | |
6495 | ||
6496 | #error "This is not a C++11 compiler" | |
6497 | ||
6498 | #else | |
6499 | ||
6500 | namespace cxx11 | |
6501 | { | |
6502 | ||
6503 | namespace test_static_assert | |
6504 | { | |
6505 | ||
6506 | template <typename T> | |
6507 | struct check | |
6508 | { | |
6509 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6510 | }; | |
6511 | ||
6512 | } | |
6513 | ||
6514 | namespace test_final_override | |
6515 | { | |
6516 | ||
6517 | struct Base | |
6518 | { | |
6519 | virtual ~Base() {} | |
6520 | virtual void f() {} | |
6521 | }; | |
6522 | ||
6523 | struct Derived : public Base | |
6524 | { | |
6525 | virtual ~Derived() override {} | |
6526 | virtual void f() override {} | |
6527 | }; | |
6528 | ||
6529 | } | |
6530 | ||
6531 | namespace test_double_right_angle_brackets | |
6532 | { | |
6533 | ||
6534 | template < typename T > | |
6535 | struct check {}; | |
6536 | ||
6537 | typedef check<void> single_type; | |
6538 | typedef check<check<void>> double_type; | |
6539 | typedef check<check<check<void>>> triple_type; | |
6540 | typedef check<check<check<check<void>>>> quadruple_type; | |
6541 | ||
6542 | } | |
6543 | ||
6544 | namespace test_decltype | |
6545 | { | |
6546 | ||
6547 | int | |
6548 | f() | |
6549 | { | |
6550 | int a = 1; | |
6551 | decltype(a) b = 2; | |
6552 | return a + b; | |
6553 | } | |
6554 | ||
6555 | } | |
6556 | ||
6557 | namespace test_type_deduction | |
6558 | { | |
6559 | ||
6560 | template < typename T1, typename T2 > | |
6561 | struct is_same | |
6562 | { | |
6563 | static const bool value = false; | |
6564 | }; | |
6565 | ||
6566 | template < typename T > | |
6567 | struct is_same<T, T> | |
6568 | { | |
6569 | static const bool value = true; | |
6570 | }; | |
6571 | ||
6572 | template < typename T1, typename T2 > | |
6573 | auto | |
6574 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6575 | { | |
6576 | return a1 + a2; | |
6577 | } | |
6578 | ||
6579 | int | |
6580 | test(const int c, volatile int v) | |
6581 | { | |
6582 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6583 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6584 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6585 | auto ac = c; | |
6586 | auto av = v; | |
6587 | auto sumi = ac + av + 'x'; | |
6588 | auto sumf = ac + av + 1.0; | |
6589 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6590 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6591 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6592 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6593 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6594 | return (sumf > 0.0) ? sumi : add(c, v); | |
6595 | } | |
6596 | ||
6597 | } | |
6598 | ||
6599 | namespace test_noexcept | |
6600 | { | |
6601 | ||
6602 | int f() { return 0; } | |
6603 | int g() noexcept { return 0; } | |
6604 | ||
6605 | static_assert(noexcept(f()) == false, ""); | |
6606 | static_assert(noexcept(g()) == true, ""); | |
6607 | ||
6608 | } | |
6609 | ||
6610 | namespace test_constexpr | |
6611 | { | |
6612 | ||
6613 | template < typename CharT > | |
6614 | unsigned long constexpr | |
6615 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6616 | { | |
6617 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6618 | } | |
6619 | ||
6620 | template < typename CharT > | |
6621 | unsigned long constexpr | |
6622 | strlen_c(const CharT *const s) noexcept | |
6623 | { | |
6624 | return strlen_c_r(s, 0UL); | |
6625 | } | |
6626 | ||
6627 | static_assert(strlen_c("") == 0UL, ""); | |
6628 | static_assert(strlen_c("1") == 1UL, ""); | |
6629 | static_assert(strlen_c("example") == 7UL, ""); | |
6630 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6631 | ||
6632 | } | |
6633 | ||
6634 | namespace test_rvalue_references | |
6635 | { | |
6636 | ||
6637 | template < int N > | |
6638 | struct answer | |
6639 | { | |
6640 | static constexpr int value = N; | |
6641 | }; | |
6642 | ||
6643 | answer<1> f(int&) { return answer<1>(); } | |
6644 | answer<2> f(const int&) { return answer<2>(); } | |
6645 | answer<3> f(int&&) { return answer<3>(); } | |
6646 | ||
6647 | void | |
6648 | test() | |
6649 | { | |
6650 | int i = 0; | |
6651 | const int c = 0; | |
6652 | static_assert(decltype(f(i))::value == 1, ""); | |
6653 | static_assert(decltype(f(c))::value == 2, ""); | |
6654 | static_assert(decltype(f(0))::value == 3, ""); | |
6655 | } | |
6656 | ||
6657 | } | |
6658 | ||
6659 | namespace test_uniform_initialization | |
6660 | { | |
6661 | ||
6662 | struct test | |
6663 | { | |
6664 | static const int zero {}; | |
6665 | static const int one {1}; | |
6666 | }; | |
6667 | ||
6668 | static_assert(test::zero == 0, ""); | |
6669 | static_assert(test::one == 1, ""); | |
6670 | ||
6671 | } | |
6672 | ||
6673 | namespace test_lambdas | |
6674 | { | |
6675 | ||
6676 | void | |
6677 | test1() | |
6678 | { | |
6679 | auto lambda1 = [](){}; | |
6680 | auto lambda2 = lambda1; | |
6681 | lambda1(); | |
6682 | lambda2(); | |
6683 | } | |
6684 | ||
6685 | int | |
6686 | test2() | |
6687 | { | |
6688 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6689 | auto b = []() -> int { return '0'; }(); | |
6690 | auto c = [=](){ return a + b; }(); | |
6691 | auto d = [&](){ return c; }(); | |
6692 | auto e = [a, &b](int x) mutable { | |
6693 | const auto identity = [](int y){ return y; }; | |
6694 | for (auto i = 0; i < a; ++i) | |
6695 | a += b--; | |
6696 | return x + identity(a + b); | |
6697 | }(0); | |
6698 | return a + b + c + d + e; | |
6699 | } | |
6700 | ||
6701 | int | |
6702 | test3() | |
6703 | { | |
6704 | const auto nullary = [](){ return 0; }; | |
6705 | const auto unary = [](int x){ return x; }; | |
6706 | using nullary_t = decltype(nullary); | |
6707 | using unary_t = decltype(unary); | |
6708 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6709 | const auto higher2nd = [unary](nullary_t f1){ | |
6710 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6711 | }; | |
6712 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6713 | } | |
6714 | ||
6715 | } | |
6716 | ||
6717 | namespace test_variadic_templates | |
6718 | { | |
6719 | ||
6720 | template <int...> | |
6721 | struct sum; | |
6722 | ||
6723 | template <int N0, int... N1toN> | |
6724 | struct sum<N0, N1toN...> | |
6725 | { | |
6726 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6727 | }; | |
6728 | ||
6729 | template <> | |
6730 | struct sum<> | |
6731 | { | |
6732 | static constexpr auto value = 0; | |
6733 | }; | |
6734 | ||
6735 | static_assert(sum<>::value == 0, ""); | |
6736 | static_assert(sum<1>::value == 1, ""); | |
6737 | static_assert(sum<23>::value == 23, ""); | |
6738 | static_assert(sum<1, 2>::value == 3, ""); | |
6739 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6740 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6741 | ||
6742 | } | |
6743 | ||
6744 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6745 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6746 | // because of this. | |
6747 | namespace test_template_alias_sfinae | |
6748 | { | |
6749 | ||
6750 | struct foo {}; | |
6751 | ||
6752 | template<typename T> | |
6753 | using member = typename T::member_type; | |
6754 | ||
6755 | template<typename T> | |
6756 | void func(...) {} | |
6757 | ||
6758 | template<typename T> | |
6759 | void func(member<T>*) {} | |
6760 | ||
6761 | void test(); | |
6762 | ||
6763 | void test() { func<foo>(0); } | |
6764 | ||
6765 | } | |
6766 | ||
6767 | } // namespace cxx11 | |
6768 | ||
6769 | #endif // __cplusplus >= 201103L | |
6770 | ||
6771 | ||
6772 | ||
6773 | _ACEOF | |
6774 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6775 | eval $cachevar=yes | |
6776 | else | |
6777 | eval $cachevar=no | |
6778 | fi | |
6779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6780 | CXX="$ac_save_CXX" | |
6781 | fi | |
6782 | eval ac_res=\$$cachevar | |
6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6784 | $as_echo "$ac_res" >&6; } | |
6785 | if eval test x\$$cachevar = xyes; then | |
6786 | CXX="$CXX $switch" | |
6787 | if test -n "$CXXCPP" ; then | |
6788 | CXXCPP="$CXXCPP $switch" | |
6789 | fi | |
6790 | ac_success=yes | |
6791 | break | |
6792 | fi | |
6793 | done | |
6794 | if test x$ac_success = xyes; then | |
6795 | break | |
6796 | fi | |
6797 | done | |
6798 | fi | |
7ffcf5d6 | 6799 | |
ffac9597 JM |
6800 | ac_ext=c |
6801 | ac_cpp='$CPP $CPPFLAGS' | |
6802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6805 | ||
6806 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6807 | if test x$ac_success = xno; then | |
6808 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6809 | fi | |
6810 | fi | |
6811 | if test x$ac_success = xno; then | |
6812 | HAVE_CXX11=0 | |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6814 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6815 | else | |
6816 | HAVE_CXX11=1 | |
6817 | ||
6818 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6819 | ||
6820 | fi | |
6821 | ||
6822 | ||
7ffcf5d6 TB |
6823 | |
6824 | if test "${build}" != "${host}"; then | |
6825 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6826 | ac_ext=cpp | |
6827 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6828 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6829 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6830 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6831 | ac_success=no | |
6832 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6833 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6834 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6835 | CXX="$CXX_FOR_BUILD" | |
6836 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6837 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6839 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6840 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6841 | $as_echo_n "(cached) " >&6 | |
6842 | else | |
6843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6844 | /* end confdefs.h. */ | |
6845 | ||
6846 | ||
6847 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6848 | // Hopefully, this will speed up the test. | |
6849 | ||
6850 | #ifndef __cplusplus | |
6851 | ||
6852 | #error "This is not a C++ compiler" | |
6853 | ||
6854 | #elif __cplusplus < 201103L | |
6855 | ||
6856 | #error "This is not a C++11 compiler" | |
6857 | ||
6858 | #else | |
6859 | ||
6860 | namespace cxx11 | |
6861 | { | |
6862 | ||
6863 | namespace test_static_assert | |
6864 | { | |
6865 | ||
6866 | template <typename T> | |
6867 | struct check | |
6868 | { | |
6869 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6870 | }; | |
6871 | ||
6872 | } | |
6873 | ||
6874 | namespace test_final_override | |
6875 | { | |
6876 | ||
6877 | struct Base | |
6878 | { | |
6879 | virtual ~Base() {} | |
6880 | virtual void f() {} | |
6881 | }; | |
6882 | ||
6883 | struct Derived : public Base | |
6884 | { | |
6885 | virtual ~Derived() override {} | |
6886 | virtual void f() override {} | |
6887 | }; | |
6888 | ||
6889 | } | |
6890 | ||
6891 | namespace test_double_right_angle_brackets | |
6892 | { | |
6893 | ||
6894 | template < typename T > | |
6895 | struct check {}; | |
6896 | ||
6897 | typedef check<void> single_type; | |
6898 | typedef check<check<void>> double_type; | |
6899 | typedef check<check<check<void>>> triple_type; | |
6900 | typedef check<check<check<check<void>>>> quadruple_type; | |
6901 | ||
6902 | } | |
6903 | ||
6904 | namespace test_decltype | |
6905 | { | |
6906 | ||
6907 | int | |
6908 | f() | |
6909 | { | |
6910 | int a = 1; | |
6911 | decltype(a) b = 2; | |
6912 | return a + b; | |
6913 | } | |
6914 | ||
6915 | } | |
6916 | ||
6917 | namespace test_type_deduction | |
6918 | { | |
6919 | ||
6920 | template < typename T1, typename T2 > | |
6921 | struct is_same | |
6922 | { | |
6923 | static const bool value = false; | |
6924 | }; | |
6925 | ||
6926 | template < typename T > | |
6927 | struct is_same<T, T> | |
6928 | { | |
6929 | static const bool value = true; | |
6930 | }; | |
6931 | ||
6932 | template < typename T1, typename T2 > | |
6933 | auto | |
6934 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6935 | { | |
6936 | return a1 + a2; | |
6937 | } | |
6938 | ||
6939 | int | |
6940 | test(const int c, volatile int v) | |
6941 | { | |
6942 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6943 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6944 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6945 | auto ac = c; | |
6946 | auto av = v; | |
6947 | auto sumi = ac + av + 'x'; | |
6948 | auto sumf = ac + av + 1.0; | |
6949 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6950 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6951 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6952 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6953 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6954 | return (sumf > 0.0) ? sumi : add(c, v); | |
6955 | } | |
6956 | ||
6957 | } | |
6958 | ||
6959 | namespace test_noexcept | |
6960 | { | |
6961 | ||
6962 | int f() { return 0; } | |
6963 | int g() noexcept { return 0; } | |
6964 | ||
6965 | static_assert(noexcept(f()) == false, ""); | |
6966 | static_assert(noexcept(g()) == true, ""); | |
6967 | ||
6968 | } | |
6969 | ||
6970 | namespace test_constexpr | |
6971 | { | |
6972 | ||
6973 | template < typename CharT > | |
6974 | unsigned long constexpr | |
6975 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6976 | { | |
6977 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6978 | } | |
6979 | ||
6980 | template < typename CharT > | |
6981 | unsigned long constexpr | |
6982 | strlen_c(const CharT *const s) noexcept | |
6983 | { | |
6984 | return strlen_c_r(s, 0UL); | |
6985 | } | |
6986 | ||
6987 | static_assert(strlen_c("") == 0UL, ""); | |
6988 | static_assert(strlen_c("1") == 1UL, ""); | |
6989 | static_assert(strlen_c("example") == 7UL, ""); | |
6990 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6991 | ||
6992 | } | |
6993 | ||
6994 | namespace test_rvalue_references | |
6995 | { | |
6996 | ||
6997 | template < int N > | |
6998 | struct answer | |
6999 | { | |
7000 | static constexpr int value = N; | |
7001 | }; | |
7002 | ||
7003 | answer<1> f(int&) { return answer<1>(); } | |
7004 | answer<2> f(const int&) { return answer<2>(); } | |
7005 | answer<3> f(int&&) { return answer<3>(); } | |
7006 | ||
7007 | void | |
7008 | test() | |
7009 | { | |
7010 | int i = 0; | |
7011 | const int c = 0; | |
7012 | static_assert(decltype(f(i))::value == 1, ""); | |
7013 | static_assert(decltype(f(c))::value == 2, ""); | |
7014 | static_assert(decltype(f(0))::value == 3, ""); | |
7015 | } | |
7016 | ||
7017 | } | |
7018 | ||
7019 | namespace test_uniform_initialization | |
7020 | { | |
7021 | ||
7022 | struct test | |
7023 | { | |
7024 | static const int zero {}; | |
7025 | static const int one {1}; | |
7026 | }; | |
7027 | ||
7028 | static_assert(test::zero == 0, ""); | |
7029 | static_assert(test::one == 1, ""); | |
7030 | ||
7031 | } | |
7032 | ||
7033 | namespace test_lambdas | |
7034 | { | |
7035 | ||
7036 | void | |
7037 | test1() | |
7038 | { | |
7039 | auto lambda1 = [](){}; | |
7040 | auto lambda2 = lambda1; | |
7041 | lambda1(); | |
7042 | lambda2(); | |
7043 | } | |
7044 | ||
7045 | int | |
7046 | test2() | |
7047 | { | |
7048 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7049 | auto b = []() -> int { return '0'; }(); | |
7050 | auto c = [=](){ return a + b; }(); | |
7051 | auto d = [&](){ return c; }(); | |
7052 | auto e = [a, &b](int x) mutable { | |
7053 | const auto identity = [](int y){ return y; }; | |
7054 | for (auto i = 0; i < a; ++i) | |
7055 | a += b--; | |
7056 | return x + identity(a + b); | |
7057 | }(0); | |
7058 | return a + b + c + d + e; | |
7059 | } | |
7060 | ||
7061 | int | |
7062 | test3() | |
7063 | { | |
7064 | const auto nullary = [](){ return 0; }; | |
7065 | const auto unary = [](int x){ return x; }; | |
7066 | using nullary_t = decltype(nullary); | |
7067 | using unary_t = decltype(unary); | |
7068 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7069 | const auto higher2nd = [unary](nullary_t f1){ | |
7070 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7071 | }; | |
7072 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7073 | } | |
7074 | ||
7075 | } | |
7076 | ||
7077 | namespace test_variadic_templates | |
7078 | { | |
7079 | ||
7080 | template <int...> | |
7081 | struct sum; | |
7082 | ||
7083 | template <int N0, int... N1toN> | |
7084 | struct sum<N0, N1toN...> | |
7085 | { | |
7086 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7087 | }; | |
7088 | ||
7089 | template <> | |
7090 | struct sum<> | |
7091 | { | |
7092 | static constexpr auto value = 0; | |
7093 | }; | |
7094 | ||
7095 | static_assert(sum<>::value == 0, ""); | |
7096 | static_assert(sum<1>::value == 1, ""); | |
7097 | static_assert(sum<23>::value == 23, ""); | |
7098 | static_assert(sum<1, 2>::value == 3, ""); | |
7099 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7100 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7101 | ||
7102 | } | |
7103 | ||
7104 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7105 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7106 | // because of this. | |
7107 | namespace test_template_alias_sfinae | |
7108 | { | |
7109 | ||
7110 | struct foo {}; | |
7111 | ||
7112 | template<typename T> | |
7113 | using member = typename T::member_type; | |
7114 | ||
7115 | template<typename T> | |
7116 | void func(...) {} | |
7117 | ||
7118 | template<typename T> | |
7119 | void func(member<T>*) {} | |
7120 | ||
7121 | void test(); | |
7122 | ||
7123 | void test() { func<foo>(0); } | |
7124 | ||
7125 | } | |
7126 | ||
7127 | } // namespace cxx11 | |
7128 | ||
7129 | #endif // __cplusplus >= 201103L | |
7130 | ||
7131 | ||
7132 | ||
7133 | _ACEOF | |
7134 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7135 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7136 | else | |
7137 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7138 | fi | |
7139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7140 | fi | |
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7142 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7143 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7144 | ac_success=yes | |
7145 | fi | |
7146 | ||
7147 | if test x$ac_success = xno; then | |
7148 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7149 | switch="-std=gnu++${alternative}" | |
7150 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7152 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7153 | if eval \${$cachevar+:} false; then : | |
7154 | $as_echo_n "(cached) " >&6 | |
7155 | else | |
7156 | ac_save_CXX="$CXX" | |
7157 | CXX="$CXX $switch" | |
7158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7159 | /* end confdefs.h. */ | |
7160 | ||
7161 | ||
7162 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7163 | // Hopefully, this will speed up the test. | |
7164 | ||
7165 | #ifndef __cplusplus | |
7166 | ||
7167 | #error "This is not a C++ compiler" | |
7168 | ||
7169 | #elif __cplusplus < 201103L | |
7170 | ||
7171 | #error "This is not a C++11 compiler" | |
7172 | ||
7173 | #else | |
7174 | ||
7175 | namespace cxx11 | |
7176 | { | |
7177 | ||
7178 | namespace test_static_assert | |
7179 | { | |
7180 | ||
7181 | template <typename T> | |
7182 | struct check | |
7183 | { | |
7184 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7185 | }; | |
7186 | ||
7187 | } | |
7188 | ||
7189 | namespace test_final_override | |
7190 | { | |
7191 | ||
7192 | struct Base | |
7193 | { | |
7194 | virtual ~Base() {} | |
7195 | virtual void f() {} | |
7196 | }; | |
7197 | ||
7198 | struct Derived : public Base | |
7199 | { | |
7200 | virtual ~Derived() override {} | |
7201 | virtual void f() override {} | |
7202 | }; | |
7203 | ||
7204 | } | |
7205 | ||
7206 | namespace test_double_right_angle_brackets | |
7207 | { | |
7208 | ||
7209 | template < typename T > | |
7210 | struct check {}; | |
7211 | ||
7212 | typedef check<void> single_type; | |
7213 | typedef check<check<void>> double_type; | |
7214 | typedef check<check<check<void>>> triple_type; | |
7215 | typedef check<check<check<check<void>>>> quadruple_type; | |
7216 | ||
7217 | } | |
7218 | ||
7219 | namespace test_decltype | |
7220 | { | |
7221 | ||
7222 | int | |
7223 | f() | |
7224 | { | |
7225 | int a = 1; | |
7226 | decltype(a) b = 2; | |
7227 | return a + b; | |
7228 | } | |
7229 | ||
7230 | } | |
7231 | ||
7232 | namespace test_type_deduction | |
7233 | { | |
7234 | ||
7235 | template < typename T1, typename T2 > | |
7236 | struct is_same | |
7237 | { | |
7238 | static const bool value = false; | |
7239 | }; | |
7240 | ||
7241 | template < typename T > | |
7242 | struct is_same<T, T> | |
7243 | { | |
7244 | static const bool value = true; | |
7245 | }; | |
7246 | ||
7247 | template < typename T1, typename T2 > | |
7248 | auto | |
7249 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7250 | { | |
7251 | return a1 + a2; | |
7252 | } | |
7253 | ||
7254 | int | |
7255 | test(const int c, volatile int v) | |
7256 | { | |
7257 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7258 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7259 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7260 | auto ac = c; | |
7261 | auto av = v; | |
7262 | auto sumi = ac + av + 'x'; | |
7263 | auto sumf = ac + av + 1.0; | |
7264 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7265 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7266 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7267 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7268 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7269 | return (sumf > 0.0) ? sumi : add(c, v); | |
7270 | } | |
7271 | ||
7272 | } | |
7273 | ||
7274 | namespace test_noexcept | |
7275 | { | |
7276 | ||
7277 | int f() { return 0; } | |
7278 | int g() noexcept { return 0; } | |
7279 | ||
7280 | static_assert(noexcept(f()) == false, ""); | |
7281 | static_assert(noexcept(g()) == true, ""); | |
7282 | ||
7283 | } | |
7284 | ||
7285 | namespace test_constexpr | |
7286 | { | |
7287 | ||
7288 | template < typename CharT > | |
7289 | unsigned long constexpr | |
7290 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7291 | { | |
7292 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7293 | } | |
7294 | ||
7295 | template < typename CharT > | |
7296 | unsigned long constexpr | |
7297 | strlen_c(const CharT *const s) noexcept | |
7298 | { | |
7299 | return strlen_c_r(s, 0UL); | |
7300 | } | |
7301 | ||
7302 | static_assert(strlen_c("") == 0UL, ""); | |
7303 | static_assert(strlen_c("1") == 1UL, ""); | |
7304 | static_assert(strlen_c("example") == 7UL, ""); | |
7305 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7306 | ||
7307 | } | |
7308 | ||
7309 | namespace test_rvalue_references | |
7310 | { | |
7311 | ||
7312 | template < int N > | |
7313 | struct answer | |
7314 | { | |
7315 | static constexpr int value = N; | |
7316 | }; | |
7317 | ||
7318 | answer<1> f(int&) { return answer<1>(); } | |
7319 | answer<2> f(const int&) { return answer<2>(); } | |
7320 | answer<3> f(int&&) { return answer<3>(); } | |
7321 | ||
7322 | void | |
7323 | test() | |
7324 | { | |
7325 | int i = 0; | |
7326 | const int c = 0; | |
7327 | static_assert(decltype(f(i))::value == 1, ""); | |
7328 | static_assert(decltype(f(c))::value == 2, ""); | |
7329 | static_assert(decltype(f(0))::value == 3, ""); | |
7330 | } | |
7331 | ||
7332 | } | |
7333 | ||
7334 | namespace test_uniform_initialization | |
7335 | { | |
7336 | ||
7337 | struct test | |
7338 | { | |
7339 | static const int zero {}; | |
7340 | static const int one {1}; | |
7341 | }; | |
7342 | ||
7343 | static_assert(test::zero == 0, ""); | |
7344 | static_assert(test::one == 1, ""); | |
7345 | ||
7346 | } | |
7347 | ||
7348 | namespace test_lambdas | |
7349 | { | |
7350 | ||
7351 | void | |
7352 | test1() | |
7353 | { | |
7354 | auto lambda1 = [](){}; | |
7355 | auto lambda2 = lambda1; | |
7356 | lambda1(); | |
7357 | lambda2(); | |
7358 | } | |
7359 | ||
7360 | int | |
7361 | test2() | |
7362 | { | |
7363 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7364 | auto b = []() -> int { return '0'; }(); | |
7365 | auto c = [=](){ return a + b; }(); | |
7366 | auto d = [&](){ return c; }(); | |
7367 | auto e = [a, &b](int x) mutable { | |
7368 | const auto identity = [](int y){ return y; }; | |
7369 | for (auto i = 0; i < a; ++i) | |
7370 | a += b--; | |
7371 | return x + identity(a + b); | |
7372 | }(0); | |
7373 | return a + b + c + d + e; | |
7374 | } | |
7375 | ||
7376 | int | |
7377 | test3() | |
7378 | { | |
7379 | const auto nullary = [](){ return 0; }; | |
7380 | const auto unary = [](int x){ return x; }; | |
7381 | using nullary_t = decltype(nullary); | |
7382 | using unary_t = decltype(unary); | |
7383 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7384 | const auto higher2nd = [unary](nullary_t f1){ | |
7385 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7386 | }; | |
7387 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7388 | } | |
7389 | ||
7390 | } | |
7391 | ||
7392 | namespace test_variadic_templates | |
7393 | { | |
7394 | ||
7395 | template <int...> | |
7396 | struct sum; | |
7397 | ||
7398 | template <int N0, int... N1toN> | |
7399 | struct sum<N0, N1toN...> | |
7400 | { | |
7401 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7402 | }; | |
7403 | ||
7404 | template <> | |
7405 | struct sum<> | |
7406 | { | |
7407 | static constexpr auto value = 0; | |
7408 | }; | |
7409 | ||
7410 | static_assert(sum<>::value == 0, ""); | |
7411 | static_assert(sum<1>::value == 1, ""); | |
7412 | static_assert(sum<23>::value == 23, ""); | |
7413 | static_assert(sum<1, 2>::value == 3, ""); | |
7414 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7415 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7416 | ||
7417 | } | |
7418 | ||
7419 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7420 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7421 | // because of this. | |
7422 | namespace test_template_alias_sfinae | |
7423 | { | |
7424 | ||
7425 | struct foo {}; | |
7426 | ||
7427 | template<typename T> | |
7428 | using member = typename T::member_type; | |
7429 | ||
7430 | template<typename T> | |
7431 | void func(...) {} | |
7432 | ||
7433 | template<typename T> | |
7434 | void func(member<T>*) {} | |
7435 | ||
7436 | void test(); | |
7437 | ||
7438 | void test() { func<foo>(0); } | |
7439 | ||
7440 | } | |
7441 | ||
7442 | } // namespace cxx11 | |
7443 | ||
7444 | #endif // __cplusplus >= 201103L | |
7445 | ||
7446 | ||
7447 | ||
7448 | _ACEOF | |
7449 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7450 | eval $cachevar=yes | |
7451 | else | |
7452 | eval $cachevar=no | |
7453 | fi | |
7454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7455 | CXX="$ac_save_CXX" | |
7456 | fi | |
7457 | eval ac_res=\$$cachevar | |
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7459 | $as_echo "$ac_res" >&6; } | |
7460 | if eval test x\$$cachevar = xyes; then | |
7461 | CXX="$CXX $switch" | |
7462 | if test -n "$CXXCPP" ; then | |
7463 | CXXCPP="$CXXCPP $switch" | |
7464 | fi | |
7465 | ac_success=yes | |
7466 | break | |
7467 | fi | |
7468 | done | |
7469 | fi | |
7470 | ||
7471 | if test x$ac_success = xno; then | |
7472 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7473 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7474 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7476 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7477 | if eval \${$cachevar+:} false; then : | |
7478 | $as_echo_n "(cached) " >&6 | |
7479 | else | |
7480 | ac_save_CXX="$CXX" | |
7481 | CXX="$CXX $switch" | |
7482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7483 | /* end confdefs.h. */ | |
7484 | ||
7485 | ||
7486 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7487 | // Hopefully, this will speed up the test. | |
7488 | ||
7489 | #ifndef __cplusplus | |
7490 | ||
7491 | #error "This is not a C++ compiler" | |
7492 | ||
7493 | #elif __cplusplus < 201103L | |
7494 | ||
7495 | #error "This is not a C++11 compiler" | |
7496 | ||
7497 | #else | |
7498 | ||
7499 | namespace cxx11 | |
7500 | { | |
7501 | ||
7502 | namespace test_static_assert | |
7503 | { | |
7504 | ||
7505 | template <typename T> | |
7506 | struct check | |
7507 | { | |
7508 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7509 | }; | |
7510 | ||
7511 | } | |
7512 | ||
7513 | namespace test_final_override | |
7514 | { | |
7515 | ||
7516 | struct Base | |
7517 | { | |
7518 | virtual ~Base() {} | |
7519 | virtual void f() {} | |
7520 | }; | |
7521 | ||
7522 | struct Derived : public Base | |
7523 | { | |
7524 | virtual ~Derived() override {} | |
7525 | virtual void f() override {} | |
7526 | }; | |
7527 | ||
7528 | } | |
7529 | ||
7530 | namespace test_double_right_angle_brackets | |
7531 | { | |
7532 | ||
7533 | template < typename T > | |
7534 | struct check {}; | |
7535 | ||
7536 | typedef check<void> single_type; | |
7537 | typedef check<check<void>> double_type; | |
7538 | typedef check<check<check<void>>> triple_type; | |
7539 | typedef check<check<check<check<void>>>> quadruple_type; | |
7540 | ||
7541 | } | |
7542 | ||
7543 | namespace test_decltype | |
7544 | { | |
7545 | ||
7546 | int | |
7547 | f() | |
7548 | { | |
7549 | int a = 1; | |
7550 | decltype(a) b = 2; | |
7551 | return a + b; | |
7552 | } | |
7553 | ||
7554 | } | |
7555 | ||
7556 | namespace test_type_deduction | |
7557 | { | |
7558 | ||
7559 | template < typename T1, typename T2 > | |
7560 | struct is_same | |
7561 | { | |
7562 | static const bool value = false; | |
7563 | }; | |
7564 | ||
7565 | template < typename T > | |
7566 | struct is_same<T, T> | |
7567 | { | |
7568 | static const bool value = true; | |
7569 | }; | |
7570 | ||
7571 | template < typename T1, typename T2 > | |
7572 | auto | |
7573 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7574 | { | |
7575 | return a1 + a2; | |
7576 | } | |
7577 | ||
7578 | int | |
7579 | test(const int c, volatile int v) | |
7580 | { | |
7581 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7582 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7583 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7584 | auto ac = c; | |
7585 | auto av = v; | |
7586 | auto sumi = ac + av + 'x'; | |
7587 | auto sumf = ac + av + 1.0; | |
7588 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7589 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7590 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7591 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7592 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7593 | return (sumf > 0.0) ? sumi : add(c, v); | |
7594 | } | |
7595 | ||
7596 | } | |
7597 | ||
7598 | namespace test_noexcept | |
7599 | { | |
7600 | ||
7601 | int f() { return 0; } | |
7602 | int g() noexcept { return 0; } | |
7603 | ||
7604 | static_assert(noexcept(f()) == false, ""); | |
7605 | static_assert(noexcept(g()) == true, ""); | |
7606 | ||
7607 | } | |
7608 | ||
7609 | namespace test_constexpr | |
7610 | { | |
7611 | ||
7612 | template < typename CharT > | |
7613 | unsigned long constexpr | |
7614 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7615 | { | |
7616 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7617 | } | |
7618 | ||
7619 | template < typename CharT > | |
7620 | unsigned long constexpr | |
7621 | strlen_c(const CharT *const s) noexcept | |
7622 | { | |
7623 | return strlen_c_r(s, 0UL); | |
7624 | } | |
7625 | ||
7626 | static_assert(strlen_c("") == 0UL, ""); | |
7627 | static_assert(strlen_c("1") == 1UL, ""); | |
7628 | static_assert(strlen_c("example") == 7UL, ""); | |
7629 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7630 | ||
7631 | } | |
7632 | ||
7633 | namespace test_rvalue_references | |
7634 | { | |
7635 | ||
7636 | template < int N > | |
7637 | struct answer | |
7638 | { | |
7639 | static constexpr int value = N; | |
7640 | }; | |
7641 | ||
7642 | answer<1> f(int&) { return answer<1>(); } | |
7643 | answer<2> f(const int&) { return answer<2>(); } | |
7644 | answer<3> f(int&&) { return answer<3>(); } | |
7645 | ||
7646 | void | |
7647 | test() | |
7648 | { | |
7649 | int i = 0; | |
7650 | const int c = 0; | |
7651 | static_assert(decltype(f(i))::value == 1, ""); | |
7652 | static_assert(decltype(f(c))::value == 2, ""); | |
7653 | static_assert(decltype(f(0))::value == 3, ""); | |
7654 | } | |
7655 | ||
7656 | } | |
7657 | ||
7658 | namespace test_uniform_initialization | |
7659 | { | |
7660 | ||
7661 | struct test | |
7662 | { | |
7663 | static const int zero {}; | |
7664 | static const int one {1}; | |
7665 | }; | |
7666 | ||
7667 | static_assert(test::zero == 0, ""); | |
7668 | static_assert(test::one == 1, ""); | |
7669 | ||
7670 | } | |
7671 | ||
7672 | namespace test_lambdas | |
7673 | { | |
7674 | ||
7675 | void | |
7676 | test1() | |
7677 | { | |
7678 | auto lambda1 = [](){}; | |
7679 | auto lambda2 = lambda1; | |
7680 | lambda1(); | |
7681 | lambda2(); | |
7682 | } | |
7683 | ||
7684 | int | |
7685 | test2() | |
7686 | { | |
7687 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7688 | auto b = []() -> int { return '0'; }(); | |
7689 | auto c = [=](){ return a + b; }(); | |
7690 | auto d = [&](){ return c; }(); | |
7691 | auto e = [a, &b](int x) mutable { | |
7692 | const auto identity = [](int y){ return y; }; | |
7693 | for (auto i = 0; i < a; ++i) | |
7694 | a += b--; | |
7695 | return x + identity(a + b); | |
7696 | }(0); | |
7697 | return a + b + c + d + e; | |
7698 | } | |
7699 | ||
7700 | int | |
7701 | test3() | |
7702 | { | |
7703 | const auto nullary = [](){ return 0; }; | |
7704 | const auto unary = [](int x){ return x; }; | |
7705 | using nullary_t = decltype(nullary); | |
7706 | using unary_t = decltype(unary); | |
7707 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7708 | const auto higher2nd = [unary](nullary_t f1){ | |
7709 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7710 | }; | |
7711 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7712 | } | |
7713 | ||
7714 | } | |
7715 | ||
7716 | namespace test_variadic_templates | |
7717 | { | |
7718 | ||
7719 | template <int...> | |
7720 | struct sum; | |
7721 | ||
7722 | template <int N0, int... N1toN> | |
7723 | struct sum<N0, N1toN...> | |
7724 | { | |
7725 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7726 | }; | |
7727 | ||
7728 | template <> | |
7729 | struct sum<> | |
7730 | { | |
7731 | static constexpr auto value = 0; | |
7732 | }; | |
7733 | ||
7734 | static_assert(sum<>::value == 0, ""); | |
7735 | static_assert(sum<1>::value == 1, ""); | |
7736 | static_assert(sum<23>::value == 23, ""); | |
7737 | static_assert(sum<1, 2>::value == 3, ""); | |
7738 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7739 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7740 | ||
7741 | } | |
7742 | ||
7743 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7744 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7745 | // because of this. | |
7746 | namespace test_template_alias_sfinae | |
7747 | { | |
7748 | ||
7749 | struct foo {}; | |
7750 | ||
7751 | template<typename T> | |
7752 | using member = typename T::member_type; | |
7753 | ||
7754 | template<typename T> | |
7755 | void func(...) {} | |
7756 | ||
7757 | template<typename T> | |
7758 | void func(member<T>*) {} | |
7759 | ||
7760 | void test(); | |
7761 | ||
7762 | void test() { func<foo>(0); } | |
7763 | ||
7764 | } | |
7765 | ||
7766 | } // namespace cxx11 | |
7767 | ||
7768 | #endif // __cplusplus >= 201103L | |
7769 | ||
7770 | ||
7771 | ||
7772 | _ACEOF | |
7773 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7774 | eval $cachevar=yes | |
7775 | else | |
7776 | eval $cachevar=no | |
7777 | fi | |
7778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7779 | CXX="$ac_save_CXX" | |
7780 | fi | |
7781 | eval ac_res=\$$cachevar | |
7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7783 | $as_echo "$ac_res" >&6; } | |
7784 | if eval test x\$$cachevar = xyes; then | |
7785 | CXX="$CXX $switch" | |
7786 | if test -n "$CXXCPP" ; then | |
7787 | CXXCPP="$CXXCPP $switch" | |
7788 | fi | |
7789 | ac_success=yes | |
7790 | break | |
7791 | fi | |
7792 | done | |
7793 | if test x$ac_success = xyes; then | |
7794 | break | |
7795 | fi | |
7796 | done | |
7797 | fi | |
7798 | CXX_FOR_BUILD="$CXX" | |
7799 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7800 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7801 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7802 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7803 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7804 | ac_ext=c | |
7805 | ac_cpp='$CPP $CPPFLAGS' | |
7806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7809 | ||
7810 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7811 | if test x$ac_success = xno; then | |
7812 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7813 | fi | |
7814 | fi | |
7815 | if test x$ac_success = xno; then | |
7816 | HAVE_CXX11_FOR_BUILD=0 | |
7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7818 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7819 | else | |
7820 | HAVE_CXX11_FOR_BUILD=1 | |
7821 | ||
7822 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7823 | ||
7824 | fi | |
7825 | ||
7826 | ||
7827 | fi | |
46070488 JM |
7828 | fi |
7829 | ||
4a5e71f2 L |
7830 | # Check whether --enable-pgo-build was given. |
7831 | if test "${enable_pgo_build+set}" = set; then : | |
7832 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7833 | else | |
7834 | enable_pgo_build=no | |
7835 | fi | |
7836 | ||
7837 | ||
7838 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7839 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7840 | *:*:*:no) ;; | |
7841 | ||
7842 | # Allow the PGO build only if we aren't building a compiler and | |
7843 | # we are in a native configuration. | |
7844 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7845 | ||
7846 | # Disallow the PGO bootstrap if we are building a compiler. | |
7847 | yes:*:*:yes | yes:*:*:lto) | |
7848 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7849 | ||
7850 | *) | |
7851 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7852 | ;; | |
7853 | esac | |
7854 | ||
7855 | if test "$enable_pgo_build" != "no"; then | |
7856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7857 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7858 | old_CFLAGS="$CFLAGS" | |
7859 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7860 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7861 | ||
7862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7863 | /* end confdefs.h. */ | |
7864 | int foo; | |
7865 | _ACEOF | |
7866 | if ac_fn_c_try_compile "$LINENO"; then : | |
7867 | ||
7868 | else | |
7869 | PGO_BUILD_GEN_CFLAGS= | |
7870 | fi | |
7871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7872 | CFLAGS="$old_CFLAGS" | |
7873 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7875 | $as_echo "yes" >&6; } | |
7876 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7877 | else | |
7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7879 | $as_echo "no" >&6; } | |
7880 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7881 | fi | |
7882 | ||
7883 | if test "$enable_pgo_build" = "lto"; then | |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7885 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7886 | old_CFLAGS="$CFLAGS" | |
7887 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7888 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7890 | /* end confdefs.h. */ | |
7891 | int foo; | |
7892 | _ACEOF | |
7893 | if ac_fn_c_try_compile "$LINENO"; then : | |
7894 | ||
7895 | else | |
7896 | PGO_BUILD_LTO_CFLAGS= | |
7897 | fi | |
7898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7899 | CFLAGS="$old_CFLAGS" | |
7900 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7902 | $as_echo "yes" >&6; } | |
7903 | else | |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7905 | $as_echo "no" >&6; } | |
7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7907 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7908 | fi | |
7909 | fi | |
7910 | fi | |
7911 | ||
7912 | ||
7913 | ||
7914 | ||
592c90ff KG |
7915 | # Used for setting $lt_cv_objdir |
7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7917 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7918 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7919 | $as_echo_n "(cached) " >&6 |
7920 | else | |
7921 | rm -f .libs 2>/dev/null | |
7922 | mkdir .libs 2>/dev/null | |
7923 | if test -d .libs; then | |
7924 | lt_cv_objdir=.libs | |
7925 | else | |
7926 | # MS-DOS does not allow filenames that begin with a dot. | |
7927 | lt_cv_objdir=_libs | |
7928 | fi | |
7929 | rmdir .libs 2>/dev/null | |
7930 | fi | |
7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7932 | $as_echo "$lt_cv_objdir" >&6; } | |
7933 | objdir=$lt_cv_objdir | |
7934 | ||
7935 | ||
7936 | ||
7937 | ||
7938 | ||
7939 | cat >>confdefs.h <<_ACEOF | |
7940 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7941 | _ACEOF | |
7942 | ||
7943 | ||
7944 | ||
acd26225 | 7945 | # Check for GMP, MPFR and MPC |
3a5729ea | 7946 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 7947 | gmpinc= |
e69bf64b | 7948 | have_gmp=no |
acd26225 KG |
7949 | |
7950 | # Specify a location for mpc | |
7951 | # check for this first so it ends up on the link line before mpfr. | |
7952 | ||
5213506e RW |
7953 | # Check whether --with-mpc was given. |
7954 | if test "${with_mpc+set}" = set; then : | |
7955 | withval=$with_mpc; | |
7956 | fi | |
acd26225 | 7957 | |
acd26225 | 7958 | |
9965e3cd | 7959 | # Check whether --with-mpc-include was given. |
5213506e RW |
7960 | if test "${with_mpc_include+set}" = set; then : |
7961 | withval=$with_mpc_include; | |
7962 | fi | |
acd26225 | 7963 | |
acd26225 | 7964 | |
9965e3cd | 7965 | # Check whether --with-mpc-lib was given. |
5213506e RW |
7966 | if test "${with_mpc_lib+set}" = set; then : |
7967 | withval=$with_mpc_lib; | |
7968 | fi | |
acd26225 | 7969 | |
acd26225 KG |
7970 | |
7971 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
7972 | gmplibs="-L$with_mpc/lib $gmplibs" |
7973 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
7974 | fi |
7975 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 7976 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
7977 | fi |
7978 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 7979 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
7980 | fi |
7981 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 7982 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 7983 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
7984 | # Do not test the mpc version. Assume that it is sufficient, since |
7985 | # it is in the source tree, and the library has not been built yet | |
7986 | # but it would be included on the link line in the version check below | |
7987 | # hence making the test fail. | |
3a5729ea | 7988 | have_gmp=yes |
acd26225 | 7989 | fi |
e69bf64b | 7990 | |
bebf829d PB |
7991 | # Specify a location for mpfr |
7992 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 7993 | |
5213506e RW |
7994 | # Check whether --with-mpfr was given. |
7995 | if test "${with_mpfr+set}" = set; then : | |
7996 | withval=$with_mpfr; | |
7997 | fi | |
1c710c3c | 7998 | |
bebf829d | 7999 | |
9965e3cd | 8000 | # Check whether --with-mpfr-include was given. |
5213506e RW |
8001 | if test "${with_mpfr_include+set}" = set; then : |
8002 | withval=$with_mpfr_include; | |
8003 | fi | |
1c710c3c | 8004 | |
8a877c9c | 8005 | |
9965e3cd | 8006 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
8007 | if test "${with_mpfr_lib+set}" = set; then : |
8008 | withval=$with_mpfr_lib; | |
8009 | fi | |
8a877c9c | 8010 | |
bebf829d PB |
8011 | |
8012 | if test "x$with_mpfr" != x; then | |
8013 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 8014 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 8015 | fi |
8a877c9c | 8016 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 8017 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
8018 | fi |
8019 | if test "x$with_mpfr_lib" != x; then | |
8020 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
8021 | fi | |
e69bf64b | 8022 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
8023 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
8024 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 8025 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 8026 | fi |
00f35794 BE |
8027 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
8028 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
8029 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
8030 | # Do not test the mpfr version. Assume that it is sufficient, since |
8031 | # it is in the source tree, and the library has not been built yet | |
8032 | # but it would be included on the link line in the version check below | |
8033 | # hence making the test fail. | |
8034 | have_gmp=yes | |
8035 | fi | |
bebf829d | 8036 | |
6de9cd9a | 8037 | # Specify a location for gmp |
1c710c3c | 8038 | |
5213506e RW |
8039 | # Check whether --with-gmp was given. |
8040 | if test "${with_gmp+set}" = set; then : | |
8041 | withval=$with_gmp; | |
8042 | fi | |
1c710c3c | 8043 | |
6de9cd9a | 8044 | |
9965e3cd | 8045 | # Check whether --with-gmp-include was given. |
5213506e RW |
8046 | if test "${with_gmp_include+set}" = set; then : |
8047 | withval=$with_gmp_include; | |
8048 | fi | |
1c710c3c | 8049 | |
8a877c9c | 8050 | |
9965e3cd | 8051 | # Check whether --with-gmp-lib was given. |
5213506e RW |
8052 | if test "${with_gmp_lib+set}" = set; then : |
8053 | withval=$with_gmp_lib; | |
8054 | fi | |
8a877c9c KG |
8055 | |
8056 | ||
6de9cd9a | 8057 | |
bebf829d PB |
8058 | if test "x$with_gmp" != x; then |
8059 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8060 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 8061 | fi |
8a877c9c KG |
8062 | if test "x$with_gmp_include" != x; then |
8063 | gmpinc="-I$with_gmp_include $gmpinc" | |
8064 | fi | |
8065 | if test "x$with_gmp_lib" != x; then | |
8066 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8067 | fi | |
e69bf64b | 8068 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 8069 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 8070 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 8071 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 8072 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 8073 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
8074 | # Do not test the gmp version. Assume that it is sufficient, since |
8075 | # it is in the source tree, and the library has not been built yet | |
8076 | # but it would be included on the link line in the version check below | |
8077 | # hence making the test fail. | |
8078 | have_gmp=yes | |
8079 | fi | |
6de9cd9a | 8080 | |
d943d7c4 | 8081 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
8082 | have_gmp=yes |
8083 | saved_CFLAGS="$CFLAGS" | |
8084 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
8085 | # Check for the recommended and required versions of GMP. |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8087 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4a5e71f2 | 8088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
362c6d2f KG |
8089 | /* end confdefs.h. */ |
8090 | #include "gmp.h" | |
8091 | int | |
8092 | main () | |
8093 | { | |
8094 | ||
8095 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8096 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 8097 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
8098 | choke me |
8099 | #endif | |
8100 | ||
8101 | ; | |
8102 | return 0; | |
8103 | } | |
8104 | _ACEOF | |
8105 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 8106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8107 | /* end confdefs.h. */ |
362c6d2f | 8108 | #include <gmp.h> |
1c710c3c DJ |
8109 | int |
8110 | main () | |
8111 | { | |
6de9cd9a | 8112 | |
362c6d2f KG |
8113 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8114 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8115 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
8116 | choke me |
8117 | #endif | |
1c710c3c DJ |
8118 | |
8119 | ; | |
8120 | return 0; | |
8121 | } | |
8122 | _ACEOF | |
5213506e RW |
8123 | if ac_fn_c_try_compile "$LINENO"; then : |
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8125 | $as_echo "yes" >&6; } | |
362c6d2f KG |
8126 | else |
8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8128 | $as_echo "buggy but acceptable" >&6; } | |
8129 | fi | |
8130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 8131 | else |
5213506e RW |
8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8133 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8134 | fi |
5213506e | 8135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 8136 | |
acd26225 | 8137 | # If we have GMP, check the MPFR version. |
e69bf64b | 8138 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
8139 | # Check for the recommended and required versions of MPFR. |
8140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8141 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 8142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8143 | /* end confdefs.h. */ |
70ec446f | 8144 | #include <gmp.h> |
e69bf64b | 8145 | #include <mpfr.h> |
1c710c3c DJ |
8146 | int |
8147 | main () | |
8148 | { | |
e48d66a9 | 8149 | |
8be34204 | 8150 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
8151 | choke me |
8152 | #endif | |
1c710c3c DJ |
8153 | |
8154 | ; | |
8155 | return 0; | |
8156 | } | |
8157 | _ACEOF | |
5213506e RW |
8158 | if ac_fn_c_try_compile "$LINENO"; then : |
8159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 8160 | /* end confdefs.h. */ |
a3993f33 | 8161 | #include <gmp.h> |
e69bf64b | 8162 | #include <mpfr.h> |
1c710c3c DJ |
8163 | int |
8164 | main () | |
8165 | { | |
a3993f33 | 8166 | |
8be34204 | 8167 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
8168 | choke me |
8169 | #endif | |
acd26225 KG |
8170 | |
8171 | ; | |
8172 | return 0; | |
8173 | } | |
8174 | _ACEOF | |
5213506e RW |
8175 | if ac_fn_c_try_compile "$LINENO"; then : |
8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8177 | $as_echo "yes" >&6; } | |
acd26225 | 8178 | else |
5213506e RW |
8179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8180 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 8181 | fi |
5213506e | 8182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 8183 | else |
5213506e RW |
8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8185 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 8186 | fi |
5213506e | 8187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8188 | fi |
8189 | ||
8190 | # Check for the MPC header version. | |
3a5729ea | 8191 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 8192 | # Check for the recommended and required versions of MPC. |
5213506e RW |
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8194 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
8196 | /* end confdefs.h. */ |
8197 | #include <mpc.h> | |
8198 | int | |
8199 | main () | |
8200 | { | |
8201 | ||
362c6d2f KG |
8202 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8203 | choke me | |
8204 | #endif | |
8205 | ||
8206 | ; | |
8207 | return 0; | |
8208 | } | |
8209 | _ACEOF | |
8210 | if ac_fn_c_try_compile "$LINENO"; then : | |
8211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8212 | /* end confdefs.h. */ | |
8213 | #include <mpc.h> | |
8214 | int | |
8215 | main () | |
8216 | { | |
8217 | ||
8218 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
8219 | choke me |
8220 | #endif | |
8221 | ||
8222 | ; | |
8223 | return 0; | |
8224 | } | |
8225 | _ACEOF | |
5213506e RW |
8226 | if ac_fn_c_try_compile "$LINENO"; then : |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 8228 | $as_echo "yes" >&6; } |
362c6d2f KG |
8229 | else |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8231 | $as_echo "buggy but acceptable" >&6; } | |
8232 | fi | |
8233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 8234 | else |
5213506e | 8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 8236 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 8237 | fi |
5213506e | 8238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8239 | fi |
8240 | ||
8241 | # Now check the MPFR library. | |
8242 | if test x"$have_gmp" = xyes; then | |
8243 | saved_LIBS="$LIBS" | |
8244 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
8246 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 8247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 8248 | /* end confdefs.h. */ |
3a5729ea | 8249 | #include <mpc.h> |
acd26225 KG |
8250 | int |
8251 | main () | |
8252 | { | |
8253 | ||
8254 | mpfr_t n; | |
8255 | mpfr_t x; | |
3a5729ea | 8256 | mpc_t c; |
acd26225 KG |
8257 | int t; |
8258 | mpfr_init (n); | |
8259 | mpfr_init (x); | |
90ca6847 TB |
8260 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8261 | mpfr_erfc (n, x, MPFR_RNDN); | |
8262 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
8263 | mpfr_clear(n); |
8264 | mpfr_clear(x); | |
8265 | mpc_init2 (c, 53); | |
8266 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8267 | mpc_cosh (c, c, MPC_RNDNN); | |
8268 | mpc_pow (c, c, c, MPC_RNDNN); | |
8269 | mpc_acosh (c, c, MPC_RNDNN); | |
8270 | mpc_clear (c); | |
1c710c3c DJ |
8271 | |
8272 | ; | |
8273 | return 0; | |
8274 | } | |
8275 | _ACEOF | |
5213506e RW |
8276 | if ac_fn_c_try_link "$LINENO"; then : |
8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8278 | $as_echo "yes" >&6; } | |
1c710c3c | 8279 | else |
5213506e RW |
8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8281 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8282 | fi |
5213506e RW |
8283 | rm -f core conftest.err conftest.$ac_objext \ |
8284 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
8285 | LIBS="$saved_LIBS" |
8286 | fi | |
8287 | ||
e69bf64b | 8288 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 8289 | |
362c6d2f KG |
8290 | # The library versions listed in the error message below should match |
8291 | # the HARD-minimums enforced above. | |
e69bf64b | 8292 | if test x$have_gmp != xyes; then |
8be34204 | 8293 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
8294 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8295 | their locations. Source code for these libraries can be found at | |
8296 | their respective hosting sites as well as at | |
aeebd94c | 8297 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
3a5729ea KG |
8298 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
8299 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
8300 | make sure that you have installed both the libraries and the header | |
8301 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 8302 | fi |
70ec446f KG |
8303 | fi |
8304 | ||
acd26225 KG |
8305 | # Flags needed for both GMP, MPFR and/or MPC. |
8306 | ||
8307 | ||
6de9cd9a DN |
8308 | |
8309 | ||
8310 | ||
9e3eba15 | 8311 | |
0ff2d841 | 8312 | |
0b21f5d3 | 8313 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 8314 | |
0b21f5d3 EB |
8315 | # Check whether --with-stage1-libs was given. |
8316 | if test "${with_stage1_libs+set}" = set; then : | |
8317 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8318 | stage1_libs= | |
00020c16 | 8319 | else |
0b21f5d3 | 8320 | stage1_libs=$withval |
00020c16 ILT |
8321 | fi |
8322 | else | |
5dc85f7e | 8323 | stage1_libs= |
5213506e RW |
8324 | fi |
8325 | ||
00020c16 ILT |
8326 | |
8327 | ||
aac9103b TT |
8328 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8329 | # default is yes if gcc is being built; no otherwise. The reason for | |
8330 | # this default is that gdb is sometimes linked against GNU Source | |
8331 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8332 | # this case, -static-libstdc++ will cause crashes. | |
8333 | ||
8334 | # Check whether --with-static-standard-libraries was given. | |
8335 | if test "${with_static_standard_libraries+set}" = set; then : | |
8336 | withval=$with_static_standard_libraries; | |
8337 | else | |
8338 | with_static_standard_libraries=auto | |
8339 | fi | |
8340 | ||
8341 | if test "$with_static_standard_libraries" = auto; then | |
8342 | with_static_standard_libraries=$have_compiler | |
8343 | fi | |
8344 | ||
0b21f5d3 | 8345 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 8346 | |
0b21f5d3 EB |
8347 | # Check whether --with-stage1-ldflags was given. |
8348 | if test "${with_stage1_ldflags+set}" = set; then : | |
8349 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8350 | stage1_ldflags= | |
00020c16 | 8351 | else |
0b21f5d3 | 8352 | stage1_ldflags=$withval |
00020c16 ILT |
8353 | fi |
8354 | else | |
0b21f5d3 EB |
8355 | stage1_ldflags= |
8356 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8357 | # if supported. But if the user explicitly specified the libraries to use, | |
8358 | # trust that they are doing what they want. | |
aac9103b TT |
8359 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8360 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8361 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8362 | fi | |
5213506e RW |
8363 | fi |
8364 | ||
00020c16 ILT |
8365 | |
8366 | ||
5dc85f7e | 8367 | # Libraries to use for stage2 and later builds. |
00020c16 | 8368 | |
5213506e RW |
8369 | # Check whether --with-boot-libs was given. |
8370 | if test "${with_boot_libs+set}" = set; then : | |
8371 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8372 | poststage1_libs= |
8373 | else | |
8374 | poststage1_libs=$withval | |
8375 | fi | |
8376 | else | |
5dc85f7e | 8377 | poststage1_libs= |
5213506e RW |
8378 | fi |
8379 | ||
00020c16 ILT |
8380 | |
8381 | ||
ed2eaa9f ILT |
8382 | # Linker flags to use for stage2 and later builds. |
8383 | ||
8384 | # Check whether --with-boot-ldflags was given. | |
8385 | if test "${with_boot_ldflags+set}" = set; then : | |
8386 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8387 | poststage1_ldflags= | |
8388 | else | |
8389 | poststage1_ldflags=$withval | |
8390 | fi | |
8391 | else | |
8392 | poststage1_ldflags= | |
bec93d73 ILT |
8393 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8394 | # statically. But if the user explicitly specified the libraries to | |
8395 | # use, trust that they are doing what they want. | |
8396 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8397 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8398 | fi | |
8399 | fi | |
8400 | ||
8401 | ||
8402 | ||
e357a5e0 | 8403 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8404 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8405 | |
8406 | ||
33ad93b9 RG |
8407 | # Check whether --with-isl was given. |
8408 | if test "${with_isl+set}" = set; then : | |
8409 | withval=$with_isl; | |
5213506e | 8410 | fi |
f8bf9252 | 8411 | |
f8bf9252 | 8412 | |
eae1a5d4 | 8413 | # Treat --without-isl as a request to disable |
625afa23 | 8414 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8415 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8416 | # Check for isl |
625afa23 RG |
8417 | |
8418 | ||
33ad93b9 RG |
8419 | # Check whether --with-isl-include was given. |
8420 | if test "${with_isl_include+set}" = set; then : | |
8421 | withval=$with_isl_include; | |
5213506e RW |
8422 | fi |
8423 | ||
f8bf9252 | 8424 | |
33ad93b9 RG |
8425 | # Check whether --with-isl-lib was given. |
8426 | if test "${with_isl_lib+set}" = set; then : | |
8427 | withval=$with_isl_lib; | |
5213506e | 8428 | fi |
f8bf9252 | 8429 | |
f8bf9252 | 8430 | |
33ad93b9 RG |
8431 | # Check whether --enable-isl-version-check was given. |
8432 | if test "${enable_isl_version_check+set}" = set; then : | |
8433 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8434 | else | |
8435 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8436 | fi |
8437 | ||
8438 | ||
33ad93b9 RG |
8439 | # Initialize isllibs and islinc. |
8440 | case $with_isl in | |
8441 | no) | |
8442 | isllibs= | |
8443 | islinc= | |
8444 | ;; | |
8445 | "" | yes) | |
8446 | ;; | |
8447 | *) | |
8448 | isllibs="-L$with_isl/lib" | |
8449 | islinc="-I$with_isl/include" | |
8450 | ;; | |
8451 | esac | |
8452 | if test "x${with_isl_include}" != x ; then | |
8453 | islinc="-I$with_isl_include" | |
8454 | fi | |
8455 | if test "x${with_isl_lib}" != x; then | |
8456 | isllibs="-L$with_isl_lib" | |
8457 | fi | |
8458 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8459 | && test -d ${srcdir}/isl; then | |
8460 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8461 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8462 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8463 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8464 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8465 | fi |
7d32a440 | 8466 | |
eae1a5d4 RG |
8467 | isllibs="${isllibs} -lisl" |
8468 | ||
7d32a440 | 8469 | |
7d32a440 | 8470 | |
9847828b RB |
8471 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8472 | _isl_saved_CFLAGS=$CFLAGS | |
8473 | _isl_saved_LDFLAGS=$LDFLAGS | |
8474 | _isl_saved_LIBS=$LIBS | |
8475 | ||
8476 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8477 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8478 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8479 | |
f877b3ad RB |
8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8481 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8483 | /* end confdefs.h. */ |
f877b3ad | 8484 | #include <isl/schedule.h> |
622dbadf BC |
8485 | int |
8486 | main () | |
8487 | { | |
f877b3ad | 8488 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8489 | ; |
8490 | return 0; | |
8491 | } | |
8492 | _ACEOF | |
8493 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8494 | gcc_cv_isl=yes |
622dbadf BC |
8495 | else |
8496 | gcc_cv_isl=no | |
8497 | fi | |
8498 | rm -f core conftest.err conftest.$ac_objext \ | |
8499 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8501 | $as_echo "$gcc_cv_isl" >&6; } | |
8502 | ||
560d18d3 | 8503 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8505 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8506 | fi |
8507 | ||
9847828b RB |
8508 | CFLAGS=$_isl_saved_CFLAGS |
8509 | LDFLAGS=$_isl_saved_LDFLAGS | |
8510 | LIBS=$_isl_saved_LIBS | |
8511 | fi | |
8512 | ||
8513 | ||
f8bf9252 | 8514 | |
f8bf9252 | 8515 | |
33ad93b9 RG |
8516 | |
8517 | ||
33ad93b9 RG |
8518 | if test "x${with_isl}" = xno; then |
8519 | graphite_requested=no | |
8520 | elif test "x${with_isl}" != x \ | |
8521 | || test "x${with_isl_include}" != x \ | |
8522 | || test "x${with_isl_lib}" != x ; then | |
8523 | graphite_requested=yes | |
8524 | else | |
8525 | graphite_requested=no | |
7d32a440 | 8526 | fi |
d789184e | 8527 | |
d789184e SP |
8528 | |
8529 | ||
33ad93b9 RG |
8530 | if test "${gcc_cv_isl}" = no ; then |
8531 | isllibs= | |
8532 | islinc= | |
8533 | fi | |
8534 | ||
8535 | if test "${graphite_requested}" = yes \ | |
8536 | && test "x${isllibs}" = x \ | |
8537 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8538 | |
22e05272 | 8539 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8540 | fi |
f8bf9252 | 8541 | |
d32ef397 | 8542 | |
d32ef397 AS |
8543 | fi |
8544 | ||
e357a5e0 | 8545 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8546 | if test "x$with_isl" = xno || |
625afa23 | 8547 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8548 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8549 | islinc= |
32d024bf RG |
8550 | fi |
8551 | ||
625afa23 RG |
8552 | |
8553 | ||
8554 | ||
d7f09764 DN |
8555 | # Check for LTO support. |
8556 | # Check whether --enable-lto was given. | |
8557 | if test "${enable_lto+set}" = set; then : | |
8558 | enableval=$enable_lto; enable_lto=$enableval | |
8559 | else | |
8560 | enable_lto=yes; default_enable_lto=yes | |
8561 | fi | |
8562 | ||
8563 | ||
7413962d | 8564 | |
9a02962b DK |
8565 | |
8566 | ||
8567 | target_elf=no | |
8568 | case $target in | |
8569 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8570 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8571 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8572 | nvptx-*-none) |
9a02962b DK |
8573 | target_elf=no |
8574 | ;; | |
8575 | *) | |
8576 | target_elf=yes | |
8577 | ;; | |
8578 | esac | |
8579 | ||
8580 | if test $target_elf = yes; then : | |
48215350 DK |
8581 | # ELF platforms build the lto-plugin always. |
8582 | build_lto_plugin=yes | |
9a02962b | 8583 | |
9a02962b DK |
8584 | else |
8585 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8586 | case $target in |
deeba76a | 8587 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8588 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8589 | *) enable_lto=no ;; |
8590 | esac | |
9a02962b | 8591 | else |
db50fe7d IS |
8592 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8593 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8594 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8595 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8596 | # -flto it won't be needed until after installation anyway. | |
8597 | case $target in | |
9e530bcd | 8598 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8599 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8600 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8601 | fi |
8602 | ;; | |
8603 | esac | |
8604 | fi | |
1cd0b716 | 8605 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8606 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8607 | case $target in |
48215350 | 8608 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8609 | *) ;; |
8610 | esac | |
48215350 | 8611 | |
9a02962b DK |
8612 | fi |
8613 | ||
d7f09764 | 8614 | |
45b3824d TS |
8615 | # Check whether --enable-linker-plugin-configure-flags was given. |
8616 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8617 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8618 | else | |
8619 | extra_linker_plugin_configure_flags= | |
8620 | fi | |
8621 | ||
8622 | ||
8623 | # Check whether --enable-linker-plugin-flags was given. | |
8624 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8625 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8626 | else | |
8627 | extra_linker_plugin_flags= | |
8628 | fi | |
8629 | ||
8630 | ||
8631 | ||
cdfee50a NS |
8632 | # Enable --enable-host-shared. |
8633 | # Checked early to determine whether jit is an 'all' language | |
8634 | # Check whether --enable-host-shared was given. | |
8635 | if test "${enable_host_shared+set}" = set; then : | |
8636 | enableval=$enable_host_shared; host_shared=$enableval | |
1edfc8f2 | 8637 | case $host in |
a1d2b162 IS |
8638 | x86_64-*-darwin* | aarch64-*-darwin*) |
8639 | if test x$host_shared != xyes ; then | |
8640 | # PIC is the default, and actually cannot be switched off. | |
8641 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8642 | host_shared=yes | |
8643 | fi ;; | |
8644 | *) ;; | |
8645 | esac | |
cdfee50a | 8646 | else |
1edfc8f2 | 8647 | case $host in |
a1d2b162 IS |
8648 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; |
8649 | *) host_shared=no ;; | |
8650 | esac | |
cdfee50a NS |
8651 | fi |
8652 | ||
8653 | ||
f8bf9252 | 8654 | |
0823efed | 8655 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8656 | stage1_languages=,c, |
2805b53a | 8657 | |
00020c16 | 8658 | # Target libraries that we bootstrap. |
ad1e5170 | 8659 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8660 | |
55ffb5ed NN |
8661 | # Figure out what language subdirectories are present. |
8662 | # Look if the user specified --enable-languages="..."; if not, use | |
8663 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8664 | # go away some day. | |
8665 | # NB: embedded tabs in this IF block -- do not untabify | |
8666 | if test -d ${srcdir}/gcc; then | |
8667 | if test x"${enable_languages+set}" != xset; then | |
8668 | if test x"${LANGUAGES+set}" = xset; then | |
8669 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8670 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8671 | else |
cdfee50a | 8672 | enable_languages=default |
55ffb5ed NN |
8673 | fi |
8674 | else | |
8675 | if test x"${enable_languages}" = x || | |
8676 | test x"${enable_languages}" = xyes; | |
8677 | then | |
6b1786aa | 8678 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8679 | exit 1 |
8680 | fi | |
8681 | fi | |
8682 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8683 | ||
7f26dfa3 FXC |
8684 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8685 | # and make the substitution. | |
8686 | case ,${enable_languages}, in | |
8687 | *,f95,*) | |
6b1786aa | 8688 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8689 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8690 | ;; | |
8691 | esac | |
8692 | ||
0823efed DN |
8693 | # If bootstrapping, C++ must be enabled. |
8694 | case ",$enable_languages,:$enable_bootstrap" in | |
8695 | *,c++,*:*) ;; | |
8696 | *:yes) | |
ff3ac0f4 ILT |
8697 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8698 | enable_languages="${enable_languages},c++" | |
8699 | else | |
22e05272 | 8700 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8701 | fi |
8702 | ;; | |
8703 | esac | |
8704 | ||
55ffb5ed NN |
8705 | # First scan to see if an enabled language requires some other language. |
8706 | # We assume that a given config-lang.in will list all the language | |
8707 | # front ends it requires, even if some are required indirectly. | |
8708 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8709 | case ${lang_frag} in | |
8710 | ..) ;; | |
8711 | # The odd quoting in the next line works around | |
8712 | # an apparent bug in bash 1.12 on linux. | |
8713 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8714 | *) | |
69ecd18f ILT |
8715 | # From the config-lang.in, get $language, $lang_requires, and |
8716 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8717 | language= |
8718 | lang_requires= | |
69ecd18f | 8719 | lang_requires_boot_languages= |
d4360477 NS |
8720 | # set srcdir during sourcing lang_frag to the gcc dir. |
8721 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8722 | # polutes this shell | |
8723 | saved_srcdir=${srcdir} | |
8724 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8725 | srcdir=${saved_srcdir} | |
69ecd18f | 8726 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8727 | case ,${enable_languages}, in |
8728 | *,$other,*) ;; | |
cdfee50a | 8729 | *,default,*) ;; |
55ffb5ed NN |
8730 | *,all,*) ;; |
8731 | *,$language,*) | |
8732 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8733 | enable_languages="${enable_languages},${other}" | |
8734 | ;; | |
8735 | esac | |
8736 | done | |
69ecd18f ILT |
8737 | for other in ${lang_requires_boot_languages} ; do |
8738 | if test "$other" != "c"; then | |
8739 | case ,${enable_stage1_languages}, in | |
8740 | *,$other,*) ;; | |
cdfee50a | 8741 | *,default,*) ;; |
69ecd18f ILT |
8742 | *,all,*) ;; |
8743 | *) | |
8744 | case ,${enable_languages}, in | |
8745 | *,$language,*) | |
8746 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8747 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8748 | ;; | |
8749 | esac | |
8750 | ;; | |
8751 | esac | |
8752 | fi | |
8753 | done | |
55ffb5ed NN |
8754 | ;; |
8755 | esac | |
8756 | done | |
8757 | ||
e1888513 | 8758 | new_enable_languages=,c, |
d7f09764 DN |
8759 | |
8760 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8761 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8762 | case ,${enable_languages}, in |
8763 | *,lto,*) ;; | |
8764 | *) enable_languages="${enable_languages},lto" ;; | |
8765 | esac | |
1cd0b716 | 8766 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8767 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8768 | fi |
8769 | fi | |
8770 | ||
426c1eb0 TS |
8771 | # If we're building an offloading compiler, add the LTO front end. |
8772 | if test x"$enable_as_accelerator_for" != x ; then | |
8773 | case ,${enable_languages}, in | |
8774 | *,lto,*) ;; | |
8775 | *) enable_languages="${enable_languages},lto" ;; | |
8776 | esac | |
8777 | fi | |
8778 | ||
cdfee50a | 8779 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8780 | potential_languages=,c, |
55ffb5ed | 8781 | |
4da3b0f8 ILT |
8782 | enabled_target_libs= |
8783 | disabled_target_libs= | |
8784 | ||
55ffb5ed NN |
8785 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8786 | case ${lang_frag} in | |
8787 | ..) ;; | |
8788 | # The odd quoting in the next line works around | |
8789 | # an apparent bug in bash 1.12 on linux. | |
8790 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8791 | *) | |
1c710c3c | 8792 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8793 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8794 | language= |
8795 | target_libs= | |
8796 | lang_dirs= | |
1546bb64 | 8797 | subdir_requires= |
e1888513 PB |
8798 | boot_language=no |
8799 | build_by_default=yes | |
d4360477 NS |
8800 | # set srcdir during sourcing. See above about save & restore |
8801 | saved_srcdir=${srcdir} | |
8802 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8803 | srcdir=${saved_srcdir} | |
e1888513 PB |
8804 | if test x${language} = x; then |
8805 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8806 | exit 1 | |
8807 | fi | |
8808 | ||
78767fd9 | 8809 | if test "$language" = "c++"; then |
0823efed | 8810 | boot_language=yes |
00020c16 ILT |
8811 | fi |
8812 | ||
178f875a | 8813 | add_this_lang=no |
cdfee50a NS |
8814 | # C is always enabled, so no need to add it again |
8815 | if test "$language" != "c"; then | |
8816 | case ,${enable_languages}, in | |
8817 | *,${language},*) | |
8818 | # Language was explicitly selected; include it | |
d4a10d0a | 8819 | add_this_lang=yes |
cdfee50a NS |
8820 | ;; |
8821 | *,all,*) | |
8822 | # All languages are enabled | |
8823 | add_this_lang=all | |
8824 | ;; | |
8825 | *,default,*) | |
8826 | # 'default' was selected, select it if it is a default language | |
178f875a | 8827 | add_this_lang=${build_by_default} |
cdfee50a NS |
8828 | ;; |
8829 | esac | |
8830 | fi | |
6de9cd9a | 8831 | |
1546bb64 | 8832 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 8833 | for i in $subdir_requires; do |
b6348cb3 | 8834 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
8835 | case ${add_this_lang} in |
8836 | yes) | |
1546bb64 | 8837 | # Specifically requested language; tell them. |
22e05272 | 8838 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 8839 | ;; |
cdfee50a NS |
8840 | all) |
8841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8842 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8843 | add_this_lang=unsupported | |
8844 | ;; | |
1546bb64 PB |
8845 | *) |
8846 | # Silently disable. | |
e1888513 | 8847 | add_this_lang=unsupported |
1546bb64 PB |
8848 | ;; |
8849 | esac | |
8850 | done | |
8851 | ||
e1888513 | 8852 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
8853 | case ${add_this_lang}:${language}:${have_gnat} in |
8854 | yes:ada:no) | |
e1888513 | 8855 | # Specifically requested language; tell them. |
22e05272 | 8856 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 8857 | ;; |
cdfee50a NS |
8858 | all:ada:no) |
8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8860 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8861 | add_this_lang=unsupported | |
8862 | ;; | |
e1888513 PB |
8863 | *:ada:no) |
8864 | # Silently disable. | |
8865 | add_this_lang=unsupported | |
8866 | ;; | |
8867 | esac | |
8868 | ||
5fee5ec3 IB |
8869 | # Disable D if no preexisting GDC is available. |
8870 | case ${add_this_lang}:${language}:${have_gdc} in | |
8871 | yes:d:no) | |
8872 | # Specifically requested language; tell them. | |
8873 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
8874 | ;; | |
8875 | all:d:no) | |
8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
8877 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
8878 | add_this_lang=unsupported | |
8879 | ;; | |
8880 | *:d:no) | |
8881 | # Silently disable. | |
8882 | add_this_lang=unsupported | |
8883 | ;; | |
8884 | esac | |
8885 | ||
cdfee50a | 8886 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
8887 | # but not if building for Mingw. All code in Windows |
8888 | # is position independent code (PIC). | |
c83027f3 NB |
8889 | case $target in |
8890 | *mingw*) ;; | |
8891 | *) | |
8892 | case ${add_this_lang}:${language}:${host_shared} in | |
8893 | yes:jit:no) | |
8894 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 8895 | as_fn_error $? " |
cdfee50a NS |
8896 | Enabling language \"jit\" requires --enable-host-shared. |
8897 | ||
8898 | --enable-host-shared typically slows the rest of the compiler down by | |
8899 | a few %, so you must explicitly enable it. | |
8900 | ||
8901 | If you want to build both the jit and the regular compiler, it is often | |
8902 | best to do this via two separate configure/builds, in separate | |
8903 | directories, to avoid imposing the performance cost of | |
8904 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
8905 | ;; |
8906 | all:jit:no) | |
8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 8908 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
8909 | add_this_lang=unsupported |
8910 | ;; | |
8911 | *:jit:no) | |
8912 | # Silently disable. | |
8913 | add_this_lang=unsupported | |
8914 | ;; | |
8915 | esac | |
8916 | ;; | |
8917 | esac | |
cdfee50a NS |
8918 | |
8919 | # Disable a language that is unsupported by the target. | |
8920 | case "${add_this_lang}: $unsupported_languages " in | |
8921 | no:*) ;; | |
8922 | unsupported:*) ;; | |
8923 | *:*" $language "*) | |
8924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
8925 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 8926 | add_this_lang=unsupported |
4fab7234 HPN |
8927 | ;; |
8928 | esac | |
8929 | ||
6de9cd9a | 8930 | case $add_this_lang in |
e1888513 | 8931 | unsupported) |
55ffb5ed | 8932 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
8933 | disabled_target_libs="$disabled_target_libs $target_libs" |
8934 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 8935 | ;; |
e1888513 PB |
8936 | no) |
8937 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
8938 | disabled_target_libs="$disabled_target_libs $target_libs" |
8939 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
8940 | potential_languages="${potential_languages}${language}," |
8941 | ;; | |
cdfee50a | 8942 | all|yes) |
e1888513 PB |
8943 | new_enable_languages="${new_enable_languages}${language}," |
8944 | potential_languages="${potential_languages}${language}," | |
2805b53a | 8945 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 8946 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
8947 | case "${boot_language}:,$enable_stage1_languages," in |
8948 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 8949 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
8950 | case ",$stage1_languages," in |
8951 | *,$language,* | ,yes, | ,all,) ;; | |
8952 | *) stage1_languages="${stage1_languages}${language}," ;; | |
8953 | esac | |
00020c16 | 8954 | # We need to bootstrap any supporting libraries. |
5fee5ec3 | 8955 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
2805b53a NN |
8956 | ;; |
8957 | esac | |
8958 | ;; | |
55ffb5ed NN |
8959 | esac |
8960 | ;; | |
8961 | esac | |
8962 | done | |
8963 | ||
4da3b0f8 ILT |
8964 | # Add target libraries which are only needed for disabled languages |
8965 | # to noconfigdirs. | |
8966 | if test -n "$disabled_target_libs"; then | |
8967 | for dir in $disabled_target_libs; do | |
8968 | case " $enabled_target_libs " in | |
8969 | *" ${dir} "*) ;; | |
8970 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
8971 | esac | |
8972 | done | |
8973 | fi | |
8974 | ||
5213506e RW |
8975 | # Check whether --enable-stage1-languages was given. |
8976 | if test "${enable_stage1_languages+set}" = set; then : | |
8977 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
8978 | ,no,|,,) |
8979 | # Set it to something that will have no effect in the loop below | |
8980 | enable_stage1_languages=c ;; | |
8981 | ,yes,) | |
8982 | enable_stage1_languages=`echo $new_enable_languages | \ | |
8983 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
8984 | *,all,*) | |
8985 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
8986 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
8987 | esac | |
8988 | ||
8989 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
8990 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
8991 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
8992 | case $potential_languages in | |
8993 | *,$i,*) | |
8994 | case $stage1_languages in | |
8995 | *,$i,*) ;; | |
8996 | *) stage1_languages="$stage1_languages$i," ;; | |
8997 | esac ;; | |
8998 | *) | |
8999 | case $missing_languages in | |
9000 | *,$i,*) ;; | |
9001 | *) missing_languages="$missing_languages$i," ;; | |
9002 | esac ;; | |
9003 | esac | |
9004 | done | |
5213506e RW |
9005 | fi |
9006 | ||
e1888513 PB |
9007 | |
9008 | # Remove leading/trailing commas that were added for simplicity | |
9009 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 9010 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
9011 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
9012 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
9013 | ||
55ffb5ed | 9014 | if test "x$missing_languages" != x; then |
22e05272 | 9015 | as_fn_error $? " |
0cf085e4 | 9016 | The following requested languages could not be built: ${missing_languages} |
5213506e | 9017 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 9018 | fi |
55ffb5ed NN |
9019 | if test "x$new_enable_languages" != "x$enable_languages"; then |
9020 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 9021 | enable_languages="$new_enable_languages" |
55ffb5ed | 9022 | fi |
e1888513 | 9023 | |
1c710c3c | 9024 | |
b2eaac4a | 9025 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
9026 | fi |
9027 | ||
27079765 AH |
9028 | # Handle --disable-<component> generically. |
9029 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
9030 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
9031 | varname=`echo $dirname | sed -e s/+/_/g` |
9032 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
9033 | noconfigdirs="$noconfigdirs $dir" |
9034 | fi | |
9035 | done | |
9036 | ||
43c40f3e RO |
9037 | # Check for Boehm's garbage collector |
9038 | # Check whether --enable-objc-gc was given. | |
9039 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
9040 | enableval=$enable_objc_gc; |
9041 | fi | |
9042 | ||
9043 | ||
9044 | # Check whether --with-target-bdw-gc was given. | |
9045 | if test "${with_target_bdw_gc+set}" = set; then : | |
9046 | withval=$with_target_bdw_gc; | |
9047 | fi | |
9048 | ||
9049 | ||
9050 | # Check whether --with-target-bdw-gc-include was given. | |
9051 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9052 | withval=$with_target_bdw_gc_include; | |
9053 | fi | |
9054 | ||
9055 | ||
9056 | # Check whether --with-target-bdw-gc-lib was given. | |
9057 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9058 | withval=$with_target_bdw_gc_lib; | |
9059 | fi | |
9060 | ||
9061 | ||
9062 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9064 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9065 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
9066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
9067 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
9068 | else |
9069 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 9070 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 9071 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 9072 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
9073 | else |
9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9075 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
9076 | fi | |
9077 | fi | |
43c40f3e RO |
9078 | esac |
9079 | ||
5e9d6aa4 | 9080 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 9081 | case ,${enable_languages}, in |
1007a55c | 9082 | *,c++,*) |
5e9d6aa4 | 9083 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
9084 | case "${noconfigdirs}" in |
9085 | *target-libstdc++-v3*) | |
5e9d6aa4 | 9086 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
9087 | ;; |
9088 | *) ;; | |
9089 | esac | |
9090 | ;; | |
99776ebd | 9091 | *) |
5e9d6aa4 | 9092 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
9093 | ;; |
9094 | esac | |
9095 | ||
dc614a83 AB |
9096 | # If gcc/ is not in the source tree then we'll not be building a |
9097 | # target compiler, assume in that case we don't want to build any | |
9098 | # target libraries or tools. | |
9099 | # | |
9100 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9101 | # this configure script, but don't always have target tools available. | |
9102 | if test ! -d ${srcdir}/gcc; then | |
9103 | skipdirs="${skipdirs} ${target_configdirs}" | |
9104 | fi | |
9105 | ||
ee6a22df L |
9106 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9107 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
9108 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9109 | ||
9110 | notsupp="" | |
9111 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 9112 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
9113 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9114 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9115 | if test -r $srcdir/$dirname/configure ; then | |
9116 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9117 | true | |
9118 | else | |
9119 | notsupp="$notsupp $dir" | |
9120 | fi | |
9121 | fi | |
9122 | fi | |
ee6a22df L |
9123 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9124 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9125 | if test -r $srcdir/$dirname/configure ; then | |
9126 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9127 | true | |
9128 | else | |
9129 | notsupp="$notsupp $dir" | |
9130 | fi | |
9131 | fi | |
9132 | fi | |
55ffb5ed NN |
9133 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9134 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9135 | if test -r $srcdir/$dirname/configure ; then | |
9136 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9137 | true | |
9138 | else | |
9139 | notsupp="$notsupp $dir" | |
9140 | fi | |
9141 | fi | |
9142 | fi | |
9143 | done | |
9144 | ||
55ffb5ed NN |
9145 | # Quietly strip out all directories which aren't configurable in this tree. |
9146 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9147 | # is now the case. | |
23f6b2f9 PB |
9148 | build_configdirs_all="$build_configdirs" |
9149 | build_configdirs= | |
9150 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 9151 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
9152 | if test -f ${srcdir}/$j/configure ; then |
9153 | build_configdirs="${build_configdirs} $i" | |
9154 | fi | |
9155 | done | |
9156 | ||
55ffb5ed NN |
9157 | configdirs_all="$configdirs" |
9158 | configdirs= | |
9159 | for i in ${configdirs_all} ; do | |
9160 | if test -f ${srcdir}/$i/configure ; then | |
9161 | configdirs="${configdirs} $i" | |
9162 | fi | |
9163 | done | |
23f6b2f9 | 9164 | |
55ffb5ed NN |
9165 | target_configdirs_all="$target_configdirs" |
9166 | target_configdirs= | |
9167 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 9168 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
9169 | if test -f ${srcdir}/$j/configure ; then |
9170 | target_configdirs="${target_configdirs} $i" | |
9171 | fi | |
9172 | done | |
9173 | ||
45b3824d TS |
9174 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9175 | # so we have to add it after the preceding checks. | |
9176 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9177 | then | |
9178 | case " $configdirs " in | |
9179 | *" libiberty "*) | |
9180 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9181 | configdirs="$configdirs libiberty-linker-plugin" | |
9182 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9183 | --with-libiberty=../libiberty-linker-plugin";; | |
9184 | *) | |
22e05272 | 9185 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
9186 | esac |
9187 | fi | |
9188 | ||
fca38047 TS |
9189 | # Sometimes we have special requirements for the host libiberty. |
9190 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 9191 | extra_host_zlib_configure_flags= |
fca38047 | 9192 | case " $configdirs " in |
15368960 | 9193 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
fca38047 TS |
9194 | # When these are to be built as shared libraries, the same applies to |
9195 | # libiberty. | |
9196 | extra_host_libiberty_configure_flags=--enable-shared | |
9197 | ;; | |
1c01ebf6 L |
9198 | *" bfd "*) |
9199 | # When bfd is to be built as a shared library, the same applies to | |
9200 | # zlib. | |
9201 | if test "$enable_shared" = "yes"; then | |
9202 | extra_host_zlib_configure_flags=--enable-host-shared | |
9203 | fi | |
9204 | ;; | |
fca38047 TS |
9205 | esac |
9206 | ||
9207 | ||
1c01ebf6 | 9208 | |
55ffb5ed NN |
9209 | # Produce a warning message for the subdirs we can't configure. |
9210 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9211 | # FSF releases, it's important to let people know when their machine isn't | |
9212 | # supported by the one or two programs in a package. | |
9213 | ||
9214 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9215 | # If $appdirs is non-empty, at least one of those directories must still | |
9216 | # be configured, or we error out. (E.g., if the gas release supports a | |
9217 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9218 | # pretend that all is well.) | |
9219 | if test -n "$appdirs" ; then | |
9220 | for dir in $appdirs ; do | |
9221 | if test -r $dir/Makefile.in ; then | |
9222 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9223 | appdirs="" | |
9224 | break | |
9225 | fi | |
23f6b2f9 | 9226 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
9227 | appdirs="" |
9228 | break | |
9229 | fi | |
9230 | fi | |
9231 | done | |
9232 | if test -n "$appdirs" ; then | |
9233 | echo "*** This configuration is not supported by this package." 1>&2 | |
9234 | exit 1 | |
9235 | fi | |
9236 | fi | |
9237 | # Okay, some application will build, or we don't care to check. Still | |
9238 | # notify of subdirs not getting built. | |
9239 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9240 | echo " ${notsupp}" 1>&2 | |
9241 | echo " (Any other directories should still work fine.)" 1>&2 | |
9242 | fi | |
9243 | ||
9244 | case "$host" in | |
9245 | *msdosdjgpp*) | |
9246 | enable_gdbtk=no ;; | |
9247 | esac | |
9248 | ||
c3a86da9 DJ |
9249 | # To find our prefix, in gcc_cv_tool_prefix. |
9250 | ||
9251 | # The user is always right. | |
9252 | if test "${PATH_SEPARATOR+set}" != set; then | |
9253 | echo "#! /bin/sh" >conf$$.sh | |
9254 | echo "exit 0" >>conf$$.sh | |
9255 | chmod +x conf$$.sh | |
9256 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9257 | PATH_SEPARATOR=';' | |
9258 | else | |
9259 | PATH_SEPARATOR=: | |
9260 | fi | |
9261 | rm -f conf$$.sh | |
9262 | fi | |
9263 | ||
9264 | ||
3c36aa6b JJ |
9265 | get_gcc_base_ver="cat" |
9266 | ||
9267 | # Check whether --with-gcc-major-version-only was given. | |
9268 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9269 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 9270 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
9271 | fi |
9272 | ||
9273 | fi | |
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
c3a86da9 DJ |
9279 | |
9280 | if test "x$exec_prefix" = xNONE; then | |
9281 | if test "x$prefix" = xNONE; then | |
9282 | gcc_cv_tool_prefix=$ac_default_prefix | |
9283 | else | |
9284 | gcc_cv_tool_prefix=$prefix | |
9285 | fi | |
9286 | else | |
9287 | gcc_cv_tool_prefix=$exec_prefix | |
9288 | fi | |
9289 | ||
9290 | # If there is no compiler in the tree, use the PATH only. In any | |
9291 | # case, if there is no compiler in the tree nobody should use | |
9292 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9293 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
9294 | if test x$with_gcc_major_version_only = xyes ; then |
9295 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9296 | else | |
9297 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9298 | fi | |
c3a86da9 DJ |
9299 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9300 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9301 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9302 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9303 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9304 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9305 | else | |
9306 | gcc_cv_tool_dirs= | |
9307 | fi | |
9308 | ||
9309 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9310 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9311 | fi | |
9312 | ||
9313 | ||
9314 | ||
55ffb5ed NN |
9315 | copy_dirs= |
9316 | ||
1c710c3c | 9317 | |
5213506e RW |
9318 | # Check whether --with-build-sysroot was given. |
9319 | if test "${with_build_sysroot+set}" = set; then : | |
9320 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
9321 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9322 | fi | |
9323 | else | |
9324 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 9325 | fi |
526635cb MM |
9326 | |
9327 | ||
c8aea42c | 9328 | |
5213506e RW |
9329 | |
9330 | # Check whether --with-debug-prefix-map was given. | |
9331 | if test "${with_debug_prefix_map+set}" = set; then : | |
9332 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
9333 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9334 | for debug_map in $withval; do | |
9335 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9336 | done | |
9337 | fi | |
9338 | else | |
9339 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
9340 | fi |
9341 | ||
c8aea42c PB |
9342 | |
9343 | ||
1c8bd6a3 PB |
9344 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9345 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9346 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9347 | # We want to ensure that TARGET libraries (which we know are built with | |
9348 | # gcc) are built with "-O2 -g", so include those options when setting | |
9349 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9350 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9351 | if test "x${is_cross_compiler}" = xyes; then |
9352 | CFLAGS_FOR_TARGET="-g -O2" | |
9353 | else | |
9354 | CFLAGS_FOR_TARGET=$CFLAGS | |
9355 | case " $CFLAGS " in | |
9356 | *" -O2 "*) ;; | |
9357 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9358 | esac | |
9359 | case " $CFLAGS " in | |
9360 | *" -g "* | *" -g3 "*) ;; | |
9361 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9362 | esac | |
9363 | fi | |
1c8bd6a3 PB |
9364 | fi |
9365 | ||
9366 | ||
9367 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9368 | if test "x${is_cross_compiler}" = xyes; then |
9369 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9370 | else | |
9371 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9372 | case " $CXXFLAGS " in | |
9373 | *" -O2 "*) ;; | |
9374 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9375 | esac | |
9376 | case " $CXXFLAGS " in | |
9377 | *" -g "* | *" -g3 "*) ;; | |
9378 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9379 | esac | |
9380 | fi | |
1c8bd6a3 PB |
9381 | fi |
9382 | ||
9383 | ||
6f57bdf6 DK |
9384 | |
9385 | ||
55ffb5ed NN |
9386 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9387 | # the named directory are copied to $(tooldir)/sys-include. | |
9388 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9389 | if test x${is_cross_compiler} = xno ; then | |
9390 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9391 | exit 1 | |
9392 | fi | |
9393 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9394 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9395 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9396 | fi |
9397 | fi | |
9398 | ||
9399 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9400 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9401 | # are permitted. | |
9402 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9403 | if test x${is_cross_compiler} = xno ; then | |
9404 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9405 | exit 1 | |
9406 | fi | |
9407 | if test x"${with_libs}" != xyes ; then | |
9408 | # Copy the libraries in reverse order, so that files in the first named | |
9409 | # library override files in subsequent libraries. | |
c3a86da9 | 9410 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9411 | for l in ${with_libs}; do |
1c710c3c | 9412 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9413 | done |
9414 | fi | |
9415 | fi | |
9416 | ||
d7f09764 | 9417 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9418 | # |
9419 | # This is done by determining whether or not the appropriate directory | |
9420 | # is available, and by checking whether or not specific configurations | |
9421 | # have requested that this magic not happen. | |
1c710c3c DJ |
9422 | # |
9423 | # The command line options always override the explicit settings in | |
6b1786aa | 9424 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9425 | # |
1c710c3c | 9426 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9427 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9428 | # --without-gnu-ld options for the configure script. Similarly, if |
9429 | # the default is to use the included zlib and you don't want to do that, | |
9430 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9431 | |
9432 | if test x${use_gnu_as} = x && | |
9433 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9434 | with_gnu_as=yes | |
9435 | extra_host_args="$extra_host_args --with-gnu-as" | |
9436 | fi | |
9437 | ||
9438 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9439 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9440 | with_gnu_ld=yes |
9441 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9442 | fi | |
9443 | ||
d7f09764 DN |
9444 | if test x${use_included_zlib} = x && |
9445 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9446 | : | |
9447 | else | |
9448 | with_system_zlib=yes | |
9449 | extra_host_args="$extra_host_args --with-system-zlib" | |
9450 | fi | |
9451 | ||
e8b05380 PB |
9452 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9453 | # can detect this case. | |
9454 | ||
9455 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9456 | with_newlib=yes | |
9457 | extra_host_args="$extra_host_args --with-newlib" | |
9458 | fi | |
9459 | ||
55ffb5ed NN |
9460 | # Handle ${copy_dirs} |
9461 | set fnord ${copy_dirs} | |
9462 | shift | |
9463 | while test $# != 0 ; do | |
9464 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9465 | : | |
9466 | else | |
9467 | echo Copying $1 to $2 | |
9468 | ||
9469 | # Use the install script to create the directory and all required | |
9470 | # parent directories. | |
9471 | if test -d $2 ; then | |
9472 | : | |
9473 | else | |
9474 | echo >config.temp | |
9475 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9476 | fi | |
9477 | ||
9478 | # Copy the directory, assuming we have tar. | |
9479 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9480 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9481 | ||
9482 | # It is the responsibility of the user to correctly adjust all | |
9483 | # symlinks. If somebody can figure out how to handle them correctly | |
9484 | # here, feel free to add the code. | |
9485 | ||
9486 | echo $1 > $2/COPIED | |
9487 | fi | |
9488 | shift; shift | |
9489 | done | |
9490 | ||
e8b05380 PB |
9491 | # Determine a target-dependent exec_prefix that the installed |
9492 | # gcc will search in. Keep this list sorted by triplet, with | |
9493 | # the *-*-osname triplets last. | |
9494 | md_exec_prefix= | |
9495 | case "${target}" in | |
30b74385 | 9496 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9497 | md_exec_prefix=/dev/env/DJDIR/bin |
9498 | ;; | |
e8b05380 | 9499 | *-*-hpux* | \ |
e8b05380 | 9500 | *-*-nto-qnx* | \ |
6de66370 | 9501 | *-*-solaris2*) |
e8b05380 PB |
9502 | md_exec_prefix=/usr/ccs/bin |
9503 | ;; | |
9504 | esac | |
9505 | ||
671aa708 NN |
9506 | extra_arflags_for_target= |
9507 | extra_nmflags_for_target= | |
9508 | extra_ranlibflags_for_target= | |
9509 | target_makefile_frag=/dev/null | |
9510 | case "${target}" in | |
58e24147 AM |
9511 | spu-*-*) |
9512 | target_makefile_frag="config/mt-spu" | |
9513 | ;; | |
d896cc4d | 9514 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9515 | target_makefile_frag="config/mt-sde" |
9516 | ;; | |
1ec3b87b RS |
9517 | mipsisa*-*-elfoabi*) |
9518 | target_makefile_frag="config/mt-mips-elfoabi" | |
9519 | ;; | |
08d0963a RS |
9520 | mips*-*-*linux* | mips*-*-gnu*) |
9521 | target_makefile_frag="config/mt-mips-gnu" | |
9522 | ;; | |
707f1839 SL |
9523 | nios2-*-elf*) |
9524 | target_makefile_frag="config/mt-nios2-elf" | |
9525 | ;; | |
76052545 EB |
9526 | *-*-linux-android*) |
9527 | target_makefile_frag="config/mt-android" | |
9528 | ;; | |
416ac4d4 | 9529 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9530 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9531 | ;; |
9532 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9533 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9534 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9535 | # harmless if we're using GNU nm or ar. | |
9536 | extra_arflags_for_target=" -X32_64" | |
9537 | extra_nmflags_for_target=" -B -X32_64" | |
9538 | ;; | |
671aa708 NN |
9539 | esac |
9540 | ||
9541 | alphaieee_frag=/dev/null | |
9542 | case $target in | |
9543 | alpha*-*-*) | |
9544 | # This just makes sure to use the -mieee option to build target libs. | |
9545 | # This should probably be set individually by each library. | |
9546 | alphaieee_frag="config/mt-alphaieee" | |
9547 | ;; | |
9548 | esac | |
9549 | ||
9550 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9551 | # the target libraries, similarly if it is not specified, use -Os | |
9552 | # on selected platforms. | |
9553 | ospace_frag=/dev/null | |
9554 | case "${enable_target_optspace}:${target}" in | |
9555 | yes:*) | |
9556 | ospace_frag="config/mt-ospace" | |
9557 | ;; | |
9558 | :d30v-*) | |
9559 | ospace_frag="config/mt-d30v" | |
9560 | ;; | |
d9063947 | 9561 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9562 | ospace_frag="config/mt-ospace" |
9563 | ;; | |
9564 | no:* | :*) | |
9565 | ;; | |
9566 | *) | |
9567 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9568 | ;; | |
9569 | esac | |
9570 | ||
671aa708 NN |
9571 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9572 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9573 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9574 | build_tooldir=${tooldir} |
9575 | ||
671aa708 NN |
9576 | # Create a .gdbinit file which runs the one in srcdir |
9577 | # and tells GDB to look there for source files. | |
9578 | ||
9579 | if test -r ${srcdir}/.gdbinit ; then | |
9580 | case ${srcdir} in | |
9581 | .) ;; | |
9582 | *) cat > ./.gdbinit <<EOF | |
9583 | # ${NO_EDIT} | |
9584 | dir ${srcdir} | |
9585 | dir . | |
9586 | source ${srcdir}/.gdbinit | |
9587 | EOF | |
9588 | ;; | |
9589 | esac | |
9590 | fi | |
9591 | ||
671aa708 NN |
9592 | # Make sure that the compiler is able to generate an executable. If it |
9593 | # can't, we are probably in trouble. We don't care whether we can run the | |
9594 | # executable--we might be using a cross compiler--we only care whether it | |
9595 | # can be created. At this point the main configure script has set CC. | |
9596 | we_are_ok=no | |
9597 | echo "int main () { return 0; }" > conftest.c | |
9598 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9599 | if test $? = 0 ; then | |
9600 | if test -s conftest || test -s conftest.exe ; then | |
9601 | we_are_ok=yes | |
9602 | fi | |
1c710c3c | 9603 | fi |
671aa708 NN |
9604 | case $we_are_ok in |
9605 | no) | |
9606 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9607 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9608 | rm -f conftest* | |
9609 | exit 1 | |
9610 | ;; | |
9611 | esac | |
9612 | rm -f conftest* | |
9613 | ||
d89f0ad6 | 9614 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9615 | case "${host}" in |
9616 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9617 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9618 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9619 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9620 | esac | |
9621 | ||
d89f0ad6 AL |
9622 | # On systems where the dynamic library environment variable is PATH, |
9623 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9624 | # built executables to PATH. | |
9625 | if test "$RPATH_ENVVAR" = PATH; then | |
9626 | GCC_SHLIB_SUBDIR=/shlib | |
9627 | else | |
9628 | GCC_SHLIB_SUBDIR= | |
9629 | fi | |
9630 | ||
beeda1d9 JJ |
9631 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9632 | case $enable_bootstrap in | |
9633 | yes) | |
9634 | bootstrap_suffix=bootstrap | |
9635 | BUILD_CONFIG=bootstrap-debug | |
9636 | ;; | |
9637 | no) | |
9638 | bootstrap_suffix=no-bootstrap | |
9639 | BUILD_CONFIG= | |
9640 | ;; | |
9641 | esac | |
9642 | ||
9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9644 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9645 | ||
9646 | ||
9647 | # Check whether --with-build-config was given. | |
9648 | if test "${with_build_config+set}" = set; then : | |
9649 | withval=$with_build_config; case $with_build_config in | |
9650 | yes) with_build_config= ;; | |
9651 | no) with_build_config= BUILD_CONFIG= ;; | |
9652 | esac | |
9653 | fi | |
9654 | ||
9655 | ||
9656 | if test "x${with_build_config}" != x; then | |
9657 | BUILD_CONFIG=$with_build_config | |
9658 | else | |
9659 | case $BUILD_CONFIG in | |
9660 | bootstrap-debug) | |
9661 | if echo "int f (void) { return 0; }" > conftest.c && | |
9662 | ${CC} -c conftest.c && | |
9663 | mv conftest.o conftest.o.g0 && | |
9664 | ${CC} -c -g conftest.c && | |
9665 | mv conftest.o conftest.o.g && | |
9666 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9667 | : | |
9668 | else | |
9669 | BUILD_CONFIG= | |
9670 | fi | |
9671 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9672 | ;; | |
9673 | esac | |
9674 | fi | |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9676 | $as_echo "$BUILD_CONFIG" >&6; } | |
9677 | ||
9678 | ||
9679 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9681 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9682 | # Check whether --enable-vtable-verify was given. | |
9683 | if test "${enable_vtable_verify+set}" = set; then : | |
9684 | enableval=$enable_vtable_verify; case "$enableval" in | |
9685 | yes) enable_vtable_verify=yes ;; | |
9686 | no) enable_vtable_verify=no ;; | |
9687 | *) enable_vtable_verify=no;; | |
9688 | esac | |
9689 | else | |
9690 | enable_vtable_verify=no | |
9691 | fi | |
9692 | ||
9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9694 | $as_echo "$enable_vtable_verify" >&6; } | |
9695 | ||
671aa708 NN |
9696 | # Record target_configdirs and the configure arguments for target and |
9697 | # build configuration in Makefile. | |
9698 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9699 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9700 | bootstrap_fixincludes=no |
671aa708 | 9701 | |
ad1e5170 JR |
9702 | # If we are building libgomp, bootstrap it. |
9703 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9704 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9705 | fi | |
9706 | ||
beeda1d9 JJ |
9707 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9708 | # or bootstrap-ubsan, bootstrap it. | |
9709 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9710 | case "$BUILD_CONFIG" in | |
170e618e | 9711 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9712 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9713 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9714 | ;; |
9715 | esac | |
ac8701fe L |
9716 | fi |
9717 | ||
beeda1d9 JJ |
9718 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9719 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9720 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9721 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9722 | fi | |
9723 | ||
5fee5ec3 IB |
9724 | # If we are building libatomic and the list of enabled languages includes the |
9725 | # D frontend, bootstrap it. | |
9726 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9727 | case ,${enable_languages}, in | |
9728 | *,d,*) | |
9729 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9730 | ;; | |
9731 | esac | |
9732 | fi | |
9733 | ||
671aa708 NN |
9734 | # Determine whether gdb needs tk/tcl or not. |
9735 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9736 | # and in that case we want gdb to be built without tk. Ugh! | |
9737 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9738 | # so we should be able to put the 'maybe's in unconditionally and | |
9739 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9740 | # 100% sure that that's safe though. | |
e914a571 | 9741 | |
b4f96efe | 9742 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9743 | case "$enable_gdbtk" in |
9744 | no) | |
9745 | GDB_TK="" ;; | |
e914a571 AC |
9746 | yes) |
9747 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9748 | *) |
e914a571 AC |
9749 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9750 | # distro. Eventually someone will fix this and move Insight, nee | |
9751 | # gdbtk to a separate directory. | |
9752 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9753 | GDB_TK="${gdb_tk}" | |
9754 | else | |
9755 | GDB_TK="" | |
9756 | fi | |
9757 | ;; | |
671aa708 | 9758 | esac |
ef9db8d5 DJ |
9759 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9760 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9761 | |
f9d09df0 TT |
9762 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9763 | # else does, only include them if one of these is built. The Makefile | |
9764 | # provides the ordering, so it's enough here to add to the list. | |
9765 | case " ${configdirs} " in | |
9766 | *\ gdb\ *) | |
9767 | configdirs="${configdirs} gnulib gdbsupport" | |
9768 | ;; | |
9769 | *\ gdbserver\ *) | |
9770 | configdirs="${configdirs} gnulib gdbsupport" | |
9771 | ;; | |
f14c9bd4 MF |
9772 | *\ sim\ *) |
9773 | configdirs="${configdirs} gnulib" | |
9774 | ;; | |
f9d09df0 | 9775 | esac |
98e5be21 | 9776 | |
60975492 | 9777 | # Strip out unwanted targets. |
8b87bb96 NN |
9778 | |
9779 | # While at that, we remove Makefiles if we were started for recursive | |
9780 | # configuration, so that the top-level Makefile reconfigures them, | |
9781 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9782 | |
3e54529c RW |
9783 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9784 | # but now we're fixing up the Makefile ourselves with the additional | |
9785 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9786 | # extrasub-{build,host,target} not because there is any reason to split | |
9787 | # the substitutions up that way, but only to remain below the limit of | |
9788 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9789 | |
9790 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9791 | # configure will not warn you at all. | |
8b87bb96 | 9792 | |
79cd2b23 RW |
9793 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9794 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9795 | yes:yes:*\ gold\ *:*) | |
22e05272 | 9796 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
9797 | ;; |
9798 | esac | |
9799 | ||
3e54529c | 9800 | extrasub_build= |
23f6b2f9 | 9801 | for module in ${build_configdirs} ; do |
5607edfd PB |
9802 | if test -z "${no_recursion}" \ |
9803 | && test -f ${build_subdir}/${module}/Makefile; then | |
9804 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9805 | rm -f ${build_subdir}/${module}/Makefile | |
9806 | fi | |
3e54529c | 9807 | extrasub_build="$extrasub_build |
5607edfd PB |
9808 | /^@if build-$module\$/d |
9809 | /^@endif build-$module\$/d | |
da34ca3f | 9810 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 9811 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
9812 | /^@endif build-$module-$bootstrap_suffix\$/d |
9813 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 9814 | done |
3e54529c | 9815 | extrasub_host= |
5607edfd | 9816 | for module in ${configdirs} ; do |
a6fbc1e2 | 9817 | if test -z "${no_recursion}"; then |
f063a9ed | 9818 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
9819 | if test -f ${file}; then |
9820 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9821 | rm -f ${file} | |
9822 | fi | |
9823 | done | |
5607edfd | 9824 | fi |
9e1c8fc1 JJ |
9825 | case ${module},${bootstrap_fixincludes} in |
9826 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9827 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9828 | esac | |
3e54529c | 9829 | extrasub_host="$extrasub_host |
5607edfd PB |
9830 | /^@if $module\$/d |
9831 | /^@endif $module\$/d | |
da34ca3f | 9832 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 9833 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
9834 | /^@endif $module-$host_bootstrap_suffix\$/d |
9835 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 9836 | done |
3e54529c | 9837 | extrasub_target= |
5607edfd PB |
9838 | for module in ${target_configdirs} ; do |
9839 | if test -z "${no_recursion}" \ | |
9840 | && test -f ${target_subdir}/${module}/Makefile; then | |
9841 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9842 | rm -f ${target_subdir}/${module}/Makefile | |
9843 | fi | |
00020c16 ILT |
9844 | |
9845 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9846 | case $bootstrap_target_libs in | |
9847 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9848 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9849 | esac | |
9850 | ||
3e54529c | 9851 | extrasub_target="$extrasub_target |
5607edfd PB |
9852 | /^@if target-$module\$/d |
9853 | /^@endif target-$module\$/d | |
da34ca3f | 9854 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 9855 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
9856 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9857 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
9858 | done |
9859 | ||
3e54529c RW |
9860 | # Do the final fixup along with target modules. |
9861 | extrasub_target="$extrasub_target | |
da34ca3f AO |
9862 | /^@if /,/^@endif /d |
9863 | /^@unless /d | |
9864 | /^@endunless /d" | |
671aa708 | 9865 | |
4a5e71f2 L |
9866 | if test "$enable_pgo_build" != "no"; then |
9867 | extrasub_build="$extrasub_build | |
9868 | /^@if pgo-build\$/d | |
9869 | /^@endif pgo-build\$/d" | |
9870 | fi | |
9871 | ||
671aa708 NN |
9872 | # Create the serialization dependencies. This uses a temporary file. |
9873 | ||
5213506e RW |
9874 | # Check whether --enable-serial-configure was given. |
9875 | if test "${enable_serial_configure+set}" = set; then : | |
9876 | enableval=$enable_serial_configure; | |
9877 | fi | |
ade82b16 AO |
9878 | |
9879 | ||
bf1d3e81 NN |
9880 | case ${enable_serial_configure} in |
9881 | yes) | |
9882 | enable_serial_build_configure=yes | |
9883 | enable_serial_host_configure=yes | |
9884 | enable_serial_target_configure=yes | |
9885 | ;; | |
9886 | esac | |
9887 | ||
671aa708 NN |
9888 | # These force 'configure's to be done one at a time, to avoid problems |
9889 | # with contention over a shared config.cache. | |
9890 | rm -f serdep.tmp | |
ade82b16 | 9891 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 9892 | olditem= |
bf1d3e81 | 9893 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
9894 | for item in ${build_configdirs} ; do |
9895 | case ${olditem} in | |
9896 | "") ;; | |
ade82b16 | 9897 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9898 | esac |
9899 | olditem=${item} | |
9900 | done | |
9901 | olditem= | |
bf1d3e81 | 9902 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
9903 | for item in ${configdirs} ; do |
9904 | case ${olditem} in | |
9905 | "") ;; | |
ade82b16 | 9906 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9907 | esac |
9908 | olditem=${item} | |
9909 | done | |
9910 | olditem= | |
bf1d3e81 | 9911 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
9912 | for item in ${target_configdirs} ; do |
9913 | case ${olditem} in | |
9914 | "") ;; | |
ade82b16 | 9915 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9916 | esac |
9917 | olditem=${item} | |
9918 | done | |
9919 | serialization_dependencies=serdep.tmp | |
9920 | ||
9921 | ||
ade82b16 | 9922 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 9923 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
9924 | # might not want to pass down to subconfigures. The exception being |
9925 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
9926 | # files altogether, and which should be passed on to subconfigures. | |
9927 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
9928 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 9929 | baseargs= |
29a63921 | 9930 | tbaseargs= |
1c710c3c DJ |
9931 | keep_next=no |
9932 | skip_next=no | |
9933 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
9934 | for ac_arg |
9935 | do | |
1c710c3c DJ |
9936 | if test X"$skip_next" = X"yes"; then |
9937 | skip_next=no | |
9938 | continue | |
9939 | fi | |
9940 | if test X"$keep_next" = X"yes"; then | |
9941 | case $ac_arg in | |
9942 | *\'*) | |
9943 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9944 | esac | |
9945 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9946 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
9947 | keep_next=no |
9948 | continue | |
9949 | fi | |
9950 | ||
9951 | # Handle separated arguments. Based on the logic generated by | |
9952 | # autoconf 2.59. | |
9953 | case $ac_arg in | |
9954 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
9955 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
9956 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
9957 | | -with-* | --with-* | -without-* | --without-* | --x) | |
9958 | separate_arg=no | |
9959 | ;; | |
9960 | -*) | |
9961 | separate_arg=yes | |
9962 | ;; | |
9963 | *) | |
9964 | separate_arg=no | |
9965 | ;; | |
9966 | esac | |
9967 | ||
29a63921 AO |
9968 | skip_targ=no |
9969 | case $ac_arg in | |
9970 | ||
9971 | --with-* | --without-*) | |
9972 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
9973 | ||
9974 | case $libopt in | |
9975 | *[-_]include) | |
9976 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
9977 | ;; | |
9978 | *[-_]lib) | |
9979 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
9980 | ;; | |
9981 | *) | |
9982 | lib=$libopt | |
9983 | ;; | |
9984 | esac | |
9985 | ||
9986 | ||
9987 | case $lib in | |
4a9bb2aa | 9988 | mpc | mpfr | gmp | isl) |
29a63921 AO |
9989 | # If we're processing --with-$lib, --with-$lib-include or |
9990 | # --with-$lib-lib, for one of the libs above, and target is | |
9991 | # different from host, don't pass the current argument to any | |
9992 | # target library's configure. | |
9993 | if test x$is_cross_compiler = xyes; then | |
9994 | skip_targ=yes | |
9995 | fi | |
9996 | ;; | |
9997 | esac | |
9998 | ;; | |
9999 | esac | |
10000 | ||
1c710c3c | 10001 | case "$ac_arg" in |
f1a036e4 NC |
10002 | --cache-file=/dev/null | \ |
10003 | -cache-file=/dev/null ) | |
10004 | # Handled here to avoid the test to skip args below. | |
10005 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 10006 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
10007 | # Assert: $separate_arg should always be no. |
10008 | keep_next=$separate_arg | |
10009 | ;; | |
1c710c3c DJ |
10010 | --no*) |
10011 | continue | |
10012 | ;; | |
10013 | --c* | \ | |
10014 | --sr* | \ | |
10015 | --ho* | \ | |
10016 | --bu* | \ | |
10017 | --t* | \ | |
10018 | --program-* | \ | |
10019 | -cache_file* | \ | |
10020 | -srcdir* | \ | |
10021 | -host* | \ | |
10022 | -build* | \ | |
10023 | -target* | \ | |
10024 | -program-prefix* | \ | |
10025 | -program-suffix* | \ | |
10026 | -program-transform-name* ) | |
10027 | skip_next=$separate_arg | |
10028 | continue | |
10029 | ;; | |
10030 | -*) | |
10031 | # An option. Add it. | |
10032 | case $ac_arg in | |
10033 | *\'*) | |
10034 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10035 | esac | |
10036 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
10037 | if test X"$skip_targ" = Xno; then |
10038 | tbaseargs="$tbaseargs '$ac_arg'" | |
10039 | fi | |
1c710c3c DJ |
10040 | keep_next=$separate_arg |
10041 | ;; | |
10042 | *) | |
10043 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10044 | # pass it down; let the Makefile handle this. | |
10045 | continue | |
10046 | ;; | |
10047 | esac | |
10048 | done | |
10049 | # Remove the initial space we just introduced and, as these will be | |
10050 | # expanded by make, quote '$'. | |
10051 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 10052 | |
43bb47c2 DJ |
10053 | # Add in --program-transform-name, after --program-prefix and |
10054 | # --program-suffix have been applied to it. Autoconf has already | |
10055 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10056 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 10057 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
10058 | # Also, because we want to override the logic in subdir configure scripts to |
10059 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10060 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10061 | ${program_transform_name} | |
10062 | EOF_SED | |
10063 | gcc_transform_name=`cat conftestsed.out` | |
10064 | rm -f conftestsed.out | |
10065 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 10066 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
10067 | if test "$silent" = yes; then |
10068 | baseargs="$baseargs --silent" | |
29a63921 | 10069 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 10070 | fi |
0115d4a3 | 10071 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 10072 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 10073 | |
ffedf511 RW |
10074 | # Record and document user additions to sub configure arguments. |
10075 | ||
10076 | ||
10077 | ||
10078 | ||
671aa708 NN |
10079 | # For the build-side libraries, we just need to pretend we're native, |
10080 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
10081 | # desired. We can't even use the same cache file for all build-side |
10082 | # libraries, as they're compiled differently; some with C, some with | |
10083 | # C++ or with different feature-enabling options. | |
10084 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
10085 | |
10086 | # For host modules, accept cache file option, or specification as blank. | |
10087 | case "${cache_file}" in | |
10088 | "") # empty | |
10089 | cache_file_option="" ;; | |
10090 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10091 | cache_file_option="--cache-file=${cache_file}" ;; | |
10092 | *) # relative path | |
10093 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10094 | esac | |
10095 | ||
09438bde NN |
10096 | # Host dirs don't like to share a cache file either, horribly enough. |
10097 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 10098 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 10099 | |
29a63921 | 10100 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
10101 | |
10102 | # Passing a --with-cross-host argument lets the target libraries know | |
10103 | # whether they are being built with a cross-compiler or being built | |
10104 | # native. However, it would be better to use other mechanisms to make the | |
10105 | # sorts of decisions they want to make on this basis. Please consider | |
10106 | # this option to be deprecated. FIXME. | |
10107 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 10108 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
10109 | fi |
10110 | ||
79e0604d FXC |
10111 | # Special user-friendly check for native x86_64-linux build, if |
10112 | # multilib is not explicitly enabled. | |
10113 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10114 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 10115 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
10116 | dev64=no |
10117 | echo "int main () { return 0; }" > conftest.c | |
10118 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10119 | if test $? = 0 ; then | |
10120 | if test -s conftest || test -s conftest.exe ; then | |
10121 | dev64=yes | |
10122 | fi | |
10123 | fi | |
10124 | rm -f conftest* | |
10125 | if test x${dev64} != xyes ; then | |
22e05272 | 10126 | 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 |
10127 | fi |
10128 | ;; | |
10129 | esac | |
10130 | ||
dc683a3f RW |
10131 | # Default to --enable-multilib. |
10132 | if test x${enable_multilib} = x ; then | |
671aa708 | 10133 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 10134 | fi |
671aa708 NN |
10135 | |
10136 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10137 | # changed from the earlier setting of with_newlib. | |
10138 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10139 | target_configargs="--with-newlib ${target_configargs}" | |
10140 | fi | |
10141 | ||
6b9eb62c NN |
10142 | # Different target subdirs use different values of certain variables |
10143 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10144 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10145 | # it doesn't automatically accept command-line overrides of them. | |
10146 | # This means it's not safe for target subdirs to share a cache file, | |
10147 | # which is disgusting, but there you have it. Hopefully this can be | |
10148 | # fixed in future. It's still worthwhile to use a cache file for each | |
10149 | # directory. I think. | |
10150 | ||
bebcd931 MS |
10151 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10152 | # We need to pass --target, as newer autoconf's requires consistency | |
10153 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 10154 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 10155 | |
671aa708 NN |
10156 | FLAGS_FOR_TARGET= |
10157 | case " $target_configdirs " in | |
10158 | *" newlib "*) | |
10159 | case " $target_configargs " in | |
10160 | *" --with-newlib "*) | |
10161 | case "$target" in | |
5d571eaa | 10162 | *-cygwin*) |
443e6238 | 10163 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 10164 | ;; |
671aa708 NN |
10165 | esac |
10166 | ||
10167 | # If we're not building GCC, don't discard standard headers. | |
10168 | if test -d ${srcdir}/gcc; then | |
10169 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10170 | ||
10171 | if test "${build}" != "${host}"; then | |
10172 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10173 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10174 | # to it. This is right: we don't want to search that directory | |
10175 | # for binaries, but we want the header files in there, so add | |
10176 | # them explicitly. | |
0463992b | 10177 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
10178 | |
10179 | # Someone might think of using the pre-installed headers on | |
10180 | # Canadian crosses, in case the installed compiler is not fully | |
10181 | # compatible with the compiler being built. In this case, it | |
10182 | # would be better to flag an error than risking having | |
10183 | # incompatible object files being constructed. We can't | |
10184 | # guarantee that an error will be flagged, but let's hope the | |
10185 | # compiler will do it, when presented with incompatible header | |
10186 | # files. | |
10187 | fi | |
10188 | fi | |
10189 | ||
10190 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 10191 | i[3456789]86-*-linux*-no) |
671aa708 NN |
10192 | # Here host == target, so we don't need to build gcc, |
10193 | # so we don't want to discard standard headers. | |
10194 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10195 | ;; | |
10196 | *) | |
10197 | # If we're building newlib, use its generic headers last, but search | |
10198 | # for any libc-related directories first (so make it the last -B | |
10199 | # switch). | |
10200 | 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 |
10201 | |
10202 | # If we're building libgloss, find the startup file, simulator library | |
10203 | # and linker script. | |
10204 | case " $target_configdirs " in | |
10205 | *" libgloss "*) | |
10206 | # Look for startup file, simulator library and maybe linker script. | |
10207 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10208 | # Look for libnosys.a in case the target needs it. | |
10209 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10210 | # Most targets have the linker script in the source directory. | |
10211 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10212 | ;; | |
10213 | esac | |
671aa708 NN |
10214 | ;; |
10215 | esac | |
10216 | ;; | |
10217 | esac | |
10218 | ;; | |
10219 | esac | |
5d571eaa | 10220 | |
b91f0a41 | 10221 | case "$target" in |
5d571eaa OS |
10222 | x86_64-*mingw* | *-w64-mingw*) |
10223 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10224 | # however, use a symlink named 'mingw' in ${prefix} . | |
10225 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10226 | ;; | |
10227 | *-mingw*) | |
10228 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10229 | 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' | |
10230 | ;; | |
b91f0a41 | 10231 | esac |
671aa708 | 10232 | |
6691a79e ME |
10233 | # Allow the user to override the flags for |
10234 | # our build compiler if desired. | |
f019adc1 MF |
10235 | if test x"${build}" = x"${host}" ; then |
10236 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
84401ce5 | 10237 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
f019adc1 MF |
10238 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10239 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10240 | fi | |
6691a79e | 10241 | |
671aa708 NN |
10242 | # On Canadian crosses, we'll be searching the right directories for |
10243 | # the previously-installed cross compiler, so don't bother to add | |
10244 | # flags for directories within the install tree of the compiler | |
10245 | # being built; programs in there won't even run. | |
10246 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10247 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 10248 | 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 |
10249 | fi |
10250 | ||
10251 | if test "x${use_gnu_ld}" = x && | |
10252 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10253 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 10254 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
10255 | fi |
10256 | ||
e88a2c09 DD |
10257 | # Search for other target-specific linker scripts and such. |
10258 | case "${target}" in | |
3e19841a PB |
10259 | mep*) |
10260 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10261 | ;; | |
e88a2c09 DD |
10262 | esac |
10263 | ||
671aa708 | 10264 | # Makefile fragments. |
7b61653a PE |
10265 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10266 | do | |
10267 | eval fragval=\$$frag | |
10268 | if test $fragval != /dev/null; then | |
10269 | eval $frag=${srcdir}/$fragval | |
10270 | fi | |
10271 | done | |
671aa708 NN |
10272 | |
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | # Miscellanea: directories, flags, etc. | |
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
d89f0ad6 | 10285 | |
23f6b2f9 | 10286 | # Build module lists & subconfigure args. |
671aa708 NN |
10287 | |
10288 | ||
10289 | ||
2abefe3d PB |
10290 | # Host module lists & subconfigure args. |
10291 | ||
10292 | ||
10293 | ||
aae29963 | 10294 | |
2abefe3d PB |
10295 | # Target module lists & subconfigure args. |
10296 | ||
10297 | ||
10298 | ||
10299 | # Build tools. | |
10300 | ||
10301 | ||
10302 | ||
0999159b PB |
10303 | |
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
b4c522fa | 10316 | |
3b5e8ee4 | 10317 | |
a1d2b162 IS |
10318 | |
10319 | ||
2abefe3d PB |
10320 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10321 | # on the build machine. These are used if the Makefile can't locate these | |
10322 | # programs in objdir. | |
10323 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10324 | ||
10325 | for ac_prog in 'bison -y' byacc yacc | |
10326 | do | |
1c710c3c | 10327 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10328 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10330 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10331 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 10332 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10333 | else |
10334 | if test -n "$YACC"; then | |
10335 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10336 | else | |
1c710c3c DJ |
10337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10338 | for as_dir in $PATH | |
10339 | do | |
10340 | IFS=$as_save_IFS | |
10341 | test -z "$as_dir" && as_dir=. | |
5213506e | 10342 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10343 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10344 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 10345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10346 | break 2 |
10347 | fi | |
10348 | done | |
5213506e RW |
10349 | done |
10350 | IFS=$as_save_IFS | |
1c710c3c | 10351 | |
2abefe3d PB |
10352 | fi |
10353 | fi | |
1c710c3c | 10354 | YACC=$ac_cv_prog_YACC |
2abefe3d | 10355 | if test -n "$YACC"; then |
5213506e RW |
10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10357 | $as_echo "$YACC" >&6; } | |
2abefe3d | 10358 | else |
5213506e RW |
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10360 | $as_echo "no" >&6; } | |
2abefe3d PB |
10361 | fi |
10362 | ||
5213506e | 10363 | |
1c710c3c | 10364 | test -n "$YACC" && break |
2abefe3d PB |
10365 | done |
10366 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10367 | ||
10368 | case " $build_configdirs " in | |
10369 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
10370 | esac |
10371 | ||
10372 | for ac_prog in bison | |
10373 | do | |
1c710c3c | 10374 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10375 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10377 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10378 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 10379 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10380 | else |
10381 | if test -n "$BISON"; then | |
10382 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10383 | else | |
1c710c3c DJ |
10384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10385 | for as_dir in $PATH | |
10386 | do | |
10387 | IFS=$as_save_IFS | |
10388 | test -z "$as_dir" && as_dir=. | |
5213506e | 10389 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10391 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 10392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10393 | break 2 |
10394 | fi | |
10395 | done | |
5213506e RW |
10396 | done |
10397 | IFS=$as_save_IFS | |
1c710c3c | 10398 | |
2abefe3d PB |
10399 | fi |
10400 | fi | |
1c710c3c | 10401 | BISON=$ac_cv_prog_BISON |
2abefe3d | 10402 | if test -n "$BISON"; then |
5213506e RW |
10403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10404 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10405 | else |
5213506e RW |
10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10407 | $as_echo "no" >&6; } | |
2abefe3d PB |
10408 | fi |
10409 | ||
5213506e | 10410 | |
1c710c3c | 10411 | test -n "$BISON" && break |
2abefe3d PB |
10412 | done |
10413 | test -n "$BISON" || BISON="$MISSING bison" | |
10414 | ||
10415 | case " $build_configdirs " in | |
10416 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10417 | esac | |
10418 | ||
10419 | for ac_prog in gm4 gnum4 m4 | |
10420 | do | |
1c710c3c | 10421 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10422 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10424 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10425 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10426 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10427 | else |
10428 | if test -n "$M4"; then | |
10429 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10430 | else | |
1c710c3c DJ |
10431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10432 | for as_dir in $PATH | |
10433 | do | |
10434 | IFS=$as_save_IFS | |
10435 | test -z "$as_dir" && as_dir=. | |
5213506e | 10436 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10438 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10440 | break 2 |
10441 | fi | |
10442 | done | |
5213506e RW |
10443 | done |
10444 | IFS=$as_save_IFS | |
1c710c3c | 10445 | |
2abefe3d PB |
10446 | fi |
10447 | fi | |
1c710c3c | 10448 | M4=$ac_cv_prog_M4 |
2abefe3d | 10449 | if test -n "$M4"; then |
5213506e RW |
10450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10451 | $as_echo "$M4" >&6; } | |
2abefe3d | 10452 | else |
5213506e RW |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10454 | $as_echo "no" >&6; } | |
2abefe3d PB |
10455 | fi |
10456 | ||
5213506e | 10457 | |
1c710c3c | 10458 | test -n "$M4" && break |
2abefe3d PB |
10459 | done |
10460 | test -n "$M4" || M4="$MISSING m4" | |
10461 | ||
10462 | case " $build_configdirs " in | |
10463 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10464 | esac | |
10465 | ||
10466 | for ac_prog in flex lex | |
10467 | do | |
1c710c3c | 10468 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10469 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10471 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10472 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10473 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10474 | else |
10475 | if test -n "$LEX"; then | |
10476 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10477 | else | |
1c710c3c DJ |
10478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10479 | for as_dir in $PATH | |
10480 | do | |
10481 | IFS=$as_save_IFS | |
10482 | test -z "$as_dir" && as_dir=. | |
5213506e | 10483 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10484 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10485 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10487 | break 2 |
10488 | fi | |
10489 | done | |
5213506e RW |
10490 | done |
10491 | IFS=$as_save_IFS | |
1c710c3c | 10492 | |
2abefe3d PB |
10493 | fi |
10494 | fi | |
1c710c3c | 10495 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10496 | if test -n "$LEX"; then |
5213506e RW |
10497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10498 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10499 | else |
5213506e RW |
10500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10501 | $as_echo "no" >&6; } | |
2abefe3d PB |
10502 | fi |
10503 | ||
5213506e | 10504 | |
1c710c3c | 10505 | test -n "$LEX" && break |
2abefe3d PB |
10506 | done |
10507 | test -n "$LEX" || LEX="$MISSING flex" | |
10508 | ||
10509 | case " $build_configdirs " in | |
10510 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10511 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10512 | esac | |
10513 | ||
10514 | for ac_prog in flex | |
10515 | do | |
1c710c3c | 10516 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10517 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10519 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10520 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10521 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10522 | else |
10523 | if test -n "$FLEX"; then | |
10524 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10525 | else | |
1c710c3c DJ |
10526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10527 | for as_dir in $PATH | |
10528 | do | |
10529 | IFS=$as_save_IFS | |
10530 | test -z "$as_dir" && as_dir=. | |
5213506e | 10531 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10533 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10535 | break 2 |
10536 | fi | |
10537 | done | |
5213506e RW |
10538 | done |
10539 | IFS=$as_save_IFS | |
1c710c3c | 10540 | |
2abefe3d PB |
10541 | fi |
10542 | fi | |
1c710c3c | 10543 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10544 | if test -n "$FLEX"; then |
5213506e RW |
10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10546 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10547 | else |
5213506e RW |
10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10549 | $as_echo "no" >&6; } | |
2abefe3d PB |
10550 | fi |
10551 | ||
5213506e | 10552 | |
1c710c3c | 10553 | test -n "$FLEX" && break |
2abefe3d PB |
10554 | done |
10555 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10556 | ||
10557 | case " $build_configdirs " in | |
10558 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10559 | esac | |
10560 | ||
10561 | for ac_prog in makeinfo | |
10562 | do | |
1c710c3c | 10563 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10564 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10566 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10567 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10568 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10569 | else |
10570 | if test -n "$MAKEINFO"; then | |
10571 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10572 | else | |
1c710c3c DJ |
10573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10574 | for as_dir in $PATH | |
10575 | do | |
10576 | IFS=$as_save_IFS | |
10577 | test -z "$as_dir" && as_dir=. | |
5213506e | 10578 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10579 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10580 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10582 | break 2 |
10583 | fi | |
10584 | done | |
5213506e RW |
10585 | done |
10586 | IFS=$as_save_IFS | |
1c710c3c | 10587 | |
2abefe3d PB |
10588 | fi |
10589 | fi | |
1c710c3c | 10590 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10591 | if test -n "$MAKEINFO"; then |
5213506e RW |
10592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10593 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10594 | else |
5213506e RW |
10595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10596 | $as_echo "no" >&6; } | |
2abefe3d PB |
10597 | fi |
10598 | ||
5213506e | 10599 | |
1c710c3c | 10600 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10601 | done |
10602 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10603 | ||
10604 | case " $build_configdirs " in | |
10605 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10606 | *) | |
10607 | ||
d18ff35a | 10608 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10609 | # higher, else we use the "missing" dummy. |
10610 | if ${MAKEINFO} --version \ | |
d18ff35a | 10611 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10612 | : |
10613 | else | |
10614 | MAKEINFO="$MISSING makeinfo" | |
10615 | fi | |
10616 | ;; | |
10617 | ||
10618 | esac | |
671aa708 | 10619 | |
2abefe3d | 10620 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10621 | |
2abefe3d PB |
10622 | for ac_prog in expect |
10623 | do | |
1c710c3c | 10624 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10625 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10627 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10628 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10629 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10630 | else |
10631 | if test -n "$EXPECT"; then | |
10632 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10633 | else | |
1c710c3c DJ |
10634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10635 | for as_dir in $PATH | |
10636 | do | |
10637 | IFS=$as_save_IFS | |
10638 | test -z "$as_dir" && as_dir=. | |
5213506e | 10639 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10640 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10641 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10643 | break 2 |
10644 | fi | |
10645 | done | |
5213506e RW |
10646 | done |
10647 | IFS=$as_save_IFS | |
1c710c3c | 10648 | |
2abefe3d PB |
10649 | fi |
10650 | fi | |
1c710c3c | 10651 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10652 | if test -n "$EXPECT"; then |
5213506e RW |
10653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10654 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10655 | else |
5213506e RW |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10657 | $as_echo "no" >&6; } | |
2abefe3d | 10658 | fi |
671aa708 | 10659 | |
5213506e | 10660 | |
1c710c3c | 10661 | test -n "$EXPECT" && break |
2abefe3d PB |
10662 | done |
10663 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10664 | |
2abefe3d PB |
10665 | case " $configdirs " in |
10666 | *" expect "*) | |
10667 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10668 | ;; | |
10669 | esac | |
671aa708 | 10670 | |
2abefe3d PB |
10671 | for ac_prog in runtest |
10672 | do | |
1c710c3c | 10673 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10674 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10676 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10677 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10678 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10679 | else |
10680 | if test -n "$RUNTEST"; then | |
10681 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10682 | else |
1c710c3c DJ |
10683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10684 | for as_dir in $PATH | |
10685 | do | |
10686 | IFS=$as_save_IFS | |
10687 | test -z "$as_dir" && as_dir=. | |
5213506e | 10688 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10690 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10692 | break 2 |
10693 | fi | |
10694 | done | |
5213506e RW |
10695 | done |
10696 | IFS=$as_save_IFS | |
1c710c3c | 10697 | |
2abefe3d PB |
10698 | fi |
10699 | fi | |
1c710c3c | 10700 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10701 | if test -n "$RUNTEST"; then |
5213506e RW |
10702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10703 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10704 | else |
5213506e RW |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10706 | $as_echo "no" >&6; } | |
2abefe3d | 10707 | fi |
671aa708 | 10708 | |
5213506e | 10709 | |
1c710c3c | 10710 | test -n "$RUNTEST" && break |
2abefe3d PB |
10711 | done |
10712 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10713 | |
2abefe3d PB |
10714 | case " $configdirs " in |
10715 | *" dejagnu "*) | |
c394e891 | 10716 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10717 | ;; |
10718 | esac | |
671aa708 NN |
10719 | |
10720 | ||
671aa708 | 10721 | # Host tools. |
ca9f4b81 AO |
10722 | ncn_tool_prefix= |
10723 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10724 | ncn_target_tool_prefix= | |
10725 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10726 | ||
278a7a38 AO |
10727 | |
10728 | ||
10729 | if test -n "$AR"; then | |
10730 | ac_cv_prog_AR=$AR | |
10731 | elif test -n "$ac_cv_prog_AR"; then | |
10732 | AR=$ac_cv_prog_AR | |
10733 | fi | |
10734 | ||
10735 | if test -n "$ac_cv_prog_AR"; then | |
10736 | for ncn_progname in ar; do | |
10737 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10738 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10740 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10741 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10742 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10743 | else |
10744 | if test -n "$AR"; then | |
10745 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10746 | else | |
10747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10748 | for as_dir in $PATH | |
10749 | do | |
10750 | IFS=$as_save_IFS | |
10751 | test -z "$as_dir" && as_dir=. | |
5213506e | 10752 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10753 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10754 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10756 | break 2 |
10757 | fi | |
10758 | done | |
5213506e RW |
10759 | done |
10760 | IFS=$as_save_IFS | |
278a7a38 AO |
10761 | |
10762 | fi | |
10763 | fi | |
10764 | AR=$ac_cv_prog_AR | |
10765 | if test -n "$AR"; then | |
5213506e RW |
10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10767 | $as_echo "$AR" >&6; } | |
278a7a38 | 10768 | else |
5213506e RW |
10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10770 | $as_echo "no" >&6; } | |
278a7a38 AO |
10771 | fi |
10772 | ||
5213506e | 10773 | |
278a7a38 AO |
10774 | done |
10775 | fi | |
10776 | ||
10777 | for ncn_progname in ar; do | |
2693c0b0 PB |
10778 | if test -n "$ncn_tool_prefix"; then |
10779 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10780 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10782 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10783 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10784 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10785 | else |
10786 | if test -n "$AR"; then | |
10787 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10788 | else | |
1c710c3c DJ |
10789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10790 | for as_dir in $PATH | |
10791 | do | |
10792 | IFS=$as_save_IFS | |
10793 | test -z "$as_dir" && as_dir=. | |
5213506e | 10794 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10796 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10798 | break 2 |
10799 | fi | |
10800 | done | |
5213506e RW |
10801 | done |
10802 | IFS=$as_save_IFS | |
1c710c3c | 10803 | |
ca9f4b81 AO |
10804 | fi |
10805 | fi | |
1c710c3c | 10806 | AR=$ac_cv_prog_AR |
ca9f4b81 | 10807 | if test -n "$AR"; then |
5213506e RW |
10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10809 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10810 | else |
5213506e RW |
10811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10812 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10813 | fi |
10814 | ||
5213506e | 10815 | |
2693c0b0 PB |
10816 | fi |
10817 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10818 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10819 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10821 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10822 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10823 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10824 | else |
2693c0b0 | 10825 | if test -n "$AR"; then |
af71363e AS |
10826 | ac_cv_prog_AR="$AR" # Let the user override the test. |
10827 | else | |
1c710c3c DJ |
10828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10829 | for as_dir in $PATH | |
10830 | do | |
10831 | IFS=$as_save_IFS | |
10832 | test -z "$as_dir" && as_dir=. | |
5213506e | 10833 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10835 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10837 | break 2 |
10838 | fi | |
10839 | done | |
5213506e RW |
10840 | done |
10841 | IFS=$as_save_IFS | |
1c710c3c | 10842 | |
ca9f4b81 AO |
10843 | fi |
10844 | fi | |
1c710c3c | 10845 | AR=$ac_cv_prog_AR |
2693c0b0 | 10846 | if test -n "$AR"; then |
5213506e RW |
10847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10848 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10849 | else |
5213506e RW |
10850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10851 | $as_echo "no" >&6; } | |
ca9f4b81 | 10852 | fi |
1c710c3c | 10853 | |
5213506e | 10854 | |
2693c0b0 PB |
10855 | fi |
10856 | test -n "$ac_cv_prog_AR" && break | |
10857 | done | |
10858 | ||
10859 | if test -z "$ac_cv_prog_AR" ; then | |
10860 | set dummy ar | |
10861 | if test $build = $host ; then | |
10862 | AR="$2" | |
ca9f4b81 | 10863 | else |
2693c0b0 | 10864 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 10865 | fi |
ca9f4b81 AO |
10866 | fi |
10867 | ||
278a7a38 AO |
10868 | |
10869 | ||
10870 | if test -n "$AS"; then | |
10871 | ac_cv_prog_AS=$AS | |
10872 | elif test -n "$ac_cv_prog_AS"; then | |
10873 | AS=$ac_cv_prog_AS | |
10874 | fi | |
10875 | ||
10876 | if test -n "$ac_cv_prog_AS"; then | |
10877 | for ncn_progname in as; do | |
10878 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10879 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10881 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10882 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10883 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10884 | else |
10885 | if test -n "$AS"; then | |
10886 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10887 | else | |
10888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10889 | for as_dir in $PATH | |
10890 | do | |
10891 | IFS=$as_save_IFS | |
10892 | test -z "$as_dir" && as_dir=. | |
5213506e | 10893 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10895 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10897 | break 2 |
10898 | fi | |
10899 | done | |
5213506e RW |
10900 | done |
10901 | IFS=$as_save_IFS | |
278a7a38 AO |
10902 | |
10903 | fi | |
10904 | fi | |
10905 | AS=$ac_cv_prog_AS | |
10906 | if test -n "$AS"; then | |
5213506e RW |
10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10908 | $as_echo "$AS" >&6; } | |
278a7a38 | 10909 | else |
5213506e RW |
10910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10911 | $as_echo "no" >&6; } | |
278a7a38 AO |
10912 | fi |
10913 | ||
5213506e | 10914 | |
278a7a38 AO |
10915 | done |
10916 | fi | |
10917 | ||
10918 | for ncn_progname in as; do | |
2693c0b0 PB |
10919 | if test -n "$ncn_tool_prefix"; then |
10920 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10921 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10923 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10924 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10925 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10926 | else |
10927 | if test -n "$AS"; then | |
10928 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 10929 | else |
1c710c3c DJ |
10930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10931 | for as_dir in $PATH | |
10932 | do | |
10933 | IFS=$as_save_IFS | |
10934 | test -z "$as_dir" && as_dir=. | |
5213506e | 10935 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10937 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10939 | break 2 |
10940 | fi | |
10941 | done | |
5213506e RW |
10942 | done |
10943 | IFS=$as_save_IFS | |
1c710c3c | 10944 | |
ca9f4b81 AO |
10945 | fi |
10946 | fi | |
1c710c3c | 10947 | AS=$ac_cv_prog_AS |
ca9f4b81 | 10948 | if test -n "$AS"; then |
5213506e RW |
10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10950 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10951 | else |
5213506e RW |
10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10953 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10954 | fi |
10955 | ||
5213506e | 10956 | |
2693c0b0 PB |
10957 | fi |
10958 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
10959 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10960 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10962 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10963 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10964 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10965 | else |
2693c0b0 PB |
10966 | if test -n "$AS"; then |
10967 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 10968 | else |
1c710c3c DJ |
10969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10970 | for as_dir in $PATH | |
10971 | do | |
10972 | IFS=$as_save_IFS | |
10973 | test -z "$as_dir" && as_dir=. | |
5213506e | 10974 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10975 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10976 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10978 | break 2 |
10979 | fi | |
10980 | done | |
5213506e RW |
10981 | done |
10982 | IFS=$as_save_IFS | |
1c710c3c | 10983 | |
ca9f4b81 AO |
10984 | fi |
10985 | fi | |
1c710c3c | 10986 | AS=$ac_cv_prog_AS |
2693c0b0 | 10987 | if test -n "$AS"; then |
5213506e RW |
10988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10989 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10990 | else |
5213506e RW |
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10992 | $as_echo "no" >&6; } | |
ca9f4b81 | 10993 | fi |
1c710c3c | 10994 | |
5213506e | 10995 | |
2693c0b0 PB |
10996 | fi |
10997 | test -n "$ac_cv_prog_AS" && break | |
10998 | done | |
10999 | ||
11000 | if test -z "$ac_cv_prog_AS" ; then | |
11001 | set dummy as | |
11002 | if test $build = $host ; then | |
11003 | AS="$2" | |
ca9f4b81 | 11004 | else |
2693c0b0 | 11005 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 11006 | fi |
ca9f4b81 AO |
11007 | fi |
11008 | ||
278a7a38 AO |
11009 | |
11010 | ||
11011 | if test -n "$DLLTOOL"; then | |
11012 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
11013 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
11014 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11015 | fi | |
11016 | ||
11017 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
11018 | for ncn_progname in dlltool; do | |
11019 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11020 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11022 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11023 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11024 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11025 | else |
11026 | if test -n "$DLLTOOL"; then | |
11027 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11028 | else | |
11029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11030 | for as_dir in $PATH | |
11031 | do | |
11032 | IFS=$as_save_IFS | |
11033 | test -z "$as_dir" && as_dir=. | |
5213506e | 11034 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11036 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11038 | break 2 |
11039 | fi | |
11040 | done | |
5213506e RW |
11041 | done |
11042 | IFS=$as_save_IFS | |
278a7a38 AO |
11043 | |
11044 | fi | |
11045 | fi | |
11046 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11047 | if test -n "$DLLTOOL"; then | |
5213506e RW |
11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11049 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 11050 | else |
5213506e RW |
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11052 | $as_echo "no" >&6; } | |
278a7a38 AO |
11053 | fi |
11054 | ||
5213506e | 11055 | |
278a7a38 AO |
11056 | done |
11057 | fi | |
11058 | ||
11059 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
11060 | if test -n "$ncn_tool_prefix"; then |
11061 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11062 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11064 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11065 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11066 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11067 | else |
11068 | if test -n "$DLLTOOL"; then | |
11069 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11070 | else | |
1c710c3c DJ |
11071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11072 | for as_dir in $PATH | |
11073 | do | |
11074 | IFS=$as_save_IFS | |
11075 | test -z "$as_dir" && as_dir=. | |
5213506e | 11076 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11078 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11080 | break 2 |
11081 | fi | |
11082 | done | |
5213506e RW |
11083 | done |
11084 | IFS=$as_save_IFS | |
1c710c3c | 11085 | |
ca9f4b81 AO |
11086 | fi |
11087 | fi | |
1c710c3c | 11088 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 11089 | if test -n "$DLLTOOL"; then |
5213506e RW |
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11091 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11092 | else |
5213506e RW |
11093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11094 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11095 | fi |
11096 | ||
5213506e | 11097 | |
2693c0b0 PB |
11098 | fi |
11099 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11100 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11101 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11103 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11104 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11105 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11106 | else |
2693c0b0 PB |
11107 | if test -n "$DLLTOOL"; then |
11108 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 11109 | else |
1c710c3c DJ |
11110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11111 | for as_dir in $PATH | |
11112 | do | |
11113 | IFS=$as_save_IFS | |
11114 | test -z "$as_dir" && as_dir=. | |
5213506e | 11115 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11117 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11119 | break 2 |
11120 | fi | |
11121 | done | |
5213506e RW |
11122 | done |
11123 | IFS=$as_save_IFS | |
1c710c3c | 11124 | |
ca9f4b81 AO |
11125 | fi |
11126 | fi | |
1c710c3c | 11127 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 11128 | if test -n "$DLLTOOL"; then |
5213506e RW |
11129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11130 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11131 | else |
5213506e RW |
11132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11133 | $as_echo "no" >&6; } | |
ca9f4b81 | 11134 | fi |
1c710c3c | 11135 | |
5213506e | 11136 | |
2693c0b0 PB |
11137 | fi |
11138 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11139 | done | |
11140 | ||
11141 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11142 | set dummy dlltool | |
11143 | if test $build = $host ; then | |
11144 | DLLTOOL="$2" | |
ca9f4b81 | 11145 | else |
2693c0b0 | 11146 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 11147 | fi |
ca9f4b81 AO |
11148 | fi |
11149 | ||
278a7a38 AO |
11150 | |
11151 | ||
3b5e8ee4 IS |
11152 | if test -n "$DSYMUTIL"; then |
11153 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11154 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11155 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11156 | fi | |
11157 | ||
11158 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11159 | for ncn_progname in dsymutil; do | |
11160 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11161 | set dummy ${ncn_progname}; ac_word=$2 | |
11162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11163 | $as_echo_n "checking for $ac_word... " >&6; } | |
11164 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11165 | $as_echo_n "(cached) " >&6 | |
11166 | else | |
11167 | if test -n "$DSYMUTIL"; then | |
11168 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11169 | else | |
11170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11171 | for as_dir in $PATH | |
11172 | do | |
11173 | IFS=$as_save_IFS | |
11174 | test -z "$as_dir" && as_dir=. | |
11175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11177 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11179 | break 2 | |
11180 | fi | |
11181 | done | |
11182 | done | |
11183 | IFS=$as_save_IFS | |
11184 | ||
11185 | fi | |
11186 | fi | |
11187 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11188 | if test -n "$DSYMUTIL"; then | |
11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11190 | $as_echo "$DSYMUTIL" >&6; } | |
11191 | else | |
11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11193 | $as_echo "no" >&6; } | |
11194 | fi | |
11195 | ||
11196 | ||
11197 | done | |
11198 | fi | |
11199 | ||
11200 | for ncn_progname in dsymutil; do | |
11201 | if test -n "$ncn_tool_prefix"; then | |
11202 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11203 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11205 | $as_echo_n "checking for $ac_word... " >&6; } | |
11206 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11207 | $as_echo_n "(cached) " >&6 | |
11208 | else | |
11209 | if test -n "$DSYMUTIL"; then | |
11210 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11211 | else | |
11212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11213 | for as_dir in $PATH | |
11214 | do | |
11215 | IFS=$as_save_IFS | |
11216 | test -z "$as_dir" && as_dir=. | |
11217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11219 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11221 | break 2 | |
11222 | fi | |
11223 | done | |
11224 | done | |
11225 | IFS=$as_save_IFS | |
11226 | ||
11227 | fi | |
11228 | fi | |
11229 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11230 | if test -n "$DSYMUTIL"; then | |
11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11232 | $as_echo "$DSYMUTIL" >&6; } | |
11233 | else | |
11234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11235 | $as_echo "no" >&6; } | |
11236 | fi | |
11237 | ||
11238 | ||
11239 | fi | |
11240 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11241 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11242 | set dummy ${ncn_progname}; ac_word=$2 | |
11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11244 | $as_echo_n "checking for $ac_word... " >&6; } | |
11245 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11246 | $as_echo_n "(cached) " >&6 | |
11247 | else | |
11248 | if test -n "$DSYMUTIL"; then | |
11249 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11250 | else | |
11251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11252 | for as_dir in $PATH | |
11253 | do | |
11254 | IFS=$as_save_IFS | |
11255 | test -z "$as_dir" && as_dir=. | |
11256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11258 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11260 | break 2 | |
11261 | fi | |
11262 | done | |
11263 | done | |
11264 | IFS=$as_save_IFS | |
11265 | ||
11266 | fi | |
11267 | fi | |
11268 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11269 | if test -n "$DSYMUTIL"; then | |
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11271 | $as_echo "$DSYMUTIL" >&6; } | |
11272 | else | |
11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11274 | $as_echo "no" >&6; } | |
11275 | fi | |
11276 | ||
11277 | ||
11278 | fi | |
11279 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11280 | done | |
11281 | ||
11282 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11283 | set dummy dsymutil | |
11284 | if test $build = $host ; then | |
11285 | DSYMUTIL="$2" | |
11286 | else | |
11287 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11288 | fi | |
11289 | fi | |
11290 | ||
11291 | ||
11292 | ||
278a7a38 AO |
11293 | if test -n "$LD"; then |
11294 | ac_cv_prog_LD=$LD | |
11295 | elif test -n "$ac_cv_prog_LD"; then | |
11296 | LD=$ac_cv_prog_LD | |
11297 | fi | |
11298 | ||
11299 | if test -n "$ac_cv_prog_LD"; then | |
11300 | for ncn_progname in ld; do | |
11301 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11302 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11304 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11305 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11306 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11307 | else |
11308 | if test -n "$LD"; then | |
11309 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11310 | else | |
11311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11312 | for as_dir in $PATH | |
11313 | do | |
11314 | IFS=$as_save_IFS | |
11315 | test -z "$as_dir" && as_dir=. | |
5213506e | 11316 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11318 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11320 | break 2 |
11321 | fi | |
11322 | done | |
5213506e RW |
11323 | done |
11324 | IFS=$as_save_IFS | |
278a7a38 AO |
11325 | |
11326 | fi | |
11327 | fi | |
11328 | LD=$ac_cv_prog_LD | |
11329 | if test -n "$LD"; then | |
5213506e RW |
11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11331 | $as_echo "$LD" >&6; } | |
278a7a38 | 11332 | else |
5213506e RW |
11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11334 | $as_echo "no" >&6; } | |
278a7a38 AO |
11335 | fi |
11336 | ||
5213506e | 11337 | |
278a7a38 AO |
11338 | done |
11339 | fi | |
11340 | ||
11341 | for ncn_progname in ld; do | |
2693c0b0 PB |
11342 | if test -n "$ncn_tool_prefix"; then |
11343 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11344 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11346 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11347 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11348 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11349 | else |
11350 | if test -n "$LD"; then | |
11351 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11352 | else | |
1c710c3c DJ |
11353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11354 | for as_dir in $PATH | |
11355 | do | |
11356 | IFS=$as_save_IFS | |
11357 | test -z "$as_dir" && as_dir=. | |
5213506e | 11358 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11359 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11360 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11362 | break 2 |
11363 | fi | |
11364 | done | |
5213506e RW |
11365 | done |
11366 | IFS=$as_save_IFS | |
1c710c3c | 11367 | |
ca9f4b81 AO |
11368 | fi |
11369 | fi | |
1c710c3c | 11370 | LD=$ac_cv_prog_LD |
ca9f4b81 | 11371 | if test -n "$LD"; then |
5213506e RW |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11373 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11374 | else |
5213506e RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11376 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11377 | fi |
11378 | ||
5213506e | 11379 | |
2693c0b0 PB |
11380 | fi |
11381 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11382 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11383 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11385 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11386 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11387 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11388 | else |
2693c0b0 PB |
11389 | if test -n "$LD"; then |
11390 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 11391 | else |
1c710c3c DJ |
11392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11393 | for as_dir in $PATH | |
11394 | do | |
11395 | IFS=$as_save_IFS | |
11396 | test -z "$as_dir" && as_dir=. | |
5213506e | 11397 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11399 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11401 | break 2 |
11402 | fi | |
11403 | done | |
5213506e RW |
11404 | done |
11405 | IFS=$as_save_IFS | |
1c710c3c | 11406 | |
ca9f4b81 AO |
11407 | fi |
11408 | fi | |
1c710c3c | 11409 | LD=$ac_cv_prog_LD |
2693c0b0 | 11410 | if test -n "$LD"; then |
5213506e RW |
11411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11412 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11413 | else |
5213506e RW |
11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11415 | $as_echo "no" >&6; } | |
ca9f4b81 | 11416 | fi |
1c710c3c | 11417 | |
5213506e | 11418 | |
2693c0b0 PB |
11419 | fi |
11420 | test -n "$ac_cv_prog_LD" && break | |
11421 | done | |
11422 | ||
11423 | if test -z "$ac_cv_prog_LD" ; then | |
11424 | set dummy ld | |
11425 | if test $build = $host ; then | |
11426 | LD="$2" | |
ca9f4b81 | 11427 | else |
2693c0b0 | 11428 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11429 | fi |
ca9f4b81 AO |
11430 | fi |
11431 | ||
278a7a38 AO |
11432 | |
11433 | ||
11434 | if test -n "$LIPO"; then | |
11435 | ac_cv_prog_LIPO=$LIPO | |
11436 | elif test -n "$ac_cv_prog_LIPO"; then | |
11437 | LIPO=$ac_cv_prog_LIPO | |
11438 | fi | |
11439 | ||
11440 | if test -n "$ac_cv_prog_LIPO"; then | |
11441 | for ncn_progname in lipo; do | |
11442 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11443 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11445 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11446 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11447 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11448 | else |
11449 | if test -n "$LIPO"; then | |
11450 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11451 | else | |
11452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11453 | for as_dir in $PATH | |
11454 | do | |
11455 | IFS=$as_save_IFS | |
11456 | test -z "$as_dir" && as_dir=. | |
5213506e | 11457 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11458 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11459 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11461 | break 2 |
11462 | fi | |
11463 | done | |
5213506e RW |
11464 | done |
11465 | IFS=$as_save_IFS | |
278a7a38 AO |
11466 | |
11467 | fi | |
11468 | fi | |
11469 | LIPO=$ac_cv_prog_LIPO | |
11470 | if test -n "$LIPO"; then | |
5213506e RW |
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11472 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11473 | else |
5213506e RW |
11474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11475 | $as_echo "no" >&6; } | |
278a7a38 AO |
11476 | fi |
11477 | ||
5213506e | 11478 | |
278a7a38 AO |
11479 | done |
11480 | fi | |
11481 | ||
11482 | for ncn_progname in lipo; do | |
2abefe3d PB |
11483 | if test -n "$ncn_tool_prefix"; then |
11484 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11485 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11487 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11488 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11489 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11490 | else |
11491 | if test -n "$LIPO"; then | |
11492 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11493 | else | |
1c710c3c DJ |
11494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11495 | for as_dir in $PATH | |
11496 | do | |
11497 | IFS=$as_save_IFS | |
11498 | test -z "$as_dir" && as_dir=. | |
5213506e | 11499 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11501 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11503 | break 2 |
11504 | fi | |
11505 | done | |
5213506e RW |
11506 | done |
11507 | IFS=$as_save_IFS | |
1c710c3c | 11508 | |
2abefe3d PB |
11509 | fi |
11510 | fi | |
1c710c3c | 11511 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11512 | if test -n "$LIPO"; then |
5213506e RW |
11513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11514 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11515 | else |
5213506e RW |
11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11517 | $as_echo "no" >&6; } | |
2abefe3d PB |
11518 | fi |
11519 | ||
5213506e | 11520 | |
2abefe3d PB |
11521 | fi |
11522 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11523 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11524 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11526 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11527 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11528 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11529 | else |
11530 | if test -n "$LIPO"; then | |
11531 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11532 | else | |
1c710c3c DJ |
11533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11534 | for as_dir in $PATH | |
11535 | do | |
11536 | IFS=$as_save_IFS | |
11537 | test -z "$as_dir" && as_dir=. | |
5213506e | 11538 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11539 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11540 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11542 | break 2 |
11543 | fi | |
11544 | done | |
5213506e RW |
11545 | done |
11546 | IFS=$as_save_IFS | |
1c710c3c | 11547 | |
2abefe3d PB |
11548 | fi |
11549 | fi | |
1c710c3c | 11550 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11551 | if test -n "$LIPO"; then |
5213506e RW |
11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11553 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11554 | else |
5213506e RW |
11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11556 | $as_echo "no" >&6; } | |
2abefe3d | 11557 | fi |
1c710c3c | 11558 | |
5213506e | 11559 | |
2abefe3d PB |
11560 | fi |
11561 | test -n "$ac_cv_prog_LIPO" && break | |
11562 | done | |
11563 | ||
11564 | if test -z "$ac_cv_prog_LIPO" ; then | |
11565 | set dummy lipo | |
11566 | if test $build = $host ; then | |
11567 | LIPO="$2" | |
11568 | else | |
11569 | LIPO="${ncn_tool_prefix}$2" | |
11570 | fi | |
11571 | fi | |
11572 | ||
278a7a38 AO |
11573 | |
11574 | ||
11575 | if test -n "$NM"; then | |
11576 | ac_cv_prog_NM=$NM | |
11577 | elif test -n "$ac_cv_prog_NM"; then | |
11578 | NM=$ac_cv_prog_NM | |
11579 | fi | |
11580 | ||
11581 | if test -n "$ac_cv_prog_NM"; then | |
11582 | for ncn_progname in nm; do | |
11583 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11584 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11586 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11587 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11588 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11589 | else |
11590 | if test -n "$NM"; then | |
11591 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11592 | else | |
1c710c3c DJ |
11593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11594 | for as_dir in $PATH | |
11595 | do | |
11596 | IFS=$as_save_IFS | |
11597 | test -z "$as_dir" && as_dir=. | |
5213506e | 11598 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11600 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11602 | break 2 |
11603 | fi | |
11604 | done | |
5213506e RW |
11605 | done |
11606 | IFS=$as_save_IFS | |
1c710c3c | 11607 | |
ca9f4b81 AO |
11608 | fi |
11609 | fi | |
1c710c3c | 11610 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11611 | if test -n "$NM"; then |
5213506e RW |
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11613 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11614 | else |
5213506e RW |
11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11616 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11617 | fi |
11618 | ||
5213506e | 11619 | |
278a7a38 AO |
11620 | done |
11621 | fi | |
11622 | ||
11623 | for ncn_progname in nm; do | |
11624 | if test -n "$ncn_tool_prefix"; then | |
11625 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11626 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11628 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11629 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11630 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11631 | else |
2693c0b0 PB |
11632 | if test -n "$NM"; then |
11633 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11634 | else |
1c710c3c DJ |
11635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11636 | for as_dir in $PATH | |
11637 | do | |
11638 | IFS=$as_save_IFS | |
11639 | test -z "$as_dir" && as_dir=. | |
5213506e | 11640 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11642 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11644 | break 2 |
11645 | fi | |
11646 | done | |
5213506e RW |
11647 | done |
11648 | IFS=$as_save_IFS | |
1c710c3c | 11649 | |
ca9f4b81 AO |
11650 | fi |
11651 | fi | |
1c710c3c | 11652 | NM=$ac_cv_prog_NM |
2693c0b0 | 11653 | if test -n "$NM"; then |
5213506e RW |
11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11655 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11656 | else |
5213506e RW |
11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11658 | $as_echo "no" >&6; } | |
ca9f4b81 | 11659 | fi |
1c710c3c | 11660 | |
5213506e | 11661 | |
2693c0b0 | 11662 | fi |
278a7a38 AO |
11663 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11664 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11665 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11667 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11668 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11669 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11670 | else |
11671 | if test -n "$NM"; then | |
11672 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11673 | else | |
11674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11675 | for as_dir in $PATH | |
11676 | do | |
11677 | IFS=$as_save_IFS | |
11678 | test -z "$as_dir" && as_dir=. | |
5213506e | 11679 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11681 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11683 | break 2 |
11684 | fi | |
11685 | done | |
5213506e RW |
11686 | done |
11687 | IFS=$as_save_IFS | |
278a7a38 AO |
11688 | |
11689 | fi | |
11690 | fi | |
11691 | NM=$ac_cv_prog_NM | |
11692 | if test -n "$NM"; then | |
5213506e RW |
11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11694 | $as_echo "$NM" >&6; } | |
278a7a38 | 11695 | else |
5213506e RW |
11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11697 | $as_echo "no" >&6; } | |
278a7a38 AO |
11698 | fi |
11699 | ||
5213506e | 11700 | |
278a7a38 AO |
11701 | fi |
11702 | test -n "$ac_cv_prog_NM" && break | |
11703 | done | |
11704 | ||
11705 | if test -z "$ac_cv_prog_NM" ; then | |
11706 | set dummy nm | |
11707 | if test $build = $host ; then | |
11708 | NM="$2" | |
11709 | else | |
11710 | NM="${ncn_tool_prefix}$2" | |
11711 | fi | |
11712 | fi | |
11713 | ||
11714 | ||
11715 | ||
11716 | if test -n "$RANLIB"; then | |
11717 | ac_cv_prog_RANLIB=$RANLIB | |
11718 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11719 | RANLIB=$ac_cv_prog_RANLIB | |
11720 | fi | |
11721 | ||
11722 | if test -n "$ac_cv_prog_RANLIB"; then | |
11723 | for ncn_progname in ranlib; do | |
11724 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11725 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11727 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11728 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11729 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11730 | else |
11731 | if test -n "$RANLIB"; then | |
11732 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11733 | else | |
11734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11735 | for as_dir in $PATH | |
11736 | do | |
11737 | IFS=$as_save_IFS | |
11738 | test -z "$as_dir" && as_dir=. | |
5213506e | 11739 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11741 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11743 | break 2 |
11744 | fi | |
11745 | done | |
5213506e RW |
11746 | done |
11747 | IFS=$as_save_IFS | |
278a7a38 AO |
11748 | |
11749 | fi | |
11750 | fi | |
11751 | RANLIB=$ac_cv_prog_RANLIB | |
11752 | if test -n "$RANLIB"; then | |
5213506e RW |
11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11754 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 11755 | else |
5213506e RW |
11756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11757 | $as_echo "no" >&6; } | |
278a7a38 AO |
11758 | fi |
11759 | ||
5213506e | 11760 | |
278a7a38 AO |
11761 | done |
11762 | fi | |
ca9f4b81 | 11763 | |
278a7a38 | 11764 | for ncn_progname in ranlib; do |
2693c0b0 PB |
11765 | if test -n "$ncn_tool_prefix"; then |
11766 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11767 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11769 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11770 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11771 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11772 | else |
11773 | if test -n "$RANLIB"; then | |
11774 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11775 | else | |
1c710c3c DJ |
11776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11777 | for as_dir in $PATH | |
11778 | do | |
11779 | IFS=$as_save_IFS | |
11780 | test -z "$as_dir" && as_dir=. | |
5213506e | 11781 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11783 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11785 | break 2 |
11786 | fi | |
11787 | done | |
5213506e RW |
11788 | done |
11789 | IFS=$as_save_IFS | |
1c710c3c | 11790 | |
ca9f4b81 AO |
11791 | fi |
11792 | fi | |
1c710c3c | 11793 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 11794 | if test -n "$RANLIB"; then |
5213506e RW |
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11796 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11797 | else |
5213506e RW |
11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11799 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11800 | fi |
11801 | ||
5213506e | 11802 | |
2693c0b0 PB |
11803 | fi |
11804 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11805 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11806 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11808 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11809 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11810 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11811 | else |
2693c0b0 PB |
11812 | if test -n "$RANLIB"; then |
11813 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 11814 | else |
1c710c3c DJ |
11815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11816 | for as_dir in $PATH | |
11817 | do | |
11818 | IFS=$as_save_IFS | |
11819 | test -z "$as_dir" && as_dir=. | |
5213506e | 11820 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11822 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11824 | break 2 |
11825 | fi | |
11826 | done | |
5213506e RW |
11827 | done |
11828 | IFS=$as_save_IFS | |
1c710c3c | 11829 | |
ca9f4b81 AO |
11830 | fi |
11831 | fi | |
1c710c3c | 11832 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 11833 | if test -n "$RANLIB"; then |
5213506e RW |
11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11835 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11836 | else |
5213506e RW |
11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11838 | $as_echo "no" >&6; } | |
ca9f4b81 | 11839 | fi |
1c710c3c | 11840 | |
5213506e | 11841 | |
ca9f4b81 | 11842 | fi |
2693c0b0 PB |
11843 | test -n "$ac_cv_prog_RANLIB" && break |
11844 | done | |
11845 | ||
11846 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 11847 | RANLIB="true" |
ca9f4b81 AO |
11848 | fi |
11849 | ||
278a7a38 AO |
11850 | |
11851 | ||
11852 | if test -n "$STRIP"; then | |
11853 | ac_cv_prog_STRIP=$STRIP | |
11854 | elif test -n "$ac_cv_prog_STRIP"; then | |
11855 | STRIP=$ac_cv_prog_STRIP | |
11856 | fi | |
11857 | ||
11858 | if test -n "$ac_cv_prog_STRIP"; then | |
11859 | for ncn_progname in strip; do | |
11860 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11861 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11863 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11864 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11865 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11866 | else |
11867 | if test -n "$STRIP"; then | |
11868 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11869 | else | |
11870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11871 | for as_dir in $PATH | |
11872 | do | |
11873 | IFS=$as_save_IFS | |
11874 | test -z "$as_dir" && as_dir=. | |
5213506e | 11875 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11877 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11879 | break 2 |
11880 | fi | |
11881 | done | |
5213506e RW |
11882 | done |
11883 | IFS=$as_save_IFS | |
278a7a38 AO |
11884 | |
11885 | fi | |
11886 | fi | |
11887 | STRIP=$ac_cv_prog_STRIP | |
11888 | if test -n "$STRIP"; then | |
5213506e RW |
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11890 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 11891 | else |
5213506e RW |
11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11893 | $as_echo "no" >&6; } | |
278a7a38 AO |
11894 | fi |
11895 | ||
5213506e | 11896 | |
278a7a38 AO |
11897 | done |
11898 | fi | |
11899 | ||
11900 | for ncn_progname in strip; do | |
2abefe3d PB |
11901 | if test -n "$ncn_tool_prefix"; then |
11902 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11903 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11905 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11906 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11907 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11908 | else |
11909 | if test -n "$STRIP"; then | |
11910 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11911 | else | |
1c710c3c DJ |
11912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11913 | for as_dir in $PATH | |
11914 | do | |
11915 | IFS=$as_save_IFS | |
11916 | test -z "$as_dir" && as_dir=. | |
5213506e | 11917 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11918 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11919 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11921 | break 2 |
11922 | fi | |
11923 | done | |
5213506e RW |
11924 | done |
11925 | IFS=$as_save_IFS | |
1c710c3c | 11926 | |
2abefe3d PB |
11927 | fi |
11928 | fi | |
1c710c3c | 11929 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11930 | if test -n "$STRIP"; then |
5213506e RW |
11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11932 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11933 | else |
5213506e RW |
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11935 | $as_echo "no" >&6; } | |
2abefe3d PB |
11936 | fi |
11937 | ||
5213506e | 11938 | |
2abefe3d PB |
11939 | fi |
11940 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
11941 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11942 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11944 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11945 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11946 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11947 | else |
11948 | if test -n "$STRIP"; then | |
11949 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11950 | else | |
1c710c3c DJ |
11951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11952 | for as_dir in $PATH | |
11953 | do | |
11954 | IFS=$as_save_IFS | |
11955 | test -z "$as_dir" && as_dir=. | |
5213506e | 11956 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11957 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11958 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11960 | break 2 |
11961 | fi | |
11962 | done | |
5213506e RW |
11963 | done |
11964 | IFS=$as_save_IFS | |
1c710c3c | 11965 | |
2abefe3d PB |
11966 | fi |
11967 | fi | |
1c710c3c | 11968 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11969 | if test -n "$STRIP"; then |
5213506e RW |
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11971 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11972 | else |
5213506e RW |
11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11974 | $as_echo "no" >&6; } | |
2abefe3d | 11975 | fi |
1c710c3c | 11976 | |
5213506e | 11977 | |
2abefe3d PB |
11978 | fi |
11979 | test -n "$ac_cv_prog_STRIP" && break | |
11980 | done | |
11981 | ||
11982 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 11983 | STRIP="true" |
2abefe3d PB |
11984 | fi |
11985 | ||
278a7a38 AO |
11986 | |
11987 | ||
11988 | if test -n "$WINDRES"; then | |
11989 | ac_cv_prog_WINDRES=$WINDRES | |
11990 | elif test -n "$ac_cv_prog_WINDRES"; then | |
11991 | WINDRES=$ac_cv_prog_WINDRES | |
11992 | fi | |
11993 | ||
11994 | if test -n "$ac_cv_prog_WINDRES"; then | |
11995 | for ncn_progname in windres; do | |
11996 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11997 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11999 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12000 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12001 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12002 | else |
12003 | if test -n "$WINDRES"; then | |
12004 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12005 | else | |
12006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12007 | for as_dir in $PATH | |
12008 | do | |
12009 | IFS=$as_save_IFS | |
12010 | test -z "$as_dir" && as_dir=. | |
5213506e | 12011 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12013 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12015 | break 2 |
12016 | fi | |
12017 | done | |
5213506e RW |
12018 | done |
12019 | IFS=$as_save_IFS | |
278a7a38 AO |
12020 | |
12021 | fi | |
12022 | fi | |
12023 | WINDRES=$ac_cv_prog_WINDRES | |
12024 | if test -n "$WINDRES"; then | |
5213506e RW |
12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12026 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 12027 | else |
5213506e RW |
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12029 | $as_echo "no" >&6; } | |
278a7a38 AO |
12030 | fi |
12031 | ||
5213506e | 12032 | |
278a7a38 AO |
12033 | done |
12034 | fi | |
12035 | ||
12036 | for ncn_progname in windres; do | |
2693c0b0 PB |
12037 | if test -n "$ncn_tool_prefix"; then |
12038 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12039 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12041 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12042 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12043 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12044 | else |
12045 | if test -n "$WINDRES"; then | |
12046 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12047 | else | |
1c710c3c DJ |
12048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12049 | for as_dir in $PATH | |
12050 | do | |
12051 | IFS=$as_save_IFS | |
12052 | test -z "$as_dir" && as_dir=. | |
5213506e | 12053 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12055 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12057 | break 2 |
12058 | fi | |
12059 | done | |
5213506e RW |
12060 | done |
12061 | IFS=$as_save_IFS | |
1c710c3c | 12062 | |
ca9f4b81 AO |
12063 | fi |
12064 | fi | |
1c710c3c | 12065 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 12066 | if test -n "$WINDRES"; then |
5213506e RW |
12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12068 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12069 | else |
5213506e RW |
12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12071 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12072 | fi |
12073 | ||
5213506e | 12074 | |
2693c0b0 PB |
12075 | fi |
12076 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12077 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12078 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12080 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12081 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12082 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12083 | else |
2693c0b0 PB |
12084 | if test -n "$WINDRES"; then |
12085 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 12086 | else |
1c710c3c DJ |
12087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12088 | for as_dir in $PATH | |
12089 | do | |
12090 | IFS=$as_save_IFS | |
12091 | test -z "$as_dir" && as_dir=. | |
5213506e | 12092 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12094 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12096 | break 2 |
12097 | fi | |
12098 | done | |
5213506e RW |
12099 | done |
12100 | IFS=$as_save_IFS | |
1c710c3c | 12101 | |
ca9f4b81 AO |
12102 | fi |
12103 | fi | |
1c710c3c | 12104 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 12105 | if test -n "$WINDRES"; then |
5213506e RW |
12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12107 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12108 | else |
5213506e RW |
12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12110 | $as_echo "no" >&6; } | |
ca9f4b81 | 12111 | fi |
1c710c3c | 12112 | |
5213506e | 12113 | |
2693c0b0 PB |
12114 | fi |
12115 | test -n "$ac_cv_prog_WINDRES" && break | |
12116 | done | |
12117 | ||
12118 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12119 | set dummy windres | |
12120 | if test $build = $host ; then | |
12121 | WINDRES="$2" | |
ca9f4b81 | 12122 | else |
2693c0b0 | 12123 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 12124 | fi |
ca9f4b81 AO |
12125 | fi |
12126 | ||
278a7a38 AO |
12127 | |
12128 | ||
901119ae KT |
12129 | if test -n "$WINDMC"; then |
12130 | ac_cv_prog_WINDMC=$WINDMC | |
12131 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12132 | WINDMC=$ac_cv_prog_WINDMC | |
12133 | fi | |
12134 | ||
12135 | if test -n "$ac_cv_prog_WINDMC"; then | |
12136 | for ncn_progname in windmc; do | |
12137 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12138 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12140 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12141 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12142 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12143 | else |
12144 | if test -n "$WINDMC"; then | |
12145 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12146 | else | |
12147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12148 | for as_dir in $PATH | |
12149 | do | |
12150 | IFS=$as_save_IFS | |
12151 | test -z "$as_dir" && as_dir=. | |
5213506e | 12152 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12154 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12156 | break 2 |
12157 | fi | |
12158 | done | |
5213506e RW |
12159 | done |
12160 | IFS=$as_save_IFS | |
901119ae KT |
12161 | |
12162 | fi | |
12163 | fi | |
12164 | WINDMC=$ac_cv_prog_WINDMC | |
12165 | if test -n "$WINDMC"; then | |
5213506e RW |
12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12167 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12168 | else |
5213506e RW |
12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12170 | $as_echo "no" >&6; } | |
901119ae KT |
12171 | fi |
12172 | ||
5213506e | 12173 | |
901119ae KT |
12174 | done |
12175 | fi | |
12176 | ||
12177 | for ncn_progname in windmc; do | |
12178 | if test -n "$ncn_tool_prefix"; then | |
12179 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12180 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12182 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12183 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12184 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12185 | else |
12186 | if test -n "$WINDMC"; then | |
12187 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12188 | else | |
12189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12190 | for as_dir in $PATH | |
12191 | do | |
12192 | IFS=$as_save_IFS | |
12193 | test -z "$as_dir" && as_dir=. | |
5213506e | 12194 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12196 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12198 | break 2 |
12199 | fi | |
12200 | done | |
5213506e RW |
12201 | done |
12202 | IFS=$as_save_IFS | |
901119ae KT |
12203 | |
12204 | fi | |
12205 | fi | |
12206 | WINDMC=$ac_cv_prog_WINDMC | |
12207 | if test -n "$WINDMC"; then | |
5213506e RW |
12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12209 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12210 | else |
5213506e RW |
12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12212 | $as_echo "no" >&6; } | |
901119ae KT |
12213 | fi |
12214 | ||
5213506e | 12215 | |
901119ae KT |
12216 | fi |
12217 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12218 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12219 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12221 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12222 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12223 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12224 | else |
12225 | if test -n "$WINDMC"; then | |
12226 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12227 | else | |
12228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12229 | for as_dir in $PATH | |
12230 | do | |
12231 | IFS=$as_save_IFS | |
12232 | test -z "$as_dir" && as_dir=. | |
5213506e | 12233 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12234 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12235 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12237 | break 2 |
12238 | fi | |
12239 | done | |
5213506e RW |
12240 | done |
12241 | IFS=$as_save_IFS | |
901119ae KT |
12242 | |
12243 | fi | |
12244 | fi | |
12245 | WINDMC=$ac_cv_prog_WINDMC | |
12246 | if test -n "$WINDMC"; then | |
5213506e RW |
12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12248 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12249 | else |
5213506e RW |
12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12251 | $as_echo "no" >&6; } | |
901119ae KT |
12252 | fi |
12253 | ||
5213506e | 12254 | |
901119ae KT |
12255 | fi |
12256 | test -n "$ac_cv_prog_WINDMC" && break | |
12257 | done | |
12258 | ||
12259 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12260 | set dummy windmc | |
12261 | if test $build = $host ; then | |
12262 | WINDMC="$2" | |
12263 | else | |
12264 | WINDMC="${ncn_tool_prefix}$2" | |
12265 | fi | |
12266 | fi | |
12267 | ||
12268 | ||
12269 | ||
278a7a38 AO |
12270 | if test -n "$OBJCOPY"; then |
12271 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12272 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12273 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12274 | fi | |
12275 | ||
12276 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12277 | for ncn_progname in objcopy; do | |
12278 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12279 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12281 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12282 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12283 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12284 | else |
12285 | if test -n "$OBJCOPY"; then | |
12286 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12287 | else | |
12288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12289 | for as_dir in $PATH | |
12290 | do | |
12291 | IFS=$as_save_IFS | |
12292 | test -z "$as_dir" && as_dir=. | |
5213506e | 12293 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12294 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12295 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12297 | break 2 |
12298 | fi | |
12299 | done | |
5213506e RW |
12300 | done |
12301 | IFS=$as_save_IFS | |
278a7a38 AO |
12302 | |
12303 | fi | |
12304 | fi | |
12305 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12306 | if test -n "$OBJCOPY"; then | |
5213506e RW |
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12308 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 12309 | else |
5213506e RW |
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12311 | $as_echo "no" >&6; } | |
278a7a38 AO |
12312 | fi |
12313 | ||
5213506e | 12314 | |
278a7a38 AO |
12315 | done |
12316 | fi | |
12317 | ||
12318 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
12319 | if test -n "$ncn_tool_prefix"; then |
12320 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12321 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12323 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12324 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12325 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12326 | else |
12327 | if test -n "$OBJCOPY"; then | |
12328 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12329 | else | |
1c710c3c DJ |
12330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12331 | for as_dir in $PATH | |
12332 | do | |
12333 | IFS=$as_save_IFS | |
12334 | test -z "$as_dir" && as_dir=. | |
5213506e | 12335 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12337 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12339 | break 2 |
12340 | fi | |
12341 | done | |
5213506e RW |
12342 | done |
12343 | IFS=$as_save_IFS | |
1c710c3c | 12344 | |
ca9f4b81 AO |
12345 | fi |
12346 | fi | |
1c710c3c | 12347 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 12348 | if test -n "$OBJCOPY"; then |
5213506e RW |
12349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12350 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12351 | else |
5213506e RW |
12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12353 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12354 | fi |
12355 | ||
5213506e | 12356 | |
2693c0b0 PB |
12357 | fi |
12358 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12359 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12360 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12362 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12363 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12364 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12365 | else |
2693c0b0 PB |
12366 | if test -n "$OBJCOPY"; then |
12367 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 12368 | else |
1c710c3c DJ |
12369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12370 | for as_dir in $PATH | |
12371 | do | |
12372 | IFS=$as_save_IFS | |
12373 | test -z "$as_dir" && as_dir=. | |
5213506e | 12374 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12376 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12378 | break 2 |
12379 | fi | |
12380 | done | |
5213506e RW |
12381 | done |
12382 | IFS=$as_save_IFS | |
1c710c3c | 12383 | |
ca9f4b81 AO |
12384 | fi |
12385 | fi | |
1c710c3c | 12386 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 12387 | if test -n "$OBJCOPY"; then |
5213506e RW |
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12389 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12390 | else |
5213506e RW |
12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12392 | $as_echo "no" >&6; } | |
ca9f4b81 | 12393 | fi |
1c710c3c | 12394 | |
5213506e | 12395 | |
2693c0b0 PB |
12396 | fi |
12397 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12398 | done | |
12399 | ||
12400 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12401 | set dummy objcopy | |
12402 | if test $build = $host ; then | |
12403 | OBJCOPY="$2" | |
ca9f4b81 | 12404 | else |
2693c0b0 | 12405 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12406 | fi |
ca9f4b81 AO |
12407 | fi |
12408 | ||
278a7a38 AO |
12409 | |
12410 | ||
12411 | if test -n "$OBJDUMP"; then | |
12412 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12413 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12414 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12415 | fi | |
12416 | ||
12417 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12418 | for ncn_progname in objdump; do | |
12419 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12420 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12422 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12423 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12424 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12425 | else |
12426 | if test -n "$OBJDUMP"; then | |
12427 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12428 | else | |
12429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12430 | for as_dir in $PATH | |
12431 | do | |
12432 | IFS=$as_save_IFS | |
12433 | test -z "$as_dir" && as_dir=. | |
5213506e | 12434 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12435 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12436 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12438 | break 2 |
12439 | fi | |
12440 | done | |
5213506e RW |
12441 | done |
12442 | IFS=$as_save_IFS | |
278a7a38 AO |
12443 | |
12444 | fi | |
12445 | fi | |
12446 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12447 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12449 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12450 | else |
5213506e RW |
12451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12452 | $as_echo "no" >&6; } | |
278a7a38 AO |
12453 | fi |
12454 | ||
5213506e | 12455 | |
278a7a38 AO |
12456 | done |
12457 | fi | |
12458 | ||
12459 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12460 | if test -n "$ncn_tool_prefix"; then |
12461 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12462 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12464 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12465 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12466 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12467 | else |
12468 | if test -n "$OBJDUMP"; then | |
12469 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12470 | else | |
1c710c3c DJ |
12471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12472 | for as_dir in $PATH | |
12473 | do | |
12474 | IFS=$as_save_IFS | |
12475 | test -z "$as_dir" && as_dir=. | |
5213506e | 12476 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12478 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12480 | break 2 |
12481 | fi | |
12482 | done | |
5213506e RW |
12483 | done |
12484 | IFS=$as_save_IFS | |
1c710c3c | 12485 | |
ca9f4b81 AO |
12486 | fi |
12487 | fi | |
1c710c3c | 12488 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 12489 | if test -n "$OBJDUMP"; then |
5213506e RW |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12491 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12492 | else |
5213506e RW |
12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12494 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12495 | fi |
12496 | ||
5213506e | 12497 | |
2693c0b0 PB |
12498 | fi |
12499 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12500 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12501 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12503 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12504 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12505 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12506 | else |
2693c0b0 PB |
12507 | if test -n "$OBJDUMP"; then |
12508 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12509 | else |
1c710c3c DJ |
12510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12511 | for as_dir in $PATH | |
12512 | do | |
12513 | IFS=$as_save_IFS | |
12514 | test -z "$as_dir" && as_dir=. | |
5213506e | 12515 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12516 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12517 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12519 | break 2 |
12520 | fi | |
12521 | done | |
5213506e RW |
12522 | done |
12523 | IFS=$as_save_IFS | |
1c710c3c | 12524 | |
ca9f4b81 AO |
12525 | fi |
12526 | fi | |
1c710c3c | 12527 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12528 | if test -n "$OBJDUMP"; then |
5213506e RW |
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12530 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12531 | else |
5213506e RW |
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12533 | $as_echo "no" >&6; } | |
ca9f4b81 | 12534 | fi |
1c710c3c | 12535 | |
5213506e | 12536 | |
2693c0b0 PB |
12537 | fi |
12538 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12539 | done | |
12540 | ||
12541 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12542 | set dummy objdump | |
12543 | if test $build = $host ; then | |
12544 | OBJDUMP="$2" | |
ca9f4b81 | 12545 | else |
2693c0b0 | 12546 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12547 | fi |
ca9f4b81 AO |
12548 | fi |
12549 | ||
671aa708 NN |
12550 | |
12551 | ||
e4a9a572 IS |
12552 | if test -n "$OTOOL"; then |
12553 | ac_cv_prog_OTOOL=$OTOOL | |
12554 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12555 | OTOOL=$ac_cv_prog_OTOOL | |
12556 | fi | |
12557 | ||
12558 | if test -n "$ac_cv_prog_OTOOL"; then | |
12559 | for ncn_progname in otool; do | |
12560 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12561 | set dummy ${ncn_progname}; ac_word=$2 | |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12563 | $as_echo_n "checking for $ac_word... " >&6; } | |
12564 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12565 | $as_echo_n "(cached) " >&6 | |
12566 | else | |
12567 | if test -n "$OTOOL"; then | |
12568 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12569 | else | |
12570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12571 | for as_dir in $PATH | |
12572 | do | |
12573 | IFS=$as_save_IFS | |
12574 | test -z "$as_dir" && as_dir=. | |
12575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12577 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12579 | break 2 | |
12580 | fi | |
12581 | done | |
12582 | done | |
12583 | IFS=$as_save_IFS | |
12584 | ||
12585 | fi | |
12586 | fi | |
12587 | OTOOL=$ac_cv_prog_OTOOL | |
12588 | if test -n "$OTOOL"; then | |
12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12590 | $as_echo "$OTOOL" >&6; } | |
12591 | else | |
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12593 | $as_echo "no" >&6; } | |
12594 | fi | |
12595 | ||
12596 | ||
12597 | done | |
12598 | fi | |
12599 | ||
12600 | for ncn_progname in otool; do | |
12601 | if test -n "$ncn_tool_prefix"; then | |
12602 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12603 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12605 | $as_echo_n "checking for $ac_word... " >&6; } | |
12606 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12607 | $as_echo_n "(cached) " >&6 | |
12608 | else | |
12609 | if test -n "$OTOOL"; then | |
12610 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12611 | else | |
12612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12613 | for as_dir in $PATH | |
12614 | do | |
12615 | IFS=$as_save_IFS | |
12616 | test -z "$as_dir" && as_dir=. | |
12617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12618 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12619 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
12620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12621 | break 2 | |
12622 | fi | |
12623 | done | |
12624 | done | |
12625 | IFS=$as_save_IFS | |
12626 | ||
12627 | fi | |
12628 | fi | |
12629 | OTOOL=$ac_cv_prog_OTOOL | |
12630 | if test -n "$OTOOL"; then | |
12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12632 | $as_echo "$OTOOL" >&6; } | |
12633 | else | |
12634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12635 | $as_echo "no" >&6; } | |
12636 | fi | |
12637 | ||
12638 | ||
12639 | fi | |
12640 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12641 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12642 | set dummy ${ncn_progname}; ac_word=$2 | |
12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12644 | $as_echo_n "checking for $ac_word... " >&6; } | |
12645 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12646 | $as_echo_n "(cached) " >&6 | |
12647 | else | |
12648 | if test -n "$OTOOL"; then | |
12649 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12650 | else | |
12651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12652 | for as_dir in $PATH | |
12653 | do | |
12654 | IFS=$as_save_IFS | |
12655 | test -z "$as_dir" && as_dir=. | |
12656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12658 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12660 | break 2 | |
12661 | fi | |
12662 | done | |
12663 | done | |
12664 | IFS=$as_save_IFS | |
12665 | ||
12666 | fi | |
12667 | fi | |
12668 | OTOOL=$ac_cv_prog_OTOOL | |
12669 | if test -n "$OTOOL"; then | |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12671 | $as_echo "$OTOOL" >&6; } | |
12672 | else | |
12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12674 | $as_echo "no" >&6; } | |
12675 | fi | |
12676 | ||
12677 | ||
12678 | fi | |
12679 | test -n "$ac_cv_prog_OTOOL" && break | |
12680 | done | |
12681 | ||
12682 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12683 | set dummy otool | |
12684 | if test $build = $host ; then | |
12685 | OTOOL="$2" | |
12686 | else | |
12687 | OTOOL="${ncn_tool_prefix}$2" | |
12688 | fi | |
12689 | fi | |
12690 | ||
12691 | ||
12692 | ||
e7a82751 RM |
12693 | if test -n "$READELF"; then |
12694 | ac_cv_prog_READELF=$READELF | |
12695 | elif test -n "$ac_cv_prog_READELF"; then | |
12696 | READELF=$ac_cv_prog_READELF | |
12697 | fi | |
12698 | ||
12699 | if test -n "$ac_cv_prog_READELF"; then | |
12700 | for ncn_progname in readelf; do | |
12701 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12702 | set dummy ${ncn_progname}; ac_word=$2 | |
12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12704 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12705 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12706 | $as_echo_n "(cached) " >&6 |
12707 | else | |
12708 | if test -n "$READELF"; then | |
12709 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12710 | else | |
12711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12712 | for as_dir in $PATH | |
12713 | do | |
12714 | IFS=$as_save_IFS | |
12715 | test -z "$as_dir" && as_dir=. | |
12716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12717 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12718 | ac_cv_prog_READELF="${ncn_progname}" |
12719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12720 | break 2 | |
12721 | fi | |
12722 | done | |
12723 | done | |
12724 | IFS=$as_save_IFS | |
12725 | ||
12726 | fi | |
12727 | fi | |
12728 | READELF=$ac_cv_prog_READELF | |
12729 | if test -n "$READELF"; then | |
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12731 | $as_echo "$READELF" >&6; } | |
12732 | else | |
12733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12734 | $as_echo "no" >&6; } | |
12735 | fi | |
12736 | ||
12737 | ||
12738 | done | |
12739 | fi | |
12740 | ||
12741 | for ncn_progname in readelf; do | |
12742 | if test -n "$ncn_tool_prefix"; then | |
12743 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12744 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12746 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12747 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12748 | $as_echo_n "(cached) " >&6 |
12749 | else | |
12750 | if test -n "$READELF"; then | |
12751 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12752 | else | |
12753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12754 | for as_dir in $PATH | |
12755 | do | |
12756 | IFS=$as_save_IFS | |
12757 | test -z "$as_dir" && as_dir=. | |
12758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12760 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12762 | break 2 | |
12763 | fi | |
12764 | done | |
12765 | done | |
12766 | IFS=$as_save_IFS | |
12767 | ||
12768 | fi | |
12769 | fi | |
12770 | READELF=$ac_cv_prog_READELF | |
12771 | if test -n "$READELF"; then | |
12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12773 | $as_echo "$READELF" >&6; } | |
12774 | else | |
12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12776 | $as_echo "no" >&6; } | |
12777 | fi | |
12778 | ||
12779 | ||
12780 | fi | |
12781 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12782 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12783 | set dummy ${ncn_progname}; ac_word=$2 | |
12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12785 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12786 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12787 | $as_echo_n "(cached) " >&6 |
12788 | else | |
12789 | if test -n "$READELF"; then | |
12790 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12791 | else | |
12792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12793 | for as_dir in $PATH | |
12794 | do | |
12795 | IFS=$as_save_IFS | |
12796 | test -z "$as_dir" && as_dir=. | |
12797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12799 | ac_cv_prog_READELF="${ncn_progname}" |
12800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12801 | break 2 | |
12802 | fi | |
12803 | done | |
12804 | done | |
12805 | IFS=$as_save_IFS | |
12806 | ||
12807 | fi | |
12808 | fi | |
12809 | READELF=$ac_cv_prog_READELF | |
12810 | if test -n "$READELF"; then | |
12811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12812 | $as_echo "$READELF" >&6; } | |
12813 | else | |
12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12815 | $as_echo "no" >&6; } | |
12816 | fi | |
12817 | ||
12818 | ||
12819 | fi | |
12820 | test -n "$ac_cv_prog_READELF" && break | |
12821 | done | |
12822 | ||
12823 | if test -z "$ac_cv_prog_READELF" ; then | |
12824 | set dummy readelf | |
12825 | if test $build = $host ; then | |
12826 | READELF="$2" | |
12827 | else | |
12828 | READELF="${ncn_tool_prefix}$2" | |
12829 | fi | |
12830 | fi | |
12831 | ||
12832 | ||
12833 | ||
671aa708 NN |
12834 | |
12835 | ||
12836 | ||
5fee5ec3 IB |
12837 | |
12838 | ||
2abefe3d | 12839 | # Target tools. |
1c710c3c | 12840 | |
5213506e RW |
12841 | # Check whether --with-build-time-tools was given. |
12842 | if test "${with_build_time_tools+set}" = set; then : | |
12843 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
12844 | x/*) ;; |
12845 | *) | |
12846 | with_build_time_tools= | |
5213506e RW |
12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
12848 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
12849 | ;; |
12850 | esac | |
ca9f4b81 | 12851 | else |
e8b05380 | 12852 | with_build_time_tools= |
5213506e RW |
12853 | fi |
12854 | ||
ca9f4b81 | 12855 | |
278a7a38 AO |
12856 | |
12857 | ||
12858 | if test -n "$CC_FOR_TARGET"; then | |
12859 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
12860 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12861 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12862 | fi | |
12863 | ||
12864 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12865 | for ncn_progname in cc gcc; do | |
12866 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12867 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12869 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12870 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12871 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12872 | else |
12873 | if test -n "$CC_FOR_TARGET"; then | |
12874 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12875 | else | |
12876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12877 | for as_dir in $PATH | |
12878 | do | |
12879 | IFS=$as_save_IFS | |
12880 | test -z "$as_dir" && as_dir=. | |
5213506e | 12881 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12882 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12883 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12885 | break 2 |
12886 | fi | |
12887 | done | |
5213506e RW |
12888 | done |
12889 | IFS=$as_save_IFS | |
278a7a38 AO |
12890 | |
12891 | fi | |
12892 | fi | |
12893 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12894 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
12895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12896 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 12897 | else |
5213506e RW |
12898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12899 | $as_echo "no" >&6; } | |
278a7a38 AO |
12900 | fi |
12901 | ||
5213506e | 12902 | |
278a7a38 AO |
12903 | done |
12904 | fi | |
12905 | ||
12906 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12907 | for ncn_progname in cc gcc; do |
5213506e RW |
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12909 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12910 | if test -x $with_build_time_tools/${ncn_progname}; then |
12911 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12913 | $as_echo "yes" >&6; } | |
72a7ab82 | 12914 | break |
e8b05380 | 12915 | else |
5213506e RW |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12917 | $as_echo "no" >&6; } | |
72a7ab82 AP |
12918 | fi |
12919 | done | |
4de997d1 PB |
12920 | fi |
12921 | ||
e8b05380 PB |
12922 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
12923 | for ncn_progname in cc gcc; do | |
12924 | if test -n "$ncn_target_tool_prefix"; then | |
12925 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12926 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12928 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12929 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12930 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
12931 | else |
12932 | if test -n "$CC_FOR_TARGET"; then | |
12933 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12934 | else | |
1c710c3c DJ |
12935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12936 | for as_dir in $PATH | |
12937 | do | |
12938 | IFS=$as_save_IFS | |
12939 | test -z "$as_dir" && as_dir=. | |
5213506e | 12940 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12942 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12944 | break 2 |
12945 | fi | |
12946 | done | |
5213506e RW |
12947 | done |
12948 | IFS=$as_save_IFS | |
1c710c3c | 12949 | |
4de997d1 PB |
12950 | fi |
12951 | fi | |
1c710c3c | 12952 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 12953 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12955 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12956 | else |
5213506e RW |
12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12958 | $as_echo "no" >&6; } | |
4de997d1 PB |
12959 | fi |
12960 | ||
5213506e | 12961 | |
e8b05380 PB |
12962 | fi |
12963 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
12964 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12965 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12967 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12968 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12969 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12970 | else |
2693c0b0 PB |
12971 | if test -n "$CC_FOR_TARGET"; then |
12972 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12973 | else |
1c710c3c DJ |
12974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12975 | for as_dir in $PATH | |
12976 | do | |
12977 | IFS=$as_save_IFS | |
12978 | test -z "$as_dir" && as_dir=. | |
5213506e | 12979 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12981 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12983 | break 2 |
12984 | fi | |
12985 | done | |
5213506e RW |
12986 | done |
12987 | IFS=$as_save_IFS | |
1c710c3c | 12988 | |
4de997d1 PB |
12989 | fi |
12990 | fi | |
1c710c3c | 12991 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 12992 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12994 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12995 | else |
5213506e RW |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12997 | $as_echo "no" >&6; } | |
4de997d1 | 12998 | fi |
1c710c3c | 12999 | |
5213506e | 13000 | |
e8b05380 PB |
13001 | fi |
13002 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
13003 | done | |
13004 | fi | |
1c710c3c | 13005 | |
2693c0b0 PB |
13006 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
13007 | set dummy cc gcc | |
13008 | if test $build = $target ; then | |
13009 | CC_FOR_TARGET="$2" | |
4de997d1 | 13010 | else |
2693c0b0 | 13011 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13012 | fi |
1c00b503 PB |
13013 | else |
13014 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
13015 | fi |
13016 | ||
278a7a38 AO |
13017 | |
13018 | ||
13019 | if test -n "$CXX_FOR_TARGET"; then | |
13020 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13021 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13022 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13023 | fi | |
13024 | ||
13025 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13026 | for ncn_progname in c++ g++ cxx gxx; do | |
13027 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13028 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13030 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13031 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13032 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13033 | else |
13034 | if test -n "$CXX_FOR_TARGET"; then | |
13035 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13036 | else | |
13037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13038 | for as_dir in $PATH | |
13039 | do | |
13040 | IFS=$as_save_IFS | |
13041 | test -z "$as_dir" && as_dir=. | |
5213506e | 13042 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13043 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13044 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13046 | break 2 |
13047 | fi | |
13048 | done | |
5213506e RW |
13049 | done |
13050 | IFS=$as_save_IFS | |
278a7a38 AO |
13051 | |
13052 | fi | |
13053 | fi | |
13054 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13055 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
13056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13057 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 13058 | else |
5213506e RW |
13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13060 | $as_echo "no" >&6; } | |
278a7a38 AO |
13061 | fi |
13062 | ||
5213506e | 13063 | |
278a7a38 AO |
13064 | done |
13065 | fi | |
13066 | ||
13067 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13068 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13070 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13071 | if test -x $with_build_time_tools/${ncn_progname}; then |
13072 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13074 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13075 | break |
13076 | else | |
5213506e RW |
13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13078 | $as_echo "no" >&6; } | |
e8b05380 PB |
13079 | fi |
13080 | done | |
13081 | fi | |
13082 | ||
13083 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13084 | for ncn_progname in c++ g++ cxx gxx; do | |
13085 | if test -n "$ncn_target_tool_prefix"; then | |
13086 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13087 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13089 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13090 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13091 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13092 | else |
13093 | if test -n "$CXX_FOR_TARGET"; then | |
13094 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13095 | else | |
1c710c3c DJ |
13096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13097 | for as_dir in $PATH | |
13098 | do | |
13099 | IFS=$as_save_IFS | |
13100 | test -z "$as_dir" && as_dir=. | |
5213506e | 13101 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13103 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13105 | break 2 |
13106 | fi | |
13107 | done | |
5213506e RW |
13108 | done |
13109 | IFS=$as_save_IFS | |
1c710c3c | 13110 | |
4de997d1 PB |
13111 | fi |
13112 | fi | |
1c710c3c | 13113 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 13114 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13116 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13117 | else |
5213506e RW |
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13119 | $as_echo "no" >&6; } | |
4de997d1 PB |
13120 | fi |
13121 | ||
5213506e | 13122 | |
e8b05380 PB |
13123 | fi |
13124 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13125 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13126 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13128 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13129 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13130 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13131 | else |
2693c0b0 PB |
13132 | if test -n "$CXX_FOR_TARGET"; then |
13133 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13134 | else |
1c710c3c DJ |
13135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13136 | for as_dir in $PATH | |
13137 | do | |
13138 | IFS=$as_save_IFS | |
13139 | test -z "$as_dir" && as_dir=. | |
5213506e | 13140 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13142 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13144 | break 2 |
13145 | fi | |
13146 | done | |
5213506e RW |
13147 | done |
13148 | IFS=$as_save_IFS | |
1c710c3c | 13149 | |
4de997d1 PB |
13150 | fi |
13151 | fi | |
1c710c3c | 13152 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 13153 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13155 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13156 | else |
5213506e RW |
13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13158 | $as_echo "no" >&6; } | |
4de997d1 | 13159 | fi |
1c710c3c | 13160 | |
5213506e | 13161 | |
e8b05380 PB |
13162 | fi |
13163 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13164 | done | |
13165 | fi | |
1c710c3c | 13166 | |
2693c0b0 PB |
13167 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13168 | set dummy c++ g++ cxx gxx | |
13169 | if test $build = $target ; then | |
13170 | CXX_FOR_TARGET="$2" | |
4de997d1 | 13171 | else |
2693c0b0 | 13172 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13173 | fi |
1c00b503 PB |
13174 | else |
13175 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
13176 | fi |
13177 | ||
278a7a38 AO |
13178 | |
13179 | ||
13180 | if test -n "$GCC_FOR_TARGET"; then | |
13181 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13182 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13183 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13184 | fi | |
13185 | ||
13186 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13187 | for ncn_progname in gcc; do | |
13188 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13189 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13191 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13192 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13193 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13194 | else |
13195 | if test -n "$GCC_FOR_TARGET"; then | |
13196 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13197 | else | |
13198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13199 | for as_dir in $PATH | |
13200 | do | |
13201 | IFS=$as_save_IFS | |
13202 | test -z "$as_dir" && as_dir=. | |
5213506e | 13203 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13204 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13205 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13207 | break 2 |
13208 | fi | |
13209 | done | |
5213506e RW |
13210 | done |
13211 | IFS=$as_save_IFS | |
278a7a38 AO |
13212 | |
13213 | fi | |
13214 | fi | |
13215 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13216 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
13217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13218 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 13219 | else |
5213506e RW |
13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13221 | $as_echo "no" >&6; } | |
278a7a38 AO |
13222 | fi |
13223 | ||
5213506e | 13224 | |
278a7a38 AO |
13225 | done |
13226 | fi | |
13227 | ||
13228 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13229 | for ncn_progname in gcc; do |
5213506e RW |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13231 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13232 | if test -x $with_build_time_tools/${ncn_progname}; then |
13233 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13235 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13236 | break |
13237 | else | |
5213506e RW |
13238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13239 | $as_echo "no" >&6; } | |
e8b05380 PB |
13240 | fi |
13241 | done | |
13242 | fi | |
13243 | ||
13244 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13245 | for ncn_progname in gcc; do | |
13246 | if test -n "$ncn_target_tool_prefix"; then | |
13247 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13248 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13250 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13251 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13252 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13253 | else |
e8b05380 PB |
13254 | if test -n "$GCC_FOR_TARGET"; then |
13255 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13256 | else |
1c710c3c DJ |
13257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13258 | for as_dir in $PATH | |
13259 | do | |
13260 | IFS=$as_save_IFS | |
13261 | test -z "$as_dir" && as_dir=. | |
5213506e | 13262 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13264 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13266 | break 2 |
13267 | fi | |
13268 | done | |
5213506e RW |
13269 | done |
13270 | IFS=$as_save_IFS | |
1c710c3c | 13271 | |
ca9f4b81 AO |
13272 | fi |
13273 | fi | |
1c710c3c | 13274 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13275 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13277 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13278 | else |
5213506e RW |
13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13280 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13281 | fi |
13282 | ||
5213506e | 13283 | |
e8b05380 PB |
13284 | fi |
13285 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13286 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13287 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13289 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13290 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13291 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13292 | else |
e8b05380 PB |
13293 | if test -n "$GCC_FOR_TARGET"; then |
13294 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13295 | else |
1c710c3c DJ |
13296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13297 | for as_dir in $PATH | |
13298 | do | |
13299 | IFS=$as_save_IFS | |
13300 | test -z "$as_dir" && as_dir=. | |
5213506e | 13301 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13303 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13305 | break 2 |
13306 | fi | |
13307 | done | |
5213506e RW |
13308 | done |
13309 | IFS=$as_save_IFS | |
1c710c3c | 13310 | |
ca9f4b81 AO |
13311 | fi |
13312 | fi | |
1c710c3c | 13313 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13314 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13316 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13317 | else |
5213506e RW |
13318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13319 | $as_echo "no" >&6; } | |
ca9f4b81 | 13320 | fi |
1c710c3c | 13321 | |
5213506e | 13322 | |
e8b05380 PB |
13323 | fi |
13324 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13325 | done | |
13326 | fi | |
1c710c3c | 13327 | |
e8b05380 PB |
13328 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13329 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
13330 | else |
13331 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
13332 | fi |
13333 | ||
278a7a38 AO |
13334 | |
13335 | ||
278a7a38 AO |
13336 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13337 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13338 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13339 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
13340 | fi |
13341 | ||
278a7a38 AO |
13342 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13343 | for ncn_progname in gfortran; do | |
13344 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 13345 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13347 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13348 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13349 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13350 | else |
278a7a38 AO |
13351 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13352 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 13353 | else |
1c710c3c DJ |
13354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13355 | for as_dir in $PATH | |
13356 | do | |
13357 | IFS=$as_save_IFS | |
13358 | test -z "$as_dir" && as_dir=. | |
5213506e | 13359 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13360 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13361 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13363 | break 2 |
13364 | fi | |
13365 | done | |
5213506e RW |
13366 | done |
13367 | IFS=$as_save_IFS | |
1c710c3c | 13368 | |
e8b05380 PB |
13369 | fi |
13370 | fi | |
278a7a38 AO |
13371 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13372 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13374 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13375 | else |
5213506e RW |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13377 | $as_echo "no" >&6; } | |
e8b05380 | 13378 | fi |
1c710c3c | 13379 | |
5213506e | 13380 | |
e8b05380 PB |
13381 | done |
13382 | fi | |
1c710c3c | 13383 | |
278a7a38 | 13384 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 13385 | for ncn_progname in gfortran; do |
5213506e RW |
13386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13387 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13388 | if test -x $with_build_time_tools/${ncn_progname}; then |
13389 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13391 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13392 | break |
13393 | else | |
5213506e RW |
13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13395 | $as_echo "no" >&6; } | |
e8b05380 PB |
13396 | fi |
13397 | done | |
13398 | fi | |
13399 | ||
13400 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13401 | for ncn_progname in gfortran; do | |
13402 | if test -n "$ncn_target_tool_prefix"; then | |
13403 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13404 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13406 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13407 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13408 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13409 | else |
13410 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13411 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13412 | else | |
13413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13414 | for as_dir in $PATH | |
13415 | do | |
13416 | IFS=$as_save_IFS | |
13417 | test -z "$as_dir" && as_dir=. | |
5213506e | 13418 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13419 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13420 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13422 | break 2 |
13423 | fi | |
13424 | done | |
5213506e RW |
13425 | done |
13426 | IFS=$as_save_IFS | |
1c710c3c | 13427 | |
e8b05380 PB |
13428 | fi |
13429 | fi | |
1c710c3c | 13430 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13431 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13433 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13434 | else |
5213506e RW |
13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13436 | $as_echo "no" >&6; } | |
e8b05380 PB |
13437 | fi |
13438 | ||
5213506e | 13439 | |
e8b05380 PB |
13440 | fi |
13441 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13442 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13443 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13445 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13446 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13447 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13448 | else |
13449 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13450 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13451 | else | |
1c710c3c DJ |
13452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13453 | for as_dir in $PATH | |
13454 | do | |
13455 | IFS=$as_save_IFS | |
13456 | test -z "$as_dir" && as_dir=. | |
5213506e | 13457 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13458 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13459 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13461 | break 2 |
13462 | fi | |
13463 | done | |
5213506e RW |
13464 | done |
13465 | IFS=$as_save_IFS | |
1c710c3c | 13466 | |
e8b05380 PB |
13467 | fi |
13468 | fi | |
1c710c3c | 13469 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13470 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13472 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13473 | else |
5213506e RW |
13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13475 | $as_echo "no" >&6; } | |
e8b05380 | 13476 | fi |
1c710c3c | 13477 | |
5213506e | 13478 | |
e8b05380 PB |
13479 | fi |
13480 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13481 | done | |
13482 | fi | |
1c710c3c | 13483 | |
e8b05380 PB |
13484 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13485 | set dummy gfortran | |
2693c0b0 | 13486 | if test $build = $target ; then |
e8b05380 | 13487 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13488 | else |
e8b05380 PB |
13489 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13490 | fi | |
1c00b503 PB |
13491 | else |
13492 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13493 | fi |
13494 | ||
13495 | ||
13496 | ||
632e2a07 ILT |
13497 | if test -n "$GOC_FOR_TARGET"; then |
13498 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13499 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13500 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13501 | fi | |
13502 | ||
13503 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13504 | for ncn_progname in gccgo; do | |
13505 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13506 | set dummy ${ncn_progname}; ac_word=$2 | |
13507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13508 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13509 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13510 | $as_echo_n "(cached) " >&6 |
13511 | else | |
13512 | if test -n "$GOC_FOR_TARGET"; then | |
13513 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13514 | else | |
13515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13516 | for as_dir in $PATH | |
13517 | do | |
13518 | IFS=$as_save_IFS | |
13519 | test -z "$as_dir" && as_dir=. | |
13520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13522 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13524 | break 2 | |
13525 | fi | |
13526 | done | |
13527 | done | |
13528 | IFS=$as_save_IFS | |
13529 | ||
13530 | fi | |
13531 | fi | |
13532 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13533 | if test -n "$GOC_FOR_TARGET"; then | |
13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13535 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13536 | else | |
13537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13538 | $as_echo "no" >&6; } | |
13539 | fi | |
13540 | ||
13541 | ||
13542 | done | |
13543 | fi | |
13544 | ||
13545 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13546 | for ncn_progname in gccgo; do | |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13548 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13549 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13550 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13552 | $as_echo "yes" >&6; } | |
13553 | break | |
13554 | else | |
13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13556 | $as_echo "no" >&6; } | |
13557 | fi | |
13558 | done | |
13559 | fi | |
13560 | ||
13561 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13562 | for ncn_progname in gccgo; do | |
13563 | if test -n "$ncn_target_tool_prefix"; then | |
13564 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13565 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13567 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13568 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13569 | $as_echo_n "(cached) " >&6 |
13570 | else | |
13571 | if test -n "$GOC_FOR_TARGET"; then | |
13572 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13573 | else | |
13574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13575 | for as_dir in $PATH | |
13576 | do | |
13577 | IFS=$as_save_IFS | |
13578 | test -z "$as_dir" && as_dir=. | |
13579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13581 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13583 | break 2 | |
13584 | fi | |
13585 | done | |
13586 | done | |
13587 | IFS=$as_save_IFS | |
13588 | ||
13589 | fi | |
13590 | fi | |
13591 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13592 | if test -n "$GOC_FOR_TARGET"; then | |
13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13594 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13595 | else | |
13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13597 | $as_echo "no" >&6; } | |
13598 | fi | |
13599 | ||
13600 | ||
13601 | fi | |
13602 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13603 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13604 | set dummy ${ncn_progname}; ac_word=$2 | |
13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13606 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13607 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13608 | $as_echo_n "(cached) " >&6 |
13609 | else | |
13610 | if test -n "$GOC_FOR_TARGET"; then | |
13611 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13612 | else | |
13613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13614 | for as_dir in $PATH | |
13615 | do | |
13616 | IFS=$as_save_IFS | |
13617 | test -z "$as_dir" && as_dir=. | |
13618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13620 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13622 | break 2 | |
13623 | fi | |
13624 | done | |
13625 | done | |
13626 | IFS=$as_save_IFS | |
13627 | ||
13628 | fi | |
13629 | fi | |
13630 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13631 | if test -n "$GOC_FOR_TARGET"; then | |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13633 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13634 | else | |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13636 | $as_echo "no" >&6; } | |
13637 | fi | |
13638 | ||
13639 | ||
13640 | fi | |
13641 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
13642 | done | |
13643 | fi | |
13644 | ||
13645 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
13646 | set dummy gccgo | |
13647 | if test $build = $target ; then | |
13648 | GOC_FOR_TARGET="$2" | |
13649 | else | |
13650 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13651 | fi | |
13652 | else | |
13653 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
13654 | fi | |
13655 | ||
13656 | ||
13657 | ||
b4c522fa IB |
13658 | if test -n "$GDC_FOR_TARGET"; then |
13659 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13660 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13661 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13662 | fi | |
13663 | ||
13664 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13665 | for ncn_progname in gdc; do | |
13666 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13667 | set dummy ${ncn_progname}; ac_word=$2 | |
13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13669 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13670 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13671 | $as_echo_n "(cached) " >&6 |
13672 | else | |
13673 | if test -n "$GDC_FOR_TARGET"; then | |
13674 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13675 | else | |
13676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13677 | for as_dir in $PATH | |
13678 | do | |
13679 | IFS=$as_save_IFS | |
13680 | test -z "$as_dir" && as_dir=. | |
13681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13683 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13685 | break 2 | |
13686 | fi | |
13687 | done | |
13688 | done | |
13689 | IFS=$as_save_IFS | |
13690 | ||
13691 | fi | |
13692 | fi | |
13693 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13694 | if test -n "$GDC_FOR_TARGET"; then | |
13695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13696 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13697 | else | |
13698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13699 | $as_echo "no" >&6; } | |
13700 | fi | |
13701 | ||
13702 | ||
13703 | done | |
13704 | fi | |
13705 | ||
13706 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13707 | for ncn_progname in gdc; do | |
13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13709 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13710 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13711 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13713 | $as_echo "yes" >&6; } | |
13714 | break | |
13715 | else | |
13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13717 | $as_echo "no" >&6; } | |
13718 | fi | |
13719 | done | |
13720 | fi | |
13721 | ||
13722 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13723 | for ncn_progname in gdc; do | |
13724 | if test -n "$ncn_target_tool_prefix"; then | |
13725 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13726 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13728 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13729 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13730 | $as_echo_n "(cached) " >&6 |
13731 | else | |
13732 | if test -n "$GDC_FOR_TARGET"; then | |
13733 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13734 | else | |
13735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13736 | for as_dir in $PATH | |
13737 | do | |
13738 | IFS=$as_save_IFS | |
13739 | test -z "$as_dir" && as_dir=. | |
13740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13742 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13744 | break 2 | |
13745 | fi | |
13746 | done | |
13747 | done | |
13748 | IFS=$as_save_IFS | |
13749 | ||
13750 | fi | |
13751 | fi | |
13752 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13753 | if test -n "$GDC_FOR_TARGET"; then | |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13755 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13756 | else | |
13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13758 | $as_echo "no" >&6; } | |
13759 | fi | |
13760 | ||
13761 | ||
13762 | fi | |
13763 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
13764 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13765 | set dummy ${ncn_progname}; ac_word=$2 | |
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13767 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13768 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13769 | $as_echo_n "(cached) " >&6 |
13770 | else | |
13771 | if test -n "$GDC_FOR_TARGET"; then | |
13772 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13773 | else | |
13774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13775 | for as_dir in $PATH | |
13776 | do | |
13777 | IFS=$as_save_IFS | |
13778 | test -z "$as_dir" && as_dir=. | |
13779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13780 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13781 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13783 | break 2 | |
13784 | fi | |
13785 | done | |
13786 | done | |
13787 | IFS=$as_save_IFS | |
13788 | ||
13789 | fi | |
13790 | fi | |
13791 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13792 | if test -n "$GDC_FOR_TARGET"; then | |
13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13794 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13795 | else | |
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13797 | $as_echo "no" >&6; } | |
13798 | fi | |
13799 | ||
13800 | ||
13801 | fi | |
13802 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
13803 | done | |
13804 | fi | |
13805 | ||
13806 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
13807 | set dummy gdc | |
13808 | if test $build = $target ; then | |
13809 | GDC_FOR_TARGET="$2" | |
13810 | else | |
13811 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13812 | fi | |
13813 | else | |
13814 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
13815 | fi | |
13816 | ||
13817 | ||
13818 | ||
e8b05380 PB |
13819 | cat > conftest.c << \EOF |
13820 | #ifdef __GNUC__ | |
13821 | gcc_yay; | |
13822 | #endif | |
13823 | EOF | |
13824 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
13825 | have_gcc_for_target=yes | |
13826 | else | |
13827 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
13828 | have_gcc_for_target=no | |
13829 | fi | |
13830 | rm conftest.c | |
13831 | ||
13832 | ||
13833 | ||
13834 | ||
13835 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
13836 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
13838 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13839 | if test -x $with_build_time_tools/ar; then |
13840 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
13841 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
13843 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 13844 | else |
5213506e RW |
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13846 | $as_echo "no" >&6; } | |
d1f8db0c | 13847 | fi |
e8b05380 PB |
13848 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13849 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
13850 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
13851 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
13852 | fi |
13853 | fi | |
3e19841a | 13854 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13855 | # Extract the first word of "ar", so it can be a program name with args. |
13856 | set dummy ar; ac_word=$2 | |
5213506e RW |
13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13858 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13859 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 13860 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13861 | else |
1c710c3c DJ |
13862 | case $AR_FOR_TARGET in |
13863 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13864 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
13865 | ;; | |
e8b05380 | 13866 | *) |
1c710c3c DJ |
13867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13868 | for as_dir in $gcc_cv_tool_dirs | |
13869 | do | |
13870 | IFS=$as_save_IFS | |
13871 | test -z "$as_dir" && as_dir=. | |
5213506e | 13872 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13874 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13876 | break 2 |
13877 | fi | |
13878 | done | |
5213506e RW |
13879 | done |
13880 | IFS=$as_save_IFS | |
1c710c3c | 13881 | |
e8b05380 PB |
13882 | ;; |
13883 | esac | |
13884 | fi | |
1c710c3c | 13885 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 13886 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13888 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13889 | else |
5213506e RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13891 | $as_echo "no" >&6; } | |
4de997d1 PB |
13892 | fi |
13893 | ||
5213506e | 13894 | |
e8b05380 PB |
13895 | fi |
13896 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
13897 | |
13898 | ||
13899 | if test -n "$AR_FOR_TARGET"; then | |
13900 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
13901 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13902 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13903 | fi | |
13904 | ||
13905 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13906 | for ncn_progname in ar; do | |
13907 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13908 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13910 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13911 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13912 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13913 | else |
13914 | if test -n "$AR_FOR_TARGET"; then | |
13915 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13916 | else | |
13917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13918 | for as_dir in $PATH | |
13919 | do | |
13920 | IFS=$as_save_IFS | |
13921 | test -z "$as_dir" && as_dir=. | |
5213506e | 13922 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13924 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13926 | break 2 |
13927 | fi | |
13928 | done | |
5213506e RW |
13929 | done |
13930 | IFS=$as_save_IFS | |
278a7a38 AO |
13931 | |
13932 | fi | |
13933 | fi | |
13934 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13935 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13937 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 13938 | else |
5213506e RW |
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13940 | $as_echo "no" >&6; } | |
278a7a38 AO |
13941 | fi |
13942 | ||
5213506e | 13943 | |
278a7a38 AO |
13944 | done |
13945 | fi | |
13946 | ||
13947 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13948 | for ncn_progname in ar; do |
5213506e RW |
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13950 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13951 | if test -x $with_build_time_tools/${ncn_progname}; then |
13952 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13954 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13955 | break |
13956 | else | |
5213506e RW |
13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13958 | $as_echo "no" >&6; } | |
e8b05380 PB |
13959 | fi |
13960 | done | |
13961 | fi | |
13962 | ||
13963 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
13964 | for ncn_progname in ar; do | |
13965 | if test -n "$ncn_target_tool_prefix"; then | |
13966 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13967 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13969 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13970 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13971 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13972 | else |
e8b05380 PB |
13973 | if test -n "$AR_FOR_TARGET"; then |
13974 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13975 | else |
1c710c3c DJ |
13976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13977 | for as_dir in $PATH | |
13978 | do | |
13979 | IFS=$as_save_IFS | |
13980 | test -z "$as_dir" && as_dir=. | |
5213506e | 13981 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13983 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13985 | break 2 |
13986 | fi | |
13987 | done | |
5213506e RW |
13988 | done |
13989 | IFS=$as_save_IFS | |
1c710c3c | 13990 | |
4de997d1 PB |
13991 | fi |
13992 | fi | |
1c710c3c | 13993 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13994 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13996 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 13997 | else |
5213506e RW |
13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13999 | $as_echo "no" >&6; } | |
4de997d1 PB |
14000 | fi |
14001 | ||
5213506e | 14002 | |
e8b05380 PB |
14003 | fi |
14004 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
14005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14006 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14008 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14009 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14010 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14011 | else |
14012 | if test -n "$AR_FOR_TARGET"; then | |
14013 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14014 | else | |
1c710c3c DJ |
14015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14016 | for as_dir in $PATH | |
14017 | do | |
14018 | IFS=$as_save_IFS | |
14019 | test -z "$as_dir" && as_dir=. | |
5213506e | 14020 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14022 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 14023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14024 | break 2 |
14025 | fi | |
14026 | done | |
5213506e RW |
14027 | done |
14028 | IFS=$as_save_IFS | |
1c710c3c | 14029 | |
e8b05380 PB |
14030 | fi |
14031 | fi | |
1c710c3c | 14032 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14033 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14035 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 14036 | else |
5213506e RW |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14038 | $as_echo "no" >&6; } | |
e8b05380 | 14039 | fi |
1c710c3c | 14040 | |
5213506e | 14041 | |
e8b05380 PB |
14042 | fi |
14043 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14044 | done | |
14045 | fi | |
1c710c3c | 14046 | |
e8b05380 PB |
14047 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14048 | set dummy ar | |
14049 | if test $build = $target ; then | |
14050 | AR_FOR_TARGET="$2" | |
14051 | else | |
14052 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 14053 | fi |
1c00b503 PB |
14054 | else |
14055 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
14056 | fi |
14057 | ||
d1f8db0c PB |
14058 | else |
14059 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
14060 | fi |
14061 | ||
14062 | ||
14063 | ||
14064 | ||
14065 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14066 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14068 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14069 | if test -x $with_build_time_tools/as; then |
14070 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14071 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
14072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14073 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 14074 | else |
5213506e RW |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14076 | $as_echo "no" >&6; } | |
d1f8db0c | 14077 | fi |
e8b05380 PB |
14078 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14079 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
14080 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14081 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
14082 | fi |
14083 | fi | |
3e19841a | 14084 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14085 | # Extract the first word of "as", so it can be a program name with args. |
14086 | set dummy as; ac_word=$2 | |
5213506e RW |
14087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14088 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14089 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 14090 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14091 | else |
1c710c3c DJ |
14092 | case $AS_FOR_TARGET in |
14093 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14094 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14095 | ;; | |
e8b05380 | 14096 | *) |
1c710c3c DJ |
14097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14098 | for as_dir in $gcc_cv_tool_dirs | |
14099 | do | |
14100 | IFS=$as_save_IFS | |
14101 | test -z "$as_dir" && as_dir=. | |
5213506e | 14102 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14104 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14106 | break 2 |
14107 | fi | |
14108 | done | |
5213506e RW |
14109 | done |
14110 | IFS=$as_save_IFS | |
1c710c3c | 14111 | |
e8b05380 PB |
14112 | ;; |
14113 | esac | |
14114 | fi | |
1c710c3c | 14115 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 14116 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14118 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14119 | else |
5213506e RW |
14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14121 | $as_echo "no" >&6; } | |
e8b05380 PB |
14122 | fi |
14123 | ||
5213506e | 14124 | |
e8b05380 PB |
14125 | fi |
14126 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
14127 | |
14128 | ||
14129 | if test -n "$AS_FOR_TARGET"; then | |
14130 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14131 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14132 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14133 | fi | |
14134 | ||
14135 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14136 | for ncn_progname in as; do | |
14137 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14138 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14140 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14141 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14142 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14143 | else |
14144 | if test -n "$AS_FOR_TARGET"; then | |
14145 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14146 | else | |
14147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14148 | for as_dir in $PATH | |
14149 | do | |
14150 | IFS=$as_save_IFS | |
14151 | test -z "$as_dir" && as_dir=. | |
5213506e | 14152 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14154 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14156 | break 2 |
14157 | fi | |
14158 | done | |
5213506e RW |
14159 | done |
14160 | IFS=$as_save_IFS | |
278a7a38 AO |
14161 | |
14162 | fi | |
14163 | fi | |
14164 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14165 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
14166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14167 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 14168 | else |
5213506e RW |
14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14170 | $as_echo "no" >&6; } | |
278a7a38 AO |
14171 | fi |
14172 | ||
5213506e | 14173 | |
278a7a38 AO |
14174 | done |
14175 | fi | |
14176 | ||
14177 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14178 | for ncn_progname in as; do |
5213506e RW |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14180 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14181 | if test -x $with_build_time_tools/${ncn_progname}; then |
14182 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14184 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14185 | break |
14186 | else | |
5213506e RW |
14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14188 | $as_echo "no" >&6; } | |
e8b05380 PB |
14189 | fi |
14190 | done | |
14191 | fi | |
14192 | ||
14193 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14194 | for ncn_progname in as; do | |
14195 | if test -n "$ncn_target_tool_prefix"; then | |
14196 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14197 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14199 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14200 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14201 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14202 | else |
14203 | if test -n "$AS_FOR_TARGET"; then | |
14204 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14205 | else | |
1c710c3c DJ |
14206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14207 | for as_dir in $PATH | |
14208 | do | |
14209 | IFS=$as_save_IFS | |
14210 | test -z "$as_dir" && as_dir=. | |
5213506e | 14211 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14213 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14215 | break 2 |
14216 | fi | |
14217 | done | |
5213506e RW |
14218 | done |
14219 | IFS=$as_save_IFS | |
1c710c3c | 14220 | |
e8b05380 PB |
14221 | fi |
14222 | fi | |
1c710c3c | 14223 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14224 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14226 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14227 | else |
5213506e RW |
14228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14229 | $as_echo "no" >&6; } | |
e8b05380 PB |
14230 | fi |
14231 | ||
5213506e | 14232 | |
e8b05380 PB |
14233 | fi |
14234 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14235 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14236 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14238 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14239 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14240 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14241 | else |
e8b05380 PB |
14242 | if test -n "$AS_FOR_TARGET"; then |
14243 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14244 | else |
1c710c3c DJ |
14245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14246 | for as_dir in $PATH | |
14247 | do | |
14248 | IFS=$as_save_IFS | |
14249 | test -z "$as_dir" && as_dir=. | |
5213506e | 14250 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14252 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14254 | break 2 |
14255 | fi | |
14256 | done | |
5213506e RW |
14257 | done |
14258 | IFS=$as_save_IFS | |
1c710c3c | 14259 | |
4de997d1 PB |
14260 | fi |
14261 | fi | |
1c710c3c | 14262 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14263 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14265 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 14266 | else |
5213506e RW |
14267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14268 | $as_echo "no" >&6; } | |
4de997d1 | 14269 | fi |
1c710c3c | 14270 | |
5213506e | 14271 | |
e8b05380 PB |
14272 | fi |
14273 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14274 | done | |
14275 | fi | |
1c710c3c | 14276 | |
e8b05380 PB |
14277 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14278 | set dummy as | |
14279 | if test $build = $target ; then | |
14280 | AS_FOR_TARGET="$2" | |
14281 | else | |
14282 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 14283 | fi |
1c00b503 PB |
14284 | else |
14285 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 14286 | fi |
2693c0b0 | 14287 | |
d1f8db0c PB |
14288 | else |
14289 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
14290 | fi |
14291 | ||
e8b05380 PB |
14292 | |
14293 | ||
14294 | ||
14295 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14296 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14298 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14299 | if test -x $with_build_time_tools/dlltool; then |
14300 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14301 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14303 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 14304 | else |
5213506e RW |
14305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14306 | $as_echo "no" >&6; } | |
d1f8db0c | 14307 | fi |
e8b05380 PB |
14308 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14309 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
14310 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14311 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14312 | fi |
14313 | fi | |
3e19841a | 14314 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14315 | # Extract the first word of "dlltool", so it can be a program name with args. |
14316 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
14317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14318 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14319 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14320 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14321 | else |
1c710c3c DJ |
14322 | case $DLLTOOL_FOR_TARGET in |
14323 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14324 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14325 | ;; | |
e8b05380 | 14326 | *) |
1c710c3c DJ |
14327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14328 | for as_dir in $gcc_cv_tool_dirs | |
14329 | do | |
14330 | IFS=$as_save_IFS | |
14331 | test -z "$as_dir" && as_dir=. | |
5213506e | 14332 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14333 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14334 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14336 | break 2 |
14337 | fi | |
14338 | done | |
5213506e RW |
14339 | done |
14340 | IFS=$as_save_IFS | |
1c710c3c | 14341 | |
e8b05380 PB |
14342 | ;; |
14343 | esac | |
4de997d1 | 14344 | fi |
1c710c3c | 14345 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 14346 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14348 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14349 | else |
5213506e RW |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14351 | $as_echo "no" >&6; } | |
4de997d1 PB |
14352 | fi |
14353 | ||
5213506e | 14354 | |
e8b05380 PB |
14355 | fi |
14356 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
14357 | |
14358 | ||
14359 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14360 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14361 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14362 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14363 | fi | |
14364 | ||
14365 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14366 | for ncn_progname in dlltool; do | |
14367 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14368 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14370 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14371 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14372 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14373 | else |
14374 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14375 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14376 | else | |
14377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14378 | for as_dir in $PATH | |
14379 | do | |
14380 | IFS=$as_save_IFS | |
14381 | test -z "$as_dir" && as_dir=. | |
5213506e | 14382 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14383 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14384 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14386 | break 2 |
14387 | fi | |
14388 | done | |
5213506e RW |
14389 | done |
14390 | IFS=$as_save_IFS | |
278a7a38 AO |
14391 | |
14392 | fi | |
14393 | fi | |
14394 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14395 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14397 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 14398 | else |
5213506e RW |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14400 | $as_echo "no" >&6; } | |
278a7a38 AO |
14401 | fi |
14402 | ||
5213506e | 14403 | |
278a7a38 AO |
14404 | done |
14405 | fi | |
14406 | ||
14407 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14408 | for ncn_progname in dlltool; do |
5213506e RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14410 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14411 | if test -x $with_build_time_tools/${ncn_progname}; then |
14412 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14414 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14415 | break |
14416 | else | |
5213506e RW |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14418 | $as_echo "no" >&6; } | |
e8b05380 PB |
14419 | fi |
14420 | done | |
14421 | fi | |
14422 | ||
14423 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14424 | for ncn_progname in dlltool; do | |
14425 | if test -n "$ncn_target_tool_prefix"; then | |
14426 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14427 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14429 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14430 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14431 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14432 | else |
e8b05380 PB |
14433 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14434 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14435 | else |
1c710c3c DJ |
14436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14437 | for as_dir in $PATH | |
14438 | do | |
14439 | IFS=$as_save_IFS | |
14440 | test -z "$as_dir" && as_dir=. | |
5213506e | 14441 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14443 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14445 | break 2 |
14446 | fi | |
14447 | done | |
5213506e RW |
14448 | done |
14449 | IFS=$as_save_IFS | |
1c710c3c | 14450 | |
4de997d1 PB |
14451 | fi |
14452 | fi | |
1c710c3c | 14453 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14454 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14456 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14457 | else |
5213506e RW |
14458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14459 | $as_echo "no" >&6; } | |
4de997d1 | 14460 | fi |
4de997d1 | 14461 | |
5213506e | 14462 | |
e8b05380 PB |
14463 | fi |
14464 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14465 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14466 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14468 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14469 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14470 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14471 | else |
e8b05380 PB |
14472 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14473 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14474 | else |
1c710c3c DJ |
14475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14476 | for as_dir in $PATH | |
14477 | do | |
14478 | IFS=$as_save_IFS | |
14479 | test -z "$as_dir" && as_dir=. | |
5213506e | 14480 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14482 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14484 | break 2 |
14485 | fi | |
14486 | done | |
5213506e RW |
14487 | done |
14488 | IFS=$as_save_IFS | |
1c710c3c | 14489 | |
4de997d1 PB |
14490 | fi |
14491 | fi | |
1c710c3c | 14492 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14493 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14495 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14496 | else |
5213506e RW |
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14498 | $as_echo "no" >&6; } | |
4de997d1 | 14499 | fi |
1c710c3c | 14500 | |
5213506e | 14501 | |
e8b05380 PB |
14502 | fi |
14503 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
14504 | done | |
14505 | fi | |
1c710c3c | 14506 | |
e8b05380 PB |
14507 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
14508 | set dummy dlltool | |
14509 | if test $build = $target ; then | |
14510 | DLLTOOL_FOR_TARGET="$2" | |
14511 | else | |
14512 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14513 | fi | |
1c00b503 PB |
14514 | else |
14515 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
14516 | fi |
14517 | ||
d1f8db0c PB |
14518 | else |
14519 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14520 | fi |
14521 | ||
4de997d1 | 14522 | |
e8b05380 PB |
14523 | |
14524 | ||
3b5e8ee4 IS |
14525 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
14526 | if test -n "$with_build_time_tools"; then | |
14527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14528 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14529 | if test -x $with_build_time_tools/dsymutil; then | |
14530 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14531 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14533 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14534 | else | |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14536 | $as_echo "no" >&6; } | |
14537 | fi | |
14538 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14539 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14540 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14541 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14542 | fi | |
14543 | fi | |
14544 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14545 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14546 | set dummy dsymutil; ac_word=$2 | |
14547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14548 | $as_echo_n "checking for $ac_word... " >&6; } | |
14549 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14550 | $as_echo_n "(cached) " >&6 | |
14551 | else | |
14552 | case $DSYMUTIL_FOR_TARGET in | |
14553 | [\\/]* | ?:[\\/]*) | |
14554 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14555 | ;; | |
14556 | *) | |
14557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14558 | for as_dir in $gcc_cv_tool_dirs | |
14559 | do | |
14560 | IFS=$as_save_IFS | |
14561 | test -z "$as_dir" && as_dir=. | |
14562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14563 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14564 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14566 | break 2 | |
14567 | fi | |
14568 | done | |
14569 | done | |
14570 | IFS=$as_save_IFS | |
14571 | ||
14572 | ;; | |
14573 | esac | |
14574 | fi | |
14575 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14576 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14578 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14579 | else | |
14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14581 | $as_echo "no" >&6; } | |
14582 | fi | |
14583 | ||
14584 | ||
14585 | fi | |
14586 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14587 | ||
14588 | ||
14589 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14590 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14591 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14592 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14593 | fi | |
14594 | ||
14595 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14596 | for ncn_progname in dsymutil; do | |
14597 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14598 | set dummy ${ncn_progname}; ac_word=$2 | |
14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14600 | $as_echo_n "checking for $ac_word... " >&6; } | |
14601 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14602 | $as_echo_n "(cached) " >&6 | |
14603 | else | |
14604 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14605 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14606 | else | |
14607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14608 | for as_dir in $PATH | |
14609 | do | |
14610 | IFS=$as_save_IFS | |
14611 | test -z "$as_dir" && as_dir=. | |
14612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14613 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14614 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14616 | break 2 | |
14617 | fi | |
14618 | done | |
14619 | done | |
14620 | IFS=$as_save_IFS | |
14621 | ||
14622 | fi | |
14623 | fi | |
14624 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14625 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14627 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14628 | else | |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14630 | $as_echo "no" >&6; } | |
14631 | fi | |
14632 | ||
14633 | ||
14634 | done | |
14635 | fi | |
14636 | ||
14637 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14638 | for ncn_progname in dsymutil; do | |
14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14640 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14641 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14642 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14644 | $as_echo "yes" >&6; } | |
14645 | break | |
14646 | else | |
14647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14648 | $as_echo "no" >&6; } | |
14649 | fi | |
14650 | done | |
14651 | fi | |
14652 | ||
14653 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14654 | for ncn_progname in dsymutil; do | |
14655 | if test -n "$ncn_target_tool_prefix"; then | |
14656 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14657 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14659 | $as_echo_n "checking for $ac_word... " >&6; } | |
14660 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14661 | $as_echo_n "(cached) " >&6 | |
14662 | else | |
14663 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14664 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14665 | else | |
14666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14667 | for as_dir in $PATH | |
14668 | do | |
14669 | IFS=$as_save_IFS | |
14670 | test -z "$as_dir" && as_dir=. | |
14671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14672 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14673 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14675 | break 2 | |
14676 | fi | |
14677 | done | |
14678 | done | |
14679 | IFS=$as_save_IFS | |
14680 | ||
14681 | fi | |
14682 | fi | |
14683 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14684 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14686 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14687 | else | |
14688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14689 | $as_echo "no" >&6; } | |
14690 | fi | |
14691 | ||
14692 | ||
14693 | fi | |
14694 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14695 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14696 | set dummy ${ncn_progname}; ac_word=$2 | |
14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14698 | $as_echo_n "checking for $ac_word... " >&6; } | |
14699 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14700 | $as_echo_n "(cached) " >&6 | |
14701 | else | |
14702 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14703 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14704 | else | |
14705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14706 | for as_dir in $PATH | |
14707 | do | |
14708 | IFS=$as_save_IFS | |
14709 | test -z "$as_dir" && as_dir=. | |
14710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14712 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14714 | break 2 | |
14715 | fi | |
14716 | done | |
14717 | done | |
14718 | IFS=$as_save_IFS | |
14719 | ||
14720 | fi | |
14721 | fi | |
14722 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14723 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14725 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14726 | else | |
14727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14728 | $as_echo "no" >&6; } | |
14729 | fi | |
14730 | ||
14731 | ||
14732 | fi | |
14733 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
14734 | done | |
14735 | fi | |
14736 | ||
14737 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
14738 | set dummy dsymutil | |
14739 | if test $build = $target ; then | |
14740 | DSYMUTIL_FOR_TARGET="$2" | |
14741 | else | |
14742 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14743 | fi | |
14744 | else | |
14745 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
14746 | fi | |
14747 | ||
14748 | else | |
14749 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14750 | fi | |
14751 | ||
14752 | ||
14753 | ||
14754 | ||
e8b05380 PB |
14755 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
14756 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
14758 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14759 | if test -x $with_build_time_tools/ld; then |
14760 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
14761 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
14762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
14763 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 14764 | else |
5213506e RW |
14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14766 | $as_echo "no" >&6; } | |
d1f8db0c | 14767 | fi |
e8b05380 PB |
14768 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14769 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
14770 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
14771 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 14772 | fi |
e8b05380 | 14773 | fi |
3e19841a | 14774 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14775 | # Extract the first word of "ld", so it can be a program name with args. |
14776 | set dummy ld; ac_word=$2 | |
5213506e RW |
14777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14778 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14779 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 14780 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14781 | else |
1c710c3c DJ |
14782 | case $LD_FOR_TARGET in |
14783 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14784 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
14785 | ;; | |
e8b05380 | 14786 | *) |
1c710c3c DJ |
14787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14788 | for as_dir in $gcc_cv_tool_dirs | |
14789 | do | |
14790 | IFS=$as_save_IFS | |
14791 | test -z "$as_dir" && as_dir=. | |
5213506e | 14792 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14794 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14796 | break 2 |
14797 | fi | |
14798 | done | |
5213506e RW |
14799 | done |
14800 | IFS=$as_save_IFS | |
1c710c3c | 14801 | |
e8b05380 PB |
14802 | ;; |
14803 | esac | |
4de997d1 | 14804 | fi |
1c710c3c | 14805 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 14806 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14808 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 14809 | else |
5213506e RW |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14811 | $as_echo "no" >&6; } | |
4de997d1 | 14812 | fi |
2693c0b0 | 14813 | |
5213506e | 14814 | |
e8b05380 PB |
14815 | fi |
14816 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
14817 | |
14818 | ||
14819 | if test -n "$LD_FOR_TARGET"; then | |
14820 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
14821 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14822 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14823 | fi | |
14824 | ||
14825 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14826 | for ncn_progname in ld; do | |
14827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14828 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14830 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14831 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14832 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14833 | else |
14834 | if test -n "$LD_FOR_TARGET"; then | |
14835 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
14836 | else | |
14837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14838 | for as_dir in $PATH | |
14839 | do | |
14840 | IFS=$as_save_IFS | |
14841 | test -z "$as_dir" && as_dir=. | |
5213506e | 14842 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14844 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14846 | break 2 |
14847 | fi | |
14848 | done | |
5213506e RW |
14849 | done |
14850 | IFS=$as_save_IFS | |
278a7a38 AO |
14851 | |
14852 | fi | |
14853 | fi | |
14854 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14855 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
14856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14857 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 14858 | else |
5213506e RW |
14859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14860 | $as_echo "no" >&6; } | |
278a7a38 AO |
14861 | fi |
14862 | ||
5213506e | 14863 | |
278a7a38 AO |
14864 | done |
14865 | fi | |
14866 | ||
14867 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14868 | for ncn_progname in ld; do |
5213506e RW |
14869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14870 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14871 | if test -x $with_build_time_tools/${ncn_progname}; then |
14872 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14874 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14875 | break |
14876 | else | |
5213506e RW |
14877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14878 | $as_echo "no" >&6; } | |
e8b05380 PB |
14879 | fi |
14880 | done | |
ca9f4b81 AO |
14881 | fi |
14882 | ||
e8b05380 PB |
14883 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
14884 | for ncn_progname in ld; do | |
14885 | if test -n "$ncn_target_tool_prefix"; then | |
14886 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14887 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14889 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14890 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14891 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14892 | else |
4de997d1 PB |
14893 | if test -n "$LD_FOR_TARGET"; then |
14894 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14895 | else |
1c710c3c DJ |
14896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14897 | for as_dir in $PATH | |
14898 | do | |
14899 | IFS=$as_save_IFS | |
14900 | test -z "$as_dir" && as_dir=. | |
5213506e | 14901 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14903 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14905 | break 2 |
14906 | fi | |
14907 | done | |
5213506e RW |
14908 | done |
14909 | IFS=$as_save_IFS | |
1c710c3c | 14910 | |
ca9f4b81 AO |
14911 | fi |
14912 | fi | |
1c710c3c | 14913 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 14914 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14916 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14917 | else |
5213506e RW |
14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14919 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14920 | fi |
14921 | ||
5213506e | 14922 | |
e8b05380 PB |
14923 | fi |
14924 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
14925 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14926 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14928 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14929 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14930 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14931 | else |
2693c0b0 PB |
14932 | if test -n "$LD_FOR_TARGET"; then |
14933 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14934 | else |
1c710c3c DJ |
14935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14936 | for as_dir in $PATH | |
14937 | do | |
14938 | IFS=$as_save_IFS | |
14939 | test -z "$as_dir" && as_dir=. | |
5213506e | 14940 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14942 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14944 | break 2 |
14945 | fi | |
14946 | done | |
5213506e RW |
14947 | done |
14948 | IFS=$as_save_IFS | |
1c710c3c | 14949 | |
ca9f4b81 AO |
14950 | fi |
14951 | fi | |
1c710c3c | 14952 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 14953 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14955 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14956 | else |
5213506e RW |
14957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14958 | $as_echo "no" >&6; } | |
ca9f4b81 | 14959 | fi |
1c710c3c | 14960 | |
5213506e | 14961 | |
e8b05380 PB |
14962 | fi |
14963 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
14964 | done | |
14965 | fi | |
1c710c3c | 14966 | |
2693c0b0 PB |
14967 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
14968 | set dummy ld | |
14969 | if test $build = $target ; then | |
14970 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 14971 | else |
2693c0b0 | 14972 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14973 | fi |
1c00b503 PB |
14974 | else |
14975 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
14976 | fi |
14977 | ||
d1f8db0c PB |
14978 | else |
14979 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
14980 | fi |
14981 | ||
14982 | ||
14983 | ||
14984 | ||
14985 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14986 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
14988 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14989 | if test -x $with_build_time_tools/lipo; then |
14990 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
14991 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
14993 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 14994 | else |
5213506e RW |
14995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14996 | $as_echo "no" >&6; } | |
d1f8db0c | 14997 | fi |
e8b05380 PB |
14998 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14999 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
15000 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
15001 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
15002 | fi |
15003 | fi | |
278a7a38 AO |
15004 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
15005 | # Extract the first word of "lipo", so it can be a program name with args. | |
15006 | set dummy lipo; ac_word=$2 | |
5213506e RW |
15007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15008 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15009 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15010 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15011 | else |
15012 | case $LIPO_FOR_TARGET in | |
15013 | [\\/]* | ?:[\\/]*) | |
15014 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
15015 | ;; | |
15016 | *) | |
15017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15018 | for as_dir in $gcc_cv_tool_dirs | |
15019 | do | |
15020 | IFS=$as_save_IFS | |
15021 | test -z "$as_dir" && as_dir=. | |
5213506e | 15022 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15024 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15026 | break 2 |
15027 | fi | |
15028 | done | |
5213506e RW |
15029 | done |
15030 | IFS=$as_save_IFS | |
278a7a38 AO |
15031 | |
15032 | ;; | |
15033 | esac | |
15034 | fi | |
15035 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 15036 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15038 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 15039 | else |
5213506e RW |
15040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15041 | $as_echo "no" >&6; } | |
278a7a38 AO |
15042 | fi |
15043 | ||
5213506e | 15044 | |
278a7a38 AO |
15045 | fi |
15046 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15047 | ||
15048 | ||
15049 | if test -n "$LIPO_FOR_TARGET"; then | |
15050 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15051 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15052 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15053 | fi | |
15054 | ||
15055 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15056 | for ncn_progname in lipo; do | |
15057 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15058 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15060 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15061 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15062 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15063 | else |
278a7a38 AO |
15064 | if test -n "$LIPO_FOR_TARGET"; then |
15065 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15066 | else | |
15067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15068 | for as_dir in $PATH | |
1c710c3c DJ |
15069 | do |
15070 | IFS=$as_save_IFS | |
15071 | test -z "$as_dir" && as_dir=. | |
5213506e | 15072 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15074 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15076 | break 2 |
15077 | fi | |
15078 | done | |
5213506e RW |
15079 | done |
15080 | IFS=$as_save_IFS | |
1c710c3c | 15081 | |
e8b05380 | 15082 | fi |
278a7a38 AO |
15083 | fi |
15084 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 15085 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15087 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 15088 | else |
5213506e RW |
15089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15090 | $as_echo "no" >&6; } | |
e8b05380 PB |
15091 | fi |
15092 | ||
5213506e | 15093 | |
278a7a38 | 15094 | done |
e8b05380 | 15095 | fi |
278a7a38 AO |
15096 | |
15097 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15098 | for ncn_progname in lipo; do |
5213506e RW |
15099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15100 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15101 | if test -x $with_build_time_tools/${ncn_progname}; then |
15102 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15104 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15105 | break |
15106 | else | |
5213506e RW |
15107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15108 | $as_echo "no" >&6; } | |
e8b05380 PB |
15109 | fi |
15110 | done | |
15111 | fi | |
15112 | ||
15113 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15114 | for ncn_progname in lipo; do | |
15115 | if test -n "$ncn_target_tool_prefix"; then | |
15116 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15117 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15119 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15120 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15121 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15122 | else |
15123 | if test -n "$LIPO_FOR_TARGET"; then | |
15124 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15125 | else | |
1c710c3c DJ |
15126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15127 | for as_dir in $PATH | |
15128 | do | |
15129 | IFS=$as_save_IFS | |
15130 | test -z "$as_dir" && as_dir=. | |
5213506e | 15131 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15133 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15135 | break 2 |
15136 | fi | |
15137 | done | |
5213506e RW |
15138 | done |
15139 | IFS=$as_save_IFS | |
1c710c3c | 15140 | |
040b1c5a GK |
15141 | fi |
15142 | fi | |
1c710c3c | 15143 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15144 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15146 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15147 | else |
5213506e RW |
15148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15149 | $as_echo "no" >&6; } | |
040b1c5a GK |
15150 | fi |
15151 | ||
5213506e | 15152 | |
e8b05380 PB |
15153 | fi |
15154 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15155 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15156 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15158 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15159 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15160 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15161 | else |
15162 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
15163 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
15164 | else | |
1c710c3c DJ |
15165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15166 | for as_dir in $PATH | |
15167 | do | |
15168 | IFS=$as_save_IFS | |
15169 | test -z "$as_dir" && as_dir=. | |
5213506e | 15170 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15172 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15174 | break 2 |
15175 | fi | |
15176 | done | |
5213506e RW |
15177 | done |
15178 | IFS=$as_save_IFS | |
1c710c3c | 15179 | |
040b1c5a GK |
15180 | fi |
15181 | fi | |
1c710c3c | 15182 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15183 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15185 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15186 | else |
5213506e RW |
15187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15188 | $as_echo "no" >&6; } | |
040b1c5a | 15189 | fi |
1c710c3c | 15190 | |
5213506e | 15191 | |
e8b05380 PB |
15192 | fi |
15193 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15194 | done | |
15195 | fi | |
1c710c3c | 15196 | |
040b1c5a GK |
15197 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15198 | set dummy lipo | |
15199 | if test $build = $target ; then | |
15200 | LIPO_FOR_TARGET="$2" | |
15201 | else | |
15202 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15203 | fi | |
1c00b503 PB |
15204 | else |
15205 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
15206 | fi |
15207 | ||
d1f8db0c PB |
15208 | else |
15209 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
15210 | fi |
15211 | ||
15212 | ||
15213 | ||
15214 | ||
15215 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15216 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15218 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15219 | if test -x $with_build_time_tools/nm; then |
15220 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15221 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
15222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15223 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 15224 | else |
5213506e RW |
15225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15226 | $as_echo "no" >&6; } | |
d1f8db0c | 15227 | fi |
e8b05380 PB |
15228 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15229 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
15230 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15231 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
15232 | fi |
15233 | fi | |
3e19841a | 15234 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15235 | # Extract the first word of "nm", so it can be a program name with args. |
15236 | set dummy nm; ac_word=$2 | |
5213506e RW |
15237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15238 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15239 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 15240 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15241 | else |
1c710c3c DJ |
15242 | case $NM_FOR_TARGET in |
15243 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15244 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15245 | ;; | |
e8b05380 | 15246 | *) |
1c710c3c DJ |
15247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15248 | for as_dir in $gcc_cv_tool_dirs | |
15249 | do | |
15250 | IFS=$as_save_IFS | |
15251 | test -z "$as_dir" && as_dir=. | |
5213506e | 15252 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15254 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15256 | break 2 |
15257 | fi | |
15258 | done | |
5213506e RW |
15259 | done |
15260 | IFS=$as_save_IFS | |
1c710c3c | 15261 | |
e8b05380 PB |
15262 | ;; |
15263 | esac | |
15264 | fi | |
1c710c3c | 15265 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 15266 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15268 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 15269 | else |
5213506e RW |
15270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15271 | $as_echo "no" >&6; } | |
e8b05380 PB |
15272 | fi |
15273 | ||
5213506e | 15274 | |
e8b05380 PB |
15275 | fi |
15276 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
15277 | |
15278 | ||
15279 | if test -n "$NM_FOR_TARGET"; then | |
15280 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15281 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15282 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15283 | fi | |
15284 | ||
15285 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15286 | for ncn_progname in nm; do | |
15287 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15288 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15290 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15291 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15292 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15293 | else |
15294 | if test -n "$NM_FOR_TARGET"; then | |
15295 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15296 | else | |
15297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15298 | for as_dir in $PATH | |
15299 | do | |
15300 | IFS=$as_save_IFS | |
15301 | test -z "$as_dir" && as_dir=. | |
5213506e | 15302 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15303 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15304 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15306 | break 2 |
15307 | fi | |
15308 | done | |
5213506e RW |
15309 | done |
15310 | IFS=$as_save_IFS | |
278a7a38 AO |
15311 | |
15312 | fi | |
15313 | fi | |
15314 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15315 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
15316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15317 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 15318 | else |
5213506e RW |
15319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15320 | $as_echo "no" >&6; } | |
278a7a38 AO |
15321 | fi |
15322 | ||
5213506e | 15323 | |
278a7a38 AO |
15324 | done |
15325 | fi | |
15326 | ||
15327 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15328 | for ncn_progname in nm; do |
5213506e RW |
15329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15330 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15331 | if test -x $with_build_time_tools/${ncn_progname}; then |
15332 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15334 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15335 | break |
15336 | else | |
5213506e RW |
15337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15338 | $as_echo "no" >&6; } | |
e8b05380 PB |
15339 | fi |
15340 | done | |
15341 | fi | |
15342 | ||
15343 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15344 | for ncn_progname in nm; do | |
15345 | if test -n "$ncn_target_tool_prefix"; then | |
15346 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15347 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15349 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15350 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15351 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15352 | else |
4de997d1 PB |
15353 | if test -n "$NM_FOR_TARGET"; then |
15354 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15355 | else |
1c710c3c DJ |
15356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15357 | for as_dir in $PATH | |
15358 | do | |
15359 | IFS=$as_save_IFS | |
15360 | test -z "$as_dir" && as_dir=. | |
5213506e | 15361 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15363 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15365 | break 2 |
15366 | fi | |
15367 | done | |
5213506e RW |
15368 | done |
15369 | IFS=$as_save_IFS | |
1c710c3c | 15370 | |
ca9f4b81 AO |
15371 | fi |
15372 | fi | |
1c710c3c | 15373 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 15374 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15376 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15377 | else |
5213506e RW |
15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15379 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15380 | fi |
15381 | ||
5213506e | 15382 | |
e8b05380 PB |
15383 | fi |
15384 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15385 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15386 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15388 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15389 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15390 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15391 | else |
2693c0b0 PB |
15392 | if test -n "$NM_FOR_TARGET"; then |
15393 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15394 | else |
1c710c3c DJ |
15395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15396 | for as_dir in $PATH | |
15397 | do | |
15398 | IFS=$as_save_IFS | |
15399 | test -z "$as_dir" && as_dir=. | |
5213506e | 15400 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15402 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15404 | break 2 |
15405 | fi | |
15406 | done | |
5213506e RW |
15407 | done |
15408 | IFS=$as_save_IFS | |
1c710c3c | 15409 | |
ca9f4b81 AO |
15410 | fi |
15411 | fi | |
1c710c3c | 15412 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 15413 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15415 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15416 | else |
5213506e RW |
15417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15418 | $as_echo "no" >&6; } | |
ca9f4b81 | 15419 | fi |
1c710c3c | 15420 | |
5213506e | 15421 | |
e8b05380 PB |
15422 | fi |
15423 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15424 | done | |
15425 | fi | |
1c710c3c | 15426 | |
2693c0b0 PB |
15427 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15428 | set dummy nm | |
15429 | if test $build = $target ; then | |
15430 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 15431 | else |
2693c0b0 | 15432 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15433 | fi |
1c00b503 PB |
15434 | else |
15435 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
15436 | fi |
15437 | ||
d1f8db0c PB |
15438 | else |
15439 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
15440 | fi |
15441 | ||
15442 | ||
15443 | ||
15444 | ||
9bccfdf5 AP |
15445 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15446 | if test -n "$with_build_time_tools"; then | |
15447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15448 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15449 | if test -x $with_build_time_tools/objcopy; then | |
15450 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15451 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15453 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15454 | else | |
15455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15456 | $as_echo "no" >&6; } | |
15457 | fi | |
15458 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15459 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15460 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15461 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15462 | fi | |
15463 | fi | |
15464 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15465 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15466 | set dummy objcopy; ac_word=$2 | |
15467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15468 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15469 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15470 | $as_echo_n "(cached) " >&6 |
15471 | else | |
15472 | case $OBJCOPY_FOR_TARGET in | |
15473 | [\\/]* | ?:[\\/]*) | |
15474 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15475 | ;; | |
15476 | *) | |
15477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15478 | for as_dir in $gcc_cv_tool_dirs | |
15479 | do | |
15480 | IFS=$as_save_IFS | |
15481 | test -z "$as_dir" && as_dir=. | |
15482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15484 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15486 | break 2 | |
15487 | fi | |
15488 | done | |
15489 | done | |
15490 | IFS=$as_save_IFS | |
15491 | ||
15492 | ;; | |
15493 | esac | |
15494 | fi | |
15495 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15496 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15498 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15499 | else | |
15500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15501 | $as_echo "no" >&6; } | |
15502 | fi | |
15503 | ||
15504 | ||
15505 | fi | |
15506 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15507 | ||
15508 | ||
15509 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15510 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15511 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15512 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15513 | fi | |
15514 | ||
15515 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15516 | for ncn_progname in objcopy; do | |
15517 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15518 | set dummy ${ncn_progname}; ac_word=$2 | |
15519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15520 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15521 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15522 | $as_echo_n "(cached) " >&6 |
15523 | else | |
15524 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15525 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15526 | else | |
15527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15528 | for as_dir in $PATH | |
15529 | do | |
15530 | IFS=$as_save_IFS | |
15531 | test -z "$as_dir" && as_dir=. | |
15532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15534 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15536 | break 2 | |
15537 | fi | |
15538 | done | |
15539 | done | |
15540 | IFS=$as_save_IFS | |
15541 | ||
15542 | fi | |
15543 | fi | |
15544 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15545 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15547 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15548 | else | |
15549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15550 | $as_echo "no" >&6; } | |
15551 | fi | |
15552 | ||
15553 | ||
15554 | done | |
15555 | fi | |
15556 | ||
15557 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15558 | for ncn_progname in objcopy; do | |
15559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15560 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15561 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15562 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15564 | $as_echo "yes" >&6; } | |
15565 | break | |
15566 | else | |
15567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15568 | $as_echo "no" >&6; } | |
15569 | fi | |
15570 | done | |
15571 | fi | |
15572 | ||
15573 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15574 | for ncn_progname in objcopy; do | |
15575 | if test -n "$ncn_target_tool_prefix"; then | |
15576 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15577 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15579 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15580 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15581 | $as_echo_n "(cached) " >&6 |
15582 | else | |
15583 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15584 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15585 | else | |
15586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15587 | for as_dir in $PATH | |
15588 | do | |
15589 | IFS=$as_save_IFS | |
15590 | test -z "$as_dir" && as_dir=. | |
15591 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15592 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15593 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15595 | break 2 | |
15596 | fi | |
15597 | done | |
15598 | done | |
15599 | IFS=$as_save_IFS | |
15600 | ||
15601 | fi | |
15602 | fi | |
15603 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15604 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15606 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15607 | else | |
15608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15609 | $as_echo "no" >&6; } | |
15610 | fi | |
15611 | ||
15612 | ||
15613 | fi | |
15614 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15616 | set dummy ${ncn_progname}; ac_word=$2 | |
15617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15618 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15619 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15620 | $as_echo_n "(cached) " >&6 |
15621 | else | |
15622 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15623 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15624 | else | |
15625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15626 | for as_dir in $PATH | |
15627 | do | |
15628 | IFS=$as_save_IFS | |
15629 | test -z "$as_dir" && as_dir=. | |
15630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15632 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15634 | break 2 | |
15635 | fi | |
15636 | done | |
15637 | done | |
15638 | IFS=$as_save_IFS | |
15639 | ||
15640 | fi | |
15641 | fi | |
15642 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15643 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15645 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15646 | else | |
15647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15648 | $as_echo "no" >&6; } | |
15649 | fi | |
15650 | ||
15651 | ||
15652 | fi | |
15653 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15654 | done | |
15655 | fi | |
15656 | ||
15657 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15658 | set dummy objcopy | |
15659 | if test $build = $target ; then | |
15660 | OBJCOPY_FOR_TARGET="$2" | |
15661 | else | |
15662 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15663 | fi | |
15664 | else | |
15665 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15666 | fi | |
15667 | ||
15668 | else | |
15669 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15670 | fi | |
15671 | ||
15672 | ||
15673 | ||
15674 | ||
e8b05380 PB |
15675 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15676 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15678 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15679 | if test -x $with_build_time_tools/objdump; then |
15680 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15681 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
15682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15683 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 15684 | else |
5213506e RW |
15685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15686 | $as_echo "no" >&6; } | |
d1f8db0c | 15687 | fi |
e8b05380 PB |
15688 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15689 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
15690 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15691 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15692 | fi |
15693 | fi | |
3e19841a | 15694 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15695 | # Extract the first word of "objdump", so it can be a program name with args. |
15696 | set dummy objdump; ac_word=$2 | |
5213506e RW |
15697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15698 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15699 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15700 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15701 | else |
1c710c3c DJ |
15702 | case $OBJDUMP_FOR_TARGET in |
15703 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15704 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15705 | ;; | |
e8b05380 | 15706 | *) |
1c710c3c DJ |
15707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15708 | for as_dir in $gcc_cv_tool_dirs | |
15709 | do | |
15710 | IFS=$as_save_IFS | |
15711 | test -z "$as_dir" && as_dir=. | |
5213506e | 15712 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15714 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15716 | break 2 |
15717 | fi | |
15718 | done | |
5213506e RW |
15719 | done |
15720 | IFS=$as_save_IFS | |
1c710c3c | 15721 | |
e8b05380 PB |
15722 | ;; |
15723 | esac | |
15724 | fi | |
1c710c3c | 15725 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 15726 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15728 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 15729 | else |
5213506e RW |
15730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15731 | $as_echo "no" >&6; } | |
e8b05380 PB |
15732 | fi |
15733 | ||
5213506e | 15734 | |
e8b05380 PB |
15735 | fi |
15736 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
15737 | |
15738 | ||
15739 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15740 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15741 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15742 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15743 | fi | |
15744 | ||
15745 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15746 | for ncn_progname in objdump; do | |
15747 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15748 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15750 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15751 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15752 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15753 | else |
15754 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15755 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15756 | else | |
15757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15758 | for as_dir in $PATH | |
15759 | do | |
15760 | IFS=$as_save_IFS | |
15761 | test -z "$as_dir" && as_dir=. | |
5213506e | 15762 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15764 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15766 | break 2 |
15767 | fi | |
15768 | done | |
5213506e RW |
15769 | done |
15770 | IFS=$as_save_IFS | |
278a7a38 AO |
15771 | |
15772 | fi | |
15773 | fi | |
15774 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15775 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
15776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15777 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 15778 | else |
5213506e RW |
15779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15780 | $as_echo "no" >&6; } | |
278a7a38 AO |
15781 | fi |
15782 | ||
5213506e | 15783 | |
278a7a38 AO |
15784 | done |
15785 | fi | |
15786 | ||
15787 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15788 | for ncn_progname in objdump; do |
5213506e RW |
15789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15790 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15791 | if test -x $with_build_time_tools/${ncn_progname}; then |
15792 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15794 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15795 | break |
15796 | else | |
5213506e RW |
15797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15798 | $as_echo "no" >&6; } | |
e8b05380 PB |
15799 | fi |
15800 | done | |
15801 | fi | |
15802 | ||
15803 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15804 | for ncn_progname in objdump; do | |
15805 | if test -n "$ncn_target_tool_prefix"; then | |
15806 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15807 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15809 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15810 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15811 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15812 | else |
15813 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15814 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15815 | else | |
1c710c3c DJ |
15816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15817 | for as_dir in $PATH | |
15818 | do | |
15819 | IFS=$as_save_IFS | |
15820 | test -z "$as_dir" && as_dir=. | |
5213506e | 15821 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15823 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15825 | break 2 |
15826 | fi | |
15827 | done | |
5213506e RW |
15828 | done |
15829 | IFS=$as_save_IFS | |
1c710c3c | 15830 | |
d739199a DJ |
15831 | fi |
15832 | fi | |
1c710c3c | 15833 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15834 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15836 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15837 | else |
5213506e RW |
15838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15839 | $as_echo "no" >&6; } | |
d739199a DJ |
15840 | fi |
15841 | ||
5213506e | 15842 | |
e8b05380 PB |
15843 | fi |
15844 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
15845 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 15846 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15848 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15849 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15850 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15851 | else |
15852 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15853 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15854 | else | |
1c710c3c DJ |
15855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15856 | for as_dir in $PATH | |
15857 | do | |
15858 | IFS=$as_save_IFS | |
15859 | test -z "$as_dir" && as_dir=. | |
5213506e | 15860 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15862 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15864 | break 2 |
15865 | fi | |
15866 | done | |
5213506e RW |
15867 | done |
15868 | IFS=$as_save_IFS | |
1c710c3c | 15869 | |
d739199a DJ |
15870 | fi |
15871 | fi | |
1c710c3c | 15872 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15873 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15875 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15876 | else |
5213506e RW |
15877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15878 | $as_echo "no" >&6; } | |
d739199a | 15879 | fi |
1c710c3c | 15880 | |
5213506e | 15881 | |
e8b05380 PB |
15882 | fi |
15883 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
15884 | done | |
15885 | fi | |
1c710c3c | 15886 | |
d739199a DJ |
15887 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
15888 | set dummy objdump | |
15889 | if test $build = $target ; then | |
15890 | OBJDUMP_FOR_TARGET="$2" | |
15891 | else | |
15892 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15893 | fi | |
1c00b503 PB |
15894 | else |
15895 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
15896 | fi |
15897 | ||
d1f8db0c PB |
15898 | else |
15899 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15900 | fi |
15901 | ||
15902 | ||
15903 | ||
15904 | ||
e4a9a572 IS |
15905 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
15906 | if test -n "$with_build_time_tools"; then | |
15907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
15908 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
15909 | if test -x $with_build_time_tools/otool; then | |
15910 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
15911 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
15913 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
15914 | else | |
15915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15916 | $as_echo "no" >&6; } | |
15917 | fi | |
15918 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15919 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
15920 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
15921 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15922 | fi | |
15923 | fi | |
15924 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15925 | # Extract the first word of "otool", so it can be a program name with args. | |
15926 | set dummy otool; ac_word=$2 | |
15927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15928 | $as_echo_n "checking for $ac_word... " >&6; } | |
15929 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
15930 | $as_echo_n "(cached) " >&6 | |
15931 | else | |
15932 | case $OTOOL_FOR_TARGET in | |
15933 | [\\/]* | ?:[\\/]*) | |
15934 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
15935 | ;; | |
15936 | *) | |
15937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15938 | for as_dir in $gcc_cv_tool_dirs | |
15939 | do | |
15940 | IFS=$as_save_IFS | |
15941 | test -z "$as_dir" && as_dir=. | |
15942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15944 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15946 | break 2 | |
15947 | fi | |
15948 | done | |
15949 | done | |
15950 | IFS=$as_save_IFS | |
15951 | ||
15952 | ;; | |
15953 | esac | |
15954 | fi | |
15955 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
15956 | if test -n "$OTOOL_FOR_TARGET"; then | |
15957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15958 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15959 | else | |
15960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15961 | $as_echo "no" >&6; } | |
15962 | fi | |
15963 | ||
15964 | ||
15965 | fi | |
15966 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
15967 | ||
15968 | ||
15969 | if test -n "$OTOOL_FOR_TARGET"; then | |
15970 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15971 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15972 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15973 | fi | |
15974 | ||
15975 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15976 | for ncn_progname in otool; do | |
15977 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15978 | set dummy ${ncn_progname}; ac_word=$2 | |
15979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15980 | $as_echo_n "checking for $ac_word... " >&6; } | |
15981 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15982 | $as_echo_n "(cached) " >&6 | |
15983 | else | |
15984 | if test -n "$OTOOL_FOR_TARGET"; then | |
15985 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15986 | else | |
15987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15988 | for as_dir in $PATH | |
15989 | do | |
15990 | IFS=$as_save_IFS | |
15991 | test -z "$as_dir" && as_dir=. | |
15992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15994 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
15995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15996 | break 2 | |
15997 | fi | |
15998 | done | |
15999 | done | |
16000 | IFS=$as_save_IFS | |
16001 | ||
16002 | fi | |
16003 | fi | |
16004 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16005 | if test -n "$OTOOL_FOR_TARGET"; then | |
16006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16007 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16008 | else | |
16009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16010 | $as_echo "no" >&6; } | |
16011 | fi | |
16012 | ||
16013 | ||
16014 | done | |
16015 | fi | |
16016 | ||
16017 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16018 | for ncn_progname in otool; do | |
16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16020 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16021 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16022 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16024 | $as_echo "yes" >&6; } | |
16025 | break | |
16026 | else | |
16027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16028 | $as_echo "no" >&6; } | |
16029 | fi | |
16030 | done | |
16031 | fi | |
16032 | ||
16033 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16034 | for ncn_progname in otool; do | |
16035 | if test -n "$ncn_target_tool_prefix"; then | |
16036 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16037 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16039 | $as_echo_n "checking for $ac_word... " >&6; } | |
16040 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16041 | $as_echo_n "(cached) " >&6 | |
16042 | else | |
16043 | if test -n "$OTOOL_FOR_TARGET"; then | |
16044 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16045 | else | |
16046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16047 | for as_dir in $PATH | |
16048 | do | |
16049 | IFS=$as_save_IFS | |
16050 | test -z "$as_dir" && as_dir=. | |
16051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16053 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16055 | break 2 | |
16056 | fi | |
16057 | done | |
16058 | done | |
16059 | IFS=$as_save_IFS | |
16060 | ||
16061 | fi | |
16062 | fi | |
16063 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16064 | if test -n "$OTOOL_FOR_TARGET"; then | |
16065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16066 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16067 | else | |
16068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16069 | $as_echo "no" >&6; } | |
16070 | fi | |
16071 | ||
16072 | ||
16073 | fi | |
16074 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16075 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16076 | set dummy ${ncn_progname}; ac_word=$2 | |
16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16078 | $as_echo_n "checking for $ac_word... " >&6; } | |
16079 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16080 | $as_echo_n "(cached) " >&6 | |
16081 | else | |
16082 | if test -n "$OTOOL_FOR_TARGET"; then | |
16083 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16084 | else | |
16085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16086 | for as_dir in $PATH | |
16087 | do | |
16088 | IFS=$as_save_IFS | |
16089 | test -z "$as_dir" && as_dir=. | |
16090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16092 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16094 | break 2 | |
16095 | fi | |
16096 | done | |
16097 | done | |
16098 | IFS=$as_save_IFS | |
16099 | ||
16100 | fi | |
16101 | fi | |
16102 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16103 | if test -n "$OTOOL_FOR_TARGET"; then | |
16104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16105 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16106 | else | |
16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16108 | $as_echo "no" >&6; } | |
16109 | fi | |
16110 | ||
16111 | ||
16112 | fi | |
16113 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16114 | done | |
16115 | fi | |
16116 | ||
16117 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16118 | set dummy otool | |
16119 | if test $build = $target ; then | |
16120 | OTOOL_FOR_TARGET="$2" | |
16121 | else | |
16122 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16123 | fi | |
16124 | else | |
16125 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16126 | fi | |
16127 | ||
16128 | else | |
16129 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16130 | fi | |
16131 | ||
16132 | ||
16133 | ||
16134 | ||
e8b05380 PB |
16135 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16136 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16138 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16139 | if test -x $with_build_time_tools/ranlib; then |
16140 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16141 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16143 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 16144 | else |
5213506e RW |
16145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16146 | $as_echo "no" >&6; } | |
d1f8db0c | 16147 | fi |
e8b05380 PB |
16148 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16149 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
16150 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16151 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
16152 | fi |
16153 | fi | |
3e19841a | 16154 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16155 | # Extract the first word of "ranlib", so it can be a program name with args. |
16156 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
16157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16158 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16159 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16160 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16161 | else |
1c710c3c DJ |
16162 | case $RANLIB_FOR_TARGET in |
16163 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16164 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16165 | ;; | |
e8b05380 | 16166 | *) |
1c710c3c DJ |
16167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16168 | for as_dir in $gcc_cv_tool_dirs | |
16169 | do | |
16170 | IFS=$as_save_IFS | |
16171 | test -z "$as_dir" && as_dir=. | |
5213506e | 16172 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16173 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16174 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16176 | break 2 |
16177 | fi | |
16178 | done | |
5213506e RW |
16179 | done |
16180 | IFS=$as_save_IFS | |
1c710c3c | 16181 | |
e8b05380 PB |
16182 | ;; |
16183 | esac | |
16184 | fi | |
1c710c3c | 16185 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 16186 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16188 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 16189 | else |
5213506e RW |
16190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16191 | $as_echo "no" >&6; } | |
e8b05380 PB |
16192 | fi |
16193 | ||
5213506e | 16194 | |
e8b05380 PB |
16195 | fi |
16196 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
16197 | |
16198 | ||
16199 | if test -n "$RANLIB_FOR_TARGET"; then | |
16200 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16201 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16202 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16203 | fi | |
16204 | ||
16205 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16206 | for ncn_progname in ranlib; do | |
16207 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16208 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16210 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16211 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16212 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16213 | else |
16214 | if test -n "$RANLIB_FOR_TARGET"; then | |
16215 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16216 | else | |
16217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16218 | for as_dir in $PATH | |
16219 | do | |
16220 | IFS=$as_save_IFS | |
16221 | test -z "$as_dir" && as_dir=. | |
5213506e | 16222 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16224 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16226 | break 2 |
16227 | fi | |
16228 | done | |
5213506e RW |
16229 | done |
16230 | IFS=$as_save_IFS | |
278a7a38 AO |
16231 | |
16232 | fi | |
16233 | fi | |
16234 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16235 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
16236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16237 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 16238 | else |
5213506e RW |
16239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16240 | $as_echo "no" >&6; } | |
278a7a38 AO |
16241 | fi |
16242 | ||
5213506e | 16243 | |
278a7a38 AO |
16244 | done |
16245 | fi | |
16246 | ||
16247 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16248 | for ncn_progname in ranlib; do |
5213506e RW |
16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16250 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16251 | if test -x $with_build_time_tools/${ncn_progname}; then |
16252 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16254 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16255 | break |
16256 | else | |
5213506e RW |
16257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16258 | $as_echo "no" >&6; } | |
e8b05380 PB |
16259 | fi |
16260 | done | |
16261 | fi | |
16262 | ||
16263 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16264 | for ncn_progname in ranlib; do | |
16265 | if test -n "$ncn_target_tool_prefix"; then | |
16266 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 16267 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16269 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16270 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16271 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16272 | else |
4de997d1 PB |
16273 | if test -n "$RANLIB_FOR_TARGET"; then |
16274 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16275 | else |
1c710c3c DJ |
16276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16277 | for as_dir in $PATH | |
16278 | do | |
16279 | IFS=$as_save_IFS | |
16280 | test -z "$as_dir" && as_dir=. | |
5213506e | 16281 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16283 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16285 | break 2 |
16286 | fi | |
16287 | done | |
5213506e RW |
16288 | done |
16289 | IFS=$as_save_IFS | |
1c710c3c | 16290 | |
ca9f4b81 AO |
16291 | fi |
16292 | fi | |
1c710c3c | 16293 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 16294 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16296 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16297 | else |
5213506e RW |
16298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16299 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16300 | fi |
16301 | ||
5213506e | 16302 | |
e8b05380 PB |
16303 | fi |
16304 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16305 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16306 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16308 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16309 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16310 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16311 | else |
2693c0b0 PB |
16312 | if test -n "$RANLIB_FOR_TARGET"; then |
16313 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16314 | else |
1c710c3c DJ |
16315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16316 | for as_dir in $PATH | |
16317 | do | |
16318 | IFS=$as_save_IFS | |
16319 | test -z "$as_dir" && as_dir=. | |
5213506e | 16320 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16322 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16324 | break 2 |
16325 | fi | |
16326 | done | |
5213506e RW |
16327 | done |
16328 | IFS=$as_save_IFS | |
1c710c3c | 16329 | |
ca9f4b81 AO |
16330 | fi |
16331 | fi | |
1c710c3c | 16332 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 16333 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16335 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16336 | else |
5213506e RW |
16337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16338 | $as_echo "no" >&6; } | |
ca9f4b81 | 16339 | fi |
1c710c3c | 16340 | |
5213506e | 16341 | |
e8b05380 PB |
16342 | fi |
16343 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16344 | done | |
16345 | fi | |
1c710c3c | 16346 | |
e8b05380 PB |
16347 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16348 | set dummy ranlib | |
16349 | if test $build = $target ; then | |
16350 | RANLIB_FOR_TARGET="$2" | |
16351 | else | |
16352 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 16353 | fi |
1c00b503 PB |
16354 | else |
16355 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 16356 | fi |
2693c0b0 | 16357 | |
d1f8db0c PB |
16358 | else |
16359 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
16360 | fi |
16361 | ||
e8b05380 PB |
16362 | |
16363 | ||
16364 | ||
e7a82751 RM |
16365 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16366 | if test -n "$with_build_time_tools"; then | |
16367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16368 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16369 | if test -x $with_build_time_tools/readelf; then | |
16370 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16371 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16373 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16374 | else | |
16375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16376 | $as_echo "no" >&6; } | |
16377 | fi | |
16378 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16379 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16380 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16381 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16382 | fi | |
16383 | fi | |
16384 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16385 | # Extract the first word of "readelf", so it can be a program name with args. | |
16386 | set dummy readelf; ac_word=$2 | |
16387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16388 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16389 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16390 | $as_echo_n "(cached) " >&6 |
16391 | else | |
16392 | case $READELF_FOR_TARGET in | |
16393 | [\\/]* | ?:[\\/]*) | |
16394 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16395 | ;; | |
16396 | *) | |
16397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16398 | for as_dir in $gcc_cv_tool_dirs | |
16399 | do | |
16400 | IFS=$as_save_IFS | |
16401 | test -z "$as_dir" && as_dir=. | |
16402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16404 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16406 | break 2 | |
16407 | fi | |
16408 | done | |
16409 | done | |
16410 | IFS=$as_save_IFS | |
16411 | ||
16412 | ;; | |
16413 | esac | |
16414 | fi | |
16415 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16416 | if test -n "$READELF_FOR_TARGET"; then | |
16417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16418 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16419 | else | |
16420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16421 | $as_echo "no" >&6; } | |
16422 | fi | |
16423 | ||
16424 | ||
16425 | fi | |
16426 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16427 | ||
16428 | ||
16429 | if test -n "$READELF_FOR_TARGET"; then | |
16430 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16431 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16432 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16433 | fi | |
16434 | ||
16435 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16436 | for ncn_progname in readelf; do | |
16437 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16438 | set dummy ${ncn_progname}; ac_word=$2 | |
16439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16440 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16441 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16442 | $as_echo_n "(cached) " >&6 |
16443 | else | |
16444 | if test -n "$READELF_FOR_TARGET"; then | |
16445 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16446 | else | |
16447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16448 | for as_dir in $PATH | |
16449 | do | |
16450 | IFS=$as_save_IFS | |
16451 | test -z "$as_dir" && as_dir=. | |
16452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16453 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16454 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16456 | break 2 | |
16457 | fi | |
16458 | done | |
16459 | done | |
16460 | IFS=$as_save_IFS | |
16461 | ||
16462 | fi | |
16463 | fi | |
16464 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16465 | if test -n "$READELF_FOR_TARGET"; then | |
16466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16467 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16468 | else | |
16469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16470 | $as_echo "no" >&6; } | |
16471 | fi | |
16472 | ||
16473 | ||
16474 | done | |
16475 | fi | |
16476 | ||
16477 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16478 | for ncn_progname in readelf; do | |
16479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16480 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16481 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16482 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16484 | $as_echo "yes" >&6; } | |
16485 | break | |
16486 | else | |
16487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16488 | $as_echo "no" >&6; } | |
16489 | fi | |
16490 | done | |
16491 | fi | |
16492 | ||
16493 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16494 | for ncn_progname in readelf; do | |
16495 | if test -n "$ncn_target_tool_prefix"; then | |
16496 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16497 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16499 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16500 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16501 | $as_echo_n "(cached) " >&6 |
16502 | else | |
16503 | if test -n "$READELF_FOR_TARGET"; then | |
16504 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16505 | else | |
16506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16507 | for as_dir in $PATH | |
16508 | do | |
16509 | IFS=$as_save_IFS | |
16510 | test -z "$as_dir" && as_dir=. | |
16511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16513 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16515 | break 2 | |
16516 | fi | |
16517 | done | |
16518 | done | |
16519 | IFS=$as_save_IFS | |
16520 | ||
16521 | fi | |
16522 | fi | |
16523 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16524 | if test -n "$READELF_FOR_TARGET"; then | |
16525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16526 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16527 | else | |
16528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16529 | $as_echo "no" >&6; } | |
16530 | fi | |
16531 | ||
16532 | ||
16533 | fi | |
16534 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16535 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16536 | set dummy ${ncn_progname}; ac_word=$2 | |
16537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16538 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16539 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16540 | $as_echo_n "(cached) " >&6 |
16541 | else | |
16542 | if test -n "$READELF_FOR_TARGET"; then | |
16543 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16544 | else | |
16545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16546 | for as_dir in $PATH | |
16547 | do | |
16548 | IFS=$as_save_IFS | |
16549 | test -z "$as_dir" && as_dir=. | |
16550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16552 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16554 | break 2 | |
16555 | fi | |
16556 | done | |
16557 | done | |
16558 | IFS=$as_save_IFS | |
16559 | ||
16560 | fi | |
16561 | fi | |
16562 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16563 | if test -n "$READELF_FOR_TARGET"; then | |
16564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16565 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16566 | else | |
16567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16568 | $as_echo "no" >&6; } | |
16569 | fi | |
16570 | ||
16571 | ||
16572 | fi | |
16573 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16574 | done | |
16575 | fi | |
16576 | ||
16577 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16578 | set dummy readelf | |
16579 | if test $build = $target ; then | |
16580 | READELF_FOR_TARGET="$2" | |
16581 | else | |
16582 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16583 | fi | |
16584 | else | |
16585 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16586 | fi | |
16587 | ||
16588 | else | |
16589 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16590 | fi | |
16591 | ||
16592 | ||
16593 | ||
16594 | ||
e8b05380 PB |
16595 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16596 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16598 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16599 | if test -x $with_build_time_tools/strip; then |
16600 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16601 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
16602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16603 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 16604 | else |
5213506e RW |
16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16606 | $as_echo "no" >&6; } | |
d1f8db0c | 16607 | fi |
e8b05380 PB |
16608 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16609 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
16610 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16611 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
16612 | fi |
16613 | fi | |
3e19841a | 16614 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16615 | # Extract the first word of "strip", so it can be a program name with args. |
16616 | set dummy strip; ac_word=$2 | |
5213506e RW |
16617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16618 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16619 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16620 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16621 | else |
1c710c3c DJ |
16622 | case $STRIP_FOR_TARGET in |
16623 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16624 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16625 | ;; | |
e8b05380 | 16626 | *) |
1c710c3c DJ |
16627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16628 | for as_dir in $gcc_cv_tool_dirs | |
16629 | do | |
16630 | IFS=$as_save_IFS | |
16631 | test -z "$as_dir" && as_dir=. | |
5213506e | 16632 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16633 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16634 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16636 | break 2 |
16637 | fi | |
16638 | done | |
5213506e RW |
16639 | done |
16640 | IFS=$as_save_IFS | |
1c710c3c | 16641 | |
e8b05380 PB |
16642 | ;; |
16643 | esac | |
16644 | fi | |
1c710c3c | 16645 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 16646 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16648 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 16649 | else |
5213506e RW |
16650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16651 | $as_echo "no" >&6; } | |
e8b05380 PB |
16652 | fi |
16653 | ||
5213506e | 16654 | |
e8b05380 PB |
16655 | fi |
16656 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
16657 | |
16658 | ||
16659 | if test -n "$STRIP_FOR_TARGET"; then | |
16660 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16661 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16662 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16663 | fi | |
16664 | ||
16665 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16666 | for ncn_progname in strip; do | |
16667 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16668 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16670 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16671 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16672 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16673 | else |
16674 | if test -n "$STRIP_FOR_TARGET"; then | |
16675 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16676 | else | |
16677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16678 | for as_dir in $PATH | |
16679 | do | |
16680 | IFS=$as_save_IFS | |
16681 | test -z "$as_dir" && as_dir=. | |
5213506e | 16682 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16684 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16686 | break 2 |
16687 | fi | |
16688 | done | |
5213506e RW |
16689 | done |
16690 | IFS=$as_save_IFS | |
278a7a38 AO |
16691 | |
16692 | fi | |
16693 | fi | |
16694 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16695 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
16696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16697 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 16698 | else |
5213506e RW |
16699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16700 | $as_echo "no" >&6; } | |
278a7a38 AO |
16701 | fi |
16702 | ||
5213506e | 16703 | |
278a7a38 AO |
16704 | done |
16705 | fi | |
16706 | ||
16707 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16708 | for ncn_progname in strip; do |
5213506e RW |
16709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16710 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16711 | if test -x $with_build_time_tools/${ncn_progname}; then |
16712 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16714 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16715 | break |
16716 | else | |
5213506e RW |
16717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16718 | $as_echo "no" >&6; } | |
e8b05380 PB |
16719 | fi |
16720 | done | |
16721 | fi | |
16722 | ||
16723 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16724 | for ncn_progname in strip; do | |
16725 | if test -n "$ncn_target_tool_prefix"; then | |
16726 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16727 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16729 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16730 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16731 | $as_echo_n "(cached) " >&6 |
af71363e AS |
16732 | else |
16733 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
16734 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
16735 | else | |
16736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16737 | for as_dir in $PATH | |
16738 | do | |
16739 | IFS=$as_save_IFS | |
16740 | test -z "$as_dir" && as_dir=. | |
5213506e | 16741 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16743 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16745 | break 2 |
16746 | fi | |
16747 | done | |
5213506e RW |
16748 | done |
16749 | IFS=$as_save_IFS | |
1c710c3c | 16750 | |
040b1c5a GK |
16751 | fi |
16752 | fi | |
1c710c3c | 16753 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16754 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16756 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16757 | else |
5213506e RW |
16758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16759 | $as_echo "no" >&6; } | |
040b1c5a GK |
16760 | fi |
16761 | ||
5213506e | 16762 | |
e8b05380 PB |
16763 | fi |
16764 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
16765 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16766 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16768 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16769 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16770 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
16771 | else |
16772 | if test -n "$STRIP_FOR_TARGET"; then | |
16773 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16774 | else | |
1c710c3c DJ |
16775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16776 | for as_dir in $PATH | |
16777 | do | |
16778 | IFS=$as_save_IFS | |
16779 | test -z "$as_dir" && as_dir=. | |
5213506e | 16780 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16782 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16784 | break 2 |
16785 | fi | |
16786 | done | |
5213506e RW |
16787 | done |
16788 | IFS=$as_save_IFS | |
1c710c3c | 16789 | |
040b1c5a GK |
16790 | fi |
16791 | fi | |
1c710c3c | 16792 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16793 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16795 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16796 | else |
5213506e RW |
16797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16798 | $as_echo "no" >&6; } | |
040b1c5a | 16799 | fi |
1c710c3c | 16800 | |
5213506e | 16801 | |
e8b05380 PB |
16802 | fi |
16803 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
16804 | done | |
16805 | fi | |
1c710c3c | 16806 | |
040b1c5a GK |
16807 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
16808 | set dummy strip | |
16809 | if test $build = $target ; then | |
16810 | STRIP_FOR_TARGET="$2" | |
16811 | else | |
16812 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16813 | fi | |
1c00b503 PB |
16814 | else |
16815 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
16816 | fi |
16817 | ||
d1f8db0c PB |
16818 | else |
16819 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
16820 | fi |
16821 | ||
16822 | ||
16823 | ||
16824 | ||
16825 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
16826 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
16828 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16829 | if test -x $with_build_time_tools/windres; then |
16830 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
16831 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
16832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
16833 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 16834 | else |
5213506e RW |
16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16836 | $as_echo "no" >&6; } | |
d1f8db0c | 16837 | fi |
e8b05380 PB |
16838 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16839 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
16840 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
16841 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
16842 | fi |
16843 | fi | |
3e19841a | 16844 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16845 | # Extract the first word of "windres", so it can be a program name with args. |
16846 | set dummy windres; ac_word=$2 | |
5213506e RW |
16847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16848 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16849 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16850 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16851 | else |
1c710c3c DJ |
16852 | case $WINDRES_FOR_TARGET in |
16853 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16854 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
16855 | ;; | |
e8b05380 | 16856 | *) |
1c710c3c DJ |
16857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16858 | for as_dir in $gcc_cv_tool_dirs | |
16859 | do | |
16860 | IFS=$as_save_IFS | |
16861 | test -z "$as_dir" && as_dir=. | |
5213506e | 16862 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16864 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16866 | break 2 |
16867 | fi | |
16868 | done | |
5213506e RW |
16869 | done |
16870 | IFS=$as_save_IFS | |
1c710c3c | 16871 | |
e8b05380 PB |
16872 | ;; |
16873 | esac | |
16874 | fi | |
1c710c3c | 16875 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 16876 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16878 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 16879 | else |
5213506e RW |
16880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16881 | $as_echo "no" >&6; } | |
e8b05380 PB |
16882 | fi |
16883 | ||
5213506e | 16884 | |
e8b05380 PB |
16885 | fi |
16886 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
16887 | |
16888 | ||
16889 | if test -n "$WINDRES_FOR_TARGET"; then | |
16890 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
16891 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16892 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16893 | fi | |
16894 | ||
16895 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16896 | for ncn_progname in windres; do | |
16897 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16898 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16900 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16901 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16902 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16903 | else |
16904 | if test -n "$WINDRES_FOR_TARGET"; then | |
16905 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
16906 | else | |
16907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16908 | for as_dir in $PATH | |
16909 | do | |
16910 | IFS=$as_save_IFS | |
16911 | test -z "$as_dir" && as_dir=. | |
5213506e | 16912 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16914 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16916 | break 2 |
16917 | fi | |
16918 | done | |
5213506e RW |
16919 | done |
16920 | IFS=$as_save_IFS | |
278a7a38 AO |
16921 | |
16922 | fi | |
16923 | fi | |
16924 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16925 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
16926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16927 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 16928 | else |
5213506e RW |
16929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16930 | $as_echo "no" >&6; } | |
278a7a38 AO |
16931 | fi |
16932 | ||
5213506e | 16933 | |
278a7a38 AO |
16934 | done |
16935 | fi | |
16936 | ||
16937 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16938 | for ncn_progname in windres; do |
5213506e RW |
16939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16940 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16941 | if test -x $with_build_time_tools/${ncn_progname}; then |
16942 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16944 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16945 | break |
16946 | else | |
5213506e RW |
16947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16948 | $as_echo "no" >&6; } | |
e8b05380 PB |
16949 | fi |
16950 | done | |
16951 | fi | |
16952 | ||
16953 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16954 | for ncn_progname in windres; do | |
16955 | if test -n "$ncn_target_tool_prefix"; then | |
16956 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16957 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16959 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16960 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16961 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16962 | else |
4de997d1 PB |
16963 | if test -n "$WINDRES_FOR_TARGET"; then |
16964 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16965 | else |
1c710c3c DJ |
16966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16967 | for as_dir in $PATH | |
16968 | do | |
16969 | IFS=$as_save_IFS | |
16970 | test -z "$as_dir" && as_dir=. | |
5213506e | 16971 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16973 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16975 | break 2 |
16976 | fi | |
16977 | done | |
5213506e RW |
16978 | done |
16979 | IFS=$as_save_IFS | |
1c710c3c | 16980 | |
ca9f4b81 AO |
16981 | fi |
16982 | fi | |
1c710c3c | 16983 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 16984 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16986 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16987 | else |
5213506e RW |
16988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16989 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16990 | fi |
16991 | ||
5213506e | 16992 | |
e8b05380 PB |
16993 | fi |
16994 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
16995 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16996 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16998 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16999 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17000 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 17001 | else |
2693c0b0 PB |
17002 | if test -n "$WINDRES_FOR_TARGET"; then |
17003 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 17004 | else |
1c710c3c DJ |
17005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17006 | for as_dir in $PATH | |
17007 | do | |
17008 | IFS=$as_save_IFS | |
17009 | test -z "$as_dir" && as_dir=. | |
5213506e | 17010 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17012 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 17013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17014 | break 2 |
17015 | fi | |
17016 | done | |
5213506e RW |
17017 | done |
17018 | IFS=$as_save_IFS | |
1c710c3c | 17019 | |
ca9f4b81 AO |
17020 | fi |
17021 | fi | |
1c710c3c | 17022 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 17023 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17025 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 17026 | else |
5213506e RW |
17027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17028 | $as_echo "no" >&6; } | |
ca9f4b81 | 17029 | fi |
1c710c3c | 17030 | |
5213506e | 17031 | |
e8b05380 PB |
17032 | fi |
17033 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17034 | done | |
17035 | fi | |
1c710c3c | 17036 | |
2693c0b0 PB |
17037 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17038 | set dummy windres | |
17039 | if test $build = $target ; then | |
17040 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 17041 | else |
2693c0b0 | 17042 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 17043 | fi |
1c00b503 PB |
17044 | else |
17045 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
17046 | fi |
17047 | ||
d1f8db0c PB |
17048 | else |
17049 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
17050 | fi |
17051 | ||
4977bab6 | 17052 | |
901119ae KT |
17053 | |
17054 | ||
17055 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17056 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17058 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
17059 | if test -x $with_build_time_tools/windmc; then |
17060 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17061 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
17062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17063 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17064 | else |
5213506e RW |
17065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17066 | $as_echo "no" >&6; } | |
901119ae KT |
17067 | fi |
17068 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17069 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
17070 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
17071 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
17072 | fi |
17073 | fi | |
17074 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17075 | # Extract the first word of "windmc", so it can be a program name with args. | |
17076 | set dummy windmc; ac_word=$2 | |
5213506e RW |
17077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17078 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17079 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17080 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17081 | else |
17082 | case $WINDMC_FOR_TARGET in | |
17083 | [\\/]* | ?:[\\/]*) | |
17084 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17085 | ;; | |
17086 | *) | |
17087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17088 | for as_dir in $gcc_cv_tool_dirs | |
17089 | do | |
17090 | IFS=$as_save_IFS | |
17091 | test -z "$as_dir" && as_dir=. | |
5213506e | 17092 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17094 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17096 | break 2 |
17097 | fi | |
17098 | done | |
5213506e RW |
17099 | done |
17100 | IFS=$as_save_IFS | |
901119ae KT |
17101 | |
17102 | ;; | |
17103 | esac | |
17104 | fi | |
17105 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 17106 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
17107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17108 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17109 | else |
5213506e RW |
17110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17111 | $as_echo "no" >&6; } | |
901119ae KT |
17112 | fi |
17113 | ||
5213506e | 17114 | |
901119ae KT |
17115 | fi |
17116 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17117 | ||
17118 | ||
17119 | if test -n "$WINDMC_FOR_TARGET"; then | |
17120 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17121 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17122 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17123 | fi | |
17124 | ||
17125 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17126 | for ncn_progname in windmc; do | |
17127 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17128 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17130 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17131 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17132 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17133 | else |
17134 | if test -n "$WINDMC_FOR_TARGET"; then | |
17135 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17136 | else | |
17137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17138 | for as_dir in $PATH | |
17139 | do | |
17140 | IFS=$as_save_IFS | |
17141 | test -z "$as_dir" && as_dir=. | |
5213506e | 17142 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17144 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17146 | break 2 |
17147 | fi | |
17148 | done | |
5213506e RW |
17149 | done |
17150 | IFS=$as_save_IFS | |
901119ae KT |
17151 | |
17152 | fi | |
17153 | fi | |
17154 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17155 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17157 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17158 | else |
5213506e RW |
17159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17160 | $as_echo "no" >&6; } | |
901119ae KT |
17161 | fi |
17162 | ||
5213506e | 17163 | |
901119ae KT |
17164 | done |
17165 | fi | |
17166 | ||
17167 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17168 | for ncn_progname in windmc; do | |
5213506e RW |
17169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17170 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
17171 | if test -x $with_build_time_tools/${ncn_progname}; then |
17172 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17174 | $as_echo "yes" >&6; } | |
901119ae KT |
17175 | break |
17176 | else | |
5213506e RW |
17177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17178 | $as_echo "no" >&6; } | |
901119ae KT |
17179 | fi |
17180 | done | |
17181 | fi | |
17182 | ||
17183 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17184 | for ncn_progname in windmc; do | |
17185 | if test -n "$ncn_target_tool_prefix"; then | |
17186 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17187 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
17188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17189 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17190 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17191 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17192 | else |
17193 | if test -n "$WINDMC_FOR_TARGET"; then | |
17194 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17195 | else | |
17196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17197 | for as_dir in $PATH | |
17198 | do | |
17199 | IFS=$as_save_IFS | |
17200 | test -z "$as_dir" && as_dir=. | |
5213506e | 17201 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17203 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17205 | break 2 |
17206 | fi | |
17207 | done | |
5213506e RW |
17208 | done |
17209 | IFS=$as_save_IFS | |
901119ae KT |
17210 | |
17211 | fi | |
17212 | fi | |
17213 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17214 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17216 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17217 | else |
5213506e RW |
17218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17219 | $as_echo "no" >&6; } | |
901119ae KT |
17220 | fi |
17221 | ||
5213506e | 17222 | |
901119ae KT |
17223 | fi |
17224 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17225 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17226 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17228 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17229 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17230 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17231 | else |
17232 | if test -n "$WINDMC_FOR_TARGET"; then | |
17233 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17234 | else | |
17235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17236 | for as_dir in $PATH | |
17237 | do | |
17238 | IFS=$as_save_IFS | |
17239 | test -z "$as_dir" && as_dir=. | |
5213506e | 17240 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17242 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17244 | break 2 |
17245 | fi | |
17246 | done | |
5213506e RW |
17247 | done |
17248 | IFS=$as_save_IFS | |
901119ae KT |
17249 | |
17250 | fi | |
17251 | fi | |
17252 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17253 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17255 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17256 | else |
5213506e RW |
17257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17258 | $as_echo "no" >&6; } | |
901119ae KT |
17259 | fi |
17260 | ||
5213506e | 17261 | |
901119ae KT |
17262 | fi |
17263 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17264 | done | |
17265 | fi | |
17266 | ||
17267 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17268 | set dummy windmc | |
17269 | if test $build = $target ; then | |
17270 | WINDMC_FOR_TARGET="$2" | |
17271 | else | |
17272 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17273 | fi | |
1c00b503 PB |
17274 | else |
17275 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
17276 | fi |
17277 | ||
17278 | else | |
17279 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17280 | fi | |
17281 | ||
17282 | ||
2abefe3d PB |
17283 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17284 | ||
5213506e RW |
17285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17286 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 17287 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17288 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17289 | # We already found the complete path | |
172e41aa | 17290 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17292 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17293 | else |
17294 | # Canadian cross, just use what we found | |
5213506e RW |
17295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17296 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17297 | fi |
2abefe3d PB |
17298 | else |
17299 | ok=yes | |
17300 | case " ${configdirs} " in | |
17301 | *" binutils "*) ;; | |
17302 | *) ok=no ;; | |
17303 | esac | |
1c710c3c | 17304 | |
2abefe3d PB |
17305 | if test $ok = yes; then |
17306 | # An in-tree tool is available and we can use it | |
17307 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
17308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17309 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17310 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17311 | # We already found the complete path | |
172e41aa | 17312 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17314 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17315 | elif test "x$target" = "x$host"; then |
17316 | # We can use an host tool | |
17317 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
17318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17319 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17320 | else |
17321 | # We need a cross tool | |
5213506e RW |
17322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17323 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17324 | fi |
17325 | fi | |
0b0dc272 | 17326 | |
5213506e RW |
17327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17328 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 17329 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17330 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17331 | # We already found the complete path | |
172e41aa | 17332 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17334 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17335 | else |
17336 | # Canadian cross, just use what we found | |
5213506e RW |
17337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17338 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17339 | fi |
2abefe3d PB |
17340 | else |
17341 | ok=yes | |
17342 | case " ${configdirs} " in | |
17343 | *" gas "*) ;; | |
17344 | *) ok=no ;; | |
17345 | esac | |
1c710c3c | 17346 | |
2abefe3d PB |
17347 | if test $ok = yes; then |
17348 | # An in-tree tool is available and we can use it | |
17349 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
17350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17351 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17352 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17353 | # We already found the complete path | |
172e41aa | 17354 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17356 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17357 | elif test "x$target" = "x$host"; then |
17358 | # We can use an host tool | |
17359 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
17360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17361 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17362 | else |
17363 | # We need a cross tool | |
5213506e RW |
17364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17365 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17366 | fi |
17367 | fi | |
0b0dc272 | 17368 | |
5213506e RW |
17369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17370 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 17371 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17372 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17373 | # We already found the complete path | |
172e41aa | 17374 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17376 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17377 | else |
17378 | # Canadian cross, just use what we found | |
5213506e RW |
17379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17380 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17381 | fi |
2abefe3d PB |
17382 | else |
17383 | ok=yes | |
17384 | case " ${configdirs} " in | |
17385 | *" gcc "*) ;; | |
17386 | *) ok=no ;; | |
17387 | esac | |
1c710c3c | 17388 | |
2abefe3d PB |
17389 | if test $ok = yes; then |
17390 | # An in-tree tool is available and we can use it | |
17391 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17393 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17394 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17395 | # We already found the complete path | |
172e41aa | 17396 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17398 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17399 | elif test "x$target" = "x$host"; then |
17400 | # We can use an host tool | |
17401 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
17402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17403 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17404 | else |
17405 | # We need a cross tool | |
5213506e RW |
17406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17407 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17408 | fi |
17409 | fi | |
0b0dc272 | 17410 | |
5213506e RW |
17411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17412 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 17413 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17414 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17415 | # We already found the complete path | |
172e41aa | 17416 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17418 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17419 | else |
17420 | # Canadian cross, just use what we found | |
5213506e RW |
17421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17422 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17423 | fi |
2abefe3d PB |
17424 | else |
17425 | ok=yes | |
17426 | case " ${configdirs} " in | |
17427 | *" gcc "*) ;; | |
17428 | *) ok=no ;; | |
17429 | esac | |
17430 | case ,${enable_languages}, in | |
17431 | *,c++,*) ;; | |
17432 | *) ok=no ;; | |
17433 | esac | |
17434 | if test $ok = yes; then | |
17435 | # An in-tree tool is available and we can use it | |
2077db1b | 17436 | 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 |
17437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17438 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17439 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17440 | # We already found the complete path | |
172e41aa | 17441 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17443 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17444 | elif test "x$target" = "x$host"; then |
17445 | # We can use an host tool | |
17446 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17448 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17449 | else |
17450 | # We need a cross tool | |
5213506e RW |
17451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17452 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17453 | fi |
17454 | fi | |
0b0dc272 | 17455 | |
5213506e RW |
17456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17457 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 17458 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17459 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17460 | # We already found the complete path | |
172e41aa | 17461 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17463 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17464 | else |
17465 | # Canadian cross, just use what we found | |
5213506e RW |
17466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17467 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17468 | fi |
2abefe3d PB |
17469 | else |
17470 | ok=yes | |
17471 | case " ${configdirs} " in | |
17472 | *" gcc "*) ;; | |
17473 | *) ok=no ;; | |
17474 | esac | |
17475 | case ,${enable_languages}, in | |
17476 | *,c++,*) ;; | |
17477 | *) ok=no ;; | |
17478 | esac | |
17479 | if test $ok = yes; then | |
17480 | # An in-tree tool is available and we can use it | |
2077db1b | 17481 | 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 |
17482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17483 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17484 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17485 | # We already found the complete path | |
172e41aa | 17486 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17488 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17489 | elif test "x$target" = "x$host"; then |
17490 | # We can use an host tool | |
17491 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17493 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17494 | else |
17495 | # We need a cross tool | |
5213506e RW |
17496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17497 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17498 | fi |
17499 | fi | |
0b0dc272 | 17500 | |
5213506e RW |
17501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17502 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 17503 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17504 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17505 | # We already found the complete path | |
172e41aa | 17506 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17508 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17509 | else |
17510 | # Canadian cross, just use what we found | |
5213506e RW |
17511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17512 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17513 | fi |
2abefe3d PB |
17514 | else |
17515 | ok=yes | |
17516 | case " ${configdirs} " in | |
17517 | *" binutils "*) ;; | |
17518 | *) ok=no ;; | |
17519 | esac | |
1c710c3c | 17520 | |
2abefe3d PB |
17521 | if test $ok = yes; then |
17522 | # An in-tree tool is available and we can use it | |
17523 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
17524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17525 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17526 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17527 | # We already found the complete path | |
172e41aa | 17528 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17530 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17531 | elif test "x$target" = "x$host"; then |
17532 | # We can use an host tool | |
17533 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
17534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17535 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17536 | else |
17537 | # We need a cross tool | |
5213506e RW |
17538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17539 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17540 | fi |
17541 | fi | |
0b0dc272 | 17542 | |
3b5e8ee4 IS |
17543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17544 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17545 | if test "x${build}" != "x${host}" ; then | |
17546 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17547 | # We already found the complete path | |
17548 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17550 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17551 | else | |
17552 | # Canadian cross, just use what we found | |
17553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17554 | $as_echo "pre-installed" >&6; } | |
17555 | fi | |
17556 | else | |
17557 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17558 | # We already found the complete path | |
17559 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17561 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17562 | elif test "x$target" = "x$host"; then | |
17563 | # We can use an host tool | |
17564 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17566 | $as_echo "host tool" >&6; } | |
17567 | else | |
17568 | # We need a cross tool | |
17569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17570 | $as_echo "pre-installed" >&6; } | |
17571 | fi | |
17572 | fi | |
17573 | ||
5213506e RW |
17574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17575 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 17576 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17577 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17578 | # We already found the complete path | |
172e41aa | 17579 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17581 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17582 | else |
17583 | # Canadian cross, just use what we found | |
5213506e RW |
17584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17585 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17586 | fi |
2abefe3d PB |
17587 | else |
17588 | ok=yes | |
17589 | case " ${configdirs} " in | |
17590 | *" gcc "*) ;; | |
17591 | *) ok=no ;; | |
17592 | esac | |
1c710c3c | 17593 | |
2abefe3d PB |
17594 | if test $ok = yes; then |
17595 | # An in-tree tool is available and we can use it | |
17596 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17598 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17599 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17600 | # We already found the complete path | |
172e41aa | 17601 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17603 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17604 | elif test "x$target" = "x$host"; then |
17605 | # We can use an host tool | |
17606 | GCC_FOR_TARGET='$()' | |
5213506e RW |
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17608 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17609 | else |
17610 | # We need a cross tool | |
5213506e RW |
17611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17612 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17613 | fi |
17614 | fi | |
0b0dc272 | 17615 | |
5213506e RW |
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17617 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 17618 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17619 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17620 | # We already found the complete path | |
172e41aa | 17621 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17623 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17624 | else |
17625 | # Canadian cross, just use what we found | |
5213506e RW |
17626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17627 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17628 | fi |
2abefe3d PB |
17629 | else |
17630 | ok=yes | |
17631 | case " ${configdirs} " in | |
17632 | *" gcc "*) ;; | |
17633 | *) ok=no ;; | |
17634 | esac | |
17635 | case ,${enable_languages}, in | |
17636 | *,fortran,*) ;; | |
17637 | *) ok=no ;; | |
17638 | esac | |
17639 | if test $ok = yes; then | |
17640 | # An in-tree tool is available and we can use it | |
17641 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17643 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17644 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17645 | # We already found the complete path | |
172e41aa | 17646 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17648 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17649 | elif test "x$target" = "x$host"; then |
17650 | # We can use an host tool | |
17651 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
17652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17653 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17654 | else |
17655 | # We need a cross tool | |
5213506e RW |
17656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17657 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17658 | fi |
17659 | fi | |
0b0dc272 | 17660 | |
632e2a07 ILT |
17661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17662 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17663 | if test "x${build}" != "x${host}" ; then | |
17664 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17665 | # We already found the complete path | |
17666 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17668 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17669 | else | |
17670 | # Canadian cross, just use what we found | |
17671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17672 | $as_echo "pre-installed" >&6; } | |
17673 | fi | |
17674 | else | |
17675 | ok=yes | |
17676 | case " ${configdirs} " in | |
17677 | *" gcc "*) ;; | |
17678 | *) ok=no ;; | |
17679 | esac | |
17680 | case ,${enable_languages}, in | |
17681 | *,go,*) ;; | |
17682 | *) ok=no ;; | |
17683 | esac | |
17684 | if test $ok = yes; then | |
17685 | # An in-tree tool is available and we can use it | |
17686 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17688 | $as_echo "just compiled" >&6; } | |
17689 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17690 | # We already found the complete path | |
17691 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17693 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17694 | elif test "x$target" = "x$host"; then | |
17695 | # We can use an host tool | |
17696 | GOC_FOR_TARGET='$(GOC)' | |
17697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17698 | $as_echo "host tool" >&6; } | |
17699 | else | |
17700 | # We need a cross tool | |
17701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17702 | $as_echo "pre-installed" >&6; } | |
17703 | fi | |
17704 | fi | |
17705 | ||
b4c522fa IB |
17706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17707 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17708 | if test "x${build}" != "x${host}" ; then | |
17709 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17710 | # We already found the complete path | |
17711 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17713 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17714 | else | |
17715 | # Canadian cross, just use what we found | |
17716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17717 | $as_echo "pre-installed" >&6; } | |
17718 | fi | |
17719 | else | |
17720 | ok=yes | |
17721 | case " ${configdirs} " in | |
17722 | *" gcc "*) ;; | |
17723 | *) ok=no ;; | |
17724 | esac | |
17725 | case ,${enable_languages}, in | |
17726 | *,d,*) ;; | |
17727 | *) ok=no ;; | |
17728 | esac | |
17729 | if test $ok = yes; then | |
17730 | # An in-tree tool is available and we can use it | |
17731 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17733 | $as_echo "just compiled" >&6; } | |
17734 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17735 | # We already found the complete path | |
17736 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17738 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17739 | elif test "x$target" = "x$host"; then | |
17740 | # We can use an host tool | |
17741 | GDC_FOR_TARGET='$(GDC)' | |
17742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17743 | $as_echo "host tool" >&6; } | |
17744 | else | |
17745 | # We need a cross tool | |
17746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17747 | $as_echo "pre-installed" >&6; } | |
17748 | fi | |
17749 | fi | |
17750 | ||
5213506e RW |
17751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17752 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 17753 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17754 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17755 | # We already found the complete path | |
172e41aa | 17756 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17758 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17759 | else |
17760 | # Canadian cross, just use what we found | |
5213506e RW |
17761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17762 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17763 | fi |
2abefe3d PB |
17764 | else |
17765 | ok=yes | |
17766 | case " ${configdirs} " in | |
17767 | *" ld "*) ;; | |
17768 | *) ok=no ;; | |
17769 | esac | |
1c710c3c | 17770 | |
2abefe3d PB |
17771 | if test $ok = yes; then |
17772 | # An in-tree tool is available and we can use it | |
17773 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
17774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17775 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17776 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17777 | # We already found the complete path | |
172e41aa | 17778 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17780 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17781 | elif test "x$target" = "x$host"; then |
17782 | # We can use an host tool | |
17783 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
17784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17785 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17786 | else |
17787 | # We need a cross tool | |
5213506e RW |
17788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17789 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17790 | fi |
17791 | fi | |
0b0dc272 | 17792 | |
5213506e RW |
17793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
17794 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 17795 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17796 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17797 | # We already found the complete path | |
172e41aa | 17798 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17800 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17801 | else |
17802 | # Canadian cross, just use what we found | |
5213506e RW |
17803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17804 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17805 | fi |
2abefe3d | 17806 | else |
e8b05380 PB |
17807 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17808 | # We already found the complete path | |
172e41aa | 17809 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17811 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 17812 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
17813 | # We can use an host tool |
17814 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
17815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17816 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17817 | else |
17818 | # We need a cross tool | |
5213506e RW |
17819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17820 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17821 | fi |
17822 | fi | |
0b0dc272 | 17823 | |
5213506e RW |
17824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
17825 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 17826 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17827 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17828 | # We already found the complete path | |
172e41aa | 17829 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17831 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17832 | else |
17833 | # Canadian cross, just use what we found | |
5213506e RW |
17834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17835 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17836 | fi |
2abefe3d PB |
17837 | else |
17838 | ok=yes | |
17839 | case " ${configdirs} " in | |
17840 | *" binutils "*) ;; | |
17841 | *) ok=no ;; | |
17842 | esac | |
1c710c3c | 17843 | |
2abefe3d PB |
17844 | if test $ok = yes; then |
17845 | # An in-tree tool is available and we can use it | |
17846 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
17847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17848 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17849 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17850 | # We already found the complete path | |
172e41aa | 17851 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17853 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17854 | elif test "x$target" = "x$host"; then |
17855 | # We can use an host tool | |
17856 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
17857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17858 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17859 | else |
17860 | # We need a cross tool | |
5213506e RW |
17861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17862 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17863 | fi |
17864 | fi | |
0b0dc272 | 17865 | |
9bccfdf5 AP |
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
17867 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
17868 | if test "x${build}" != "x${host}" ; then | |
17869 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17870 | # We already found the complete path | |
17871 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17873 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17874 | else | |
17875 | # Canadian cross, just use what we found | |
17876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17877 | $as_echo "pre-installed" >&6; } | |
17878 | fi | |
17879 | else | |
17880 | ok=yes | |
17881 | case " ${configdirs} " in | |
17882 | *" binutils "*) ;; | |
17883 | *) ok=no ;; | |
17884 | esac | |
17885 | ||
17886 | if test $ok = yes; then | |
17887 | # An in-tree tool is available and we can use it | |
17888 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
17889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17890 | $as_echo "just compiled" >&6; } | |
17891 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17892 | # We already found the complete path | |
17893 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17895 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17896 | elif test "x$target" = "x$host"; then | |
17897 | # We can use an host tool | |
ec8fd1c0 | 17898 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
17899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17900 | $as_echo "host tool" >&6; } | |
17901 | else | |
17902 | # We need a cross tool | |
17903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17904 | $as_echo "pre-installed" >&6; } | |
17905 | fi | |
17906 | fi | |
17907 | ||
5213506e RW |
17908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
17909 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 17910 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17911 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17912 | # We already found the complete path | |
172e41aa | 17913 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17915 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17916 | else |
17917 | # Canadian cross, just use what we found | |
5213506e RW |
17918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17919 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17920 | fi |
2abefe3d PB |
17921 | else |
17922 | ok=yes | |
17923 | case " ${configdirs} " in | |
17924 | *" binutils "*) ;; | |
17925 | *) ok=no ;; | |
17926 | esac | |
1c710c3c | 17927 | |
2abefe3d PB |
17928 | if test $ok = yes; then |
17929 | # An in-tree tool is available and we can use it | |
17930 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
17931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17932 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17933 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17934 | # We already found the complete path | |
172e41aa | 17935 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17937 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17938 | elif test "x$target" = "x$host"; then |
17939 | # We can use an host tool | |
17940 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
17941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17942 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17943 | else |
17944 | # We need a cross tool | |
5213506e RW |
17945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17946 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17947 | fi |
17948 | fi | |
0b0dc272 | 17949 | |
e4a9a572 IS |
17950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
17951 | $as_echo_n "checking where to find the target otool... " >&6; } | |
17952 | if test "x${build}" != "x${host}" ; then | |
17953 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17954 | # We already found the complete path | |
17955 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17957 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17958 | else | |
17959 | # Canadian cross, just use what we found | |
17960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17961 | $as_echo "pre-installed" >&6; } | |
17962 | fi | |
17963 | else | |
17964 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17965 | # We already found the complete path | |
17966 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17968 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17969 | elif test "x$target" = "x$host"; then | |
17970 | # We can use an host tool | |
17971 | OTOOL_FOR_TARGET='$(OTOOL)' | |
17972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17973 | $as_echo "host tool" >&6; } | |
17974 | else | |
17975 | # We need a cross tool | |
17976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17977 | $as_echo "pre-installed" >&6; } | |
17978 | fi | |
17979 | fi | |
17980 | ||
5213506e RW |
17981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
17982 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 17983 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17984 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17985 | # We already found the complete path | |
172e41aa | 17986 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17988 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17989 | else |
17990 | # Canadian cross, just use what we found | |
5213506e RW |
17991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17992 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17993 | fi |
2abefe3d PB |
17994 | else |
17995 | ok=yes | |
17996 | case " ${configdirs} " in | |
17997 | *" binutils "*) ;; | |
17998 | *) ok=no ;; | |
17999 | esac | |
1c710c3c | 18000 | |
2abefe3d PB |
18001 | if test $ok = yes; then |
18002 | # An in-tree tool is available and we can use it | |
18003 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
18004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18005 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18006 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18007 | # We already found the complete path | |
172e41aa | 18008 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
18009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18010 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18011 | elif test "x$target" = "x$host"; then |
18012 | # We can use an host tool | |
18013 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
18014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18015 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18016 | else |
18017 | # We need a cross tool | |
5213506e RW |
18018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18019 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18020 | fi |
18021 | fi | |
0b0dc272 | 18022 | |
e7a82751 RM |
18023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18024 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18025 | if test "x${build}" != "x${host}" ; then | |
18026 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18027 | # We already found the complete path | |
18028 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18030 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18031 | else | |
18032 | # Canadian cross, just use what we found | |
18033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18034 | $as_echo "pre-installed" >&6; } | |
18035 | fi | |
18036 | else | |
18037 | ok=yes | |
18038 | case " ${configdirs} " in | |
18039 | *" binutils "*) ;; | |
18040 | *) ok=no ;; | |
18041 | esac | |
18042 | ||
18043 | if test $ok = yes; then | |
18044 | # An in-tree tool is available and we can use it | |
18045 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18047 | $as_echo "just compiled" >&6; } | |
18048 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18049 | # We already found the complete path | |
18050 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18052 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18053 | elif test "x$target" = "x$host"; then | |
18054 | # We can use an host tool | |
18055 | READELF_FOR_TARGET='$(READELF)' | |
18056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18057 | $as_echo "host tool" >&6; } | |
18058 | else | |
18059 | # We need a cross tool | |
18060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18061 | $as_echo "pre-installed" >&6; } | |
18062 | fi | |
18063 | fi | |
18064 | ||
5213506e RW |
18065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18066 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 18067 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18068 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18069 | # We already found the complete path | |
172e41aa | 18070 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18072 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18073 | else |
18074 | # Canadian cross, just use what we found | |
5213506e RW |
18075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18076 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18077 | fi |
2abefe3d PB |
18078 | else |
18079 | ok=yes | |
18080 | case " ${configdirs} " in | |
18081 | *" binutils "*) ;; | |
18082 | *) ok=no ;; | |
18083 | esac | |
1c710c3c | 18084 | |
2abefe3d PB |
18085 | if test $ok = yes; then |
18086 | # An in-tree tool is available and we can use it | |
455c8f48 | 18087 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
18088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18089 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18090 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18091 | # We already found the complete path | |
172e41aa | 18092 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18094 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18095 | elif test "x$target" = "x$host"; then |
18096 | # We can use an host tool | |
18097 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
18098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18099 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18100 | else |
18101 | # We need a cross tool | |
5213506e RW |
18102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18103 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18104 | fi |
18105 | fi | |
0b0dc272 | 18106 | |
5213506e RW |
18107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18108 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 18109 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18110 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18111 | # We already found the complete path | |
172e41aa | 18112 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18114 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18115 | else |
18116 | # Canadian cross, just use what we found | |
5213506e RW |
18117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18118 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18119 | fi |
2abefe3d PB |
18120 | else |
18121 | ok=yes | |
18122 | case " ${configdirs} " in | |
18123 | *" binutils "*) ;; | |
18124 | *) ok=no ;; | |
18125 | esac | |
1c710c3c | 18126 | |
2abefe3d PB |
18127 | if test $ok = yes; then |
18128 | # An in-tree tool is available and we can use it | |
18129 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
18130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18131 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18132 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18133 | # We already found the complete path | |
172e41aa | 18134 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18136 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18137 | elif test "x$target" = "x$host"; then |
18138 | # We can use an host tool | |
18139 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
18140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18141 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18142 | else |
18143 | # We need a cross tool | |
5213506e RW |
18144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18145 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 18146 | fi |
671aa708 | 18147 | fi |
be912515 | 18148 | |
5213506e RW |
18149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18150 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
18151 | if test "x${build}" != "x${host}" ; then |
18152 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18153 | # We already found the complete path | |
18154 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18156 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18157 | else |
18158 | # Canadian cross, just use what we found | |
5213506e RW |
18159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18160 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18161 | fi |
18162 | else | |
18163 | ok=yes | |
18164 | case " ${configdirs} " in | |
18165 | *" binutils "*) ;; | |
18166 | *) ok=no ;; | |
18167 | esac | |
18168 | ||
18169 | if test $ok = yes; then | |
18170 | # An in-tree tool is available and we can use it | |
18171 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
18172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18173 | $as_echo "just compiled" >&6; } | |
901119ae KT |
18174 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18175 | # We already found the complete path | |
18176 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18178 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18179 | elif test "x$target" = "x$host"; then |
18180 | # We can use an host tool | |
18181 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
18182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18183 | $as_echo "host tool" >&6; } | |
901119ae KT |
18184 | else |
18185 | # We need a cross tool | |
5213506e RW |
18186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18187 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18188 | fi |
18189 | fi | |
18190 | ||
be912515 NN |
18191 | |
18192 | ||
2abefe3d | 18193 | |
0b0dc272 | 18194 | |
671aa708 NN |
18195 | # Certain tools may need extra flags. |
18196 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18197 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18198 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18199 | ||
2abefe3d PB |
18200 | # When building target libraries, except in a Canadian cross, we use |
18201 | # the same toolchain as the compiler we just built. | |
18202 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18203 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18204 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18205 | if test $host = $build; then | |
18206 | case " $configdirs " in | |
18207 | *" gcc "*) | |
18208 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18209 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18210 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18211 | ;; | |
18212 | esac | |
18213 | fi | |
18214 | ||
18215 | ||
18216 | ||
18217 | ||
18218 | ||
5213506e RW |
18219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18220 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18221 | # Check whether --enable-maintainer-mode was given. | |
18222 | if test "${enable_maintainer_mode+set}" = set; then : | |
18223 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
18224 | else |
18225 | USE_MAINTAINER_MODE=no | |
5213506e RW |
18226 | fi |
18227 | ||
18228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18229 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
18230 | |
18231 | ||
18232 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18233 | MAINTAINER_MODE_TRUE= | |
18234 | MAINTAINER_MODE_FALSE='#' | |
18235 | else | |
18236 | MAINTAINER_MODE_TRUE='#' | |
18237 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 18238 | fi |
ee03dc5e AO |
18239 | MAINT=$MAINTAINER_MODE_TRUE |
18240 | ||
2805b53a NN |
18241 | # --------------------- |
18242 | # GCC bootstrap support | |
18243 | # --------------------- | |
18244 | ||
18245 | # Stage specific cflags for build. | |
18246 | stage1_cflags="-g" | |
18247 | case $build in | |
18248 | vax-*-*) | |
18249 | case ${GCC} in | |
18250 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18251 | *) stage1_cflags="-g -J" ;; | |
18252 | esac ;; | |
2805b53a NN |
18253 | esac |
18254 | ||
0b50988a | 18255 | |
2805b53a | 18256 | |
8efea775 | 18257 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
18258 | # Check whether --enable-stage1-checking was given. |
18259 | if test "${enable_stage1_checking+set}" = set; then : | |
18260 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 18261 | else |
e643dc23 | 18262 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
18263 | # For --disable-checking or implicit --enable-checking=release, avoid |
18264 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18265 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
18266 | case $BUILD_CONFIG in |
18267 | *lto*) | |
7db11a5a JJ |
18268 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18269 | *) | |
18270 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 18271 | esac |
7db11a5a JJ |
18272 | if test "x$enable_checking" = x && \ |
18273 | test -d ${srcdir}/gcc && \ | |
18274 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 18275 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 18276 | fi |
8efea775 | 18277 | else |
e643dc23 | 18278 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 18279 | fi |
5213506e | 18280 | fi |
8efea775 PB |
18281 | |
18282 | ||
2aeb72e9 | 18283 | |
5213506e RW |
18284 | # Enable -Werror in bootstrap stage2 and later. |
18285 | # Check whether --enable-werror was given. | |
18286 | if test "${enable_werror+set}" = set; then : | |
18287 | enableval=$enable_werror; | |
09a9c095 NN |
18288 | case ${enable_werror} in |
18289 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18290 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
18291 | esac |
18292 | ||
afd88efc ML |
18293 | else |
18294 | ||
01c712cb ML |
18295 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18296 | case $BUILD_CONFIG in | |
18297 | bootstrap-debug) | |
18298 | stage2_werror_flag="--enable-werror-always" ;; | |
18299 | "") | |
18300 | stage2_werror_flag="--enable-werror-always" ;; | |
18301 | esac | |
18302 | fi | |
18303 | ||
afd88efc ML |
18304 | fi |
18305 | ||
18306 | ||
01c712cb | 18307 | |
2805b53a | 18308 | |
f2689b09 SE |
18309 | # Specify what files to not compare during bootstrap. |
18310 | ||
18311 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
18312 | case "$target" in | |
18313 | hppa*64*-*-hpux*) ;; | |
4f943869 | 18314 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; |
f2689b09 SE |
18315 | esac |
18316 | ||
18317 | ||
5213506e RW |
18318 | ac_config_files="$ac_config_files Makefile" |
18319 | ||
1c710c3c | 18320 | cat >confcache <<\_ACEOF |
671aa708 NN |
18321 | # This file is a shell script that caches the results of configure |
18322 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
18323 | # scripts and configure runs, see configure's option --config-cache. |
18324 | # It is not useful on other systems. If it contains results you don't | |
18325 | # want to keep, you may remove or edit it. | |
671aa708 | 18326 | # |
1c710c3c DJ |
18327 | # config.status only pays attention to the cache file if you give it |
18328 | # the --recheck option to rerun configure. | |
671aa708 | 18329 | # |
1c710c3c DJ |
18330 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18331 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18332 | # following values. | |
18333 | ||
18334 | _ACEOF | |
18335 | ||
671aa708 NN |
18336 | # The following way of writing the cache mishandles newlines in values, |
18337 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 18338 | # So, we kill variables containing newlines. |
671aa708 NN |
18339 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18340 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
18341 | ( |
18342 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18343 | eval ac_val=\$$ac_var | |
18344 | case $ac_val in #( | |
18345 | *${as_nl}*) | |
18346 | case $ac_var in #( | |
18347 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18348 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18349 | esac | |
18350 | case $ac_var in #( | |
18351 | _ | IFS | as_nl) ;; #( | |
18352 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18353 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18354 | esac ;; | |
18355 | esac | |
18356 | done | |
18357 | ||
1c710c3c | 18358 | (set) 2>&1 | |
5213506e RW |
18359 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18360 | *${as_nl}ac_space=\ *) | |
18361 | # `set' does not quote correctly, so add quotes: double-quote | |
18362 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
18363 | sed -n \ |
18364 | "s/'/'\\\\''/g; | |
18365 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 18366 | ;; #( |
1c710c3c DJ |
18367 | *) |
18368 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 18369 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 18370 | ;; |
5213506e RW |
18371 | esac | |
18372 | sort | |
18373 | ) | | |
1c710c3c | 18374 | sed ' |
5213506e | 18375 | /^ac_cv_env_/b end |
1c710c3c | 18376 | t clear |
5213506e | 18377 | :clear |
1c710c3c DJ |
18378 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18379 | t end | |
5213506e RW |
18380 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18381 | :end' >>confcache | |
18382 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18383 | if test -w "$cache_file"; then | |
22e05272 | 18384 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
18385 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18386 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
18387 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18388 | cat confcache >"$cache_file" | |
18389 | else | |
18390 | case $cache_file in #( | |
18391 | */* | ?:*) | |
18392 | mv -f confcache "$cache_file"$$ && | |
18393 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18394 | *) | |
18395 | mv -f confcache "$cache_file" ;; | |
18396 | esac | |
18397 | fi | |
18398 | fi | |
671aa708 | 18399 | else |
5213506e RW |
18400 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18401 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 18402 | fi |
4977bab6 | 18403 | fi |
671aa708 | 18404 | rm -f confcache |
79c06341 | 18405 | |
671aa708 NN |
18406 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18407 | # Let make expand exec_prefix. | |
18408 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 18409 | |
671aa708 NN |
18410 | # Transform confdefs.h into DEFS. |
18411 | # Protect against shell expansion while executing Makefile rules. | |
18412 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
18413 | # |
18414 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 18415 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 18416 | # look for a macro that doesn't take arguments. |
5213506e RW |
18417 | ac_script=' |
18418 | :mline | |
18419 | /\\$/{ | |
18420 | N | |
18421 | s,\\\n,, | |
18422 | b mline | |
18423 | } | |
1c710c3c | 18424 | t clear |
5213506e RW |
18425 | :clear |
18426 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 18427 | t quote |
5213506e | 18428 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 18429 | t quote |
5213506e RW |
18430 | b any |
18431 | :quote | |
18432 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18433 | s/\[/\\&/g | |
18434 | s/\]/\\&/g | |
18435 | s/\$/$$/g | |
18436 | H | |
18437 | :any | |
18438 | ${ | |
18439 | g | |
18440 | s/^\n// | |
18441 | s/\n/ /g | |
18442 | p | |
18443 | } | |
18444 | ' | |
18445 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
18446 | |
18447 | ||
18448 | ac_libobjs= | |
18449 | ac_ltlibobjs= | |
22e05272 | 18450 | U= |
1c710c3c DJ |
18451 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18452 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
18453 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18454 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18455 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18456 | # will be set to the directory where LIBOBJS objects are built. | |
18457 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18458 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
18459 | done |
18460 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 18461 | |
1c710c3c | 18462 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 18463 | |
af71363e | 18464 | |
1c710c3c | 18465 | |
22e05272 | 18466 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 18467 | ac_write_fail=0 |
1c710c3c DJ |
18468 | ac_clean_files_save=$ac_clean_files |
18469 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
18470 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18471 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18472 | as_write_fail=0 | |
18473 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
18474 | #! $SHELL |
18475 | # Generated by $as_me. | |
671aa708 | 18476 | # Run this file to recreate the current configuration. |
671aa708 | 18477 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 18478 | # configure, is in config.log if it exists. |
0b0dc272 | 18479 | |
1c710c3c DJ |
18480 | debug=false |
18481 | ac_cs_recheck=false | |
18482 | ac_cs_silent=false | |
1c710c3c | 18483 | |
5213506e RW |
18484 | SHELL=\${CONFIG_SHELL-$SHELL} |
18485 | export SHELL | |
18486 | _ASEOF | |
18487 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18488 | ## -------------------- ## | |
18489 | ## M4sh Initialization. ## | |
18490 | ## -------------------- ## | |
18491 | ||
18492 | # Be more Bourne compatible | |
18493 | DUALCASE=1; export DUALCASE # for MKS sh | |
18494 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18495 | emulate sh |
18496 | NULLCMD=: | |
5213506e | 18497 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
18498 | # is contrary to our usage. Disable this feature. |
18499 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
18500 | setopt NO_GLOB_SUBST |
18501 | else | |
18502 | case `(set -o) 2>/dev/null` in #( | |
18503 | *posix*) : | |
18504 | set -o posix ;; #( | |
18505 | *) : | |
18506 | ;; | |
18507 | esac | |
1c710c3c | 18508 | fi |
1c710c3c | 18509 | |
5213506e RW |
18510 | |
18511 | as_nl=' | |
18512 | ' | |
18513 | export as_nl | |
18514 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18515 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18516 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18517 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18518 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18519 | # but without wasting forks for bash or zsh. | |
18520 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18521 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18522 | as_echo='print -r --' | |
18523 | as_echo_n='print -rn --' | |
18524 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18525 | as_echo='printf %s\n' | |
18526 | as_echo_n='printf %s' | |
18527 | else | |
18528 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18529 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18530 | as_echo_n='/usr/ucb/echo -n' | |
18531 | else | |
18532 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18533 | as_echo_n_body='eval | |
18534 | arg=$1; | |
18535 | case $arg in #( | |
18536 | *"$as_nl"*) | |
18537 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18538 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18539 | esac; | |
18540 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18541 | ' | |
18542 | export as_echo_n_body | |
18543 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18544 | fi | |
18545 | export as_echo_body | |
18546 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
18547 | fi |
18548 | ||
5213506e RW |
18549 | # The user is always right. |
18550 | if test "${PATH_SEPARATOR+set}" != set; then | |
18551 | PATH_SEPARATOR=: | |
18552 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18553 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18554 | PATH_SEPARATOR=';' | |
18555 | } | |
18556 | fi | |
18557 | ||
18558 | ||
18559 | # IFS | |
18560 | # We need space, tab and new line, in precisely that order. Quoting is | |
18561 | # there to prevent editors from complaining about space-tab. | |
18562 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18563 | # splitting by setting IFS to empty value.) | |
18564 | IFS=" "" $as_nl" | |
18565 | ||
18566 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 18567 | as_myself= |
5213506e RW |
18568 | case $0 in #(( |
18569 | *[\\/]* ) as_myself=$0 ;; | |
18570 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18571 | for as_dir in $PATH | |
18572 | do | |
18573 | IFS=$as_save_IFS | |
18574 | test -z "$as_dir" && as_dir=. | |
18575 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18576 | done | |
18577 | IFS=$as_save_IFS | |
18578 | ||
18579 | ;; | |
18580 | esac | |
18581 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18582 | # in which case we are not to be found in the path. | |
18583 | if test "x$as_myself" = x; then | |
18584 | as_myself=$0 | |
18585 | fi | |
18586 | if test ! -f "$as_myself"; then | |
18587 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18588 | exit 1 | |
18589 | fi | |
1c710c3c | 18590 | |
5213506e RW |
18591 | # Unset variables that we do not need and which cause bugs (e.g. in |
18592 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18593 | # suppresses any "Segmentation fault" message there. '((' could | |
18594 | # trigger a bug in pdksh 5.2.14. | |
18595 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18596 | do eval test x\${$as_var+set} = xset \ | |
18597 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18598 | done | |
1c710c3c DJ |
18599 | PS1='$ ' |
18600 | PS2='> ' | |
18601 | PS4='+ ' | |
18602 | ||
18603 | # NLS nuisances. | |
5213506e RW |
18604 | LC_ALL=C |
18605 | export LC_ALL | |
18606 | LANGUAGE=C | |
18607 | export LANGUAGE | |
18608 | ||
18609 | # CDPATH. | |
18610 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18611 | ||
18612 | ||
22e05272 JM |
18613 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18614 | # ---------------------------------------- | |
5213506e RW |
18615 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18616 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 18617 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
18618 | as_fn_error () |
18619 | { | |
22e05272 JM |
18620 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18621 | if test "$4"; then | |
18622 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18623 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 18624 | fi |
22e05272 | 18625 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
18626 | as_fn_exit $as_status |
18627 | } # as_fn_error | |
18628 | ||
18629 | ||
18630 | # as_fn_set_status STATUS | |
18631 | # ----------------------- | |
18632 | # Set $? to STATUS, without forking. | |
18633 | as_fn_set_status () | |
18634 | { | |
18635 | return $1 | |
18636 | } # as_fn_set_status | |
18637 | ||
18638 | # as_fn_exit STATUS | |
18639 | # ----------------- | |
18640 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18641 | as_fn_exit () | |
18642 | { | |
18643 | set +e | |
18644 | as_fn_set_status $1 | |
18645 | exit $1 | |
18646 | } # as_fn_exit | |
18647 | ||
18648 | # as_fn_unset VAR | |
18649 | # --------------- | |
18650 | # Portably unset VAR. | |
18651 | as_fn_unset () | |
18652 | { | |
18653 | { eval $1=; unset $1;} | |
18654 | } | |
18655 | as_unset=as_fn_unset | |
18656 | # as_fn_append VAR VALUE | |
18657 | # ---------------------- | |
18658 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18659 | # advantage of any shell optimizations that allow amortized linear growth over | |
18660 | # repeated appends, instead of the typical quadratic growth present in naive | |
18661 | # implementations. | |
18662 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18663 | eval 'as_fn_append () | |
18664 | { | |
18665 | eval $1+=\$2 | |
18666 | }' | |
18667 | else | |
18668 | as_fn_append () | |
18669 | { | |
18670 | eval $1=\$$1\$2 | |
18671 | } | |
18672 | fi # as_fn_append | |
18673 | ||
18674 | # as_fn_arith ARG... | |
18675 | # ------------------ | |
18676 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18677 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18678 | # must be portable across $(()) and expr. | |
18679 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18680 | eval 'as_fn_arith () | |
18681 | { | |
18682 | as_val=$(( $* )) | |
18683 | }' | |
18684 | else | |
18685 | as_fn_arith () | |
18686 | { | |
18687 | as_val=`expr "$@" || test $? -eq 1` | |
18688 | } | |
18689 | fi # as_fn_arith | |
18690 | ||
1c710c3c | 18691 | |
5213506e RW |
18692 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18693 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
18694 | as_expr=expr |
18695 | else | |
18696 | as_expr=false | |
18697 | fi | |
18698 | ||
5213506e | 18699 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
18700 | as_basename=basename |
18701 | else | |
18702 | as_basename=false | |
18703 | fi | |
18704 | ||
5213506e RW |
18705 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18706 | as_dirname=dirname | |
18707 | else | |
18708 | as_dirname=false | |
18709 | fi | |
1c710c3c | 18710 | |
5213506e | 18711 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
18712 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18713 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
18714 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18715 | $as_echo X/"$0" | | |
18716 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18717 | s//\1/ | |
18718 | q | |
18719 | } | |
18720 | /^X\/\(\/\/\)$/{ | |
18721 | s//\1/ | |
18722 | q | |
18723 | } | |
18724 | /^X\/\(\/\).*/{ | |
18725 | s//\1/ | |
18726 | q | |
18727 | } | |
18728 | s/.*/./; q'` | |
2aeb72e9 | 18729 | |
2aeb72e9 DD |
18730 | # Avoid depending upon Character Ranges. |
18731 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18732 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18733 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18734 | as_cr_digits='0123456789' | |
18735 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18736 | ||
5213506e RW |
18737 | ECHO_C= ECHO_N= ECHO_T= |
18738 | case `echo -n x` in #((((( | |
18739 | -n*) | |
18740 | case `echo 'xy\c'` in | |
18741 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18742 | xy) ECHO_C='\c';; | |
18743 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18744 | ECHO_T=' ';; | |
18745 | esac;; | |
18746 | *) | |
18747 | ECHO_N='-n';; | |
1c710c3c DJ |
18748 | esac |
18749 | ||
5213506e RW |
18750 | rm -f conf$$ conf$$.exe conf$$.file |
18751 | if test -d conf$$.dir; then | |
18752 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 18753 | else |
5213506e RW |
18754 | rm -f conf$$.dir |
18755 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 18756 | fi |
5213506e RW |
18757 | if (echo >conf$$.file) 2>/dev/null; then |
18758 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 18759 | as_ln_s='ln -s' |
5213506e RW |
18760 | # ... but there are two gotchas: |
18761 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18762 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 18763 | # In both cases, we have to default to `cp -pR'. |
5213506e | 18764 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 18765 | as_ln_s='cp -pR' |
5213506e RW |
18766 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18767 | as_ln_s=ln | |
18768 | else | |
22e05272 | 18769 | as_ln_s='cp -pR' |
2aeb72e9 | 18770 | fi |
1c710c3c | 18771 | else |
22e05272 | 18772 | as_ln_s='cp -pR' |
1c710c3c | 18773 | fi |
5213506e RW |
18774 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18775 | rmdir conf$$.dir 2>/dev/null | |
18776 | ||
18777 | ||
18778 | # as_fn_mkdir_p | |
18779 | # ------------- | |
18780 | # Create "$as_dir" as a directory, including parents if necessary. | |
18781 | as_fn_mkdir_p () | |
18782 | { | |
18783 | ||
18784 | case $as_dir in #( | |
18785 | -*) as_dir=./$as_dir;; | |
18786 | esac | |
18787 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18788 | as_dirs= | |
18789 | while :; do | |
18790 | case $as_dir in #( | |
18791 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18792 | *) as_qdir=$as_dir;; | |
18793 | esac | |
18794 | as_dirs="'$as_qdir' $as_dirs" | |
18795 | as_dir=`$as_dirname -- "$as_dir" || | |
18796 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18797 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18798 | X"$as_dir" : 'X\(//\)$' \| \ | |
18799 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18800 | $as_echo X"$as_dir" | | |
18801 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18802 | s//\1/ | |
18803 | q | |
18804 | } | |
18805 | /^X\(\/\/\)[^/].*/{ | |
18806 | s//\1/ | |
18807 | q | |
18808 | } | |
18809 | /^X\(\/\/\)$/{ | |
18810 | s//\1/ | |
18811 | q | |
18812 | } | |
18813 | /^X\(\/\).*/{ | |
18814 | s//\1/ | |
18815 | q | |
18816 | } | |
18817 | s/.*/./; q'` | |
18818 | test -d "$as_dir" && break | |
18819 | done | |
18820 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 18821 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 18822 | |
1c710c3c | 18823 | |
5213506e | 18824 | } # as_fn_mkdir_p |
1c710c3c | 18825 | if mkdir -p . 2>/dev/null; then |
5213506e | 18826 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
18827 | else |
18828 | test -d ./-p && rmdir ./-p | |
18829 | as_mkdir_p=false | |
18830 | fi | |
18831 | ||
22e05272 JM |
18832 | |
18833 | # as_fn_executable_p FILE | |
18834 | # ----------------------- | |
18835 | # Test if FILE is an executable regular file. | |
18836 | as_fn_executable_p () | |
18837 | { | |
18838 | test -f "$1" && test -x "$1" | |
18839 | } # as_fn_executable_p | |
18840 | as_test_x='test -x' | |
18841 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
18842 | |
18843 | # Sed expression to map a string onto a valid CPP name. | |
18844 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18845 | ||
18846 | # Sed expression to map a string onto a valid variable name. | |
18847 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18848 | ||
18849 | ||
1c710c3c | 18850 | exec 6>&1 |
5213506e RW |
18851 | ## ----------------------------------- ## |
18852 | ## Main body of $CONFIG_STATUS script. ## | |
18853 | ## ----------------------------------- ## | |
18854 | _ASEOF | |
18855 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18856 | ||
18857 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18858 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 18859 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
18860 | # values after options handling. |
18861 | ac_log=" | |
1c710c3c | 18862 | This file was extended by $as_me, which was |
22e05272 | 18863 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
18864 | |
18865 | CONFIG_FILES = $CONFIG_FILES | |
18866 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18867 | CONFIG_LINKS = $CONFIG_LINKS | |
18868 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18869 | $ $0 $@ | |
18870 | ||
5213506e RW |
18871 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18872 | " | |
18873 | ||
1c710c3c DJ |
18874 | _ACEOF |
18875 | ||
5213506e RW |
18876 | case $ac_config_files in *" |
18877 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18878 | esac | |
1c710c3c | 18879 | |
2aeb72e9 | 18880 | |
2aeb72e9 | 18881 | |
5213506e RW |
18882 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18883 | # Files that config.status was made for. | |
18884 | config_files="$ac_config_files" | |
1c710c3c | 18885 | |
5213506e | 18886 | _ACEOF |
2aeb72e9 | 18887 | |
5213506e | 18888 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 18889 | ac_cs_usage="\ |
5213506e RW |
18890 | \`$as_me' instantiates files and other configuration actions |
18891 | from templates according to the current configuration. Unless the files | |
18892 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 18893 | |
5213506e | 18894 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
18895 | |
18896 | -h, --help print this help, then exit | |
5213506e | 18897 | -V, --version print version number and configuration settings, then exit |
22e05272 | 18898 | --config print configuration, then exit |
5213506e RW |
18899 | -q, --quiet, --silent |
18900 | do not print progress messages | |
1c710c3c DJ |
18901 | -d, --debug don't remove temporary files |
18902 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
18903 | --file=FILE[:TEMPLATE] |
18904 | instantiate the configuration file FILE | |
1c710c3c DJ |
18905 | |
18906 | Configuration files: | |
18907 | $config_files | |
18908 | ||
5213506e | 18909 | Report bugs to the package provider." |
2aeb72e9 | 18910 | |
5213506e RW |
18911 | _ACEOF |
18912 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18913 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
18914 | ac_cs_version="\\ |
18915 | config.status | |
22e05272 JM |
18916 | configured by $0, generated by GNU Autoconf 2.69, |
18917 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 18918 | |
22e05272 | 18919 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
18920 | This config.status script is free software; the Free Software Foundation |
18921 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
18922 | |
18923 | ac_pwd='$ac_pwd' | |
18924 | srcdir='$srcdir' | |
18925 | INSTALL='$INSTALL' | |
87264276 | 18926 | AWK='$AWK' |
5213506e | 18927 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
18928 | _ACEOF |
18929 | ||
5213506e RW |
18930 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18931 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
18932 | ac_need_defaults=: |
18933 | while test $# != 0 | |
a4b9e93e | 18934 | do |
1c710c3c | 18935 | case $1 in |
22e05272 | 18936 | --*=?*) |
5213506e RW |
18937 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18938 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
18939 | ac_shift=: |
18940 | ;; | |
22e05272 JM |
18941 | --*=) |
18942 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18943 | ac_optarg= | |
18944 | ac_shift=: | |
18945 | ;; | |
5213506e | 18946 | *) |
1c710c3c DJ |
18947 | ac_option=$1 |
18948 | ac_optarg=$2 | |
18949 | ac_shift=shift | |
18950 | ;; | |
1c710c3c DJ |
18951 | esac |
18952 | ||
18953 | case $ac_option in | |
18954 | # Handling of the options. | |
671aa708 | 18955 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 18956 | ac_cs_recheck=: ;; |
5213506e RW |
18957 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18958 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
18959 | --config | --confi | --conf | --con | --co | --c ) |
18960 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 18961 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
18962 | debug=: ;; |
18963 | --file | --fil | --fi | --f ) | |
18964 | $ac_shift | |
5213506e RW |
18965 | case $ac_optarg in |
18966 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 18967 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
18968 | esac |
18969 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 18970 | ac_need_defaults=false;; |
5213506e RW |
18971 | --he | --h | --help | --hel | -h ) |
18972 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
18973 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18974 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18975 | ac_cs_silent=: ;; | |
18976 | ||
18977 | # This is an error. | |
22e05272 | 18978 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 18979 | Try \`$0 --help' for more information." ;; |
1c710c3c | 18980 | |
5213506e RW |
18981 | *) as_fn_append ac_config_targets " $1" |
18982 | ac_need_defaults=false ;; | |
1c710c3c | 18983 | |
0b0dc272 | 18984 | esac |
1c710c3c | 18985 | shift |
0b0dc272 AM |
18986 | done |
18987 | ||
1c710c3c | 18988 | ac_configure_extra_args= |
0b0dc272 | 18989 | |
1c710c3c DJ |
18990 | if $ac_cs_silent; then |
18991 | exec 6>/dev/null | |
18992 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18993 | fi | |
0b0dc272 | 18994 | |
1c710c3c | 18995 | _ACEOF |
5213506e | 18996 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 18997 | if \$ac_cs_recheck; then |
22e05272 | 18998 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
18999 | shift |
19000 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19001 | CONFIG_SHELL='$SHELL' | |
19002 | export CONFIG_SHELL | |
19003 | exec "\$@" | |
1c710c3c DJ |
19004 | fi |
19005 | ||
19006 | _ACEOF | |
5213506e RW |
19007 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19008 | exec 5>>config.log | |
19009 | { | |
19010 | echo | |
19011 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19012 | ## Running $as_me. ## | |
19013 | _ASBOX | |
19014 | $as_echo "$ac_log" | |
19015 | } >&5 | |
1c710c3c | 19016 | |
5213506e RW |
19017 | _ACEOF |
19018 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
19019 | # |
19020 | # INIT-COMMANDS | |
19021 | # | |
19022 | extrasub_build="$extrasub_build" | |
19023 | extrasub_host="$extrasub_host" | |
19024 | extrasub_target="$extrasub_target" | |
19025 | ||
5213506e | 19026 | _ACEOF |
1c710c3c | 19027 | |
5213506e | 19028 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 19029 | |
5213506e | 19030 | # Handling of arguments. |
1c710c3c DJ |
19031 | for ac_config_target in $ac_config_targets |
19032 | do | |
5213506e RW |
19033 | case $ac_config_target in |
19034 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19035 | ||
22e05272 | 19036 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
19037 | esac |
19038 | done | |
19039 | ||
5213506e | 19040 | |
1c710c3c DJ |
19041 | # If the user did not use the arguments to specify the items to instantiate, |
19042 | # then the envvar interface is used. Set only those that are not. | |
19043 | # We use the long form for the default assignment because of an extremely | |
19044 | # bizarre bug on SunOS 4.1.3. | |
19045 | if $ac_need_defaults; then | |
19046 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19047 | fi | |
19048 | ||
19049 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 19050 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 19051 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
19052 | # Hook for its removal unless debugging. |
19053 | # Note that there is a small window in which the directory will not be cleaned: | |
19054 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
19055 | $debug || |
19056 | { | |
22e05272 | 19057 | tmp= ac_tmp= |
5213506e | 19058 | trap 'exit_status=$? |
22e05272 JM |
19059 | : "${ac_tmp:=$tmp}" |
19060 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
19061 | ' 0 |
19062 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 19063 | } |
1c710c3c DJ |
19064 | # Create a (secure) tmp directory for tmp files. |
19065 | ||
19066 | { | |
5213506e | 19067 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 19068 | test -d "$tmp" |
1c710c3c DJ |
19069 | } || |
19070 | { | |
5213506e RW |
19071 | tmp=./conf$$-$RANDOM |
19072 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
19073 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19074 | ac_tmp=$tmp | |
5213506e RW |
19075 | |
19076 | # Set up the scripts for CONFIG_FILES section. | |
19077 | # No need to generate them if there are no CONFIG_FILES. | |
19078 | # This happens for instance with `./config.status config.h'. | |
19079 | if test -n "$CONFIG_FILES"; then | |
19080 | ||
19081 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19082 | ac_cs_awk_getline=: | |
19083 | ac_cs_awk_pipe_init= | |
19084 | ac_cs_awk_read_file=' | |
19085 | while ((getline aline < (F[key])) > 0) | |
19086 | print(aline) | |
19087 | close(F[key])' | |
19088 | ac_cs_awk_pipe_fini= | |
19089 | else | |
19090 | ac_cs_awk_getline=false | |
19091 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19092 | ac_cs_awk_read_file=' | |
19093 | print "|#_!!_#|" | |
19094 | print "cat " F[key] " &&" | |
19095 | '$ac_cs_awk_pipe_init | |
19096 | # The final `:' finishes the AND list. | |
19097 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19098 | fi | |
19099 | ac_cr=`echo X | tr X '\015'` | |
19100 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19101 | # But we know of no other shell where ac_cr would be empty at this | |
19102 | # point, so we can use a bashism as a fallback. | |
19103 | if test "x$ac_cr" = x; then | |
19104 | eval ac_cr=\$\'\\r\' | |
19105 | fi | |
19106 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19107 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 19108 | ac_cs_awk_cr='\\r' |
5213506e RW |
19109 | else |
19110 | ac_cs_awk_cr=$ac_cr | |
19111 | fi | |
19112 | ||
22e05272 | 19113 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
19114 | _ACEOF |
19115 | ||
19116 | # Create commands to substitute file output variables. | |
1c710c3c | 19117 | { |
5213506e | 19118 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 19119 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
19120 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19121 | echo "_ACAWK" && | |
19122 | echo "_ACEOF" | |
19123 | } >conf$$files.sh && | |
19124 | . ./conf$$files.sh || | |
22e05272 | 19125 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19126 | rm -f conf$$files.sh |
1c710c3c | 19127 | |
5213506e RW |
19128 | { |
19129 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19130 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19131 | echo "_ACEOF" | |
19132 | } >conf$$subs.sh || | |
22e05272 JM |
19133 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19134 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
19135 | ac_delim='%!_!# ' |
19136 | for ac_last_try in false false false false false :; do | |
19137 | . ./conf$$subs.sh || | |
22e05272 | 19138 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19139 | |
19140 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19141 | if test $ac_delim_n = $ac_delim_num; then | |
19142 | break | |
19143 | elif $ac_last_try; then | |
22e05272 | 19144 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19145 | else |
19146 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19147 | fi | |
19148 | done | |
19149 | rm -f conf$$subs.sh | |
19150 | ||
19151 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19152 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 19153 | _ACEOF |
5213506e RW |
19154 | sed -n ' |
19155 | h | |
19156 | s/^/S["/; s/!.*/"]=/ | |
19157 | p | |
19158 | g | |
19159 | s/^[^!]*!// | |
19160 | :repl | |
19161 | t repl | |
19162 | s/'"$ac_delim"'$// | |
19163 | t delim | |
19164 | :nl | |
19165 | h | |
22e05272 | 19166 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19167 | t more1 |
19168 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19169 | p | |
19170 | n | |
19171 | b repl | |
19172 | :more1 | |
19173 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19174 | p | |
19175 | g | |
19176 | s/.\{148\}// | |
19177 | t nl | |
19178 | :delim | |
19179 | h | |
22e05272 | 19180 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19181 | t more2 |
19182 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19183 | p | |
19184 | b | |
19185 | :more2 | |
19186 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19187 | p | |
19188 | g | |
19189 | s/.\{148\}// | |
19190 | t delim | |
19191 | ' <conf$$subs.awk | sed ' | |
19192 | /^[^""]/{ | |
19193 | N | |
19194 | s/\n// | |
19195 | } | |
19196 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19197 | rm -f conf$$subs.awk | |
19198 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19199 | _ACAWK | |
22e05272 | 19200 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
19201 | for (key in S) S_is_set[key] = 1 |
19202 | FS = "\a" | |
19203 | \$ac_cs_awk_pipe_init | |
19204 | } | |
19205 | { | |
19206 | line = $ 0 | |
19207 | nfields = split(line, field, "@") | |
19208 | substed = 0 | |
19209 | len = length(field[1]) | |
19210 | for (i = 2; i < nfields; i++) { | |
19211 | key = field[i] | |
19212 | keylen = length(key) | |
19213 | if (S_is_set[key]) { | |
19214 | value = S[key] | |
19215 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19216 | len += length(value) + length(field[++i]) | |
19217 | substed = 1 | |
19218 | } else | |
19219 | len += 1 + keylen | |
19220 | } | |
19221 | if (nfields == 3 && !substed) { | |
19222 | key = field[2] | |
19223 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19224 | \$ac_cs_awk_read_file | |
19225 | next | |
19226 | } | |
19227 | } | |
19228 | print line | |
19229 | } | |
19230 | \$ac_cs_awk_pipe_fini | |
19231 | _ACAWK | |
19232 | _ACEOF | |
19233 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19234 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19235 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19236 | else | |
19237 | cat | |
22e05272 JM |
19238 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19239 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
19240 | _ACEOF |
19241 | ||
22e05272 JM |
19242 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19243 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
19244 | # trailing colons and then remove the whole line if VPATH becomes empty |
19245 | # (actually we leave an empty line to preserve line numbers). | |
19246 | if test "x$srcdir" = x.; then | |
22e05272 JM |
19247 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19248 | h | |
19249 | s/// | |
19250 | s/^/:/ | |
19251 | s/[ ]*$/:/ | |
19252 | s/:\$(srcdir):/:/g | |
19253 | s/:\${srcdir}:/:/g | |
19254 | s/:@srcdir@:/:/g | |
19255 | s/^:*// | |
5213506e | 19256 | s/:*$// |
22e05272 JM |
19257 | x |
19258 | s/\(=[ ]*\).*/\1/ | |
19259 | G | |
19260 | s/\n// | |
5213506e RW |
19261 | s/^[^=]*=[ ]*$// |
19262 | }' | |
19263 | fi | |
2aeb72e9 | 19264 | |
5213506e RW |
19265 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19266 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 19267 | |
1c710c3c | 19268 | |
5213506e RW |
19269 | eval set X " :F $CONFIG_FILES " |
19270 | shift | |
19271 | for ac_tag | |
19272 | do | |
19273 | case $ac_tag in | |
19274 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19275 | esac | |
19276 | case $ac_mode$ac_tag in | |
19277 | :[FHL]*:*);; | |
22e05272 | 19278 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
19279 | :[FH]-) ac_tag=-:-;; |
19280 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19281 | esac | |
19282 | ac_save_IFS=$IFS | |
19283 | IFS=: | |
19284 | set x $ac_tag | |
19285 | IFS=$ac_save_IFS | |
19286 | shift | |
19287 | ac_file=$1 | |
19288 | shift | |
79c06341 | 19289 | |
5213506e RW |
19290 | case $ac_mode in |
19291 | :L) ac_source=$1;; | |
19292 | :[FH]) | |
19293 | ac_file_inputs= | |
19294 | for ac_f | |
19295 | do | |
19296 | case $ac_f in | |
22e05272 | 19297 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
19298 | *) # Look for the file first in the build tree, then in the source tree |
19299 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19300 | # because $ac_f cannot contain `:'. | |
19301 | test -f "$ac_f" || | |
19302 | case $ac_f in | |
19303 | [\\/$]*) false;; | |
19304 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19305 | esac || | |
22e05272 | 19306 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
19307 | esac |
19308 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19309 | as_fn_append ac_file_inputs " '$ac_f'" | |
19310 | done | |
1c710c3c | 19311 | |
5213506e RW |
19312 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19313 | # use $as_me), people would be surprised to read: | |
19314 | # /* config.h. Generated by config.status. */ | |
19315 | configure_input='Generated from '` | |
19316 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19317 | `' by configure.' | |
19318 | if test x"$ac_file" != x-; then | |
19319 | configure_input="$ac_file. $configure_input" | |
19320 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19321 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 19322 | fi |
5213506e RW |
19323 | # Neutralize special characters interpreted by sed in replacement strings. |
19324 | case $configure_input in #( | |
19325 | *\&* | *\|* | *\\* ) | |
19326 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19327 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19328 | *) ac_sed_conf_input=$configure_input;; | |
19329 | esac | |
11a67599 | 19330 | |
5213506e | 19331 | case $ac_tag in |
22e05272 JM |
19332 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19333 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
19334 | esac |
19335 | ;; | |
11a67599 ZW |
19336 | esac |
19337 | ||
5213506e | 19338 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
19339 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19340 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19341 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
19342 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19343 | $as_echo X"$ac_file" | | |
19344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19345 | s//\1/ | |
19346 | q | |
19347 | } | |
19348 | /^X\(\/\/\)[^/].*/{ | |
19349 | s//\1/ | |
19350 | q | |
19351 | } | |
19352 | /^X\(\/\/\)$/{ | |
19353 | s//\1/ | |
19354 | q | |
19355 | } | |
19356 | /^X\(\/\).*/{ | |
19357 | s//\1/ | |
19358 | q | |
19359 | } | |
19360 | s/.*/./; q'` | |
19361 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 19362 | ac_builddir=. |
0b0dc272 | 19363 | |
5213506e RW |
19364 | case "$ac_dir" in |
19365 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19366 | *) | |
19367 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19368 | # A ".." for each directory in $ac_dir_suffix. | |
19369 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19370 | case $ac_top_builddir_sub in | |
19371 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19372 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19373 | esac ;; | |
19374 | esac | |
19375 | ac_abs_top_builddir=$ac_pwd | |
19376 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19377 | # for backward compatibility: | |
19378 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
19379 | |
19380 | case $srcdir in | |
5213506e | 19381 | .) # We are building in place. |
1c710c3c | 19382 | ac_srcdir=. |
5213506e RW |
19383 | ac_top_srcdir=$ac_top_builddir_sub |
19384 | ac_abs_top_srcdir=$ac_pwd ;; | |
19385 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 19386 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
19387 | ac_top_srcdir=$srcdir |
19388 | ac_abs_top_srcdir=$srcdir ;; | |
19389 | *) # Relative name. | |
19390 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19391 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19392 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 19393 | esac |
5213506e | 19394 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 19395 | |
0b0dc272 | 19396 | |
5213506e RW |
19397 | case $ac_mode in |
19398 | :F) | |
19399 | # | |
19400 | # CONFIG_FILE | |
19401 | # | |
1c710c3c DJ |
19402 | |
19403 | case $INSTALL in | |
19404 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 19405 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 19406 | esac |
5213506e | 19407 | _ACEOF |
11a67599 | 19408 | |
5213506e RW |
19409 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19410 | # If the template does not know about datarootdir, expand it. | |
19411 | # FIXME: This hack should be removed a few years after 2.60. | |
19412 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19413 | ac_sed_dataroot=' | |
19414 | /datarootdir/ { | |
19415 | p | |
19416 | q | |
19417 | } | |
19418 | /@datadir@/p | |
19419 | /@docdir@/p | |
19420 | /@infodir@/p | |
19421 | /@localedir@/p | |
19422 | /@mandir@/p' | |
19423 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19424 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19425 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19426 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19427 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 19428 | _ACEOF |
5213506e RW |
19429 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19430 | ac_datarootdir_hack=' | |
19431 | s&@datadir@&$datadir&g | |
19432 | s&@docdir@&$docdir&g | |
19433 | s&@infodir@&$infodir&g | |
19434 | s&@localedir@&$localedir&g | |
19435 | s&@mandir@&$mandir&g | |
19436 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19437 | esac | |
19438 | _ACEOF | |
19439 | ||
19440 | # Neutralize VPATH when `$srcdir' = `.'. | |
19441 | # Shell code in configure.ac might set extrasub. | |
19442 | # FIXME: do we really want to maintain this feature? | |
19443 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19444 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
19445 | $extrasub |
19446 | _ACEOF | |
5213506e | 19447 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
19448 | :t |
19449 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
19450 | s|@configure_input@|$ac_sed_conf_input|;t t |
19451 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19452 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19453 | s&@srcdir@&$ac_srcdir&;t t | |
19454 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19455 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19456 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19457 | s&@builddir@&$ac_builddir&;t t | |
19458 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19459 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19460 | s&@INSTALL@&$ac_INSTALL&;t t | |
19461 | $ac_datarootdir_hack | |
19462 | " | |
19463 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19464 | if $ac_cs_awk_getline; then | |
22e05272 | 19465 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 19466 | else |
22e05272 JM |
19467 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19468 | fi \ | |
19469 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
19470 | |
19471 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
19472 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19473 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19474 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 19475 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19476 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 19477 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19478 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 19479 | |
22e05272 | 19480 | rm -f "$ac_tmp/stdin" |
5213506e | 19481 | case $ac_file in |
22e05272 JM |
19482 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19483 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 19484 | esac \ |
22e05272 | 19485 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 19486 | ;; |
11a67599 | 19487 | |
11a67599 | 19488 | |
79c06341 | 19489 | |
5213506e RW |
19490 | esac |
19491 | ||
3e54529c RW |
19492 | |
19493 | case $ac_file$ac_mode in | |
19494 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19495 | sed "$extrasub_host" | | |
19496 | sed "$extrasub_target" > mf$$ | |
19497 | mv -f mf$$ Makefile ;; | |
19498 | ||
19499 | esac | |
5213506e RW |
19500 | done # for ac_tag |
19501 | ||
19502 | ||
19503 | as_fn_exit 0 | |
1c710c3c | 19504 | _ACEOF |
1c710c3c DJ |
19505 | ac_clean_files=$ac_clean_files_save |
19506 | ||
5213506e | 19507 | test $ac_write_fail = 0 || |
22e05272 | 19508 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19509 | |
1c710c3c DJ |
19510 | |
19511 | # configure is writing to config.log, and then calls config.status. | |
19512 | # config.status does its own redirection, appending to config.log. | |
19513 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19514 | # by configure, so config.status won't be able to write to it; its | |
19515 | # output is simply discarded. So we exec the FD to /dev/null, | |
19516 | # effectively closing config.log, so it can be properly (re)opened and | |
19517 | # appended to by config.status. When coming back to configure, we | |
19518 | # need to make the FD available again. | |
19519 | if test "$no_create" != yes; then | |
19520 | ac_cs_success=: | |
19521 | ac_config_status_args= | |
19522 | test "$silent" = yes && | |
19523 | ac_config_status_args="$ac_config_status_args --quiet" | |
19524 | exec 5>/dev/null | |
19525 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19526 | exec 5>>config.log | |
19527 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19528 | # would make configure fail if this is the last instruction. | |
22e05272 | 19529 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
19530 | fi |
19531 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19533 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 19534 | fi |
79c06341 | 19535 |